/* ==== Fonts and tokens ==== */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --sbs-red: #c8102e;
  --sbs-red-dark: #a00d25;
  --sbs-ink: #2a2b2a;
  --sbs-muted: #6b6c6b;
  --sbs-dark: #1c2228;
  --sbs-line: #e4e4e2;
  --sbs-bg: #f6f6f4;
  --sbs-navy: var(--sbs-dark);
  --sbs-page: var(--sbs-bg);
  --sbs-white: #ffffff;
  --sbs-surface: #ffffff;
  --sbs-muted-text: #5d5e5d;
  --sbs-control-line: #8a8b8a;
  --ok: #1e7b3c;
  --ok-bg: #e6f4ea;
  --ok-bar: #2e9e5b;
  --warn: #8a5a00;
  --warn-bg: #fff3d6;
  --warn-bar: #f0a400;
  --bad: #b00d27;
  --bad-bg: #fde8eb;
  --bad-bar: #c8102e;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --lh-tight: 1.25;
  --lh-body: 1.5;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 41px;
  --shadow-1: 0 1px 2px rgba(22, 28, 46, 0.06), 0 1px 3px rgba(22, 28, 46, 0.08);
  --shadow-2: 0 4px 16px rgba(22, 28, 46, 0.14);
  --tap: 44px;
  --btn-h: 36px;
  --btn-fs: 0.875rem;
  --btn-line: #c9c9c6;
  --btn-tint: #fdf2f4;
  --btn-tint-hover: #fbe3e7;
  --btn-tint-line: #efb9c2;
  --focus-ring: 0 0 0 2px var(--sbs-white), 0 0 0 5px var(--sbs-navy);
  --dur: 150ms;
  --z-header: 100;
  --z-tabbar: 110;
  --z-menu: 120;
  --z-toast: 130;
  --content-max: 1200px;
  --tabbar-h: 64px;
  --appbar-h: 56px;
  --app-vh: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --app-bg: var(--sbs-bg);
  --app-surface: #ffffff;
  --app-surface-2: #f0f0ee;
  --app-ink: var(--sbs-ink);
  --app-muted: var(--sbs-muted-text);
  --app-line: var(--sbs-line);
  --app-press: rgba(28, 34, 40, 0.08);
  color-scheme: light;
  --card-pad: 16px;
  --card-gap: 12px;
  --gutter: 16px;
  --h1: 1.5rem;
  --h2: 1.25rem;
  --h3: 1.0625rem;
  --h4: 0.9375rem;
  --fs-body: 0.9375rem;
  --focus-blue: #0a84ff;
  --info: #283593;
  --info-bg: #e8eaf6;
  --line-cool: #d7dbe3;
  --line-cool-2: #b9bdc4;
  --line-cool-3: #c9cfdb;
  --line-cool-4: #e3e6ee;
  --muted-cool: #8a8f98;
  --print-ink: #000000;
  --reboot-ink: #212529;
  --reboot-link: #007bff;
  --reboot-link-hover: #0056b3;
  --reboot-muted: #6c757d;
  --surface-cool: #eef0f2;
  --surface-cool-2: #f6f7f8;
  --surface-cool-3: #f4f6fa;
  --surface-soft: #fafafa;
  --surface-soft-2: #fbfbfa;
  --warn-line: #f0d28a;
  --warn-strong: #b37800;
  --icon-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  --icon-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
  --icon-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.7 3H8.3L3 8.3v7.4L8.3 21h7.4l5.3-5.3V8.3L15.7 3zM13 17h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}
@supports (height: 100dvh) { :root { --app-vh: 100dvh; } }

/* ==== Base ==== */
/* Reboot: from Bootstrap v4.6.2 (MIT, (c) The Bootstrap Authors), only the base rules and the
   .row / .col-1 / .col-2 / .col-5 / .m-0 utilities the templates still use. Replaces bootstrap.min.css (v1.3.0).
   Help pages never loaded Bootstrap, so the element rules skip them (:where adds no specificity). */
