/* Synth Databases — product design system (conversation-first).
   Independent of the corporate identity layer (brand.css): never uses --ci-*.
   White canvas, one interactive colour, semantic status with icon + text,
   WCAG 2.2 AA contrast, 44px targets, reduced-motion support. */
:root {
  --bg: #FFFFFF; --bg-subtle: #F7F7F9; --hover: #F2F2F5;
  --border: #E2E1E6; --border-strong: #8A8794;
  --text: #1C1A21; --text-muted: #5C5966; --inverse: #FFFFFF;
  --primary: #5B3A9E; --primary-hover: #472C7E; --primary-subtle: #F2EEFA;
  --good: #1E7A46; --good-bg: #EBF6EF; --wait: #1D5FB8; --wait-bg: #EBF2FC;
  --warn: #8A5A00; --warn-bg: #FDF4E3; --bad: #B42318; --bad-bg: #FDEDEC;
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'DejaVu Sans', Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  --shadow-sm: 0 1px 2px rgba(28, 26, 33, .06); --shadow: 0 2px 6px rgba(28, 26, 33, .06), 0 8px 24px rgba(28, 26, 33, .05);
  --fast: 120ms; --gutter: 32px;
}
@media (max-width: 760px) { :root { --gutter: 16px; } }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/24px var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
code { font-family: var(--mono); font-size: 13px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); } .small { font-size: 14px; line-height: 20px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--bg); padding: 8px 16px; border-radius: var(--r); box-shadow: var(--shadow); }
.skip:focus { left: 8px; }
.icon { flex: none; }
.eyebrow { font-size: 14px; line-height: 20px; color: var(--text-muted); font-weight: 600; }
.lede { color: var(--text-muted); font-size: 17px; line-height: 26px; max-width: 70ch; }
.back { font-size: 14px; text-decoration: none; color: var(--text-muted); }
.back:hover { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; font: 600 15px/20px var(--font); border-radius: var(--r); border: 1px solid transparent; background: var(--primary); color: var(--inverse); text-decoration: none; cursor: pointer; transition: background-color var(--fast), border-color var(--fast); white-space: nowrap; }
.btn:hover { background: var(--primary-hover); color: var(--inverse); }
.btn-quiet { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-quiet:hover { background: var(--hover); color: var(--text); }
.btn-danger { background: var(--bg); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], button[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; min-height: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline { display: inline-flex; }

/* Status pills: colour + icon + text */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill .icon { width: 15px; height: 15px; }
.pill-good { color: var(--good); background: var(--good-bg); }
.pill-waiting, .pill-working { color: var(--wait); background: var(--wait-bg); }
.pill-attention { color: var(--bad); background: var(--bad-bg); }
.pill-muted, .pill-info { color: var(--text-muted); background: var(--bg-subtle); border: 1px solid var(--border); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label, legend { font-size: 14px; line-height: 20px; font-weight: 600; }
.input { width: 100%; font: 16px/24px var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 9px 12px; min-height: 44px; }
.input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 58, 158, .25); }
textarea.input { resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: var(--r); padding: 12px; margin: 0 0 12px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; align-items: end; margin-top: 12px; }
.grid-form .actions, .grid-form fieldset { grid-column: 1 / -1; }
.grid-form .field-wide { grid-column: 1 / -1; }
.grid-form .check { margin: 8px 0; }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; border-left: 4px solid; }
.flash .icon { margin-top: 3px; }
.flash-success { background: var(--good-bg); border-color: var(--good); } .flash-success .icon { color: var(--good); }
.flash-error { background: var(--bad-bg); border-color: var(--bad); } .flash-error .icon { color: var(--bad); }
.flash-info { background: var(--wait-bg); border-color: var(--wait); } .flash-info .icon { color: var(--wait); }

