/* Clinical Safety Register (migration #17, CSR slice B1).
 *
 * The monolith's page carried 18 `style` attributes, inline <style> and <script> blocks, Bootstrap utility classes, a
 * Bootstrap dropdown and Font Awesome, none of which this service loads or its Content Security Policy allows. This sheet
 * replaces them, scoped under `.cs-` so nothing leaks into the shell. Its shape follows CQC Returning to Good's (copied, not
 * shared: no tool imports another).
 *
 * Risk bands are the monolith's five (`services/risk.py` BAND_SLUGS) and every band's label is always printed, so hue is
 * never the only cue. Fills and inks are kept separate. Focus rings use the shell's `--hs-aqua`. `.cs-wrap` and
 * `.cs-scroll` are positioned, so a visually hidden element always has a positioned ancestor and cannot widen the document
 * on a narrow screen. Widths are classes or a `<progress>`, never a style attribute.
 */
:root {
  --cs-accent: #0b5ed7;
  --cs-accent-dark: #0a4aa8;
  --cs-accent-soft: #e8f0fc;
  --cs-ink: #0f2740;
  --cs-muted: #475569;
  --cs-border: #d5dee8;
  --cs-surface: #fff;
  --cs-canvas: #f4f8fc;
  --cs-good: #157347;
  --cs-good-soft: #e6f4ec;
  --cs-progress: #0a4aa8;
  --cs-progress-soft: #e8f0fc;
  --cs-attention: #b8860b;
  --cs-attention-ink: #6b4e00;
  --cs-attention-soft: #fbf1d9;
  --cs-bad: #c62828;
  --cs-bad-ink: #9c1f1f;
  --cs-bad-soft: #fbe9e9;
  --cs-neutral: #5f6f75;
  --cs-neutral-soft: #eef2f5;
  --cs-band-low: #d7efe0;
  --cs-band-low-ink: #145c37;
  --cs-band-moderate: #e9f3c9;
  --cs-band-moderate-ink: #4a5a10;
  --cs-band-significant: #fbe3b0;
  --cs-band-significant-ink: #6b4e00;
  --cs-band-high: #f8c9b5;
  --cs-band-high-ink: #7a2a0b;
  --cs-band-veryhigh: #f2b4b4;
  --cs-band-veryhigh-ink: #7d1414;
  --cs-focus: var(--hs-aqua, #0d5bb8);
}

[hidden] { display: none !important; }

.cs-wrap { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; color: var(--cs-ink); }
.cs-wrap--narrow { max-width: 900px; }
.cs-wrap p { margin: 0; }
.cs-wrap p + p { margin-top: 8px; }
.cs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cs-muted { color: var(--cs-muted); }
.cs-strong { font-weight: 600; }
.cs-nowrap { white-space: nowrap; }
.cs-lead { font-size: 16px; }
.cs-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cs-muted); }
.cs-title { font-size: 22px; line-height: 1.25; margin: 0 0 6px; overflow-wrap: anywhere; }
.cs-subhead { font-size: 16px; margin: 14px 0 8px; }
.cs-subhead:first-child { margin-top: 0; }
.cs-label { display: block; font-size: 13px; font-weight: 700; color: var(--cs-ink); margin: 0 0 4px; }
.cs-hint { font-size: 13px; color: var(--cs-muted); margin-top: 4px; }
.cs-error { font-size: 13px; color: var(--cs-bad-ink); font-weight: 600; margin-top: 4px; }
.cs-list { margin: 6px 0; padding-left: 20px; }
.cs-list li + li { margin-top: 4px; }
.cs-num { display: inline-block; min-width: 26px; color: var(--cs-accent-dark); font-variant-numeric: tabular-nums; }

.cs-wrap a:focus-visible, .cs-wrap button:focus-visible, .cs-wrap input:focus-visible, .cs-wrap textarea:focus-visible,
.cs-wrap select:focus-visible, .cs-wrap summary:focus-visible, .cs-scroll:focus-visible { outline: 3px solid var(--cs-focus); outline-offset: 2px; }
.cs-answers input:focus-visible + label { outline: 3px solid var(--cs-focus); outline-offset: 2px; }