*, ::after, ::before { box-sizing: border-box; }
html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
:where(body:not(.page-help)) article, :where(body:not(.page-help)) aside, :where(body:not(.page-help)) figcaption, :where(body:not(.page-help)) figure, :where(body:not(.page-help)) footer, :where(body:not(.page-help)) header, :where(body:not(.page-help)) hgroup, :where(body:not(.page-help)) main, :where(body:not(.page-help)) nav, :where(body:not(.page-help)) section { display: block; }
body { margin: 0; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: var(--reboot-ink); text-align: left; background-color: var(--sbs-white); }
:where(body:not(.page-help)) [tabindex="-1"]:focus:not(:focus-visible) { outline: 0!important; }
:where(body:not(.page-help)) h1, :where(body:not(.page-help)) h2, :where(body:not(.page-help)) h3, :where(body:not(.page-help)) h4, :where(body:not(.page-help)) h5, :where(body:not(.page-help)) h6 { margin-top: 0; margin-bottom: .5rem; }
:where(body:not(.page-help)) p { margin-top: 0; margin-bottom: 1rem; }
:where(body:not(.page-help)) address { margin-bottom: 1rem; font-style: normal; line-height: inherit; }
:where(body:not(.page-help)) ol, :where(body:not(.page-help)) ul { margin-top: 0; margin-bottom: 1rem; }
:where(body:not(.page-help)) blockquote { margin: 0 0 1rem; }
:where(body:not(.page-help)) b, :where(body:not(.page-help)) strong { font-weight: bolder; }
:where(body:not(.page-help)) small { font-size: 80%; }
:where(body:not(.page-help)) a { color: var(--reboot-link); text-decoration: none; background-color: transparent; }
:where(body:not(.page-help)) a:hover { color: var(--reboot-link-hover); text-decoration: underline; }
:where(body:not(.page-help)) a:not([href]):not([class]) { color: inherit; text-decoration: none; }
:where(body:not(.page-help)) a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }
:where(body:not(.page-help)) figure { margin: 0 0 1rem; }
:where(body:not(.page-help)) img { vertical-align: middle; border-style: none; }
:where(body:not(.page-help)) svg { overflow: hidden; vertical-align: middle; }
:where(body:not(.page-help)) table { border-collapse: collapse; }
:where(body:not(.page-help)) caption { padding-top: .75rem; padding-bottom: .75rem; color: var(--reboot-muted); text-align: left; caption-side: bottom; }
:where(body:not(.page-help)) th { text-align: inherit; text-align: -webkit-match-parent; }
:where(body:not(.page-help)) label { display: inline-block; margin-bottom: .5rem; }
:where(body:not(.page-help)) button { border-radius: 0; }
:where(body:not(.page-help)) button:focus:not(:focus-visible) { outline: 0; }
:where(body:not(.page-help)) button, :where(body:not(.page-help)) input, :where(body:not(.page-help)) select, :where(body:not(.page-help)) textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
:where(body:not(.page-help)) button, :where(body:not(.page-help)) input { overflow: visible; }
:where(body:not(.page-help)) button, :where(body:not(.page-help)) select { text-transform: none; }
:where(body:not(.page-help)) [role=button] { cursor: pointer; }
:where(body:not(.page-help)) select { word-wrap: normal; }
:where(body:not(.page-help)) [type=button], :where(body:not(.page-help)) [type=reset], :where(body:not(.page-help)) [type=submit], :where(body:not(.page-help)) button { -webkit-appearance: button; }
:where(body:not(.page-help)) [type=button]:not(:disabled), :where(body:not(.page-help)) [type=reset]:not(:disabled), :where(body:not(.page-help)) [type=submit]:not(:disabled), :where(body:not(.page-help)) button:not(:disabled) { cursor: pointer; }
:where(body:not(.page-help)) [type=button]::-moz-focus-inner, :where(body:not(.page-help)) [type=reset]::-moz-focus-inner, :where(body:not(.page-help)) [type=submit]::-moz-focus-inner, :where(body:not(.page-help)) button::-moz-focus-inner { padding: 0; border-style: none; }
:where(body:not(.page-help)) input[type=checkbox], :where(body:not(.page-help)) input[type=radio] { box-sizing: border-box; padding: 0; }
:where(body:not(.page-help)) textarea { overflow: auto; resize: vertical; }
:where(body:not(.page-help)) fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
:where(body:not(.page-help)) legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal; }
:where(body:not(.page-help)) [type=search] { outline-offset: -2px; -webkit-appearance: none; }
:where(body:not(.page-help)) [type=search]::-webkit-search-decoration { -webkit-appearance: none; }
:where(body:not(.page-help)) summary { display: list-item; cursor: pointer; }
:where(body:not(.page-help)) template { display: none; }
[hidden] { display: none!important; }
:where(body:not(.page-help)) .h1, :where(body:not(.page-help)) .h2, :where(body:not(.page-help)) .h3, :where(body:not(.page-help)) .h4, :where(body:not(.page-help)) .h5, :where(body:not(.page-help)) .h6, :where(body:not(.page-help)) h1, :where(body:not(.page-help)) h2, :where(body:not(.page-help)) h3, :where(body:not(.page-help)) h4, :where(body:not(.page-help)) h5, :where(body:not(.page-help)) h6 { margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
:where(body:not(.page-help)) .h1, :where(body:not(.page-help)) h1 { font-size: 2.5rem; }
:where(body:not(.page-help)) .h2, :where(body:not(.page-help)) h2 { font-size: 2rem; }
:where(body:not(.page-help)) .h3, :where(body:not(.page-help)) h3 { font-size: 1.75rem; }
:where(body:not(.page-help)) .h4, :where(body:not(.page-help)) h4 { font-size: 1.5rem; }
:where(body:not(.page-help)) .h5, :where(body:not(.page-help)) h5 { font-size: 1.25rem; }
:where(body:not(.page-help)) .h6, :where(body:not(.page-help)) h6 { font-size: 1rem; }
.small, :where(body:not(.page-help)) small { font-size: .875em; font-weight: 400; }
.row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-1, .col-2, .col-5 { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }
.col-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; }
.m-0 { margin: 0!important; }
body { margin: 0; font-family: var(--font-sans); color: var(--sbs-ink); line-height: var(--lh-body); }
a { color: var(--sbs-red-dark); }
a:hover { color: var(--sbs-red); }
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus-ring); }
.skip-link { position: absolute; left: var(--sp-3); top: -100px; z-index: var(--z-toast); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-pill); background: var(--sbs-navy); color: var(--sbs-white); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--sp-3); color: var(--sbs-white); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }
.unit { margin-left: 0.2em; font-size: max(var(--fs-xs), 0.85em); color: var(--sbs-muted-text); white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; word-break: normal; }
.app-main:focus { outline: none; }
.container-sbs { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .container-sbs { padding: 0 var(--sp-5); }
}
.topstrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--sp-1); min-height: var(--tap); background: var(--sbs-red); color: var(--sbs-white); font-size: var(--fs-sm); text-align: center; padding: 0 var(--sp-4); }
.topstrip a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-1); color: var(--sbs-white); font-weight: 700; text-decoration: underline; }
.app-footer { margin-top: var(--sp-7); border-top: 4px solid var(--sbs-red); background: var(--sbs-surface); color: var(--sbs-muted-text); font-size: var(--fs-sm); }
.app-footer a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--sbs-ink); }
.btn-sbs { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--btn-h); padding: 6px 14px; border: 1px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: var(--btn-fs); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn-sbs--sm { min-height: 32px; padding: 4px 12px; font-size: var(--btn-fs); }
/* v1.3.0 (#J15): buttons support the data. Visual size shrinks; on touch screens an invisible hit area keeps 44px. */
.btn-sbs::before { content: ""; position: absolute; inset: calc((var(--btn-h) - var(--tap)) / 2 - 1px) 0; }
.btn-sbs--sm::before { inset: -7px 0; }
.btn-sbs--text { min-height: 32px; padding: 4px 6px; border: 0; background: none; color: var(--sbs-red-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.btn-sbs--text:hover { color: var(--sbs-ink); text-decoration: underline; }
.btn-sbs--text::before { inset: -7px -2px; }
.eyebrow { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sbs-muted-text); }
.hero .eyebrow { color: var(--line-cool-3); }
.status-pill { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0.125rem var(--sp-3); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--sbs-bg); color: var(--sbs-ink); }
.level-bar__label { display: flex; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-1); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.freshness { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--sbs-muted-text); font-variant-numeric: tabular-nums; }
.field__hint { font-size: var(--fs-sm); color: var(--sbs-muted-text); }
.field__error { font-size: var(--fs-sm); color: var(--bad); font-weight: 600; }
.input-sbs { width: 100%; min-height: var(--tap); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--muted-cool); border-radius: var(--radius-md); background: var(--sbs-surface); color: var(--sbs-ink); font: inherit; }
.chip { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--tap); padding: var(--sp-1) var(--sp-4); border: 1px solid var(--sbs-control-line); border-radius: var(--radius-pill); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.table-sbs { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--sbs-surface); }
.table-sbs th, .table-sbs td { padding: var(--sp-3); border-bottom: 1px solid var(--sbs-line); text-align: left; vertical-align: top; }
.table-sbs th { font-size: var(--fs-sm); color: var(--sbs-muted-text); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards td { display: flex; justify-content: space-between; gap: var(--sp-3); border-bottom: 0; padding: var(--sp-2) 0; }
}
.sbs-flash a { color: var(--sbs-red); font-weight: bold; text-decoration: underline; }
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  body.has-tabbar { padding-bottom: 0; }
}
.page-section { padding-top: var(--sp-5); padding-bottom: var(--sp-6); }
.page-title { margin: 0; font-size: var(--fs-2xl); font-weight: 700; line-height: var(--lh-tight); }
.section-title { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); font-weight: 700; }
.meta-text { font-size: var(--fs-sm); color: var(--sbs-muted-text); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.toolbar__count { margin: 0 0 0 auto; font-size: var(--fs-sm); color: var(--sbs-muted-text); font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); margin: 0; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.switch input { width: 1.25rem; height: 1.25rem; accent-color: var(--sbs-navy); }
.loc-card__addr { margin: 0; font-size: var(--fs-sm); color: var(--sbs-muted-text); }
.hero__title { margin: 0 0 var(--sp-2); font-size: var(--fs-2xl); font-weight: 700; line-height: var(--lh-tight); }
.hero__hint { font-size: var(--fs-sm); }
.booth-card__title { margin: 0; font-size: var(--fs-xl); font-weight: 700; line-height: var(--lh-tight); }
.help-levels li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
body.tv-mode { background: var(--sbs-bg); padding-bottom: 0; }
body.tv-mode .topstrip, body.tv-mode .app-header, body.tv-mode .app-footer, body.tv-mode .tabbar, body.tv-mode .crumbs, body.tv-mode .board-toolbar, body.tv-mode .next-steps, body.tv-mode .board-hero__actions, body.tv-mode .filter-row__actions, body.tv-mode .status-orig, body.tv-mode .toast-region { display: none !important; }
body.tv-mode .tv-exit { display: inline-flex; top: var(--sp-3); right: var(--sp-3); z-index: var(--z-toast); }
body.tv-mode .board-hero { padding: var(--sp-3) 0; margin-bottom: var(--sp-3); }
body.tv-mode .booth-card { border: 0; }
body.tv-mode .level-bar__label { display: none; }
body.tv-mode .status-pill { font-size: 1rem; padding: 0.2em 0.8em; }
.insight .meta-text { margin: 0; }
.chart-card__head .section-title { margin: 0; }
.chart-legend { margin-bottom: var(--sp-2); font-size: var(--fs-sm); color: var(--sbs-muted-text); }
.chart-legend li { display: inline-flex; align-items: center; gap: var(--sp-1); margin-right: var(--sp-3); }
.readings > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; }
.auth-intro__title { margin: 0; font-size: var(--fs-2xl); font-weight: 700; line-height: var(--lh-tight); }
.auth-intro__help a { font-weight: 700; }
@media (max-width: 899.98px) {
  .auth-intro__title { font-size: var(--fs-xl); }
}
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--sbs-navy); }
.auth-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.optional-fields > summary { display: flex; align-items: center; min-height: var(--tap); font-weight: 700; cursor: pointer; }
.admin-tab { display: inline-flex; flex: none; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: var(--sp-1) var(--sp-4); border: 1px solid var(--sbs-control-line); border-radius: var(--radius-pill); background: var(--sbs-surface); color: var(--sbs-ink); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.admin-toolbar .section-title { flex: 1 1 100%; margin: 0; }
th[aria-sort="ascending"] .sort-btn::after { content: "\2191"; opacity: 1; }
th[aria-sort="descending"] .sort-btn::after { content: "\2193"; opacity: 1; }
.page-admin-form .appnitro ul { margin: 0; padding: 0; list-style: none; }
.page-admin-form .appnitro li { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--sbs-line); border-radius: var(--radius-md); }
.page-admin-form .access_list br { display: none; }
.range-error { margin: var(--sp-1) 0 0; color: var(--bad); font-size: var(--fs-sm); font-weight: 600; }
@media print {
  body, body.has-tabbar { padding: 0; background: var(--sbs-surface); color: var(--print-ink); }
}
.link-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.public-hero .eyebrow { color: var(--sbs-muted-text); }
.public-hero__title { margin: var(--sp-2) 0 var(--sp-3); font-size: var(--fs-2xl); font-weight: 700; line-height: var(--lh-tight); }
.public-h2 { margin: 0 0 var(--sp-4); font-size: var(--fs-xl); font-weight: 700; }
.step__title { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-lg); font-weight: 700; }
.meta-text--quiet { font-size: var(--fs-xs); }
.tip__text { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: var(--z-menu); display: none; width: max-content; max-width: min(280px, 80vw); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); background: var(--sbs-dark); color: var(--sbs-white); font-size: var(--fs-sm); font-weight: 400; line-height: var(--lh-body); text-align: left; transform: translateX(-50%); box-shadow: var(--shadow-2); white-space: normal; }
.input-sbs--sm { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); }
.form-section__title { float: left; width: 100%; margin: 0 0 var(--sp-3); padding: 0; font-size: var(--fs-lg); font-weight: 700; }
textarea.input-sbs { min-height: 10rem; resize: vertical; }
html { -webkit-tap-highlight-color: rgba(28, 34, 40, 0.12); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary, label, select, input, textarea, [role="button"], [role="tab"] { touch-action: manipulation; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .input-sbs, input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { font-size: max(16px, 1rem); }
  input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; }
}
body.is-leaving .nav-progress { opacity: 1; animation: nav-progress 2.4s cubic-bezier(0.1, 0.7, 0.3, 1) forwards; }
body.is-leaving .app-main { opacity: 0.55; transition: opacity 200ms ease 120ms; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  body.has-tabbar { min-height: var(--app-vh); padding-top: calc(var(--appbar-h) + var(--safe-top)); padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); background: var(--app-bg); color: var(--app-ink); }
  body.has-tabbar .topstrip, body.has-tabbar .app-header, body.has-tabbar .app-footer, body.has-tabbar .crumbs { display: none; }
  body.has-tabbar .page-section { padding-top: var(--sp-4); }
  body.has-tabbar .app-main { animation: app-in 180ms ease-out both; }
}
html.has-sheet, html.has-sheet body { overflow: hidden; }
.loc-card__counts { font-size: var(--fs-sm); font-weight: 600; }
.app-group__title { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.app-list__sub, .app-list__when { color: var(--sbs-muted-text); font-size: var(--fs-sm); }
.app-list__when { font-size: var(--fs-xs); }
.install-card__text { margin: var(--sp-1) 0 var(--sp-3); color: var(--sbs-muted-text); font-size: var(--fs-sm); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .level-bar__label { font-size: var(--fs-xs); }
  .chart-legend { grid-template-columns: 1fr 1fr; font-size: var(--fs-xs); }
  body.kb-open .tabbar, body.kb-open .history-hero__actions, body.kb-open .install-card { display: none; }
  .admin-table.table-cards td[data-label]::before { display: block; margin-bottom: 2px; font-size: var(--fs-xs); font-weight: 600; }
  .auth-card p a[href^="tel:"], .sbs-flash a[href^="tel:"], .state a[href^="tel:"] { display: inline-block; padding-block: 11px; }
}
html, body { background: var(--sbs-bg); }
main img, main canvas, main video { max-width: 100%; }
.hero .eyebrow, .hero__meta, .hero__fresh, .history-path, .auth-intro__list, .auth-intro__help { color: var(--sbs-muted-text); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  body { font-size: 1rem; }
  .meta-text, .freshness, .field__hint, .field__error, .toolbar__count, .loc-card__addr, .hero__hint, .app-footer, .topstrip, .chip, .status-pill, .btn-sbs--sm, .admin-tab, .switch, .table-sbs th, .tip__text, .app-list__when, .loc-card__counts, .install-card__text { font-size: var(--fs-body); }
  .page-title, .hero__title, .auth-intro__title, .public-hero__title { font-size: var(--h1); line-height: 1.2; }
  .public-h2, .help-article .section-title, .chart-card .section-title, .form_description .page-title { font-size: var(--h2); }
  .section-title, .booth-card__title, .app-group__title, .form-section__title, .step__title { font-size: var(--h3); }
  .eyebrow, .level-bar__label, .chart-legend, .admin-table.table-cards td[data-label]::before { font-size: var(--fs-xs); }
  .container-sbs { padding-right: calc(var(--gutter) + var(--safe-right)); padding-left: calc(var(--gutter) + var(--safe-left)); }
  .page-section { padding-top: var(--sp-4); padding-bottom: var(--sp-5); }
  body.has-tabbar .crumbs { display: none; }
  .booth-card__title-wrap .eyebrow { display: none; }
  main :is(p, li, dd, td, figcaption) > a:not(.btn-sbs):not(.card-sbs), .auth-intro a:not(.btn-sbs), .state a:not(.btn-sbs) { display: inline-block; padding-block: 11px; margin-block: -11px; }
}
/* v1.3.0: headings focused by script after a view change show no outline; keyboard focus on controls still does (#41) */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main:focus { outline: none; box-shadow: none; }
/* focus is never hidden under the fixed app bar or tab bar (#75) */
:where(a, button, input, select, textarea, summary, [tabindex]) { scroll-margin-top: calc(var(--appbar-h) + var(--safe-top) + 16px); scroll-margin-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); }
/* data pages use more of a wide screen (#68) */
.container-sbs.container-data { max-width: 1360px; }
/* Desktop data pages: no text under 14px, tables 15px (#67) */
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  body.has-tabbar, body.page-board { --fs-xs: 0.875rem; }
  body.has-tabbar .table-sbs, body.has-tabbar .planner table { font-size: 15px; }
}
/* Detected filter changes are switched off (CHANGE_MARKERS_ENABLED in app.js, #J2) */
[data-change-ui] { display: none !important; }
html.change-ui-on [data-change-ui]:not([hidden]) { display: revert !important; }