/* App shell */
.shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.shell > * { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 20px; border-right: 1px solid var(--border); background: var(--bg); }
.sidebar .brand-link { padding: 8px 0; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: var(--r); color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--hover); }
.nav a[aria-current="page"] { background: var(--primary-subtle); color: var(--primary); font-weight: 600; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: var(--inverse); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.me { margin-top: auto; border-top: 1px solid var(--border); padding: 14px 8px 0; font-size: 14px; line-height: 20px; }
.me-name { font-weight: 600; } .me-org { color: var(--text-muted); }
.me-links { margin: 8px 0 2px; } .me-links a { color: var(--text); } .me-links a[aria-current="page"] { font-weight: 600; }
.demo-tag { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--warn); }
.topbar { display: none; }
.main { padding: 28px var(--gutter) 64px; max-width: 1080px; width: 100%; margin: 0 auto; }
.main-wide { max-width: 1320px; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px var(--gutter); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 20; }
  .topbar .menu summary { list-style: none; } .topbar .menu summary::-webkit-details-marker { display: none; }
  .topbar .menu[open] { position: absolute; right: var(--gutter); top: 52px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow); min-width: 220px; }
  .topbar .menu[open] summary { display: none; }
  .main { padding-top: 20px; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 4px 0 24px; }
.page-head h1 { font-size: 28px; line-height: 36px; margin-bottom: 4px; }
.panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 18px; line-height: 26px; margin-bottom: 12px; }
.panel h3 { font-size: 15px; margin: 16px 0 8px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-subtle { background: var(--bg-subtle); box-shadow: none; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col > * { min-width: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.empty { border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: 28px; background: var(--bg-subtle); margin-bottom: 20px; }
.empty-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty p + p { margin-top: 12px; }

/* Lists and tiles */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--text); min-height: 48px; }
a.list-item:hover { background: var(--hover); color: var(--text); }
.list-item.static { border-bottom: 1px solid var(--border); border-radius: 0; }
.list-title { display: block; font-weight: 600; } .list-sub { display: block; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color var(--fast), box-shadow var(--fast); }
.tile:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.tile-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tile h2 { font-size: 17px; line-height: 24px; }
.tile p { color: var(--text-muted); font-size: 15px; line-height: 22px; }
.tile .tile-foot { margin-top: auto; font-size: 13px; }
.bullets { margin: 8px 0; padding-left: 20px; } .bullets li + li { margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0 0 8px; }
.facts dt { font-size: 13px; color: var(--text-muted); } .facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* Assistant home */
.hero-chat { max-width: 760px; margin: 24px auto 32px; text-align: left; }
.hero-chat h1 { font-size: 32px; line-height: 40px; margin: 4px 0 8px; letter-spacing: -0.01em; }
.hero-chat .lede { margin-bottom: 20px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); font: 14px/20px var(--font); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-subtle); }