.cs-card { position: relative; background: var(--cs-surface); border: 1px solid var(--cs-border); border-radius: 10px; padding: 18px 20px; min-width: 0; }
.cs-card--flush { padding: 0; }
.cs-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cs-border); min-width: 0; }
.cs-block--tint { background: var(--cs-canvas); border: 1px solid var(--cs-border); border-radius: 8px; padding: 14px 16px; }
.cs-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.cs-section__title { font-size: 19px; margin: 0; overflow-wrap: anywhere; }

.cs-toolnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.cs-toolnav__brand { font-weight: 700; font-size: 15px; }
.cs-toolnav__links { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.cs-toolnav__links a { color: var(--cs-accent-dark); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; overflow-wrap: anywhere; }
.cs-toolnav__links a[aria-current="page"] { border-bottom-color: var(--cs-accent); font-weight: 600; }
.cs-toolnav__new { margin-left: auto; }

.cs-notice, .cs-state { padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.cs-notice { background: var(--cs-accent-soft); color: var(--cs-accent-dark); }
.cs-state { background: var(--cs-canvas); border: 1px solid var(--cs-border); }
.cs-state--info { background: var(--cs-accent-soft); color: var(--cs-accent-dark); border-color: #c4d6f5; }
.cs-state--warn { background: var(--cs-attention-soft); color: var(--cs-attention-ink); border-color: #e7d29a; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.cs-state--error { background: var(--cs-bad-soft); color: var(--cs-bad-ink); border-color: #efb7b7; }

.cs-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--cs-accent); border-radius: 6px; background: var(--cs-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.cs-btn:hover { background: var(--cs-accent-dark); border-color: var(--cs-accent-dark); color: #fff; }
.cs-btn--quiet { background: #fff; color: var(--cs-accent-dark); }
.cs-btn--quiet:hover { background: var(--cs-accent-soft); color: var(--cs-accent-dark); }
.cs-btn--danger { background: #fff; color: var(--cs-bad-ink); border-color: var(--cs-bad-ink); }
.cs-btn--danger:hover { background: var(--cs-bad-soft); color: var(--cs-bad-ink); border-color: var(--cs-bad-ink); }
.cs-btn--small { min-height: 34px; padding: 4px 12px; font-size: 13px; }

.cs-input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #8796a5; border-radius: 6px; font: inherit; font-size: 15px; color: var(--cs-ink); background: #fff; }
textarea.cs-input { resize: vertical; }
.cs-check { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.cs-checkline { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; cursor: pointer; }
.cs-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px 18px; }
.cs-field { min-width: 0; }
.cs-field--wide { grid-column: 1 / -1; }
.cs-field--error .cs-input { border-color: var(--cs-bad-ink); }
.cs-inline { display: flex; gap: 8px; align-items: center; }
.cs-inline .cs-input { flex: 1 1 auto; }
.cs-formfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cs-border); }
.cs-formfoot__end { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.cs-question { border: 0; border-bottom: 1px solid var(--cs-border); margin: 0 0 14px; padding: 0 0 14px; min-width: 0; }
.cs-question legend { padding: 0; margin-bottom: 6px; }
.cs-answers { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cs-answers input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-answers label { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid #8796a5; border-radius: 18px; cursor: pointer; font-size: 14px; background: #fff; }
.cs-answers input:checked + label { background: var(--cs-accent); border-color: var(--cs-accent); color: #fff; font-weight: 600; }
.cs-suggest { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--cs-attention); background: var(--cs-attention-soft); color: var(--cs-attention-ink); font-size: 13px; }
.cs-confirm { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.cs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--cs-neutral-soft); color: var(--cs-ink); border: 1px solid transparent; text-decoration: none; }
a.cs-pill:hover { text-decoration: underline; }
.cs-pill--good { background: var(--cs-good-soft); color: var(--cs-good); }
.cs-pill--progress, .cs-pill--info { background: var(--cs-progress-soft); color: var(--cs-progress); }
.cs-pill--attention { background: var(--cs-attention-soft); color: var(--cs-attention-ink); }
.cs-pill--bad { background: var(--cs-bad-soft); color: var(--cs-bad-ink); }
.cs-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cs-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cs-neutral); flex: 0 0 auto; }
.cs-dot--good { background: var(--cs-good); }
.cs-dot--progress { background: var(--cs-progress); }
.cs-dot--attention { background: var(--cs-attention); }
.cs-dot--bad { background: var(--cs-bad); }
.cs-badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--cs-accent-soft); color: var(--cs-accent-dark); }

.cs-band { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.cs-band--low { background: var(--cs-band-low); color: var(--cs-band-low-ink); }
.cs-band--moderate { background: var(--cs-band-moderate); color: var(--cs-band-moderate-ink); }
.cs-band--significant { background: var(--cs-band-significant); color: var(--cs-band-significant-ink); }
.cs-band--high { background: var(--cs-band-high); color: var(--cs-band-high-ink); }
.cs-band--veryhigh { background: var(--cs-band-veryhigh); color: var(--cs-band-veryhigh-ink); }

.cs-glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; margin: 10px 0 0; }
.cs-glance > div { border: 1px solid var(--cs-border); border-radius: 8px; padding: 10px 12px; background: #fff; min-width: 0; }
.cs-glance dt { font-size: 12px; color: var(--cs-muted); }
.cs-glance dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.cs-glance--live { border-color: #9ab8ec !important; }
.cs-glance--warn { border-color: #e7d29a !important; background: var(--cs-attention-soft) !important; }
.cs-glance--bad { border-color: #efb7b7 !important; background: var(--cs-bad-soft) !important; }

.cs-fieldgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px 18px; margin: 8px 0; }
.cs-fieldgrid > div { min-width: 0; }
.cs-fieldgrid dt { font-size: 12px; font-weight: 700; color: var(--cs-muted); }
.cs-fieldgrid dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.cs-group { font-size: 14px; margin: 12px 0 4px; color: var(--cs-ink); }
.cs-twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-bottom: 10px; }
.cs-scope { border: 1px solid var(--cs-border); border-radius: 8px; padding: 10px 12px; background: var(--cs-canvas); overflow-wrap: anywhere; }
.cs-scope--in { border-left: 4px solid var(--cs-good); }
.cs-scope--out { border-left: 4px solid var(--cs-bad); }

.cs-scroll { position: relative; overflow-x: auto; max-width: 100%; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cs-table th, .cs-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--cs-border); }
.cs-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--cs-muted); background: var(--cs-canvas); }
.cs-table td { overflow-wrap: anywhere; }
.cs-progress { display: block; width: 100%; max-width: 160px; height: 8px; margin: 4px 0; accent-color: var(--cs-good); }

@media (max-width: 820px) {
  .cs-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cs-table--cards, .cs-table--cards tbody, .cs-table--cards tr, .cs-table--cards td { display: block; width: 100%; box-sizing: border-box; }
  .cs-table--cards tr { border-bottom: 1px solid var(--cs-border); padding: 8px 0; }
  .cs-table--cards td { border: 0; padding: 4px 14px; }
  .cs-table--cards td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--cs-muted); }
}

