/* Incumbently app · built on IBM Carbon (g10 theme, g100 shell). No inline styles anywhere:
   the Content-Security-Policy forbids them, and every visual decision lives here. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("/static/fonts/IBMPlexSans-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/static/fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
  --bg: #f4f4f4;
  --layer: #ffffff;
  --layer-2: #f4f4f4;
  --hover: #e8e8e8;
  --selected: #e0e0e0;
  --accent: #e0e0e0;
  --border: #e0e0e0;
  --border-strong: #8d8d8d;
  --text: #161616;
  --text-2: #525252;
  --helper: #6f6f6f;
  --disabled: #8d8d8d;
  --link: #0f62fe;
  --link-hover: #0043ce;
  --blue: #0f62fe;
  --blue-hover: #0050e6;
  --blue-active: #002d9c;
  --adopt: #0f62fe;
  --drop: #d02670;
  --ok: #24a148;
  --warn: #f1c21b;
  --err: #da1e28;
  --shell: #161616;
  --shell-2: #262626;
  --shell-border: #393939;
  --shell-text: #f4f4f4;
  --shell-text-2: #c6c6c6;
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, "Courier New", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 20px; letter-spacing: 0.16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
svg { flex: none; }
img { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.muted { color: var(--text-2); }
.helper { font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--helper); }
.label { font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.strong { color: var(--text); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-adopt { color: var(--link-hover); }
.is-drop { color: #9f1853; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- UI shell ---------- */
.hdr { position: sticky; top: 0; z-index: 100; height: 48px; display: flex; align-items: center; background: var(--shell); color: var(--shell-text); border-bottom: 1px solid var(--shell-border); }
.hdr-menu { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--shell-text); cursor: pointer; }
.hdr-menu:hover { background: #353535; }
.hdr-brand { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; color: var(--shell-text); font-weight: 600; white-space: nowrap; }
.hdr-brand:hover { color: var(--shell-text); text-decoration: none; background: #262626; }
.hdr-ws { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--shell-border); color: var(--shell-text-2); font-weight: 400; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hdr-search { flex: 1 1 auto; max-width: 560px; margin: 0 16px; display: flex; align-items: center; height: 32px; padding: 0 12px; gap: 12px; background: var(--shell-2); border-bottom: 1px solid #6f6f6f; }
.hdr-search:focus-within { outline: 2px solid #ffffff; outline-offset: -2px; }
.hdr-search input { flex: 1 1 auto; min-width: 0; height: 30px; border: 0; background: transparent; color: var(--shell-text); outline: none; }
.hdr-search input::placeholder { color: #a8a8a8; }
.hdr-search kbd { font-family: var(--mono); font-size: 12px; line-height: 18px; color: #a8a8a8; border: 1px solid #525252; padding: 0 6px; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; height: 48px; }
.hdr-btn { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--shell-text); border: 0; background: transparent; cursor: pointer; }
.hdr-btn:hover { background: #353535; color: var(--shell-text); text-decoration: none; }
.hdr-plan { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; margin-right: 8px; border-radius: 12px; border: 1px solid #6f6f6f; color: var(--shell-text-2); font-size: 12px; letter-spacing: 0.32px; white-space: nowrap; }
a.hdr-plan:hover { color: var(--shell-text); border-color: var(--shell-text); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #393939; color: var(--shell-text); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; }

.frame { display: flex; align-items: stretch; min-height: calc(100vh - 48px); }
.sidenav { width: 256px; flex: none; position: sticky; top: 48px; height: calc(100vh - 48px); overflow-y: auto; background: var(--layer); border-right: 1px solid var(--border); padding: 16px 0 16px; display: flex; flex-direction: column; }
.nav-link { position: relative; display: flex; align-items: center; gap: 16px; min-height: 32px; padding: 6px 16px; color: var(--text-2); font-weight: 600; line-height: 20px; }
.nav-link:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-link.is-active { background: var(--selected); color: var(--text); }
.nav-link.is-active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.nav-link .grow { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sub { font-weight: 400; padding-left: 16px; gap: 12px; }
.nav-label { padding: 16px 16px 6px; color: var(--helper); font-size: 12px; line-height: 16px; letter-spacing: 0.32px; }
.nav-sep { height: 1px; background: var(--border); margin: 12px 16px; }
.nav-count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--helper); }
.nav-add { color: var(--link); font-weight: 400; }
.nav-plan { margin: auto 16px 0; padding-top: 24px; }
.nav-plan-card { border: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.nav-plan-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.main { flex: 1 1 auto; min-width: 0; padding: 32px 32px 96px; }
.main--narrow { max-width: 1120px; }

@media (max-width: 1055px) {
  .hdr-menu { display: flex; }
  .hdr-brand { padding-left: 8px; }
  .sidenav { position: fixed; left: 0; top: 48px; bottom: 0; height: auto; z-index: 90; transform: translateX(-100%); transition: transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
  .nav-toggle:checked ~ .frame .sidenav { transform: none; }
  .nav-toggle:focus-visible ~ .hdr .hdr-menu { outline: 2px solid #fff; outline-offset: -2px; }
}
@media (max-width: 671px) {
  .main { padding: 24px 16px 80px; }
  .hdr-ws, .hdr-search kbd, .hdr-plan, .hdr-help, .brand-name { display: none; }
  .hdr-brand { padding: 0 8px; }
  .hdr-search { margin: 0 4px; flex: 1 1 0; min-width: 0; }
  .page-title { font-size: 28px; line-height: 36px; }
  .tile-value { font-size: 36px; line-height: 44px; }
}

/* ---------- Page header ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb .sep { color: var(--text-2); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 32px; }
.page-head .left { min-width: 0; display: flex; align-items: center; gap: 16px; }
.page-head .actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.page-title { font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: 0; }
.page-sub { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--text-2); }
.page-lead { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--text-2); max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--live { background: var(--ok); box-shadow: 0 0 0 0 rgba(36, 161, 72, 0.5); animation: pulse 2.4s ease-out infinite; }
.dot--report { background: var(--border-strong); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(36, 161, 72, 0.45); } 70% { box-shadow: 0 0 0 6px rgba(36, 161, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(36, 161, 72, 0); } }
@media (prefers-reduced-motion: reduce) { .dot--live { animation: none; } }

/* ---------- Layout ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.col-main { flex: 2 1 640px; min-width: 0; }
.col-side { flex: 1 1 320px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.row-8 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-16 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.scroll-x { overflow-x: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 0 16px; min-width: 128px; border: 1px solid transparent; border-radius: 0; background: var(--blue); color: #ffffff; font-size: 14px; line-height: 18px; text-align: left; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 70ms cubic-bezier(0, 0, 0.38, 0.9); }
.btn:hover { background: var(--blue-hover); color: #ffffff; text-decoration: none; }
.btn:active { background: var(--blue-active); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--blue), inset 0 0 0 2px #ffffff; border-color: var(--blue); }
.btn svg { fill: currentColor; }
.btn--md { min-height: 40px; }
.btn--sm { min-height: 32px; padding: 0 12px; gap: 16px; min-width: 0; }
.btn--full { width: 100%; }
.btn--icon-only { min-width: 0; width: 40px; padding: 0; justify-content: center; }
.btn--secondary { background: #393939; }
.btn--secondary:hover { background: #474747; }
.btn--tertiary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--tertiary:hover { background: var(--blue-hover); color: #ffffff; }
.btn--ghost { background: transparent; color: var(--link); min-width: 0; gap: 8px; justify-content: flex-start; }
.btn--ghost:hover { background: var(--hover); color: var(--link-hover); }
.btn--danger { background: var(--err); }
.btn--danger:hover { background: #b81922; }
.btn--danger-ghost { background: transparent; color: var(--err); min-width: 0; gap: 8px; }
.btn--danger-ghost:hover { background: var(--err); color: #ffffff; }
.btn--google { background: #ffffff; color: var(--text); border-color: var(--border-strong); justify-content: flex-start; gap: 12px; }
.btn--google:hover { background: var(--hover); color: var(--text); }
.btn--on-dark.btn--ghost { color: #78a9ff; }
.btn--on-dark.btn--ghost:hover { background: #353535; color: #a6c8ff; }
.btn[disabled], .btn.is-disabled { background: #c6c6c6; color: var(--disabled); border-color: transparent; cursor: not-allowed; }
.btn--tertiary[disabled], .btn--ghost[disabled] { background: transparent; color: #c6c6c6; border-color: #c6c6c6; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; text-align: left; line-height: 20px; }
.auth .between form { display: flex; }
.linkbtn:hover { color: var(--link-hover); text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.input, .select { width: 100%; height: 40px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; background: var(--layer); color: var(--text); outline: 2px solid transparent; outline-offset: -2px; transition: outline-color 70ms; }
.input::placeholder { color: var(--helper); }
.input:focus, .select:focus { outline-color: var(--blue); }
.input--lg, .select--lg { height: 48px; }
.on-layer .input, .on-layer .select, .input.on-layer { background: var(--layer-2); }
.input.is-invalid { outline-color: var(--err); }
.field-error { display: flex; align-items: center; gap: 8px; color: var(--err); font-size: 12px; line-height: 16px; letter-spacing: 0.32px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 32 32'%3E%3Cpath fill='%23161616' d='M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select[disabled] { color: var(--disabled); cursor: not-allowed; border-bottom-color: transparent; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: #161616; cursor: pointer; }
.code-input { font-family: var(--mono); font-size: 28px; line-height: 36px; letter-spacing: 12px; height: 64px; text-align: center; padding: 0 0 0 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 1px; align-items: flex-end; }
.inline-form .field { flex: 1 1 260px; }
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 48px; height: 24px; margin: 0; border-radius: 12px; background: var(--border-strong); position: relative; cursor: pointer; transition: background 110ms; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 110ms; }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(24px); }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 12px; line-height: 16px; letter-spacing: 0.32px; white-space: nowrap; background: var(--selected); color: var(--text); }
.tag--sm { height: 18px; padding: 0 6px; border-radius: 9px; }
.tag--blue { background: #d0e2ff; color: #0043ce; }
.tag--magenta { background: #ffd6e8; color: #9f1853; }
.tag--green { background: #a7f0ba; color: #0e6027; }
.tag--purple { background: #e8daff; color: #6929c4; }
.tag--red { background: #ffd7d9; color: #a2191f; }
.tag--warm { background: #fcf4d6; color: #684e00; }
.tag--outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.tag--dark { background: #393939; color: #f4f4f4; }
.tag svg { fill: currentColor; }

/* ---------- Monograms ---------- */
.mono-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; color: #ffffff; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
.mono-badge--lg { width: 48px; height: 48px; font-size: 18px; }
.mono-badge--md { width: 32px; height: 32px; font-size: 12px; }
.mono-0 { background: #005d5d; } .mono-1 { background: #198038; } .mono-2 { background: #6929c4; } .mono-3 { background: #0043ce; } .mono-4 { background: #9f1853; }
.mono-5 { background: #8a3800; } .mono-6 { background: #012749; } .mono-7 { background: #1192e8; } .mono-8 { background: #007d79; } .mono-9 { background: #a2191f; }
.mono-ink { background: #161616; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.tile { background: var(--layer); padding: 16px 16px 20px; min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; line-height: 18px; }
.tile-value { font-size: 42px; line-height: 50px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.tile-help { font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--text-2); }
.tile-arrow-up { fill: var(--adopt); }
.tile-arrow-down { fill: var(--drop); }
a.tile { color: inherit; }
a.tile:hover { background: var(--hover); text-decoration: none; color: inherit; }

/* ---------- Panels ---------- */
.panel { background: var(--layer); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 16px 24px; }
.panel-head--tight { padding-bottom: 16px; }
.panel-title { font-size: 20px; line-height: 28px; font-weight: 400; margin-bottom: 4px; }
.panel-desc { color: var(--text-2); }
.panel-body { padding: 0 16px 16px; }
.panel-pad { padding: 16px; }
.panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; min-height: 48px; padding: 8px 16px; border-top: 1px solid var(--border); }
.panel--dark { background: var(--shell); color: var(--shell-text); }
.panel--dark .panel-desc, .panel--dark .muted { color: var(--shell-text-2); }
.panel--dark a { color: #78a9ff; }
.panel--accent { border-top: 3px solid var(--blue); }
.prompt { background: var(--shell-2); border-left: 3px solid #4589ff; padding: 12px 16px; color: var(--shell-text); }
a.prompt-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--shell-2); color: var(--shell-text); }
a.prompt-link:hover { background: #333333; color: #ffffff; text-decoration: none; }
a.prompt-link svg { fill: #78a9ff; }
.list-rows { display: flex; flex-direction: column; }
a.list-row, .list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text); }
a.list-row:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.list-row svg { fill: var(--text-2); }
.dl { display: grid; grid-template-columns: minmax(96px, 128px) minmax(0, 1fr); margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--border); }
.dl dt { color: var(--text-2); }

/* ---------- Data tables ---------- */
.dt { width: 100%; border-collapse: collapse; background: var(--layer); }
.dt th { height: 48px; padding: 0 16px; background: var(--accent); color: var(--text); font-weight: 600; text-align: left; white-space: nowrap; }
.dt td { height: 48px; padding: 8px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.dt td.ellipsis { max-width: 260px; }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt--tall td { height: 64px; }
.dt tbody tr:hover td { background: var(--hover); }
.dt tbody tr.is-selected td, .dt tbody tr:has(.row-check:checked) td { background: var(--selected); }
.dt .num { text-align: right; font-variant-numeric: tabular-nums; }
.dt .right { text-align: right; }
.dt .t1 { color: var(--text); }
.dt .sub { display: block; font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--helper); }
.dt .check-col { width: 48px; padding-right: 0; }
.dt tr.is-link { position: relative; }
.dt a.row-link { color: var(--text); }
.dt a.row-link::after { content: ""; position: absolute; inset: 0; }
.dt a.row-link:hover { text-decoration: none; }
.dt tr.is-link:hover a.row-link { text-decoration: underline; }
.dt .above { position: relative; z-index: 1; }
.dt .tool-cell { display: flex; align-items: center; gap: 12px; color: var(--text); }
.dt .empty-row td { color: var(--text-2); }
.dt .net-neg { color: #9f1853; font-weight: 600; }
.dt .net-pos { color: #0043ce; font-weight: 600; }
.cell-2 { display: flex; flex-direction: column; min-width: 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 48px; background: var(--layer); }
.toolbar .tb-field { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 0 0 16px; border-right: 1px solid var(--border); }
.toolbar .tb-field .label { white-space: nowrap; }
.toolbar .tb-field .select { height: 48px; border-bottom: 0; background-color: transparent; min-width: 120px; padding-left: 8px; }
.toolbar .tb-field .select:hover { background-color: var(--hover); }
.toolbar .tb-spacer { flex: 1 1 auto; }
.search-bar { align-items: center; gap: 12px; padding-left: 16px; border-top: 1px solid var(--border); }
.search-bar svg { fill: var(--text-2); }
.search-bar input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0; background: transparent; outline: none; }
.search-bar .btn { min-height: 48px; }
.search-bar:focus-within { outline: 2px solid var(--blue); outline-offset: -2px; }
.toolbar .tb-apply { display: flex; align-items: center; padding-right: 8px; }
.js .toolbar .tb-apply { display: none; }
.batch { display: none; flex-wrap: wrap; align-items: center; min-height: 48px; background: var(--blue); color: #ffffff; }
.batch .count { padding: 0 16px; flex: 1 1 auto; }
.batch button, .batch a { min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: #ffffff; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.batch button:hover, .batch a:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
.batch svg { fill: currentColor; }
.batch .divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.5); }
form:has(.row-check:checked) .batch { display: flex; }
form:has(.row-check:checked) .toolbar { display: none; }

.pager { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 48px; border-top: 1px solid var(--border); background: var(--layer); }
.pager .seg { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 48px; color: var(--text-2); }
.pager .grow { flex: 1 1 auto; }
.pager .seg + .seg { border-left: 1px solid var(--border); }
.pager a.step, .pager span.step { width: 48px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--border); color: var(--text); }
.pager a.step:hover { background: var(--hover); }
.pager span.step svg { fill: #c6c6c6; }
.pager svg { fill: currentColor; }

/* ---------- Tabs & switchers ---------- */
.tabs { display: flex; overflow-x: auto; background: var(--bg); box-shadow: inset 0 -2px 0 var(--border); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; color: var(--text-2); white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; box-shadow: inset 0 -2px 0 var(--border-strong); }
.tab.is-active { color: var(--text); font-weight: 600; background: var(--layer); box-shadow: inset 0 -2px 0 var(--blue); }
.tab .count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-2); }
.tab svg { fill: currentColor; }
.switch { display: inline-flex; height: 32px; border: 1px solid #161616; flex: none; }
.switch a { display: inline-flex; align-items: center; padding: 0 16px; color: var(--text-2); }
.switch a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.switch a.is-active { background: #161616; color: #ffffff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border-strong); color: var(--text); background: var(--layer); }
.chip:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.chip.is-active { background: #161616; border-color: #161616; color: #ffffff; }
.chip .n { font-family: var(--mono); font-size: 12px; }

/* ---------- Notifications ---------- */
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: #edf5ff; border-left: 3px solid #0043ce; color: var(--text); }
.notice > svg { fill: #0043ce; align-self: flex-start; margin-top: 1px; }
.notice .body { flex: 1 1 320px; min-width: 0; }
.notice .title { font-weight: 600; margin-right: 4px; }
.notice--success { background: #defbe6; border-color: var(--ok); }
.notice--success > svg { fill: #198038; }
.notice--warning { background: #fcf4d6; border-color: var(--warn); }
.notice--warning > svg { fill: #8e6a00; }
.notice--error { background: #fff1f1; border-color: var(--err); }
.notice--error > svg { fill: var(--err); }
.notice--signal { background: #f6f2ff; border-color: #8a3ffc; }
.notice--signal > svg { fill: #6929c4; }
.notice--dark { background: var(--shell); color: var(--shell-text); border-color: #4589ff; }
.notice--dark > svg { fill: #78a9ff; }
.notice--dark a { color: #78a9ff; }

/* ---------- Meters & charts ---------- */
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter .top { display: flex; justify-content: space-between; gap: 12px; }
.meter .top .val { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; background: var(--border); color: var(--blue); }
progress::-webkit-progress-bar { background: var(--border); }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
progress.is-full::-webkit-progress-value { background: var(--text); }
progress.is-full::-moz-progress-bar { background: var(--text); }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--blue); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--border); }
.chart .axis line { stroke: var(--border-strong); }
.chart .tick { font-family: var(--font); font-size: 12px; fill: var(--text-2); }
.chart .bar rect.v { fill: #a6c8ff; transition: fill 70ms; }
.chart .bar.is-last rect.v, .chart .bar:hover rect.v { fill: var(--blue); }
.chart .bar rect.hit { fill: transparent; }
.chart .bar .tip { opacity: 0; transition: opacity 70ms; pointer-events: none; }
.chart .bar:hover .tip, .chart .bar.is-last .tip { opacity: 1; }
.chart:hover .bar.is-last:not(:hover) .tip { opacity: 0; }
.chart:hover .bar.is-last:not(:hover) rect.v { fill: #a6c8ff; }
.chart .tip rect { fill: #161616; }
.chart .tip text { font-family: var(--font); font-size: 12px; fill: #ffffff; }
.hbar { display: block; width: 100%; height: 8px; }
.hbar rect.track { fill: var(--border); }
.hbar rect.fill { fill: var(--blue); }
.breakdown { display: flex; flex-direction: column; gap: 14px; }
.breakdown .item { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 112px 24px minmax(0, 1fr); }
.timeline .when { padding: 12px 0; font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--text-2); }
.timeline .rail { position: relative; display: flex; justify-content: center; }
.timeline .rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline li:first-child .rail::before { top: 18px; }
.timeline li:last-child .rail::before { bottom: calc(100% - 18px); }
.timeline .pip { position: relative; margin-top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--adopt); }
.timeline .pip.is-drop { background: var(--layer); border: 2px solid var(--drop); }
.timeline .pip.is-neutral { background: var(--border-strong); }
.timeline .what { padding: 12px 0 12px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border-bottom: 1px solid var(--layer-2); color: var(--text); }

/* ---------- Stack grid ---------- */
.stack-group { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); }
.stack-group .gname { flex: 1 1 200px; padding: 16px; }
.stack-group .gname b { display: block; font-weight: 600; line-height: 18px; }
.stack-tools { flex: 3 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); border-left: 1px solid var(--border); }
.stack-tool { background: var(--layer); padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 64px; }
.stack-tool .name { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text); }
.stack-tool .name.is-gone { color: var(--helper); text-decoration: line-through; }
.stack-tool.is-tracked { box-shadow: inset 3px 0 0 var(--blue); }
a.stack-tool:hover { background: var(--hover); text-decoration: none; }

/* ---------- Empty states ---------- */
.empty { padding: 48px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.empty .title { font-size: 20px; line-height: 28px; }
.empty p { color: var(--text-2); max-width: 520px; }
.empty-icon { fill: var(--text-2); }
.lock { display: flex; flex-direction: column; gap: 16px; padding: 32px 16px; align-items: flex-start; }
.lock .title { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 28px; }
.lock .title svg { fill: var(--text); }
.lock p { color: var(--text-2); max-width: 560px; }

/* ---------- Plan cards ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.plan { background: var(--layer); padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.plan.is-current { box-shadow: inset 0 3px 0 var(--blue); }
.plan .price { font-size: 32px; line-height: 40px; font-weight: 300; }
.plan .price small { font-size: 14px; color: var(--text-2); font-weight: 400; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.plan li { display: flex; gap: 10px; }
.plan li svg { fill: var(--blue); margin-top: 2px; }
.plan-current { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; background: var(--layer-2); color: var(--text-2); }
.plan-current svg { fill: var(--text-2); }

/* ---------- Code ---------- */
.code { display: flex; align-items: stretch; background: var(--layer-2); max-width: 640px; }
.code input, .code .text { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 16px; border: 0; background: transparent; font-family: var(--mono); font-size: 14px; color: var(--text); display: flex; align-items: center; overflow-x: auto; white-space: nowrap; }
.code button { width: 40px; height: 40px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.code button:hover { background: var(--hover); }
.code button svg { fill: var(--text); }
.copied { color: #198038; }
pre.snippet { margin: 0; padding: 16px; background: var(--layer-2); font-family: var(--mono); font-size: 12px; line-height: 20px; overflow-x: auto; white-space: pre; color: var(--text); }
.endpoints td:first-child { font-family: var(--mono); font-size: 12px; color: var(--text); white-space: nowrap; }
.method { display: inline-block; min-width: 36px; font-family: var(--mono); font-size: 12px; color: #0e6027; }
.reveal { background: #defbe6; padding: 16px; display: flex; flex-direction: column; gap: 12px; border-left: 3px solid var(--ok); }

/* ---------- Auth & onboarding ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--layer); }
.auth-top { height: 48px; display: flex; align-items: center; padding: 0 16px; background: var(--shell); color: var(--shell-text); font-weight: 600; gap: 10px; }
.auth-top a { color: var(--shell-text); display: flex; align-items: center; gap: 10px; }
.auth-top a:hover { color: var(--shell-text); text-decoration: none; }
.auth-wrap { flex: 1 1 auto; display: flex; justify-content: center; padding: 72px 16px 48px; }
.auth { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.auth h1 { font-size: 28px; line-height: 36px; font-weight: 400; }
.auth .lead { color: var(--text-2); margin-top: 8px; }
.auth .or { display: flex; align-items: center; gap: 16px; color: var(--helper); font-size: 12px; letter-spacing: 0.32px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.auth .fine { font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--helper); }
.auth .input { background: var(--layer-2); }
.auth-foot { padding: 24px 16px; text-align: center; font-size: 12px; color: var(--helper); }

.onb { max-width: 720px; margin: 0 auto; padding: 48px 16px 96px; }
.steps { display: flex; gap: 2px; margin-bottom: 48px; list-style: none; padding: 0; }
.steps li { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.steps li::before { content: ""; height: 2px; background: var(--border); }
.steps li.is-done::before, .steps li.is-current::before { background: var(--blue); }
.steps li.is-current { color: var(--text); font-weight: 600; }
.onb h1 { font-size: 32px; line-height: 40px; font-weight: 400; }
.onb .lead { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text-2); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pick { position: relative; background: var(--layer); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 112px; cursor: pointer; }
.pick:hover { background: var(--hover); }
.pick input { position: absolute; top: 16px; right: 16px; width: 16px; height: 16px; margin: 0; accent-color: #161616; }
.pick:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue); background: #edf5ff; }
.pick:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.pick .name { font-size: 16px; line-height: 22px; color: var(--text); padding-right: 24px; }
.found { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--layer); border-left: 3px solid var(--ok); }

/* ---------- Superuser ---------- */
.su .hdr { background: #161616; }
.su-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px; background: #da1e28; color: #fff; font-size: 12px; letter-spacing: 0.32px; margin-left: 12px; }
.bars-mini { display: flex; align-items: flex-end; gap: 4px; height: 64px; }

/* ---------- Dev ---------- */
.devbar { background: #fcf4d6; border-bottom: 1px solid #f1c21b; padding: 6px 16px; font-size: 12px; color: #684e00; display: flex; gap: 16px; flex-wrap: wrap; }
.devbar a { color: #684e00; text-decoration: underline; }

@media print { .hdr, .sidenav, .devbar { display: none; } .main { padding: 0; } }
.plan-current .plan-when { margin-left: auto; font-size: 12px; letter-spacing: 0.32px; }
