/* Spot: Pennock Performance house style (00 - Company/HUISSTIJL.md) for product UI.
   Off-white ground, ink, one accent blue, navy as the only dark plane, hairlines, 0px corners. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/cabinet-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/cabinet-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 800; font-display: swap; src: url("fonts/cabinet-grotesk-800.woff2") format("woff2"); }

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFE;
  --soft: #EFEEE9;
  --soft-2: #F4F3EF;
  --ink: #16181D;
  --ink-2: #3A3F48;
  --muted: #5D6470;
  --faint: #8A909A;
  --line: #E5E4DF;
  --line-strong: #CFCDC6;
  --blue: #1565C0;
  --blue-hover: #0F539F;
  --blue-wash: #E8F0FA;
  --blue-line: #B9D0EC;
  --navy: #0F1B2E;
  --navy-2: #17263D;
  --navy-line: #24344D;
  --on-navy: #F4F6FA;
  --on-navy-muted: #A3AEC0;
  --cyan: #4DD9E8;
  /* status: reserved, always shipped with a word */
  --rood: #B42318;
  --rood-wash: #FBEDEB;
  --oranje: #A65F00;
  --oranje-wash: #FBF1E2;
  --groen: #2F7A4A;
  --groen-wash: #E9F3EC;
  --rood-on-navy: #FF8A80;
  --oranje-on-navy: #F7B955;
  --groen-on-navy: #7FD39B;

  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cabinet Grotesk", "Onest", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --rail: 248px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: #CFE0F5; color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 .6em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.na { color: var(--faint); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: var(--on-navy);
  display: flex; flex-direction: column; scrollbar-color: var(--navy-line) transparent;
}
.rail::-webkit-scrollbar-thumb { background: var(--navy-line); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 22px 20px 18px; color: var(--on-navy); }
.brand img { height: 10px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.brand .word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.brand:hover { color: #fff; }
.rail-nav { padding: 4px 10px; display: grid; gap: 1px; }
.rail a.ri {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--on-navy-muted);
  font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease);
}
.rail a.ri:hover { background: var(--navy-2); color: var(--on-navy); }
.rail a.ri[aria-current="page"] { background: #22344F; color: #fff; }
.rail a.ri svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.rail a.ri .count {
  margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--navy);
  background: var(--cyan); padding: 0 6px; line-height: 18px;
}
.rail a.ri .count.zero { background: transparent; color: var(--on-navy-muted); font-weight: 500; }
.rail-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px;
  color: var(--on-navy-muted); font-size: 12px; font-weight: 600;
}
.rail-filter { margin: 0 10px 6px; }
.rail-filter input {
  width: 100%; background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--on-navy);
  padding: 6px 10px; font-size: 13px;
}
.rail-filter input::placeholder { color: #7D8AA0; }
.rail-filter input:focus { outline: none; border-color: var(--cyan); }
.rail-clients { padding: 0 10px 12px; display: grid; gap: 1px; }
.rail .client-link { padding-left: 10px; }
.rail .client-link { min-width: 0; }
.rail .client-link .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.rail-foot { margin-top: auto; border-top: 1px solid var(--navy-line); padding: 12px 10px 16px; display: grid; gap: 1px; }
.rail-user { padding: 4px 10px 8px; font-size: 12px; color: var(--on-navy-muted); }
.rail-user strong { display: block; color: var(--on-navy); font-weight: 600; font-size: 13px; }
.rail form { margin: 0; }
.rail button.ri {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: none; border: 0;
  color: var(--on-navy-muted); cursor: pointer; font-weight: 500; text-align: left;
}
.rail button.ri:hover { background: var(--navy-2); color: var(--on-navy); }
.rail button.ri svg { width: 16px; height: 16px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.page { padding: 28px var(--gutter) 64px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; }
.page-sub { color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ status marks */
.sq { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--line-strong); }
.sq.rood { background: var(--rood); } .sq.oranje { background: #D98A00; } .sq.groen { background: var(--groen); }
.rail .sq { background: #4A5A73; }
.rail .sq.rood { background: var(--rood-on-navy); } .rail .sq.oranje { background: var(--oranje-on-navy); } .rail .sq.groen { background: var(--groen-on-navy); }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.state.rood { color: var(--rood); } .state.oranje { color: var(--oranje); } .state.groen { color: var(--groen); }
.state.none { color: var(--faint); font-weight: 500; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); white-space: nowrap; line-height: 18px;
}
.tag.blue { border-color: var(--blue-line); background: var(--blue-wash); color: var(--blue); }
.tag.rood { border-color: #F0C5C0; background: var(--rood-wash); color: var(--rood); }
.tag.oranje { border-color: #EDD3A8; background: var(--oranje-wash); color: var(--oranje); }
.tag.groen { border-color: #C3DFCB; background: var(--groen-wash); color: var(--groen); }
.tag.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag svg { width: 12px; height: 12px; }

/* ------------------------------------------------------------ buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px;
  cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  text-decoration: none; user-select: none;
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); background: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn.danger { color: var(--rood); }
.btn.danger:hover { border-color: var(--rood); color: var(--rood); }
.btn.confirm { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.confirm:hover { background: #000; color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--soft); border-color: transparent; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-busy::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--blue); font-weight: 600; border-bottom: 2px solid var(--blue-line); padding-bottom: 1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; padding-left: 0; padding-right: 0; }
.link:hover { border-bottom-color: var(--blue); }

.field { display: grid; gap: 5px; }
.field > label, .label { font-weight: 600; font-size: 13px; color: var(--ink); }
.field .help { color: var(--muted); font-size: 12px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface); padding: 7px 10px; min-height: 34px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea.input { resize: vertical; min-height: 72px; line-height: 1.5; }
textarea.input.grow { min-height: 34px; resize: none; overflow: hidden; }
.input:hover { border-color: #B5B3AB; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #DCE8F7; }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D6470' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); background: var(--surface); }
.segmented a, .segmented button {
  padding: 0 11px; height: 30px; display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 600; font-size: 12px;
  border: 0; border-right: 1px solid var(--line); background: none; cursor: pointer; font-variant-numeric: tabular-nums;
}
.segmented a:last-child, .segmented button:last-child { border-right: 0; }
.segmented a:hover, .segmented button:hover { background: var(--soft-2); color: var(--ink); }
.segmented [aria-current="true"], .segmented [aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ sections and panels */
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.section-title { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; line-height: 1.2; }
.section-note { color: var(--muted); font-size: 13px; }
.panel { background: var(--surface); border: 1px solid var(--line); }
.panel-pad { padding: 18px 20px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.admin-grid > *, .grid-2 > * { min-width: 0; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface);
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.notice.oranje { background: var(--oranje-wash); border-color: #EDD3A8; }
.notice.oranje svg { color: var(--oranje); }
.notice.rood { background: var(--rood-wash); border-color: #F0C5C0; }
.notice.rood svg { color: var(--rood); }
.notice.blue { background: var(--blue-wash); border-color: var(--blue-line); }
.notice.blue svg { color: var(--blue); }
.notice .notice-body { min-width: 0; flex: 1; }
.notice .notice-actions { margin-left: auto; display: flex; gap: 8px; }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0;
}
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--ink); }
table.data th[aria-sort="descending"]::after { content: " \2193"; color: var(--ink); }
table.data th[aria-sort="ascending"]::after { content: " \2191"; color: var(--ink); }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #FBFBF9; }
table.data tr.dim td { color: var(--muted); }
table.data td.name { font-weight: 600; min-width: 180px; }
table.data td .sub { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 1px; }
table.data tfoot td { font-weight: 700; border-top: 1px solid var(--line-strong); border-bottom: 0; }

/* ------------------------------------------------------------ portfolio: attention ledger */
.ledger { border-top: 1px solid var(--ink); }
.ledger-row {
  display: grid; grid-template-columns: 22px 190px minmax(0, 1fr) auto; gap: 14px; align-items: baseline;
  padding: 12px 4px 12px 0; border-bottom: 1px solid var(--line);
}
.ledger-row .lvl { align-self: center; display: flex; justify-content: center; }
.ledger-row .lvl .sq { width: 10px; height: 10px; }
.ledger-row .lvl .sq.info { background: var(--blue); }
.ledger-row .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-row .who a { color: var(--ink); }
.ledger-row .who a:hover { color: var(--blue); }
.ledger-row .what strong { font-weight: 600; margin-right: 8px; }
.ledger-row .what span { color: var(--ink-2); }
.ledger-row .go { white-space: nowrap; }
.ledger-empty { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ledger-more { padding: 10px 0; }

.pace { display: grid; gap: 4px; min-width: 150px; }
.pace-track { position: relative; height: 6px; background: var(--soft); }
.pace-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.pace-fill.over { background: var(--rood); }
.pace-proj { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.pace-today { position: absolute; top: 8px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid var(--faint); transform: translateX(-4px); }
.pace-text { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------ client header and tabs */
.client-head { padding: 26px var(--gutter) 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.client-head .page-head { margin-bottom: 16px; }
.accounts { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs { display: flex; gap: 2px; margin-bottom: -1px; }
.tabs a {
  padding: 10px 14px; color: var(--muted); font-weight: 600; border: 1px solid transparent; border-bottom: 0;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--bg); border-color: var(--line); box-shadow: inset 0 2px 0 var(--ink); }
.tabs a .count { font-variant-numeric: tabular-nums; color: var(--blue); margin-left: 4px; }

/* ------------------------------------------------------------ goal line (KPI vs target) */
.goalline { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.goalline > div { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.goalline > div:last-child { border-right: 0; }
.gl-label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.gl-value { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.gl-value.small { font-size: 26px; }
.gl-value .unit { font-size: .55em; font-weight: 700; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.gl-meta { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gl-meta .up, .gl-meta .down { font-weight: 600; }
.better { color: var(--groen); } .worse { color: var(--rood); }
.gl-target { margin-top: 12px; position: relative; height: 22px; }
.gl-target .track { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.gl-target .goal { position: absolute; top: 2px; bottom: 2px; width: 2px; background: var(--ink); }
.gl-target .dot { position: absolute; top: 5px; width: 12px; height: 12px; background: var(--blue); transform: translateX(-6px); box-shadow: 0 0 0 2px var(--surface); }
.gl-target .dot.rood { background: var(--rood); } .gl-target .dot.oranje { background: #D98A00; } .gl-target .dot.groen { background: var(--groen); }
.gl-target .lbl { position: absolute; top: -14px; font-size: 10.5px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.platform-split { display: grid; gap: 0; margin-top: 10px; }
.platform-split div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ charts */
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.chart { padding: 14px 16px 10px; border-right: 1px solid var(--line); min-width: 0; position: relative; }
.chart:last-child { border-right: 0; }
.chart-title { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.chart-title .total { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart svg { display: block; width: 100%; height: 150px; margin-top: 8px; overflow: visible; }
.chart svg text { font-family: var(--font); font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis line { stroke: var(--line-strong); }
.chart .bar { fill: var(--blue); }
.chart .bar.grey { fill: #9AA0A8; }
.chart .bar.lag { fill-opacity: .35; }
.chart .bar.hover { fill: var(--ink); fill-opacity: 1; }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.chart .line.lag { stroke-dasharray: 3 3; }
.chart .target { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.chart svg text.tlabel { fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .cross { stroke: var(--ink); stroke-width: 1; }
.chart .pt { fill: var(--blue); stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-foot { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.tip {
  position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; font-size: 12px;
  min-width: 140px; box-shadow: 0 6px 20px rgba(15, 27, 46, .18); font-variant-numeric: tabular-nums;
}
.tip .t-date { color: #B9BEC7; font-size: 11px; margin-bottom: 4px; }
.tip .t-row { display: flex; justify-content: space-between; gap: 14px; }
.tip .t-row b { font-weight: 700; }
.tip .t-note { color: #F7B955; font-size: 11px; margin-top: 4px; }
.chart-empty { height: 150px; display: grid; place-items: center; color: var(--faint); font-size: 12px; border: 1px dashed var(--line); margin-top: 8px; }

/* ------------------------------------------------------------ proposals */
.proposals { display: grid; gap: 14px; }
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.bundle { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.bundle:hover { border-color: var(--blue); }
.bundle .go { color: var(--blue); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.prop-select { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.prop-select input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.prop.is-selected { outline: 2px solid var(--blue); outline-offset: -1px; }
.prop.is-running { opacity: .6; }
.bulkbar { position: sticky; bottom: 0; z-index: 5; margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--blue); box-shadow: 0 -6px 18px rgba(22, 24, 29, .06); }
.bulkbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bulkbar-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.bulkbar [data-bulk-panel]:not(:empty) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.bulk-progress { height: 6px; background: var(--soft); position: relative; }
.bulk-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); transition: width .2s; }
@media (max-width: 640px) { .bulkbar-actions { margin-left: 0; width: 100%; } .bulkbar-actions .btn { flex: 1; } }
.prop { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.prop.is-done { background: var(--bg); }
.prop-main { padding: 16px 20px 18px; min-width: 0; }
.prop-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.prop-meta .client { color: var(--ink); font-weight: 700; font-size: 13px; }
.prop-meta .prio-1 { color: var(--rood); font-weight: 700; }
.prop-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.005em; margin-bottom: 4px; }
.prop-why { color: var(--ink-2); max-width: 78ch; }
.prop-why p { margin-bottom: .5em; }
.prop-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; margin-top: 12px; font-size: 13px; max-width: 92ch; }
.prop-facts dt { color: var(--muted); font-weight: 600; }
.prop-facts dd { margin: 0; color: var(--ink-2); }
.dryrun { margin-top: 14px; border: 1px solid var(--line); background: var(--bg); }
.dryrun-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.dryrun-act { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.dryrun-act:last-child { border-bottom: 0; }
.dryrun-act .act-type { font-size: 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; margin-bottom: 3px; }
.dryrun-act .act-type .acc { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 11.5px; }
.dryrun-act pre { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }
.dryrun-act .act-err { color: var(--rood); font-size: 12.5px; margin-top: 3px; }
.dryrun-act .act-warn { color: var(--oranje); font-size: 12.5px; margin-top: 3px; display: flex; gap: 6px; }
.dryrun-act .act-ok { color: var(--groen); font-size: 12.5px; margin-top: 3px; }
.prop-side { border-left: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--soft-2); }
.prop.is-done .prop-side { background: transparent; }
.prop-side .side-row { display: grid; gap: 2px; font-size: 12.5px; }
.prop-side .side-row .k { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.prop-side .side-row .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.prop-decide { display: grid; gap: 8px; }
.prop-decide .btn { width: 100%; }
.prop-decide .row { display: flex; gap: 8px; }
.prop-decide .row .btn { flex: 1; }
.prop-confirm { border: 1px solid var(--ink); background: var(--surface); padding: 10px; display: grid; gap: 8px; font-size: 12.5px; }
.prop-reject { display: grid; gap: 8px; }
.prop-reject textarea { min-height: 70px; font-size: 13px; }
.prop-edit textarea { font-family: var(--mono); font-size: 12px; min-height: 180px; }
.prop-status { font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.prop-status.ok { color: var(--groen); } .prop-status.fout { color: var(--rood); } .prop-status.neutral { color: var(--ink-2); }
.prop-error { font-size: 12.5px; color: var(--rood); }
.prop.compact { grid-template-columns: minmax(0, 1fr); }
.prop.compact .prop-side { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }
.prop.compact .prop-side .side-row { order: 1; }
.prop.compact .prop-decide { order: 2; margin-left: auto; min-width: 260px; max-width: 360px; }
.prop.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { from { box-shadow: 0 0 0 3px var(--blue-line); } to { box-shadow: 0 0 0 0 transparent; } }

/* ------------------------------------------------------------ filters bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 180px; height: 32px; min-height: 32px; padding-top: 4px; padding-bottom: 4px; }

/* ------------------------------------------------------------ analysis summary */
.analysis { border: 1px solid var(--line); background: var(--surface); }
.analysis-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.analysis-head .meta { font-size: 12px; color: var(--muted); }
.analysis-body { padding: 16px 18px; }
.analysis-body .summary { font-size: 14.5px; max-width: 80ch; color: var(--ink); }
.signals { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.signals li { padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); max-width: 96ch; font-size: 13px; }
.signals li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 2px; background: var(--ink); }
.signals li:last-child { border-bottom: 0; }
.signals.collapsed li:nth-child(n+4) { display: none; }

/* ------------------------------------------------------------ meting list */
.meting-list { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.meting-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 13px; }
.meting-item:last-child { border-bottom: 0; }
.meting-item .acc { font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }

/* ------------------------------------------------------------ chat */
.chat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; min-height: 520px; }
body.chat-page .main { height: 100vh; }
body.chat-page .chat-layout { flex: 1; min-height: 0; }
.chat-convs { border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.chat-convs a.btn.new { margin: 0 4px 10px; display: flex; padding: 0 12px; color: var(--ink); font-size: 13px; }
.chat-convs a.btn.new:hover { background: #fff; }
.chat-convs a { display: block; padding: 8px 10px; color: var(--ink-2); font-size: 13px; }
.chat-convs a:hover { background: var(--soft); color: var(--ink); }
.chat-convs a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.chat-convs a .when { display: block; font-size: 11.5px; color: var(--faint); font-weight: 400; margin-top: 1px; }
.chat-convs .group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread { flex: 1; overflow-y: auto; padding: 24px 32px; scroll-behavior: smooth; }
.thread-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.msg-user { align-self: flex-end; max-width: 78%; background: var(--soft); border: 1px solid var(--line); color: var(--ink); padding: 10px 14px; white-space: pre-wrap; }
.msg-ai { max-width: 100%; color: var(--ink); }
.msg-ai .md > *:first-child { margin-top: 0; }
.md p { margin: 0 0 .7em; max-width: 76ch; }
.md ul, .md ol { margin: 0 0 .7em; padding-left: 20px; }
.md li { margin: 2px 0; }
.md h3, .md h4 { font-family: var(--display); font-size: 16px; margin: 1em 0 .4em; }
.md table { border-collapse: collapse; margin: .4em 0 .9em; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); display: block; overflow-x: auto; max-width: 100%; }
.md th, .md td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.md th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.md td.r, .md th.r { text-align: right; }
.md code { background: var(--soft); padding: 1px 4px; }
.md strong { font-weight: 700; }
.msg-tool { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 3px 9px 3px 8px; border: 1px solid var(--line); background: var(--surface); align-self: flex-start; }
.msg-tool svg { width: 13px; height: 13px; }
.msg-tool.live svg { animation: spin 1s linear infinite; }
.msg-note { font-size: 12.5px; color: var(--blue); display: flex; gap: 6px; align-items: center; }
.msg-error { color: var(--rood); font-size: 13px; border: 1px solid #F0C5C0; background: var(--rood-wash); padding: 8px 12px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.composer { border-top: 1px solid var(--line); padding: 14px 32px 18px; background: var(--bg); }
.composer-inner { max-width: 820px; margin: 0 auto; display: grid; gap: 8px; }
.composer-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line-strong); background: var(--surface); }
.composer-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #DCE8F7; }
.composer textarea { border: 0; resize: none; padding: 11px 14px; min-height: 46px; max-height: 220px; background: transparent; line-height: 1.45; }
.composer textarea:focus { outline: none; }
.composer .send { margin: 6px; align-self: end; }
.composer-hint { font-size: 11.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; }
.starters button { border: 1px solid var(--line); background: var(--surface); padding: 6px 11px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; text-align: left; }
.starters button:hover { border-color: var(--ink-2); color: var(--ink); }
.chat-empty { margin: 8vh auto 0; max-width: 560px; }
.chat-empty h2 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin-bottom: 8px; }
.chat-empty p { color: var(--ink-2); margin-bottom: 18px; }
.chat-side { border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; display: grid; gap: 18px; align-content: start; background: var(--soft-2); }
.chat-side h3 { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ briefing */
.briefing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.bsec { border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 30px; }
.bsec-title { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.bfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.bfields .wide { grid-column: 1 / -1; }
.field.is-missing > label::after { content: "verplicht"; margin-left: 8px; font-size: 11px; color: var(--oranje); font-weight: 600; }
.field.is-changed .input { border-color: var(--blue); background: #F7FAFE; }
.bside { position: sticky; top: 20px; display: grid; gap: 16px; }
.bside .panel-pad { display: grid; gap: 10px; }
.meter { height: 6px; background: var(--soft); position: relative; }
.meter span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.versions { display: grid; font-size: 12.5px; }
.versions a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.versions a:hover { color: var(--ink); }
.versions a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.versions .v { font-family: var(--mono); color: var(--muted); }
.versions .note { grid-column: 2; color: var(--muted); font-weight: 400; }
.import-box { display: grid; gap: 10px; }
.import-box textarea { min-height: 120px; }
.drop { border: 1px dashed var(--line-strong); padding: 10px 12px; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop input[type=file]:focus-visible + label.btn { outline: 2px solid var(--blue); outline-offset: 2px; }
.drop .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
table.data tr.day td { background: var(--soft-2); font-weight: 700; font-size: 12px; padding-top: 7px; padding-bottom: 7px; color: var(--ink-2); }
table.data tr.day:hover td { background: var(--soft-2); }
.count-x { display: inline-block; min-width: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.savebar { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; align-items: center; justify-content: flex-end; z-index: 5; }
.savebar .state-text { margin-right: auto; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ admin */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.form-row .field { flex: 1; min-width: 160px; }
.capbar { display: grid; grid-template-columns: 80px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 13px; padding: 6px 0; }
.capbar .track { height: 8px; background: var(--soft); position: relative; }
.capbar .track span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.capbar .track span.full { background: var(--rood); }
details.more summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 10px; }

/* ------------------------------------------------------------ auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-brand { background: var(--navy); color: var(--on-navy); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand img { height: 14px; width: auto; filter: brightness(0) invert(1); align-self: flex-start; opacity: .85; }
.auth-brand .claim { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.04; letter-spacing: -.025em; max-width: 13ch; }
.auth-brand .claim em { font-style: normal; color: var(--on-navy-muted); }
.auth-brand .fine { color: var(--on-navy-muted); font-size: 13px; max-width: 46ch; }
.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-form form { width: 100%; max-width: 360px; display: grid; gap: 16px; }
.auth-form h1 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; }
.auth-form .intro { color: var(--muted); margin-top: -8px; }
.auth-form .btn { height: 40px; }
.auth-form.public { place-items: start center; overflow-y: auto; }
.public-body { width: 100%; max-width: 560px; display: grid; gap: 20px; }
.public-body h2 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.public-body p, .public-body li { font-size: 14px; line-height: 1.55; }
.public-steps, .public-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.public-body .btn { display: inline-flex; align-items: center; gap: 8px; }
.twofa-wrap { width: 100%; max-width: 380px; display: grid; gap: 14px; }
.twofa { display: grid; gap: 16px; }
.twofa h1 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.twofa .intro { color: var(--ink-2); margin: -6px 0 0; }
.twofa .qr { width: 196px; height: 196px; padding: 8px; background: #fff; border: 1px solid var(--line); }
.twofa .qr img, .twofa .qr canvas { display: block; width: 180px; height: 180px; }
.twofa .secret { display: inline-block; margin-top: 4px; font-size: 13px; letter-spacing: .04em; background: var(--soft); padding: 3px 6px; word-break: break-all; }
.twofa .code-input { font-size: 22px; letter-spacing: .2em; height: 48px; font-weight: 600; }
.twofa .btn { height: 40px; }
.twofa-out { margin-top: 4px; }
.form-error { color: var(--rood); background: var(--rood-wash); border: 1px solid #F0C5C0; padding: 8px 12px; font-size: 13px; }

/* ------------------------------------------------------------ toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; max-width: 420px; }
.toast { background: var(--ink); color: #fff; padding: 11px 14px; font-size: 13px; box-shadow: 0 8px 24px rgba(15, 27, 46, .2); display: flex; gap: 10px; align-items: flex-start; animation: toastin .2s var(--ease); }
.toast.err { background: var(--rood); }
.toast.ok { background: var(--groen); }
@keyframes toastin { from { transform: translateY(6px); opacity: 0; } }

.skeleton { background: var(--soft); animation: blink 1.6s ease-in-out infinite; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .chat-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .chat-side { display: none; }
  .goalline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goalline > div:nth-child(2) { border-right: 0; }
  .goalline > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .grid-2, .briefing-layout, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .bside { position: static; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .chart { border-right: 0; border-bottom: 1px solid var(--line); }
  .chart:last-child { border-bottom: 0; }
  .prop { grid-template-columns: minmax(0, 1fr); }
  .prop-side { border-left: 0; border-top: 1px solid var(--line); }
  .ledger-row { grid-template-columns: 22px 150px minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { padding: 14px 16px; }
  .rail-nav { display: flex; padding: 0 8px; }
  .rail-head, .rail-filter, .rail-clients { display: none; }
  .rail-foot { margin: 0 0 0 auto; border-top: 0; padding: 0 8px; display: flex; }
  .rail-user { display: none; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); height: auto; }
  body.chat-page .main { height: auto; }
  .chat-convs { display: none; }
  .thread { padding: 16px; min-height: 50vh; }
  .composer { padding: 12px 16px; position: sticky; bottom: 0; }
  .ledger-row { grid-template-columns: 16px minmax(0, 1fr); gap: 4px 10px; }
  .ledger-row .what, .ledger-row .go { grid-column: 2; }
  .goalline { grid-template-columns: minmax(0, 1fr); }
  .goalline > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .bfields { grid-template-columns: minmax(0, 1fr); }
  .meting-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 28px 24px; gap: 40px; }
  .auth-brand .claim { font-size: 32px; }
  .page-title { font-size: 26px; }
  .tabs { overflow-x: auto; }
  .prop.compact .prop-decide { min-width: 0; width: 100%; }
}
@media (max-width: 900px) {
  table.data.stack-sm thead { display: none; }
  table.data.stack-sm, table.data.stack-sm tbody, table.data.stack-sm tr, table.data.stack-sm td { display: block; width: 100%; }
  table.data.stack-sm tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data.stack-sm tbody tr:last-child { border-bottom: 0; }
  table.data.stack-sm td { padding: 0; border: 0; text-align: left; white-space: normal; }
  table.data.stack-sm td.name { grid-column: 1 / -1; min-width: 0; }
  table.data.stack-sm td.wide-sm { grid-column: 1 / -1; }
  table.data.stack-sm td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  table.data.stack-sm td.num { text-align: left; }
  table.data.stack-sm .pace { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ agencies: onboarding, signing, costs */
.brand .ws-name { font-size: 12px; font-weight: 600; color: var(--on-navy-muted); letter-spacing: .01em; }
.rail a.ri.rail-new { margin: 2px 10px 6px; color: var(--on-navy); border: 1px dashed var(--navy-line); }
.rail a.ri.rail-new svg { width: 14px; height: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.steps li { display: flex; gap: 12px; padding: 16px 18px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps li > div { display: grid; gap: 3px; font-size: 13.5px; }
.steps li .muted { font-size: 12.5px; }
.steps .step-n { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-weight: 700; font-size: 12px; color: var(--muted); }
.steps li.done .step-n { background: var(--groen); border-color: var(--groen); color: #fff; }
.steps li.now { background: var(--blue-wash); }
.steps li.now .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps li { border-right: 0; border-bottom: 1px solid var(--line); } }

.checklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.checklist li:last-child { border-bottom: 0; }
.checklist li > span:nth-child(2) { flex: 1; }
.checklist .tick { flex: none; width: 18px; height: 18px; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.checklist .tick svg { width: 12px; height: 12px; color: #fff; }
.checklist li.done .tick { background: var(--groen); border-color: var(--groen); }
.checklist li.done > span:nth-child(2) { color: var(--muted); }
.section.onboard { margin-bottom: 18px; }

.contract-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .contract-grid { grid-template-columns: 1fr; } }
.contract { padding: 28px 32px; font-size: 14.5px; line-height: 1.6; max-width: 72ch; }
.contract p { margin: 0 0 4px; }
.contract .contract-item { padding-left: 18px; position: relative; }
.contract .contract-item::before { content: ""; position: absolute; left: 4px; top: .75em; width: 5px; height: 1px; background: var(--ink); }
.contract .contract-gap { height: 12px; }
.contract .contract-hash { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); word-break: break-all; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
label.check input { margin-top: 3px; flex: none; }
label.check.dim { opacity: .55; cursor: not-allowed; }

.new-client { display: grid; gap: 16px; max-width: 860px; }
.pick-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px 2px; }
.new-client-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; bottom: 12px; }
.nc-cost { font-family: var(--display); font-weight: 700; font-size: 17px; }
.secret-box { margin-top: 12px; }
.secret-box pre { margin: 8px 0 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--blue-line); white-space: pre-wrap; font-size: 12.5px; }
table.data tr.total td { border-top: 1px solid var(--line-strong); background: var(--soft-2); }
