:root {
  --bg: #f6f7f9; --panel: #fff; --ink: #1c2430; --muted: #5b6676; --line: #dfe3e9; --accent: #1f5fbf;
  --accent-ink: #fff; --crit: #b42318; --crit-bg: #fef3f2; --risk: #b54708; --risk-bg: #fffaeb;
  --opp: #175cd3; --opp-bg: #eff8ff; --ok: #067647; --ok-bg: #ecfdf3; --focus: #f79009;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hidden { display: none !important; }
.synthetic-banner { background: #7a2e0e; color: #fff; text-align: center; font-weight: 600; padding: 4px 8px; font-size: 12px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 650; font-size: 16px; color: var(--ink); text-decoration: none; }
.badge { font-size: 11px; background: #e8eef9; color: var(--accent); padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.dr { margin-left: auto; color: var(--muted); }
.main { max-width: 1320px; margin: 0 auto; padding: 20px; }
.loading { color: var(--muted); text-align: center; padding: 40px; }
h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 17px; margin: 0 0 8px; } h3 { font-size: 15px; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .workspace { grid-template-columns: 1fr !important; } }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 6px; padding: 7px 14px; font: inherit; font-weight: 550; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--crit); border-color: #f4c7c3; }
.btn-sm { padding: 3px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.field, div.field { display: block; margin-bottom: 12px; }
label.field > span.lbl, div.field > label.lbl { display: block; font-weight: 550; margin-bottom: 3px; }
[aria-invalid=true] { border-color: var(--crit) !important; box-shadow: 0 0 0 2px var(--crit-bg); }
.req { color: var(--crit); margin-left: 3px; }
.help { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; border: 1px solid #c8ced8; border-radius: 6px; padding: 7px 9px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 76px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.check input { margin-top: 3px; width: 16px; height: 16px; }
.err-list { background: var(--crit-bg); border: 1px solid #f4c7c3; color: var(--crit); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }
.err-list ul { margin: 4px 0 0 18px; padding: 0; }
.notice { border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); } .notice.warn { background: var(--risk-bg); color: var(--risk); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
tbody tr:hover { background: #fafbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.tag.crit { background: var(--crit-bg); color: var(--crit); } .tag.risk { background: var(--risk-bg); color: var(--risk); }
.tag.opp { background: var(--opp-bg); color: var(--opp); } .tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.muted { background: #eef0f3; color: var(--muted); }
.stat .n { font-size: 24px; font-weight: 700; } .stat .l { color: var(--muted); font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 28px; }
.workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.stage-nav { list-style: none; margin: 0; padding: 0; }
.stage-nav a { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.stage-nav a:hover { background: #eef2f7; } .stage-nav a[aria-current=page] { background: #e8eef9; font-weight: 600; }
.pip { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; background: #eef0f3; color: var(--muted); }
.pip.done { background: var(--ok); color: #fff; }
.opt { margin-left: auto; font-size: 11px; color: var(--muted); }
.progress { height: 6px; background: #e6e9ee; border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
.progress > i { display: block; height: 100%; background: var(--ok); width: 0; }
.figures { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.figures b { color: var(--ink); font-variant-numeric: tabular-nums; }
.why { background: #f7f9fc; border-left: 3px solid var(--accent); padding: 8px 12px; margin: 8px 0 14px; border-radius: 0 6px 6px 0; }
.why p { margin: 2px 0; }
.callout { border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.callout.critical_warning { border-left-color: var(--crit); } .callout.loss_risk { border-left-color: var(--risk); }
.callout.opportunity { border-left-color: var(--opp); } .callout.strength_confirmed { border-left-color: var(--ok); }
.callout h4 { margin: 4px 0 6px; font-size: 14px; }
.ev { margin: 6px 0 0; font-size: 13px; }
.ev .k { display: inline-block; min-width: 76px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ev .k.verified { color: var(--ok); } .ev .k.historical { color: #6941c6; } .ev .k.inference { color: var(--muted); }
.ev .cite { color: var(--muted); font-size: 12px; }
.status { font-weight: 700; } .status.CONTRADICTED, .status.MISSING { color: var(--crit); } .status.CLAIMED { color: var(--risk); } .status.DOCUMENTED, .status.VERIFIED { color: var(--ok); }
.finding-row { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0 0 10px; }
.finding-row legend { font-weight: 600; padding: 0 4px; }
.reasons { margin: 4px 0 6px 18px; padding: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; }
.elements { list-style: none; padding: 0; margin: 6px 0; } .elements li { padding: 2px 0; }
.elements .yes::before { content: "\2713  "; color: var(--ok); font-weight: 700; } .elements .no::before { content: "\2717  "; color: var(--crit); font-weight: 700; }
.adverse { white-space: pre-wrap; font-family: Georgia, serif; background: #fbfaf7; border: 1px dashed #c9c2b0; padding: 12px 14px; border-radius: 6px; }
.modal-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 8px; padding: 18px; max-width: 440px; width: calc(100% - 32px); }
.login { max-width: 380px; margin: 60px auto; }
.toast { position: fixed; bottom: 18px; right: 18px; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 6px; z-index: 60; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.card { overflow-x: auto; } /* wide tables scroll inside their card, never the page */
td, th { overflow-wrap: break-word; }
.dim { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
fieldset.mdm { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
@media (max-width: 640px) {
  /* Tables become stacked cards on phones: one record per block, label above value. */
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; padding: 6px 4px; }
  td { border: 0; padding: 4px 8px; }
  td.num { text-align: left; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .main { padding: 12px; } .card { padding: 12px; } .nav { flex-wrap: wrap; gap: 8px; }
  .row { align-items: stretch; } .btn { justify-content: center; }
}

/* documentation chain on each finding */
.chain { display: flex; flex-wrap: wrap; gap: .25rem .75rem; list-style: none; padding: 0; margin: .25rem 0; }
.chain li.ok { color: var(--ok, #1b6e3a); }
.chain li.gap { color: var(--crit, #a4262c); }
fieldset.src { border: 1px dashed var(--line, #ccc); padding: .5rem; }

fieldset[aria-invalid="true"], [data-k][aria-invalid="true"] { outline: 3px solid var(--crit, #a4262c); outline-offset: 2px; }
.review-fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0; font-size: 0.92em; }
.review-fields dt { font-weight: 600; color: var(--muted, #555); } .review-fields dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .review-fields { grid-template-columns: 1fr; } .review-fields dd { margin-bottom: 6px; } }
.narrative { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 8px 0; max-height: 420px; overflow-y: auto; background: #fafafa; }

/* ---- IDR Operations shell ---- */
.shell { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 24px); }
.side { background: #16212e; color: #dbe3ee; padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; font-weight: 700; font-size: 16px; padding: 4px 10px 14px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: #dbe3ee; text-decoration: none; padding: 7px 10px; border-radius: 6px; }
.side nav a:hover { background: #22303f; }
.side nav a[aria-current="page"] { background: var(--accent); color: #fff; }
.side-foot { color: #9fb0c3; padding: 14px 10px; }
.content { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 8px 20px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 44px; }
.spacer { flex: 1; }
.login { max-width: 380px; margin: 60px auto; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tile-v { font-size: 24px; font-weight: 700; } .tile-l { font-weight: 600; color: var(--muted); font-size: 13px; }
.tile.crit { border-color: #f4c7c3; background: var(--crit-bg); } .tile.crit .tile-v { color: var(--crit); }
.tile.risk { border-color: #fedf89; background: var(--risk-bg); } .tile.risk .tile-v { color: var(--risk); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.col { background: #f0f2f5; border-radius: 8px; padding: 8px; min-height: 120px; }
.col header { font-size: 13px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.count { background: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.tip { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: #c8d1dc; color: #fff; font-size: 11px; align-items: center; justify-content: center; cursor: help; }
.card-mini { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin-bottom: 6px; color: var(--ink); text-decoration: none; }
.card-mini:hover { border-color: var(--accent); } .card-mini.hot { border-left: 4px solid var(--crit); }
.filters { margin: 8px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.tabs a { padding: 7px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.pathway { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 8px 0 12px; }
.pathway li { font-size: 12px; padding: 3px 9px; border-radius: 12px; background: #eef0f3; color: var(--muted); }
.pathway li.done { background: var(--ok-bg); color: var(--ok); } .pathway li.current { background: var(--accent); color: #fff; font-weight: 650; }
.next { border-left: 4px solid var(--accent); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; } dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; }
ul.plain, ul.check { list-style: none; padding: 0; margin: 0 0 8px; } ul.plain li, ul.check li { padding: 3px 0; }
ul.check li.ok { color: var(--ok); } ul.check li.todo { color: var(--risk); }
ol.timeline { padding-left: 20px; } ol.timeline li { margin-bottom: 8px; }
ul.notes { list-style: none; padding: 0; } ul.notes li { border-bottom: 1px solid var(--line); padding: 6px 0; }
.prewrap { white-space: pre-wrap; } .mono { font-family: ui-monospace, Menlo, monospace; }
pre.copy { background: #f6f7f9; border: 1px solid var(--line); border-radius: 6px; padding: 8px; white-space: pre-wrap; }
.span2 { grid-column: 1 / -1; } .chk { display: inline-flex; gap: 6px; align-items: center; }
tr.muted td { color: var(--muted); } details summary { cursor: pointer; color: var(--accent); }
.bars { display: grid; gap: 6px; } .bar-row { display: grid; grid-template-columns: 260px 1fr 40px; gap: 8px; align-items: center; }
.bar { background: #eef0f3; height: 14px; border-radius: 7px; overflow: hidden; } .bar-fill { display: block; height: 100%; background: var(--accent); }
.toast { position: fixed; bottom: 18px; right: 18px; background: #1c2430; color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 50; }
.asof input { margin-left: 4px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .side nav { flex-direction: row; flex-wrap: wrap; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bar-row { grid-template-columns: 1fr 1fr 30px; }
  .main { padding: 12px 16px; }
}
.filters select, .filters input { width: auto; min-width: 200px; flex: 0 1 260px; }
.overdue-line { color: var(--crit); font-weight: 600; }
@media (max-width: 640px) { .filters select, .filters input { flex: 1 1 100%; } }
.col-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: inherit; }
.col-btn:hover strong { text-decoration: underline; } .col-on { outline: 2px solid var(--accent); }
.sort { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.bulkbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--opp-bg); border: 1px solid #b2ddff; border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
.crit-text { color: var(--crit); } details.inline { display: inline-block; } details.inline > summary { list-style: none; }
a.tile { color: inherit; text-decoration: none; } a.tile:hover { border-color: var(--accent); }
.tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:root[data-theme="dark"] { --bg: #0f141b; --panel: #18202b; --ink: #e6ebf2; --muted: #9aa7b8; --line: #2b3646; --accent: #5b9bff;
  --crit: #ff8a80; --crit-bg: #3a1c1c; --risk: #ffc266; --risk-bg: #33280f; --opp: #8ab8ff; --opp-bg: #13253f; --ok: #6fdba0; --ok-bg: #12301f; }
:root[data-theme="dark"] .btn-secondary, :root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea,
:root[data-theme="dark"] .card-mini, :root[data-theme="dark"] .pipe, :root[data-theme="dark"] .count { background: #121821; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .col, :root[data-theme="dark"] pre.copy, :root[data-theme="dark"] .bar, :root[data-theme="dark"] .pathway li, :root[data-theme="dark"] .tag.muted { background: #1f2834; color: var(--ink); }
:root[data-theme="dark"] .bulkbar { border-color: #2c4a73; }

/* QA round 3 usability fixes */
input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; max-width: 100%; }
label.field input:not([type]), label.field input[type="text"], label.field select, label.field textarea { width: 100%; }
.board { grid-auto-columns: minmax(170px, 1fr); }
.tip-wrap { position: relative; display: inline-flex; }
.tip { border: 0; cursor: pointer; background: #5b6676; color: #fff; }
.popover { position: absolute; top: 22px; left: 0; z-index: 20; width: 220px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 12px; font-weight: 400; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.actions-menu .menu-panel { position: absolute; right: 20px; z-index: 30; width: min(560px, 92vw); }
details.inline[open] > summary { margin-bottom: 6px; }
ol.steps { padding-left: 0; list-style: none; } ol.steps li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.modal.wide { width: min(760px, 94vw); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--panel); color: var(--ink); padding: 6px 10px; border-radius: 6px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .side nav { display: none; } .side nav.open { display: flex; flex-direction: column; }
}
:root[data-theme="dark"] { --accent: #2563eb; }
:root[data-theme="dark"] tbody tr:hover, :root[data-theme="dark"] tbody tr:hover td { background: #222c39 !important; color: var(--ink); }
:root[data-theme="dark"] .popover { background: #121821; }
:root[data-theme="dark"] a { color: #8ab8ff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .side nav a[aria-current="page"] { color: #fff; }
:root[data-theme="dark"] .tabs a.on { color: #8ab8ff; border-bottom-color: #8ab8ff; }
:root[data-theme="dark"] .side nav a { color: #dbe3ee; }
.gsi-btn { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: 1px solid #747775; border-radius: 4px;
  background: #fff; color: #1f1f1f; font: 500 14px/20px Roboto, "Segoe UI", Arial, sans-serif; text-decoration: none; letter-spacing: .25px; margin: 8px 0 16px; }
.gsi-btn:hover { box-shadow: 0 1px 2px rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15); }
.gsi-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:root[data-theme="dark"] .gsi-btn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
.login-foot { margin-top: 16px; } details.fallback { margin: 12px 0; } tr.warn-row td { background: var(--crit-bg); }
.shell.auth { grid-template-columns: 1fr; } .shell.auth .side, .shell.auth .top { display: none; }

/* QA4 D4/D20: claim-line inputs keep a readable width; the editor scrolls inside its card at narrow widths */
.line-editor { overflow-x: auto; max-width: 100%; }
.line-editor table { min-width: 1150px; }
.line-editor input[type=number] { min-width: 7.5rem; }
.line-editor input[type=date] { min-width: 9.5rem; }
.line-editor input[type=text] { min-width: 6rem; }
.pager { gap: 8px; align-items: center; margin-top: 8px; }
.row-inline { display: inline-flex; align-items: center; gap: 4px; }
.line-editor input.units { min-width: 4rem; width: 4.5rem; }
.filters .row-inline, .row .row-inline { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.row-inline input[type=checkbox] { width: auto; margin: 0; }
.filters input[type=checkbox], .row-inline input[type=checkbox] { width: auto !important; min-width: 0; flex: none; }

/* V2.1 */
.assist { margin-top: .5rem; border-top: 1px solid var(--line, #ddd); padding-top: .5rem; }
.findings { margin: .4rem 0; padding-left: 1.1rem; }
.findings li { margin: .15rem 0; }
.import tr.conflict td { background: color-mix(in srgb, var(--crit, #c0392b) 8%, transparent); }
.import td.changed { font-weight: 600; }
.import input[size] { max-width: 10rem; }
.estimate { border-left: 3px solid var(--muted, #888); padding: .4rem .6rem; margin: .4rem 0; }
.code-block { margin-bottom: 1rem; }
ul.plain { list-style: none; padding-left: 0; }
input.prefilled, select.prefilled { outline: 2px solid var(--opp, #2a7ae2); }
.modal-text { margin: .5rem 0 1rem; }
/* V3 guided workflow and profiles */
.guide { display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: .3rem .4rem; border-left: 3px solid transparent; }
.steps li.sel { border-left-color: var(--opp, #2a7ae2); background: color-mix(in srgb, var(--opp, #2a7ae2) 8%, transparent); }
.steps li.st-complete .linkish { color: var(--ok, #2e7d32); }
.steps li.st-gap .linkish { color: var(--crit, #c0392b); font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; text-decoration: underline; }
.progress { height: .6rem; background: var(--line, #ddd); border-radius: .3rem; overflow: hidden; }
.progress > div { height: 100%; background: var(--ok, #2e7d32); }
.card.inset { box-shadow: none; border: 1px solid var(--line, #ddd); margin: .5rem 0; }
.rte { min-height: 8rem; border: 1px solid var(--line, #ccc); border-radius: .3rem; padding: .5rem; background: var(--bg, #fff); }
.rte-bar { margin: .3rem 0; }
.positions { padding-left: 1.2rem; }
.positions li { margin: .5rem 0; padding: .3rem; border-left: 3px solid var(--line, #ddd); }
.positions li.pos-done { border-left-color: var(--ok, #2e7d32); }
.positions li.pos-ready { border-left-color: var(--risk, #c79a00); }
table.copy td { padding: .1rem .4rem; }