/* Composer */
.composer { border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); transition: border-color var(--fast), box-shadow var(--fast); }
.composer:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 58, 158, .2); }
.composer textarea { display: block; width: 100%; border: 0; resize: none; padding: 14px 16px 6px; font: 16px/24px var(--font); background: transparent; color: var(--text); min-height: 64px; }
.composer textarea:focus-visible { outline: none; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; }
.attach { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: var(--r); color: var(--text-muted); cursor: pointer; font-size: 14px; }
.attach:hover { background: var(--hover); color: var(--text); }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attach:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.attached { flex: 1; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Conversation */
.convo { max-width: 780px; margin: 0 auto; }
.convo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.convo-head h1 { font-size: 20px; line-height: 28px; flex: 1; min-width: 200px; }
.thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 18px; }
.msg { display: flex; gap: 12px; }
.msg-user { justify-content: flex-end; }
.bubble { max-width: 85%; background: var(--primary-subtle); border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg); padding: 10px 14px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-subtle); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.assistant-body { flex: 1; min-width: 0; display: grid; gap: 10px; }
.say { line-height: 26px; }
.when { font-size: 12px; color: var(--text-muted); }
.files { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.thinking { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; margin: 0 0 16px 44px; }
.thinking[hidden] { display: none; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .dots i { animation: blink 1.2s infinite ease-in-out; } .dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
  .msg { animation: rise 200ms ease-out both; } @keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* Cards in messages */
.card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; background: var(--bg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 6px; }
.card-title { font-weight: 700; }
.card-foot { margin-top: 10px; }
.card-proposal { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
.card-decided { border-color: var(--border); box-shadow: var(--shadow-sm); opacity: .85; }
.proposal-form { margin-top: 10px; }
.card-notice { display: flex; gap: 10px; align-items: flex-start; background: var(--wait-bg); border-color: transparent; }
.card-working { display: flex; gap: 10px; align-items: center; color: var(--text-muted); background: var(--bg-subtle); box-shadow: none; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.step { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.step-done { color: var(--good); } .step-active { color: var(--wait); font-weight: 600; } .step-stopped { color: var(--bad); font-weight: 600; } .step-todo { color: var(--text-muted); }
.verdicts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.verdict { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; }
.verdict-label { font-weight: 600; }
.verdicts.compact .verdict { grid-template-columns: 130px 1fr; font-size: 15px; }
@media (max-width: 560px) { .verdict, .verdicts.compact .verdict { grid-template-columns: 1fr; gap: 4px; } }
.reveal summary { list-style: none; cursor: pointer; display: inline-flex; } .reveal summary::-webkit-details-marker { display: none; }
.reveal[open] > summary { margin-bottom: 8px; }
.secret { font-size: 16px; padding: 4px 8px; }

/* Tables */
.table-wrap { position: relative; overflow: auto; max-height: 60vh; border: 1px solid var(--border); border-radius: var(--r); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 20px; }
.table th { position: sticky; top: 0; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--bg-subtle); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: break-word; }
.table tbody tr:hover td { background: var(--bg-subtle); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .table { min-width: 520px; } }
pre.code { font: 13px/18px var(--mono); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; }

/* Inbox */
.decision { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.decision-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.decision h2 { font-size: 19px; line-height: 26px; }
.recommend { display: flex; gap: 8px; align-items: flex-start; background: var(--primary-subtle); color: var(--text); border-radius: var(--r); padding: 10px 12px; }
.recommend .icon { color: var(--primary); margin-top: 3px; }
.decision-form { border-top: 1px solid var(--border); padding-top: 12px; }
.preview { margin-top: 8px; }

/* Vendor workspace */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.workspace .convo { max-width: none; }
.side { position: sticky; top: 20px; }
@media (max-width: 1100px) { .workspace { grid-template-columns: 1fr; } .side { position: static; } }

/* Governance */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; }
.stat-label { font-size: 14px; color: var(--text-muted); } .stat-value { font-size: 28px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; } .stat-sub { font-size: 13px; color: var(--text-muted); }
.lineage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lineage { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.lineage li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.node { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px 8px; }
a.node { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a.node:hover { border-color: var(--primary); }
.filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .filter .field { margin: 0; min-width: 200px; }

/* Public site */
.site { background: var(--bg); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.site-header { border-bottom: 1px solid var(--border); padding: 10px 0; position: sticky; top: 0; background: var(--bg); z-index: 30; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 640px) { .site-nav { gap: 10px 14px; } .site-nav a:not(.btn) { font-size: 14px; } }
.hero { padding: 64px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 36px 0; } }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; margin: 16px 0 20px; }
.hero .actions { margin-top: 28px; } .support { margin-top: 20px; color: var(--text-muted); font-size: 15px; }
.eyebrow-pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--primary-subtle); color: var(--primary); }
.hero-visual .shot { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 20px; background: var(--bg-subtle); }
.shot-tag { font-size: 12px; font-weight: 600; color: var(--warn); margin-bottom: 12px; }
.band { padding: 80px 0; } .band-tight { padding: 48px 0; } .band-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 760px) { .band { padding: 48px 0; } }
.band h2 { font-size: 30px; line-height: 38px; letter-spacing: -0.015em; max-width: 26ch; }
.band .intro { color: var(--text-muted); font-size: 18px; line-height: 28px; max-width: 62ch; margin-top: 12px; }
.band .actions { margin-top: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cards .card h3 { font-size: 18px; margin: 10px 0 6px; } .cards .card p { color: var(--text-muted); }
.step-n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; background: var(--primary-subtle); color: var(--primary); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } @media (max-width: 900px) { .two-up { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; } .checks li { display: flex; gap: 10px; align-items: center; font-size: 17px; } .checks .icon { color: var(--good); }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.login { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 48px auto; }
.login > * { min-width: 0; } @media (max-width: 860px) { .login { grid-template-columns: 1fr; margin-top: 24px; } }
.login h1 { font-size: 28px; margin-bottom: 16px; }
.demo { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.demo-btn { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); font: 14px/20px var(--font); color: var(--text-muted); cursor: pointer; }
.demo-btn strong { color: var(--text); font-size: 15px; } .demo-btn:hover { border-color: var(--primary); }
.error-page { padding: 64px var(--gutter); } .error-page h1 { font-size: 32px; margin: 8px 0 12px; } .error-page .btn { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.verdict > .pill, .list-item > .pill, .decision-head > .pill { justify-self: start; align-self: start; }
.panel > details.reveal { display: inline-block; margin: 4px 8px 0 0; vertical-align: top; }
.panel > details.reveal[open] { display: block; margin-top: 12px; }
.table code { word-break: normal; overflow-wrap: anywhere; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.stack > * + * { margin-top: 8px; }

/* Sign-in: organisation sign-on first, password second */
.sso-form { margin-bottom: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 14px; margin: 20px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Coverage of connected data */
.coverage { display: grid; gap: 12px; }
.cov-figures { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.cov-big { margin: 0; color: var(--text-muted); }
.cov-big strong { font-size: 32px; line-height: 1.1; color: var(--text); margin-right: 6px; font-variant-numeric: tabular-nums; }
.meter { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; }
.meter::-webkit-progress-bar { background: var(--bg-subtle); border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--good); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--good); border-radius: 999px; }
.cov-conn { border-top: 1px solid var(--border); padding-top: 12px; }
.cov-conn summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cov-row { flex-wrap: wrap; gap: 8px; }
.cov-row > span:first-child { min-width: 0; flex: 1 1 260px; }
.cov-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cov-actions form { margin: 0; }
.cov-toggle { margin-top: 8px; }
.connect { border-top: 1px solid var(--border); padding-top: 12px; }
.connect summary { cursor: pointer; font-weight: 600; }

/* Straight-through testing */
.test-plan { flex-wrap: wrap; gap: 8px; }
.test-plan > span:first-child { min-width: 0; flex: 1 1 320px; }
.runs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.runs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.steps { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.steps li { display: grid; gap: 6px; }
.step-title { margin: 0; font-weight: 600; }
.upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upload-form .input { flex: 1 1 240px; min-width: 0; }

/* Plan and usage */
.ents { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ent { display: grid; gap: 6px; align-content: start; }
.ent-label { margin: 0; font-weight: 600; font-size: 14px; }
.ent-figure { margin: 0; color: var(--text-muted); }
.ent-figure strong { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.meter.full::-webkit-progress-value { background: var(--warn); }
.meter.full::-moz-progress-bar { background: var(--warn); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.licence-form { display: grid; gap: 10px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* Pricing */
.price-section { display: grid; gap: 16px; padding-block: 32px; }
.price-section > *, .value-grid > * { min-width: 0; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.price-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.price-card-later { background: var(--bg-subtle); }
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.price-card h3 { margin: 0; font-size: 20px; }
.price { margin: 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.value-result { display: grid; gap: 12px; }
