:root[data-theme="dark"]{color-scheme:dark;background:#08232a;color:#e8f4ef;--green:#65bdb0;--line:#1e5059;--muted:#8fa6a0}
:root[data-theme="dark"] body{background:#08232a;color:#e8f4ef}
:root[data-theme="dark"] header,:root[data-theme="dark"] aside,:root[data-theme="dark"] footer{background:#0b2d34;border-color:#1e5059}
:root[data-theme="dark"] .brand{color:#e8f4ef}
:root[data-theme="dark"] .logo{background:#1f6b63}
:root[data-theme="dark"] a{color:#8fd6c9}
:root[data-theme="dark"] nav button{color:#a8c3b9}
:root[data-theme="dark"] nav button.active{background:#27525b;color:#b6ded2}
:root[data-theme="dark"] nav .number{border-color:#3a6a66}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .stat,:root[data-theme="dark"] .empty{background:#0f3b46;border-color:#1e5059;color:#e8f4ef}
:root[data-theme="dark"] .hero-card{background:#27525b;color:#f6f4ec}
:root[data-theme="dark"] .hero-card p{color:#cdeae0}
:root[data-theme="dark"] .hero-card .tag{background:#178f87;color:#e8f4ef}
:root[data-theme="dark"] input:not([type=radio]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#08232a;color:#e8f4ef;border-color:#3a6a66}
:root[data-theme="dark"] .button.secondary,:root[data-theme="dark"] button.secondary{background:#123840;border-color:#4a7d78;color:#cdeae0}
:root[data-theme="dark"] .tag{background:#164751;color:#a8c3b9}
:root[data-theme="dark"] .tag.green{background:#27525b;color:#b6ded2}
:root[data-theme="dark"] .tag.amber{background:#5b4a28;color:#e6c38e}
:root[data-theme="dark"] .option{border-color:#1e5059}
:root[data-theme="dark"] .option:has(input:checked),:root[data-theme="dark"] .survey-steps .active{background:#27525b;border-color:#4aa39a;color:#cdeae0}
:root[data-theme="dark"] .survey-steps button{background:#0f3b46;color:#a8c3b9;border-color:#1e5059}
:root[data-theme="dark"] .progress{background:#1e5059}
:root[data-theme="dark"] .timeline li{border-color:#3a6a66}
:root[data-theme="dark"] .timeline li:before{border-color:#08232a}
:root[data-theme="dark"] td{border-color:#164751}
:root[data-theme="dark"] .notice,:root[data-theme="dark"] .milestone{background:#123840;border-color:#3a6a66}
:root[data-theme="dark"] .milestone p{color:#a8c3b9}
:root[data-theme="dark"] #fff1ddck{background:#27525b;color:#b6ded2}
:root[data-theme="dark"] #fff1ddck.error{background:#5c3a30;color:#f5b89b}
:root[data-theme="dark"] button:focus-visible,:root[data-theme="dark"] a:focus-visible{outline-color:#e6c38e}
.theme-toggle{white-space:nowrap}
@media(max-width:700px){.theme-toggle{width:100%}}
:root[data-theme="dark"] .context-pill,:root[data-theme="dark"] .triad-card,:root[data-theme="dark"] .triad-btn{background:#0f3b46;border-color:#1e5059;color:#cdeae0}
:root[data-theme="dark"] .context-pill[aria-pressed="true"]{background:#178f87;border-color:#4aa39a;color:#fff}
:root[data-theme="dark"] .triad-btn[aria-pressed="true"][data-triad-pick="most"]{background:#b6ded2;border-color:#b6ded2;color:#0b2d34;box-shadow:0 0 0 2px #b6ded2}
:root[data-theme="dark"] .triad-btn[aria-pressed="true"][data-triad-pick="least"]{background:#f5b89b;border-color:#f5b89b;color:#5c3a30;box-shadow:0 0 0 2px #f5b89b}
:root[data-theme="dark"] .v2-survey .choice:has(input:checked){background:#27525b;color:#f6f4ec;border-color:#b6ded2;box-shadow:inset 4px 0 #b6ded2}
:root[data-theme="dark"] .v2-survey .choice input{accent-color:#b6ded2}
:root[data-theme="dark"] .quadrant-alert{background:#4a3420;border-color:#9a5e19;color:#f8d2bd}
:root[data-theme="dark"] .source-excerpt{background:#08232a;border-color:#1e5059;color:#cdeae0}
:root[data-theme="dark"] .sandbox-result.is-pass{background:#1c4651;border-color:#2e8f7e}
:root[data-theme="dark"] .sandbox-result.is-fail{background:#5c3a30;border-color:#8a4a3e}

:root[data-theme="dark"] #nav:has(.screening-label) > a { color: #a8c3b9; }
:root[data-theme="dark"] #nav:has(.screening-label) > a.active,
:root[data-theme="dark"] .screening-page .plan-nav a[aria-current="page"],
:root[data-theme="dark"] .screening-page .wheel-legend button[aria-pressed="true"],
:root[data-theme="dark"] .screening-page .competency-groups button[aria-pressed="true"] {
    background: #27525b;
    color: #f6f4ec;
    border-color: #b6ded2;
}
:root[data-theme="dark"] #nav:has(.screening-label) > a.active .number,
:root[data-theme="dark"] .screening-page :is(.primary, .button:not(.secondary)) { color: #0b2d34; }
:root[data-theme="dark"] .screening-page :is(.task-editor, .learning-track, .wheel-detail, .plan-nav a:not([aria-current])) {
    background: #0f3b46;
    color: #e8f4ef;
}
:root[data-theme="dark"] .screening-page :is(.wheel-score, .track-body summary, .task-editor > summary::before, .learning-track > summary::before) { color: #b6ded2; }
:root[data-theme="dark"] .screening-page .v2-pagination button[aria-current="page"] { color: #fff; }
:root[data-theme="dark"] .screening-page .field-error { color: #f5b89b; }

/* Abas do Plano de ação como pílulas (tema escuro, espelhando .context-pill) */
:root[data-theme="dark"] .screening-page .plan-nav a:not([aria-current="page"]){background:#0f3b46;border-color:#1e5059;color:#cdeae0;border-radius:999px}
:root[data-theme="dark"] .screening-page .plan-nav a[aria-current="page"]{background:#178f87;border-color:#4aa39a;color:#fff;border-radius:999px}

/* Tela de escolha do questionário — tema escuro */
:root[data-theme="dark"] .survey-choice-card{background:#0f3b46;border-color:#1e5059}
:root[data-theme="dark"] .survey-choice-card:hover{border-color:#4aa39a}
:root[data-theme="dark"] .survey-choice-card strong{color:#e8f4ef}
:root[data-theme="dark"] .survey-choice-kicker{color:#65bdb0}
:root[data-theme="dark"] .survey-choice-go{background:#27525b;color:#cdeae0}
:root[data-theme="dark"] .survey-choice-card:hover .survey-choice-go{background:#178f87;color:#fff}

/* Portal do contratante — tema escuro (faixa-hero permanece petrol; ajustes de contraste) */
:root[data-theme="dark"] .company-portal .stat strong{color:#e8f4ef}
:root[data-theme="dark"] .company-portal .stat span,:root[data-theme="dark"] .company-portal .stat small{color:#8fa6a0}
:root[data-theme="dark"] .company-portal .stat.is-alert strong{color:#f0c07a}
:root[data-theme="dark"] .company-portal fieldset{background:#0b2d34;border-color:#1e5059}
:root[data-theme="dark"] .company-portal .choice{background:#0f3b46;border-color:#1e5059}
:root[data-theme="dark"] .company-portal .choice:has(input:checked){border-color:#4aa39a;box-shadow:inset 3px 0 #4aa39a}
:root[data-theme="dark"] .company-portal .contractor-project-bar{background:#0f3b46}
:root[data-theme="dark"] .company-portal main button.secondary,:root[data-theme="dark"] .company-portal main .button.secondary{color:#9fe0d3}

/* Curadoria do participante — tema escuro */
:root[data-theme="dark"] .curation-summary{color:#e8f4ef}
:root[data-theme="dark"] .curation-priority{background:#0b2d34;border-color:#1e5059}
:root[data-theme="dark"] .curation-axis{color:#e8f4ef}
:root[data-theme="dark"] .curation-score{color:#65bdb0}
:root[data-theme="dark"] .curation-item{background:#0b2d34;border-color:#1e5059}
:root[data-theme="dark"] .curation-item h4 a{color:#8fd6c9}
:root[data-theme="dark"] .curation-roadmap .milestone{background:#123840}
:root[data-theme="dark"] .curation-roadmap .curation-goal{color:#cdeae0}
:root[data-theme="dark"] .workspace-header .eyebrow{color:var(--ev-color-brand-coral,#F5B89B)}
:root[data-theme="dark"] :is(button.primary,.button:not(.secondary)){color:#0b2d34}
:root[data-theme="dark"] :is(.project-card-result,.objective-axes li,.setup-progress,.project-card-bar){background:#0b2d34}
:root[data-theme="dark"] .objective-summary blockquote{background:#08232a;color:#e8f4ef}
:root[data-theme="dark"] .objective-axis-option{border-color:#1e5059}
:root[data-theme="dark"] .objective-axis-option:has(input:checked){background:#164751;border-color:#65bdb0}
:root[data-theme="dark"] :is(.setup-step,.round-project){border-color:#1e5059}
:root[data-theme="dark"] .setup-step-marker{background:#0b2d34;border-color:#3a6a66;color:#a8c3b9}
:root[data-theme="dark"] .setup-step.is-done .setup-step-marker{background:#178f87;border-color:#178f87;color:#fff}
:root[data-theme="dark"] .setup-step.is-current .setup-step-marker{border-color:#e8f4ef;color:#e8f4ef}
:root[data-theme="dark"] :is(.setup-step-body p,.project-card-meta,.project-card-progress p,.project-card-result.is-locked){color:#a8c3b9}
:root[data-theme="dark"] :is(.objective-axes strong,.objective-axis-option strong){color:#65bdb0}
:root[data-theme="dark"] .project-card-result .is-strong{color:#7fd3b5}
:root[data-theme="dark"] .project-card-result .is-weak{color:#f5b89b}
:root[data-theme="dark"] .link-button{color:#8fd6c9}

:root[data-theme="dark"] main .page-head .eyebrow{color:var(--ev-color-brand-coral,#F5B89B)}
:root[data-theme="dark"] main .page-head h1{color:#e8f4ef}
:root[data-theme="dark"] main .page-head .lead{color:#a8c3b9}
:root[data-theme="dark"] .company-portal .project-head-meta dt{color:#8fa6a0}
:root[data-theme="dark"] .company-portal .project-head-meta dd{color:#e8f4ef}
:root[data-theme="dark"] .company-portal .project-head-edit{background:#123840;border-color:#4a7d78;color:#cdeae0}
/* Layout único: menu ativo e abas iguais em admin, contratante e participante */
:root[data-theme="dark"] #nav:has(.screening-label) > a.active,:root[data-theme="dark"] .shell>aside #nav>a[aria-current="page"]{background:#117c78;color:#fff;border-color:#117c78}
:root[data-theme="dark"] :is(.project-tabs a,.screening-page .plan-nav a,main .context-bar a.context-pill){background:transparent;border-color:#4a7d78;color:#9fe0d3}
:root[data-theme="dark"] :is(.project-tabs a[aria-current="page"],.screening-page .plan-nav a[aria-current="page"],main .context-bar a.context-pill[aria-current="page"]){background:#117c78;border-color:#117c78;color:#fff}
:root[data-theme="dark"] :is(.project-tabs a,.screening-page .plan-nav a):not([aria-current]):hover{background:#123840;border-color:#65bdb0;color:#e8f4ef}
:root[data-theme="dark"] main .context-bar a.context-pill:not([aria-current]):hover{background:#123840;border-color:#65bdb0;color:#e8f4ef}
:root[data-theme="dark"] .progress-native::-webkit-progress-bar{background:#1e5059}
:root[data-theme="dark"] .progress-native::-webkit-progress-value{background:#4aa39a}
:root[data-theme="dark"] .progress-native::-moz-progress-bar{background:#4aa39a}
:root[data-theme="dark"] .progress-native{background:#1e5059}
:root[data-theme="dark"] .project-objective .objective-axis-option{background:#0b2d34;border-color:#1e5059;color:#e8f4ef}
:root[data-theme="dark"] .project-objective .objective-axis-option:has(input:checked){background:#164751;border-color:#65bdb0}
:root[data-theme="dark"] .project-objective .objective-axes-field legend{color:#e8f4ef}
:root[data-theme="dark"] .project-objective fieldset.objective-axes-field{background:none}

:root[data-theme="dark"] .import-drop{background:#123840;border-color:#4a7d78}
:root[data-theme="dark"] .import-drop:hover,:root[data-theme="dark"] .import-drop.is-dragging,:root[data-theme="dark"] .import-drop:focus-within{background:#16454d;border-color:#4aa39a}
:root[data-theme="dark"] .import-step,:root[data-theme="dark"] .import-stats span{background:#0f2f36;border-color:#2c5a5f}
:root[data-theme="dark"] .import-step-mark{background:#1e5059;color:#cdeae0}
:root[data-theme="dark"] .import-message{background:#123840}
:root[data-theme="dark"] .import-message p,:root[data-theme="dark"] .import-step small,:root[data-theme="dark"] .import-table small{color:#a8c3b9}
:root[data-theme="dark"] .import-stats strong{color:#e8f4ef}
:root[data-theme="dark"] .import-table tr.has-error td{background:#3a2024}
:root[data-theme="dark"] .import-errors{color:#f4a39a}
:root[data-theme="dark"] .email-template-tabs button.active{background:#1f4a4f;color:#e8f4ef;border-color:#3e7f76}

:root[data-theme="dark"] .journey-ring{background:conic-gradient(#4aa39a calc(var(--ring)*1%),#1e5059 0)}
:root[data-theme="dark"] .journey-ring>div{background:#123840}
:root[data-theme="dark"] .journey-ring strong,:root[data-theme="dark"] .journey-ring-title{color:#e8f4ef}
:root[data-theme="dark"] .journey-ring span,:root[data-theme="dark"] .journey-ring-note,:root[data-theme="dark"] .journey-card small,:root[data-theme="dark"] .journey-path-step small,:root[data-theme="dark"] .journey-path-head p,:root[data-theme="dark"] .journey-evolution p,:root[data-theme="dark"] .journey-axis-label small,:root[data-theme="dark"] .journey-axis-score,:root[data-theme="dark"] .journey-step-sub,:root[data-theme="dark"] .journey-reasons,:root[data-theme="dark"] .journey-resources small,:root[data-theme="dark"] .journey-cta p,:root[data-theme="dark"] .journey-panorama>p,:root[data-theme="dark"] .journey-moment-lead{color:#a8c3b9}
:root[data-theme="dark"] .journey-card,:root[data-theme="dark"] .journey-step,:root[data-theme="dark"] .journey-path-step{background:#0f2f36;border-color:#2c5a5f;color:#e8f4ef}
:root[data-theme="dark"] .journey-card:hover,:root[data-theme="dark"] .journey-step.is-current,:root[data-theme="dark"] .journey-path-step.is-current{border-color:#4aa39a}
:root[data-theme="dark"] .journey-axis-bar{background:#1e5059}
:root[data-theme="dark"] .journey-cta{background:#123840;color:#e8f4ef}
:root[data-theme="dark"] .journey-path-mark,:root[data-theme="dark"] .journey-step-icon{background:#1e5059;color:#cdeae0}
:root[data-theme="dark"] .journey-step.is-done .journey-step-icon{background:#1e5059;color:#4aa39a}
:root[data-theme="dark"] .journey-step.is-current .journey-step-icon{background:#5a3527;color:#F5B89B}
:root[data-theme="dark"] .journey-step-details summary,:root[data-theme="dark"] .journey-path-step a,:root[data-theme="dark"] .journey-card>span{color:#4aa39a}
:root[data-theme="dark"] .journey-mini-axes b{color:#a8c3b9}
:root[data-theme="dark"] .journey-exp-group h3 small{color:#a8c3b9}

:root[data-theme="dark"] .balance-track{background:rgba(255,255,255,.16)}
:root[data-theme="dark"] .balance-track i,:root[data-theme="dark"] .lever-chip.is-positive::before,:root[data-theme="dark"] .lever-row.is-positive .lever-track i{background:#1FB0A1}
:root[data-theme="dark"] .lever-chip.is-negative::before,:root[data-theme="dark"] .lever-row.is-negative .lever-track i{background:#D06A40}
:root[data-theme="dark"] .balance-floor{background:#e8f4ef}
:root[data-theme="dark"] .lever-track{background:linear-gradient(90deg,transparent calc(50% - 1px),#a8c3b9 calc(50% - 1px),#a8c3b9 calc(50% + 1px),transparent calc(50% + 1px)),rgba(255,255,255,.06)}
:root[data-theme="dark"] .balance-row small,:root[data-theme="dark"] .balance-note,:root[data-theme="dark"] .journey-moment-obs,:root[data-theme="dark"] .lever-axis{color:#a8c3b9}
:root[data-theme="dark"] .lever-chip{color:#e8f4ef;background:rgba(255,255,255,.08)}

:root[data-theme="dark"] .driver-popover.elevuna-tour{background:#0b2d34;color:#e8f4ef;box-shadow:0 18px 50px rgba(0,0,0,.45)}
:root[data-theme="dark"] .elevuna-tour .driver-popover-title{color:#e8f4ef}
:root[data-theme="dark"] .elevuna-tour .driver-popover-description,:root[data-theme="dark"] .elevuna-tour .driver-popover-progress-text,:root[data-theme="dark"] .elevuna-tour .driver-popover-close-btn{color:#a8c3b9}
:root[data-theme="dark"] .elevuna-tour .driver-popover-footer button{background:#0b2d34;border-color:#1e5059;color:#e8f4ef}
:root[data-theme="dark"] .elevuna-tour .driver-popover-footer .driver-popover-next-btn{background:#65bdb0;border-color:#65bdb0;color:#08232a}
:root[data-theme="dark"] .elevuna-tour .driver-popover-arrow-side-left.driver-popover-arrow{border-left-color:#0b2d34}
:root[data-theme="dark"] .elevuna-tour .driver-popover-arrow-side-right.driver-popover-arrow{border-right-color:#0b2d34}
:root[data-theme="dark"] .elevuna-tour .driver-popover-arrow-side-top.driver-popover-arrow{border-top-color:#0b2d34}
:root[data-theme="dark"] .elevuna-tour .driver-popover-arrow-side-bottom.driver-popover-arrow{border-bottom-color:#0b2d34}
