/* Light appearance is a separate layer. The original dark palette remains intact. */
:root{color-scheme:dark}
:root[data-theme="light"]{color-scheme:light;--navy:#f5f7fa;--panel:#edf1f6;--panel2:#ffffff;--line:#d3dae5;--red:#bd101b;--red-hover:#a30b15;--white:#142139;--muted:#526178;--success:#17633b;--warning:#83500c;--border:#d3dae5}
.prototype-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px}
.theme-toggle svg{width:19px;height:19px}.demo-label-short{display:none}
html[data-theme="light"] body{background:#e9edf3;color:var(--white)}
html[data-theme="light"] .phone{border-color:#cfd7e2;box-shadow:0 12px 40px #1421390c}
html[data-theme="light"] .screen{scrollbar-color:#b3bfce transparent}
html[data-theme="light"] .logo-small,html[data-theme="light"] .logo-large{filter:brightness(0) saturate(100%);opacity:.9}
html[data-theme="light"] .chip-button{background:#fff;border-color:#c6cfdd}
html[data-theme="light"] .chip-button:hover{background:#edf1f6;border-color:#8999af}
html[data-theme="light"] .workspace-switch .chip-button[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:#fff}
html[data-theme="light"] .tag,html[data-theme="light"] .avatar{border-color:#8999af}
html[data-theme="light"] .guide .guide-label{color:var(--red)}
html[data-theme="light"] .card,html[data-theme="light"] .session-row,html[data-theme="light"] .metric{border-color:var(--line);box-shadow:0 2px 7px #14213904}
html[data-theme="light"] .metric{background:#fff}
html[data-theme="light"] .btn{background:var(--red);color:#fff}
html[data-theme="light"] .btn:hover{background:var(--red-hover)}
html[data-theme="light"] .btn.secondary{background:#fff;border-color:#8190a6;color:var(--white)}
html[data-theme="light"] .btn.secondary:hover{background:#edf1f6}
html[data-theme="light"] .btn.subtle{background:#edf1f6;border-color:#c6cfdd;color:var(--white)}
html[data-theme="light"] .input{background:#fff;border-color:#8190a6;color:var(--white)}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#64748b;opacity:1}
html[data-theme="light"] .text-button,html[data-theme="light"] .quiet-button{color:#3e506c}
html[data-theme="light"] .demo-note{background:#edf1f6;border-color:#b0bdce;color:#526178}
html[data-theme="light"] .notice{background:#edf1f6;border-color:#ccd5e2}
html[data-theme="light"] .error{background:#fff0f0;border-color:#c8656b;color:#971b26}
html[data-theme="light"] .radio-row{background:#fff;border-color:#a6b3c5}
html[data-theme="light"] .radio-row:has(input:checked){background:#fff0f1;border-color:var(--red)}
html[data-theme="light"] .badge,html[data-theme="light"] .engine-badge{border-color:#a6b3c5;background:#f5f7fa;color:#35465e}
html[data-theme="light"] .badge.attended,html[data-theme="light"] .engine-badge.validated{border-color:#86b89a;background:#edf8f1;color:var(--success)}
html[data-theme="light"] .badge.absent{border-color:#c9ac75;background:#fff7e9;color:var(--warning)}
html[data-theme="light"] .badge.missed,html[data-theme="light"] .engine-badge.void{border-color:#d28d93;background:#fff0f1;color:#9d2530}
html[data-theme="light"] .badge.neutral{border-color:#a6b3c5;background:#edf1f6;color:#526178}
html[data-theme="light"] .bottom-nav{background:#fff;border-color:var(--line)}
html[data-theme="light"] .nav-button.active{color:var(--red);border-bottom-color:var(--red)}
html[data-theme="light"] .nav-button.active svg{color:var(--red)}
html[data-theme="light"] .segmented{border-color:#a6b3c5;background:#fff}
html[data-theme="light"] .filters button{border-color:#a6b3c5;background:#fff}
html[data-theme="light"] .filters button[aria-pressed="true"]{border-color:#142139;background:#142139;color:#fff}
html[data-theme="light"] .day-button{border-color:#c6cfdd;background:#fff}
html[data-theme="light"] .day-button.today{border-color:#526178}
html[data-theme="light"] .day-button.selected{background:var(--red);border-color:var(--red);color:#fff}
html[data-theme="light"] .day-button.selected .dot{background:#fff}
html[data-theme="light"] .calendar-empty,html[data-theme="light"] .empty-state,html[data-theme="light"] .engine-empty{border-color:#a6b3c5}
html[data-theme="light"] .scan-box{background:#e9eef5;border-color:#ccd5e2}
html[data-theme="light"] .scan-target{border-color:#6b7d97}
html[data-theme="light"] .score-card{background:linear-gradient(130deg,#fff 25%,#edf1f7)}
html[data-theme="light"] .score-ring .track{stroke:#dce3ed}
html[data-theme="light"] .score-ring .value{stroke:var(--red)}
html[data-theme="light"] .engine-bar{background:#dce3ed}
html[data-theme="light"] .engine-bar>span{background:var(--red)}
html[data-theme="light"] .dialog{background:#fff;border-color:#c6cfdd;box-shadow:0 20px 70px #14213933}
html[data-theme="light"] .dialog::backdrop{background:#14213966}
html[data-theme="light"] .toast{background:#142139;color:#fff;box-shadow:0 4px 24px #14213922}
html[data-theme="light"] .admin-tabs button[aria-current="page"]{background:#fff;color:var(--red);border-bottom-color:var(--red)}
html[data-theme="light"] .admin-session:hover{background:#edf1f6;border-color:#8999af}
html[data-theme="light"] .technique-chips span{border-color:#b0bdce;background:#fff}
html[data-theme="light"] .demo-kiosk-card{background:#fff;border-color:#c6cfdd;box-shadow:0 4px 20px #14213908}
html[data-theme="light"] .demo-kiosk-card a{color:#244f88}
html[data-theme="light"] .demo-kiosk-success{color:var(--success)}
html[data-theme="light"] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #255dc4;outline-offset:3px}
@media(max-width:800px){.prototype-bar{flex-wrap:wrap}.prototype-actions{gap:6px;margin-left:auto}.theme-toggle .theme-label,.demo-label-full{display:none}.demo-label-short{display:inline}.prototype-actions .theme-toggle{width:44px;padding:8px}.prototype-actions .chip-button{min-height:44px}.prototype-bar{column-gap:6px}}
@media(max-width:480px){html[data-theme="light"] body{background:var(--navy)}html[data-theme="light"] .phone{box-shadow:none}}

/* DFA screen texture, matched to the supplied navy diagonal-stripe reference. */
:root{--screen-background:#00182e;--screen-stripe:#182e43}
:root[data-theme="light"]{--screen-background:#f0f2f5;--screen-stripe:#dfe4ea}
@media screen{
 .phone{background-color:var(--screen-background);background-image:repeating-linear-gradient(135deg,transparent 0 7px,var(--screen-stripe) 7px 9px)}
 html[data-theme="dark"] .btn.secondary,html[data-theme="dark"] .radio-row,html[data-theme="dark"] .avatar{background-color:var(--panel2)}
 html[data-theme="dark"] .radio-row:has(input:checked){background-color:#29131d}
 html[data-theme="dark"] .filters button{background-color:var(--panel2)}
 html[data-theme="dark"] .filters button[aria-pressed="true"]{background-color:var(--panel)}
}
