/* VitalForg demo workspace */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3d3d3a;
  --muted: #5f5e58;
  --line: #e2e0d9;
  --line-2: #cfccc3;
  --accent: #c4320e;       /* brand rust, darkened for text contrast */
  --accent-bg: #fbeee9;
  --ok: #1d6b3a;
  --ok-bg: #e8f3ec;
  --warn-bg: #fff6e0;
  --warn-line: #e9cf8a;
  --err: #a3200a;
  --chart-bar: #2b2b29;
  --chart-muted: #b9b6ac;
  --shade: #efede6;
  --radius: 6px;
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-head: 'Barlow', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.2; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 0.85rem; font-weight: 700; margin: 1rem 0 0.4rem; }
p { margin: 0 0 0.6rem; }
code { font-size: 0.85em; background: var(--bg); padding: 0.05em 0.3em; border-radius: 3px; }
small { font-size: 0.7em; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.id { font-size: 0.9rem; font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ── Shell ───────────────────────────────────────── */
.demo-bar { background: var(--ink); color: #f1efe9; font-size: 0.82rem; padding: 0.45rem 1.25rem; text-align: center; }
.demo-bar strong { color: #fff; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: lowercase; text-decoration: none; letter-spacing: -0.01em; }
.ctx { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.ctx-org { font-weight: 600; }
.ctx label, .filters label, .inline-filter label { display: inline-flex; flex-direction: column; gap: 0.2rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ctx label { flex-direction: row; align-items: center; gap: 0.4rem; }
select, input[type=search], input[type=date], input[type=text], textarea {
  font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0.45rem 0.6rem; text-transform: none; letter-spacing: 0; font-weight: 400;
}
textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; }
.app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: calc(100vh - 100px); }
.app-nav { display: flex; flex-direction: column; gap: 2px; padding: 1.25rem 0.75rem; border-right: 1px solid var(--line); background: var(--surface); position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); }
.app-nav a { text-decoration: none; padding: 0.55rem 0.75rem; border-radius: var(--radius); font-weight: 500; color: var(--ink-2); }
.app-nav a:hover { background: var(--bg); }
.app-nav a[aria-current=page] { background: var(--ink); color: #fff; }
.app-nav .nav-exit { margin-top: auto; font-size: 0.85rem; color: var(--muted); }
main { padding: 1.75rem 2rem 4rem; max-width: 1280px; width: 100%; min-width: 0; }
main:focus { outline: none; }
.loading { padding: 3rem; color: var(--muted); }

/* ── Page structure ──────────────────────────────── */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.eyebrow { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.3rem; }
.lede { color: var(--ink-2); max-width: 70ch; margin-top: 0.4rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--ink-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; margin-bottom: 1.25rem; }
.panel.tight { padding: 1rem; margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); font-size: 0.87rem; margin: 0.25rem 0 0; max-width: 80ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.grid-insight { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.data-summary { margin-bottom: 1.25rem; }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* ── Stats ───────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.stats-sm { margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; }
.panel .stat { background: var(--bg); border-color: transparent; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--muted); }
.stat-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 0.82rem; color: var(--ink-2); }
.stat-help { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.big { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; margin: 0; }

/* ── Buttons & links ─────────────────────────────── */
.btn, .btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-weight: 600; font-size: 0.88rem; padding: 0.55rem 1rem; border-radius: var(--radius); cursor: pointer; text-decoration: none; border: 1px solid var(--ink); }
.btn { background: var(--ink); color: #fff; }
.btn:hover { background: #333; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }
.btn-ghost[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-link { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ── Tags & states ───────────────────────────────── */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.tag-rulebased { border-color: #d9b8ad; color: #8a2a10; background: var(--accent-bg); }
.tag-statistical { border-color: #b7c4d6; color: #24406b; background: #edf2f9; }
.tag-dataquality { border-color: #d6d2c4; color: #4f4c43; background: #f3f1ea; }
.tag-calculated { border-color: #c9d8cd; color: #24543a; background: #edf5ef; }
.tag-machinelearning { border-color: #cdbfe0; color: #4a2a7a; background: #f3eefa; }
.model-card .section-head { align-items: center; }
.status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.status.is-ack { color: var(--ok); border-color: #b9dcc5; background: var(--ok-bg); }
.status.is-ack::before { background: var(--ok); }
.empty { text-align: center; padding: 2.25rem 1rem; color: var(--muted); }
.empty-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1rem; }
.empty .btn { margin-top: 0.5rem; }
.notice { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--ink); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem; }
.notice p { margin: 0; flex: 1; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #b8860b; }
.note { background: var(--bg); border-radius: var(--radius); padding: 0.75rem 1rem; margin: 1rem 0 0; font-size: 0.88rem; }
.ok { color: var(--ok); background: var(--ok-bg); padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.88rem; }
.err { color: var(--err); background: #fbeceb; padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.88rem; }
.null { color: var(--muted); font-style: italic; font-size: 0.82rem; }
.bad { color: var(--err); font-weight: 600; font-size: 0.8rem; }
.hi { color: var(--accent); font-weight: 700; }
.chip { display: inline-flex; gap: 0.4rem; align-items: center; background: var(--bg); border: 1px solid var(--line-2); padding: 0.3rem 0.6rem; border-radius: 99px; font-size: 0.82rem; align-self: flex-end; }
.chip a { text-decoration: none; }

/* ── Flags & steps ───────────────────────────────── */
.flag-list { display: flex; flex-direction: column; }
.flag-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.flag-row:last-child { border-bottom: 0; }
.flag-row:hover, .flag-row:focus-visible { background: var(--bg); }
.flag-row:hover .flag-go { transform: translateX(3px); color: var(--ink); }
.flag-main { flex: 1; min-width: 0; }
.flag-value { font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.flag-go { color: var(--muted); transition: transform 0.15s ease; }
.flag-main { display: flex; flex-direction: column; }
.flag-main span { font-size: 0.84rem; color: var(--muted); }
.flag-meta { display: flex; gap: 0.6rem; align-items: center; flex-shrink: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps a { display: grid; grid-template-columns: 2rem 1fr; padding: 0.7rem 0; text-decoration: none; }
.steps a::before { content: counter(s); grid-row: span 2; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.steps span { font-size: 0.84rem; color: var(--muted); }
.steps a:hover strong { text-decoration: underline; }

/* ── Filters & tabs ──────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 1rem; }
.filter-actions { display: flex; gap: 0.75rem; align-items: center; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line-2); margin-bottom: 1rem; overflow-x: auto; }
.tab { padding: 0.6rem 0.9rem; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.count { font-size: 0.75rem; background: var(--bg); border-radius: 99px; padding: 0.05rem 0.45rem; margin-left: 0.2rem; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; margin: 0.5rem 0 1.25rem; font-size: 0.88rem; }
.file { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.block { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.block textarea { margin-top: 0.3rem; }
.result { margin-top: 1rem; }

/* ── Tables ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.5rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); background: #faf9f6; white-space: nowrap; position: sticky; top: 0; }
th .unit { font-weight: 500; color: var(--muted); }
td { white-space: nowrap; }
td.wrap { white-space: normal; min-width: 240px; }
td.num, th.num { text-align: right; }
td.calc { background: #fbfaf7; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f7f6f2; }
.th-sort { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-weight: 700; }
.calc-mark { font-size: 0.65rem; font-weight: 700; color: #24543a; background: #edf5ef; border-radius: 3px; padding: 0 0.25rem; text-transform: uppercase; }
.cov { display: inline-flex; align-items: center; gap: 0.4rem; }
.cov-bar { width: 52px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; display: inline-block; }
.cov-bar span { display: block; height: 100%; background: var(--ink-2); }
ul.kv, ul.plain { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
ul.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; border-bottom: 1px dashed var(--line); }
ul.plain li { padding: 0.2rem 0; }
dl.defs { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.87rem; margin: 0 0 1rem; }
dl.defs dt { color: var(--muted); }
dl.defs dd { margin: 0; font-variant-numeric: tabular-nums; }
dl.defs.stacked { grid-template-columns: 1fr; gap: 0.1rem; }
dl.defs.stacked dt { font-weight: 600; color: var(--ink-2); margin-top: 0.5rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.compare > div { background: var(--bg); padding: 0.9rem 1rem; border-radius: var(--radius); display: flex; flex-direction: column; }
.compare strong { font-family: var(--font-head); font-size: 1.6rem; }
.methods .grid-4 p { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.5rem; }

/* ── Charts ──────────────────────────────────────── */
.chart { width: 100%; }
.chart-svg { display: block; overflow: visible; }
.chart-svg:focus-visible { outline: 2px solid var(--accent); }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-baseline { stroke: var(--line-2); }
.chart-axis { font-size: 11px; fill: var(--muted); font-family: var(--font-body); }
.chart-axis-title { font-weight: 600; }
.chart-shade { fill: var(--shade); }
.chart-bar { fill: var(--chart-bar); }
.chart-bar.is-muted { fill: var(--chart-muted); }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.ink { stroke: var(--ink); }
.chart-line.accent { stroke: var(--accent); }
.chart-dot.ink { fill: var(--ink); }
.chart-dot.accent { fill: var(--accent); }
.chart-dot.soft { fill: #8d8a80; }
.chart-band { fill: #dfe6ee; opacity: 0.8; }
.chart-ref { stroke: var(--accent); stroke-dasharray: 4 4; stroke-width: 1.2; }
.chart-ref-label { fill: var(--accent); font-weight: 600; }
.chart-cursor { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-tip { position: absolute; display: none; z-index: 50; background: var(--ink); color: #f4f2ec; font-size: 0.8rem; line-height: 1.45; padding: 0.55rem 0.7rem; border-radius: var(--radius); pointer-events: none; max-width: 300px; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.chart-tip strong { display: block; color: #fff; margin-bottom: 0.15rem; }

/* ── Report ──────────────────────────────────────── */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 1.75rem 1.75rem; }
.report section { margin-top: 1.75rem; }
.report h3 { font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; margin-bottom: 0.9rem; }
.report-banner { margin: 0 -1.75rem; background: var(--accent-bg); color: #8a2a10; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-align: center; padding: 0.5rem; border-bottom: 1px solid #ecc9bd; border-radius: 8px 8px 0 0; }
.report-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.5rem; }
.report-head h2 { font-size: 1.6rem; }
.report-notes p { font-size: 0.88rem; }
.report-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* ── Live workspace: sign-in, account, settings ──── */
select, input[type=search], input[type=date], input[type=text], input[type=email], input[type=password], input[type=number], input[type=file] { max-width: 100%; }
input:not([type]), input[type=email], input[type=password], input[type=number] {
  font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0.45rem 0.6rem;
}
.app-body.no-nav { grid-template-columns: minmax(0, 1fr); }
.app-body.no-nav .app-nav { display: none; }
.auth { display: flex; justify-content: center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { margin-top: 0; }
.auth-form { display: flex; flex-direction: column; gap: 0.9rem; margin: 1rem 0; }
.auth-form label, form.stacked label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.auth-form input, .auth-form select { width: 100%; }
.auth-form .btn { justify-content: center; }
.hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; margin: 0; }
.copy { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; }
.report-banner.report-banner-plain { background: var(--shade); color: var(--ink); border-bottom-color: var(--line); }
.sample-bar { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: #5b4300; font-size: 0.82rem; padding: 0.45rem 1.25rem; text-align: center; }
.top-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.user-menu { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.user-menu .user-name { font-weight: 600; }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .top-right { width: 100%; justify-content: space-between; }
  .ctx select { max-width: 60vw; }
}

@media (min-width: 861px) {
  /* Keep the sidebar's white column running the full height of long pages. */
  .app-body:not(.no-nav) { background: linear-gradient(90deg, var(--surface) 199px, var(--line) 199px 200px, transparent 200px); }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-insight { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-nav { flex-direction: row; overflow-x: auto; height: auto; position: sticky; top: 0; padding: 0.5rem 0.75rem; border-right: 0; border-bottom: 1px solid var(--line); z-index: 15; }
  .app-nav a { white-space: nowrap; }
  .app-nav .nav-exit { margin-top: 0; }
  .app-top { position: static; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  main { padding: 1.25rem 1rem 3rem; }
}
@media (max-width: 560px) {
  .grid-4, .compare { grid-template-columns: minmax(0, 1fr); }
  .ctx { gap: 0.6rem; }
  .ctx-org { width: 100%; }
  h1 { font-size: 1.4rem; }
  .flag-row { flex-direction: column; align-items: flex-start; }
  dl.defs { grid-template-columns: 1fr; }
  .report { padding: 0 1rem 1rem; }
  .report-banner { margin: 0 -1rem; }
}

/* ── Print (report) ──────────────────────────────── */
@media print {
  body { background: #fff; font-size: 11pt; }
  .demo-bar, .sample-bar, .app-top, .app-nav, .no-print, .skip, .chart-tip { display: none !important; }
  .app-body { display: block; }
  main { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; }
  .report-banner { margin: 0 0 1rem; border: 1px solid #000; color: #000; background: none; }
  .table-wrap { overflow: visible; border: 0; }
  th { position: static; }
  .report section { break-inside: avoid-page; }
  a { text-decoration: none; }
}

/* ── Contact messages (site admins) ───────────────── */
.msg { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.msg header { font-size: 0.88rem; }
.msg.is-handled { opacity: 0.6; }
.wrap-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.4rem 0; }

/* ── Synthetic-data confirmation ─────────────────── */
.check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; font-weight: 600; margin: 0.75rem 0; flex-direction: row !important; }
.check input { margin-top: 0.2rem; }
.check.needs { color: var(--err); }

/* Privacy, deletion and API key screens */
.pill { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 999px; background: #eef1f4; color: var(--ink); white-space: nowrap; vertical-align: middle; }
.pill.warn { background: var(--warn-bg); color: #5b4300; border: 1px solid var(--warn-line); }
.panel.danger { border-color: #e3b4ae; }
.panel.danger h3 { color: var(--err); }
.btn.danger { background: var(--err); border-color: var(--err); }
.check.inline { margin: 0; font-weight: 500; }
fieldset.checks { border: 0; padding: 0; margin: 0; }
fieldset.checks legend { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.25rem; }
fieldset.checks .check { margin: 0.35rem 0; font-weight: 500; }
ol.mfa-steps { padding-left: 1.2rem; margin: 0.5rem 0 1rem; font-size: 0.9rem; }
ol.mfa-steps li { margin: 0.4rem 0; }
.copy.mono, pre.codes { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre.codes { background: #f4f6f8; border: 1px solid var(--line, #dde2e7); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.95rem; line-height: 1.6; }
.auth-form .check { flex-direction: row !important; justify-content: flex-start; align-items: flex-start; text-align: left; }
.auth-form .check input { width: auto; flex: none; margin: 0.2rem 0 0; }

/* Trial status in the app header and the onboarding checklist */
.ctx-trial { font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--bg-alt, #edebe4); color: var(--ink, #141414); text-decoration: none; white-space: nowrap; }
.ctx-trial.is-ended { background: #fbe9e4; color: #8a2a0c; }
.ob-steps { list-style: none; padding: 0; margin: 0; }
.ob-steps li { display: grid; align-items: start; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 0.9rem 0; border-top: 1px solid var(--line, #dedbd3); }
.ob-steps li:first-child { border-top: 0; }
.ob-steps .mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; border: 2px solid var(--line, #dedbd3); color: var(--muted, #5f5e58); }
.ob-steps li.is-done .mark { background: #1f6b3a; border-color: #1f6b3a; color: #fff; }
.ob-steps h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.ob-steps p { margin: 0 0 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ob-steps .btn { display: inline-block; width: auto; }
.ob-steps .mark { margin-top: 0.1rem; }
.rate { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line, #ddd); }
.rate .btn-ghost[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
