/* security-app.css: GENERATED by scripts/security-app-css.ts from app.css. Do not edit; edit app.css and run
   `npx tsx scripts/security-app-css.ts` (in apps/app). Security Watch's copy: app.css without the partner's name. */
/* app.css: the Practice Growth Hub demo. Dentiza look v2 tokens (apps/app/src/app/globals.css) with one partner accent.
   Sections: 1 fonts, 2 tokens (light, dark, partner), 3 base, 4 shell (top bar, sidebar, footer, mobile), 5 parts
   (cards, KPI tiles, tables, controls, lists, tooltip, toast, tour), 6 charts, 7 screen helpers, 8 motion (MOTION.md:
   entrances, count-up tiles, chart builds, the opening, view switch, tour spotlight), 9 print.
   The accent (--partner) colours only the active nav row, the primary button and the key chart series. */

/* ---------- 1. Fonts: Be Vietnam Pro (OFL, fonts/OFL.txt) for words, Inter with tabular figures for numbers ---------- */
/* Every font is the demo's own file under /growth-hub/fonts/ (Inter's two are copies of /demo/fonts/'s), so the page
   also works on Security Watch's own address, where only /growth-hub/* answers. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "GH Figures"; font-weight: 400 500; font-display: swap; src: url("./fonts/inter-500.ttf") format("truetype"); }
@font-face { font-family: "GH Figures"; font-weight: 600 700; font-display: swap; src: url("./fonts/inter-700.ttf") format("truetype"); }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F4F6F9; --surface: #FFFFFF; --raised: #FFFFFF; --sunken: #EDF0F4;
  --ink: #0B1726; --ink-2: #364354; --ink-3: #5B6878;
  --border: rgba(11, 23, 38, .1); --border-strong: rgba(11, 23, 38, .18); --hover: rgba(11, 23, 38, .05); --row-hover: rgba(11, 23, 38, .03);
  --good: #0A8F5A; --good-ink: #17694A; --good-soft: #E1F5EA;
  --warn: #B26A00; --warn-ink: #7A4300; --warn-soft: #FFF0D6;
  --bad: #C2362F; --bad-ink: #9C1F2E; --bad-soft: #FDEBEA;
  --info: #5059D6; --info-ink: #3940A8; --info-soft: #ECEDFB;
  --neutral: #8490A0; --neutral-soft: rgba(11, 23, 38, .06);
  --shadow-1: 0 1px 2px rgba(11, 23, 38, .05), 0 1px 3px rgba(11, 23, 38, .04);
  --shadow-2: 0 2px 4px -1px rgba(11, 23, 38, .06), 0 10px 24px -8px rgba(11, 23, 38, .14);
  --shadow-3: 0 8px 16px -6px rgba(11, 23, 38, .1), 0 28px 64px -16px rgba(11, 23, 38, .28);
  --focus: #0B6FE0; --link: #0B6FE0;
  /* Partner: the partner's own site colours. Never --partner as text on white: text uses --partner-text. */
  --partner: #46B98C; --partner-strong: #297F65; --partner-deep: #236D55; --partner-tint: #DDF6EB; --partner-text: #297F65; --on-partner: #FFFFFF;
  --logo-fill: #36393A;
  /* Chart series after the key one (validated with the dataviz palette checks), a baseline grey, and the heat ramp. */
  --s2: #2A78D6; --s3: #EB6834; --s4: #6250D6; --s5: #E87BA4; --s6: #EDA100; --c-base: #8490A0;
  --heat-lo: #EDF0F4; --heat-hi: var(--partner-strong);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;
  --dur: 180ms; --ease: cubic-bezier(.2, .8, .2, 1);
  /* Motion (MOTION.md): hover and press, small enters, cards and chart builds, hero moves and count-ups. */
  --dur-1: 180ms; --dur-2: 320ms; --dur-3: 560ms; --dur-4: 900ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); --stagger: 55ms;
  --bar-h: 60px; --side-w: 240px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "GH Figures", "Inter", system-ui, sans-serif;
}
:root[data-partner="neutral"] { --partner: #6B7A90; --partner-strong: #3E4A5B; --partner-deep: #2F3947; --partner-tint: #E6EAF0; --partner-text: #3E4A5B; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0F16; --surface: #121923; --raised: #19222E; --sunken: rgba(255, 255, 255, .045);
  --ink: #EDF1F6; --ink-2: #C2CBD6; --ink-3: #95A2B2;
  --border: rgba(220, 230, 244, .1); --border-strong: rgba(220, 230, 244, .2); --hover: rgba(255, 255, 255, .06); --row-hover: rgba(255, 255, 255, .03);
  --good: #3CC98A; --good-ink: #8BE3B9; --good-soft: rgba(60, 201, 138, .15);
  --warn: #F0A23A; --warn-ink: #FFCB85; --warn-soft: rgba(240, 162, 58, .16);
  --bad: #F0605F; --bad-ink: #FFA3A3; --bad-soft: rgba(240, 96, 95, .17);
  --info: #8F95F7; --info-ink: #C3C6FF; --info-soft: rgba(143, 149, 247, .17);
  --neutral: #7C8899; --neutral-soft: rgba(255, 255, 255, .07);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .36); --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -8px rgba(0, 0, 0, .56); --shadow-3: 0 6px 14px rgba(0, 0, 0, .36), 0 28px 64px -12px rgba(0, 0, 0, .72);
  --focus: #5AA2F5; --link: #6AAEF7;
  --partner-tint: rgba(70, 185, 140, .14); --partner-text: #46B98C; --logo-fill: #FFFFFF;
  --s2: #3987E5; --s3: #D95926; --s4: #9085E9; --s5: #D55181; --s6: #C98500; --c-base: #7C8899;
  --heat-lo: rgba(255, 255, 255, .05); --heat-hi: var(--partner-strong);
}
:root[data-theme="dark"][data-partner="neutral"] { --partner: #93A1B6; --partner-strong: #56657A; --partner-tint: rgba(147, 161, 182, .16); --partner-text: #AEBACB; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0F16; --surface: #121923; --raised: #19222E; --sunken: rgba(255, 255, 255, .045);
    --ink: #EDF1F6; --ink-2: #C2CBD6; --ink-3: #95A2B2;
    --border: rgba(220, 230, 244, .1); --border-strong: rgba(220, 230, 244, .2); --hover: rgba(255, 255, 255, .06); --row-hover: rgba(255, 255, 255, .03);
    --good: #3CC98A; --good-ink: #8BE3B9; --good-soft: rgba(60, 201, 138, .15);
    --warn: #F0A23A; --warn-ink: #FFCB85; --warn-soft: rgba(240, 162, 58, .16);
    --bad: #F0605F; --bad-ink: #FFA3A3; --bad-soft: rgba(240, 96, 95, .17);
    --info: #8F95F7; --info-ink: #C3C6FF; --info-soft: rgba(143, 149, 247, .17);
    --neutral: #7C8899; --neutral-soft: rgba(255, 255, 255, .07);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .36); --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -8px rgba(0, 0, 0, .56); --shadow-3: 0 6px 14px rgba(0, 0, 0, .36), 0 28px 64px -12px rgba(0, 0, 0, .72);
    --focus: #5AA2F5; --link: #6AAEF7;
    --partner-tint: rgba(70, 185, 140, .14); --partner-text: #46B98C; --logo-fill: #FFFFFF;
    --s2: #3987E5; --s3: #D95926; --s4: #9085E9; --s5: #D55181; --s6: #C98500; --c-base: #7C8899;
    --heat-lo: rgba(255, 255, 255, .05); --heat-hi: var(--partner-strong);
  }
  :root:not([data-theme="light"])[data-partner="neutral"] { --partner: #93A1B6; --partner-strong: #56657A; --partner-tint: rgba(147, 161, 182, .16); --partner-text: #AEBACB; }
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--partner-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.view-practice .content a.inline { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { flex: none; }
/* The motion switch: app.js sets html[data-motion="off"] for ?motion=off and for prefers-reduced-motion, and then every
   animation and transition here is off and every animated value is painted final at once (the JS checks it too). */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition: none !important; animation: none !important; }
html[data-motion="off"] .m-rv { opacity: 1 !important; transform: none !important; }

/* ---------- 4. Shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.lockup { position: relative; display: flex; align-items: center; min-width: 0; color: var(--ink); }
.lockup-face { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lockup-face.is-out { position: absolute; inset: 0; animation: m-lock-out 120ms var(--ease) both; pointer-events: none; }
.lockup-face.is-in { animation: m-lock-in var(--dur-2) var(--ease-out) 80ms both; }
@keyframes m-lock-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes m-lock-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lockup .logo { display: block; flex: none; height: 24px; width: calc(24px * 185 / 44); margin: 0 2px; }
.logo path, .logo polygon, .logo rect { fill: var(--logo-fill); }
.lockup-divider { width: 1px; height: 28px; background: var(--border-strong); }
.lockup-text { display: flex; flex-direction: column; min-width: 0; }
.lockup-title { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lockup-sub { font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-mid { display: flex; justify-content: center; }
.bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.select { appearance: none; height: 36px; padding: 0 32px 0 12px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235B6878' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 8 4.5 4.5L14.5 8'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.select:hover { background-color: var(--hover); }
.sample-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-full); background: var(--warn-soft); color: var(--warn-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sample-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; color: var(--ink-2); transition: background var(--dur) var(--ease); }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 264px; padding: 6px; border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-2); z-index: 40; }
.menu[hidden] { display: none; }
.menu:not([hidden]) { animation: m-menu-in var(--dur-2) var(--ease-out) both; }
.menu.is-leaving { animation: m-menu-out 120ms var(--ease) both; pointer-events: none; }
@keyframes m-menu-in { from { opacity: 0; translate: 0 -6px; } }
@keyframes m-menu-out { to { opacity: 0; translate: 0 -6px; } }
.menu-label { padding: 8px 10px 4px; font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 500; }
.menu-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: 13px; line-height: 18px; color: var(--ink); }
.menu-item:hover { background: var(--hover); }
.menu-item .menu-check { margin-left: auto; color: var(--ink-3); visibility: hidden; }
.menu-item[aria-checked="true"] .menu-check { visibility: visible; }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--border); }

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); background: linear-gradient(to right, var(--surface) calc(var(--side-w) - 1px), var(--border) calc(var(--side-w) - 1px), var(--border) var(--side-w), transparent var(--side-w)); }
.sidebar { position: sticky; top: var(--bar-h); align-self: start; height: calc(100vh - var(--bar-h)); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 0; background: var(--surface); border-right: 1px solid var(--border); }
.side-practice { padding: 4px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.side-practice-name { font-size: 14px; line-height: 20px; font-weight: 600; }
.side-practice-sub { font-size: 12px; line-height: 16px; color: var(--ink-3); margin-bottom: 10px; }
.side-practice .select { width: 100%; }
.side-label { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); margin-bottom: 4px; }
.nav-group { padding: 6px 0 2px; }
.nav-group-label { padding: 0 10px 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 500; }
.nav-row { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: background var(--dur) var(--ease); }
.nav-row:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.nav-row[aria-current="page"] { color: var(--ink); }
/* The active pill: one element under the rows that slides from the old row to the new one (app.js placePill). */
.nav-pill { position: absolute; top: 0; left: 12px; z-index: 0; height: 32px; border-radius: var(--r-sm); background: var(--partner-tint); pointer-events: none; transition: transform var(--dur-3) var(--ease-out); }
.nav-pill[hidden] { display: none; }
.nav-pill.is-still { transition: none; }
.nav-pill::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--partner); }
.nav-row, .nav-group-label, .side-practice, .side-mobile { position: relative; z-index: 1; }
.nav-row .icon { color: var(--ink-3); }
.nav-row[aria-current="page"] .icon { color: var(--ink); }
.side-foot { position: sticky; bottom: 0; margin: auto -12px 0; padding: 0 20px; background: var(--surface); }
.provided { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; color: var(--ink-3); }
.provided .logo { flex: none; height: 22px; width: calc(22px * 185 / 44); margin: 11px 0; }
.provided-word { font-size: 14px; font-weight: 600; color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; width: 100%; max-width: 1280px; padding: 28px 32px 40px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px 24px; border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; color: var(--ink-3); max-width: 1280px; }
.footer-by { display: inline-flex; align-items: center; gap: 6px; }
.footer-by img { height: 16px; width: auto; display: block; }
.wm-dark { display: none !important; }
:root[data-theme="dark"] .wm-light { display: none !important; }
:root[data-theme="dark"] .wm-dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm-light { display: none !important; } :root:not([data-theme="light"]) .wm-dark { display: block !important; } }
.menu-btn { display: none; }

