/* Mockups of the review application (docs/design/review-application.md). Invented content. */
:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #1d2327;
  --muted: #5d6870;
  --faint: #8a949b;
  --line: #dde2e6;
  --line-strong: #c3cbd1;
  --accent: #1f5f8b;
  --accent-soft: #e6f0f7;
  --ok: #2f6b3b;
  --ok-soft: #e7f2e9;
  --warn: #8a4b00;
  --warn-soft: #fdf1df;
  --reject: #9b2c2c;
  --reject-soft: #fbeaea;
  --own: #6b3fa0;
  --own-soft: #f3edfa;
  --mark: #fff0a8;
  --focus: #1f5f8b;
  --radius: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Top bar */
.mock-banner {
  background: #2b3136; color: #dfe5ea; font-size: 12.5px; padding: 4px 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
}
/* The notice stands in the middle of the bar, the link to start again at its right. */
.mock-banner > span:first-child { grid-column: 2; text-align: center; }
.mock-banner > span:last-child { grid-column: 3; justify-self: end; }
@media (max-width: 900px) { .mock-banner { grid-template-columns: 1fr; } .mock-banner > span:first-child, .mock-banner > span:last-child { grid-column: 1; justify-self: center; } }
.mock-banner a { color: #bfe0ff; }
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; padding: 0 16px; min-height: 52px;
  flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: .02em; }
