/* Shared geometry across browsing, work and admin screens. */
html{scrollbar-gutter:stable}.site-header,.site-header *{box-sizing:border-box}.top.site-header{display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-areas:"brand nav";align-items:center;gap:16px;min-height:78px;height:78px;padding:12px 24px;width:100%;font:15px/1.5 "Nunito Sans", system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:normal;background:var(--panel);position:sticky;top:0;z-index:50}.site-header .brand{grid-area:brand;display:flex;align-items:center;gap:11px;width:240px;margin:0;font-size:18px;line-height:1.15;letter-spacing:-.025em;white-space:nowrap}.site-header .brand img{width:40px;height:40px;flex:none}.site-header .brand-name{font-size:18px;font-weight:750;line-height:1.15;display:flex;flex-direction:column}.site-header .brand-short{font-size:11px;line-height:1.4;margin-top:4px;letter-spacing:.09em}.site-header .menu-btn{grid-area:toggle;display:none}.site-header .toplinks{grid-area:nav;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:4px;margin:0;min-width:0;width:100%;padding:0;border:0}.site-header .nav-group{flex:0 0 auto}.site-header .nav-group-title{padding:10px 12px;gap:8px;font-size:13px;line-height:20px;font-weight:650;white-space:nowrap;margin:0}.site-header .nav-chevron{font-size:15px;line-height:20px}.site-header .toplinks>.signin{flex:0 0 88px;width:88px;margin:0;padding:9px 10px;text-align:center;font-size:13px;line-height:20px;white-space:nowrap}.site-header #site-nav>[data-admin-only]{flex:0 0 58px;width:58px;text-align:center;font-size:13px;line-height:20px;padding:9px 4px}.site-header #site-nav>[data-admin-only][hidden]{display:block!important;visibility:hidden;pointer-events:none}.site-header .nav-panel{width:min(640px,calc(100vw - 32px));font-size:13px}.site-header .nav-words strong{font-size:13px;line-height:1.4}.site-header .nav-words small{font-size:11px;line-height:1.4}.nav-mobile-tools,.nav-mobile-results{display:none}.site-header .nav-group[hidden],.site-header .nav-direct[hidden],.site-header .nav-mobile-results[hidden]{display:none!important}
@media(min-width:901px) and (max-width:1180px){.top.site-header{grid-template-columns:190px minmax(0,1fr);gap:8px;padding:12px}.site-header .brand{width:190px;gap:8px}.site-header .brand-name{font-size:14px}.site-header .brand img{width:32px;height:32px}.site-header .brand-short{font-size:10px}.site-header .nav-group-title{padding:10px 6px;font-size:11px;gap:5px}.site-header .toplinks>.signin{flex-basis:72px;width:72px;font-size:12px}.site-header #site-nav>[data-admin-only]{flex-basis:44px;width:44px;font-size:12px}}
@media(max-width:900px){.top.site-header{height:66px;min-height:66px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand toggle";padding:10px 16px;gap:12px}.site-header .brand{width:auto;gap:9px}.site-header .brand-name{font-size:16px}.site-header .brand img{width:36px;height:36px}.site-header .brand-short{font-size:10px;margin-top:3px}.site-header .menu-btn{display:block;margin:0;font-size:12px;padding:8px 11px}.site-header .toplinks{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 76px);overflow:auto;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 14px 24px #133d4d18;padding:12px 16px;gap:6px;align-items:stretch;justify-content:start}.menu-open .site-header .toplinks{display:flex;flex-direction:column}.site-header .toplinks>.signin{order:-3;width:100%;flex:0 0 auto;text-align:left;margin:0;padding:12px;font-size:14px}.site-header .nav-mobile-tools{order:-2;display:block}.site-header .nav-mobile-search{width:100%;padding:12px;border:1px solid var(--line);background:var(--brand-soft);color:var(--ink);font:inherit;font-size:14px;border-radius:10px;margin:4px 0}.site-header .nav-mobile-results{display:block}.site-header .nav-mobile-results a{display:flex;align-items:center;gap:10px;padding:12px}.site-header .nav-mobile-count{font-size:12px;color:var(--muted);padding:0 12px}.site-header .nav-group-title{font-size:14px;padding:12px;justify-content:space-between}.site-header .nav-panel{position:static;width:auto;max-height:none;margin:3px 0 8px;box-shadow:none}.site-header .nav-panel .nav-search{display:none}.site-header #site-nav>[data-admin-only]{flex:0 0 auto;width:100%;text-align:left;padding:12px}.site-header #site-nav>[data-admin-only][hidden]{display:none!important}.site-header .nav-mobile-tools[hidden]{display:none!important}}
@media(max-width:360px){.top.site-header{padding:10px 12px;gap:8px}.site-header .brand-name{font-size:14px}.site-header .brand img{width:32px;height:32px}}
@media print{.top.site-header{display:none!important}}@supports not(scrollbar-gutter:stable){html{overflow-y:scroll}}
/* Reserve the same slots before the runtime menu and role checks finish. The header HTML
   already holds the six menu groups in their final shape (scripts/build-shared-header.mjs),
   so nav.js swaps them for the interactive menu without anything moving. */
.site-header .nav-admin-placeholder{flex:0 0 58px;width:58px}.site-header .toplinks>a.nav-static{display:flex;align-items:center;flex:0 0 auto;text-decoration:none}.nav-static[data-current]{background:var(--brand-soft);color:var(--ink)}@media(min-width:901px) and (max-width:1180px){.site-header .nav-admin-placeholder{flex-basis:44px;width:44px}}@media(max-width:900px){.site-header .nav-admin-placeholder{display:none}}
/* Page-to-page changes cross-fade in browsers that support it (opted in by a <style> at the
   top of each page's <head>), and the header stays put instead of going blank and redrawing.
   Off for people who prefer less motion. */
@media(prefers-reduced-motion:no-preference){.top.site-header{view-transition-name:site-header}::view-transition-old(root),::view-transition-new(root){animation-duration:.14s}::view-transition-group(site-header){animation:none}}
/* Home page: while the update list loads, keep its space and show "Loading updates…" only
   if it takes a moment, so a quick return to the home page does not flash the message. */
.listhead.is-loading+#list{min-height:60vh}.listhead.is-loading h2{animation:pv-late-in .2s .45s both}@keyframes pv-late-in{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.listhead.is-loading h2{animation:none}}

/* Light / dark switch (public/theme.js): the last item at the top right, after Sign in.
   On phones it is a row under Sign in in the menu. Icon and label name the theme you switch
   to: a moon in light mode, a sun in dark mode. Same 40px height and border as Sign in. */
.site-header .toplinks>.theme-toggle{flex:0 0 40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:40px;height:40px;margin:0;padding:0;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);font:inherit;font-size:13px;line-height:20px;font-weight:650;cursor:pointer;-webkit-tap-highlight-color:transparent}
.site-header .toplinks>.theme-toggle:hover{background:var(--brand-soft);border-color:var(--brand)}
.site-header .toplinks>.theme-toggle:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.site-header .theme-toggle .ui-icon{width:18px;height:18px;flex:none}
.theme-toggle .theme-icon-sun,.theme-toggle .theme-label-light,:where([data-theme="dark"]) .theme-toggle :is(.theme-icon-moon,.theme-label-dark){display:none}
:where([data-theme="dark"]) .theme-toggle .theme-icon-sun{display:inline-block}
:where([data-theme="dark"]) .theme-toggle .theme-label-light{display:inline}
@media(prefers-color-scheme:dark){:where(:not([data-theme])) .theme-toggle :is(.theme-icon-moon,.theme-label-dark){display:none}:where(:not([data-theme])) .theme-toggle .theme-icon-sun{display:inline-block}:where(:not([data-theme])) .theme-toggle .theme-label-light{display:inline}}
.site-header .theme-toggle .theme-toggle-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:900px){.site-header .toplinks>.theme-toggle{order:-3;flex:0 0 auto;width:100%;height:auto;min-height:44px;margin:0;padding:12px;justify-content:flex-start;font-size:14px}.site-header .toplinks>.theme-toggle .theme-toggle-label{position:static;width:auto;height:auto;overflow:visible;clip:auto}}
/* The switch takes 40px of the menu row. Between 901 and 1440px, where a signed-in admin's menu
   (Admin link and alerts bell) is tightest, the menu items sit a few pixels closer to make room. */
@media screen and (min-width:901px) and (max-width:1440px){.top.site-header .toplinks{gap:2px}}
@media screen and (min-width:1181px) and (max-width:1440px){.top.site-header .nav-group-title{gap:5px}}
@media screen and (min-width:901px) and (max-width:1180px){.top.site-header :is(.nav-group-title,.nav-workspace,.nav-help){padding-inline:3px}}
@media print{.site-header .theme-toggle{display:none}}

/* Export is admin-only (export-gate.js). Hidden until is_app_admin confirms. */
html.pv-export-locked [data-pv-export]{display:none!important}
.pv-export-note{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;max-width:calc(100vw - 32px);padding:8px 16px;border-radius:8px;background:var(--panel,#fff);color:var(--ink,#111827);border:1px solid var(--line,#d1d5db);font-size:14px;line-height:20px;box-shadow:0 4px 16px rgb(0 0 0/.2)}
.pv-export-note[hidden]{display:none}