@media (max-width: 1180px) { .bar-right .tour-btn span { display: none; } .bar-right .tour-btn { padding: 0 9px; } }
@media (max-width: 899px) {
  :root { --bar-h: auto; }
  .topbar { grid-template-columns: 1fr auto; grid-template-areas: "lock right" "mid mid" "prov prov"; height: auto; padding: 10px 16px; gap: 10px; }
  .lockup { grid-area: lock; } .bar-mid { grid-area: mid; justify-content: stretch; } .bar-right { grid-area: right; gap: 4px; }
  .bar-mid .segmented { width: 100%; } .bar-mid .seg { flex: 1; }
  .lockup .logo { height: 22px; width: calc(22px * 185 / 44); } .lockup-divider { height: 24px; }
  .side-foot { position: static; margin: 8px -16px 0; padding: 0 16px; }
  .lockup-sub { display: none; }
  .bar-right .range-select, .bar-right .tour-btn { display: none; }
  .menu-btn { display: inline-grid; }
  .shell { display: block; }
  .sidebar { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .nav-open .sidebar { display: flex; }
  .nav-pill::before { left: -16px; }
  .sidebar { position: relative; }
  .content { padding: 20px 16px 32px; }
  .footer { padding: 16px; flex-direction: column; align-items: flex-start; }
  .mobile-only { display: block !important; }
}
.mobile-only { display: none; }
.provided-bar { display: none; }
@media (max-width: 899px) {
  .shell { background: none; }
  .view-practice .provided-bar { display: flex; grid-area: prov; border-top: 0; gap: 11px; white-space: nowrap; justify-content: center; }
  .provided-bar .logo { margin: 0; }
  .view-practice .side-foot { display: none; }
}
@media (max-width: 560px) {
  .bar-right .theme-btn { display: none; }
}

/* ---------- 5. Parts ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-meta { font-size: 13px; line-height: 18px; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }
.page-head h1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.page-lead { margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--ink-2); max-width: 760px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.grid-kpis-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1380px) { .grid-kpis-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } .grid-kpis-7 .kpi { padding-left: 14px; padding-right: 14px; } .grid-kpis-7 .kpi-value { font-size: 24px; line-height: 30px; } }
@media (min-width: 1240px) { .grid-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .grid-2-1, .grid-1-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-kpis-7, .grid-kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 24px; line-height: 30px; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.card-sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.card-body { padding: 16px 20px 20px; }
.card-flush > .card-body { padding: 12px 0 4px; }
.card-actions { display: flex; gap: 8px; flex: none; }
.coming .card-body p { max-width: 640px; }

.kpi { position: relative; display: flex; flex-direction: column; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.kpi-label { font-size: 13px; line-height: 18px; color: var(--ink-2); font-weight: 500; min-height: 36px; }
.kpi-value { margin-top: 6px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; min-height: 22px; }
.kpi-sub { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.kpi-spark { margin-top: 10px; }
.delta { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 7px 0 5px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; }
.delta-good { background: var(--good-soft); color: var(--good-ink); }
.delta-bad { background: var(--bad-soft); color: var(--bad-ink); }
.delta-neutral { background: var(--neutral-soft); color: var(--ink-2); padding: 0 8px; }
.spark svg { display: block; overflow: visible; }
.spark path { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

.table-wrap { position: relative; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; line-height: 16px; padding: 0 12px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--ink-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .is-num { text-align: right; }
.table .is-center { text-align: center; }
.table tr.is-clickable { cursor: pointer; transition: background var(--dur) var(--ease); }
.table tr.is-clickable:hover { background: var(--row-hover); }
.table tr.is-clickable:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.th-sort:hover { color: var(--ink); }
.is-num .th-sort { flex-direction: row-reverse; }
.th-arrow { width: 8px; height: 8px; opacity: 0; }
th[aria-sort="descending"] .th-arrow, th[aria-sort="ascending"] .th-arrow { opacity: 1; border-left: 4px solid transparent; border-right: 4px solid transparent; height: 0; width: 0; }
th[aria-sort="descending"] .th-arrow { border-top: 5px solid currentColor; }
th[aria-sort="ascending"] .th-arrow { border-bottom: 5px solid currentColor; }
th[aria-sort="descending"], th[aria-sort="ascending"] { color: var(--ink); }
.cell-main { color: var(--ink); font-weight: 500; white-space: nowrap; }
.screen > .card, .screen > .grid { margin-bottom: 16px; }
.cell-sub { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); flex: none; }
.status-good .dot { background: var(--good); } .status-warn .dot { background: var(--warn); } .status-bad .dot { background: var(--bad); } .status-info .dot { background: var(--info); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neutral-soft); color: var(--ink-2); }
.tag-good { background: var(--good-soft); color: var(--good-ink); } .tag-warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag-bad { background: var(--bad-soft); color: var(--bad-ink); } .tag-info { background: var(--info-soft); color: var(--info-ink); }
.tag-partner { background: var(--partner-tint); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn:hover { background: var(--hover); }
.btn-primary { background: var(--partner-strong); border-color: var(--partner-strong); color: var(--on-partner); }
.btn-primary:hover { background: var(--partner-deep); border-color: var(--partner-deep); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }

.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-md); background: var(--sunken); }
.seg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.seg:hover { color: var(--ink); }
.seg[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
:root[data-theme="dark"] .seg[aria-pressed="true"] { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg[aria-pressed="true"] { background: var(--raised); } }
.segmented-sm .seg { height: 26px; padding: 0 10px; font-size: 12px; }
.segmented { position: relative; }
.seg { position: relative; z-index: 1; }
.seg-hold { position: absolute; inset: 3px; filter: drop-shadow(0 1px 1.5px rgba(11, 23, 38, .1)); pointer-events: none; }
.seg-thumb { position: absolute; inset: 0; background: var(--surface); opacity: 0; transition: clip-path var(--dur-3) var(--ease-out); }
.seg-thumb.is-still { transition: none; }
.has-thumb .seg-thumb { opacity: 1; }
.has-thumb .seg[aria-pressed="true"] { background: transparent; box-shadow: none; }
:root[data-theme="dark"] .seg-thumb { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-thumb { background: var(--raised); } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab { height: 38px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font-size: 13px; font-weight: 600; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.slider { display: flex; flex-direction: column; gap: 8px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); }
.slider-value { font-weight: 700; color: var(--ink); font-size: 14px; }
.slider-input { --fill: 50%; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--partner) var(--fill), var(--sunken) var(--fill)); outline-offset: 6px; }
.slider-input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--partner-strong); box-shadow: var(--shadow-1); cursor: grab; }
.slider-input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--partner-strong); cursor: grab; }

.rows { display: flex; flex-direction: column; }
.rows > li + li { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; background: none; text-align: left; color: inherit; }
button.row { border-radius: var(--r-sm); transition: background var(--dur) var(--ease); }
button.row:hover { background: var(--row-hover); }
.row > .icon { color: var(--ink-3); }
.row-mark { align-self: stretch; width: 3px; border-radius: 2px; flex: none; background: var(--neutral); }
.row-bad { background: var(--bad); } .row-warn { background: var(--warn); } .row-good { background: var(--good); } .row-info { background: var(--info); }
.row-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.row-detail { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.row-meta { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.row-value { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.row-value-sub { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-3); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 16px; color: var(--ink-3); }
.empty-title { font-weight: 600; color: var(--ink); }
.empty-body { font-size: 13px; max-width: 420px; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-soft); color: var(--info-ink); }
.callout-good { background: var(--good-soft); color: var(--good-ink); } .callout-warn { background: var(--warn-soft); color: var(--warn-ink); } .callout-bad { background: var(--bad-soft); color: var(--bad-ink); }
.callout-neutral { background: var(--sunken); color: var(--ink-2); }
.callout .icon { margin-top: 1px; }
.callout-title { font-weight: 600; font-size: 14px; line-height: 20px; }
.callout-body { font-size: 13px; line-height: 18px; color: var(--ink-2); }

/* Tooltip, toast and menu (MOTION.md M1 item 10): in with a 6 px move and fade over --dur-2, out in 120 ms. The tooltip's
   position is its transform, so its move is the separate translate property; once shown it follows in 120 ms. */
.tip { position: fixed; left: 0; top: 0; z-index: 60; max-width: 280px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-2); font-size: 12px; line-height: 16px; color: var(--ink-2); pointer-events: none; opacity: 0; translate: 0 6px; transition: opacity 120ms var(--ease), translate 120ms var(--ease); }
.tip.is-on { opacity: 1; translate: 0 0; transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out); }
.tip.is-on.is-follow { transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out), transform 120ms var(--ease-out); }
.tip-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row + .tip-row { margin-top: 2px; }
.tip-sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tip-k { flex: 1; } .tip-v { color: var(--ink); font-weight: 600; margin-left: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 6px); padding: 10px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--surface); font-size: 13px; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: opacity 120ms var(--ease), transform 120ms var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); transition-duration: var(--dur-2); transition-timing-function: var(--ease-out); }

