/* Dark palette: neutral charcoal surfaces, PANA lime accents. Light theme is unchanged. */
.theme-switch{flex-shrink:0;min-width:40px;min-height:40px}
.theme-switch[aria-pressed=true]{background:#293b24;color:#c3f978}
html[data-theme=dark]{color-scheme:dark;--ink:#fafafa;--muted:#a1a1aa;--line:#303033;--paper:#18181b;--surface:#202024;--dark:#101010;--green:#c2f970;--lime:#c2f970;--pana-accent:#c2f970;--pana-text:#fafafa;--pana-muted:#a1a1aa;--pana-border:#303033;--accent-soft:#303923;background:#101010;color:#fafafa}
html[data-theme=dark] :is(body,.main,.boot,.login-main){background:#101010;color:#fafafa}
html[data-theme=dark] :is(.sidebar,.sidebar.open,.topbar,.panel,dialog,.dialog-head,.table-scroll,.stat,.operation-metrics article,.account-card,.member-company-menu,.multi-options,.operation-filters,.refined-filters,.empty,.login-story){background:#18181b;color:#fafafa;border-color:#303033;box-shadow:none}
html[data-theme=dark] :is(.panel-head,.settings-section .panel-head,.security-grid .panel-head,.panel-body,.toolbar,.pagination,.filter-main,.advanced-filters,.saved-segment-bar,.export-results-bar,.queue-heading,.post-choice,.post-status-details,.workspace-shortcut){background:#18181b;color:#fafafa;border-color:#303033}
html[data-theme=dark] :is(.sidebar-bottom,.sidebar .brand,.platform-row,.activity-item,.queue-item,.divider,th,td,.campaign-group,.follow-up-note,.note-meta,.queue-note,.comment-thread,.metric-row,.summary-panel h2,.message-footer){border-color:#303033}
html[data-theme=dark] :is(h1,h2,h3,.page-title h1,.empty h3,.metric-row strong,.queue-heading strong,.field label,.field>span,.conversation-status-options legend,.dialog-body summary,.advanced-filters>summary,.post-status-details>summary,.activity-copy strong,.queue-copy strong,.message-identity strong){color:#fafafa}
html[data-theme=dark] :is(p,small,.muted,.secondary-line,.footnote,.page-kicker,.side-label,.role,.date,.client-control label,.activity-copy p,.activity-copy small,.metric-caption,.metric-row,.metric-heading>span,.queue-copy>div,.queue-date small,.queue-note small,.member-company-empty,.message-footer>small,.message-identity small,.filter-count,.group-indicator,.multi-caption,.queue-heading span,.login-box .secure,.login-box>.muted){color:#a1a1aa}
html[data-theme=dark] :is(th,.dialog-body pre,.note,.message-box,.message-text,.follow-up-note,.member-choice,.member-company-picker>summary,.conversation-status-options label,.multi-picker>summary){background:#202024;color:#fafafa;border-color:#303033}
html[data-theme=dark] th{color:#a1a1aa}
html[data-theme=dark] :is(input,select,select option,select optgroup,textarea,.client-control select,.toolbar input,.toolbar select){background:#18181b;color:#fafafa;-webkit-text-fill-color:#fafafa;border-color:#3b3b40;color-scheme:dark}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a1a1aa;opacity:1}
html[data-theme=dark] :is(input[type=checkbox],input[type=radio]){accent-color:#c2f970}
html[data-theme=dark] :is(input,select,textarea):focus{border-color:#c2f970;outline-color:#c2f97340;box-shadow:0 0 0 3px #c2f97018}
html[data-theme=dark] .multi-picker[open]>summary{border-color:#c2f970;box-shadow:0 0 0 3px #c2f97018}
html[data-theme=dark] :is(.btn.secondary,.language-switch,.icon-btn,.btn.ghost){background:transparent;color:#fafafa;border-color:#36363a}
html[data-theme=dark] :is(.btn.secondary,.language-switch,.icon-btn,.btn.ghost):hover:not(:disabled){background:#29292e;color:#fafafa;border-color:#52525b}
html[data-theme=dark] :is(a,.text-link,.clear-filters){color:#c2f970}
html[data-theme=dark] :is(a,.text-link):hover{color:#dcffad}
html[data-theme=dark] .text-link:hover{text-decoration:underline}
html[data-theme=dark] :is(.nav button,.nav button svg,.user-chip .email){color:#d4d4d8}
html[data-theme=dark] .nav button.active{background:#303033;color:#fafafa;border-color:#3b3b40;box-shadow:none}
html[data-theme=dark][dir=ltr] .nav button.active{box-shadow:none}
html[data-theme=dark] .nav button.active svg{color:#c2f970}
html[data-theme=dark] .nav button:hover:not(.active){background:#252529;color:#fafafa}
html[data-theme=dark] :is(.multi-options label:hover,tbody tr:hover,.workspace-shortcut:hover){background:#252529;color:#fafafa}
html[data-theme=dark] :is(.post-choice.selected,.member-choice:has(input:checked),.conversation-status-options label:has(input:checked)){background:#303923;color:#e3f5cf;border-color:#72894e;box-shadow:none}
html[data-theme=dark][dir=ltr] .post-choice.selected{box-shadow:none}
html[data-theme=dark] .settings-section label:has(#story-escalation){background:#202024;color:#fafafa;border-color:#3b3b40}
html[data-theme=dark] .settings-section label:has(#story-escalation:checked){background:#303923;border-color:#72894e}
html[data-theme=dark] :is(.avatar,.person-avatar,.metric-symbol,.shortcut-icon,.empty-icon,.step-number,.section-number,.interaction-post-empty,.platform-icon,.result-count){background:#27272b;color:#d4d4d8;border-color:#3b3b40}
html[data-theme=dark] :is(.metric-symbol svg,.shortcut-icon svg,.empty-icon svg){color:#c2f970}
html[data-theme=dark] :is(.interaction-post-preview,.post-image,.post-image.placeholder,.image-unavailable){background:#202024;color:#a1a1aa}
html[data-theme=dark] .badge{background:#27272b;color:#d4d4d8;border-color:#3b3b40;font-weight:400}
html[data-theme=dark] :is(.badge.good,.badge.success,.badge.active){background:#15382b;color:#70dfa2;border-color:#24543e}
html[data-theme=dark] :is(.badge.warning,.queue-status){background:#332a15;color:#ffca45;border-color:#594621}
html[data-theme=dark] .story-badge{background:#303923;color:#c2f970;border-color:#4c5938}
html[data-theme=dark] :is(.badge.danger,.error,.note-error:not(:empty)){background:#3c2025;color:#ffadb5;border-color:#68333e}
html[data-theme=dark] .metric-row .metric-alert{color:#ffadb5}
html[data-theme=dark] .btn:not(.secondary):not(.ghost):not(.danger){background:#c2f970;color:#19210f;border-color:#c2f970}
html[data-theme=dark] .btn:not(.secondary):not(.ghost):not(.danger) svg{color:#19210f}
html[data-theme=dark] .btn:not(.secondary):not(.ghost):not(.danger):hover:not(:disabled){background:#d4ff98;border-color:#d4ff98;color:#19210f}
html[data-theme=dark] .btn.danger{background:#a32d45;color:#fff;border-color:#a32d45}
html[data-theme=dark] .btn.danger:hover:not(:disabled){background:#bc3652;border-color:#bc3652;color:#fff}
html[data-theme=dark] .operation-metrics .metric-featured{background:#303923;border-color:#4c5938}
html[data-theme=dark] .operation-metrics .metric-featured :is(strong,.metric-heading>span){color:#fafafa}
html[data-theme=dark] .operation-metrics .metric-featured .metric-caption{color:#cad5bb}
html[data-theme=dark] .operation-metrics .metric-featured .metric-symbol{background:#455333;color:#c2f970}
html[data-theme=dark] .operation-metrics .metric-featured .metric-symbol svg{color:#c2f970}
html[data-theme=dark] :is(.thread-reply,.message-box.reply){background:#24291e;color:#fafafa;border-color:#72894e}
html[data-theme=dark] .thread-reply :is(p,.reply-text){color:#fafafa}
html[data-theme=dark] :is(.thread-reply,.comment-thread,.message-footer) .text-link{color:#c2f970;font-weight:500}
html[data-theme=dark] .thread-reply small{color:#b9c6a9}
html[data-theme=dark] .summary-panel h2:before{background:#c2f970}
html[data-theme=dark] .queue-heading{border-inline-start-color:#72894e}
html[data-theme=dark] .account-card{border-top-color:#72894e}
html[data-theme=dark] .settings-section.panel-body{border-inline-start-color:#72894e}
html[data-theme=dark] .theme-switch[aria-pressed=true]{background:#303923;color:#c2f970;border-color:#4c5938}
html[data-theme=dark] dialog::backdrop{background:#0009}
html[data-theme=dark] :focus-visible{outline-color:#c2f970}
html[data-theme=dark] .pana-brand .powered-by span{color:#a1a1aa}
html[data-theme=dark] .login-story :is(h1,p){color:#fafafa}
html[data-theme=dark] .login-story h1 span{color:#c2f970}
html[data-theme=dark] .login-story::before{border-color:#303923}
html[data-theme=dark] .login-story::after{border-color:#c2f970}
@media(max-width:600px){.topbar-meta{gap:4px}.theme-switch{min-width:36px;padding:7px}}

/* PANA product identity: original supplied artwork, switched by surface theme. */
.logo-dark{display:none!important}
html[data-theme=dark] .logo-light{display:none!important}
html[data-theme=dark] .logo-dark{display:block!important}
.pana-brand{display:flex;flex-direction:column;align-items:center;gap:13px}
.pana-brand img.pana-logo{width:170px;max-width:100%;height:auto;padding:0;background:none;border-radius:0}
.pana-brand .powered-by{display:flex;align-items:center;justify-content:center;gap:8px;direction:ltr}
.pana-brand .powered-by span{font:10px Arial,sans-serif;white-space:nowrap;color:#52644e}
.pana-brand .powered-by img{width:72px;height:auto;padding:0;background:none;border-radius:0}

/* Let the parent retain rounded corners without clipping dropdown menus. */
html[data-theme=dark] :is(.refined-filters .filter-main,.refined-filters .advanced-filters){background:transparent}
html[data-theme=dark] :is(.metric-symbol,.shortcut-icon){background:#303923}
html[data-theme=dark] .empty-icon{box-shadow:none}
