/* A cor da identidade é independente do fundo claro/escuro. */
:root{--identity-hue:235;--identity-level:55%;--identity-hover-level:50%;--identity-on:#fff;--identity-solid:hsl(var(--identity-hue) 72% var(--identity-level));--identity-hover:hsl(var(--identity-hue) 72% var(--identity-hover-level));--identity-text:hsl(var(--identity-hue) 70% 25%);--identity-soft:hsl(var(--identity-hue) 65% 96%);--identity-border:hsl(var(--identity-hue) 50% 85%);--identity-pale:hsl(var(--identity-hue) 80% 79%);--identity-glow:hsl(var(--identity-hue) 72% 50% / .2);--green:var(--identity-text)}
html[data-theme="navy"][data-accent]{--identity-text:hsl(var(--identity-hue) 75% 79%);--identity-soft:hsl(var(--identity-hue) 28% 23%);--identity-border:hsl(var(--identity-hue) 34% 38%);--green:var(--identity-text)}
html[data-accent] .primary,html[data-accent] nav button.active,html[data-accent] .logo,html[data-accent] .stat.featured{background:var(--identity-solid);border-color:var(--identity-solid);color:var(--identity-on)}
html[data-accent] .primary:hover{background:var(--identity-hover);border-color:var(--identity-hover);box-shadow:0 5px 16px var(--identity-glow)}
html[data-accent] .primary,html[data-accent] .stat.featured{box-shadow:0 5px 18px var(--identity-glow)}
html[data-accent] .stat.featured .label,html[data-accent] .stat.featured .note{color:var(--identity-on);opacity:.85}html[data-accent] .stat.featured .label>span{color:var(--identity-on);background:color-mix(in srgb,var(--identity-on) 12%,transparent)}
html[data-accent] .stat.featured .bar{background:color-mix(in srgb,var(--identity-on) 18%,transparent)}html[data-accent] .stat.featured .bar i{background:var(--identity-on)}
html[data-accent] .chip,html[data-accent] .formula,html[data-accent] .report-table .rank-tag,html[data-accent] .theme-control>button[aria-pressed="true"]{background:var(--identity-soft);border-color:var(--identity-border);color:var(--identity-text)}
html[data-accent] .text-btn:not(.danger),html[data-accent] .attendance{color:var(--identity-text)}
html[data-accent] .mini-bar{background:var(--identity-soft)}html[data-accent] .mini-bar i{background:var(--identity-solid)}
html[data-accent] .stat:first-child .label>span{background:var(--identity-soft);color:var(--identity-text)}
html[data-accent] .roster input,html[data-accent] .report-room input{accent-color:var(--identity-solid)}
html[data-accent] input:focus,html[data-accent] select:focus{border-color:var(--identity-solid);box-shadow:0 0 0 3px var(--identity-glow)}
html[data-accent] button:focus-visible,html[data-accent] a:focus-visible,html[data-accent] input:focus-visible,html[data-accent] select:focus-visible{outline-color:var(--identity-solid)}
html[data-accent] .report-room:has(input:checked),html[data-accent] .diary-room.is-selected>td{background:var(--identity-soft);border-color:var(--identity-border)}
html[data-accent] .diary-room.is-selected>td:first-child{box-shadow:inset 4px 0 var(--identity-solid)}html[data-accent] .diary-room.is-selected>td strong{color:var(--identity-text)}
html[data-accent] .diary-room:hover>td{background:var(--identity-soft)}html[data-accent] .diary-total:hover>td{background:var(--identity-soft)}html[data-accent] .diary-room:focus-visible,html[data-accent] .diary-total:focus-visible{outline-color:var(--identity-solid)}
html[data-accent] .resources-panel{border-color:var(--identity-border)}
html[data-accent] .report-highlight.frequency{background:var(--identity-soft);border-color:var(--identity-border)}html[data-accent] .report-highlight.frequency .big-value,html[data-accent] .report-highlight.frequency .eyebrow{color:var(--identity-text)}html[data-accent] .report-highlight.frequency .winner-badge{background:var(--identity-soft);color:var(--identity-text);border-color:var(--identity-border)}
html[data-accent] .auth-hero h2 span,html[data-accent] .auth-hero .hero-tag{color:var(--identity-pale)}html[data-accent] .auth-hero:after{border-color:hsl(var(--identity-hue) 40% 50% / .13);box-shadow:0 0 0 70px hsl(var(--identity-hue) 40% 50% / .04),0 0 0 140px hsl(var(--identity-hue) 40% 50% / .025)}
html[data-accent] .auth-card .primary{box-shadow:0 5px 16px var(--identity-glow)}
html[data-accent] .pwa-install-trigger{color:var(--identity-text);border-color:var(--identity-border)}
html[data-accent] .theme-control{gap:3px}html[data-accent] header .badge{margin-right:285px}.theme-control>#identity-toggle{border-left:1px solid var(--line);border-radius:0 7px 7px 0;margin-left:2px}.theme-control .identity-current{display:block;width:14px;height:14px;border-radius:50%;background:var(--identity-solid);box-shadow:0 0 0 2px var(--identity-border)}.theme-control .identity-toggle-label{font-size:10px}.theme-control .identity-panel[hidden]{display:none}.theme-control .identity-panel{position:absolute;top:calc(100% + 10px);right:0;width:275px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #e1e6f1;border-radius:13px;box-shadow:0 12px 40px #10213a20;padding:19px;z-index:14;text-align:left}.identity-panel h3{font-size:12px;margin:0 0 7px;color:#34425d}.identity-panel p{font-size:10px;line-height:1.7;color:#8b98ae;margin:0 0 16px}.identity-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.theme-control .identity-swatches button{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0;border:1px solid transparent;border-radius:9px;padding:10px 2px;background:none;color:#59687e}.theme-control .identity-swatches button[aria-pressed="true"]{background:var(--identity-soft);border-color:var(--identity-border);color:var(--identity-text)}.theme-control .identity-swatches button:hover{background:var(--identity-soft)}.theme-control .identity-swatch{width:23px;height:23px;border-radius:50%;display:block;background:hsl(var(--swatch-hue) 72% var(--swatch-level));box-shadow:inset 0 0 0 1px #00000012}.theme-control .identity-swatches .palette-label{font-size:8px;font-weight:600;line-height:1.4}.appearance-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-theme="navy"] .identity-panel{background:#17243b;border-color:#344560;box-shadow:0 12px 40px #0004}html[data-theme="navy"] .identity-panel h3{color:#e1e9f9}html[data-theme="navy"] .identity-panel p{color:#9baac7}html[data-theme="navy"] .identity-swatches button{color:#afbdd5}
@media(max-width:750px){html[data-accent] header .badge{margin-right:0}.theme-control .identity-toggle-label{display:none}.theme-control>#identity-toggle{padding:7px 9px}.theme-control .identity-panel{width:265px;padding:17px}.theme-control .identity-swatches button{padding:9px 2px}.theme-control .identity-swatches .palette-label{font-size:8px}}
@media print{.identity-panel,.theme-control{display:none!important}html[data-accent] .report-highlight.frequency{background:#f7f8fc!important;border-color:#dce1eb!important}html[data-accent] .report-highlight.frequency .big-value,html[data-accent] .report-highlight.frequency .eyebrow{color:#384f9a!important}}
html[data-accent] .total td{background:var(--identity-soft);color:var(--identity-text);border-color:var(--identity-border)}
@media print{html[data-accent] .total td{background:#f3f5f8!important;color:#27344b!important;border-color:#e2e7ee!important}}
@media(min-width:751px) and (max-width:1100px){html[data-accent] header .badge{display:none}}