/* The guided tour (tour.js, Part C) uses these: a card pinned bottom right and a ring around what it talks about. */
.tour-card { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: min(360px, calc(100vw - 32px)); padding: 16px 18px; border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.tour-step { font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 500; }
.tour-title { margin-top: 2px; font-size: 16px; line-height: 24px; font-weight: 600; }
.tour-text { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.tour-ring { position: relative; z-index: 2; outline: 3px solid var(--partner); outline-offset: 4px; border-radius: var(--r-lg); transition: outline-color var(--dur) var(--ease); }
@media (max-width: 899px) { .tour-card { right: 16px; bottom: 16px; } }

/* ---------- 6. Charts ---------- */
.chart { position: relative; min-width: 0; }
.chart-svg { width: 100%; min-height: 1px; }
.chart svg { display: block; overflow: visible; font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend-sw { width: 12px; height: 4px; border-radius: 2px; background: var(--sw); flex: none; }
.legend-sw.is-dashed { background: repeating-linear-gradient(90deg, var(--sw) 0 4px, transparent 4px 7px); }
.legend-sw.is-band { height: 10px; background: color-mix(in srgb, var(--sw) 22%, transparent); }
.chart-bars .legend-sw, .chart-donut .legend-sw { height: 10px; width: 10px; border-radius: 3px; }
.grid-l { stroke: var(--border); stroke-width: 1; }
.base-l { stroke: var(--border-strong); stroke-width: 1; }
.ax { fill: var(--ink-3); font-size: 12px; }
.ax-cat { fill: var(--ink-2); font-size: 13px; }
.ax.is-strong, .val.is-strong { fill: var(--ink); font-weight: 600; }
.ax-title { fill: var(--ink-3); font-size: 12px; font-weight: 500; }
.ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ln.is-dashed { stroke-dasharray: 5 4; }
.pt { stroke: var(--surface); stroke-width: 2; }
.band { fill: var(--partner); opacity: .16; }
.cross { stroke: var(--border-strong); stroke-width: 1; }
.hot { stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.hit { fill: transparent; cursor: crosshair; }
.hit:focus { outline: none; }
.hit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bar, .cell, .arc { cursor: default; transition: opacity 120ms var(--ease); }
.arc.is-hot { opacity: .82; }
.has-hot .bar:not(.is-hot) { opacity: .55; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.legend-item { transition: opacity 300ms var(--ease-out); }
button.legend-item[aria-pressed="false"] { opacity: .45; }
.chart [data-s] { transition: opacity 300ms var(--ease-out); }
.chart [data-s].is-off { opacity: 0 !important; pointer-events: none; }
.cell.is-hot { stroke: var(--ink); stroke-width: 1.5; }
.bar:focus, .cell:focus, .arc:focus { outline: none; }
.bar:focus-visible, .cell:focus-visible, .arc:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg-gap { stroke: var(--surface); stroke-width: 2; paint-order: stroke; }
.fun-lost { fill: var(--sunken); }
.val { fill: var(--ink-2); font-size: 12px; }
.cell-v { fill: var(--ink); font-size: 12px; pointer-events: none; }
.cell-v.is-inv { fill: #FFFFFF; }
.chart-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut-svg svg { display: block; }
.donut-v { fill: var(--ink); font-size: 20px; font-weight: 700; }
.donut-l { fill: var(--ink-3); font-size: 12px; }
.donut-legend { flex: 1; min-width: 180px; display: grid; gap: 6px; font-size: 13px; }
.donut-legend li { display: grid; grid-template-columns: 10px 1fr auto 44px; align-items: center; gap: 8px; color: var(--ink-2); }
.dl-v { color: var(--ink); font-weight: 600; text-align: right; } .dl-p { color: var(--ink-3); text-align: right; }
/* Chart builds (charts.js): .m-build plays once; .m-hold keeps every mark at its first frame until the chart is in
   view. --b is when the build starts, --t each mark's offset, --k 1 (a new screen) or .36 (a range or office redraw). */
.m-hold, .m-hold * { animation-play-state: paused !important; }
.m-build .ln { animation: m-wipe calc(var(--dur-4) * var(--k, 1)) var(--ease-in-out) var(--b, 0ms) both; }
.m-build .pt { transform-box: fill-box; transform-origin: center; animation: m-pt calc(260ms * var(--k, 1)) var(--ease-out) calc(var(--b, 0ms) + var(--t, 0ms) * var(--k, 1)) both; }
.m-build .band { animation: m-fade-in calc(420ms * var(--k, 1)) var(--ease-out) calc(var(--b, 0ms) + 620ms * var(--k, 1)) both; }
.m-build .bar-g { transform-box: fill-box; transform-origin: 50% 100%; animation: m-grow-y calc(var(--dur-3) * var(--k, 1)) var(--ease-out) calc(var(--b, 0ms) + var(--t, 0ms) * var(--k, 1)) both; }
.is-h .m-build .bar-g, .chart-funnel .m-build .bar-g { transform-origin: 0 50%; animation-name: m-grow-x; }
.chart-funnel .m-build .bar-g { animation-duration: calc(420ms * var(--k, 1)); }
.m-build .m-after, .m-build .cell, .m-build .cell-v { animation: m-fade-in calc(var(--dur-2) * var(--k, 1)) var(--ease-out) calc(var(--b, 0ms) + var(--t, 0ms) * var(--k, 1)) both; }
.m-build .cell, .m-build .cell-v { animation-duration: calc(240ms * var(--k, 1)); }
.m-build .dn-sweep { animation: m-dash calc(var(--dur-4) * var(--k, 1)) var(--ease-in-out) var(--b, 0ms) both; }
@keyframes m-wipe { from { clip-path: inset(-4px 100% -4px -4px); } to { clip-path: inset(-4px -4px -4px -4px); } }
@keyframes m-pt { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes m-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes m-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes m-dash { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- 7. Screen helpers ---------- */
.privacy { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.privacy .icon { color: var(--ink-3); }
.brief { font-size: 16px; line-height: 24px; color: var(--ink-2); }
.brief p + p { margin-top: 6px; }
.brief .brief-do { color: var(--ink); font-weight: 600; }
.brief-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 500; }
.sum { display: flex; flex-direction: column; gap: 14px; }
.sum-figure { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; }
.sum-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border-strong); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sum-line:last-child { border-bottom: 0; }
.sum-line .num { color: var(--ink); font-weight: 600; }
.sum-op { color: var(--ink-3); margin-right: 6px; }
.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1099px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .offices { grid-template-columns: minmax(0, 1fr); } }
.office { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); text-align: left; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
button.office:hover { border-color: var(--border-strong); background: var(--row-hover); }
.office.is-on { border-color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--ink-3); }
.office-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.office-name { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.office-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.stat-k { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.stat-v { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.meter { height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 3px; background: var(--partner); }

/* ---------- 8. Motion. Only transform, opacity, clip-path, stroke-dashoffset and filter move; energy goes into light. ---------- */
/* Entrances: a block is .m-rv (hidden, 14 px low) until it first comes into view, then .m-in rises it once. */
.m-rv { opacity: 0; transform: translateY(14px); }
.m-rv.m-in { animation: m-rise var(--dur-3) var(--ease-out) var(--m-delay, 0ms) both; }
.m-rv-head { transform: translateY(10px); }
.m-rv-head.m-in { animation: m-rise-head var(--dur-2) var(--ease-out) var(--m-delay, 0ms) both; }
@keyframes m-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes m-rise-head { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes m-fade-in { from { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; transform: translateY(6px); } }
/* The screen change (app.js render): a View Transition fades the old screen out in 120 ms while the new one is live
   underneath (its blocks are already waiting to rise). The top bar and the sidebar are lifted out of the fade so the
   pill's slide and the view switch play live. Without the API the old content fades first. */
html.vt-route .topbar { view-transition-name: gh-bar; }
html.vt-route .sidebar { view-transition-name: gh-side; }
html.vt-route::view-transition-old(root) { animation: m-fade-out 120ms linear both; }
html.vt-route::view-transition-new(root) { animation: none; }
html.vt-route::view-transition-group(root) { animation: none; }
html.vt-route::view-transition-group(gh-bar), html.vt-route::view-transition-group(gh-side) { animation: none; }
html.vt-route::view-transition-old(gh-bar), html.vt-route::view-transition-old(gh-side) { display: none; }
html.vt-route::view-transition-new(gh-bar), html.vt-route::view-transition-new(gh-side) { animation: none; }
html.vt-side::view-transition-old(gh-side) { display: block; animation: m-fade-out 160ms linear both; }
.content.is-leaving > .screen { opacity: 0; transition: opacity 120ms linear; }
@keyframes m-fade-out { to { opacity: 0; } }
/* The view switch's sidebar rows: rise 8 px and fade in, 22 ms apart. */
.m-side-in { animation: m-side-in var(--dur-2) var(--ease-out) var(--m-delay, 0ms) both; }
@keyframes m-side-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
/* The opening (app.js): a quiet ground with the lockup in the middle; app.js runs the timeline. */
html.intro-on .topbar, html.intro-on .shell { opacity: 0; }
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); }
.intro-lock { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 44px; }
.intro-mark { display: block; color: var(--ink); }
.intro-mark .logo { display: block; height: 40px; width: calc(40px * 185 / 44); }
.intro-mark .provided-word { display: block; font-size: 28px; line-height: 40px; }
.intro-line { display: block; width: 232px; height: 1px; margin: 18px 0 16px; background: var(--border-strong); }
.intro-title { display: block; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.intro-sub { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-3); white-space: nowrap; }
.intro-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 100%); }
.intro-glow > i { position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--partner) 14%, transparent) 44%, color-mix(in srgb, var(--partner) 24%, transparent) 50%, color-mix(in srgb, var(--partner) 14%, transparent) 56%, transparent 70%); }
/* One soft light sweep across an element (motion.sweep). */
.m-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 1; }
.m-sweep > i { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 32%, color-mix(in srgb, var(--partner) 20%, transparent) 44%, color-mix(in srgb, #FFFFFF 34%, transparent) 50%, color-mix(in srgb, var(--partner) 20%, transparent) 56%, transparent 68%); transform: translateX(-100%); animation: m-sweep var(--m-dur, 900ms) var(--ease-in-out) var(--m-delay, 0ms) both; }
:root[data-theme="dark"] .m-sweep > i { background: linear-gradient(100deg, transparent 32%, color-mix(in srgb, var(--partner) 24%, transparent) 50%, transparent 68%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-sweep > i { background: linear-gradient(100deg, transparent 32%, color-mix(in srgb, var(--partner) 24%, transparent) 50%, transparent 68%); } }
@keyframes m-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
/* Tiles (ui.kpi): the change chip waits for its number, then fades in; the sparkline draws left to right. */
.m-wait { opacity: 0; }
.m-show { animation: m-fade-in var(--dur-2) var(--ease-out) both; }
.kpi-spark.m-hold-draw svg { clip-path: inset(-4px 100% -4px -4px); }
.kpi-spark.m-draw svg { animation: m-wipe var(--dur-4) var(--ease-out) var(--m-delay, 0ms) both; }
/* Cards, rows, buttons (item 6). A clickable card lifts 2 px with a deeper shadow; a table row that opens something
   shows a chevron that slides in 4 px; a primary button presses to .98 and a sheen crosses it once on hover. */
.card.is-clickable, button.card, a.card, button.office { transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.card.is-clickable:hover, button.card:hover, a.card:hover, button.office:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.table tr.is-clickable td:last-child { position: relative; }
.table tr.is-clickable td:last-child::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--ink-3); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.table tr.is-clickable:hover td:last-child::after, .table tr.is-clickable:focus-visible td:last-child::after { opacity: 1; transform: none; }
.btn-primary { position: relative; overflow: hidden; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 90ms var(--ease-out); }
.btn-primary:active { transform: scale(.98); }
.btn-primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .26) 50%, transparent 70%); transform: translateX(-110%); }
.btn-primary:hover::after { animation: m-sheen 700ms var(--ease-in-out) both; }
.btn-primary > * { position: relative; z-index: 1; }
@keyframes m-sheen { to { transform: translateX(110%); } }
/* The rows dip to a third and come back in their new order, so the table never goes blank. */
.m-sort-out { opacity: .3; transition: opacity 100ms linear; }
.m-sort-in { animation: m-sort-in 240ms var(--ease-out) both; }
@keyframes m-sort-in { from { opacity: .3; } }
/* The theme switch's circle (app.js flipTheme): the new page is revealed by a growing clip; the old one stays put. */
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-group(root) { animation: none; }
/* The tile flash: a partner-tint ring that brightens and fades (light, not movement). */
.kpi::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--partner); box-shadow: 0 0 0 3px var(--partner-tint); opacity: 0; pointer-events: none; }
.kpi.m-flash::after { animation: m-flash 900ms var(--ease-out) both; }
@keyframes m-flash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 9. Print: the browser's own print gives a clean page ---------- */