.cs-recordhead { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cs-record { display: grid; grid-template-columns: 1fr; gap: 16px; min-width: 0; }
@media (min-width: 992px) { .cs-record { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.cs-pane { min-width: 0; }
.cs-rail { background: var(--cs-surface); border: 1px solid var(--cs-border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-rail__group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cs-muted); margin: 10px 8px 4px !important; }
.cs-rail__item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--cs-ink); text-decoration: none; border-left: 3px solid transparent; min-width: 0; }
.cs-rail__item:hover { background: var(--cs-canvas); }
.cs-rail__item[aria-current="true"] { background: var(--cs-accent-soft); border-left-color: var(--cs-accent); font-weight: 600; }
.cs-rail__step { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--cs-neutral-soft); }
.cs-rail__item--good .cs-rail__step { background: var(--cs-good-soft); color: var(--cs-good); }
.cs-rail__item--progress .cs-rail__step { background: var(--cs-progress-soft); color: var(--cs-progress); }
.cs-rail__item--attention .cs-rail__step { background: var(--cs-attention-soft); color: var(--cs-attention-ink); }
.cs-rail__item--bad .cs-rail__step { background: var(--cs-bad-soft); color: var(--cs-bad-ink); }
.cs-rail__text { display: flex; flex-direction: column; min-width: 0; }
.cs-rail__label { overflow-wrap: anywhere; }
.cs-rail__status { font-size: 12px; color: var(--cs-muted); font-weight: 400; }
.cs-rail__count { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--cs-bad-soft); color: var(--cs-bad-ink); font-size: 12px; font-weight: 700; text-align: center; }