/* ==== Header, navigation, footer ==== */
.topstrip a:hover { color: var(--sbs-white); text-decoration: none; }
.app-header { position: relative; z-index: var(--z-header); background: var(--sbs-surface); border-bottom: 1px solid var(--sbs-line); }
.app-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); min-height: 64px; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.brand { display: flex; align-items: center; min-height: var(--tap); gap: var(--sp-3); min-width: 0; color: var(--sbs-ink); text-decoration: none; }
.brand:hover { color: var(--sbs-ink); text-decoration: none; }
.brand__mark { flex: none; width: 54px; height: 40px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: var(--lh-tight); }
.brand__name { font-size: var(--fs-md); font-weight: 700; color: var(--sbs-ink); }
.brand__by { font-size: var(--fs-xs); color: var(--sbs-muted-text); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); margin-left: auto; padding: 0; border: 1px solid var(--sbs-control-line); border-radius: var(--radius-pill); background: var(--sbs-surface); color: var(--sbs-ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.app-nav { display: none; width: 100%; }
.app-nav.is-open { display: block; }
.nav-list { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0; padding: var(--sp-2) 0 var(--sp-3); list-style: none; }
.nav-link-sbs { display: flex; align-items: center; min-height: var(--tap); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill); color: var(--sbs-ink); font-weight: 600; text-decoration: none; }
.nav-link-sbs:hover { background: var(--sbs-bg); color: var(--sbs-ink); text-decoration: none; }
.nav-link-sbs[aria-current="page"] { background: var(--sbs-bg); color: var(--sbs-ink); box-shadow: inset 0 -2px 0 var(--sbs-red); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.nav-note { display: flex; align-items: center; min-height: var(--tap); padding: var(--sp-2) var(--sp-4); color: var(--sbs-muted-text); font-size: var(--fs-sm); }
.header-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-bottom: var(--sp-3); }
@media (min-width: 992px) {
  .app-header__inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .app-nav, .app-nav.is-open { display: flex; align-items: center; width: auto; flex: 1 1 auto; min-width: 0; }
  .nav-list { flex-direction: row; flex-wrap: wrap; padding: 0; margin-left: var(--sp-4); }
  .header-actions { margin-left: auto; padding-bottom: 0; flex-wrap: nowrap; gap: 0; }
  /* #J15: header actions are quiet text buttons on desktop */
  .header-actions .btn-sbs { min-height: 36px; padding: 6px 10px; border-color: transparent; background: none; color: var(--sbs-ink); font-weight: 600; }
  .header-actions .btn-sbs:hover { background: var(--sbs-bg); color: var(--sbs-ink); border-color: transparent; }
  .header-actions .btn-sbs--primary { color: var(--sbs-red-dark); }
}
.app-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.app-footer a:hover { color: var(--sbs-red-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.account { position: relative; }
.card-sbs { background: var(--sbs-surface); border: 1px solid var(--sbs-line); border-radius: var(--radius-lg); padding: var(--sp-4); box-shadow: var(--shadow-1); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .card-sbs { padding: var(--sp-5); }
}
.hero a:not(.btn-sbs) { color: inherit; }
.sbs-flash a:hover { color: var(--sbs-red-dark); }
.crumbs { margin-bottom: var(--sp-3); }
.crumbs a::before { content: "\2190"; margin-right: var(--sp-2); }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.check { margin: 0 0 var(--sp-3); cursor: pointer; display: flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); }
.optional-fields { margin-bottom: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--sbs-line); border-radius: var(--radius-md); }
.page-admin-form .description { display: block; margin: 0 0 var(--sp-2); font-size: var(--fs-lg); font-weight: 700; }
.page-admin-form .element { width: 100%; max-width: 100%; min-height: var(--tap); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--muted-cool); border-radius: var(--radius-md); background: var(--sbs-surface); color: var(--sbs-ink); font: inherit; }
.app-footer .link-btn, .link-btn--light { color: var(--sbs-white); }
.help-header-actions { display: flex; flex-wrap: wrap; gap: 14px var(--sp-2); margin-left: auto; }
.faq summary { display: flex; align-items: center; min-height: var(--tap); padding: var(--sp-2) 0; font-weight: 700; cursor: pointer; }
.step, .level-cards li { padding: var(--sp-4); }
.pager__btns[hidden] { display: none; }
.app-footer p a { text-decoration: underline; }
.footer-version { flex: 1 1 100%; margin: var(--sp-2) 0 0; font-size: var(--fs-xs); opacity: 0.85; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .footer-links a, .footer-links .link-btn, .contact-lines a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .footer-links { gap: 0 var(--sp-4); }
}
.nav-progress { position: fixed; top: 0; left: 0; z-index: calc(var(--z-toast) + 1); width: 100%; height: 3px; background: var(--sbs-red); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; pointer-events: none; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .sheet__body > *, .sheet__body .chip-group { width: 100%; }
  .sheet__body .switch { min-height: 52px; }
}
.skeleton { display: inline-block; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--sbs-line) 0%, var(--sbs-bg) 50%, var(--sbs-line) 100%); background-size: 200% 100%; animation: skeleton 1.2s ease-in-out infinite; }
.install-card { position: fixed; right: calc(var(--sp-3) + var(--safe-right)); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--sp-3)); left: calc(var(--sp-3) + var(--safe-left)); z-index: var(--z-toast); display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--sbs-line); border-radius: var(--radius-lg); background: var(--sbs-surface); color: var(--sbs-ink); box-shadow: var(--shadow-2); animation: sheet-up 220ms ease-out both; }
.install-card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ptr { position: fixed; top: calc(var(--appbar-h) + var(--safe-top) - 36px); left: 50%; z-index: var(--z-header); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sbs-surface); color: var(--sbs-muted-text); box-shadow: var(--shadow-2); opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
@media (max-width: 991.98px) {
  .app-nav.is-open { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-menu); width: min(340px, 86vw); padding: calc(var(--safe-top) + 72px) calc(var(--sp-4) + var(--safe-right)) calc(var(--sp-5) + var(--safe-bottom)) var(--sp-4); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--sbs-surface); box-shadow: 0 0 0 100vmax rgba(15, 19, 23, 0.45), var(--shadow-2); animation: nav-in 200ms ease-out both; }
  .app-nav.is-open .nav-link-sbs { min-height: 52px; font-size: var(--fs-lg); }
  .app-nav.is-open .header-actions { display: grid; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--sbs-line); }
  .app-nav.is-open .header-actions .btn-sbs { width: 100%; min-height: 48px; }
  .nav-toggle[aria-expanded="true"] { position: relative; z-index: calc(var(--z-menu) + 1); }
}
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .footer-links a, .footer-links .link-btn { justify-content: center; min-width: var(--tap); }
}
.footer-links a, .footer-links .link-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .crumbs a, .auth-links a, .app-footer a, .help-nav a, .footer-links a, .pw-toggle, .link-btn, .access-grid .check, .check, .switch, .faq summary { display: inline-flex; align-items: center; min-height: var(--tap); }
}
.nav-link-sbs[data-nav-alerts] { display: inline-flex; align-items: center; gap: 6px; }
.nav-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--bad); color: var(--sbs-white); font-size: var(--fs-xs); font-weight: 700; line-height: 22px; text-align: center; }
.nav-badge.tabbar__badge--warn { background: var(--warn-bar); color: var(--sbs-ink); }
.nav-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--sbs-red); vertical-align: middle; }
.admin-pill { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--info-bg); color: var(--info); font-size: var(--fs-sm); font-weight: 700; cursor: help; }
.admin-pill__tip { position: absolute; top: calc(100% + 6px); right: 0; z-index: var(--z-menu); width: max-content; max-width: 260px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--sbs-ink); color: var(--sbs-white); font-size: var(--fs-sm); font-weight: 400; white-space: normal; opacity: 0; visibility: hidden; transition: opacity var(--dur); }
.admin-pill:hover .admin-pill__tip, .admin-pill:focus .admin-pill__tip { opacity: 1; visibility: visible; }
/* signed-in pages line the header up with the 1360px data pages (#68) */
body.has-tabbar .app-header__inner { max-width: 1360px; }
/* One breadcrumb pattern: Locations › Site › Booth › Filter (#5) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.crumbs__trail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.crumbs__sep { color: var(--sbs-muted-text); }
.crumbs__here { color: var(--sbs-muted-text); font-weight: 700; overflow-wrap: anywhere; }
.crumbs:has(.crumbs__sep) a::before { display: none; }
.header-signin { display: none; }
@media (max-width: 991.98px) {
  .header-signin { display: inline-flex; flex: none; white-space: nowrap; align-items: center; min-height: var(--tap); margin-left: auto; padding: 0 var(--sp-3); color: var(--sbs-ink); font-weight: 700; text-decoration: none; }
  .header-signin + .nav-toggle { margin-left: var(--sp-1); }
}
/* Signed-in header on smaller desktops: one line (v1.3.0) */
@media (max-width: 1439.98px) {
  body.has-tabbar .header-actions .btn-sbs { white-space: nowrap; }
  body.has-tabbar .nav-link-sbs { padding-inline: 10px; }
  body.has-tabbar .brand__by { display: none; }
}
@media (max-width: 1199.98px) {
  body.has-tabbar .nav-note { display: none; }
  body.has-tabbar .brand__text { display: none; }
}
@media (max-width: 991.98px) {
  .app-header__inner { flex-wrap: nowrap; }
  .app-header__inner .brand { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 359.98px) {
  .app-header__inner .brand__by { display: none; }
}
.nav-toggle { flex: none; min-width: var(--tap); }

/* ==== App bar, tab bar and sheets ==== */
.tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: var(--z-tabbar); display: flex; justify-content: space-around; min-height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom, 0); border-top: 1px solid var(--sbs-line); background: var(--sbs-surface); }
.tabbar__item { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); padding: var(--sp-1); border: 0; background: transparent; color: var(--sbs-muted-text); font: inherit; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; cursor: pointer; }
.tabbar__item svg { width: 24px; height: 24px; }
.tabbar__item:hover { color: var(--sbs-ink); text-decoration: none; }
.tabbar__item[aria-current="page"] { color: var(--sbs-navy); }
.tabbar__item[aria-current="page"] svg { color: var(--sbs-red); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .tabbar { display: none; }
}
.appbar, .sheet { display: none; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .appbar { position: fixed; top: 0; right: 0; left: 0; z-index: var(--z-header); display: flex; align-items: center; gap: var(--sp-1); height: calc(var(--appbar-h) + var(--safe-top)); padding: var(--safe-top) calc(var(--sp-1) + var(--safe-right)) 0 calc(var(--sp-1) + var(--safe-left)); border-bottom: 1px solid var(--app-line); background: var(--app-surface); color: var(--app-ink); }
  .appbar__title { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 var(--sp-2); font-weight: 700; }
  .appbar__btn { display: inline-grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
  .appbar__btn svg { width: 26px; height: 26px; }
  .appbar__btn:hover, .appbar__btn:active { background: var(--app-press); text-decoration: none; }
  .appbar__back[href=""] { display: none; }
  .appbar__back[href=""] + .appbar__title { padding-left: var(--sp-3); }
  .tabbar { padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left); border-top-color: var(--app-line); background: var(--app-surface); }
  .tabbar__item { position: relative; min-width: 48px; color: var(--app-muted); font-size: var(--fs-xs); }
  .tabbar__item[aria-current="page"] { color: var(--app-ink); }
  .tabbar__item[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--sbs-red); transform: translateX(-50%); }
  .tabbar__icon { position: relative; display: inline-flex; }
  .tabbar__badge { position: absolute; top: -6px; left: 14px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--app-surface); border-radius: 10px; background: var(--bad); color: var(--sbs-white); font-size: var(--fs-xs); font-weight: 700; line-height: 16px; text-align: center; }
  .tabbar__badge--warn { background: var(--warn); }
  .sheet:not([hidden]) { position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; justify-content: flex-end; background: rgba(15, 19, 23, 0.45); }
  .sheet__panel { max-height: calc(var(--app-vh) - var(--safe-top) - var(--sp-6)); padding: 0 calc(var(--sp-4) + var(--safe-right)) calc(var(--sp-4) + var(--safe-bottom)) calc(var(--sp-4) + var(--safe-left)); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--app-surface); color: var(--app-ink); box-shadow: var(--shadow-2); animation: sheet-up 200ms ease-out both; }
  .sheet__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; padding-top: var(--sp-3); background: inherit; }
  .sheet__grip { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; border-radius: 2px; background: var(--app-line); transform: translateX(-50%); }
  .sheet__title { flex: 1 1 auto; margin: 0; font-size: var(--fs-lg); font-weight: 700; }
  .sheet__close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--app-surface-2); color: inherit; font-size: 1.75rem; line-height: 1; }
  .sheet__body { display: grid; gap: var(--sp-2); padding-top: var(--sp-3); }
  .sheet__body .btn-sbs, .sheet__item { display: flex; justify-content: flex-start; width: 100%; min-height: 52px; }
}
.loc-card__name, .booth-card__title, .hero__title, .app-group__title, .app-list__title, .app-list__sub, .appbar__title { overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .appbar__title { display: -webkit-box; overflow: visible; font-size: var(--h3); line-height: 1.2; white-space: normal; text-overflow: clip; -webkit-box-orient: vertical; }
}

