/* FairShare optional dark theme. Light remains the default; theme preference is local only. */
/* Shared toolbar alignment (both themes). */
.toolbar-action-group{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-left:auto}
.toolbar-action-group>button{min-height:41px}
.toolbar-action-group>.toolbar-more{align-self:flex-end;margin:0}
.toolbar>.toolbar-more{align-self:flex-end;margin:0}
.toolbar-more>summary{display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:9px 13px;line-height:1.2}
.toolbar>button:not([hidden]){min-height:41px}
.toolbar>.field select{min-height:41px}
.theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:33px;border:1px solid #95bec3;border-radius:999px;background:#e4f1ef;color:#194c57;font-weight:700;font-size:11px;padding:6px 11px;cursor:pointer;white-space:nowrap}
.theme-switch:hover{background:#d3e8e4;border-color:#73aaa9}
.theme-switch .theme-icon{font-size:16px;line-height:1}
.brandbar .theme-switch,.topbar .theme-switch,header .bar .theme-switch{color:#e1f4f3;background:#224d5e;border-color:#477580}
.brandbar .theme-switch:hover,.topbar .theme-switch:hover,header .bar .theme-switch:hover{background:#316577}
.topbar .theme-switch{flex:none;margin-left:6px}
.theme-standalone{display:flex;justify-content:flex-end;margin:-9px 0 12px}
.theme-switch:focus-visible{outline:3px solid #7ec2c9;outline-offset:3px}
@media(max-width:760px){.theme-switch{font-size:10px;min-height:30px;padding:5px 9px}.brandright .theme-switch{max-width:125px}.toolbar>.toolbar-more{margin-left:0}.topbar{flex-wrap:wrap}.topbar .theme-switch{margin-left:auto}}

html[data-theme="dark"]{
 color-scheme:dark;
 --bg:#101d28;--ink:#e1edf2;--muted:#b1c4cf;--line:#35505d;--navy:#122d3d;--teal:#5ac7c3;--blue:#87bae4;--purple:#b3a0db;--gold:#deb770;--red:#e58c86;
 --band-current:#193b38;--band-current-strong:#234e48;--band-near:#302940;--band-near-strong:#423455;--band-forecast:#1c303f;--band-forecast-strong:#294458;
 background:#101d28;color:var(--ink);
}
html[data-theme="dark"] body{background:linear-gradient(180deg,#101e2a 0,#132532 290px,#101b26 100%)!important;color:var(--ink)}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,
html[data-theme="dark"] .name,html[data-theme="dark"] strong{color:inherit}
html[data-theme="dark"] .brandbar,html[data-theme="dark"] .topbar,html[data-theme="dark"] header:has(>.bar){background:linear-gradient(115deg,#0c2937,#174451);color:#f0f8fa}
html[data-theme="dark"] .brandmark{background:transparent}
html[data-theme="dark"] .hero{background:linear-gradient(90deg,#172e3bdd,#172e3bf2 34%,#172f3bab 75%,#203c43a8),url('/wenatchee-ridge.svg') right center/cover no-repeat;border-color:#345761}
html[data-theme="dark"] .hero p,html[data-theme="dark"] .hero .eyebrow{color:#bbdfe1}
html[data-theme="dark"] .hero .policy{background:#183540;border-color:#42616b}
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .modalhead,
html[data-theme="dark"] .public-panel,
html[data-theme="dark"] .gov-year,
html[data-theme="dark"] .gov-next-cycle,
html[data-theme="dark"] .studio-panel,
html[data-theme="dark"] .eq-panel,
html[data-theme="dark"] .proposal-card{
 background:#192d3a!important;color:#e1edf2;border-color:#375361!important;box-shadow:0 7px 24px #0002;
}
html[data-theme="dark"] .modalhead{border-bottom-color:var(--line)}
html[data-theme="dark"] .tablewrap,
html[data-theme="dark"] .coverage-board,
html[data-theme="dark"] .coverage-matrix td:first-child{background:#192d3a!important;border-color:#35505d;color:var(--ink)}
html[data-theme="dark"] th,
html[data-theme="dark"] .coverage-matrix th{background:#223b49!important;color:#c4d7df!important;border-color:#45606c}
html[data-theme="dark"] td{border-color:#35505d}
html[data-theme="dark"] tbody tr:hover td{background:#223e4a}
html[data-theme="dark"] .tablewrap tbody tr[data-year-band]>td,
html[data-theme="dark"] .coverage-matrix tbody td[data-year-band]{color:var(--ink)}
html[data-theme="dark"] .coverage-matrix tr:hover td:first-child{background:#24404c!important}
html[data-theme="dark"] .coverage-matrix th:first-child{background:#223b49!important}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{
 background:#112632!important;color:#eef7fa!important;border-color:#54717d!important;
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#98acb8;opacity:1}
html[data-theme="dark"] option,html[data-theme="dark"] optgroup{background:#152c38;color:#ecf5f9}
html[data-theme="dark"] button:not(.primary):not(.tab.active):not(.theme-switch):not(.coverage-event),
html[data-theme="dark"] .toolbar-more>summary,html[data-theme="dark"] .tabs-more>summary,
html[data-theme="dark"] .extra-views>summary{
 background:#243e4b;color:#e4eff3;border-color:#496674;
}
html[data-theme="dark"] button:hover:not(.primary):not(.theme-switch):not(:disabled),html[data-theme="dark"] .toolbar-more>summary:hover{background:#305461}
html[data-theme="dark"] button.primary,html[data-theme="dark"] .primary,
html[data-theme="dark"] .tabs .tab.active{background:#176a76!important;border-color:#358b96!important;color:#fff!important}
html[data-theme="dark"] .tabs{border-bottom-color:#34505c}
html[data-theme="dark"] .tab:not(.active){background:#203744;color:#bed4dd;border-color:#395562}
html[data-theme="dark"] .toolbar-more-menu,html[data-theme="dark"] .tabs-more-menu,
html[data-theme="dark"] .extra-views-menu{background:#1c3441;border-color:#41616e;box-shadow:0 12px 34px #0006;color:var(--ink)}
html[data-theme="dark"] .toolbar-more-menu button:hover,html[data-theme="dark"] .tabs-more-menu button:hover{background:#305260}
html[data-theme="dark"] .toolbar-more-menu a,html[data-theme="dark"] a{color:#82ddd5}
html[data-theme="dark"] .overview-spotlight,html[data-theme="dark"] .gov-panel,
html[data-theme="dark"] .marn-pdf-control,html[data-theme="dark"] .studio-top,
html[data-theme="dark"] .eq-hero,html[data-theme="dark"] .rule-switch-emphasis{
 background:#1d3a44!important;border-color:#42616a!important;color:var(--ink)
}
html[data-theme="dark"] .overview-spotlight p,html[data-theme="dark"] .gov-heading p,
html[data-theme="dark"] .gov-explain,html[data-theme="dark"] .gov-cycle-date,
html[data-theme="dark"] .gov-cycle-year,html[data-theme="dark"] .gov-heading h3,
html[data-theme="dark"] .rule-switch small{color:#bad3d9}
html[data-theme="dark"] .coverage-toggle,html[data-theme="dark"] .coverage-summary>div{
 background:#213b47;border-color:#45626d;color:#dfebf1
}
html[data-theme="dark"] .coverage-summary strong,html[data-theme="dark"] .coverage-summary small,
html[data-theme="dark"] .coverage-year-note,html[data-theme="dark"] .coverage-legend,
html[data-theme="dark"] .coverage-person-hint{color:#c5d8df}
html[data-theme="dark"] .coverage-event,
html[data-theme="dark"] .coverage-event.major,
html[data-theme="dark"] .coverage-event.standard{background:#284352!important;color:#f0f8fa!important}
html[data-theme="dark"] .coverage-event small{color:#c9dfe5}
html[data-theme="dark"] .notice{background:#443723;border-left-color:#d4ae70;color:#f1dfbb}
html[data-theme="dark"] .notice.info{background:#1c4051;border-left-color:#6ab5cc;color:#d4ebf3}
html[data-theme="dark"] .notice.good{background:#214739;border-left-color:#65b797;color:#dbf5e8}
html[data-theme="dark"] .alert .icon{background:#274858;color:#e7f4f8}
html[data-theme="dark"] .setting{border-bottom-color:#355260}
html[data-theme="dark"] .daybox{background:#2c4351;color:#e2ebf1}
html[data-theme="dark"] .daybox.major{background:#443459;color:#e8dbf6}
html[data-theme="dark"] .daybox.standard{background:#285347;color:#d2f3e4}
html[data-theme="dark"] .heat .cell:not(.work):not(.newyear):not(.vacation):not(.other){background:#2a4050;color:#bcd1d9}
html[data-theme="dark"] .track{background:#2d4955}
html[data-theme="dark"] .contractor-row td,html[data-theme="dark"] .total td{background:#233a4a}
html[data-theme="dark"] .scenario-note,html[data-theme="dark"] .eq-check,html[data-theme="dark"] .eq-exception,
html[data-theme="dark"] .gov-controls input,html[data-theme="dark"] .gov-controls select{background:#233f4c;color:#dce9ee;border-color:#45616c}
html[data-theme="dark"] .gov-draft,html[data-theme="dark"] .badge:not(.major):not(.standard):not(.active):not(.error){background:#31505e;color:#ecf3f7}
html[data-theme="dark"] .workflow-pill{border-color:#4e727e}
html[data-theme="dark"] .eq-numbers,html[data-theme="dark"] .eq-footnote,
html[data-theme="dark"] .eq-physician,html[data-theme="dark"] .studio-heading p,
html[data-theme="dark"] .eq-heading p,html[data-theme="dark"] .studio-solve-note{color:#c5d7df}
html[data-theme="dark"] .eq-numbers b,html[data-theme="dark"] .eq-check strong{color:#edf7fa}
html[data-theme="dark"] .studio-readonly,html[data-theme="dark"] .studio-status{background:#31505a;color:#d8f1ea;border-color:#537882}
html[data-theme="dark"] .foot,html[data-theme="dark"] .footer{background:#172b36;color:#b6cbd4;border-color:#37525d}
html[data-theme="dark"] .footer{background:transparent}
html[data-theme="dark"] .signin{background:linear-gradient(145deg,#172f3c,#112633);color:var(--ink)}
html[data-theme="dark"] .signin h2{color:#edf5f8}
html[data-theme="dark"] .signin .field label,html[data-theme="dark"] .signin .subtitle,
html[data-theme="dark"] .signin-footer{color:#c3d7dd}
html[data-theme="dark"] .signin-footer{border-top-color:#45616a}
html[data-theme="dark"] .signin .error{background:#482d33;color:#ffd1d1}
html[data-theme="dark"] .story{background:linear-gradient(142deg,#0c293b,#155060 80%,#1b615f)}
html[data-theme="dark"] .public-intro{background:linear-gradient(115deg,#102c3d,#1c5054)}
html[data-theme="dark"] .public-toolbar{color:var(--muted)}
html[data-theme="dark"] .public-toolbar select,html[data-theme="dark"] .public-toolbar button,
html[data-theme="dark"] .public-row select{background:#193541;color:var(--ink);border-color:#4c6875}
html[data-theme="dark"] .public-panel h2 span,html[data-theme="dark"] .heat .month{color:#c1d5dc}
html[data-theme="dark"] .heading p,html[data-theme="dark"] form label:not(.check),
html[data-theme="dark"] .help,html[data-theme="dark"] .section-heading span{color:#c2d7df}
html[data-theme="dark"] .tag{background:#2e4b59;color:#e4f1f6}
html[data-theme="dark"] .delete-user{background:#4d3039;color:#ffcccc}
html[data-theme="dark"] .brandright #engine-status{background:#224656;color:#e3f4f6}
html[data-theme="dark"] .brandright .header-internal{background:#193a49;color:#d0e1e7}
@media print{
 html[data-theme="dark"],html[data-theme="dark"] body{color-scheme:light!important;background:white!important;color:#152e3e!important}
 html[data-theme="dark"] .card,html[data-theme="dark"] .modal,html[data-theme="dark"] .tablewrap{background:#fff!important;color:#152e3e!important;border-color:#dce5eb!important;box-shadow:none!important}
 html[data-theme="dark"] th,html[data-theme="dark"] .coverage-matrix th{background:#eff4f6!important;color:#526b77!important}
 html[data-theme="dark"] td{color:#152e3e!important}
 .theme-switch,.theme-standalone{display:none!important}
}

/* Keep shared actions horizontally aligned on narrow phone viewports. */
@media(max-width:760px){
 .toolbar-action-group{display:flex;width:100%;gap:6px;margin-left:0;justify-content:space-between;flex-wrap:nowrap}
 .toolbar-action-group>button{flex:0 1 auto;padding:8px 7px;font-size:10px;white-space:nowrap}
 .toolbar-action-group>.toolbar-more>summary{padding:8px 7px;font-size:10px;min-height:41px;white-space:nowrap}
}
