/* ============================================================
   Aaxonix Zoho Portal – Styles
   ============================================================ */

:root {
  --azp-primary:    #E8650A;
  --azp-primary-dk: #c4540a;
  --azp-green:      #16a34a;
  --azp-amber:      #d97706;
  --azp-red:        #dc2626;
  --azp-grey:       #6b7280;
  --azp-bg:         #f7f5f2;
  --azp-white:      #ffffff;
  --azp-border:     #e5e0d8;
  --azp-text:       #111111;
  --azp-text-light: #68605A;
  --azp-radius:     10px;
  --azp-shadow:     0 1px 4px rgba(0,0,0,.08);
  --azp-shadow-md:  0 4px 16px rgba(0,0,0,.12);
}

/* Portal Shell */
.azp-portal { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--azp-text); background: var(--azp-bg); min-height: 100vh; }
.azp-portal-header { background: var(--azp-white); border-bottom: 1px solid var(--azp-border); padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.azp-portal-logo { font-weight: 700; font-size: 18px; color: var(--azp-primary); }
.azp-portal-user { font-size: 14px; color: var(--azp-text-light); display: flex; align-items: center; gap: 16px; }
.azp-logout-link { color: var(--azp-primary); text-decoration: none; font-size: 13px; }
.azp-portal-body { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* Portal nav tabs */
.azp-portal-nav { background: var(--azp-white); border-bottom: 1px solid var(--azp-border); display: flex; gap: 0; padding: 0 32px; }
.azp-portal-nav-item { display: inline-block; padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--azp-text-light); text-decoration: none; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.azp-portal-nav-item:hover { color: var(--azp-primary); }
.azp-portal-nav-item.active { color: var(--azp-primary); border-bottom-color: var(--azp-primary); font-weight: 600; }

/* Breadcrumb */
.azp-breadcrumb { font-size: 13px; color: var(--azp-text-light); margin-bottom: 16px; }
.azp-breadcrumb a { color: var(--azp-primary); text-decoration: none; }

/* Login */
.azp-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #E8650A 0%, #0f2d8a 100%); }
.azp-login-box { background: #fff; border-radius: 16px; padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.azp-login-logo { text-align: center; margin-bottom: 32px; }
.azp-login-logo h1 { margin: 12px 0 4px; font-size: 24px; font-weight: 700; }
.azp-login-logo p { color: var(--azp-text-light); margin: 0; }

/* Forms */
.azp-form-group { margin-bottom: 16px; }
.azp-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--azp-text); }
.azp-input, .azp-select, .azp-textarea { width: 100%; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--azp-border); border-radius: 8px; font-size: 14px; transition: border-color .2s; outline: none; }
.azp-input:focus, .azp-select:focus, .azp-textarea:focus { border-color: var(--azp-primary); box-shadow: 0 0 0 3px rgba(27,79,216,.1); }