/* ==== Buttons, chips and switches ==== */
.btn-sbs:hover { text-decoration: none; }
/* Quiet by default: brand colour on the text, not the fill. One filled button per view: the main action of a form (Sign in, Save). */
.btn-sbs--primary { background: var(--btn-tint); border-color: var(--btn-tint-line); color: var(--sbs-red-dark); }
.btn-sbs--primary:hover { background: var(--btn-tint-hover); border-color: var(--sbs-red); color: var(--sbs-red-dark); }
form .btn-sbs--primary { background: var(--sbs-red); border-color: var(--sbs-red); color: var(--sbs-white); }
form .btn-sbs--primary:hover { background: var(--sbs-red-dark); border-color: var(--sbs-red-dark); color: var(--sbs-white); }
.btn-sbs--secondary, .btn-sbs--outline { background: var(--sbs-surface); border-color: var(--btn-line); color: var(--sbs-ink); }
.btn-sbs--secondary:hover, .btn-sbs--outline:hover { background: var(--sbs-bg); border-color: var(--sbs-ink); color: var(--sbs-ink); }
.btn-sbs[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sbs-spin 0.8s linear infinite; }
.pin-btn { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-2)) 0 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--sbs-muted-text); cursor: pointer; }
.pin-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pin-btn:hover { background: var(--sbs-bg); color: var(--sbs-ink); }
.pin-btn[aria-pressed="true"] { color: var(--warn); }
.auth-submit { width: 100%; }
.btn-sbs--danger { border-color: var(--bad); background: var(--sbs-surface); color: var(--bad); }
.btn-sbs--danger:hover, .btn-sbs--danger:focus-visible { background: var(--bad); color: var(--sbs-white); }
.sort-btn { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.tour-pop .btn-sbs--outline { border-color: var(--sbs-white); background: transparent; color: var(--sbs-white); }
.tip__btn { display: inline-flex; align-items: center; gap: 0.25em; min-height: var(--tap); margin: -10px 0; padding: 0 2px; border: 0; background: none; font: inherit; color: inherit; cursor: help; }
.pager__btns { display: inline-flex; gap: var(--sp-2); margin-left: auto; }
.admin-edit .btn-sbs { min-width: var(--tap); }
.sort-btn, .input-sbs--sm { min-height: var(--tap); }
.chart-card .chip, .pager .btn-sbs { min-height: var(--tap); min-width: var(--tap); }
.btn-sbs:active, .chip:active, .admin-tab:active, .tabbar__item:active, .appbar__btn:active, .sheet__item:active, .pin-btn:active { transform: scale(0.97); filter: brightness(0.95); }
.btn-sbs, .chip, .admin-tab, .tabbar__item, .appbar__btn, .sheet__item { transition: transform 80ms ease, filter 80ms ease, background-color var(--dur) ease, color var(--dur) ease; }
.chip-group.seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border: 1px solid var(--sbs-line); border-radius: var(--radius-pill); background: var(--sbs-bg); }
.chip-group.seg .chip { flex: 1 1 0; justify-content: center; min-width: 0; border-color: transparent; background: transparent; color: var(--sbs-ink); white-space: nowrap; }
.chip-group.seg .chip[aria-pressed="true"] { border-color: var(--sbs-line); background: var(--sbs-surface); color: var(--sbs-ink); box-shadow: var(--shadow-1); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .chip-group.seg { display: flex; width: 100%; }
  .chip-group.seg .chip { padding-inline: var(--sp-2); }
  .auth-submit, .auth-form .btn-sbs--primary { width: 100%; min-height: 48px; }
  .tip__btn { justify-content: center; min-width: var(--tap); }
}
.btn-sbs--light { border-color: var(--btn-line); background: var(--sbs-surface); color: var(--sbs-ink); }
.btn-sbs--light:hover { border-color: var(--sbs-ink); background: var(--app-surface-2); color: var(--sbs-ink); }
.tip--plain .tip__btn { min-height: 0; margin: 0; pointer-events: none; cursor: default; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .chip { min-height: var(--tap); }

}

