/* ==========================================================================
   Analytics Inventory
   City of Hope look. Colours, typefaces and shapes follow cityofhope.org as
   observed in November 2026: Mulish for text, Red Hat Display for headlines,
   blue #0072CE, navy #061037, square corners. Replace these tokens with the
   official brand standards when they are supplied.
   ========================================================================== */

/* Both typefaces are open licence (SIL OFL) and served from this site. */
@font-face { font-family: "Mulish"; src: url("fonts/Mulish.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("fonts/Mulish-Italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("fonts/RedHatDisplay.woff2") format("woff2"); font-weight: 500 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --ink: #3d3d3d;
  --ink-2: #4f4f4f;
  --ink-3: #6a6a6a;
  --line: #d9d9d6;
  --line-2: #e9e9e7;
  --navy: #061037;
  --blue: #0072ce;
  --blue-600: #015da7;
  --blue-700: #01457b;
  --blue-50: #f2f8fd;
  --blue-100: #cfe3f6;
  /* City of Hope has no teal. The accent token keeps its name and carries the darker brand blue. */
  --teal: #015da7;
  --teal-50: #e6f1fb;
  --ok: #1a7f4e;
  --ok-50: #e6f4ec;
  --warn: #8f5300;
  --warn-50: #fdf1dc;
  --bad: #b3261e;
  --bad-50: #fbe9e7;
  --mark: #cfe5fa;

  --font: "Mulish", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);
  --font-display: "Red Hat Display", "Mulish", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;

  --r-sm: 2px;
  --r: 4px;
  --r-lg: 4px;
  --shadow: 0 1px 0 rgba(6, 16, 55, .04);
  --shadow-lg: 0 14px 36px rgba(6, 16, 55, .18), 0 2px 6px rgba(6, 16, 55, .08);
  --top-h: 68px;
  --panel-w: 580px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; min-width: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.25; }