@media print {
  .topbar, .sidebar, .footer .footer-by, .tip, .toast, .tour-card, .no-print { display: none !important; }
  .shell { display: block; } body { background: #fff; } .card, .kpi { box-shadow: none; break-inside: avoid; }
  .content { padding: 0; max-width: none; }
  .m-rv { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* security */
/* Security Watch (a "security-" key; body.view-security): Dentiza blue as the accent on the neutral base, and five
   severity colours. Each severity has a solid (dots, bars, the score ring), an ink for words (at least 4.5:1 on its
   soft fill and on the surface; growth-hub-security.test.ts checks these values) and a soft fill for tags. Every
   severity is shown with its word, never by colour alone. The shell is the same as the other key's. */
.view-security {
  --partner: #0C8BFC; --partner-strong: #0B6FE0; --partner-deep: #0759C4; --partner-tint: #E4F1FF; --partner-text: #0759C4; --on-partner: #FFFFFF;
  --sev-critical: #D12C2C; --sev-critical-ink: #A3161B; --sev-critical-soft: #FDECEC;
  --sev-high: #E2650F; --sev-high-ink: #9E4507; --sev-high-soft: #FFEEDE;
  --sev-medium: #C28A00; --sev-medium-ink: #855C00; --sev-medium-soft: #FFF4D4;
  --sev-low: #64748B; --sev-low-ink: #475467; --sev-low-soft: #EEF1F5;
  --sev-ok: #13915C; --sev-ok-ink: #136B45; --sev-ok-soft: #E1F5EA;
}
:root[data-theme="dark"] .view-security {
  --partner: #2FA6FF; --partner-tint: rgba(47, 166, 255, .16); --partner-text: #6FB8FF;
  --sev-critical: #F2696A; --sev-critical-ink: #FFB1AF; --sev-critical-soft: rgba(242, 105, 106, .17);
  --sev-high: #F5913E; --sev-high-ink: #FFC18F; --sev-high-soft: rgba(245, 145, 62, .16);
  --sev-medium: #E5B23A; --sev-medium-ink: #FFD98A; --sev-medium-soft: rgba(229, 178, 58, .15);
  --sev-low: #94A3B8; --sev-low-ink: #CDD6E2; --sev-low-soft: rgba(148, 163, 184, .16);
  --sev-ok: #3CC98A; --sev-ok-ink: #8BE3B9; --sev-ok-soft: rgba(60, 201, 138, .15);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .view-security {
    --partner: #2FA6FF; --partner-tint: rgba(47, 166, 255, .16); --partner-text: #6FB8FF;
    --sev-critical: #F2696A; --sev-critical-ink: #FFB1AF; --sev-critical-soft: rgba(242, 105, 106, .17);
    --sev-high: #F5913E; --sev-high-ink: #FFC18F; --sev-high-soft: rgba(245, 145, 62, .16);
    --sev-medium: #E5B23A; --sev-medium-ink: #FFD98A; --sev-medium-soft: rgba(229, 178, 58, .15);
    --sev-low: #94A3B8; --sev-low-ink: #CDD6E2; --sev-low-soft: rgba(148, 163, 184, .16);
    --sev-ok: #3CC98A; --sev-ok-ink: #8BE3B9; --sev-ok-soft: rgba(60, 201, 138, .15);
  }
}
/* The lockup's mark, and a phone's top bar without the view switch or "Provided by" rows. */
.sw-mark { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--partner-strong); color: #FFFFFF; }
@media (max-width: 899px) {
  .view-security .topbar { grid-template-areas: "lock right"; }
  .view-security .bar-mid, .view-security .provided-bar { display: none; }
  .view-security .lockup-face { gap: 10px; }
  .view-security .sw-mark { width: 28px; height: 28px; border-radius: 8px; }
}
@media (max-width: 420px) { .view-security .bar-right .sample-tag { padding: 0 8px; } }
.grid-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1099px) { .grid-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Severity tags and words, the thin bar, the score ring, the timeline (ui.sevTag, ui.bar, charts.scoreRing, ui.timeline). */
.tag.sev { gap: 6px; padding: 0 9px 0 7px; }
.sev-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sev-critical { background: var(--sev-critical-soft); color: var(--sev-critical-ink); } .sev-critical .sev-dot { background: var(--sev-critical); }
.sev-high { background: var(--sev-high-soft); color: var(--sev-high-ink); } .sev-high .sev-dot { background: var(--sev-high); }
.sev-medium { background: var(--sev-medium-soft); color: var(--sev-medium-ink); } .sev-medium .sev-dot { background: var(--sev-medium); }
.sev-low { background: var(--sev-low-soft); color: var(--sev-low-ink); } .sev-low .sev-dot { background: var(--sev-low); }
.sev-ok { background: var(--sev-ok-soft); color: var(--sev-ok-ink); } .sev-ok .sev-dot { background: var(--sev-ok); }
.sw-word { font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.sw-word-critical { color: var(--sev-critical-ink); } .sw-word-high { color: var(--sev-high-ink); } .sw-word-medium { color: var(--sev-medium-ink); }
.sw-word-low { color: var(--sev-low-ink); } .sw-word-ok { color: var(--sev-ok-ink); }
.hbar { position: relative; display: block; min-width: 40px; height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.hbar > i { display: block; height: 100%; border-radius: 4px; transform-origin: 0 50%; }
.hbar > i.m-hold-x { transform: scaleX(0); }
.hbar > i.m-grow { animation: m-grow-x var(--dur-3) var(--ease-out) var(--m-delay, 0ms) both; }
html[data-motion="off"] .hbar > i.m-hold-x { transform: none; }
.chart-ring { display: inline-block; flex: none; }
.ring-svg svg { display: block; overflow: visible; }
.ring-track { fill: none; stroke: var(--sunken); }
.ring-arc { fill: none; stroke-linecap: round; }
.ring-v { fill: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.ring-l { fill: var(--ink-3); font-size: 12px; }
.m-build .ring-arc { animation: m-ring calc(var(--dur-4) * 1.2 * var(--k, 1)) var(--ease-in-out) var(--b, 0ms) both; }
@keyframes m-ring { from { stroke-dashoffset: 100; } }
.tl { display: flex; flex-direction: column; gap: 14px; }
.tl-step { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; }
.tl-step::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: -14px; width: 2px; background: var(--border-strong); }
.tl-step:last-child::before { display: none; }
.tl-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--surface); border: 3px solid var(--partner); }
.tl-critical .tl-dot { border-color: var(--sev-critical); } .tl-high .tl-dot { border-color: var(--sev-high); } .tl-medium .tl-dot { border-color: var(--sev-medium); }
.tl-low .tl-dot { border-color: var(--sev-low); } .tl-ok .tl-dot { border-color: var(--sev-ok); }
.tl-when { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-3); }
.tl-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.tl-detail { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); }