/* ==== Cards, heroes and banners ==== */
.card-sbs img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.hero { border-radius: var(--radius-lg); padding: var(--sp-5); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table-cards tr { margin-bottom: var(--sp-3); border: 1px solid var(--sbs-line); border-radius: var(--radius-lg); background: var(--sbs-surface); padding: var(--sp-2) var(--sp-3); }
  .table-cards td[data-label]::before { content: attr(data-label); flex: none; font-weight: 700; color: var(--sbs-muted-text); }
}
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-4); }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp-3); }
.loc-card { position: relative; display: flex; align-items: flex-start; gap: var(--sp-3); transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.loc-card:hover, .loc-card:focus-within { border-color: var(--line-cool-2); box-shadow: var(--shadow-2); }
.loc-card__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--sbs-bg); color: var(--sbs-navy); }
.loc-card__icon svg { width: 24px; height: 24px; }
.loc-card__name { margin: 0 0 var(--sp-1); font-size: var(--fs-lg); font-weight: 700; line-height: var(--lh-tight); }
.board-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.board-hero__main { min-width: 0; flex: 1 1 320px; }
.hero__meta, .hero__fresh { margin: 0 0 var(--sp-1); }
.hero__badge { display: inline-block; margin-left: var(--sp-2); padding: 0 var(--sp-2); border: 1px solid var(--line-cool); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; }
.board-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.next-steps { margin-bottom: var(--sp-4); border-left: 6px solid var(--warn-bar); }
.booth-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.booth-card__power { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-3); font-size: var(--fs-sm); }
@media print {
  .board-hero { padding: 0 0 8px; }
}
.history-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.history-hero__main { flex: 1 1 320px; min-width: 0; }
.chart-card { margin-bottom: var(--sp-4); }
.chart-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.history-next { margin-bottom: var(--sp-4); }
@media (max-width: 899.98px) {
  .auth-intro { padding: var(--sp-4); }
}
.auth-card { padding: var(--sp-5); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .auth-card { padding: var(--sp-6); }
}
.auth-card > .sbs-flash { margin-bottom: var(--sp-4); }
.admin-panel { padding: var(--sp-4); }
.admin-form-card { max-width: 760px; padding: var(--sp-5); }
@media print {
  .app-header, .app-footer, .card-sbs, .hero { background: var(--sbs-white) !important; color: var(--print-ink) !important; border-color: var(--print-ink); box-shadow: none; }
}
.help-article { padding: var(--sp-5); }
.help-cards { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.help-card { display: flex; flex-direction: column; gap: var(--sp-2); height: 100%; padding: var(--sp-4); color: var(--sbs-ink); text-decoration: none; }
.help-card:hover { border-color: var(--sbs-navy); color: var(--sbs-ink); text-decoration: none; }
.contact-card { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--sbs-line); border-radius: var(--radius-md); background: var(--sbs-bg); }
.public-hero__inner { display: grid; gap: var(--sp-5); align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.public-hero__lead { max-width: 40rem; margin: 0 0 var(--sp-5); font-size: var(--fs-lg); }
.contact-block { padding: var(--sp-5); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .public-hero__title { font-size: var(--fs-3xl); }
}
@media (min-width: 992px) {
  .public-hero__inner { grid-template-columns: minmax(0, 1fr) 420px; padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
}
.banner { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); border: 1px solid transparent; }
.banner[hidden] { display: none; }
.banner__icon { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.banner__text { margin: 0; font-weight: 600; }
.banner--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.banner--offline { background: var(--sbs-dark); color: var(--sbs-white); }
.booth-card__head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
.loc-card.is-collapsed { display: none; }
@media print {
  .page-board .booth-card { break-inside: avoid; margin-bottom: 10px; }
}
.booth-card__title-wrap { min-width: 0; flex: 1 1 10rem; cursor: pointer; }
@media (max-width: 575.98px) {
  .booth-card__head-actions { flex: 1 1 100%; justify-content: space-between; }
}
.loc-card:active, .filter-row:active, .app-list__item:active { background-color: var(--app-surface-2); }
.loc-card__body { flex: 1 1 auto; min-width: 0; }
.loc-card__chev { display: none; }
.loc-card__slot:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); margin-top: var(--sp-2); }
.loc-card__asof { flex-basis: 100%; color: var(--sbs-muted-text); font-size: var(--fs-xs); }
.app-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-3); }
.app-group { padding: 0; overflow: hidden; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .loc-card { align-items: center; border-radius: var(--radius-lg); }
  .loc-card__icon { display: none; }
  .loc-card__street { display: none; }
  .loc-card__chev { display: block; flex: none; order: 3; width: 24px; height: 24px; color: var(--sbs-muted-text); }
}
.install-card__icon { flex: none; border-radius: var(--radius-md); }
.install-card__body { flex: 1 1 auto; min-width: 0; }
.install-card__title { margin: 0; font-weight: 700; }
.install-card__glyph { width: 18px; height: 18px; vertical-align: -3px; color: var(--focus-blue); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .install-card { display: none; }
}
.board-hero__actions, .chip-group, .admin-tabs, .history-hero__actions, .insights { position: relative; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .readings .table-cards, .table-view .table-cards { display: table; width: 100%; table-layout: fixed; }
}
.hero { border: 1px solid var(--sbs-line); border-left: 4px solid var(--sbs-red); background: var(--sbs-surface); color: var(--sbs-ink); box-shadow: var(--shadow-1); }
.hero__title, .auth-intro__title { color: var(--sbs-ink); }
.page-foot { margin: var(--sp-5) 0 0; text-align: center; }
.portfolio { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--card-gap); padding: var(--sp-3) var(--card-pad); border: 1px solid var(--sbs-line); border-radius: var(--radius-lg); background: var(--sbs-surface); font-size: 1.0625rem; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .booth-card .filter-list { display: flex; flex-direction: column; }
}
.history-hero { align-items: stretch; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .card-sbs, .hero, .booth-card, .admin-panel, .chart-card, .auth-card, .admin-form-card, .contact-block, .help-article { padding: var(--card-pad); }
  .card-sbs + .card-sbs, .booth-list > * + *, .loc-grid, .app-list { gap: var(--card-gap); }
  .hero, .summary-strip, .board-toolbar, .next-steps, .booth-list > .booth-card, .office-block, .chart-card, .history-next, .readings, .portfolio { margin-bottom: var(--card-gap); }
  .page-head { margin-bottom: var(--card-gap); }
  .board-hero, .history-hero { grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; }
  .booth-card__head { flex-wrap: nowrap; align-items: center; gap: var(--sp-2); }
  .booth-card__title-wrap { flex: 1 1 auto; min-width: 0; cursor: pointer; }
  .booth-card__title { margin: 0; }
  .booth-card:not(.is-collapsed) .booth-card__head { margin-bottom: var(--sp-1); }
}
.help-q { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--sbs-control-line); border-radius: 50%; color: var(--sbs-ink); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.help-q:hover { background: var(--sbs-bg); text-decoration: none; }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.session-ended { max-width: 1360px; margin: var(--sp-3) auto; }
@media (pointer: coarse) {
  .help-q { width: 44px; height: 44px; }
}
.banner--info { background: var(--sbs-surface); border-color: var(--sbs-line); color: var(--sbs-ink); }

