/* Hourmark Foundation 5.0.2 — one brand system, six coherent atmospheres.
   This stylesheet loads last. It intentionally overrides legacy Summit/Horizon hardcoded greens.
   Account data, feature layout, session guards, and mobile scrolling are untouched. */
:root[data-hm-theme="horizon"]{
 color-scheme:dark;--hm5-bg:#0e1718;--hm5-side:#111c1e;--hm5-surface:#1b2728;
 --hm5-panel:#202e2f;--hm5-raised:#29383a;--hm5-line:#354749;--hm5-text:#f3f2eb;
 --hm5-muted:#aebcb8;--hm5-gold:#d0b47c;--hm5-green:#80b69e;--hm5-red:#e5a093;
 --hm-accent:#d0b47c;--hm-accent-ink:#142222;--hm-success:#80b69e;--hm-danger:#e5a093;
 --hm-warning:#e1bd7e;--hm-field:#162324;--hm-soft:#d0b47c16;--hm-topbar:#111c1e;
 --hm-main-gradient:radial-gradient(ellipse at 79% -8%,#2544434a,transparent 53%),linear-gradient(165deg,#0e1718 0%,#111d1e 100%);
}
:root[data-hm-theme="midnight"]{
 color-scheme:dark;--hm5-bg:#0d1524;--hm5-side:#101a2b;--hm5-surface:#1b293c;
 --hm5-panel:#213149;--hm5-raised:#2a3b54;--hm5-line:#3b4e66;--hm5-text:#f0f4fb;
 --hm5-muted:#b1bed2;--hm5-gold:#9fbedf;--hm5-green:#83c6b0;--hm5-red:#eea59c;
 --hm-accent:#9fbedf;--hm-accent-ink:#122336;--hm-success:#83c6b0;--hm-danger:#eea59c;
 --hm-warning:#e5c28a;--hm-field:#152338;--hm-soft:#9fbedf16;--hm-topbar:#111c2e;
 --hm-main-gradient:radial-gradient(ellipse at 84% -10%,#284c804a,transparent 50%),linear-gradient(165deg,#0d1524,#141f30);
}
:root[data-hm-theme="forest"]{
 color-scheme:dark;--hm5-bg:#101c19;--hm5-side:#12241e;--hm5-surface:#1d3029;
 --hm5-panel:#233a30;--hm5-raised:#30483a;--hm5-line:#415b4d;--hm5-text:#f2f3e8;
 --hm5-muted:#b5c5b5;--hm5-gold:#c9ba86;--hm5-green:#91c49b;--hm5-red:#e6a295;
 --hm-accent:#c9ba86;--hm-accent-ink:#17261a;--hm-success:#91c49b;--hm-danger:#e6a295;
 --hm-warning:#dabb78;--hm-field:#17271f;--hm-soft:#c9ba8617;--hm-topbar:#14261f;
 --hm-main-gradient:radial-gradient(ellipse at 79% -8%,#2a59414a,transparent 54%),linear-gradient(165deg,#101c19,#142620);
}
:root[data-hm-theme="ocean"]{
 color-scheme:light;--hm5-bg:#eff5f7;--hm5-side:#e5eef2;--hm5-surface:#fff;
 --hm5-panel:#f7fbfc;--hm5-raised:#eaf2f6;--hm5-line:#c9d8e0;--hm5-text:#203541;
 --hm5-muted:#536b77;--hm5-gold:#27799a;--hm5-green:#287d65;--hm5-red:#b95d55;
 --hm-accent:#27799a;--hm-accent-ink:#fff;--hm-success:#287d65;--hm-danger:#b95d55;
 --hm-warning:#8e6c2c;--hm-field:#fff;--hm-soft:#27799a13;--hm-topbar:#f6fafc;
 --hm-main-gradient:radial-gradient(ellipse at 80% -8%,#c4e2e984,transparent 55%),linear-gradient(160deg,#eff5f7,#eaf2f5);
}
:root[data-hm-theme="violet"]{
 color-scheme:dark;--hm5-bg:#161422;--hm5-side:#1d192c;--hm5-surface:#29243a;
 --hm5-panel:#302b45;--hm5-raised:#39344f;--hm5-line:#514b67;--hm5-text:#f4f0fa;
 --hm5-muted:#c0b7cc;--hm5-gold:#c6b1dd;--hm5-green:#9ac8ad;--hm5-red:#eba3a7;
 --hm-accent:#c6b1dd;--hm-accent-ink:#241b34;--hm-success:#9ac8ad;--hm-danger:#eba3a7;
 --hm-warning:#ddc28d;--hm-field:#211d32;--hm-soft:#c6b1dd16;--hm-topbar:#201a2f;
 --hm-main-gradient:radial-gradient(ellipse at 79% -8%,#664e8652,transparent 54%),linear-gradient(160deg,#161422,#211b30);
}
:root[data-hm-theme="paper"]{
 color-scheme:light;--hm5-bg:#f5f1e9;--hm5-side:#ece7dd;--hm5-surface:#fffcf7;
 --hm5-panel:#fbf8f1;--hm5-raised:#f4eee2;--hm5-line:#d6d0c2;--hm5-text:#2c312c;
 --hm5-muted:#606d62;--hm5-gold:#937238;--hm5-green:#337d5f;--hm5-red:#b75f52;
 --hm-accent:#937238;--hm-accent-ink:#fff;--hm-success:#337d5f;--hm-danger:#b75f52;
 --hm-warning:#946c2b;--hm-field:#fffdfa;--hm-soft:#93723813;--hm-topbar:#faf7f0;
 --hm-main-gradient:radial-gradient(ellipse at 79% -8%,#e0d0af55,transparent 54%),linear-gradient(165deg,#f5f1e9,#f3efe6);
}
:root[data-hm-theme]{
 /* compatibility aliases for components authored during Summit, Horizon and Foundation */
 --bg:var(--hm5-bg);--side:var(--hm5-side);--panel:var(--hm5-surface);--panel-solid:var(--hm5-panel);
 --text:var(--hm5-text);--muted:var(--hm5-muted);--faint:var(--hm5-muted);
 --line:var(--hm5-line);--gold:var(--hm-accent);--gold2:var(--hm-accent);
 --green:var(--hm-success);--shadow:0 8px 24px #0000000a;
 --hm-editor-bg:var(--hm5-surface);--hm-editor-surface:var(--hm5-panel);
 --hm-editor-edge:var(--hm5-line);
}
html[data-hm-theme],body[data-hm-theme]{background:var(--hm5-bg)!important;color:var(--hm5-text)!important}
body[data-hm-theme] .app-shell{background:var(--hm5-bg)!important}
body[data-hm-theme] .app-main{background:var(--hm-main-gradient)!important;color:var(--hm5-text)}
body[data-hm-theme] .sidebar{
 background:var(--hm5-side)!important;border-color:var(--hm5-line)!important;color:var(--hm5-text);
}
body[data-hm-theme] .sidebar .brand strong,body[data-hm-theme] #pageCrumb{color:var(--hm5-text)}
body[data-hm-theme] .sidebar .brand small,body[data-hm-theme] .topbar-title,
body[data-hm-theme] .topbar-title time{color:var(--hm5-muted)}
body[data-hm-theme] .sidebar .brand-symbol{border-color:var(--hm5-line);background:var(--hm-soft)}
body[data-hm-theme] .sidebar .brand-symbol svg{stroke:var(--hm-accent)}
body[data-hm-theme] .sidebar .side-nav button{color:var(--hm5-muted)!important}
body[data-hm-theme] .sidebar .side-nav button:is(:hover,:focus-visible){background:var(--hm5-raised)!important;color:var(--hm5-text)!important}
body[data-hm-theme] .sidebar .side-nav button.active,body[data-hm-theme] .sidebar .side-nav button[aria-current=page]{
 color:var(--hm5-text)!important;background:var(--hm-soft)!important;border-color:var(--hm5-line)!important;
 box-shadow:inset 3px 0 0 var(--hm-accent);
}
body[data-hm-theme] .sidebar .side-nav button.active .nav-icon{color:var(--hm-accent)}
body[data-hm-theme] .hm-sidebar-utility{border-color:var(--hm5-line)}
body[data-hm-theme] .hm-sidebar-utility button{color:var(--hm5-muted)}
body[data-hm-theme] .hm-sidebar-utility button:is(:hover,[aria-current=page]){background:var(--hm5-raised);color:var(--hm5-text)}
body[data-hm-theme] .topbar{
 background:var(--hm-topbar)!important;border-bottom:1px solid var(--hm5-line)!important;
}
body[data-hm-theme] .topbar .icon-button{color:var(--hm5-muted)!important}
body[data-hm-theme] .topbar .icon-button:is(:hover,:focus-visible){background:var(--hm-soft)!important;color:var(--hm-accent)!important}
body[data-hm-theme] .topbar .top-version{color:var(--hm5-muted)}
body[data-hm-theme] .topbar .top-version-dot{background:var(--hm-success);box-shadow:none}
body[data-hm-theme] #mainArea>.topo-art{
 display:block!important;opacity:.17;top:4px;height:160px;z-index:0;
}
body[data-hm-theme] #mainArea>.topo-art path{stroke:var(--hm5-muted)}
body[data-hm-theme] #mainArea>.topo-art path.peak{stroke:var(--hm-accent)}
body[data-hm-theme] #mainArea>.topo-art:after{background:linear-gradient(transparent,var(--hm5-bg))}
body[data-hm-theme] #mainArea>.page{position:relative;z-index:1}
body[data-hm-theme] .sidebar .side-bottom{
 display:block!important;bottom:57px;height:95px;opacity:.25;z-index:0;
}
body[data-hm-theme] .sidebar .side-bottom svg{height:95px;opacity:.7}
body[data-hm-theme] .sidebar .side-bottom path{stroke:var(--hm5-muted)}
body[data-hm-theme] .sidebar .side-bottom .gold-stroke{stroke:var(--hm-accent)}
body[data-hm-theme] .sidebar .side-bottom span{display:none}
body[data-hm-theme] .hm-sidebar-utility{position:relative;z-index:1}
body[data-hm-theme] :is(h1,h2,h3,.hm-page-heading h1,.hm-section-heading h2,.hm-stat>strong,.hm-position-number){
 color:var(--hm5-text);
}
body[data-hm-theme] :is(p,.hint,.footnote,.hm-page-heading p,.hm-detail-note,.hm-disclaimer,.hm-stat>small,
 .hm-stat>span,.trends-surface .hint,.trends-item p,.trends-item small,.trend-metric small,.trend-metric em){
 color:var(--hm5-muted);
}
body[data-hm-theme] :is(.hm-overline,.eyebrow,.hm-stat-accent>strong,.hm-action-row .hm-text-action,.hm-list-count){color:var(--hm-accent)}
/* Shared surfaces across Home, Work, Expenses, Trends and Settings */
body[data-hm-theme] :is(.hm-surface,.hm-stat,.hm-details,.hm-position,.hm-overview-strip,.hm-next-step,
 .hm-filter-bar,.hm-pay-item,.hm-pay-history,.hm-work-history,.hm-work-breakdown,.hm-quick-section,
 .panel,.metric,.work-status-box,.period-card,.settings-item,.goal-card,.trends-surface,.trend-metric,
 .money-flow,.tool-list-row,.work-path-grid button,.hm-pricing-card,.hm-price-card,.hm-card,
 .flow-panel,.work-entry-section){
 background:var(--hm5-surface)!important;color:var(--hm5-text);border-color:var(--hm5-line)!important;
 box-shadow:none;
}
body[data-hm-theme] :is(.hm-stat-accent,.hm-position,.hm-next-step){background:var(--hm5-panel)!important}
body[data-hm-theme] :is(.hm-stat,.trends-surface,.trend-metric,.hm-details,.hm-surface,.panel,.metric){
 border:1px solid var(--hm5-line);
}
body[data-hm-theme] :is(.hm-details>summary,.hm-pay-item,.hm-pay-item:first-child,.trends-item,.hm-overview-strip>div:not(:last-child),
 .hm-pay-history .hm-pay-item,.work-row,.settings-item>summary){border-color:var(--hm5-line)}
body[data-hm-theme] .trends-surface :is(h2,strong),body[data-hm-theme] .trend-metric strong{color:var(--hm5-text)}
body[data-hm-theme] :is(.hm-action,.hm-text-action,.trends-link-row button,.hm-quick-section button,
 .subtabs button,.hm-pay-item button,.minor-button,.hm-sidebar-utility button):not(.hm-action-primary){
 color:var(--hm5-text);border-color:var(--hm5-line);background:var(--hm5-panel);
}
body[data-hm-theme] :is(.hm-action,.trends-link-row button,.hm-pay-item button):is(:hover,:focus-visible){
 color:var(--hm5-text);background:var(--hm5-raised);
}
body[data-hm-theme] :is(.hm-action-primary,.button.gold-button,.hm-primary-action){
 color:var(--hm-accent-ink)!important;background:var(--hm-accent)!important;border-color:var(--hm-accent)!important;
}
body[data-hm-theme] :is(.hm-action-primary,.button.gold-button):is(:hover,:focus-visible){filter:brightness(.94)}
body[data-hm-theme] :is(.hm-action-primary,.button.gold-button,.hm-action,button,.minor-button):focus-visible,
body[data-hm-theme] :is(select,input,textarea,summary,a):focus-visible{
 outline:2px solid var(--hm-accent);outline-offset:3px;
}
body[data-hm-theme] :is(.hm-filter-bar input,.hm-filter-bar select,.hm-period-picker select,
 .hm-trends-controls select,.trends-controls select,.settings-item select,.settings-item input,
 .flow-heading input,.hm-work-history input,.hm-work-history select,.hm-search-input,
 .trends-link-row button){
 color:var(--hm5-text);background:var(--hm-field);border:1px solid var(--hm5-line);
}
body[data-hm-theme] :is(input,select,textarea)::placeholder{color:var(--hm5-muted);opacity:.8}
body[data-hm-theme] :is(.hm-work-history .work-row,.hm-pay-item,.hm-work-stats,.hm-position-content){
 border-color:var(--hm5-line);
}
body[data-hm-theme] :is(.hm-disclaimer,.trends-unavailable,.tool-error){background:var(--hm-soft);color:var(--hm-warning);border-color:var(--hm5-line)}
body[data-hm-theme] :is(.flow-negative,.hm-position-number.flow-negative,[data-financial-status="negative"]){color:var(--hm-danger)!important}
body[data-hm-theme] :is(.flow-positive,[data-financial-status="positive"]){color:var(--hm-success)!important}
/* Keep income, expense and warning meaning consistent across graphs and totals. */
body[data-hm-theme] .trend-chart-bars span:not(.expense),body[data-hm-theme] .trends-legend i:not(.expense){background:var(--hm-success)}
body[data-hm-theme] .trend-chart-bars span.expense,body[data-hm-theme] .trends-legend i.expense{background:var(--hm-danger)}
body[data-hm-theme] .trend-chart-group small{color:var(--hm5-muted)}
body[data-hm-theme] .trend-chart-group .partial{color:var(--hm-warning)}
body[data-hm-theme] .trends-item .amount{color:var(--hm5-text)}
body[data-hm-theme] .trends-item{border-color:var(--hm5-line)}
body[data-hm-theme] :is(.hm-editor-bg,#editDialog,#batchWorkDialog,.horizon-tool-dialog,#budgetDialog,#projectManagerDialog,
 #morePagesDialog,#quickFindDialog){
 background:var(--hm5-surface);color:var(--hm5-text);border-color:var(--hm5-line);
}
body[data-hm-theme] :is(#editDialog,#batchWorkDialog,.horizon-tool-dialog) :is(.dialog-head,.dialog-actions){
 background:var(--hm5-surface);border-color:var(--hm5-line);color:var(--hm5-text);
}
body[data-hm-theme] :is(#editDialog,#batchWorkDialog,.horizon-tool-dialog) :is(input:not([type=checkbox]),select,textarea){
 background:var(--hm-field);color:var(--hm5-text);border-color:var(--hm5-line);
}
body[data-hm-theme] :is(.horizon-tool-modal,.horizon-tool-dialog .horizon-tool-modal,.batch-scroll,
 #editDialog .work-entry-section){background:var(--hm5-surface);color:var(--hm5-text);border-color:var(--hm5-line)}
body[data-hm-theme] :is(.tool-list-row small,.work-status-box>span,.work-status-box small,
 .horizon-tool-modal label,.horizon-tool-modal label small){color:var(--hm5-muted)}
/* Payment states retain their meaning across all six palettes. */
body[data-hm-theme] :is(.work-payment-select,.work-payment-pill).paid{
 color:var(--hm-success);border-color:var(--hm-success);
 background:color-mix(in srgb,var(--hm-success) 12%,var(--hm-field));
}
body[data-hm-theme] :is(.work-payment-select,.work-payment-pill).pending{
 color:var(--hm-warning);border-color:var(--hm-warning);
 background:color-mix(in srgb,var(--hm-warning) 12%,var(--hm-field));
}
body[data-hm-theme] :is(.work-payment-select,.work-payment-pill).not-paid{
 color:var(--hm-danger);border-color:var(--hm-danger);
 background:color-mix(in srgb,var(--hm-danger) 10%,var(--hm-field));
}
body[data-hm-theme] :is(.work-payment-select,.work-payment-pill):is(.paid,.pending,.not-paid){border-inline-start-width:3px}
body[data-hm-theme] .work-payment-select option{color:var(--hm5-text);background:var(--hm-field)}
body:is([data-hm-theme="ocean"],[data-hm-theme="paper"]) :is(.work-payment-select,.work-payment-pill).paid{color:color-mix(in srgb,var(--hm-success) 85%,#000)}
body:is([data-hm-theme="ocean"],[data-hm-theme="paper"]) :is(.work-payment-select,.work-payment-pill).pending{color:color-mix(in srgb,var(--hm-warning) 85%,#000)}
body:is([data-hm-theme="ocean"],[data-hm-theme="paper"]) :is(.work-payment-select,.work-payment-pill).not-paid{color:color-mix(in srgb,var(--hm-danger) 85%,#000)}
/* Mobile app shell is still handled by Foundation's tested viewport rules. */
@media(max-width:740px){
 body[data-hm-theme] .mobile-nav{background:var(--hm5-side)!important;border-top:1px solid var(--hm5-line)!important}
 body[data-hm-theme] .mobile-nav button{color:var(--hm5-muted)}
 body[data-hm-theme] .mobile-nav button.active{color:var(--hm-accent)!important}
 body[data-hm-theme] #mainArea>.topo-art{opacity:.11;height:110px}
}
/* Appearance choices: visual selection and keyboard accessibility. */
.hm-theme-appearance{display:grid;gap:13px;padding:4px 0 8px}
.hm-theme-appearance>label{font-size:12px;font-weight:750;color:var(--hm5-text)}
.hm-theme-appearance #themePref{max-width:420px;width:100%;min-height:44px;padding:10px 13px;
 border-radius:10px;border:1px solid var(--hm5-line);background:var(--hm-field);color:var(--hm5-text)}
.hm-theme-description{font-size:12px;line-height:1.55;color:var(--hm5-muted);max-width:630px}
.hm-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:730px}
.hm-theme-tile{
 --swatch-bg:#0e1718;--swatch-panel:#1b2728;--swatch-ink:#f3f2eb;--swatch-accent:#d0b47c;
 display:grid;grid-template-rows:auto auto auto;gap:5px;text-align:left;min-width:0;
 border-radius:13px!important;border:1px solid var(--hm5-line)!important;
 padding:10px!important;background:var(--hm5-panel)!important;color:var(--hm5-text)!important;
 transition:border-color .15s,transform .15s,background .15s;position:relative;
}
.hm-theme-tile:hover{background:var(--hm5-raised)!important;transform:translateY(-1px)}
.hm-theme-tile.selected{border-color:var(--hm-accent)!important;background:var(--hm-soft)!important;box-shadow:0 0 0 1px var(--hm-accent)}
.hm-theme-tile.selected:after{content:"✓";position:absolute;top:15px;right:17px;color:var(--swatch-accent);
 border-radius:50%;background:var(--swatch-panel);padding:1px 6px;font-weight:900}
.hm-theme-swatch{height:53px;border-radius:8px;background:var(--swatch-bg);display:flex;gap:7px;padding:9px;align-items:stretch;overflow:hidden}
.hm-theme-swatch:before{content:"";width:21%;border-radius:4px;background:var(--swatch-panel);border-left:3px solid var(--swatch-accent)}
.hm-theme-swatch:after{content:"";flex:1;border-radius:4px;background:linear-gradient(160deg,var(--swatch-panel),var(--swatch-bg));border-top:2px solid var(--swatch-accent)}
.hm-theme-tile strong{font-size:12px;font-weight:800;color:var(--hm5-text)}
.hm-theme-tile small{color:var(--hm5-muted);font-size:10px;line-height:1.4}
.hm-theme-tile[data-hm-theme-option="midnight"]{--swatch-bg:#0d1524;--swatch-panel:#1b293c;--swatch-accent:#9fbedf}
.hm-theme-tile[data-hm-theme-option="forest"]{--swatch-bg:#101c19;--swatch-panel:#1d3029;--swatch-accent:#c9ba86}
.hm-theme-tile[data-hm-theme-option="ocean"]{--swatch-bg:#eff5f7;--swatch-panel:#fff;--swatch-accent:#27799a}
.hm-theme-tile[data-hm-theme-option="violet"]{--swatch-bg:#161422;--swatch-panel:#29243a;--swatch-accent:#c6b1dd}
.hm-theme-tile[data-hm-theme-option="paper"]{--swatch-bg:#f5f1e9;--swatch-panel:#fffcf7;--swatch-accent:#937238}
.hm-theme-current{color:var(--hm5-muted);font-size:11px;line-height:1.5}
@media(max-width:680px){.hm-theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.hm-theme-options{gap:7px}.hm-theme-tile{padding:7px!important}.hm-theme-swatch{height:42px}}
@media(prefers-reduced-motion:reduce){.hm-theme-tile{transition:none}.hm-theme-tile:hover{transform:none}}


/* Compact notifications: one quiet surface with readable, dismissible rows. */
#alertPanel{width:min(360px,calc(100vw - 24px));padding:14px;border:1px solid var(--hm5-line);border-radius:12px;background:var(--hm5-panel);color:var(--hm5-text);box-shadow:0 12px 36px #0004;overscroll-behavior:contain}
#alertPanel .alert-panel-head{margin:0 0 10px;gap:12px}
#alertPanel .alert-panel-head h2{font-size:16px;line-height:1.4;color:var(--hm5-text)}
#alertPanel .alert-close{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--hm5-muted);font-size:24px;line-height:1;cursor:pointer}
#alertPanel .alert-list{display:grid;gap:0}
#alertPanel .alert-list-label{font-size:10px;letter-spacing:.08em;color:var(--hm5-muted);margin:0;padding:4px 0 8px}
#alertPanel .alert-list-label:not(:first-child){padding-top:14px}
#alertPanel .alert-entry{position:relative;display:grid;gap:5px;width:100%;padding:10px 32px 10px 12px;margin:0;border:0;border-left:2px solid var(--hm-accent);border-radius:0;background:transparent;color:var(--hm5-text);text-align:left;box-shadow:none}
#alertPanel .alert-entry + .alert-entry{margin-top:10px}
#alertPanel .alert-entry strong{font-size:13px;line-height:1.4;font-weight:650;color:var(--hm5-text)}
#alertPanel .alert-entry span{font-size:12px;line-height:1.5;color:var(--hm5-muted)}
#alertPanel .alert-entry.warning{border-left-color:var(--hm-warning)}
#alertPanel .alert-entry.critical{border-left-color:var(--hm-danger)}
#alertPanel .alert-entry:hover{background:var(--hm-soft)}
#alertPanel .alert-dismiss{position:absolute;right:0;top:4px;display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--hm5-muted);font-size:20px;line-height:1;text-decoration:none}
#alertPanel .alert-panel-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--hm5-line);padding-top:8px;margin-top:12px}
#alertPanel .alert-panel-footer button{min-height:32px;padding:5px 7px;border:0;border-radius:6px;background:transparent;color:var(--hm5-muted);font-size:11px;font-weight:500;cursor:pointer}
#alertPanel button:hover{background:var(--hm-soft);color:var(--hm5-text)}
#alertPanel button:focus-visible{outline:2px solid var(--hm-accent);outline-offset:2px}
#alertPanel .alert-empty{padding:16px 4px;color:var(--hm5-muted);font-size:13px}
#alertCount{top:-3px;right:-3px;min-width:16px;height:16px;padding:0 4px;border:2px solid var(--hm-topbar);border-radius:10px;background:var(--hm-accent);color:var(--hm-accent-ink);font-size:9px;line-height:1;font-weight:750;box-sizing:content-box;pointer-events:none}
@media(max-width:640px){#alertPanel{left:12px;right:12px;width:auto;border-radius:12px}}

/* Usability audit: keyboard location, selection feedback, and visible async work. */
.hm-filter-feedback{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hm-filter-feedback:has(>[hidden]:only-child){display:none}
.invoice-selection-summary{position:sticky;bottom:0;padding:10px 12px;border:1px solid var(--hm5-line);border-radius:8px;background:var(--hm5-panel);color:var(--hm5-text);font-weight:650;font-size:13px}
#invoiceEligibleItems [hidden]{display:none!important}
form[aria-busy="true"] [type="submit"]{cursor:wait;opacity:.75}
.page :is(h1,h2)[tabindex="-1"]:focus{outline:none}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--hm-accent);outline-offset:3px}
#toast{max-width:min(440px,calc(100vw - 24px));overflow-wrap:anywhere}