/* Buttons */
.azp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; border: 1px solid var(--azp-border); background: var(--azp-white); color: var(--azp-text); cursor: pointer; text-decoration: none; transition: all .15s; }
.azp-btn:hover { background: var(--azp-bg); }
.azp-btn-primary { background: var(--azp-primary); color: #fff; border-color: var(--azp-primary); }
.azp-btn-primary:hover { background: var(--azp-primary-dk); }
.azp-btn-secondary { background: #fff3eb; color: var(--azp-primary); border-color: #f9c9a0; }
.azp-btn-full { width: 100%; justify-content: center; }
.azp-btn-sm { padding: 6px 12px; font-size: 12px; }
.azp-btn-danger { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.azp-btn-danger:hover { background: #fecaca; }

/* Project card wrap — allows action buttons below the card link */
.azp-project-card-wrap { background: #fff; border-radius: var(--azp-radius); box-shadow: var(--azp-shadow); overflow: hidden; transition: box-shadow .2s; }
.azp-project-card-wrap:hover { box-shadow: var(--azp-shadow-md); }
.azp-project-card-wrap .azp-project-card { border-radius: 0; box-shadow: none; }

/* Alerts */
.azp-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.azp-alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.azp-alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.azp-alert-info    { background: #fff3eb; border: 1px solid #f9c9a0; color: #c4540a; }

/* Badges */
.azp-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.azp-badge-green   { background: #dcfce7; color: #166534; }
.azp-badge-blue    { background: #fde8d4; color: #c4540a; }
.azp-badge-grey    { background: #f3f4f6; color: #4b5563; }
.azp-badge-amber   { background: #fef3c7; color: #92400e; }
.azp-badge-red     { background: #fee2e2; color: #991b1b; }

/* BRD preview-only watermark */
.azp-brd-preview-only {
    position: relative;
}
.azp-brd-preview-only::after {
    content: 'DRAFT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 120px;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 10px;
}
.azp-status-badge  { padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.azp-status-draft  { background: #fef3c7; color: #92400e; }
.azp-status-signed { background: #dcfce7; color: #166534; }

/* Health */
.azp-health-green .azp-card-health, .azp-health-indicator.azp-health-green { background: var(--azp-green); }
.azp-health-amber .azp-card-health, .azp-health-indicator.azp-health-amber { background: var(--azp-amber); }
.azp-health-red   .azp-card-health, .azp-health-indicator.azp-health-red   { background: var(--azp-red); }

/* Progress Bar */
.azp-progress-bar { height: 6px; background: var(--azp-border); border-radius: 3px; overflow: hidden; flex: 1; }
.azp-progress-fill { height: 100%; background: var(--azp-primary); border-radius: 3px; transition: width .4s; }
.azp-progress-sm { height: 4px; margin: 4px 0; }

/* Project Cards */
.azp-project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.azp-project-card { background: var(--azp-white); border: 1px solid var(--azp-border); border-radius: var(--azp-radius); padding: 20px; text-decoration: none; color: var(--azp-text); position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s; display: block; }
.azp-project-card:hover { box-shadow: var(--azp-shadow-md); transform: translateY(-2px); }
.azp-card-health { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.azp-project-card h3 { margin: 8px 0 4px; font-size: 16px; }
.azp-card-client { color: var(--azp-text-light); font-size: 13px; margin: 0 0 12px; }
.azp-card-progress { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.azp-card-phase { font-size: 12px; color: var(--azp-text-light); margin: 8px 0 0; }

/* Two column layout */
.azp-two-col { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 24px; }
@media (max-width: 900px) { .azp-two-col { grid-template-columns: 1fr; } }

/* Section Card */
.azp-section-card { background: var(--azp-white); border: 1px solid var(--azp-border); border-radius: var(--azp-radius); padding: 24px; margin-bottom: 16px; }
.azp-section-card h3 { margin: 0 0 8px; font-size: 16px; }

/* Info Card */
.azp-info-card { background: var(--azp-white); border: 1px solid var(--azp-border); border-radius: var(--azp-radius); padding: 20px; }
.azp-info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.azp-info-table td { padding: 8px 0; border-bottom: 1px solid var(--azp-border); }
.azp-info-table td:first-child { color: var(--azp-text-light); width: 40%; }

/* Questionnaire */
.azp-questionnaire-wrap { max-width: 760px; }
.azp-q-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.azp-q-header h2 { margin: 0; }
.azp-q-progress-badge { background: var(--azp-primary); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.azp-q-progress-bar-wrap { height: 6px; background: var(--azp-border); border-radius: 3px; margin-bottom: 20px; overflow: hidden; }
.azp-q-progress-fill { height: 100%; background: var(--azp-primary); transition: width .4s; }
.azp-q-intro { color: var(--azp-text-light); font-size: 14px; margin-bottom: 20px; }

/* Section Nav */
.azp-sections-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--azp-border); padding-bottom: 16px; }
.azp-section-nav-btn { background: var(--azp-bg); border: 1px solid var(--azp-border); border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all .15s; }
.azp-section-nav-btn:hover, .azp-section-nav-btn.active { background: var(--azp-primary); color: #fff; border-color: var(--azp-primary); }
.azp-nav-badge { background: rgba(0,0,0,.1); border-radius: 10px; padding: 1px 6px; font-size: 11px; }
.azp-nav-complete { background: rgba(22,163,74,.2); }
.azp-section-nav-btn.active .azp-nav-badge { background: rgba(255,255,255,.25); }

/* Questions */
.azp-section-panel { animation: azp-fade .2s ease; }
@keyframes azp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.azp-section-header { margin-bottom: 24px; }
.azp-section-header h3 { margin: 0 0 4px; }
.azp-section-header p { color: var(--azp-text-light); font-size: 14px; margin: 0; }
.azp-question { margin-bottom: 20px; padding: 16px; background: var(--azp-white); border: 1px solid var(--azp-border); border-radius: 8px; }
.azp-q-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: block; }
.azp-required { color: var(--azp-red); margin-left: 2px; }
.azp-radio-group, .azp-checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.azp-radio-label, .azp-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.azp-depends-on { transition: opacity .2s; }
.azp-depends-on.hidden { display: none; }

/* Nav Buttons */
/* ── BRD revision request box ── */
.azp-revision-request {
    margin-top: 28px;
    padding: 20px 24px;
    background: #f8faff;
    border: 1px solid #f9c9a0;
    border-radius: 10px;
}
.azp-revision-request strong {
    font-size: 14px;
    color: #1e293b;
}

/* ── Questionnaire completion banner ── */
.azp-completion-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 20px 24px;
    background: #f0fdf4;
    border: 1.5px solid #22c55e;
    border-radius: 10px;
    flex-wrap: wrap;
}
.azp-completion-icon {
    color: #16a34a;
    flex-shrink: 0;
}
.azp-completion-text {
    flex: 1;
    min-width: 200px;
}
.azp-completion-text strong {
    display: block;
    font-size: 15px;
    color: #14532d;
    margin-bottom: 4px;
}
.azp-completion-text p {
    margin: 0;
    font-size: 13px;
    color: #166534;
}

.azp-q-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--azp-border);
    gap: 12px;
}
.azp-q-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
#btn-goto-project { text-decoration: none; }
.azp-q-center-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

/* Save button */
.azp-btn-save {
    background: var(--azp-white);
    color: var(--azp-primary);
    border: 1.5px solid var(--azp-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: var(--azp-radius);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
}
.azp-btn-save:hover { background: var(--azp-primary); color: var(--azp-white); }
.azp-btn-save:disabled { opacity: 0.55; cursor: not-allowed; }

/* Save indicator */
.azp-autosave-indicator {
    font-size: 12px;
    font-weight: 500;
    color: var(--azp-green);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.azp-autosave-indicator.visible { opacity: 1; }
.azp-autosave-indicator.error { color: var(--azp-red); }

/* App rows */
.azp-app-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--azp-border); gap: 12px; }
.azp-app-row:last-child { border-bottom: none; }
.azp-app-row-info { flex: 1; min-width: 0; }
.azp-app-row-info strong { font-size: 14px; }
.azp-mini-progress { height: 4px; background: var(--azp-border); border-radius: 2px; margin: 6px 0; overflow: hidden; }
.azp-mini-progress div { height: 100%; background: var(--azp-primary); }
.azp-app-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Questionnaire App Tiles */
.azp-questionnaire-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--azp-border); border-radius: 8px; margin-bottom: 10px; }
.azp-q-icon { width: 40px; height: 40px; border-radius: 8px; background: #fff3eb; flex-shrink: 0; }
.azp-q-info { flex: 1; min-width: 0; }
.azp-q-info strong { font-size: 14px; display: block; margin-bottom: 4px; }
.azp-q-actions { flex-shrink: 0; }
.azp-coming-soon-badge { font-size: 11px; color: var(--azp-text-light); background: var(--azp-bg); padding: 4px 8px; border-radius: 4px; }

/* Milestone Timeline */
.azp-milestone-timeline { display: flex; flex-direction: column; gap: 0; }
.azp-milestone-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--azp-border); }
.azp-milestone-item:last-child { border-bottom: none; }
.azp-milestone-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--azp-border); flex-shrink: 0; }
.azp-milestone-complete .azp-milestone-dot { background: var(--azp-green); }
.azp-milestone-inprogress .azp-milestone-dot { background: var(--azp-amber); }
.azp-milestone-content { flex: 1; }
.azp-milestone-content strong { font-size: 14px; display: block; }
.azp-milestone-content small { color: var(--azp-text-light); font-size: 12px; }
.azp-milestone-status-badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; }
.azp-ms-complete   { background: #dcfce7; color: #166534; }
.azp-ms-inprogress { background: #fef3c7; color: #92400e; }
.azp-ms-pending    { background: var(--azp-bg); color: var(--azp-grey); }

/* Client Timeline */
.azp-timeline { display: flex; flex-direction: column; }
.azp-timeline-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; position: relative; }
.azp-timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 28px; bottom: -14px; width: 2px; background: var(--azp-border); }
.azp-tl-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--azp-border); background: #fff; flex-shrink: 0; margin-top: 3px; }
.azp-tl-complete .azp-tl-dot { background: var(--azp-green); border-color: var(--azp-green); }
.azp-tl-inprogress .azp-tl-dot { background: var(--azp-amber); border-color: var(--azp-amber); }
.azp-tl-content { flex: 1; }
.azp-tl-content strong { font-size: 14px; display: block; }
.azp-tl-date, .azp-tl-done { font-size: 12px; color: var(--azp-text-light); display: block; }
.azp-tl-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.azp-tl-status-complete   { background: #dcfce7; color: #166534; }
.azp-tl-status-inprogress { background: #fef3c7; color: #92400e; }
.azp-tl-status-pending    { background: var(--azp-bg); color: var(--azp-grey); }

/* Progress Summary */
.azp-progress-summary { background: var(--azp-white); border: 1px solid var(--azp-border); border-radius: var(--azp-radius); padding: 24px; display: flex; align-items: center; gap: 32px; margin-bottom: 24px; }
.azp-progress-circle-wrap { text-align: center; }
.azp-progress-circle { width: 80px; height: 80px; border-radius: 50%; background: conic-gradient(var(--azp-primary) calc(var(--pct) * 1%), var(--azp-border) 0); display: flex; align-items: center; justify-content: center; position: relative; }
.azp-progress-circle::before { content: ''; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.azp-progress-circle span { position: relative; font-weight: 700; font-size: 14px; }
.azp-progress-circle-wrap p { margin: 8px 0 0; font-size: 12px; color: var(--azp-text-light); }
.azp-progress-stats { display: flex; gap: 24px; }
.azp-stat { text-align: center; }
.azp-stat span { font-size: 28px; font-weight: 700; color: var(--azp-primary); display: block; }
.azp-stat p { margin: 4px 0 0; font-size: 12px; color: var(--azp-text-light); }

/* Client Tasks */
.azp-client-task { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--azp-border); }
.azp-client-task:last-child { border-bottom: none; }
.azp-task-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--azp-amber); flex-shrink: 0; }
.azp-task-complete .azp-task-indicator { background: var(--azp-green); }
.azp-task-info { flex: 1; }
.azp-task-info strong { font-size: 14px; display: block; }
.azp-task-info small { color: var(--azp-text-light); font-size: 12px; }
.azp-task-status-label { font-size: 11px; color: var(--azp-text-light); }

/* Sponsor Portal */
.azp-sponsor-card { background: var(--azp-white); border: 1px solid var(--azp-border); border-radius: var(--azp-radius); padding: 28px; margin-bottom: 20px; }
.azp-sponsor-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.azp-sponsor-card-header h3 { margin: 0; font-size: 20px; }
.azp-health-indicator { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #fff; }
.azp-health-indicator.azp-health-green { background: var(--azp-green); }
.azp-health-indicator.azp-health-amber { background: var(--azp-amber); }
.azp-health-indicator.azp-health-red   { background: var(--azp-red); }
.azp-sponsor-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.azp-sponsor-stat { text-align: center; background: var(--azp-bg); border-radius: 8px; padding: 16px; }
.azp-sponsor-num { font-size: 32px; font-weight: 700; color: var(--azp-primary); display: block; }
.azp-sponsor-stat span:last-child { font-size: 12px; color: var(--azp-text-light); }
.azp-sponsor-timeline { display: flex; flex-direction: column; gap: 10px; }
.azp-stl-item { display: flex; align-items: center; gap: 10px; }
.azp-stl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--azp-border); flex-shrink: 0; }
.azp-stl-complete .azp-stl-dot { background: var(--azp-green); }
.azp-stl-inprogress .azp-stl-dot { background: var(--azp-amber); }
.azp-stl-label { flex: 1; font-size: 14px; }
.azp-green { color: var(--azp-green); font-size: 13px; }
.azp-amber { color: var(--azp-amber); font-size: 13px; }
.azp-grey  { color: var(--azp-grey);  font-size: 13px; }

/* BRD Viewer */
.azp-brd-toolbar { display: flex; align-items: center; justify-content: space-between; background: var(--azp-white); border: 1px solid var(--azp-border); border-radius: 8px 8px 0 0; padding: 14px 20px; }
.azp-brd-actions { display: flex; gap: 8px; }
.azp-brd-viewer, .azp-doc-viewer { background: var(--azp-white); border: 1px solid var(--azp-border); border-top: none; border-radius: 0 0 8px 8px; padding: 40px; }
.azp-brd-document h1 { font-size: 28px; margin-bottom: 4px; }
.azp-brd-document h2 { font-size: 18px; color: var(--azp-primary); border-bottom: 2px solid var(--azp-border); padding-bottom: 8px; margin-top: 32px; }
.azp-brd-document h3 { font-size: 15px; margin-top: 20px; }
.azp-doc-cover { text-align: center; padding: 40px 0 32px; border-bottom: 2px solid var(--azp-border); margin-bottom: 32px; }
.azp-doc-badge { display: inline-block; background: var(--azp-primary); color: #fff; padding: 4px 14px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.azp-badge-internal { background: #7c3aed; }
.azp-doc-meta-table { margin: 20px auto 0; border-collapse: collapse; font-size: 14px; }
.azp-doc-meta-table td { padding: 6px 16px; text-align: left; }
.azp-doc-meta-table td:first-child { font-weight: 600; color: var(--azp-text-light); }
.azp-req-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.azp-req-table td { padding: 10px 12px; border: 1px solid var(--azp-border); vertical-align: top; }
.azp-req-table td:first-child { font-weight: 600; background: #f7f5f2; width: 35%; }
.azp-custom-req { background: #fffbeb; border-left: 4px solid var(--azp-amber); padding: 12px 16px; font-size: 14px; border-radius: 0 4px 4px 0; }
.azp-doc-signoff { margin-top: 48px; }
.azp-signoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.azp-signoff-box { text-align: center; }
.azp-signoff-line { height: 1px; background: #000; margin-bottom: 8px; }
.azp-config-warning { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; }
.azp-config-document h2 { color: #7c3aed; }
.azp-config-cover .azp-doc-badge { background: #7c3aed; }
.azp-checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.azp-checklist label { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.azp-checklist input[type=checkbox] { margin-top: 2px; flex-shrink: 0; }
.azp-config-value { background: #f7f5f2; border: 1px solid var(--azp-border); padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 8px 0; white-space: pre-wrap; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* Modals */
.azp-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.azp-modal-inner { background: #fff; border-radius: var(--azp-radius); padding: 28px; width: 520px; max-width: 90vw; max-height: 90vh; overflow-y: auto; }
.azp-modal-xl .azp-modal-inner { width: 900px; padding: 0; }
.azp-modal-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--azp-border); }
.azp-modal-toolbar h2 { margin: 0; }
.azp-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.azp-doc-viewer-content { padding: 32px; }
.azp-modal-large .azp-modal-inner { width: 900px; }
.azp-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Project Header */
.azp-project-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.azp-project-header h2 { margin: 0; }
.azp-golive-badge { background: #fff3eb; color: var(--azp-primary); padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.azp-health-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #fff; }
.azp-health-badge.azp-health-green { background: var(--azp-green); }
.azp-health-badge.azp-health-amber { background: var(--azp-amber); }
.azp-health-badge.azp-health-red   { background: var(--azp-red); }

/* Print */
@media print {
  .azp-portal-header, .azp-breadcrumb, .azp-brd-toolbar, .azp-brd-actions,
  .azp-btn, button, .azp-modal { display: none !important; }
  .azp-brd-viewer { border: none; padding: 0; }
  .azp-brd-preview-only { display: none !important; }
  body { background: #fff; }
}

/* ── Client member task cards ─────────────────────────────── */
.azp-member-task {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 10px;
    transition: box-shadow 0.15s;
}

.azp-member-task:hover {
    box-shadow: 0 2px 12px rgba(232,101,10,0.07);
}

.azp-member-task.azp-task-overdue {
    border-left: 3px solid #ef4444;
    background: #fff8f8;
}

.azp-member-task.azp-task-completed {
    background: #fafafa;
}

.azp-meta-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fff3eb;
    color: #E8650A;
    font-weight: 500;
}

.azp-meta-tag.azp-meta-overdue {
    background: #fde8e8;
    color: #c0392b;
}

.azp-meta-tag.azp-meta-done {
    background: #e6f9f0;
    color: #1a7a4a;
}

.azp-meta-tag.azp-meta-dim {
    background: #f5f5f5;
    color: #888;
}

/* ── Empty card ────────────────────────────────────────────── */
.azp-empty-card {
    text-align: center;
    padding: 40px;
    color: #aaa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    font-size: 14px;
}

/* ── BRD sign-off comment ─────────────────────────────────── */
.azp-signoff-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

/* ── Client project card with apps ────────────────────────── */
.azp-client-project-card {
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.azp-cpc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.azp-cpc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.azp-cpc-title-row h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.azp-health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.azp-health-dot-green  { background: #16a34a; }
.azp-health-dot-amber  { background: #d97706; }
.azp-health-dot-red    { background: #dc2626; }
.azp-cpc-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #9ca3af;
}
.azp-cpc-tasks-badge {
    color: #d97706;
    font-weight: 600;
}
.azp-cpc-progress {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}
.azp-cpc-pct {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 6px;
}
.azp-progress-bar-lg {
    width: 80px;
    height: 6px;
}
.azp-progress-bar-sm {
    height: 4px;
    flex: 1;
}

/* Apps section */
.azp-cpc-apps {
    padding: 18px 24px;
}
.azp-cpc-apps-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 12px;
}
.azp-cpc-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.azp-cpc-app {
    display: block;
    background: #f9fafb;
    border: 1px solid #e5e0d8;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.azp-cpc-app:hover {
    border-color: #E8650A;
    box-shadow: 0 2px 10px rgba(232,101,10,0.08);
    transform: translateY(-1px);
}
.azp-cpc-app-signed { border-color: #bbf7d0; background: #f0fdf4; }
.azp-cpc-app-complete { border-color: #f9c9a0; background: #fff3eb; }
.azp-cpc-app-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}
.azp-cpc-app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.azp-cpc-app-pct {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}
.azp-cpc-app-status {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}
.azp-cpc-status-signed { color: #16a34a; font-weight: 600; }
.azp-cpc-status-ready  { color: #E8650A; font-weight: 600; }
.azp-fill-green { background: #16a34a !important; }
.azp-cpc-apps-empty {
    font-size: 13px;
    color: #9ca3af;
    padding: 12px 0;
}

/* Footer link */
.azp-cpc-footer {
    padding: 12px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}
.azp-cpc-link {
    font-size: 13px;
    font-weight: 600;
    color: #E8650A;
    text-decoration: none;
}
.azp-cpc-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .azp-cpc-header { flex-direction: column; gap: 12px; }
    .azp-cpc-progress { text-align: left; }
    .azp-cpc-apps-grid { grid-template-columns: 1fr; }
}

/* ── Question help text ───────────────────────────────────── */
.azp-q-help {
    font-size: 12.5px;
    line-height: 1.5;
    color: #8b8b8b;
    margin: 4px 0 8px;
    padding-left: 1px;
}

/* ── Portal header (redesigned) ───────────────────────────── */
.azp-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: #fff;
    border-bottom: 2px solid #E8650A;
    position: sticky;
    top: 0;
    z-index: 100;
}
.azp-portal-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.azp-portal-logo svg { display: block; }

/* ── Profile dropdown ─────────────────────────────────────── */
.azp-profile-wrap { position: relative; }
.azp-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.azp-profile-trigger:hover { background: #f3f4f6; border-color: #e5e0d8; }
.azp-profile-trigger svg { color: #9ca3af; flex-shrink: 0; }
.azp-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #111111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.azp-avatar-lg { width: 40px; height: 40px; font-size: 16px; }
.azp-profile-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.azp-profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 200;
    overflow: hidden;
}
.azp-profile-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.azp-profile-dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f3f4f6;
}
.azp-dd-name { font-size: 14px; font-weight: 600; color: #111827; }
.azp-dd-email { font-size: 12px; color: #6b7280; margin-top: 1px; }
.azp-dd-role {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #E8650A;
    background: #fde8d4;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}
.azp-profile-dd-actions { padding: 6px; }
.azp-dd-action {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: #374151;
    text-align: left;
    transition: background 0.1s;
}
.azp-dd-action:hover { background: #f3f4f6; }
.azp-dd-action svg { color: #9ca3af; flex-shrink: 0; }
.azp-dd-action-danger { color: #dc2626; }
.azp-dd-action-danger:hover { background: #fef2f2; }
.azp-dd-action-danger svg { color: #dc2626; }

/* ── Password change modal ────────────────────────────────── */
.azp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.azp-modal-panel {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: azp-slide-up 0.2s ease;
}
@keyframes azp-slide-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.azp-modal-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f3f4f6;
}
.azp-modal-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.azp-modal-panel-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.azp-modal-panel-close:hover { color: #374151; }
.azp-modal-panel form { padding: 22px; }
.azp-modal-panel .azp-form-group { margin-bottom: 16px; }
.azp-modal-panel .azp-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.azp-modal-panel .azp-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.azp-modal-panel .azp-input:focus {
    outline: none;
    border-color: #E8650A;
    box-shadow: 0 0 0 3px rgba(232,101,10,0.1);
}
.azp-pw-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.azp-pw-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.azp-modal-panel-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 8px;
}

/* ── Login page (redesigned) ──────────────────────────────── */
.azp-login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f7f5f2;
}
.azp-login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e5e0d8;
}
.azp-login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.azp-login-logo svg { margin: 0 auto 12px; display: block; }
.azp-login-logo p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}
.azp-login-wrap .azp-form-group {
    margin-bottom: 18px;
}
.azp-login-wrap .azp-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.azp-login-wrap .azp-input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.azp-login-wrap .azp-input:focus {
    outline: none;
    border-color: #E8650A;
    box-shadow: 0 0 0 3px rgba(232,101,10,0.1);
}
.azp-login-wrap .azp-input::placeholder { color: #9ca3af; }
.azp-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}
.azp-login-btn {
    width: 100%;
    padding: 11px 20px;
    background: #E8650A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.azp-login-btn:hover { background: #c4540a; }
.azp-login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.azp-login-footer {
    margin-top: 24px;
    text-align: center;
}
.azp-login-footer p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ── Ensure no WP admin bar on portal ─────────────────────── */
body.azp-standalone #wpadminbar { display: none !important; }
body.azp-standalone { padding-top: 0 !important; margin-top: 0 !important; }
html.wp-toolbar { padding-top: 0 !important; }

@media (max-width: 480px) {
    .azp-login-box { padding: 28px 24px; }
    .azp-profile-name { display: none; }
    .azp-profile-dropdown { width: 260px; }
}

/* ── Section intro (guided walkthrough) ───────────────────── */
.azp-section-intro {
    background: #fdf6f0;
    border-left: 3px solid #E8650A;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 22px;
}
.azp-section-intro p {
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 10px;
}
.azp-section-intro p:last-child { margin-bottom: 0; }

/* ── Data submission callout ──────────────────────────────── */
.azp-data-callout {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 26px;
}
.azp-data-callout-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
}
.azp-data-callout-head svg { color: #d97706; flex-shrink: 0; }
.azp-data-callout-sub {
    font-size: 12.5px;
    line-height: 1.6;
    color: #78716c;
    margin: 0 0 14px;
}
.azp-data-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.azp-data-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 11px 14px;
}
.azp-data-list-main { display: flex; flex-direction: column; gap: 2px; }
.azp-data-list-main strong { font-size: 13px; color: #1c1917; font-weight: 600; }
.azp-data-list-main span { font-size: 12px; color: #78716c; line-height: 1.4; }
.azp-data-template-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: #E8650A;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s;
}
.azp-data-template-btn:hover { background: #c4540a; }
.azp-data-template-btn svg { flex-shrink: 0; }

/* ── Sub-section group header ─────────────────────────────── */
.azp-q-group-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #E8650A;
    padding: 8px 0 4px;
    margin: 22px 0 6px;
    border-bottom: 1px solid #e5e0d8;
}
.azp-q-group-header:first-of-type { margin-top: 4px; }

@media (max-width: 560px) {
    .azp-data-list li { flex-direction: column; align-items: flex-start; }
    .azp-data-template-btn { align-self: stretch; justify-content: center; }
}
.azp-drag-over { border: 2px dashed #E8650A !important; background: #fff3e0 !important; border-radius: 8px; }

/* ── Locked questionnaire ─────────────────────────────────── */
.azp-questionnaire-locked .azp-sections-content { pointer-events: none; opacity: 0.65; user-select: none; }
.azp-questionnaire-locked .azp-q-nav-buttons { display: none !important; }
.azp-questionnaire-locked .azp-completion-banner { display: none !important; }

/* ── Assign App modal — app cards ───────────────────────── */
.azp-assign-panel { max-width: 640px; width: 92vw; }
.azp-assign-sub { font-size: 13px; color: #68605A; margin: 0 0 18px; line-height: 1.5; }
.azp-app-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 2px;
}
.azp-app-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--azp-border, #e5e0d8);
    border-radius: 12px;
    padding: 16px 18px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.azp-app-card--available:hover {
    border-color: #E8650A;
    box-shadow: 0 4px 14px rgba(232,101,10,.10);
}
.azp-app-card--assigned { background: #f0fdf4; border-color: #bbf7d0; }
.azp-app-card--soon { opacity: .65; }
.azp-app-card-icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff3eb;
    color: #E8650A;
    font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.azp-app-card--assigned .azp-app-card-icon { background: #dcfce7 !important; color: #16a34a !important; }
.azp-app-card-body { flex: 1; min-width: 0; }
.azp-app-card-title { font-weight: 700; font-size: 15px; color: #111; }
.azp-app-card-desc { font-size: 13px; color: #68605A; margin-top: 3px; line-height: 1.45; }
.azp-app-card-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: #9B948D; }
.azp-app-card-action { flex-shrink: 0; }
.azp-app-pill {
    font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 8px; white-space: nowrap;
}
.azp-app-pill--assigned { color: #16a34a; background: #dcfce7; }
.azp-app-pill--soon { color: #9B948D; background: #f0ede8; }

/* ════════════════════════════════════════════════════════
   Client dashboard (refined)
   ════════════════════════════════════════════════════════ */
.azp-cd-hero {
    background: #fff;
    border: 1px solid var(--azp-border, #e5e0d8);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.azp-cd-hero-main { flex: 1; min-width: 220px; }
.azp-cd-hero-titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.azp-cd-hero-title { margin: 0; font-size: 22px; font-weight: 700; color: #111; }
.azp-cd-health { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.azp-cd-health-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.azp-cd-hero-sub { font-size: 14px; color: #68605A; line-height: 1.5; }
.azp-cd-ring { flex-shrink: 0; }

/* Stat cards */
.azp-cd-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.azp-cd-stat {
    background: #fff; border: 1px solid var(--azp-border, #e5e0d8);
    border-radius: 12px; padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.azp-cd-stat--accent { border-color: #f9c9a0; background: #fff8f2; }
.azp-cd-stat-icon { font-size: 18px; margin-bottom: 6px; }
.azp-cd-stat-val { font-size: 26px; font-weight: 700; color: #111; line-height: 1.1; }
.azp-cd-stat-val--sm { font-size: 16px; }
.azp-cd-stat-label { font-size: 12px; color: #9B948D; margin-top: 4px; }

/* Panels */
.azp-cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.azp-cd-panel { background: #fff; border: 1px solid var(--azp-border, #e5e0d8); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.azp-cd-panel-head { padding: 16px 18px; border-bottom: 1px solid #f0ede8; }
.azp-cd-panel-head--split { display: flex; align-items: center; justify-content: space-between; }
.azp-cd-panel-title { margin: 0; font-size: 15px; font-weight: 700; color: #111; }
.azp-cd-panel-body { padding: 16px 18px; max-height: 520px; overflow-y: auto; }
.azp-cd-pending-pill { font-size: 11px; font-weight: 700; color: #E8650A; background: #fff3eb; padding: 3px 10px; border-radius: 10px; }

/* Empty state */
.azp-cd-empty { text-align: center; padding: 28px 12px; color: #9B948D; }
.azp-cd-empty-emoji { font-size: 28px; margin-bottom: 8px; }
.azp-cd-empty p { margin: 0; font-size: 13px; }

/* Responsive */
@media (max-width: 820px) {
    .azp-cd-stats { grid-template-columns: 1fr 1fr; }
    .azp-cd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .azp-cd-stats { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   Self-Implementation Hub
   ════════════════════════════════════════════════════════ */
.azp-selfhub-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.azp-selfhub-stepchip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #68605A; background: #fff; border: 1px solid var(--azp-border,#e5e0d8); border-radius: 24px; padding: 8px 14px; }
.azp-selfhub-stepchip span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #f0ede8; color: #68605A; font-size: 11px; font-weight: 700; }
.azp-selfhub-stepchip.active { border-color: #E8650A; color: #E8650A; }
.azp-selfhub-stepchip.active span { background: #E8650A; color: #fff; }
.azp-selfhub-stepchip.done { border-color: #bbf7d0; color: #16a34a; background: #f0fdf4; }
.azp-selfhub-stepchip.done span { background: #16a34a; color: #fff; }
.azp-selfhub-stepchip.done span::before { content: '✓'; }
.azp-selfhub-stepchip.done span { font-size: 0; }
.azp-selfhub-stepchip.done span::before { font-size: 11px; }
.azp-selfhub-arrow { color: #cbb8a8; font-size: 16px; }

.azp-selfhub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.azp-selfhub-card { background: #fff; border: 1px solid var(--azp-border,#e5e0d8); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.azp-selfhub-card--locked { opacity: .6; }
.azp-selfhub-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.azp-selfhub-card-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #fff3eb; color: #E8650A; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.azp-selfhub-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: #111; }
.azp-selfhub-card-desc { font-size: 13px; color: #68605A; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.azp-selfhub-progress { height: 6px; background: #f0ede8; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.azp-selfhub-progress-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.azp-selfhub-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.azp-selfhub-pct { font-size: 12px; color: #9B948D; font-weight: 600; }

.azp-selfhub-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #f7f5f2; border: 1px dashed #cbb8a8; border-radius: 12px; padding: 16px 20px; }
.azp-selfhub-help strong { display: block; font-size: 14px; color: #111; }
.azp-selfhub-help span { font-size: 13px; color: #68605A; }

@media (max-width: 820px) {
    .azp-selfhub-cards { grid-template-columns: 1fr; }
}