/* ==== Status, levels and tips ==== */
.status-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status-pill--ok { background: var(--ok-bg); color: var(--ok); }
.status-pill--warn { background: var(--warn-bg); color: var(--warn); }
.status-pill--bad { background: var(--bad-bg); color: var(--bad); }
.level-bar { display: block; width: 100%; }
.level-bar__track { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--sbs-line); overflow: hidden; }
.level-bar__fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--ok-bar); }
.level-bar--ok .level-bar__fill { background: var(--ok-bar); }
.level-bar--warn .level-bar__fill { background: var(--warn-bar); }
.level-bar--bad .level-bar__fill { background: var(--bad-bar); }
.power-dot, .sensor-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted-cool); }
.power-dot--online, .sensor-dot--online { background: var(--ok-bar); }
.power-dot--offline, .sensor-dot--offline { background: var(--bad-bar); }
.sensor-dot { margin-right: var(--sp-1); }
.status-orig { font-size: var(--fs-xs); color: var(--sbs-muted-text); text-align: right; }
.legend__swatch { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.legend__swatch--line { height: 3px; background: var(--sbs-navy); }
.legend__swatch--warn { background: rgba(240, 164, 0, 0.35); border-top: 2px dashed var(--warn-strong); }
.legend__swatch--bad { background: rgba(200, 16, 46, 0.25); border-top: 2px dashed var(--sbs-red); }
.badge-test, .badge-flag { display: inline-block; margin-left: var(--sp-1); padding: 0 var(--sp-2); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; vertical-align: middle; white-space: nowrap; }
.badge-test { background: var(--info-bg); color: var(--info); }
.badge-flag { margin: 0 var(--sp-1) var(--sp-1) 0; }
.badge-flag--bad { background: var(--bad-bg); color: var(--bad); }
.badge-flag--ok { background: var(--ok-bg); color: var(--ok); }
.status-pill--none { background: var(--sbs-bg); color: var(--sbs-ink); border: 1px dashed var(--sbs-control-line); }
.tip { position: relative; display: inline-flex; align-items: center; }
.tip__i { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border: 1px solid var(--sbs-control-line); border-radius: 50%; font-size: var(--fs-xs); font-weight: 700; color: var(--sbs-muted-text); }
.tip.is-open .tip__text { display: block; }
.legend__swatch--change { border-left: 2px dashed var(--ok); background: none !important; width: 0 !important; height: 14px !important; }
.loc-status-note { margin: 0 0 var(--sp-3); }
.skeleton--pill { width: 140px; height: 26px; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .filter-row .status-orig { display: none; }
}
.status-pill--ok::before, .status-pill--warn::before, .status-pill--bad::before, .count::before, .stat-tile__label::before, .next-steps__line::before { content: ""; display: inline-block; flex: none; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--icon-ok) center / contain no-repeat; mask: var(--icon-ok) center / contain no-repeat; }
.status-pill--warn::before, .count--warn::before, .stat-tile--warn .stat-tile__label::before, .next-steps__line--warn::before { -webkit-mask-image: var(--icon-warn); mask-image: var(--icon-warn); }
.status-pill--bad::before, .count--bad::before, .stat-tile--bad .stat-tile__label::before, .next-steps__line--bad::before { -webkit-mask-image: var(--icon-bad); mask-image: var(--icon-bad); }
.tip--plain .tip__i, .tip--plain .tip__text { display: none !important; }
.status-pill--stale { background: var(--surface-cool); color: var(--sbs-muted-text); border: 1px solid var(--line-cool); }
.badge-new { display: inline-block; margin-left: var(--sp-2); padding: 0 var(--sp-2); border-radius: var(--radius-pill); background: var(--sbs-red); color: var(--sbs-white); font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; vertical-align: middle; }
.spark { display: block; overflow: visible; }
.spark__warn { fill: var(--warn-bg); }
.spark__bad { fill: var(--bad-bg); }
.spark__line { stroke: var(--sbs-ink); stroke-width: 1.5; stroke-linejoin: round; }
.spark__dot { fill: var(--sbs-ink); }
.sample-badge { display: inline-block; padding: 2px 10px; border: 1px solid var(--bad); border-radius: var(--radius-pill); color: var(--bad); font-size: var(--fs-xs); font-weight: 700; }
/* #J14 past-due warning */
.pastdue-warn { display: flex; gap: var(--sp-2); align-items: flex-start; margin: var(--sp-2) 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); background: var(--bad-bg); color: var(--bad); font-size: var(--fs-sm); font-weight: 700; }
.pastdue-warn::before { content: ""; flex: none; width: 1.05em; height: 1.05em; margin-top: 0.15em; background: currentColor; -webkit-mask: var(--icon-bad) center / contain no-repeat; mask: var(--icon-bad) center / contain no-repeat; }
@media print { .pastdue-warn { border: 1px solid var(--bad); -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ==== Forms ==== */
.field { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.field__label { font-weight: 700; font-size: var(--fs-sm); }
.sbs-flash { font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--sbs-ink); background-color: var(--sbs-bg); border: 1px solid var(--sbs-line); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px 0; }
.sbs-flash-error, .sbs-flash-danger { color: var(--bad); background-color: var(--bad-bg); }
.state--error .state__title { color: var(--bad); }
.toolbar__field { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; }
.toolbar__field .input-sbs { width: auto; }
.auth-form .input-sbs { font-size: 1rem; }
.field-row { display: grid; gap: 0 var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.pw-wrap .input-sbs { padding-right: 5rem; }
.field--invalid .input-sbs { border-width: 2px; }
.page-admin-form textarea.element { min-height: 10rem; resize: vertical; }
.page-admin-form .element:disabled { border-color: var(--sbs-line); background: var(--sbs-bg); color: var(--sbs-muted-text); }
.page-admin-form .element.small { max-width: 10rem; }
.page-admin-form .element.medium { max-width: 24rem; }
.page-admin-form .access_list { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-2); align-items: center; }
.page-admin-form .range-note { margin-top: var(--sp-3); }
.page-admin-form .element[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .page-admin-form .appnitro .left, .page-admin-form .appnitro .right { display: inline-block; width: calc(50% - var(--sp-2)); vertical-align: top; }
}
.check-list { margin: 0; padding-left: var(--sp-5); list-style: square; }
.form-section { min-width: 0; margin: 0 0 var(--sp-4); padding: var(--sp-4); border: 1px solid var(--sbs-line); border-radius: var(--radius-md); }
.form-section--muted { background: var(--sbs-bg); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 var(--sp-4); }
.input-sbs:disabled { border-color: var(--sbs-line); background: var(--sbs-bg); color: var(--sbs-muted-text); }
.field--invalid .input-sbs, .admin-form .input-sbs[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.field__error[hidden] { display: none; }
.form-actions { justify-content: flex-start; margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--sbs-line); }
.field > .field__hint, .field > .field__error, .field > .admin-warning, .form-section > .field__hint { margin: 0; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .input-sbs, select.input-sbs, .input-sbs--sm { min-height: 48px; }
  .access-grid .check, .check { display: flex; min-height: 48px; }
  .field-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ==== Toolbar ==== */
.toolbar__search { flex: 1 1 240px; min-width: 0; }
.toolbar__label { font-size: var(--fs-sm); font-weight: 700; color: var(--sbs-muted-text); }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }

/* ==== Tables ==== */
.table-sbs tbody tr:last-child > th, .table-sbs tbody tr:last-child > td { border-bottom: 0; }
.booth-list { display: grid; gap: var(--sp-4); }
.history-path { margin: 0 0 var(--sp-1); font-weight: 600; }
.auth-shell { display: grid; gap: var(--sp-4); max-width: 960px; margin: 0 auto; }
@media (min-width: 900px) {
  .auth-shell { grid-template-columns: 1fr 1.1fr; align-items: stretch; }
}
.auth-intro { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); }
.auth-intro__list { margin: 0; padding-left: var(--sp-5); }
.auth-intro__help { margin: 0; }
@media (max-width: 899.98px) {
  .auth-intro__list { display: none; }
}
.auth-title { margin: 0 0 var(--sp-2); font-size: var(--fs-2xl); font-weight: 700; line-height: var(--lh-tight); }
.auth-lead { margin: 0 0 var(--sp-4); }
.auth-links { margin: var(--sp-4) 0 0; text-align: center; }
.admin-table-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--sbs-line); border-radius: var(--radius-md); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .admin-table-wrap { max-height: none; overflow: visible; border: 0; }
}
.auth-intro__lang { margin: var(--sp-4) 0 0; }
.spec-table { width: 100%; min-width: 520px; border-collapse: collapse; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .spec-table { min-width: 0; }
}
.table-view { margin-top: var(--sp-2); }
.table-view__wrap { margin-top: var(--sp-3); max-height: 420px; overflow: auto; }
.table-view__wrap[hidden] { display: none; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); }
.pager__size { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.pager__info { font-size: var(--fs-sm); color: var(--sbs-muted-text); font-variant-numeric: tabular-nums; }
.admin-table-wrap, .range-table-wrap, .readings__scroll, .table-view__wrap, .chip-group, .admin-tabs, .sheet__body { overscroll-behavior: contain; }

/* ==== Messages and toasts ==== */
.sbs-flash-success { color: var(--ok); background-color: var(--ok-bg); }
.toast-region { position: fixed; top: var(--sp-3); left: 50%; z-index: var(--z-toast); width: min(560px, calc(100vw - 2 * var(--sp-4))); transform: translateX(-50%); }
.toast-region:empty { display: none; }
.toast-region .sbs-flash { display: flex; align-items: flex-start; gap: var(--sp-3); box-shadow: var(--shadow-2); }
.toast-close { flex: none; width: var(--tap); height: var(--tap); margin: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-3)) 0 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* ==== Empty, loading and error states ==== */
.state { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-6) var(--sp-4); border: 1px dashed var(--line-cool-2); border-radius: var(--radius-lg); background: var(--sbs-surface); text-align: center; }
.state__title { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.state__text { margin: 0; max-width: 48ch; color: var(--sbs-muted-text); }
.state--no-access { border-style: solid; border-color: var(--sbs-line); }
.skeleton { height: 1em; margin: var(--sp-1) 0; }
.state + .next-steps__actions { margin-top: var(--sp-3); }
.admin-range-summary:not(:empty) { margin-bottom: var(--sp-3); }
.attention-empty { margin: var(--sp-4) 0; }
.ptr.is-loading svg { animation: ptr-spin 0.8s linear infinite; }

/* ==== Dialogs, help and tour ==== */
.help-h { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-md); font-weight: 700; }
.help-levels { margin: 0; padding: 0; list-style: none; }
.help-steps { padding-left: var(--sp-5); }
.help-layout { display: grid; gap: var(--sp-5); }
@media (min-width: 992px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
}
.tour-target { position: relative; z-index: calc(var(--z-menu) - 1); border-radius: var(--radius-md); box-shadow: 0 0 0 4px var(--sbs-white), 0 0 0 7px var(--sbs-red); }
.tour-pop { position: fixed; right: var(--sp-3); bottom: calc(var(--tabbar-h) + var(--sp-3) + env(safe-area-inset-bottom, 0px)); left: var(--sp-3); z-index: var(--z-toast); padding: var(--sp-4); border-radius: var(--radius-lg); background: var(--sbs-navy); color: var(--sbs-white); box-shadow: var(--shadow-2); }
.tour-pop__count { font-size: var(--fs-sm); opacity: 0.85; }
.tour-pop__title { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); font-weight: 700; }
.tour-pop__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .tour-pop { position: absolute; right: auto; bottom: auto; width: 360px; }
}
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .help-h, .loc-card__name { font-size: var(--h3); }
}

