/* SVH_DARK_NAV_V1: local overrides; no remote fonts or scripts. */
:root{color-scheme:dark;--svh-bg:#0b1220;--svh-panel:#121d2e;--svh-raised:#18263a;--svh-border:#33445d;--svh-text:#e6edf7;--svh-muted:#b0bfd3;--svh-link:#8dc5ff;--svh-accent:#2866aa;--svh-header:84px;--bg:#0b1220;--card:#121d2e;--text:#e6edf7;--muted:#b0bfd3;--line:#33445d}
html{scroll-padding-top:110px;background:var(--svh-bg)}
html body{margin:0;background:var(--svh-bg);color:var(--svh-text);min-height:100vh;line-height:1.5}
html body .top{position:sticky;top:0;z-index:100;height:var(--svh-header);min-height:var(--svh-header);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#101a2b;border-bottom:1px solid var(--svh-border);box-shadow:0 5px 22px #0004;padding:12px 26px}
html body .brand{display:flex;align-items:center;gap:12px;min-width:0}
html body .brand strong{color:#f2f6fd;letter-spacing:.12em}
html body .brand small{display:block;color:var(--svh-muted)}
html body .mark{background:#234c7b;color:#fff;border:1px solid #4a7cab;border-radius:12px}
html body .account{display:flex;align-items:center;gap:14px;min-width:0;color:var(--svh-text)}
html body .account form{margin:0}
html body .layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:24px;align-items:start;max-width:1920px;margin:0 auto;padding:24px;overflow:visible}
html body .sidebar{position:sticky;top:calc(var(--svh-header) + 18px);align-self:start;height:auto;max-height:calc(100dvh - var(--svh-header) - 36px);overflow-y:auto;box-sizing:border-box;padding:12px;background:var(--svh-panel);border:1px solid var(--svh-border);border-radius:14px;box-shadow:0 12px 30px #0002;display:block;z-index:60}
html body .sidebar a{display:block;color:var(--svh-muted);text-decoration:none;border:1px solid transparent;border-radius:9px;padding:11px 12px;margin:3px 0;min-height:44px;box-sizing:border-box}
html body .sidebar a:hover{background:#20334c;color:#fff}
html body .sidebar a.active{background:#1e3b60;color:#d9edff;border-color:#3e72a5;font-weight:700}
html body .sidebar .svh-day-menu{margin:0;padding:0;border:0;background:transparent}
html body .sidebar .svh-day-menu>summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;padding:0;background:transparent;color:var(--svh-text)}
html body .svh-day-menu>summary::-webkit-details-marker{display:none}
html body .svh-day-menu>summary:after{content:'▸';display:block;padding:12px;color:var(--svh-muted)}
html body .svh-day-menu[open]>summary:after{content:'▾'}
html body .sidebar .svh-day-link{flex:1;font-weight:700;color:var(--svh-text)}
html body .svh-submenu{margin:3px 0 14px 16px;padding-left:10px;border-left:2px solid #38516f}
html body .sidebar .svh-submenu a{font-size:.94rem;padding-left:11px}
html body .navnote{color:#91a6c0;border-top:1px solid var(--svh-border);margin-top:16px;padding:14px 10px 4px;font-size:.8rem}
html body .main{min-width:0;padding:0;color:var(--svh-text);background:transparent}
html body .main.centered{grid-column:1 / -1;justify-self:center;width:min(100%,520px)}
html body h1,html body h2,html body h3,html body h4,html body strong{color:var(--svh-text)}
html body .lede,html body .muted,html body .subnote,html body small,html body .empty{color:var(--svh-muted)}
html body .eyebrow{color:#8ebef1}
html body a{color:var(--svh-link)}
html body a:hover{color:#c0e0ff}
html body .card,html body .stat{background:var(--svh-panel);color:var(--svh-text);border-color:var(--svh-border);box-shadow:0 8px 24px #0002}
html body .stat strong{color:#b0d6ff}
html body .taskitem,html body .appointment,html body .svh-mail-item{border-color:var(--svh-border);color:var(--svh-text)}
html body .datepill{background:#223d5c;color:#c9e4ff;border-color:#3e648d}
html body input,html body select,html body textarea{background:#0c1728;color:#e6edf7;border:1px solid #4a5d78;border-radius:7px;accent-color:#65acfa}
html body input::placeholder,html body textarea::placeholder{color:#99aac1;opacity:1}
html body input[type=checkbox],html body input[type=radio]{accent-color:#65acfa}
html body option{background:#101d30;color:#e6edf7}
html body button,html body .btn{background:#223a57;color:#edf5ff;border:1px solid #4a6b91;border-radius:7px}
html body button:hover,html body .btn:hover{background:#2d4c70;color:#fff}
html body button.primary,html body .btn.primary{background:#2469af;border-color:#63a1dd;color:#fff}
html body button.quiet{background:transparent;color:#c5d5e9;border-color:#435a78}
html body button:disabled{opacity:.5;cursor:not-allowed}
html body .badge{background:#243950;color:#d4e5f8;border-color:#4a6685}
html body .badge.high{background:#532734;color:#ffd8df}
html body .badge.low{background:#193e37;color:#beecd9}
html body .badge.normal{background:#253954;color:#cde1ff}
html body table{background:var(--svh-panel);color:var(--svh-text);border-color:var(--svh-border)}
html body th{background:#19283d;color:#c6d6eb;border-color:var(--svh-border)}
html body td,html body tr{border-color:var(--svh-border)}
html body tbody tr:hover{background:#1b2b41}
html body .tabs a{color:var(--svh-muted);background:transparent;border-color:var(--svh-border)}
html body .tabs a.selected{background:#23476e;color:#e4f2ff;border-color:#6194c3}
html body .notice{background:#23374d;color:#deecff;border-color:#45617e}
html body .notice.error{background:#462531;color:#ffd7df;border-color:#995468}
html body .notice.success{background:#173d36;color:#c4f3e3;border-color:#397b67}
html body .svh-appointment-today{background:#163b56;color:#e5f4ff;border:1px solid #599ac5;border-left:5px solid #67c2ff}
html body .svh-appointment-today strong,html body .svh-appointment-today small{color:#e5f4ff}
html body .svh-today-badge{background:#246b9b;color:#fff}
html body .svh-sender-card,html body .mail-auto-panel{background:#142338;border-color:#3e5674;color:var(--svh-text)}
html body .svh-mail-delete{background:#3f2430;color:#ffb7c4;border-color:#9f5367}
html body .svh-mail-delete:hover{background:#623143;color:#fff}
html body .svh-mail-body,html body .svh-wa-text,html body .svh-mail-text,html body .mail-auto-text{color:var(--svh-text)}
html body pre,html body code{background:#0c1728;color:#dceafb;border-color:var(--svh-border)}
html body summary{color:#d3e7ff}
html body .svh-mail-scroll{scrollbar-color:#516d90 #121d2e}
html body footer{background:#0e1828;color:#9db1ca;border-top:1px solid var(--svh-border);padding:18px 24px}
html body :focus-visible{outline:3px solid #83c6ff;outline-offset:3px}
html body .svh-skip{position:fixed;left:16px;top:-100px;z-index:200;background:#dceeff;color:#0b1220;padding:10px 16px;border-radius:8px}
html body .svh-skip:focus{top:12px}
@media(max-width:1000px){html body .layout{grid-template-columns:200px minmax(0,1fr);gap:16px;padding:16px}html body .top{padding:12px 18px}}
@media(max-width:760px){:root{--svh-header:112px}html body .top{height:var(--svh-header);flex-wrap:wrap;gap:4px;padding:8px 14px;align-content:center}html body .brand{width:100%}html body .brand small{font-size:.75rem}html body .account{width:100%;justify-content:space-between;font-size:.85rem}html body .account button{padding:5px 10px}html body .layout{grid-template-columns:minmax(0,1fr);padding:12px;gap:14px}html body .sidebar{top:var(--svh-header);max-height:35dvh;padding:8px;border-radius:10px}html body .sidebar .navnote{display:none}html body .sidebar a{padding:7px 10px;min-height:38px}html body .svh-submenu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin-bottom:6px}html body .main{grid-column:1}html body .svh-submenu a{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