.cs-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.cs-step { border: 1px solid var(--cs-border); border-left: 4px solid var(--cs-neutral); border-radius: 6px; background: #fff; padding: 8px 10px; min-width: 0; }
.cs-step a { display: block; color: inherit; text-decoration: none; }
.cs-step a:hover .cs-step__label { text-decoration: underline; }
.cs-step--good { border-left-color: var(--cs-good); }
.cs-step--progress { border-left-color: var(--cs-progress); }
.cs-step--attention { border-left-color: var(--cs-attention); }
.cs-step--bad { border-left-color: var(--cs-bad); }
.cs-step__label { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.cs-step__status { display: block; font-size: 12px; color: var(--cs-muted); }

.cs-guidance { margin: 8px 0 4px; border: 1px solid var(--cs-border); border-radius: 8px; background: var(--cs-canvas); }
.cs-guidance summary, .cs-disclosure summary { cursor: pointer; padding: 8px 12px; font-weight: 600; }
.cs-guidance__body { padding: 0 14px 10px; font-size: 14px; }
.cs-guidance__body p + p { margin-top: 8px; }

.cs-empty { border: 1px dashed var(--cs-border); border-radius: 8px; padding: 12px 14px; background: var(--cs-canvas); }
.cs-empty--ok { border-style: solid; border-color: #b5dcc4; background: var(--cs-good-soft); }
.cs-empty__msg { font-weight: 600; }
.cs-empty__hint { font-size: 13px; color: var(--cs-muted); }

.cs-work { margin-bottom: 12px; padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--cs-attention); background: var(--cs-attention-soft); }
.cs-work--blocking { border-left-color: var(--cs-bad); background: var(--cs-bad-soft); }

.cs-stage { font-size: 14px; margin: 16px 0 6px; color: var(--cs-accent-dark); }
.cs-items { list-style: none; margin: 0; padding: 0; }
.cs-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--cs-border); }
.cs-item__body { min-width: 0; overflow-wrap: anywhere; }
.cs-item__edit { white-space: nowrap; }
@media (max-width: 560px) { .cs-item { grid-template-columns: minmax(0, 1fr) auto; } .cs-item__edit { grid-column: 1 / -1; } }

.cs-docrows { list-style: none; margin: 6px 0; padding: 0; }
.cs-docrows__row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--cs-border); }
.cs-docrows__main { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }

.cs-acceptlist, .cs-removed { list-style: none; margin: 6px 0; padding: 0; }
.cs-acceptlist li, .cs-removed li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--cs-border); overflow-wrap: anywhere; }
.cs-removed li { flex-direction: column; align-items: flex-start; }