/* ==== Install and pull to refresh ==== */
.ptr svg { width: 22px; height: 22px; }
.ptr.is-ready { color: var(--sbs-red); }

/* ==== TV mode ==== */
.tv-exit { display: none; }
.tv-bar { display: contents; }

/* ==== Page pieces ==== */
*, *::before, *::after { box-sizing: border-box; }
.app-main { display: block; min-height: 50vh; }
.group-heading { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sbs-muted-text); }
.loc-grid .group-heading { grid-column: 1 / -1; margin: var(--sp-3) 0 0; }
.stat-tile { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-lg); border: 1px solid var(--sbs-line); background: var(--sbs-surface); }
.stat-tile__num { font-size: var(--fs-2xl); font-weight: 700; line-height: 1; }
.stat-tile__label { font-size: var(--fs-sm); font-weight: 700; }
.stat-tile--ok { background: var(--ok-bg); }
.stat-tile--warn { background: var(--warn-bg); }
.stat-tile--bad { background: var(--bad-bg); }
.next-steps__list { margin: 0 0 var(--sp-3); padding-left: var(--sp-5); }
.next-steps__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.filter-list { margin: 0; padding: 0; list-style: none; }
.filter-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name status" "reading reading" "bar bar" "actions actions"; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--sbs-line); }
.reading { font-size: var(--fs-xl); font-weight: 700; }
.filter-row__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (min-width: 900px) {
  .filter-row { grid-template-columns: minmax(150px, 1.3fr) 150px minmax(160px, 1.5fr) 170px auto; grid-template-areas: "name reading bar status actions"; align-items: center; }
}
.print-only { display: none; }
.history-now { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0; }
.history-now .reading { font-size: var(--fs-2xl); }
.history-now .unit { color: var(--sbs-muted-text); }
.chart-wrap { position: relative; width: 100%; height: clamp(260px, 45vw, 420px); }
.chart-fallback { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.chart-summary { margin: var(--sp-3) 0 var(--sp-1); }
.readings__scroll { margin-top: var(--sp-2); }
.pw-wrap { position: relative; display: flex; }
.pw-toggle { position: absolute; top: 0; right: 0; min-width: var(--tap); height: 100%; padding: 0 var(--sp-3); border: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; background: transparent; color: var(--sbs-red-dark); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--sbs-line); }
.admin-tab[aria-selected="true"] { border-color: var(--sbs-navy); background: var(--sbs-navy); color: var(--sbs-white); }
.admin-tab__count { font-weight: 400; opacity: 0.85; }
.admin-search { flex: 1 1 220px; width: auto; }
.admin-count { margin: 0; }
.admin-warning { margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-left: 4px solid var(--warn-bar); border-radius: var(--radius-md); background: var(--warn-bg); color: var(--sbs-ink); }
.admin-edit { width: 1%; white-space: nowrap; }
.admin-col-30 { width: 30%; }
.admin-col-70 { width: 70%; }
.pin-list { margin: 0; padding: 0; list-style: none; }
.pin-list__pin { display: inline-block; min-width: 3.5rem; color: var(--sbs-muted-text); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .admin-col-30, .admin-col-70 { width: 100%; }
}
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.admin-actions__note { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.public-section { padding: var(--sp-6) 0; }
.public-section--alt { background: var(--sbs-surface); }
.steps, .level-cards { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sbs-red); color: var(--sbs-white); font-weight: 700; }
.public-split { display: grid; gap: var(--sp-5); }
.public-split--top { margin-top: var(--sp-5); align-items: start; }
.spec-wrap { overflow-x: auto; border: 1px solid var(--sbs-line); border-radius: var(--radius-md); background: var(--sbs-surface); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .spec-wrap { overflow: visible; border: 0; background: none; }
}
.spec-model { color: var(--sbs-red); font-size: var(--fs-lg); font-weight: 700; }
.spec-list { margin: 0; padding-left: var(--sp-4); }
.contact-grid { display: grid; gap: var(--sp-4); }
.contact-address { margin: 0 0 var(--sp-3); font-style: normal; }
.contact-lines { margin: 0 0 var(--sp-3); padding: 0; list-style: none; }
.contact-lines__label { min-width: 5.5rem; color: var(--sbs-muted-text); font-size: var(--fs-sm); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-3); }
@media (min-width: 992px) {
}
.sample-dash { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.sample-dash__shot { margin: 0; }
.sample-dash__list { margin: 0; padding: 0; list-style: none; }
.sample-dash__row { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-top: 1px solid var(--sbs-line); }
@media (min-width: 992px) {
  .sample-dash { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.test-list__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--sp-2) var(--sp-4); margin: 0; padding: 0; list-style: none; }
.group-toggle { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.group-toggle[aria-expanded="false"]::before { transform: rotate(-45deg); margin-top: 0; }
.req { color: var(--bad); }
.admin-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-5); padding: 0; list-style: none; }
.admin-dash__tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--sbs-line); border-radius: var(--radius-md); background: var(--sbs-bg); }
.admin-dash__count { display: flex; flex-direction: column; min-height: var(--tap); color: var(--sbs-ink); text-decoration: none; }
.admin-dash__label { font-weight: 600; color: var(--sbs-muted-text); }
.a2hs-steps { display: grid; gap: var(--sp-4); margin: var(--sp-4) 0; }
.a2hs-icon { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.2em; color: var(--sbs-navy); }
.chart-guide { margin: var(--sp-4) 0; padding: var(--sp-3); border: 1px solid var(--sbs-line); border-radius: var(--radius-md); background: var(--sbs-surface); }
.chart-guide__svg { display: block; width: 100%; height: auto; font-family: var(--font-sans); }
.chart-guide__list { counter-reset: guide; padding-left: 0; list-style: none; }
.step-guide { margin: var(--sp-4) 0; padding: 0; list-style: none; }
.step-guide__item { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4) 0; border-bottom: 1px solid var(--sbs-line); }
.step-guide__icon { flex: 0 0 auto; width: 48px; height: 48px; }
.step-guide__title { margin: 0 0 var(--sp-1); font-size: var(--fs-lg); font-weight: 700; }
.app-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-3); min-height: 52px; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--sbs-line); color: var(--sbs-ink); text-decoration: none; }
.app-list__items { margin: 0; padding: 0; list-style: none; }
.app-list__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main value" "main pill"; align-items: center; gap: var(--sp-1) var(--sp-3); min-height: 64px; padding: var(--sp-3) var(--sp-4); color: var(--sbs-ink); text-decoration: none; }
.app-list__main { grid-area: main; display: grid; gap: 2px; min-width: 0; }
.app-list__title { font-size: var(--fs-md); font-weight: 700; }
.app-list__value { grid-area: value; justify-self: end; font-size: var(--fs-xl); font-weight: 700; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .next-steps__actions { display: grid; gap: var(--sp-2); }
  .pw-toggle { min-width: var(--tap); justify-content: center; }
}

