.annual-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:10px; }
.annual-toolbar h2 { font-size:20px; font-weight:500; letter-spacing:-.4px; margin:0 12px 5px 0; }
.annual-filters { display:flex; align-items:flex-end; gap:8px; margin-left:auto; }
.annual-filters label { margin:0; min-width:90px; font-size:11px; color:var(--muted); }
.annual-filters label:last-child { min-width:150px; }
.annual-scope { padding-bottom:8px; font-size:11px; color:var(--muted); white-space:nowrap; }
.annual-scroll { max-width:100%; overflow:auto; max-height:calc(100dvh - var(--annual-top,35px) - 74px); min-height:0; border:1px solid var(--surface-outline); border-radius:8px; background:var(--paper); scrollbar-color:var(--line) transparent; scrollbar-width:thin; }
.annual-scroll:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
.annual-table { width:100%; border-collapse:separate; border-spacing:0; table-layout:auto; font-size:11px; line-height:1.25; font-variant-numeric:tabular-nums; }
.annual-table th,.annual-table td { padding:4px 6px; height:25px; min-width:54px; text-align:right; white-space:nowrap; border-bottom:1px solid var(--surface-outline); background:var(--paper); }
.annual-table thead th { position:sticky; top:0; z-index:3; font-size:11px; font-weight:500; color:var(--muted); background:var(--paper); box-shadow:0 1px var(--surface-outline); }
.annual-table tr > :first-child { position:sticky; left:0; z-index:2; text-align:left; min-width:156px; max-width:176px; overflow:hidden; text-overflow:ellipsis; box-shadow:1px 0 var(--surface-outline); }
.annual-table thead tr > :first-child { z-index:4; }
.annual-table tbody th[scope=row] { font-weight:450; }
.annual-table .annual-plan { color:var(--muted); border-right:1px solid var(--surface-outline); }
.annual-table .annual-total { font-weight:600; background:var(--accent-soft); color:var(--on-accent-soft); }
.annual-table .annual-average { color:var(--muted); }
.annual-table .annual-section th { padding:7px 8px 5px; height:28px; font-size:12px; font-weight:600; background:var(--bg); }
.annual-section th span { font-size:10px; color:var(--muted); font-weight:400; margin-left:6px; }
.annual-table .annual-summary > * { font-weight:600; border-top:1px solid var(--surface-outline); background:var(--bg); }
.annual-table tfoot .annual-summary > * { background:var(--accent-soft); color:var(--on-accent-soft); border-bottom:0; }
.annual-table .annual-over { background:var(--ui-danger-bg,#fff0ec); color:var(--danger,#963b25); }
.annual-table .annual-within { color:var(--on-accent-soft); }
.annual-dash { color:var(--muted); opacity:.65; }
.annual-table .annual-empty { text-align:left; color:var(--muted); padding:14px; }
.annual-legend { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin-top:8px; color:var(--muted); font-size:11px; }
.annual-legend > span { display:inline-flex; gap:7px; align-items:center; }
.annual-legend-over { width:9px; height:9px; border-radius:3px; background:#f1ae99; }
@media(hover:hover) { .annual-table tbody tr:not(.annual-section):not(.annual-summary):hover > * { box-shadow:inset 0 0 0 9999px #15151504; } }
@media(min-width:801px) { body[data-page=annual] main { max-width:none; } }
@media(max-width:800px) { #nav [data-page=annual],#annual-view { display:none; } }

.annual-over > span::before { content:"↑ "; font-size:10px; }

.annual-category-label { display:flex; align-items:center; max-width:164px; }
.annual-category-name { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.annual-table .annual-plan { min-width:64px; }
.annual-table .annual-total { min-width:78px; }
.annual-table .annual-average,.annual-table thead th:last-child { min-width:80px; }
.annual-filters .choice-trigger { min-height:32px; padding:6px 9px; border-radius:8px; font-size:12px; }
.annual-filters .choice-trigger > .bi { font-size:10px; }
@media(min-width:801px) {
 body[data-page="annual"] main { --annual-top:68px; position:relative; padding:var(--annual-top) 28px 12px; max-width:none; }
 body[data-page="annual"] main > #content,body[data-page="annual"] main > .notice { max-width:none; }
 body[data-page="annual"] .topbar { display:none; }
 
 body[data-page="annual"] .annual-toolbar { padding-right:36px; }
 body[data-page="annual"] .floating-actions { transform:translate(-50%,calc(100% + var(--dock-gap) + 24px)); visibility:hidden; pointer-events:none; }
 body[data-page="annual"] .toast { bottom:18px; }
}
@media(min-width:801px) and (max-height:850px) {
 .annual-table th,.annual-table td { height:20px; padding-top:2px; padding-bottom:2px; }
 .annual-table .annual-section th { height:26px; padding-top:5px; padding-bottom:5px; }
}
@media(prefers-reduced-motion:no-preference) {
 .floating-actions { transition:filter .5s ease,transform .24s ease,visibility 0s; }
 body[data-page="annual"] .floating-actions { transition:filter .5s ease,transform .24s ease,visibility 0s .24s; }
}

@media(min-width:801px) and (max-width:1150px) { body[data-page="annual"] main { --annual-top:68px; } }
body[data-page="annual"] .floating-actions::before { content:none; }