/* Overview: the score card, the alerts by severity, Fix this week, what the watch reads. */
.sw-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-3); }
.sw-note { margin-top: 14px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-hero .card-body { padding: 22px 24px; }
.sw-hero-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.sw-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sw-verdict { margin-top: 2px; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.sw-hero-sub { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sw-parts { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.sw-part { display: grid; grid-template-columns: 84px minmax(0, 1fr) 64px 76px 16px; grid-template-areas: "k b v w i"; align-items: center; gap: 4px 12px; width: calc(100% + 16px); margin: 0 -8px; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: 13px; line-height: 18px; color: var(--ink-2); transition: background var(--dur) var(--ease); }
.sw-part:hover { background: var(--hover); }
.sw-part > .sw-part-k { grid-area: k; } .sw-part > .hbar { grid-area: b; } .sw-part > .sw-part-v { grid-area: v; } .sw-part > .sw-word { grid-area: w; } .sw-part > .icon { grid-area: i; color: var(--ink-3); }
.sw-part-k { font-weight: 600; color: var(--ink); }
.sw-part-v { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sw-sevs { display: flex; flex-direction: column; gap: 12px; }
.sw-sev-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; align-items: center; gap: 12px; }
.sw-sev-row.is-wide { grid-template-columns: 96px minmax(0, 1fr) 64px; }
.sw-sev-row > .tag { justify-self: start; }
.sw-sev-n { text-align: right; font-size: 20px; line-height: 24px; font-weight: 700; color: var(--ink); }
.sw-fix { display: flex; flex-direction: column; }
.sw-fix-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.sw-fix-row:first-child { padding-top: 0; border-top: 0; }
.sw-fix-i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sunken); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sw-fix-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.sw-fix-meta { margin-top: 3px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-fix-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.sw-fix-go { margin: 0 -10px 0 auto; color: var(--partner-text); }
.sw-src { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sw-src li { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); }
.sw-src-k { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.sw-src-d { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
@media (max-width: 699px) {
  .sw-hero .card-body { padding: 18px 16px; }
  .sw-hero-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sw-ring-wrap { flex-direction: row; gap: 16px; }
  .sw-part { grid-template-columns: minmax(0, 1fr) auto auto 16px; grid-template-areas: "k v w i" "b b b b"; }
}

/* Tables and lists on the other screens. */
.sw-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.sw-wrap { display: inline-block; min-width: 180px; max-width: 320px; white-space: normal; }
.sw-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sw-stack .sw-wrap { display: block; }
.sw-cellbar { display: grid; grid-template-columns: 64px minmax(56px, 1fr); align-items: center; gap: 10px; min-width: 140px; }
.sw-checks, .sw-links { display: flex; flex-direction: column; }
.sw-check, .sw-links li { padding: 12px 0; border-top: 1px solid var(--border); }
.sw-check:first-child, .sw-links li:first-child { padding-top: 0; border-top: 0; }
.sw-check-top, .sw-links li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sw-check-q, .sw-links-k { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.sw-check-d { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.sw-check-n, .sw-links-d { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-counts { display: flex; flex-direction: column; gap: 20px; }
.sw-count-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sw-count-k { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.sw-count-d { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-count-v { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sw-count-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 12px; line-height: 16px; }

/* Incident replay: two columns on one line of minutes; one column on a phone. */
.sw-ir-ticker { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.sw-ir-ticker > span { display: inline-flex; align-items: center; gap: 6px; }
.sw-ir-ticker .num { font-size: 15px; font-weight: 700; color: var(--ink); }
.sw-ir-heads, .sw-ir-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); gap: 0 16px; }
.sw-ir-heads p { padding-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-3); }
.sw-ir-list { position: relative; }
.sw-ir-list::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--border); }
.sw-ir-row { position: relative; align-items: center; padding: 6px 0; }
.sw-ir-time { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-self: center; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink); text-align: center; white-space: nowrap; }
.sw-ir-min { font-size: 11px; line-height: 14px; font-weight: 500; color: var(--ink-3); }
.sw-ir-step { padding: 10px 12px; border-radius: var(--r-md); }
.sw-ir-step.is-attacker { background: var(--sev-critical-soft); box-shadow: inset 3px 0 0 var(--sev-critical); }
.sw-ir-step.is-watch { background: var(--partner-tint); box-shadow: inset 3px 0 0 var(--partner); }
.sw-ir-who { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.is-attacker > .sw-ir-who { color: var(--sev-critical-ink); } .is-watch > .sw-ir-who { color: var(--partner-text); }
.sw-ir-title { margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.sw-ir-detail { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.sw-ir-row.is-hidden, .sw-ir-step.is-hidden, .sw-ir-end.is-hidden { visibility: hidden; }
.sw-ir-step.is-in { animation: m-pop var(--dur-2) var(--ease-out) both; }
.sw-ir-end.is-in { animation: m-rise var(--dur-3) var(--ease-out) both; }
.sw-caught { border-color: color-mix(in srgb, var(--sev-ok) 45%, var(--border)); }
.sw-caught-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sw-caught-title { margin-top: 14px; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.sw-caught-body { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sw-caught-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.sw-caught-stats dt { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-caught-stats dd { margin: 4px 0 0; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ink); }
@media (max-width: 600px) { .sw-caught-stats { grid-template-columns: 1fr; gap: 8px; } .sw-caught-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .sw-caught-stats dd { margin: 0; font-size: 16px; } }
.sw-without .tl-dot { border-color: var(--sev-low); }
@media (max-width: 699px) {
  .sw-ir-heads { display: none; }
  .sw-ir-list::before { left: 11px; }
  .sw-ir-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 26px; }
  .sw-ir-time { order: -1; flex-direction: row; gap: 6px; justify-self: start; margin-left: -26px; }
  .sw-ir-row.no-attacker > .is-attacker, .sw-ir-row.no-watch > .is-watch { display: none; }
  .sw-caught-title { font-size: 22px; line-height: 28px; }
}

/* Backups: if the server died today, to scale. */
.sw-rec-strip { display: flex; align-items: stretch; gap: 3px; height: 44px; margin: 26px 0 6px; }
.sw-rec-seg { flex: 1 1 0; min-width: 24px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; font-size: 12px; line-height: 16px; font-weight: 600; }
.sw-rec-seg.is-lost { background: repeating-linear-gradient(135deg, var(--sev-critical-soft) 0 8px, transparent 8px 14px); border: 1px dashed var(--sev-critical); color: var(--sev-critical-ink); }
.sw-rec-seg.is-step { background: var(--partner-tint); box-shadow: inset 0 -3px 0 var(--partner); color: var(--ink); }
.sw-rec-l { max-width: 100%; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-rec-fail { position: relative; flex: none; width: 2px; margin: -6px 2px; background: var(--sev-critical); }
.sw-rec-fail span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px; font-size: 11px; line-height: 14px; font-weight: 700; color: var(--sev-critical-ink); white-space: nowrap; }
.sw-rec-axis { display: flex; gap: 3px; margin-bottom: 20px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-rec-axis span { flex: 1 1 0; }
.sw-rec-axis span + span { padding-left: 10px; }
.sw-rec-strip.m-hold-seg .sw-rec-seg, .sw-rec-strip.m-hold-seg .sw-rec-fail { clip-path: inset(0 100% 0 0); }
.sw-rec-strip.m-seg .sw-rec-seg, .sw-rec-strip.m-seg .sw-rec-fail { animation: sw-wipe var(--dur-2) var(--ease-out) calc(var(--m-delay, 0ms) + var(--i, 0) * 140ms) both; }
.sw-rec-strip.m-seg .sw-rec-fail { --i: .6; }
@keyframes sw-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html[data-motion="off"] .sw-rec-strip .sw-rec-seg, html[data-motion="off"] .sw-rec-strip .sw-rec-fail { clip-path: none; }

/* The monthly report: one sheet, like a printed page. */
.sw-sheet { max-width: 880px; margin-left: auto; margin-right: auto; }
.sw-sheet > .card-body { padding: 32px 40px 36px; }
.sw-rep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sw-rep-title { margin-top: 2px; font-size: 22px; line-height: 28px; font-weight: 700; }
.sw-rep-p { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sw-rep-sec { padding: 20px 0 16px; border-bottom: 1px solid var(--border); }
.sw-rep-sec:last-child { padding-bottom: 0; border-bottom: 0; }
.sw-rep-h { margin-bottom: 12px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.sw-rep-score { display: flex; align-items: center; gap: 28px; }
.sw-rep-score-t { min-width: 0; flex: 1; }
.sw-rep-big { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ink); }
.sw-rep-parts { width: 100%; max-width: 420px; margin-top: 12px; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.sw-rep-parts th { padding: 0 12px 6px 0; border-bottom: 1px solid var(--border); text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.sw-rep-parts td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.sw-rep-parts .is-num { text-align: right; }
.sw-rep-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sw-rep-when { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-rep-open li, .sw-rep-qs li { display: grid; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); }
.sw-rep-open li { grid-template-columns: 84px minmax(0, 1fr) auto; }
.sw-rep-qs li { grid-template-columns: minmax(0, 1fr) auto; }
.sw-rep-open li:first-child, .sw-rep-qs li:first-child { border-top: 0; }
.sw-rep-open .tag { justify-self: start; margin-top: 1px; }
.sw-rep-open-t, .sw-rep-q { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.sw-rep-open .btn { margin: -5px 0; }
@media (max-width: 699px) {
  .sw-sheet > .card-body { padding: 20px 16px 24px; }
  .sw-rep-head { flex-direction: column; }
  .sw-rep-score { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sw-rep-open li { grid-template-columns: minmax(0, 1fr) auto; }
  .sw-rep-open li > .tag { grid-column: 1 / -1; }
}

/* One office: the sidebar names it, with no office filter under it. Five tiles on the overview (the first opens Threat
   watch), the Unusual activity card, the course by role. */
.view-security .side-practice-sub { margin-bottom: 0; }
.grid-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1299px) { .grid-kpis-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .grid-kpis-5 > * { grid-column: span 2; } .grid-kpis-5 > :nth-child(-n+2) { grid-column: span 3; } }
@media (max-width: 899px) { .grid-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-kpis-5 > *, .grid-kpis-5 > :nth-child(-n+2) { grid-column: auto; } .grid-kpis-5 > :first-child { grid-column: 1 / -1; } }
.sw-kpi-link { position: relative; display: block; border-radius: var(--r-lg); color: inherit; text-decoration: none; }
.sw-kpi-link > .kpi { height: 100%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--partner) 40%, transparent), var(--shadow-1); transition: background var(--dur) var(--ease); }
.sw-kpi-link:hover { text-decoration: none; } .sw-kpi-link:hover > .kpi { background: var(--partner-tint); }
.sw-kpi-link > .icon { position: absolute; top: 16px; right: 14px; color: var(--partner-text); }
.sw-unusual li { display: flex; flex-direction: column; gap: 4px; }
.sw-unusual-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.sw-unusual-t { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.sw-unusual-d { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.sw-sev-row.is-role { grid-template-columns: 136px minmax(0, 1fr) 56px; }
.sw-cell-go { display: inline-flex; margin: 4px 0 0 -10px; }

/* Incident replay: the office manager's steps, beside the watch's. */
.sw-ir-step.is-office { background: var(--sev-ok-soft); box-shadow: inset 3px 0 0 var(--sev-ok); }
.is-office > .sw-ir-who { color: var(--sev-ok-ink); }

/* Threat watch: what the practice runs, as chips; the feed. */
.sw-checked { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.sw-checked .icon { color: var(--sev-ok); }
.sw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-chip { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-full); background: var(--surface); font-size: 13px; line-height: 18px; color: var(--ink-2); }
.sw-chip-k { font-weight: 600; color: var(--ink); }
.sw-feed { display: flex; flex-direction: column; }
.sw-th { padding: 16px 0; border-top: 1px solid var(--border); }
.sw-th:first-child { padding-top: 0; border-top: 0; }
.sw-th:last-child { padding-bottom: 0; }
.sw-th-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sw-th-date { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-3); }
.sw-th-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.sw-th-when { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-th-h { margin-top: 8px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.sw-th-dl { display: grid; gap: 6px; margin: 10px 0 0; }
.sw-th-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 20px; }
.sw-th-row dt { font-size: 13px; color: var(--ink-3); }
.sw-th-row dd { margin: 0; color: var(--ink-2); }
.sw-th-touch { display: flex; align-items: flex-start; gap: 8px; }
.sw-th-touch > .tag { flex: none; }
@media (max-width: 699px) {
  .sw-th-status { margin-left: 0; }
  .sw-th-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sw-th-touch { flex-direction: column; gap: 4px; }
}

/* Connections: one card each, then what it never does. */
.sw-conns { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sw-conn .card-body { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.sw-conn-head { display: flex; align-items: flex-start; gap: 12px; }
.sw-conn-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--partner-tint); color: var(--partner-text); }
.sw-conn.is-off .sw-conn-icon { background: var(--sunken); color: var(--ink-3); }
.sw-conn-k { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.sw-conn-what { font-size: 14px; line-height: 20px; color: var(--ink); }
.sw-conn-d { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.sw-conn-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 6px; }
.sw-conn-note { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-never { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; }
.sw-never li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.sw-never .icon { flex: none; margin-top: 1px; color: var(--sev-ok); }

/* The contact button and form (parts/security-contact.js, which holds their words): the top bar's button (a row of its own on a phone), the report's, and
   the form in a dialog. 44px controls, 16px in the fields on a phone. */
.bar-talk { display: none; }
.sw-talk .icon, .sw-talk svg { flex: none; }
.view-security .bar-right .bar-talk-btn { flex: none; }
/* The security side has no view switch, so with the button its top bar gives the empty centre's width to the controls. */
@media (min-width: 900px) {
  .view-security .topbar.has-talk { grid-template-columns: auto minmax(0, 1fr); }
  .view-security .topbar.has-talk .bar-mid { display: none; }
}
@media (max-width: 640px) {
  .view-security .topbar.has-talk { grid-template-areas: "lock right" "talk talk"; }
  .view-security .bar-right .bar-talk-btn { display: none; }
  .view-security .bar-talk { display: block; grid-area: talk; }
  .view-security .bar-talk .btn { width: 100%; }
}
.sw-rep-talk > .card-body { padding: 20px 40px; }
.sw-rep-talk-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
@media (max-width: 699px) { .sw-rep-talk > .card-body { padding: 18px 16px; } .sw-rep-talk-in .btn { width: 100%; } }
.sw-ct-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--raised); color: var(--ink); box-shadow: var(--shadow-3); }
.sw-ct-dialog::backdrop { background: rgba(11, 23, 38, .45); }
.sw-ct-box { padding: 8px 24px 24px; }
.sw-ct-bar { display: flex; justify-content: flex-end; margin: 0 -14px 4px 0; }
.sw-ct-with { display: inline-flex; margin-bottom: 8px; padding: 4px 10px; border-radius: var(--r-full); background: var(--partner-tint); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--partner-text); }
.sw-ct-h { font-size: 20px; line-height: 26px; font-weight: 700; }
.sw-ct-line { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sw-ct-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sw-ct-f { display: flex; flex-direction: column; gap: 4px; }
.sw-ct-f label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
.sw-ct-f input, .sw-ct-f textarea, .sw-ct-f .select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background-color: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; }
.sw-ct-f .select { padding-right: 32px; }
.sw-ct-f textarea { resize: vertical; }
.sw-ct-f [aria-invalid="true"] { border-color: var(--sev-critical); }
.sw-ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sw-ct-err { padding: 10px 12px; border-radius: var(--r-md); background: var(--sev-critical-soft); color: var(--sev-critical-ink); font-size: 13px; line-height: 18px; font-weight: 600; }
.sw-ct-err[hidden], .sw-ct-done[hidden], .sw-ct-form[hidden] { display: none; }
.sw-ct-send { min-height: 44px; }
.sw-ct-fine { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sw-ct-done { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sev-ok-soft); color: var(--sev-ok-ink); font-size: 15px; line-height: 22px; font-weight: 600; }
@media (max-width: 560px) { .sw-ct-box { padding: 8px 16px 20px; } .sw-ct-f input, .sw-ct-f textarea, .sw-ct-f .select { font-size: 16px; } }