/* ==== Print ==== */
@media print {
  @page { margin: 14mm 12mm; @bottom-right { content: "Page " counter(page) " of " counter(pages); font-size: 9pt; } }
  .print-only { display: block; }
  .print-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--print-ink); }
  .crumbs, .board-toolbar, .board-hero__actions, .next-steps__actions, .filter-row__actions, .tv-exit, dialog, .loc-card__slot { display: none !important; }
  .hero__title, .hero__meta, .hero__fresh { color: var(--print-ink) !important; }
  .stat-tile { border: 1px solid var(--print-ink); }
  .booth-card, .filter-row { break-inside: avoid; }
  .filter-row { grid-template-columns: 1.3fr auto 1fr auto; grid-template-areas: "name reading bar status"; }
  .print-sign { margin-top: 24px; font-size: 11pt; }
  .topstrip, .app-nav, .nav-toggle, .header-actions, .tabbar, .toast-region, .skip-link, .btn-sbs { display: none !important; }
  .card-sbs, .table-cards tr { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .tour-pop, .help-nav { display: none !important; }
  .tour-target { box-shadow: none; }
  .tv-bar, .tip__i, .tip__text, .table-view > button, .office-block { display: none !important; }
  .tip__btn { min-height: 0; margin: 0; }
  .page-history .readings { display: block; }
  .page-board .booth-list, .page-history .page-section { display: block; }
  .tabbar, .skip-link, .app-nav, .header-actions { display: none !important; }
  .page-foot, .admin-pick, .confirm-panel, .next-steps__toggle, .next-steps__short { display: none !important; }
  .hero { border-left-width: 1px; }
}

/* ==== Motion ==== */
@keyframes sbs-spin { to { transform: rotate(360deg); } }
@keyframes sbs-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn-sbs:active, .chip:active, .admin-tab:active, .tabbar__item:active, .appbar__btn:active, .sheet__item:active, .pin-btn:active { transform: none; }
}
@keyframes nav-progress { from { transform: scaleX(0.05); } to { transform: scaleX(0.9); } }
@keyframes app-in { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@keyframes nav-in { from { transform: translateX(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ==== v1.4.0 ==== */
/* #4 Header: signed out = "Sign in" button on the right; signed in = Account, Request service, Order filters */
.header-actions { align-items: center; }
.header-actions .account { display: flex; align-items: center; }
.header-actions .account > .nav-link-sbs { min-height: 36px; padding: 6px 12px; }
@media (min-width: 992px) {
  .header-actions .header-actions__signin { padding: 6px 18px; border-color: var(--sbs-red); background: var(--sbs-red); color: var(--sbs-white); }
  .header-actions .header-actions__signin:hover { border-color: var(--sbs-red-dark); background: var(--sbs-red-dark); color: var(--sbs-white); }
}
@media (max-width: 991.98px) {
  .app-nav.is-open .header-actions .account { display: block; }
}

/* #15 View as customer (Demo): browser-side preview for admins */
html.view-customer .admin-only, html.view-customer .admin-links, html.view-customer .diag, html.view-customer .admin-pill { display: none !important; }
.viewas-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--sp-2); padding: var(--sp-1) var(--sp-4); background: var(--sbs-dark); color: var(--sbs-white); font-size: var(--fs-sm); font-weight: 600; }
.viewas-banner[hidden] { display: none; }
.viewas-banner .link-btn { min-height: var(--tap); color: var(--sbs-white); font-weight: 700; }
.viewas-switch { display: grid; grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "label knob" "hint knob"; align-items: center; gap: 2px var(--sp-3); text-align: left; }
.viewas-switch__label { grid-area: label; }
.viewas-switch__hint { grid-area: hint; color: var(--sbs-muted-text); font-size: var(--fs-xs); line-height: 1.3; }
.viewas-switch::after { content: ""; grid-area: knob; width: 40px; height: 24px; border-radius: var(--radius-pill); background: var(--sbs-line) radial-gradient(circle at 12px 12px, var(--sbs-white) 9px, transparent 10px); transition: background var(--dur) ease; }
.viewas-switch[aria-checked="true"]::after { background: var(--sbs-dark) radial-gradient(circle at 28px 12px, var(--sbs-white) 9px, transparent 10px); }
.viewas-note { margin-bottom: var(--sp-3); }

/* #5 Footer: three groups and a bottom row (the Español and feedback buttons were white on white at 768px+) */
.app-footer__inner { display: block; }
.footer-cols { display: grid; gap: var(--sp-5); }
.footer-col__title { margin: 0 0 var(--sp-2); color: var(--sbs-ink); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.02em; }
.footer-col .footer-links { display: grid; gap: 0; justify-items: start; }
.footer-col .footer-links a { justify-content: flex-start; min-width: 0; color: var(--sbs-ink); }
.footer-company, .footer-address { margin: 0 0 var(--sp-1); color: var(--sbs-muted-text); font-style: normal; line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-4); margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--sbs-line); }
.app-footer .footer-bottom .link-btn { color: var(--sbs-ink); }
.footer-bottom .footer-version { flex: 0 1 auto; margin: 0 0 0 auto; }
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .footer-bottom .footer-version { margin-left: 0; flex-basis: 100%; }
}

/* #1 a link on the light hero (was white on white) */
.link-strong { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--sbs-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-strong:hover { color: var(--sbs-red-dark); }

/* #6 legal links on the sign-in page */
.auth-legal { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); margin: var(--sp-4) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--sbs-line); }
.auth-legal a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--sbs-muted-text); }

/* v1.5.0 (#34): the real panel name beside a Demo display name (admins only; View as customer hides it) */
.real-name { margin-left: var(--sp-1); color: var(--sbs-muted-text); font-size: var(--fs-xs); font-weight: 400; white-space: nowrap; }

/* v1.5.0 (#36): parts shown only to customers (and to admins in View as customer) */
.customer-only { display: none !important; }
html.view-customer .customer-only { display: revert !important; }
html.view-customer ul.customer-only, html.view-customer .account__sites.customer-only { display: grid !important; }

/* v1.5.0 (#41): admins don't get Request service or Order filters; View as customer shows them as customers see them */
html:not(.view-customer) body[data-admin] .svc-action { display: none !important; }
html:not(.view-customer) body[data-admin] .admin-hide { display: none !important; }
/* v1.5.1 (#A5): links inside a sentence are underlined, not told apart by color alone */
.link--inline, a.link.link--inline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
/* v1.5.1 (#A4): buttons at least 44px tall on touch screens and phones (board toggles: board.css) */
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  :root { --btn-h: var(--tap); }
  .btn-sbs--sm { min-height: var(--tap); }
  .board-updated__btn { display: inline-block; padding-block: 11px; margin-block: -11px; }
}