.cs-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-switch a { padding: 6px 12px; border: 1px solid var(--cs-accent); border-radius: 6px; text-decoration: none; color: var(--cs-accent-dark); font-size: 13px; font-weight: 600; }
.cs-switch a[aria-current="true"] { background: var(--cs-accent); color: #fff; }

.cs-matrix { border-collapse: separate; border-spacing: 4px; margin: 8px 0; }
.cs-matrix caption { caption-side: top; text-align: left; font-size: 13px; color: var(--cs-muted); padding-bottom: 4px; }
.cs-matrix th { font-size: 12px; font-weight: 600; color: var(--cs-muted); padding: 2px 4px; text-align: center; }
.cs-matrix tbody th { text-align: right; white-space: nowrap; }
.cs-matrix td { padding: 0; }
.cs-cell { display: flex; align-items: center; justify-content: center; width: 64px; height: 44px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.cs-cell__band { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.1; }
.cs-cell--low { background: var(--cs-band-low); color: var(--cs-band-low-ink); }
.cs-cell--moderate { background: var(--cs-band-moderate); color: var(--cs-band-moderate-ink); }
.cs-cell--significant { background: var(--cs-band-significant); color: var(--cs-band-significant-ink); }
.cs-cell--high { background: var(--cs-band-high); color: var(--cs-band-high-ink); }
.cs-cell--veryhigh { background: var(--cs-band-veryhigh); color: var(--cs-band-veryhigh-ink); }
.cs-cell--empty { opacity: .55; }
.cs-cell:hover { outline: 2px solid var(--cs-ink); }
@media (max-width: 560px) { .cs-cell { width: 44px; height: 38px; } .cs-cell__band { font-size: 9px; } }
.cs-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cs-cellinfo { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--cs-border); border-radius: 8px; background: var(--cs-canvas); }

.cs-verdict { padding: 12px 14px; border-radius: 8px; border-left: 4px solid var(--cs-neutral); background: var(--cs-canvas); margin-bottom: 12px; }
.cs-verdict--attention { border-left-color: var(--cs-attention); background: var(--cs-attention-soft); }
.cs-verdict__label { font-weight: 700; font-size: 16px; }
.cs-demo-banner { border-left: 4px solid var(--cs-accent); }
.cs-demo-hazard { border: 1px solid var(--cs-border); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.cs-ref { font-family: ui-monospace, monospace; font-size: 13px; color: var(--cs-muted); }
.cs-scores { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 10px 0; }
.cs-scores__arrow { font-size: 22px; color: var(--cs-muted); }
.cs-locked { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.cs-locked__card { border: 1px solid var(--cs-border); border-radius: 8px; padding: 12px; background: var(--cs-canvas); min-width: 0; }
.cs-locked__title { font-weight: 700; }
.cs-locked__skeleton { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cs-locked__skeleton span { display: block; height: 8px; border-radius: 4px; background: var(--cs-border); }

.cs-catsearch { margin: 14px 0 10px; }
.cs-catalogue__list { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--cs-border); border-radius: 8px; max-height: 320px; overflow-y: auto; }
.cs-catalogue__item { display: flex; flex-direction: column; width: 100%; box-sizing: border-box; padding: 8px 12px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--cs-border); color: var(--cs-ink); font: inherit; cursor: pointer; text-decoration: none; }
.cs-catalogue__item:hover { background: var(--cs-accent-soft); }
.cs-catalogue__name { font-weight: 600; overflow-wrap: anywhere; }
.cs-catalogue__meta { font-size: 13px; color: var(--cs-muted); overflow-wrap: anywhere; }
.cs-wizard__step { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.cs-wizard__step legend { padding: 0; }
.cs-wizard__strip { list-style: none; margin: 10px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cs-wizard__strip button { min-height: 34px; padding: 4px 12px; border: 1px solid var(--cs-border); border-radius: 18px; background: #fff; color: var(--cs-ink); font: inherit; font-size: 13px; cursor: pointer; }
.cs-wizard__strip button[aria-current="step"] { background: var(--cs-accent); border-color: var(--cs-accent); color: #fff; font-weight: 600; }
.cs-wizard__strip button.is-done { border-color: var(--cs-good); color: var(--cs-good); }
.cs-doclist { display: flex; flex-direction: column; gap: 6px; }
.cs-doclist__row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--cs-border); border-radius: 6px; cursor: pointer; }
.cs-doclist__row > span { display: flex; flex-direction: column; min-width: 0; }
.cs-doclist__title { font-weight: 600; overflow-wrap: anywhere; }
.cs-doclist__meta { font-size: 13px; color: var(--cs-muted); overflow-wrap: anywhere; }

/* Slice B2: document actions, the draft generators, reporting routes, button rows. */
.cs-docrows__actions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cs-docrows__actions form { margin: 0; }
.cs-generate { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-generate form { margin: 0; }
.cs-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 16px; margin: 6px 0; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.cs-actions form { margin: 0; }