.plan-name { color: var(--muted); font-size: 14px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink); padding: 14px 12px; border-bottom: 3px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Layout */
.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.page.wide { max-width: none; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 70ch; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accept { border-color: #9cc3a4; }
.btn.accept[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.reject { border-color: #dcaaaa; }
.btn.reject[aria-pressed="true"] { background: var(--reject); border-color: var(--reject); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); }
kbd {
  font: 12px ui-monospace, Menlo, monospace; border: 1px solid currentColor; border-bottom-width: 2px;
  border-radius: 4px; padding: 0 5px; opacity: .75;
}

/* Labels: the exception is shown in words, the strong value stays quiet (section 7) */
.labels { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lbl {
  font-size: 12.5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.lbl.quiet { color: var(--faint); padding-left: 0; }
.lbl.warn { background: var(--warn-soft); color: var(--warn); border-color: #f0d2a6; }
.lbl.own { background: var(--own-soft); color: var(--own); border-color: #dccbef; }
.lbl.info { background: var(--accent-soft); color: var(--accent); }
.lbl.flag { background: #fff; color: var(--warn); border-color: var(--warn); }
.lbl.new { background: var(--accent); color: #fff; }
.status {
  font-size: 12.5px; font-weight: 600; min-width: 74px; text-align: right; white-space: nowrap;
}
.status.proposed { color: var(--faint); font-weight: 500; }
.status.accepted { color: var(--ok); }
.status.rejected { color: var(--reject); }
.status.edited { color: var(--accent); }

/* Plan rows (UX-1: the layout of the published plan) */
.area-head {
  background: #eef1f3; border-top: 1px solid var(--line-strong); padding: 8px 12px;
  font-weight: 600; display: flex; gap: 10px; align-items: baseline; position: sticky; top: 0; z-index: 1;
}
.area-head .no { color: var(--muted); font-variant-numeric: tabular-nums; }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 7px 12px; border-top: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.row:hover { background: #fafbfc; }
.row[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.row.kind-mål, .row.kind-tiltak { padding-left: 34px; }
.row.own { box-shadow: inset 4px 0 0 var(--own); }
.row.own[aria-selected="true"] { box-shadow: inset 4px 0 0 var(--accent); }
.row .kind { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.row .term { font-weight: 500; }
.row.kind-diagnose .term { font-weight: 650; }
.row .ownText { color: var(--own); font-style: italic; margin-left: 6px; }
.row .meta { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }

/* Evidence panel (RV-4, RV-14, RV-16) */
.panel-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.panel-head .kind { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.panel-head .term { font-size: 20px; font-weight: 650; margin: 2px 0 6px; }
.own-quote {
  border-left: 3px solid var(--own); background: var(--own-soft); padding: 6px 10px; margin: 6px 0;
  color: var(--own);
}
details.all-labels { margin-top: 8px; font-size: 13.5px; }
details.all-labels summary { cursor: pointer; color: var(--accent); }
details.all-labels dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 8px 0 0; }
details.all-labels dt { color: var(--muted); }
details.all-labels dd { margin: 0; }
.rank { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.cite {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0;
  background: var(--surface);
}
.cite[data-status="accepted"] { border-color: #9cc3a4; background: #fbfdfb; }
.cite[data-status="rejected"] { border-color: #e2bcbc; background: #fdf9f9; }
.cite[data-status="rejected"] .para { opacity: .6; }
.cite.focused { outline: 3px solid var(--focus); outline-offset: 1px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.para { margin: 0 0 8px; max-width: 75ch; }
.para mark { background: var(--mark); padding: 1px 0; }
.src { font-size: 13px; color: var(--muted); }
.reading { font-size: 13.5px; margin: 8px 0; padding: 6px 10px; background: #f4f6f7; border-radius: 4px; }
.reading b { font-weight: 600; }
.cite-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.item-decision {
  border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.note {
  font-size: 13px; color: var(--muted); border-left: 3px solid var(--line-strong); padding: 4px 10px; margin: 14px 0 0;
}
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #2b3136; color: #fff;
  padding: 10px 16px; border-radius: var(--radius); font-size: 14px; display: none; gap: 12px; align-items: center;
  z-index: 50;
}
.toast.show { display: flex; }
.toast button { background: none; border: 0; color: #bfe0ff; cursor: pointer; text-decoration: underline; }

/* Concept A */
.split { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr); height: calc(100vh - 110px); }
.split > .plan-pane { overflow: auto; border-right: 1px solid var(--line); background: var(--surface); }
.split > .evidence-pane { overflow: auto; padding: 18px 22px 40px; }
.pane-tools {
  display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line);
  background: var(--surface); position: sticky; top: 0; z-index: 2; flex-wrap: wrap;
}
.pane-tools select { font: inherit; min-height: 36px; }
.focus-mode .split { grid-template-columns: 260px 1fr; }
.focus-mode .row .meta, .focus-mode .row .status { display: none; }
.focus-mode .evidence-pane { width: 100%; max-width: 900px; justify-self: center; }
.focus-mode .row .kind { display: none; }
.focus-mode .row.kind-mål, .focus-mode .row.kind-tiltak { padding-left: 24px; }

/* Concept B */
.queue { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
.where { font-size: 13.5px; color: var(--muted); margin: 10px 0 18px; }
.where b { color: var(--ink); font-weight: 600; }

/* Concept C */
table.plan { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
table.plan th, table.plan td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
table.plan th { background: #eef1f3; font-weight: 600; position: sticky; top: 0; }
table.plan td.code { font: 12px ui-monospace, Menlo, monospace; color: var(--muted); white-space: nowrap; }
table.plan tr.area td { background: #f4f6f7; font-weight: 600; }
table.plan tr.sel td { background: var(--accent-soft); }
table.plan tr.own td:first-child { box-shadow: inset 4px 0 0 var(--own); }
.mini { display: inline-flex; gap: 4px; }
.mini button {
  min-width: 30px; min-height: 30px; border: 1px solid var(--line-strong); background: #fff; border-radius: 4px; cursor: pointer;
}
.mini button[aria-pressed="true"].a { background: var(--ok); color: #fff; border-color: var(--ok); }
.mini button[aria-pressed="true"].r { background: var(--reject); color: #fff; border-color: var(--reject); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 92vw); background: var(--bg);
  box-shadow: -8px 0 24px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .2s;
  overflow: auto; padding: 18px 22px 40px; z-index: 40;
}
.drawer.open { transform: none; }
.drawer .close { float: right; }

/* Overview, sources, export */
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.count {
  display: block; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.count:hover { border-color: var(--accent); }
.count .n { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.count.zero .n { color: var(--ok); }
.count .what { font-size: 14px; }
.count .why { font-size: 12.5px; color: var(--muted); }
.stages { display: flex; gap: 0; margin: 10px 0 4px; flex-wrap: wrap; }
.stage { flex: 1; min-width: 140px; padding: 8px 10px; border-top: 4px solid var(--line); font-size: 13.5px; color: var(--muted); }
.stage.done { border-top-color: var(--ok); color: var(--ink); }
.stage.now { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); }
table.list th, table.list td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { font-size: 13px; color: var(--muted); font-weight: 600; }
.state { font-size: 13px; font-weight: 600; white-space: nowrap; }
.state.ok { color: var(--ok); }
.state.no { color: var(--warn); }
.state.run { color: var(--accent); }
.check { list-style: none; padding: 0; margin: 0; }
.check li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.check .mark { font-size: 18px; text-align: center; }

/* Start and own items */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.choice .card { display: flex; flex-direction: column; gap: 8px; }
.choice .card h2 { margin: 0; }
.choice .card .btn { align-self: flex-start; margin-top: auto; }
label.field { display: block; font-weight: 600; margin: 16px 0 6px; }
input.text, textarea.text {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff;
}
textarea.text { min-height: 150px; }
.help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.line-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; margin: 10px 0; }
.line-item.own { border-left: 4px solid var(--own); }
.line-item .typed { color: var(--own); font-style: italic; }
.kinds { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.kinds button { border: 0; background: #fff; padding: 4px 10px; cursor: pointer; min-height: 32px; }
.kinds button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.sugg { list-style: none; padding: 0; margin: 8px 0 0; }
.sugg li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 4px; }
.sugg li.top { background: var(--accent-soft); }
.sugg .score { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sugg .syn { font-size: 12.5px; color: var(--muted); }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Index */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.tiles a.card { text-decoration: none; color: var(--ink); }
.tiles a.card:hover { border-color: var(--accent); }
.tiles .tag { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.keys-help {
  position: fixed; inset: 0; background: rgba(20,24,28,.45); display: none; align-items: center; justify-content: center; z-index: 60;
}
.keys-help.show { display: flex; }
.keys-help .card { max-width: 440px; width: 92vw; }
.keys-help table { width: 100%; border-collapse: collapse; font-size: 14px; }
.keys-help td { padding: 4px 6px; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .split, .focus-mode .split { grid-template-columns: 1fr; height: auto; }
  .split > .plan-pane { max-height: 45vh; }
}

/* ---------- The plan as a document (planen.html, DR-46) ---------- */
.doc-tools-wrap { position: sticky; top: 0; z-index: 20; }
.doc-tools {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.doc-tools .btn { min-height: 38px; }
.progress-text { font-size: 14px; }
.tools-right { margin-left: auto; display: flex; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; border-right: 1px solid var(--line); background: #fff; padding: 0 12px; min-height: 38px; cursor: pointer; font-size: 14px; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.check-label { display: inline-flex; gap: 6px; align-items: center; }
.doc-main { padding-top: 16px; }
.hint {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--accent-soft);
  border: 1px solid #c5dbeb; border-radius: var(--radius); padding: 8px 12px; margin-bottom: 14px; font-size: 14px;
}
.legend { margin-bottom: 16px; }

table.doc { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; table-layout: fixed; }
table.doc.tray { table-layout: auto; }
table.doc td { overflow-wrap: break-word; }
table.doc td.code { font-size: 10.5px !important; padding-left: 5px; padding-right: 3px; }
table.doc th {
  background: #e9edf0; text-align: left; font-weight: 600; padding: 7px 8px; border: 1px solid var(--line-strong);
  position: sticky; top: var(--tools-h, 55px); z-index: 5; font-size: 13px;
}
table.doc td { border: 1px solid var(--line); padding: 7px 8px; vertical-align: top; }
table.doc td.area { background: #f4f6f7; width: 120px; font-weight: 600; font-size: 13px; }
table.doc td.area .area-no { display: block; font-size: 18px; color: var(--muted); }
.warn-text { color: var(--warn); font-weight: 500; margin-top: 4px; }
table.doc td.code { font: 11.5px ui-monospace, Menlo, monospace; color: var(--faint); white-space: nowrap; }
table.doc td.term { min-width: 170px; }
table.doc td.term.diag { width: 18%; }
table.doc td.code { width: 1%; }
table.doc td.diag .t { font-weight: 650; }
table.doc td.spec { color: var(--muted); min-width: 170px; max-width: 240px; }
table.doc td.freq { color: var(--muted); max-width: 140px; }
table.doc td.refs { white-space: nowrap; width: 1%; }
table.doc td.stat { white-space: nowrap; width: 1%; }
table.doc td.empty { background: #fcfcfd; }
table.doc td[data-item] { cursor: pointer; }
table.doc td.sel { background: var(--accent-soft); }
table.doc td.term.sel { box-shadow: inset 3px 0 0 var(--accent); }
table.doc td.own.term { box-shadow: inset 3px 0 0 var(--own); }
table.doc td.own.term.sel { box-shadow: inset 3px 0 0 var(--accent); }
table.doc td.rejected .t, table.doc td.rejected.spec, table.doc td.rejected.freq { text-decoration: line-through; color: var(--faint); }
table.doc td.context { opacity: .55; }
table.doc td.term:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.goal-mark { color: var(--muted); font-size: 12.5px; }
.own-words { color: var(--own); font-style: italic; }
.cell-labels { margin-top: 3px; }
.cell-labels .labels { gap: 4px; }
.cell-labels .lbl { font-size: 11.5px; }
.diag-refs { margin-top: 6px; }
.diag-status { margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
table.doc .status { text-align: left; min-width: 0; }

/* Reference chips: the Ref. column carries the citation layer */
.ref {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px;
  margin: 0 3px 3px 0; border-radius: 4px; font: 600 12.5px system-ui, sans-serif; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
}
.ref.r-accepted { background: var(--ok); border-color: var(--ok); color: #fff; }
.ref.r-proposed { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.ref.r-rejected { border-color: var(--line-strong); color: var(--faint); text-decoration: line-through; }
.ref:hover { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Evidence unfolded in the document */
tr.unfold-row > td.unfold { background: #f7f9fb; border-left: 3px solid var(--accent); padding: 12px 16px 16px; }
.unfold-inner { max-width: 900px; }
.unfold-head { display: flex; align-items: baseline; gap: 8px; }
.unfold-head .kind { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.unfold-head .close { margin-left: auto; min-height: 32px; }
.unfold-meta { margin: 6px 0 4px; }
.unfold-inner h4 { margin: 14px 0 0; font-size: 14px; }
.cite-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.cite-top .ref { cursor: default; }
.cite-top a { margin-left: auto; }
.item-decision.focused { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.nothing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.edit-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; }
.edit-part { margin-top: 12px; }
.edit-part h4 { margin: 0 0 6px !important; }
.edit-part select { font: inherit; min-height: 38px; margin-right: 6px; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.small-btn { min-height: 34px; padding: 0 10px; font-size: 14px; }
.btn.best { border-color: var(--accent); background: var(--accent-soft); }

/* Adding in place */
tr.add-row td.add { padding: 2px 8px; border-top: 0; }
.add-link { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 13px; padding: 4px 0; opacity: .75; }
.add-link:hover, .add-link:focus-visible { opacity: 1; text-decoration: underline; }
tr.add-row td.adding { background: var(--own-soft); border-left: 3px solid var(--own); padding: 12px 16px; }
.add-line { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.add-line input { flex: 1; }

/* Export preview: only what the export holds */
.doc-main.preview .hint, .doc-main.preview .legend { display: none; }
.export-note { font-size: 12px; color: var(--warn); font-style: italic; margin-top: 2px; }
.doc-main.preview table.doc td[data-item] { cursor: default; }
.doc-main.preview table.doc td.code { color: var(--muted); }
.doc-main.preview .ref { background: none; border: 0; color: var(--ink); font-weight: 500; min-width: 0; padding: 0 2px; cursor: default; }
.doc-main.preview .ref:hover { outline: none; }
.reflist li { margin: 6px 0; }

/* Source reader (kilde.html) */
.reader { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 80px); }
.reader-toc { position: sticky; top: 0; align-self: start; padding: 24px 16px; max-height: 100vh; overflow: auto; border-right: 1px solid var(--line); background: var(--surface); }
.reader-toc a { display: block; padding: 4px 0; text-decoration: none; font-size: 14px; }
.reader-toc a.sub { padding-left: 14px; font-size: 13.5px; }
.reader-main { padding: 20px 32px 120px; max-width: 900px; }
.reader-text { font-size: 16px; line-height: 1.6; }
.reader-text h2 { margin-top: 28px; }
.reader-text h3 { margin: 18px 0 6px; font-size: 16px; }
.reader-para { display: grid; grid-template-columns: minmax(0, 68ch) 200px; gap: 20px; align-items: start; }
.reader-para p { margin: 0 0 12px; }
.uses { font-size: 12.5px; }
.uses .use { display: block; border-left: 3px solid var(--line-strong); padding: 2px 8px; margin-bottom: 4px; text-decoration: none; color: var(--muted); }
mark.m-proposed { background: var(--mark); }
mark.m-accepted { background: #d7ecd9; }
mark.m-rejected { background: #eee; text-decoration: line-through; }
mark.target { outline: 2px solid var(--accent); outline-offset: 2px; }
.reader-bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line-strong);
  display: flex; gap: 10px; align-items: center; padding: 10px 20px; flex-wrap: wrap; z-index: 30; box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.reader-bar > span { margin-right: auto; }
ol.tasks li { margin: 10px 0; }

.crumbs-nav { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.crumbs-nav a { color: var(--ink); text-decoration: none; }
.crumbs-nav a[aria-current="page"] { font-weight: 600; }
.crumbs-nav .plan-name { color: var(--ink); font-weight: 600; }

/* The signed-in user at the right of the top bar (DR-58). */
.topbar .user-box { margin-left: auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.topbar .nav + .user-box { margin-left: 8px; }