h1 { font: 900 30px/1.08 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 14.5px; font-weight: 800; }
h4 { font-size: 13px; font-weight: 800; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
mark { background: var(--mark); color: var(--navy); padding: 0 1px; border-radius: 2px; }
kbd { font: 12px var(--mono); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: .92em; }
.wrap { overflow-wrap: anywhere; }
.pre { white-space: pre-line; }
.unknown { color: var(--ink-3); font-style: italic; }
.warn-text { color: var(--warn); }
.num { text-align: right; }
.pad { padding: 16px; }
.link { color: var(--blue); text-decoration: underline; text-decoration-color: var(--blue-100); text-underline-offset: 2px; }
.link:hover { text-decoration-color: currentColor; }
.link .icon { margin-left: 3px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; text-decoration-color: var(--blue-100); text-underline-offset: 2px; }
.link-btn:hover { text-decoration-color: currentColor; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain > li { margin: 0 0 6px; }
ul.bullets { margin: 0 0 10px; padding-left: 20px; }
ul.bullets > li { margin-bottom: 5px; }
ol.steps { margin: 0 0 10px; padding-left: 20px; }
ol.steps > li { margin-bottom: 5px; padding-left: 2px; }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: var(--top-h); padding: 0 24px; max-width: 1760px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-org { font: 700 19px/1 var(--font-head); letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.brand-rule { width: 1px; height: 28px; background: var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-group { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.brand-product { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav { display: flex; align-items: stretch; gap: 4px; height: 100%; flex: 1; min-width: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.nav-link:hover { color: var(--navy); background: var(--surface-2); }
.nav-link.is-active { color: var(--navy); border-bottom-color: var(--blue); }
.nav-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); font-size: 11.5px; font-weight: 700; text-align: center; line-height: 18px; }
.top-right { flex: none; }
.account { display: flex; align-items: center; gap: 9px; background: none; border: 1px solid transparent; border-radius: var(--r); padding: 5px 8px; }
.account:hover, .account[aria-expanded="true"] { background: var(--surface-2); border-color: var(--line); }
.account-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.account-name { font-weight: 600; font-size: 13px; }
.account-role { font-size: 11.5px; color: var(--ink-3); }
.avatar { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.avatar-lg { width: 40px; height: 40px; font-size: 14px; }
.acct { width: 320px; }
.acct-id { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.acct-name { font-weight: 650; }
.acct-roles { border: 0; margin: 12px 0 0; padding: 0; }
.acct-roles legend { font-weight: 650; font-size: 12.5px; padding: 0; margin-bottom: 6px; }
.acct-role { display: flex; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; }
.acct-role:hover { background: var(--surface-2); }
.acct-role input { margin-top: 3px; accent-color: var(--blue); }
.acct-role > span { display: flex; flex-direction: column; }
.acct-role .muted { font-size: 12px; }
.acct-role-name { font-weight: 600; }
.acct-links { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 12.5px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 24px; max-width: 1760px; margin: 0 auto; }
.foot-links { display: flex; gap: 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- page scaffolding ---------- */

.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; }
.page-narrow { max-width: 880px; }
.page-doc { max-width: 1040px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head-text { min-width: 0; flex: 1 1 420px; }
.page-sub { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.back:hover { color: var(--blue); }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin: 0 0 4px; }
.sec { margin-top: 28px; }
.sec:first-child { margin-top: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.card > h2 { margin-bottom: 10px; font-size: 15px; }
.card + .card { margin-top: 14px; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: #c9d3de; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #8f1e18; border-color: #8f1e18; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-on { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }
.btn.is-on .icon, .save-btn.is-on .icon { fill: currentColor; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-3); flex: none; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.save-btn.icon-btn.is-on { color: var(--blue); }

/* ---------- badges, tags, chips ---------- */

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; vertical-align: middle; }
.badge .icon { vertical-align: 0; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-info { background: var(--blue-50); color: var(--blue-600); }
.badge-mute { background: var(--line-2); color: var(--ink-2); }
.cert { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 12px; font-weight: 650; background: var(--teal-50); padding: 1px 8px; border-radius: 999px; line-height: 18px; }
.cert-dot { color: var(--teal); display: inline-flex; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--r-sm); background: var(--line-2); color: var(--ink-2); font-size: 12.5px; line-height: 20px; text-decoration: none; }
a.tag:hover { background: var(--blue-50); color: var(--blue-600); }
.tag-more { background: transparent; border: 1px dashed var(--line); }
.tag-kept { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); }
.tag-warn { background: var(--warn-50); color: var(--warn); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--blue-50); color: var(--navy); border: 1px solid var(--blue-100); font-size: 12.5px; line-height: 20px; }
.chip-k { color: var(--ink-3); }
.chip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); padding: 0; }
.chip-x:hover { background: var(--blue-100); color: var(--navy); }
.mark-curated, .mark-derived { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 0 6px; border-radius: 4px; line-height: 17px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.mark-curated { background: var(--teal-50); color: var(--teal); }
.mark-derived { background: var(--line-2); color: var(--ink-3); }

/* ---------- messages and empty states ---------- */

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); margin: 0 0 12px; }
.notice > .icon { margin-top: 2px; }
.notice-body { flex: 1; min-width: 0; }
.notice-body strong { display: block; color: var(--navy); }
.notice-actions { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.notice-info { background: var(--blue-50); border-color: var(--blue-100); }
.notice-info > .icon { color: var(--blue); }
.notice-warn { background: var(--warn-50); border-color: #f3d9a4; }
.notice-warn > .icon { color: var(--warn); }
.notice-bad { background: var(--bad-50); border-color: #f1c4bf; }
.notice-bad > .icon { color: var(--bad); }
.notice-ok { background: var(--ok-50); border-color: #bfe0cd; }
.notice-ok > .icon { color: var(--ok); }
.empty { text-align: center; padding: 48px 24px; max-width: 560px; margin: 0 auto; }
.empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-50); color: var(--blue); margin-bottom: 12px; }
.empty-bad .empty-icon { background: var(--bad-50); color: var(--bad); }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--ink-2); }
.empty-actions { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- definition lists, people ---------- */

.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv-hint { display: block; color: var(--ink-3); font-size: 12.5px; }
.kv-tight { margin-top: 10px; font-size: 13px; }
.kv-cols { grid-template-columns: minmax(140px, 220px) 1fr; }
.person { display: flex; gap: 10px; align-items: flex-start; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 600; }
.person-role { font-weight: 500; color: var(--teal); font-size: 12px; margin-left: 8px; }
.person-sub { color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.person-inactive .avatar { background: var(--ink-3); }
.people { display: grid; gap: 12px; margin: 10px 0; }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- tabs ---------- */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; background: none; color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--blue); }
.tab-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn-50); color: var(--warn); font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- loading skeleton ---------- */

.skeleton { padding: 6px 0; }
.sk-row { display: flex; gap: 18px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.sk { height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2) 25%, #f7f9fb 37%, var(--line-2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
.sk-a { height: 13px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ---------- toasts, dialogs, popovers ---------- */

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 24px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--r); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); max-width: 100%; }
.toast-error { background: var(--bad); }
.toast-action { background: none; border: 0; color: #fff; font-weight: 700; text-decoration: underline; padding: 2px 6px; }
.toast-x { color: rgba(255, 255, 255, .8); }
.toast-x:hover { background: rgba(255, 255, 255, .16); color: #fff; }
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal-wide { width: min(900px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(12, 32, 58, .45); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 0 20px 16px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.popover { position: absolute; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px; max-width: calc(100vw - 16px); max-height: min(70vh, 560px); overflow: auto; }
.menu { width: 260px; }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.menu-list { display: grid; gap: 1px; }
.menu-note { margin-top: 8px; }
.menu-save { width: 320px; display: grid; gap: 8px; }
.menu-save p, .menu-save ul { margin: 0; }
.menu-actions { display: flex; justify-content: flex-end; gap: 6px; }

/* ---------- form controls ---------- */

.input, .select { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid #c3cdd8; border-radius: var(--r); background: var(--surface); }
.input:hover, .select:hover { border-color: #a9b6c4; }
.input:focus, .select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea.input { resize: vertical; line-height: 1.45; }
.input-sm { min-height: 30px; padding: 3px 9px; width: 240px; max-width: 100%; }
.select { width: auto; padding-right: 28px; }
.field { margin-bottom: 16px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.field label, .label { font-weight: 600; }
.field-hint { color: var(--ink-3); font-size: 12.5px; margin: 0 0 6px; }
.field-error { color: var(--bad); font-size: 12.5px; font-weight: 600; margin: 5px 0 0; }
.field-count { color: var(--ink-3); font-size: 12px; }
.field-count.is-over { color: var(--bad); font-weight: 700; }
.has-error .input, .has-error .tag-editor, .has-error .check-grid, .has-error .svc-editor { border-color: var(--bad); }
.has-error .check-grid, .has-error .svc-editor { border: 1px solid var(--bad); border-radius: var(--r); padding: 8px; }
.req { color: var(--bad); }
.readonly { font-weight: 600; margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 12px; }
.tag-editor { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid #c3cdd8; border-radius: var(--r); background: var(--surface); }
.tag-editor:focus-within { outline: 2px solid var(--blue); border-color: var(--blue); }
.tag-input { flex: 1 1 160px; min-width: 120px; border: 0; outline: 0; padding: 3px 4px; background: none; }
.svc-editor { display: grid; gap: 8px; justify-items: start; }
.svc-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(200px, 2fr) 30px; gap: 8px; width: 100%; align-items: center; }
fieldset.form-sec { margin: 0 0 16px; min-width: 0; }
fieldset.form-sec > legend { font: 650 15px var(--font-head); color: var(--navy); padding: 0 6px; margin-left: -6px; }
.form-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 -4px 16px rgba(12, 45, 87, .08); }
.form-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.error-summary { margin-bottom: 4px; }
.file-input { max-width: 100%; }

/* ---------- inventory: search ---------- */

.inv { max-width: 1760px; margin: 0 auto; padding: 0 24px 56px; }
.inv-head { padding: 22px 0 14px; }
.searchbox { position: relative; display: flex; align-items: center; max-width: 920px; background: var(--surface); border: 1.5px solid #b9c5d2; border-radius: 12px; box-shadow: var(--shadow); }
.searchbox:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.search-icon { position: absolute; left: 16px; color: var(--ink-3); pointer-events: none; }
.search-input { flex: 1; min-width: 0; height: 52px; padding: 0 12px 0 46px; border: 0; background: none; font-size: 17px; outline: none; border-radius: 12px; }
.search-input::placeholder { color: var(--ink-3); }
.search-clear { margin-right: 6px; }
.search-kbd { margin-right: 14px; padding: 2px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-3); background: var(--surface-2); }
.searchbox:focus-within .search-kbd { display: none; }
.searchbox-md { max-width: 520px; flex: 1 1 320px; border-radius: 10px; }
.searchbox-md .search-input { height: 42px; font-size: 15px; padding-left: 42px; }
.searchbox-md .search-icon { left: 14px; }
.sugg { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 25; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow: auto; }
.sugg-group { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.sugg-opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; }
.sugg-opt .icon { color: var(--ink-3); }
.sugg-opt:hover, .sugg-opt.is-active { background: var(--blue-50); }
.sugg-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-sub { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.search-meta { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.search-meta .icon { color: var(--teal); }
.search-meta strong { color: var(--navy); }

/* ---------- inventory: filters ---------- */

.inv-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--top-h) + 12px); max-height: calc(100vh - var(--top-h) - 24px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 6px; box-shadow: var(--shadow); }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filters-head h2 { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font); }
.filters-close, .filters-foot, .filters-toggle, .filters-scrim { display: none; }
.fgroup { border: 0; border-top: 1px solid var(--line-2); margin: 0; padding: 12px 0 10px; min-width: 0; }
.filters-head + .fgroup { border-top: 0; }
.fgroup-head { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 6px; font: 650 13.5px var(--font-head); color: var(--navy); }
.fgroup-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.fgroup-filter { width: 100%; min-height: 30px; padding: 3px 9px; border: 1px solid #c3cdd8; border-radius: var(--r-sm); margin-bottom: 6px; }
.fopts { display: grid; gap: 1px; }
.fopt { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin: 0 -6px; border-radius: var(--r-sm); cursor: pointer; min-width: 0; }
.fopt:hover { background: var(--surface-2); }
.fopt input { flex: none; width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.fopt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fopt-count { color: var(--ink-3); font-size: 12.5px; }
.fopt.is-zero { color: var(--ink-3); }
.fgroup-more { margin-top: 6px; font-size: 13px; }
.switch { margin: 4px 0 0; }

/* ---------- inventory: results ---------- */

.results { min-width: 0; }
.rbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 36px; }
.rbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rcount { margin: 0; font-size: 14px; }
.rcount strong { font-size: 17px; color: var(--navy); font-family: var(--font-head); }
.sort { display: inline-flex; align-items: center; gap: 6px; }
.sort-label { color: var(--ink-3); font-size: 13px; }
.sort .select, .pager .select { min-height: 30px; padding-top: 3px; padding-bottom: 3px; border-radius: var(--r-sm); font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.seg-btn { display: inline-grid; place-items: center; width: 32px; height: 28px; border: 0; background: none; color: var(--ink-3); padding: 0; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn:hover { background: var(--surface-2); }
.seg-btn.is-on { background: var(--blue-50); color: var(--blue-600); }
.chips-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; min-height: 26px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.grid th.num, .grid td.num { text-align: right; }
.grid thead th { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 0; font-size: 12.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.grid thead th:first-child { border-top-left-radius: var(--r-lg); }
.grid thead th:last-child { border-top-right-radius: var(--r-lg); }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid-plain thead th { padding: 9px 12px; }
.grid tbody th { font-weight: 600; color: var(--ink-2); }
.th-btn { display: flex; align-items: center; gap: 5px; width: 100%; padding: 9px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; white-space: nowrap; }
th.num .th-btn { justify-content: flex-end; }
.th-btn .icon { color: #a3afbd; }
.th-btn:hover { color: var(--navy); background: var(--line-2); }
.th-btn:hover .icon { color: var(--ink-2); }
.th-btn.is-sorted { color: var(--navy); box-shadow: inset 0 -2px 0 var(--blue); }
.th-btn.is-sorted .icon { color: var(--blue); }
.grid td { overflow-wrap: anywhere; }
.c-save { width: 40px; padding-right: 0 !important; }
.grid td.c-save { padding-top: 7px; padding-bottom: 7px; }
.c-title { min-width: 240px; width: 34%; }
.c-location { min-width: 150px; }
.c-team, .c-owner { min-width: 130px; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.grid[data-density="compact"] .clamp { display: block; overflow: hidden; text-overflow: ellipsis; }
.c-platform, .c-type, .c-subjects { min-width: 100px; }
.c-review_status, .c-lifecycle, .c-source_modified, .c-reviewed, .c-catalog_synced, .c-last_used, .c-created,
.c-usage_90d, .c-users_90d, .c-completeness, .c-refresh, .c-id { white-space: nowrap; overflow-wrap: normal; }
.c-source_id { min-width: 140px; }
tr.row { cursor: pointer; }
tr.row:hover > td { background: #f9fbfd; }
tr.row.is-open > td { background: var(--blue-50); }
tr.row.is-open > td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.row-title { line-height: 1.35; }
.row-title > .cert-dot, .row-title > .badge, .row-title > .row-flag { margin-left: 6px; vertical-align: -2px; }
.row-link { font-weight: 600; color: var(--navy); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font-size: 14px; overflow-wrap: anywhere; }
.row-link:hover { color: var(--blue); text-decoration: underline; }
.row-flag { color: var(--warn); display: inline-flex; }
.row-sum { color: var(--ink-2); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.row-why { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.row-why-k { color: var(--teal); font-weight: 600; }
.row-meta { display: none; }
.grid[data-density="compact"] td { padding-top: 5px; padding-bottom: 5px; }
.grid[data-density="compact"] td.c-save { padding-top: 2px; padding-bottom: 2px; }
.grid[data-density="compact"] .row-sum, .grid[data-density="compact"] .row-why { display: none; }
.grid[data-density="compact"] .row-link { font-size: 13.5px; }
.grid[data-density="compact"] .row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid[data-density="compact"] td.c-title { max-width: max(280px, 22vw); }
.grid[data-density="compact"] tbody td:not(.c-title):not(.c-save) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; overflow-wrap: normal; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 2px 0; color: var(--ink-2); font-size: 13px; }
.pager-size { display: inline-flex; align-items: center; gap: 8px; }
.pager-nav { display: inline-flex; align-items: center; gap: 6px; }
.pg-nums { display: inline-flex; align-items: center; gap: 2px; }
.pg { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; height: 32px; padding: 0 9px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
a.pg:hover { background: var(--line-2); }
.pg.is-current { background: var(--navy); color: #fff; }
.pg.is-off { color: #a3afbd; }
.pg-step { border: 1px solid var(--line); background: var(--surface); }
.pg-gap { padding: 0 4px; color: var(--ink-3); }
.noresults { padding: 40px 28px; text-align: center; }
.noresults h2 { font-size: 19px; margin-bottom: 6px; overflow-wrap: anywhere; }
.noresults-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; text-align: left; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.noresults-cols h3 { margin-bottom: 8px; }

/* ---------- details panel ---------- */

.panel { position: fixed; top: var(--top-h); right: 0; bottom: 0; width: min(var(--panel-w), 100vw); z-index: 40; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); outline: none; }
.panel-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line-2); flex: none; }
.panel-nav { display: flex; align-items: center; gap: 2px; min-height: 30px; }
.panel-nav .muted { margin-left: 6px; }
.panel-top-gap { flex: 1; }
.panel-scroll { flex: 1; overflow-y: auto; padding: 18px 22px 40px; overscroll-behavior: contain; }
.panel-kicker { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.panel-head h2 { font-size: 21px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.panel-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.action { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); margin-bottom: 6px; }
.action .btn-lg { width: 100%; }
.action-note { color: var(--ink-2); font-size: 13px; margin: 8px 0 0; }
.action-title { display: flex; align-items: center; gap: 7px; color: var(--navy); }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.action .notice { margin: 0; background: var(--surface); }
.action .notice + .access, .action-row + .access { margin-top: 12px; }
.access { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; margin: 10px 0 0; color: var(--ink-2); }
.access .icon { margin-top: 2px; color: var(--ink-3); }
.psec { padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--line-2); }
.psec > h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font); margin-bottom: 10px; }
.psec h4 { margin: 0 0 4px; }
.questions { margin: 0; padding-left: 18px; }
.questions li { margin-bottom: 4px; }
.copyline { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.copyline .mono { overflow-wrap: anywhere; }
.dates { display: grid; gap: 10px; margin-bottom: 12px; }
.date-block { display: flex; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.date-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.date-block.is-empty .date-icon { background: var(--line-2); color: var(--ink-3); }
.date-label { font-weight: 650; color: var(--navy); }
.date-value { font-size: 14px; }
.date-extra { font-size: 12.5px; color: var(--ink-2); }
.date-help { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.note-block { margin-top: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--line-2); }
.team-card { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; background: var(--surface); }
.team-card:hover { border-color: var(--blue); background: var(--blue-50); }
.team-card-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--teal-50); color: var(--teal); }
.team-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.team-card-name { font-weight: 650; color: var(--navy); }
.team-card > .icon { color: var(--ink-3); }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.related-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.related-item:hover { border-color: var(--blue); background: var(--blue-50); }
.related-rel { flex: none; width: 92px; font-size: 12px; font-weight: 600; color: var(--teal); }
.related-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.related-title { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.reports li { display: flex; gap: 8px; align-items: flex-start; }
.reports .icon { color: var(--bad); margin-top: 3px; }
details.disclosure > summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--blue); font-weight: 600; list-style: none; padding: 4px 0; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-left: 2px; }
details.disclosure[open] > summary::after { transform: rotate(45deg); }
.problem-form { display: grid; gap: 8px; margin-top: 10px; }
.problem-form label { font-weight: 600; display: grid; gap: 4px; }
.problem-form .select { width: 100%; }
table.fields { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.fields th, .fields td { text-align: left; vertical-align: top; padding: 5px 8px; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.fields th { width: 38%; font: 500 12px var(--mono); color: var(--ink-3); }
.fields-sep th { font: 650 12px var(--font); color: var(--navy); padding-top: 12px; }

/* ---------- Analytics Profiles ---------- */

.dir-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.team-grid > .empty { grid-column: 1 / -1; }
.team-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.team-tile:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(12, 45, 87, .1); }
.team-tile.is-inactive { opacity: .72; }
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile-head h2 { font-size: 15.5px; }
.tile-kind { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin: 0; }
.tile-tagline { color: var(--ink-2); margin: 0 0 4px; }
.tile-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.tile-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-foot .icon { margin-right: 5px; color: var(--ink-3); }
.profile-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.profile-main > .sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); margin-top: 14px; }
.profile-main > .sec:first-child { margin-top: 0; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.services li { display: grid; gap: 1px; padding-left: 12px; border-left: 3px solid var(--teal-50); }
.services li span { color: var(--ink-2); }
.tools-row { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.tools-row > .muted { flex: none; width: 82px; }
.res-items { list-style: none; margin: 0; padding: 0; }
.res-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 8px; margin: 0 -8px; border-radius: var(--r-sm); text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-2); }
.res-items li:last-child .res-item { border-bottom: 0; }
.res-item:hover { background: var(--blue-50); }
.res-main { display: flex; flex-direction: column; min-width: 0; }
.res-title { font-weight: 600; color: var(--navy); }
.res-featured { margin-left: 8px; font-size: 11px; font-weight: 650; color: var(--teal); background: var(--teal-50); padding: 0 6px; border-radius: 4px; }
.res-more { margin-top: 12px; }
.res-more .icon { margin-left: 4px; color: var(--blue); }
.profile-side .card h2 { font-size: 14px; }
.profile-meta { margin-top: 14px; }
.conflict { display: grid; gap: 14px; }
.conflict .card + .card { margin-top: 0; }
.conflict-row { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 12px 0 0; min-width: 0; }
.conflict-row legend { font-weight: 650; color: var(--navy); padding: 0 6px; }
.conflict-was { color: var(--ink-2); font-size: 13px; margin-bottom: 10px; }
.conflict-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.conflict-opt { display: flex; gap: 9px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; min-width: 0; }
.conflict-opt:hover { border-color: #a9b6c4; }
.conflict-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.conflict-opt input { margin-top: 3px; accent-color: var(--blue); flex: none; }
.conflict-opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.conflict-opt-who { font-size: 12px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.conflict-val { overflow-wrap: anywhere; }
.conflict-val ul, .conflict-val ol { margin: 0; }
.conflict-auto { margin: 0; padding-left: 18px; }
.conflict-auto li { margin-bottom: 6px; }

/* ---------- Saved ---------- */

.storage-note { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 13px; margin: -8px 0 4px; }
.storage-note .icon { color: var(--ink-3); }
.saved-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.saved-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.saved-item:last-child { border-bottom: 0; }
.saved-item.is-gone { background: var(--surface-2); }
.saved-main { min-width: 0; display: grid; gap: 4px; }
.saved-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--navy); text-decoration: none; font-size: 14.5px; flex-wrap: wrap; }
a.saved-name:hover { color: var(--blue); text-decoration: underline; }
.saved-desc { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.saved-sum { color: var(--ink-2); font-size: 13px; }
.saved-actions { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.sec > .empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); max-width: none; padding: 32px 24px; }

/* ---------- Administration ---------- */

.import-head h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.import-head { margin-bottom: 14px; }
.pipeline { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pipe-step { position: relative; display: flex; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pipe-step strong { display: block; color: var(--navy); }
.pipe-line { display: block; font-size: 12.5px; color: var(--ink-2); }
.pipe-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.pipe-step.is-done .pipe-n { background: var(--ok-50); color: var(--ok); }
.pipe-step.is-current { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.pipe-step.is-current .pipe-n { background: var(--blue); color: #fff; }
.pipe-step.is-todo { background: var(--surface-2); }
.pipeline-doc .pipe-step.is-done .pipe-n { background: var(--blue-50); color: var(--blue-600); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tiles-sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile { display: flex; flex-direction: column; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
a.tile:hover { border-color: #a9b6c4; background: var(--surface-2); }
.tile.is-active { box-shadow: 0 0 0 2px var(--blue); border-color: var(--blue); }
.tile-n { font: 650 24px/1.15 var(--font-head); color: var(--navy); letter-spacing: -.02em; }
.tile-label { font-weight: 600; }
.tile-sub { font-size: 12.5px; color: var(--ink-3); }
.tile-ok { border-top-color: var(--ok); }
.tile-info { border-top-color: var(--blue); }
.tile-warn { border-top-color: #d99a1c; }
.tile-bad { border-top-color: var(--bad); }
.import-list { margin-top: 22px; }
.import-list > p.muted { margin-bottom: 8px; }
.import-bar { margin-top: 24px; }
.import-progress { display: grid; gap: 4px; flex: 1 1 260px; max-width: 420px; }
.progress { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.bar-note { margin-top: 8px; text-align: right; }
.diff th[scope="row"] { width: 22%; }
.diff td { overflow-wrap: anywhere; }
.diff-old { background: #fdf3f2; }
.diff-new { background: #eef8f2; }
.diff-ignored { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #c3cdd8; }
.held-group { margin-top: 18px; }
.held-head h3 { font-size: 15px; }
.held-head p { margin: 2px 0 8px; max-width: 80ch; }
.held-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.held-list li + li { border-top: 1px solid var(--line-2); }
.held-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; }
.held-item:hover { background: #f9fbfd; }
.held-item > .icon { color: var(--ink-3); }
.held-item.is-done .held-title { color: var(--ink-2); }
.held-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.held-title { font-weight: 650; color: var(--navy); }
.held-detail { font-size: 13px; color: var(--ink-2); }
.hold-reason { margin-bottom: 10px; }
.modal-body .table-wrap { margin: 12px 0; box-shadow: none; }
.cands h3, .hold-options legend { font: 650 13.5px var(--font-head); color: var(--navy); margin-bottom: 6px; padding: 0; }
.cand { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); }
.hold-options { border: 0; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.option-card { display: flex; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.option-card:hover { border-color: #a9b6c4; }
.option-card:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.option-card input { margin-top: 3px; accent-color: var(--blue); flex: none; }
.option-card > span { display: flex; flex-direction: column; gap: 1px; }
.option-title { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hold-extra label, .hold-note { display: grid; gap: 4px; font-weight: 600; margin-top: 12px; }
.hold-extra .select { width: 100%; }
.excerpt { max-width: 340px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis; color: var(--ink-3); }
.out-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.out-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.out-row:last-child { border-bottom: 0; }
.source { margin-top: 14px; }
.source-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.source .disclosure { margin-top: 12px; }
.source .table-wrap { margin-top: 8px; box-shadow: none; }
.checker-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.checker-out .notice { margin-bottom: 8px; }

/* ---------- About, handoff, components ---------- */

.page-doc .sec > p, .page-doc .sec > ul { max-width: 78ch; }
.page-doc h3 { margin: 16px 0 6px; font-size: 14.5px; }
.journeys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.journey { display: flex; gap: 14px; }
.journey.card + .journey.card { margin-top: 0; }
.journey-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.journey-body h3 { margin: 4px 0 8px; font-size: 15px; }
.journey-go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }
.toc a { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 13px; }
.toc a:hover { border-color: var(--blue); color: var(--blue); }
.doc-table th[scope="row"] { width: 26%; color: var(--ink); }
.doc-table td { max-width: none; }
.doc-wide th[scope="row"] { width: 30%; }
.page-doc .table-wrap { margin: 10px 0 14px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.swatch { display: flex; align-items: center; gap: 10px; }
.swatch > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.swatch-chip { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); flex: none; }
.demo { margin-bottom: 14px; }
.demo h3 { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font); margin: 0 0 8px; }
.demo-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.demo-body > .skeleton { flex: 1 1 100%; }
.demo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); align-items: start; }
.demo-form .field { margin: 0; }
.type-demo { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.type-h1 { font: 650 26px/1.25 var(--font-head); color: var(--navy); letter-spacing: -.02em; }
.type-h2 { font: 650 17px/1.25 var(--font-head); color: var(--navy); }
.type-h3 { font: 650 14px/1.25 var(--font-head); color: var(--navy); }
.page-doc .sec > .table-wrap + .table-wrap { margin-top: 10px; }
.page-doc .sec > .empty { margin-top: 12px; }
.handoff-card { text-align: left; padding: 28px; }
.handoff-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 14px; }
.handoff-card h1 { margin-bottom: 4px; }
.handoff-title { font-size: 16px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }
.handoff-card .kv { margin-bottom: 16px; }
.handoff-card .notice { margin-top: 16px; }
.handoff-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ==========================================================================
   City of Hope brand layer
   Everything above is structure. This block is the look: the blue rule and
   logo header, the navy search band, uppercase navy table headings, flat
   square surfaces and the navy footer.
   ========================================================================== */

main { overflow-x: clip; }

/* Header: white bar under a City of Hope blue rule. */
.top { border-top: 4px solid var(--blue); }
.top-in { height: calc(var(--top-h) - 5px); }
.brand-logo { height: 36px; }
.brand-org { font: 800 21px/1 var(--font); letter-spacing: -.01em; }
.brand-group { color: var(--blue); font-weight: 800; font-size: 10.5px; letter-spacing: .12em; }
.brand-product { font-weight: 700; font-size: 14px; color: var(--navy); }
.nav-link { color: var(--navy); font-weight: 700; }
.nav-link:hover { color: var(--blue); background: none; }
.nav-link.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-count { border-radius: 3px; background: var(--blue); color: #fff; }

/* Inventory: full-width navy band that carries the search. */
.inv-head { position: relative; z-index: 5; padding: 28px 0 18px; margin-bottom: 22px; color: #fff; }
.inv-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; z-index: -1; background: var(--navy); }
.hero-title { color: #fff; font-size: 32px; margin: 0 0 8px; }
.hero-sub { margin: 0 0 16px; max-width: 72ch; font-size: 17px; font-weight: 300; color: rgba(255, 255, 255, .88); }
.inv-head .searchbox { max-width: 980px; border: 0; border-radius: var(--r); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }
.inv-head .searchbox:focus-within { border: 0; box-shadow: 0 0 0 3px #62b5f5, 0 8px 28px rgba(0, 0, 0, .28); }
.inv-head .search-input { height: 58px; font-size: 17.5px; border-radius: var(--r); color: var(--ink); }
.inv-head .search-icon { color: var(--blue); }
.inv-head .search-meta { color: rgba(255, 255, 255, .9); margin-top: 10px; }
.inv-head .search-meta strong { color: #fff; }
.inv-head .search-meta .icon { color: #7cc3f7; }
.inv-head .search-meta :is(a, .link, .link-btn) { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }

/* Page titles and intros. */
.page-sub { font-size: 17px; font-weight: 300; color: var(--ink); }
.eyebrow, .tile-kind, .panel-kicker { color: var(--blue); font-weight: 800; letter-spacing: .1em; }
.back { font-weight: 700; color: var(--blue); }

/* Buttons and controls. */
.btn { font-weight: 700; border-color: #c4c4c0; }
.btn:hover { border-color: #a9a9a4; }
.btn-primary, .btn-primary:hover { border-color: transparent; }
.btn-lg { font-weight: 800; }
.btn-ghost { color: var(--blue); border-color: transparent; }
.btn-ghost:hover { border-color: transparent; background: var(--blue-50); }
.input, .select, .tag-editor, .fgroup-filter { border-color: #b8b8b3; }
.input:hover, .select:hover { border-color: #8e8e88; }
.badge, .cert, .chip, .toc a, .tab-count, .fgroup-n, .res-featured { border-radius: 3px; }
.chip { background: var(--blue-50); border-color: var(--blue-100); font-weight: 600; }
.cert { font-weight: 800; }
.tab, .tab:hover { font-weight: 700; }
.tab.is-active { color: var(--blue); }

/* Results table: white, flat, navy uppercase headings. */
.rcount strong { font: 900 20px/1 var(--font-display); }
.grid thead th { background: var(--surface); border-bottom: 2px solid var(--navy); color: var(--navy); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.th-btn { text-transform: inherit; letter-spacing: inherit; }
.th-btn:hover { background: var(--blue-50); color: var(--blue); }
.th-btn.is-sorted { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
tr.row:hover > td { background: var(--blue-50); }
tr.row.is-open > td { background: var(--teal-50); }
.row-link, .res-title, .held-title, .saved-name, .related-title, .team-card-name { font-weight: 800; }
.row-why-k { font-weight: 800; }
.pg.is-current { background: var(--blue); }
.filters-head h2 { color: var(--navy); font-weight: 800; letter-spacing: .08em; }
.fgroup-head { font-weight: 800; }
.fopt:hover { background: var(--blue-50); }
.seg-btn.is-on { background: var(--blue); color: #fff; }

/* Details panel and cards. */
.panel-head h2 { font-size: 22px; font-weight: 800; }
.psec > h3 { color: var(--navy); font-weight: 800; letter-spacing: .08em; }
.action { background: var(--blue-50); border-color: var(--blue-100); }
.date-icon, .empty-icon { border-radius: var(--r); }
.team-card-icon { border-radius: var(--r); background: var(--blue); color: #fff; }
.team-tile { border-top: 4px solid var(--blue); }
.team-tile:hover { box-shadow: 0 6px 18px rgba(6, 16, 55, .12); }
.tile-n { font: 900 28px/1.1 var(--font-display); }
.services li { border-left-color: var(--blue); }
.journey-n { border-radius: var(--r); background: var(--blue); }
.avatar { border-radius: var(--r); }
.handoff-icon { border-radius: var(--r); }
.sugg-group { color: var(--navy); font-weight: 800; letter-spacing: .08em; }
.toast { border-radius: var(--r); }

/* Footer: navy band. */
.foot { background: var(--navy); border-top: 0; color: rgba(255, 255, 255, .74); }
.foot a { color: #fff; }
.foot a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Executive layer
   The Overview page, navy title bands, elevation and motion. Built on the
   brand tokens above. No images and no web requests: textures are gradients.
   All motion is switched off under prefers-reduced-motion (end of file).
   ========================================================================== */

:root {
  --elev-1: 0 1px 2px rgba(6, 16, 55, .06), 0 2px 10px rgba(6, 16, 55, .05);
  --elev-2: 0 2px 4px rgba(6, 16, 55, .08), 0 14px 30px rgba(6, 16, 55, .15);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sky: #8fcbf8;
  /* Navy with a blue glow and a faint diagonal weave. */
  --navy-band:
    radial-gradient(1100px 440px at 88% -20%, rgba(0, 114, 206, .58), transparent 62%),
    radial-gradient(720px 380px at -6% 125%, rgba(1, 93, 167, .45), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px),
    var(--navy);
  /* The same, for bands drawn by a pseudo-element that is three viewports wide. */
  --navy-band-wide:
    radial-gradient(1100px 440px at calc(100vw + 84vw) -30%, rgba(0, 114, 206, .58), transparent 62%),
    radial-gradient(720px 380px at calc(100vw - 4vw) 140%, rgba(1, 93, 167, .45), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px),
    var(--navy);
}

/* Header floats once the page scrolls. */
.top { transition: box-shadow 200ms var(--ease); }
.top.is-scrolled { box-shadow: 0 6px 22px rgba(6, 16, 55, .16); }
.nav-link { transition: color 140ms, border-color 140ms; }

/* Navy bands: inventory search, and the title of every page. */
.inv-head::before { background: var(--navy-band-wide); }
.page > .page-head { position: relative; z-index: 1; margin: -28px 0 30px; padding: 36px 0 32px; color: #fff; }
.page > .page-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; z-index: -1; background: var(--navy-band-wide); }
.page > .page-head h1 { color: #fff; font-size: 34px; }
.page > .page-head .page-sub { color: rgba(255, 255, 255, .9); }
.page > .page-head .eyebrow { color: var(--sky); margin-bottom: 8px; }
.page > .page-head .back { color: #fff; opacity: .86; }
.page > .page-head .back:hover { opacity: 1; color: #fff; text-decoration: underline; }
.page > .page-head .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.page > .page-head .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Overview ---------- */

.ov-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.ov-hero { background: var(--navy-band); color: #fff; padding: 64px 0 104px; }
.ov-kicker { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.ov-title { color: #fff; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; max-width: 17ch; margin: 0 0 18px; }
.ov-lede { margin: 0 0 26px; max-width: 62ch; font-size: 19px; font-weight: 300; color: rgba(255, 255, 255, .9); }
.ov-lede strong { font-weight: 800; color: #fff; }
.ov-search { max-width: 860px; padding-right: 7px; border: 0; border-radius: var(--r); box-shadow: 0 10px 34px rgba(0, 0, 0, .32); }
.ov-search:focus-within { border: 0; box-shadow: 0 0 0 3px #62b5f5, 0 10px 34px rgba(0, 0, 0, .32); }
.ov-search .search-input { height: 62px; font-size: 18px; color: var(--ink); border-radius: var(--r); }
.ov-search .search-icon { color: var(--blue); }
.ov-go { flex: none; height: 48px; padding: 0 24px; font-size: 15px; font-weight: 800; }
.ov-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 32px; margin-top: 16px; }
.ov-topics-label { margin-right: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.ov-topic { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .36); border-radius: 3px; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background-color 150ms, border-color 150ms; }
.ov-topic:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .75); }
.ov-topic:focus-visible, .ov-hero .btn:focus-visible { outline-color: #fff; }
.ov-meta { display: flex; align-items: center; gap: 7px; margin: 26px 0 0; font-size: 13px; color: rgba(255, 255, 255, .74); }

/* Headline numbers, lifted over the bottom edge of the hero. */
.ov-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); min-height: 116px; margin-top: -58px; background: var(--surface); border-radius: var(--r); box-shadow: var(--elev-2); }
.stat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; border-left: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.stat:first-child { border-left: 0; }
.stat-n { font: 900 clamp(30px, 3.1vw, 44px)/1 var(--font-display); color: var(--navy); transition: color 160ms; }
.stat-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
a.stat::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
a.stat:hover::after, a.stat:focus-visible::after { transform: scaleX(1); }
a.stat:hover .stat-n { color: var(--blue); }

.ov-body { display: grid; gap: 68px; padding: 60px 0 76px; }
.ov-body > .skeleton, .ov-body > .empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ov-two { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.ov-one { grid-template-columns: 1fr; }
.ov-sec { min-width: 0; }
.ov-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.ov-sec-head h2 { font: 900 24px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.ov-sec-sub { margin: 6px 0 0; font-size: 15.5px; font-weight: 300; color: var(--ink); }
.ov-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--blue); text-decoration: none; white-space: nowrap; }
.ov-more:hover { text-decoration: underline; }
.ov-more .icon { transition: transform 180ms var(--ease); }
.ov-more:hover .icon { transform: translateX(3px); }

/* Sections draw in as they are scrolled to. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Bars */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(60px, 1fr) auto; align-items: center; gap: 14px; margin: 0 -10px; padding: 9px 10px; border-radius: var(--r); color: inherit; text-decoration: none; transition: background-color 150ms; }
.bar-row:hover { background: var(--blue-50); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--navy); transition: color 150ms; }
.bar-row:hover .bar-label { color: var(--blue); }
.bar-track { height: 12px; overflow: hidden; background: var(--line-2); border-radius: 2px; }
.bar-fill { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue)); border-radius: 2px; transition: width 850ms var(--ease) var(--d, 0ms); }
.is-in .bar-fill { width: var(--w); }
.bar-val { min-width: 96px; text-align: right; font-weight: 800; color: var(--navy); }
.bar-pct { display: inline-block; min-width: 40px; margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }

/* Most used */
.used-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.used-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--r); box-shadow: var(--elev-1); color: inherit; text-decoration: none; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.used-card:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
.used-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.used-title { font-size: 16.5px; font-weight: 800; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.used-title .cert-dot { margin-left: 6px; vertical-align: -2px; }
.used-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 13.5px; color: var(--ink-2); }
.used-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.used-views { white-space: nowrap; }
.used-views strong { margin-right: 3px; font: 900 19px/1 var(--font-display); color: var(--navy); }
.used-owner { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* Catalog health */
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.health { display: flex; align-items: flex-start; gap: 18px; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--elev-1); }
.health-text { min-width: 0; }
.health h3 { font-size: 16px; }
.health-count { margin: 2px 0 8px; font-size: 13px; color: var(--ink-3); }
.health-count strong { font-weight: 800; color: var(--navy); }
.health-why { margin: 0 0 10px; color: var(--ink); }
.health .ov-more { font-size: 13px; white-space: normal; }
.ring { position: relative; flex: none; display: inline-grid; place-items: center; width: 76px; height: 76px; }
.ring svg { position: absolute; inset: 0; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--blue); stroke-width: 8; stroke-dashoffset: var(--c); transition: stroke-dashoffset 1000ms var(--ease) 120ms; }
.is-in .ring-fg { stroke-dashoffset: var(--off); }
.ring-amber .ring-fg { stroke: #c77700; }
.ring-pct { position: relative; font: 900 17px/1 var(--font-display); color: var(--navy); }

/* Teams and the closing band */
.ov-teams { margin-top: 0; }
.ov-teams .tile-head h3 { font-size: 16.5px; }
.ov-teams .tile-foot > .icon { color: var(--blue); transition: transform 180ms var(--ease); }
.ov-teams .team-tile:hover .tile-foot > .icon { transform: translateX(3px); }
.ov-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; background: var(--navy-band); border-radius: var(--r); color: #fff; }
.ov-cta h2 { color: #fff; font: 900 24px/1.1 var(--font-display); text-transform: uppercase; }
.ov-cta p { max-width: 60ch; margin: 8px 0 0; font-size: 16px; font-weight: 300; color: rgba(255, 255, 255, .9); }
.ov-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-cta .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.ov-cta .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.ov-cta .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.ov-cta .btn:focus-visible { outline-color: #fff; }

/* ---------- Depth: profiles and cards ---------- */

.team-tile { box-shadow: var(--elev-1); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms; }
.team-tile:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
a.tile { transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms, background-color 160ms; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--elev-1); }
.profile-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: -58px 0 30px; background: var(--surface); border-radius: var(--r); box-shadow: var(--elev-2); }
.profile-stats:empty { display: none; }
.page:has(.profile-stats:not(:empty)) > .page-head { padding-bottom: 86px; }
.pstat { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-left: 1px solid var(--line-2); }
.pstat:first-child { border-left: 0; }
.pstat strong { font: 900 30px/1 var(--font-display); color: var(--navy); }
.pstat span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.profile-main > .sec { margin-top: 18px; padding: 26px 28px; box-shadow: var(--elev-1); }
.profile-main > .sec .sec-head { margin-bottom: 14px; }
.profile-main > .sec .sec-head h2 { font-size: 21px; }
.profile-side .card { padding: 22px 24px; box-shadow: var(--elev-1); }
.profile-side .card + .card { margin-top: 18px; }
.page-doc .sec > .sec-head h2 { font-size: 21px; }

/* ---------- Analytics Team Profiles: people, responsibilities, distribution lists ---------- */

.dir-tabs { margin: 0 0 20px; }
.dir-tabs .tab { padding: 11px 16px; font-size: 15px; font-weight: 800; }
.tab-count-plain { background: var(--line-2); color: var(--ink-2); }
.tab.is-active .tab-count-plain { background: var(--blue-50); color: var(--blue-700); }
.person-link { color: var(--navy); font-weight: 800; text-decoration: none; }
.person-link:hover { color: var(--blue-600); text-decoration: underline; }
.people-list { margin-top: 12px; }
.people-more { margin: 16px 0 0; text-align: center; }
.people-table td { vertical-align: middle; }
.people-table .pt-name { min-width: 230px; }
.people-table .person { align-items: center; }
.people-table .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-contact { display: grid; gap: 1px; overflow-wrap: anywhere; }
.people-table tr.is-inactive { color: var(--ink-3); }
.people-table tr.is-inactive .avatar { background: var(--ink-3); }
.people-table tbody tr { transition: background-color 120ms; }
.people-table tbody tr:hover { background: var(--blue-50); }
.dl-inline { overflow-wrap: anywhere; }
.resp-list { list-style: none; margin: 0; padding: 0; }
.resp-list li { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.resp-list li:first-child { padding-top: 0; }
.resp-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.resp-tool { font-weight: 800; color: var(--navy); }
.resp-role { color: var(--ink-2); }
.resp-contact { font-size: 13px; color: var(--ink-3); }
.dl-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.dl-list li { display: grid; gap: 1px; min-width: 0; }
.dl-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--navy); }
.dl-name .icon { flex: none; color: var(--blue); }
.dl-addr { font-size: 13px; overflow-wrap: anywhere; }
.dl-purpose { font-size: 13px; color: var(--ink-2); }
.dl-row { grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.2fr) minmax(150px, 1.6fr) 30px; }

/* ---------- Upload: the Analytics Community CSV ---------- */

.up-steps { margin-bottom: 22px; }
.up-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; background: var(--surface); border: 2px dashed #b6c4d4; border-radius: var(--r-lg); text-align: center; cursor: pointer; transition: border-color 150ms, background-color 150ms, box-shadow 150ms; }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: var(--blue-50); }
.dropzone.is-over { box-shadow: 0 0 0 4px var(--blue-100); }
.dropzone:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.dropzone strong { font: 800 19px/1.25 var(--font-display); color: var(--navy); }
.dropzone .btn { margin-top: 10px; pointer-events: none; }
.dropzone-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 4px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.dropzone:hover .dropzone-icon, .dropzone.is-over .dropzone-icon { background: var(--surface); }
.up-alt { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.up-guide { margin-top: 10px; }
.up-guide .table-wrap { margin: 10px 0; box-shadow: none; }
.up-guide code { font: 500 12.5px var(--mono); color: var(--navy); }
.up-rules-card { padding: 24px 26px; box-shadow: var(--elev-1); }
.up-rules-card h2 { font-size: 19px; margin-bottom: 4px; }
.up-rules { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.up-rules li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.up-rules li > span:last-child { display: grid; gap: 1px; }
.up-rules strong { color: var(--navy); }
.up-rules li > span:last-child > span { color: var(--ink-2); font-size: 13.5px; }
.up-rule-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); background: var(--blue-50); color: var(--blue-600); }
.up-rule-icon.is-warn { background: var(--warn-50); color: var(--warn); }
.up-rule-icon.is-ok { background: var(--ok-50); color: var(--ok); }
.up-rule-icon.is-bad { background: var(--bad-50); color: var(--bad); }
.up-applied { margin-bottom: 22px; }
.up-applied-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.up-applied .table-wrap { margin-top: 12px; box-shadow: none; }
.up-busy { display: flex; align-items: center; gap: 14px; padding: 28px; font-weight: 700; color: var(--navy); }
.spin { flex: none; width: 22px; height: 22px; border: 3px solid var(--blue-100); border-top-color: var(--blue); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.up-file { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--elev-1); }
.up-file-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--blue); color: #fff; }
.up-file-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.up-file-main > strong { font-size: 16.5px; color: var(--navy); overflow-wrap: anywhere; }
.up-hash { font-size: 13px; color: var(--ink-2); }
.up-hash code { font: 500 12.5px var(--mono); margin-right: 8px; }
.up-found { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; }
.up-shift { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; background: var(--navy); color: #fff; border-radius: var(--r); box-shadow: var(--elev-1); }
.up-shift-cell { display: grid; gap: 6px; padding: 20px 24px; }
.up-shift-cell + .up-shift-cell { border-left: 1px solid rgba(255, 255, 255, .16); }
.up-shift-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky, #9fd0f5); }
.up-shift-n { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 500 22px/1.1 var(--font-display); color: rgba(255, 255, 255, .78); }
.up-shift-n strong { font-weight: 900; font-size: 32px; color: #fff; }
.up-shift-n .icon { color: rgba(255, 255, 255, .6); }
.up-delta { justify-self: start; padding: 1px 8px; border-radius: 3px; background: rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 700; }
.up-delta.is-up { background: #d8f0e2; color: #0f5c37; }
.up-delta.is-down { background: var(--warn-50); color: var(--warn); }
.up-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.up-tiles .tile { text-align: left; font: inherit; }
.up-tiles button.tile { cursor: pointer; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms; }
.up-tiles button.tile:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--elev-1); }
.up-tiles button.tile:disabled { cursor: default; opacity: .62; }
.up-tiles .tile-n { font: 900 28px/1.1 var(--font-display); }
.up-tiles .tile-sub .icon { vertical-align: -1px; }
.up-quiet { margin: 12px 0 18px; font-size: 13.5px; }
.up-list { margin-top: 18px; }
.up-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.up-item-stack { flex-direction: column; align-items: stretch; gap: 8px; }
.up-item-side { flex: none; display: grid; justify-items: end; gap: 2px; max-width: 46%; font-size: 13px; color: var(--ink-2); text-align: right; }
.up-item-side .icon { vertical-align: -2px; color: var(--ink-3); }
.up-more { margin-top: 8px; }
.chg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.chg-list li { display: grid; grid-template-columns: 128px minmax(0, 1fr) 14px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.chg-list .icon { align-self: center; color: var(--ink-3); }
.chg-field { font-weight: 700; color: var(--ink-2); }
.chg-old { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #c3cdd8; overflow-wrap: anywhere; }
.chg-new { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.notice .chg-list { margin-top: 8px; }
.panel .chg-list li { grid-template-columns: 1fr; gap: 0; padding: 6px 0; border-top: 1px solid rgba(6, 16, 55, .1); }
.panel .chg-list .icon { display: none; }
.up-policy { margin: 22px 0 0; max-width: 760px; }
.up-policy legend { font: 800 15.5px var(--font); color: var(--navy); margin-bottom: 8px; padding: 0; }
.up-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.up-done { display: flex; align-items: center; gap: 18px; padding: 24px 26px; margin-bottom: 18px; background: var(--ok-50); border: 1px solid #b9dfc8; border-left: 5px solid var(--ok); border-radius: var(--r); }
.up-done-icon { flex: none; color: var(--ok); }
.up-done h2 { font: 900 24px/1.15 var(--font-display); color: var(--navy); margin-bottom: 4px; }
.up-done p { margin: 0; max-width: 78ch; }
.up-record { margin-top: 18px; padding: 22px 24px; }
.up-record h2 { font-size: 17px; margin-bottom: 12px; }
.up-record code { font: 500 12.5px var(--mono); overflow-wrap: anywhere; }
.up-record p { margin: 14px 0 0; }

/* ---------- Motion and pressed states ---------- */

.btn { transition: background-color 140ms, border-color 140ms, color 140ms, box-shadow 140ms, transform 80ms; }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(6, 16, 55, .2); }
.icon-btn { transition: background-color 140ms, color 140ms, transform 80ms; }
.icon-btn:active:not(:disabled) { transform: scale(.92); }
tr.row > td { transition: background-color 120ms; }
.fopt, .sugg-opt, .related-item, .team-card, .res-item, .held-item, .tag, .chip-x, .pg, .tab, .link-btn { transition: background-color 140ms, border-color 140ms, color 140ms; }
.related-item:hover, .team-card:hover { box-shadow: var(--elev-1); }

@keyframes page-in { from { opacity: 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }
main > * { animation: page-in 200ms ease-out; }
.panel { animation: panel-in 230ms var(--ease); }
.panel.is-swap { animation: none; }
.popover, .sugg { animation: pop-in 150ms var(--ease); }
.toast, dialog.modal[open] { animation: rise-in 190ms var(--ease); }
dialog.modal::backdrop { animation: page-in 190ms ease-out; }

/* ---------- Ask the catalog (assistant) ---------- */

.ask-launch { position: fixed; right: 22px; bottom: 22px; z-index: 46; display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 20px 0 16px; border: 0; border-radius: var(--r); background: var(--blue); color: #fff; font-size: 15px; font-weight: 800; box-shadow: var(--elev-2); transition: transform 180ms var(--ease), background-color 140ms; }
.ask-launch:hover { background: var(--blue-600); transform: translateY(-2px); }
.ask-launch:active { transform: translateY(1px); }
.ask-launch[aria-expanded="true"] { display: none; }
.ask { position: fixed; right: 22px; bottom: 22px; z-index: 46; display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - var(--top-h) - 40px)); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); animation: rise-in 200ms var(--ease); }
.ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 12px 14px 18px; background: var(--navy-band); color: #fff; }
.ask-head h2 { color: #fff; font: 900 17px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.ask-head p { margin: 4px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.ask-close { color: #fff; }
.ask-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ask-close:focus-visible { outline-color: #fff; }
.ask-log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px 16px 10px; background: var(--bg); overscroll-behavior: contain; }
.ask-msg { max-width: 94%; padding: 10px 13px; border-radius: var(--r); font-size: 14px; animation: rise-in 180ms var(--ease); }
.ask-msg p { margin: 0 0 8px; }
.ask-msg p:last-child { margin-bottom: 0; }
.ask-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--elev-1); }
.ask-you { align-self: flex-end; background: var(--blue); color: #fff; font-weight: 600; }
.ask-items, .ask-teams { list-style: none; display: grid; gap: 6px; margin: 8px 0; padding: 0; }
.ask-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r); color: inherit; text-decoration: none; transition: background-color 140ms, border-color 140ms; }
.ask-item:hover { background: var(--blue-50); border-color: var(--blue); }
.ask-item-title { font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.ask-item-title .cert-dot { margin-left: 5px; vertical-align: -2px; }
.ask-item-meta { font-size: 12.5px; color: var(--ink-3); }
.ask-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--blue); text-decoration: none; }
.ask-all:hover { text-decoration: underline; }
.ask-msg p.ask-aside { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.ask-chips { display: grid; gap: 6px; margin-top: 10px; }
.ask-chip { padding: 8px 11px; border: 1px solid var(--blue-100); border-radius: var(--r); background: var(--blue-50); color: var(--blue-700); font-size: 13.5px; font-weight: 700; text-align: left; transition: background-color 140ms, border-color 140ms; }
.ask-chip:hover { background: var(--blue-100); border-color: var(--blue); }
.ask-form { display: flex; gap: 8px; padding: 12px; background: var(--surface); border-top: 1px solid var(--line); }
.ask-input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid #b8b8b3; border-radius: var(--r); font-size: 15px; }
.ask-input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.ask-send { flex: none; width: 46px; height: 42px; padding: 0; }
.ask-typing { display: inline-flex; gap: 4px; padding: 5px 2px; }
.ask-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: ask-dot 1s ease-in-out infinite; }
.ask-typing i:nth-child(2) { animation-delay: .15s; }
.ask-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ov-ask { margin: 14px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .84); }
.ov-ask-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.ov-ask-btn:hover { text-decoration-color: #fff; }
.ov-ask-btn:focus-visible { outline-color: #fff; }
/* With the details panel open: sit beside it on wide screens, step aside on narrower ones. */
@media (min-width: 1100px) { body.panel-open .ask-launch, body.panel-open .ask { right: calc(var(--panel-w) + 22px); } }
@media (max-width: 1099px) { body.panel-open .ask-launch, body.panel-open .ask { display: none; } }

/* ---------- Footer ---------- */

.foot { border-top: 4px solid var(--blue); }
.foot-in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 32px; padding: 26px 24px; }
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-brand strong { font-size: 14.5px; font-weight: 800; color: #fff; }
.foot-meta { grid-column: 1; }
.foot-links { grid-column: 2; grid-row: 1 / span 2; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot a { font-weight: 600; }

/* Components page: type samples follow the brand headings. */
.type-h1 { font: 900 30px/1.08 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.type-h2 { font: 800 18px/1.25 var(--font); }
.type-h3 { font: 800 14.5px/1.25 var(--font); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Wide screens: the results reflow beside the open panel instead of sitting under it. */
@media (min-width: 1360px) {
  body.panel-open main { padding-right: var(--panel-w); }
}

@media (max-width: 1100px) {
  .profile-cols { grid-template-columns: 1fr; }
  .account-text { display: none; }
}

@media (max-width: 1023px) {
  .top-in { gap: 16px; }
  .brand-text { display: none; }
  .brand-rule { display: none; }
}

/* Filters become a drawer, so the table keeps its width. */
@media (max-width: 1179px) {
  .inv-body { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(340px, 92vw); max-height: none; border-radius: 0; border: 0; border-right: 1px solid var(--line); padding: 14px 16px 0; box-shadow: var(--shadow-lg); }
  .inv.filters-open .filters { display: block; }
  .inv.filters-open .filters-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(12, 32, 58, .45); }
  .filters-close { display: inline-grid; }
  .filters-toggle { display: inline-flex; }
  .filters-foot { display: block; position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 8px; }
  .filters-foot .btn { width: 100%; }
}

/* Phones: stacked header, rows as cards, full-screen panel. */
@media (max-width: 719px) {
  :root { --top-h: 96px; }
  .top-in { flex-wrap: wrap; height: auto; padding: 8px 16px 0; gap: 0 12px; }
  .brand { height: 44px; flex: 1; }
  .nav { order: 3; flex: 1 0 100%; height: 44px; overflow-x: auto; margin: 0 -16px; padding: 0 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 0 10px; }
  .page { padding: 20px 16px 48px; }
  .inv { padding: 0 16px 40px; }
  .inv-head { padding: 14px 0 8px; }
  .search-input { height: 48px; font-size: 16px; }
  .search-kbd { display: none; }
  h1 { font-size: 22px; }
  .foot-in { padding: 12px 16px; }
  .field-row, .conflict-opts { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr 30px; }
  .svc-row input:nth-child(2) { grid-column: 1; grid-row: 2; }
  .kv, .kv-cols { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; font-size: 12.5px; }
  .kv dt:first-child { margin-top: 0; }
  .sort-label { display: none; }
  .rbar-right { width: 100%; }

  table.grid:not(.grid-plain) thead { display: none; }
  table.grid:not(.grid-plain), table.grid:not(.grid-plain) tbody { display: block; }
  table.grid:not(.grid-plain) tr.row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; border-bottom: 1px solid var(--line-2); }
  table.grid:not(.grid-plain) tr.row:last-child { border-bottom: 0; }
  table.grid:not(.grid-plain) td { display: none; border: 0; }
  table.grid:not(.grid-plain) td.c-title { display: block; grid-column: 1; grid-row: 1; width: auto; min-width: 0; padding: 12px 4px 12px 14px; }
  table.grid:not(.grid-plain) td.c-save { display: block; grid-column: 2; grid-row: 1; width: auto; padding: 10px 6px 0 0 !important; }
  .row-meta { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); white-space: normal; }
  .row-sum { -webkit-line-clamp: 2; line-clamp: 2; }
  .grid[data-density="compact"] .row-meta { margin-top: 2px; }
  .pager { justify-content: center; }
  .pg-step span { display: none; }

  .panel { top: 0; z-index: 50; width: 100vw; border-left: 0; }
  .panel-scroll { padding: 16px 16px 40px; }
  body.panel-open { overflow: hidden; }
  .saved-item, .out-row { flex-direction: column; align-items: stretch; }
  .saved-actions { justify-content: flex-start; }
  .journey { flex-direction: column; gap: 8px; }
  .form-bar { position: static; }
  .held-item { flex-wrap: wrap; }
  .toasts { left: 12px; right: 12px; transform: none; width: auto; align-items: stretch; }
}

/* Brand layer on phones: taller header for the blue rule, a shorter search band. */
@media (max-width: 719px) {
  :root { --top-h: 100px; }
  .inv-head { padding: 22px 0 16px; margin-bottom: 14px; }
  .hero-title { font-size: 23px; }
  .hero-sub { font-size: 15px; margin-bottom: 14px; }
  .inv-head .search-input { height: 50px; font-size: 16px; }
}

/* Executive layer on smaller screens. */
@media (max-width: 1100px) {
  .up-cols { grid-template-columns: 1fr; }
  .used-grid, .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-two { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 719px) {
  .ov-wrap { padding: 0 16px; }
  .ov-hero { padding: 36px 0 76px; }
  .ov-lede { font-size: 16.5px; margin-bottom: 20px; }
  .ov-search .search-input { height: 54px; font-size: 16px; }
  .ov-go { height: 42px; padding: 0 14px; }
  .ov-stats { grid-template-columns: 1fr 1fr; margin-top: -46px; }
  .stat { padding: 18px 16px; border-left: 0; border-top: 1px solid var(--line-2); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-2); }
  a.stat::after { left: 16px; right: 16px; }
  .ov-body { gap: 48px; padding: 40px 0 48px; }
  .ov-two { gap: 48px; }
  .ov-sec-head h2, .ov-cta h2 { font-size: 20px; }
  .used-grid, .health-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-val { min-width: 0; }
  .ov-cta { padding: 26px 22px; }
  .page > .page-head { margin: -20px 0 22px; padding: 26px 0 22px; }
  .page > .page-head h1 { font-size: 24px; }
  .profile-stats { grid-template-columns: 1fr 1fr; margin: -44px 0 22px; }
  .pstat { padding: 16px; border-left: 0; }
  .pstat strong { font-size: 24px; }
  .page:has(.profile-stats:not(:empty)) > .page-head { padding-bottom: 64px; }
  .profile-main > .sec { padding: 20px 18px; }
  .resp-list li { grid-template-columns: 1fr; gap: 2px; }
  .up-shift { grid-template-columns: 1fr; }
  .up-shift-cell + .up-shift-cell { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .up-shift-n strong { font-size: 26px; }
  .up-file { flex-wrap: wrap; }
  .up-item { flex-direction: column; align-items: stretch; gap: 6px; }
  .up-item-side { max-width: none; justify-items: start; text-align: left; }
  .chg-list li { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
  .chg-list .icon { display: none; }
  .up-done { align-items: flex-start; padding: 18px; }
  .up-actions .btn { flex: 1 1 100%; justify-content: center; }
  .dropzone { padding: 28px 16px; }
  .dl-row { grid-template-columns: 1fr 30px; }
  .dl-row input:nth-child(3) { grid-column: 1; grid-row: 3; }
  .dir-controls .select { max-width: 100%; }
  /* People rows become cards; each cell carries its own label. */
  .people-list .table-wrap, #members .table-wrap { position: relative; overflow: hidden; }
  .people-table thead { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .people-table, .people-table tbody { display: block; }
  .people-table tbody tr { display: block; padding: 14px; border-bottom: 1px solid var(--line-2); }
  .people-table tbody tr:last-child { border-bottom: 0; }
  .people-table td { display: block; padding: 0; border: 0; }
  .people-table .pt-name { min-width: 0; margin-bottom: 8px; }
  .people-table td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; margin-top: 5px; font-size: 13px; overflow-wrap: anywhere; }
  .people-table td[data-label]::before { content: attr(data-label); color: var(--ink-3); }
  .people-table td.pt-empty { display: none; }
  .foot-in { grid-template-columns: 1fr; padding: 22px 16px 76px; }
  .foot-links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .ask-launch { right: 14px; bottom: 14px; height: 46px; }
  .ask { inset: 0; z-index: 48; width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  body.ask-open { overflow: hidden; }
  .ov-ask { font-size: 14px; }
}

/* Motion is decoration. Anyone who asks for less gets none. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .used-card:hover, .team-tile:hover, a.tile:hover { transform: none; }
}

@media print {
  .top, .foot, .filters, .panel-host, .toasts { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
