/* EVC app styles. Tokens first; dark is default, light via [data-theme=light]. */
:root, [data-theme="dark"] {
  --bg: #0b0f1a; --bg2: #10162a; --panel: #131a30; --line: #222c48; --text: #e6e9f2; --muted: #8b93ad;
  --accent: #2ee6c5; --accent2: #7c6cff; --accent-ink: #04131a;
  --pos: #2ee6a0; --high: #45d0ff; --neu: #6b7390; --neg: #ff5d73; --warn: #ffb547;
  --shadow: 0 10px 30px rgba(0,0,0,.35); --radius: 14px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7fb; --bg2: #eef0f7; --panel: #ffffff; --line: #e1e5f0; --text: #141a2e; --muted: #5d6582;
  --accent: #0aa78f; --accent2: #5b4bdb; --accent-ink: #ffffff;
  --pos: #109a64; --high: #0b84c6; --neu: #8a91a8; --neg: #d93a50; --warn: #b8740a;
  --shadow: 0 8px 24px rgba(20,26,46,.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 8px 0; color: var(--muted); }
code { font: 13px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; background: var(--bg2); padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; } .break { word-break: break-all; }
.spacer { flex: 1; }
.lead { color: var(--muted); max-width: 820px; margin: 4px 0 18px; }

/* layout */
body.has-side { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.side nav a { color: var(--text); padding: 8px 10px; border-radius: 9px; font-size: 14px; }
.side nav a:hover { background: var(--panel); text-decoration: none; }
.side nav a[aria-current="page"] { background: var(--panel); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 210deg, var(--accent), var(--accent2), var(--accent)); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.ws { margin-top: 14px; font-size: 13px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.top { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
main#content { padding: 24px; flex: 1; width: 100%; max-width: 1280px; }
body.plain main#content { margin: 0 auto; }
.foot { padding: 16px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.menu { display: none; }
.narrow { max-width: 640px; margin: 0 auto; }
.wide-page { max-width: 1100px; margin: 0 auto; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > .panel { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.card.link:hover { border-color: var(--accent); text-decoration: none; }

/* forms */
form.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row.tight { gap: 6px; margin-top: 8px; }
.row > label { flex: 1; min-width: 140px; }
.grow { flex: 1; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.grid-form .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; min-width: 0; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .btn { font: inherit; font-weight: 600; border-radius: 10px; padding: 9px 16px; border: 1px solid transparent; cursor: pointer; color: var(--text); background: var(--bg2); display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
button.primary, .btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent2))); color: var(--accent-ink); }
button.secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
button.danger { background: var(--neg); color: #fff; }
button.ghost, a.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 6px 10px; border-radius: 9px; }
.small { font-size: 13px; }
button.small, a.small.ghost { padding: 5px 9px; font-size: 13px; }
.danger-text { color: var(--neg) !important; }
.neg-text { color: var(--neg); } .ok-text { color: var(--pos); }
.icon { background: transparent; border: 0; font-size: 20px; padding: 4px 8px; }
.filter { margin-bottom: 12px; max-width: 420px; }

/* auth */
.auth { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 40px; align-items: center; min-height: 70vh; max-width: 1000px; margin: 0 auto; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 18px; }
.auth.rate { grid-template-columns: minmax(300px, 640px); justify-content: center; }
.rate fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.rate legend { padding: 0 6px; color: var(--muted); }
.rate label.check input { width: auto; flex: none; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 18px 0; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.flowart { width: 100%; max-width: 460px; }
.fa-edge { fill: none; stroke: var(--line); stroke-width: 3; }
.fa-node { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.fa-dot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

/* banners, tags, pills */
.banner { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.top + .banner { margin: 12px 24px 0; }
.banner.ok { border-color: color-mix(in srgb, var(--pos) 50%, var(--line)); background: color-mix(in srgb, var(--pos) 10%, var(--panel)); }
.banner.err { border-color: color-mix(in srgb, var(--neg) 50%, var(--line)); background: color-mix(in srgb, var(--neg) 10%, var(--panel)); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn) 12%, var(--panel)); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.tag.ok { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, var(--line)); }
.tag.warn { color: var(--warn); }
.pill { display: inline-block; min-width: 38px; text-align: center; font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--bg2); }
.pill.r-pos, .r-pos { color: var(--pos); } .pill.r-high, .r-high { color: var(--high); } .pill.r-neg, .r-neg { color: var(--neg); } .pill.r-neu, .r-neu { color: var(--neu); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { font-size: 26px; letter-spacing: -.02em; }
.kpi strong.sm { font-size: 15px; }

/* lists and tables */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.list li:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.bar { height: 6px; background: var(--bg2); border-radius: 4px; overflow: hidden; width: 90px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* reactions */
.reactions { display: flex; flex-wrap: wrap; gap: 4px; }
.rx { padding: 4px 8px; font-size: 12px; font-weight: 600; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.rx:hover { color: var(--text); border-color: var(--accent); }
.rx.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.rx-100:hover, .rx-20:hover { border-color: var(--neg); }
.reactions.big .rx { padding: 12px 16px; font-size: 14px; flex-direction: column; min-width: 96px; }
.reactions.big .rx small { font-weight: 400; opacity: .7; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.inline-h { display: inline; margin: 0; }
details[open] > summary { margin-bottom: 14px; }

/* org tree */
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { padding: 10px 0 10px var(--indent); border-bottom: 1px solid var(--line); }
.tree-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kindtag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.k-company > .tree-row strong { font-size: 17px; }
.desc { margin-top: 2px; }

/* schema */
.schema { width: 100%; max-width: 900px; display: block; margin: 0 auto; }
.schema .edge { fill: none; opacity: .85; }
.schema .edge.r-pos { stroke: var(--pos); } .schema .edge.r-high { stroke: var(--high); } .schema .edge.r-neg { stroke: var(--neg); } .schema .edge.r-neu { stroke: var(--neu); }
.schema .arrowhead { fill: var(--muted); }
.schema .node circle { fill: var(--panel); stroke: var(--accent); stroke-width: 2.5; }
.schema .node.k-company circle { stroke: var(--accent2); stroke-width: 3; }
.schema text { fill: var(--text); font-size: 13px; font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); justify-content: center; }
.sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: currentColor; }
.sw.r-pos { color: var(--pos); } .sw.r-neu { color: var(--neu); } .sw.r-neg { color: var(--neg); }

/* improvement board */
.board { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 120px; }
.col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.tile p { margin: 0; }
.tile input, .tile select { padding: 6px 8px; font-size: 13px; }
.q h2 { font-size: 15px; }
.secret code { font-size: 16px; letter-spacing: .08em; }

@media (max-width: 900px) {
  body.has-side { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 20; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .menu { display: inline-flex; }
  .grid2, .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  main#content { padding: 16px; }
  .top { padding: 10px 16px; flex-wrap: wrap; }
  .board { grid-template-columns: repeat(6, 240px); }
}
@media (prefers-reduced-motion: reduce) { .fa-dot { display: none; } .side { transition: none; } }
.qr { background: #fff; padding: 8px; border-radius: 10px; }

/* single sign-on */
a.btn { text-decoration: none; }
.btn.secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.sso-buttons { display: flex; flex-direction: column; gap: 10px; }
.sso-buttons .btn { width: 100%; }
.sso-ldap { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.sso-ldap > summary { font-weight: 600; }
.sso-urls dt { color: var(--muted); font-size: 13px; margin-top: 10px; }
.sso-urls dd { margin: 4px 0 0; }
.help { color: var(--muted); font-size: 14px; }
.help ol { margin: 6px 0 0; padding-left: 20px; }
textarea.mono { font: 12px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; min-height: 120px; }

/* UX v0.1 shell: grouped navigation, record drawer, Home */
.side .grp { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 10px 4px; list-style: none; cursor: default; }
.side details.more summary { cursor: pointer; }
.side details.more summary::-webkit-details-marker { display: none; }
.side details.more summary::after { content: " +"; }
.side details.more[open] summary::after { content: " -"; }
.side details.more a { display: block; }
.side nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { background: var(--neg); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; }
a.btn.small { padding: 6px 12px; font-size: 13px; }
a.btn.ghost { background: transparent; border: 1px solid var(--line); }
.record { white-space: nowrap; }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: 440px; max-width: 100vw; border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 22px; box-shadow: -20px 0 40px rgba(0,0,0,.35); }
dialog.drawer::backdrop { background: rgba(5, 8, 16, .55); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer .stack label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.drawer .row label { flex: 1; }
.wide { width: 100%; }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; justify-items: start; }
.empty p { margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.next-step { display: flex; align-items: center; gap: 18px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.next-step > div { flex: 1; }
.next-step h2 { margin: 4px 0; font-size: 18px; }
.next-step p { margin: 0; }
.banner.seam-found { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.home-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.home-grid .panel { margin: 0 0 16px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.barbox { display: flex; flex-direction: column; gap: 2px; }
.barbox strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.barbox .bar { width: 100%; margin: 4px 0 0; }
.inbox-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.scale .rx { padding: 7px 4px; }
.rx-100, .rx-20 { color: var(--neg); }
.rx0 { color: var(--neu); }
.rx20, .rx100 { color: var(--pos); }
.rx500 { color: var(--high); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.checklist li.done, .checklist li.now { color: var(--text); }
.ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.checklist li.done .ck { background: var(--pos); border-color: var(--pos); color: #04131a; }
.checklist li.now .ck { border-color: var(--accent); }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .bars { grid-template-columns: repeat(2, 1fr); }
  .scale { grid-template-columns: repeat(3, 1fr); }
  .scale .rx { padding: 11px 4px; font-size: 13px; }
  .next-step { flex-direction: column; align-items: flex-start; }
  .record { order: -1; }
}

/* ---------- U2: AI agents, Handoffs feed ---------- */
.ai { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--accent2); border: 1.5px solid var(--accent2); border-radius: 4px; padding: 0 4px; line-height: 15px; vertical-align: 1px; }
.warn-text { color: var(--warn); }
.k-agent .tree-row strong { color: var(--accent2); }
.node.k-agent rect { fill: color-mix(in srgb, var(--accent2) 30%, var(--panel)); stroke: var(--accent2); stroke-width: 2; }
.add-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.add-pair .panel { margin: 0; }
.feed-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: 999px; padding: 6px 13px; font-size: 13px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.unit-pick { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.feed { display: grid; gap: 10px; margin-bottom: 18px; }
.card-ev { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.card-ev.below { border-left: 3px solid var(--neg); }
.card-title { font-weight: 700; color: var(--text); text-decoration: none; }
.card-title:hover { text-decoration: underline; }
.card-main { display: grid; gap: 3px; min-width: 0; }
.card-side { text-align: right; white-space: nowrap; }
.card-rate { grid-column: 1 / -1; }
.card-rate.scale { margin-top: 6px; }
@media (max-width: 900px) {
  .add-pair { grid-template-columns: 1fr; }
  .feed-filter { flex-direction: column; align-items: stretch; }
}
[hidden] { display: none !important; }

/* ---------- U3: Seams ---------- */
.tag.bad { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 45%, var(--line)); }
.sw.dash { background: none; border-top: 3px dashed var(--muted); height: 0; }
.schema .edge.few { stroke-dasharray: 7 6; }
.schema a:hover .edge { opacity: 1; filter: brightness(1.25); }
.head .spacer { flex: 1; }
.seam-list { display: grid; gap: 10px; margin-bottom: 14px; }
.seam-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; color: var(--text); text-decoration: none; }
.seam-card:hover { border-color: var(--accent); }
.seam-card.below { border-left: 4px solid var(--neg); }
.seam-main { display: grid; gap: 4px; min-width: 0; }
.seam-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.seam-tags:empty { display: none; }
.seam-score { font-size: 28px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.seam-score small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.row.actions { gap: 10px; margin: 4px 0 16px; flex-wrap: wrap; }
.weeks { display: grid; gap: 8px; }
.week { display: grid; grid-template-columns: 90px 1fr 32px 54px; gap: 10px; align-items: center; }
.week .bar { margin: 0; }
@media (max-width: 900px) {
  .week { grid-template-columns: 80px 1fr 28px 50px; }
  .seam-score { font-size: 22px; }
}
.week .bar { width: 100%; }

/* value cycle */
.stages { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 8px 0 16px; }
.stages .st { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; background: var(--panel); }
.stages .st b { display: block; font-size: 13px; }
.stages .st.done { opacity: .7; }
.stages .st.now { border-color: var(--accent, var(--pos)); box-shadow: 0 0 0 1px var(--accent, var(--pos)) inset; }
.steps-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.steps-bar a, .steps-bar span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.steps-bar .on { border-color: var(--pos); font-weight: 600; }
.checks li { list-style: none; margin: 4px 0; }
.checks .ok::before { content: "¹3  "; color: var(--pos); }
.checks .no::before { content: "¹7  "; color: var(--neg); }
.charter p { margin: 4px 0 10px; white-space: pre-wrap; }
@media (max-width: 700px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media print {
  .side, header.top, .no-print, dialog, .banner { display: none !important; }
  body.has-side .main { margin: 0 !important; }
  .charter { border: 0; }
}
