/* Owner: D (questions and evidence). #/fragen (spec §5.3, §4.3, §4.4): the conversation, its rounds, the honest
   basis line before every answer, the answer typography and its coupling to the evidence, balance, legend, actions,
   the evidence column (paper cards per mail – the material lives in components.css – and index cards), the composer
   and the empty start. Tokens only; states only via attributes (aria-*, data-zustand, data-verknuepft, data-hervor,
   hidden). Print rules of the answer with its evidence at the end (@media print, layer print). */
@layer pages {
  /* The docked composer never hides the focus: the page scrolls targets above it (2.4.11); --composer-h via CSSOM */
  :root:has(.composer:not(.composer--oben)) { scroll-padding-bottom: calc(var(--composer-h) + 24px); }
  @media screen { .gespraech .druckkopf { display: none; } }

  /* the page is its own container: two columns (answer | evidence) once its content is wide enough (panel ≥ 1100) */
  .gespraech { container: gespraech / inline-size; }
  .gespraech__hinweise { display: grid; gap: 8px; max-width: 72ch; }
  .gespraech__hinweise:empty { display: none; }
  .gespraech__hinweise:not(:empty) { margin-bottom: 20px; }
  .gespraech__runden[hidden], .gespraech__leer[hidden] { display: none; }

  /* ── round ── */
  .runde { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 4px; scroll-margin-top: 16px; }
  .runde + .runde { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
  .runde__haupt, .runde__belege { min-width: 0; }
  .runde__belege { max-width: 720px; }   /* below the answer: lines of the excerpts stay readable (≈ 75 characters) */

  /* round head and basis line: the meta-line separator technique – no line starts with a separator */
  .runde__kopf, .antwortkopf {
    display: flex; flex-wrap: wrap; align-items: center; column-gap: 15px; row-gap: 2px;
    overflow: clip; overflow-clip-margin: 4px;
  }
  .runde__kopf > *, .antwortkopf > * { position: relative; display: block; min-width: 0; }
  .runde__kopf > * > .icon:first-child, .antwortkopf > * > .icon:first-child { display: inline-block; vertical-align: -0.2em; margin-right: 5px; }
  .runde__kopf > * + *::before, .antwortkopf > * + *::before {
    content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%;
    background: var(--text-3);
  }
  .runde__kopf { font-size: var(--fs-12); line-height: 16px; color: var(--text-3); font-weight: 500; }
  .runde__kopf time { font-variant-numeric: tabular-nums; }
  .runde__kopf .icon { width: 12px; height: 12px; stroke-width: 2.25; }
  .runde__kopf .eingrenzung { color: var(--text-2); }
  .runde__kopf .eingrenzung .icon { color: var(--text-3); }
  .runde__frage {
    margin-top: 6px; font-size: var(--fs-18); line-height: 26px; font-weight: 600; letter-spacing: -0.014em; color: var(--text);
    max-width: 60ch; text-wrap: balance; overflow-wrap: anywhere; white-space: pre-line;
  }
  .runde__frage:focus { outline: none; }
  .runde__frage:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

  /* machine label + basis BEFORE the answer: what it rests on, that it is a selection, catalogue date, duration */
  .antwortkopf { margin-top: 10px; min-height: 20px; max-width: 84ch; font-size: var(--fs-13); line-height: 20px; color: var(--text-2); }   /* ≈ the measure of the answer (72ch at 17 px) */
  .antwortkopf .icon { color: var(--text-3); width: 14px; height: 14px; }
  .antwortkopf__art { color: var(--text); font-weight: 600; }
  .antwortkopf b { color: var(--text); font-weight: 600; }
  .antwortkopf__platz .skelett { display: inline-block; width: 280px; max-width: 60vw; vertical-align: -2px; }
  /* What is not backed by a document, before the text (D4): "○ 2 Aussagen ohne Beleg · ▢ 1 Aussage nur durch den
     Katalog belegt · im Text unterstrichen" – words first, the samples of the balance in front, the same separators */
  .belegstand {
    display: flex; flex-wrap: wrap; align-items: center; column-gap: 15px; row-gap: 2px; margin-top: 6px; max-width: 84ch;
    font-size: var(--fs-13); line-height: 20px; color: var(--text-3); overflow: clip; overflow-clip-margin: 4px;
  }
  .belegstand[hidden] { display: none; }
  .belegstand > * { position: relative; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
  .belegstand > * + *::before {
    content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%;
    background: var(--text-3);
  }
  .belegstand__teil { font-weight: 600; font-variant-numeric: tabular-nums; }
  .belegstand__teil--ohne { color: var(--danger-text); }
  .belegstand__teil--kat { color: var(--cat-eyebrow); }

  /* state line: steps while running, "abgebrochen nach 6 s", or the error of the round */
  .runde__zustand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: var(--fs-13); color: var(--text-2); }
  .runde__zustand[hidden] { display: none; }
  .runde__zustand > .hinweis { flex: 1 1 100%; max-width: 72ch; }
  .schrittanzeige {
    display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; font-size: var(--fs-13); line-height: 20px;
    color: var(--text-3); overflow: clip; overflow-clip-margin: 4px;
  }
  .schrittanzeige__schritt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .schrittanzeige__schritt .icon { width: 14px; height: 14px; }
  .schrittanzeige__schritt[data-zustand="fertig"] { color: var(--text-2); }
  .schrittanzeige__schritt[data-zustand="fertig"] .icon { color: var(--success-text); }
  .schrittanzeige__schritt[data-zustand="laeuft"] { color: var(--text); font-weight: 500; }
  .schrittanzeige__schritt[data-zustand="laeuft"] .icon { color: var(--accent-text); animation: drehen 1s linear infinite; }
  .schrittanzeige .icon-trenner { width: 14px; height: 14px; color: var(--border-input); }
  .schrittanzeige__schritt[data-zustand] .icon-trenner { color: var(--border-input); animation: none; }
  .schrittanzeige__info { position: relative; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .schrittanzeige__info::before {
    content: ""; position: absolute; left: -7.5px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--text-3);
  }
  .runde__abgebrochen { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .runde__abgebrochen .icon { width: 14px; height: 14px; color: var(--text-3); }
  .runde__hinweise { display: grid; gap: 8px; max-width: 72ch; margin-top: 12px; }
  .runde__hinweise:empty { display: none; }
  .runde__hinweise--nach { margin-top: 14px; }
  .runde__berichtigt { margin-top: 4px; padding-left: 18px; list-style: disc; }
  .runde__berichtigt li + li { margin-top: 2px; }

  /* ── the answer: serif 17/28, at most 72ch, built by appending (D10) ── */
  .runde__antwort { margin-top: 12px; }
  .antwort {
    font-family: var(--font-text); font-weight: var(--text-weight); font-size: var(--fs-17); line-height: 28px;
    font-variant-numeric: lining-nums; letter-spacing: 0; color: var(--paper-text); max-width: 72ch;
    text-wrap: pretty; hyphens: manual; overflow-wrap: anywhere;
  }
  .antwort p, .antwort li { position: relative; }
  .antwort > p + p, .antwort > p + ul, .antwort > p + ol, .antwort > ul + p, .antwort > ol + p,
  .antwort > h4 + p, .antwort > h4 + ul, .antwort > h4 + ol { margin-top: 14px; }
  .antwort > .randvermerk + p, .antwort > .randvermerk + ul, .antwort > .randvermerk + ol { margin-top: 14px; }
  .antwort ul, .antwort ol { padding-left: 22px; }
  .antwort ul { list-style: disc; }
  .antwort ol { list-style: decimal; }
  .antwort li + li { margin-top: 6px; }
  .antwort li::marker { color: var(--text-3); }
  .antwort h4 {
    margin-top: 22px; font-family: var(--font-ui); font-size: var(--fs-15); line-height: 22px; font-weight: 600;
    letter-spacing: -0.01em; color: var(--text);
  }
  .antwort > h4:first-child { margin-top: 0; }
  .antwort strong { font-weight: 660; }
  .antwort em { font-style: italic; }
  .antwort code { font-family: var(--font-mono); font-size: 0.82em; padding: 1px 4px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--text); }
  .antwort .mailref { font-size: var(--fs-13); vertical-align: 1px; }
  .antwort p:focus, .antwort li:focus { outline: none; }
  .antwort p:focus-visible, .antwort li:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
  .antwort .skelettliste { padding-top: 6px; max-width: 60ch; }
  /* Coupling: the statement of the open / hovered / focused source gets a quiet accent rail in the gutter – per
     paragraph or list item, never a fill over the text, never printed or copied */
  .antwort p[data-verknuepft]::before, .antwort li[data-verknuepft]::before {
    content: ""; position: absolute; left: -14px; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--accent-line);
    pointer-events: none;
  }
  .antwort li[data-verknuepft]::before { left: -36px; }
  /* "nur Katalog": the part that only the catalogue backs is underlined with dots; "ohne Beleg": the part no source
     backs is underlined with dashes in the danger edge (≥ 3 : 1 on the panel, kontrast.mjs) – the margin note says
     it in words, the line shows where (D4) */
  .nur-katalog { text-decoration: underline dotted var(--cat-ring) 2px; text-underline-offset: 5px; }
  .ohne-beleg { text-decoration: underline dashed var(--danger-border) 1.5px; text-underline-offset: 5px; }
  .markengruppe { white-space: nowrap; }
  .antwort .randvermerk, .antwort li > .randvermerk {
    display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--font-ui); font-size: var(--fs-12);
    line-height: 16px; font-weight: 500; color: var(--cat-eyebrow); letter-spacing: 0;
  }
  .randvermerk .icon { width: 12px; height: 12px; stroke-width: 2.25; color: var(--cat-eyebrow); flex: none; }
  /* as specific as the rule above, also inside a list item */
  .antwort .randvermerk--ohne, .antwort li > .randvermerk--ohne, .randvermerk--ohne .icon { color: var(--danger-text); }
  /* the stream cursor: 2 px, 1 Hz, static with reduced motion */
  .schreibmarke {
    display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em;
    background: var(--accent-line); animation: blinken 1s steps(1) infinite;
  }

  /* ── after the answer: balance, legend, actions ── */
  .antwortfuss { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; max-width: 72ch; }
  .antwortfuss[hidden], .rundenaktionen[hidden] { display: none; }
  .bilanz { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: var(--fs-13); line-height: 20px; color: var(--text-2); }
  .bilanz__teil { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
  .bilanz__teil b { color: var(--text); font-weight: 600; }
  .musterpunkt { width: 10px; height: 10px; border-radius: 50%; flex: none; }
  .musterpunkt--dok { background: var(--doc-chip); box-shadow: inset 0 0 0 1px var(--doc-chip-border); }
  .musterpunkt--kat { background: var(--surface); box-shadow: inset 0 0 0 1px var(--cat-ring); border-radius: 2px; }
  .musterpunkt--ohne { background: var(--surface); box-shadow: inset 0 0 0 1px var(--danger-border); }
  .legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--fs-12); line-height: 16px; color: var(--text-2); }
  .legende__teil { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
  .legende .marke { margin: 0; }
  .legende mark.kern { font-family: var(--font-text); font-size: var(--fs-13); margin: 0 2px 0 0; }
  .rundenaktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }

  /* ── evidence: a column on the right from 1100 px panel width (without reading pane), below the answer otherwise ── */
  .belegliste { display: grid; gap: 12px; margin-top: 28px; align-content: start; min-width: 0; }
  .belegliste__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .belegliste__kopf h3 { font-size: var(--fs-14); line-height: 20px; font-weight: 600; color: var(--text); }
  .belegliste__kopf .zahl { font-size: var(--fs-13); color: var(--text-3); font-variant-numeric: tabular-nums; }
  .belegliste__kopf + .belegliste__hinweis { margin-top: -6px; }
  .belegliste__hinweis { font-size: var(--fs-12); line-height: 16px; color: var(--text-3); }
  .belegliste__rest { display: grid; gap: 12px; padding-top: 8px; }
  .belegkarten { display: grid; gap: 12px; min-width: 0; }
  @container gespraech (min-width: 1036px) {
    .runde { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); column-gap: 40px; }
    .runde__belege { grid-column: 2; grid-row: 1; max-width: none; }
    .runde__belege > .belegliste:first-child { margin-top: 0; }
    /* the docked composer covers the answer column only (evidence column 400 + gap 40 – its own 8 px bleed): the
       evidence cards beside it stay visible at the bottom of the window */
    .composer:not(.composer--oben) { margin-right: 432px; }
  }

  /* ── evidence card: composition (material .beleg in components.css) ── */
  .beleg__kopf {
    display: flex; align-items: center; gap: 2px 8px; padding: 8px 8px 0 14px; min-height: 36px; min-width: 0;
    font-size: var(--fs-13); color: var(--text-2);
  }
  .beleg__kopf > .icon { color: var(--text-3); flex: none; }
  .beleg__kopf > .mailref, .beleg__kopf > .mailref-gruppe { flex: none; }
  .beleg__kopf > time { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .beleg__kopf .werkzeuge { margin-left: auto; flex: none; }
  .beleg__betreff { padding: 2px 14px 0; font-size: var(--fs-14); line-height: 20px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
  .beleg__personen { padding: 1px 14px 0; font-size: var(--fs-13); line-height: 20px; color: var(--text-2); overflow-wrap: anywhere; }
  .beleg__stellen { display: grid; gap: 14px; padding: 12px 14px 14px; }
  .beleg--skelett .beleg__kopf { padding-bottom: 4px; }
  .beleg--skelett .skelett--w40 { width: 40%; }
  .stelle { min-width: 0; scroll-margin-block: 96px; }
  .stelle + .stelle { padding-top: 14px; border-top: 1px solid var(--border); }
  /* origin line: [tag + origin] · stützt Absatz … – the separator sits in the gap and is clipped at a line start */
  .stelle__herkunft {
    display: flex; flex-wrap: wrap; align-items: center; column-gap: 15px; row-gap: 4px; font-size: var(--fs-12); line-height: 16px;
    color: var(--text-3); font-weight: 500; overflow: clip; overflow-clip-margin: 4px;
  }
  .stelle__art { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
  .stelle__woher { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
  .stelle__woher .icon { width: 14px; height: 14px; color: var(--text-3); flex: none; }
  .stelle__herkunft .tag .icon { color: currentColor; }
  .stelle__bezug { position: relative; display: inline-flex; align-items: center; gap: 4px; }
  .stelle__bezug::before {
    content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--text-3);
  }
  .stelle__bezug .link { font-size: var(--fs-12); font-weight: 500; min-height: 24px; }
  .stelle .auszug { cursor: pointer; }
  .stelle__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
  /* the lines a cut excerpt hides still lie below it: what follows sits on the paper, above them (paint order and the
     contrast checks see the paper, not a hidden key sentence) */
  .beleg .stelle__aktionen, .beleg .stelle__notiz { position: relative; background: var(--paper); }
  .beleg[data-hervor] .stelle__aktionen, .beleg[data-hervor] .stelle__notiz { background: var(--accent-subtle); }
  .stelle__notiz { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--fs-12); line-height: 20px; color: var(--text-2); }
  .stelle__notiz .icon { width: 14px; height: 14px; color: var(--text-3); flex: none; }
  /* "#300 vom 27.08.2026 (Datei.pdf, S. 16)": number and date stay together, the file name wraps (reflow 320 px) */
  .stelle__fassung { display: inline; min-width: 0; overflow-wrap: anywhere; }
  .stelle__fassung-nr { white-space: nowrap; }
  .warum > summary {
    display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 6px; border-radius: 5px;
    font-size: var(--fs-12); font-weight: 500; color: var(--text-2); cursor: pointer;
  }
  .warum > summary:hover { background: var(--surface-hover); color: var(--text); }
  .warum > summary .icon { width: 14px; height: 14px; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out); }
  .warum[open] > summary .icon { transform: rotate(180deg); }
  .warum { min-width: 0; max-width: 100%; }
  .warum[open] { flex: 1 1 100%; }
  /* a machine summary may hold a very long "word" (an address, a file name): it wraps, the page never scrolls sideways */
  .warum__text {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; margin-top: 6px; padding: 8px 10px;
    border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-13); line-height: 20px; color: var(--text-2);
    overflow-wrap: anywhere;
  }
  .warum__text > * { min-width: 0; overflow-wrap: anywhere; }
  .warum__etikett { display: block; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); margin-bottom: 2px; }
  .auswertung { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-3); }
  .auswertung .icon { width: 14px; height: 14px; animation: drehen 1.2s linear infinite; color: var(--accent-text); }

  /* index cards in the evidence: focus target when a catalogue mark is opened without the reading pane */
  .runde .kartei:focus { outline: none; }
  .runde .kartei:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .kartei__klappe > summary { margin: 0; }
  .kartei__liste { display: grid; gap: 4px; }
  .kartei__liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: var(--fs-13); color: var(--cat-text); }
  .kartei__datum { font-variant-numeric: tabular-nums; color: var(--cat-eyebrow); }
  .kartei__betreff { min-width: 0; overflow-wrap: anywhere; }

  /* ── composer: compact; docked at the bottom of the conversation from the first question on ── */
  .composer {
    position: sticky; bottom: 0; z-index: var(--z-dock); padding: 20px 8px 14px; margin: 16px -8px 0;
    background: linear-gradient(to top, var(--surface) 72%, transparent);
  }
  .composer--oben { position: static; z-index: auto; margin: 0; padding: 0; background: none; }
  .composer__feld {
    max-width: 72ch; border: 1px solid var(--border-input); border-radius: var(--r-xl); background: var(--surface);
    box-shadow: var(--shadow-dock);
  }
  .composer--oben .composer__feld { max-width: none; box-shadow: var(--shadow-pop); }
  .composer__feld:focus-within { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
  .composer__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px 0 14px; min-height: 30px; }
  .composer__label { font-size: var(--fs-12); line-height: 16px; font-weight: 600; color: var(--text-2); }
  .composer__anschluss { display: inline-flex; min-width: 0; }
  .composer__anschluss .chip { max-width: 100%; }
  .composer__anschluss .chip > .icon:first-child { color: currentColor; }
  .composer__zaehler { margin-left: auto; font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
  .composer__zaehler[hidden] { display: none; }
  .composer__feld textarea {
    display: block; width: 100%; min-height: 44px; max-height: 30vh; resize: none; border: 0; outline: 0; background: transparent;
    padding: 4px 14px 6px; font: inherit; font-size: var(--fs-15); line-height: 22px; color: var(--text); overflow-wrap: anywhere;
  }
  .composer--oben .composer__feld textarea { min-height: 66px; }
  .composer__feld textarea::placeholder { color: var(--text-3); opacity: 1; }
  .composer__fehler { padding: 0 14px 4px; }
  .composer__fehler[hidden] { display: none; }
  .composer__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 8px 8px; }
  .composer__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; margin-right: auto; }
  .composer__fuss .knopf[hidden] { display: none; }
  .sende-grund { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); line-height: 16px; color: var(--text-2); font-weight: 500; }
  .sende-grund[hidden] { display: none; }
  .sende-grund .icon { width: 14px; height: 14px; color: var(--info-text); flex: none; }
  .composer__hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: 72ch; margin-top: 8px; padding: 0 2px; font-size: var(--fs-12); line-height: 16px; color: var(--text-3); }
  .composer__hinweis > span { display: inline-flex; align-items: center; gap: 5px; }
  .composer__hinweis .kbd { height: 18px; min-width: 18px; }
  .composer__hinweis .icon { width: 12px; height: 12px; stroke-width: 2.25; }
  @media (pointer: coarse) { .composer__hinweis .tasten { display: none; } }

  /* ── empty conversation: the column with the composer at the top ── */
  .leerstart { max-width: 760px; margin: 0 auto; padding-top: 6vh; display: grid; gap: 16px; }
  .leerstart > .seitenkopf { padding-top: 0; }
  .leerstart__text { max-width: 64ch; font-size: var(--fs-13); line-height: 20px; color: var(--text-2); }
  .beispiele { display: flex; flex-wrap: wrap; gap: 8px; }
  .beispiele .chip { height: auto; min-height: var(--h-md); padding-block: 5px; white-space: normal; text-align: left; color: var(--text); }

  /* ── phone ── */
  @media screen and (max-width: 759px) {
    :root:has(.composer:not(.composer--oben)) { scroll-padding-top: 64px; }
    .antwort { font-size: var(--fs-16); line-height: 26px; }
    .antwort p[data-verknuepft]::before { left: -10px; }
    .antwort li[data-verknuepft]::before { left: -32px; }
    .composer:not(.composer--oben) { margin-inline: -16px; padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--border); }
    .composer:not(.composer--oben) .composer__feld textarea { min-height: 40px; padding: 4px 12px 4px; }
    .composer:not(.composer--oben) .composer__fuss { padding: 2px 6px 6px; }
    .composer:not(.composer--oben) .composer__feld { box-shadow: none; border-radius: var(--r-lg); }
    .composer:not(.composer--oben) .composer__hinweis { margin-top: 4px; }
    /* while an answer is being written the reason for the disabled "Senden" takes the line of the protocol sentence –
       the docked composer stays ≤ 170 px (spec §3.6) */
    .composer:not(.composer--oben) .composer__hinweis:has(> .sende-grund:not([hidden])) > span:not(.sende-grund) { display: none; }
    .composer__fuss .knopf--primaer { min-height: var(--h-xl); }
    .composer__abbrechen { display: none; }   /* on the phone "Abbrechen" stands at the running round (in view) */
    .leerstart { padding-top: 16px; }
  }
  @media (max-height: 559px) {
    .composer { position: static; }
  }

  @media (forced-colors: active) {
    .antwort p[data-verknuepft]::before, .antwort li[data-verknuepft]::before { forced-color-adjust: none; background: Highlight; }
    .composer { background: Canvas; }
    /* the samples differ by more than colour: document filled (Mark), catalogue square, unbacked dashed ring */
    .musterpunkt { border: 1px solid CanvasText; }
    .musterpunkt--dok { forced-color-adjust: none; background: Mark; border-color: MarkText; }
    .musterpunkt--ohne { border-style: dashed; }
    .nur-katalog, .ohne-beleg { text-decoration-color: CanvasText; }
  }
}

/* ── print: the answer with its evidence (spec §8). "Drucken" of a round prints only that round (body class);
      print.css (B) hides the operating parts and turns marks into "[#53]" / "[Katalog K1]". ── */
@media print {
  @layer print {
    body.druck-antwort .runde:not(.runde--druck) { display: none; }
    body.druck-antwort .runde--druck { margin-top: 0; padding-top: 0; border-top: 0; }
    .gespraech__hinweise, .schreibmarke, .beleg--skelett, .runde__zustand[data-zustand="laeuft"], .auswertung { display: none; }
    .antwort li[data-verknuepft]::before { content: none; }
    .leerstart { padding-top: 0; }
    .stelle__bezug .link { color: inherit; font-weight: 500; }
    .belegliste__rest { padding-top: 0; }
    .antwort, .runde__frage, .antwortkopf, .belegstand, .antwortfuss { max-width: none; }
    /* operating hints stay on the screen: the session note of the meta line ("nur in diesem Tab …") */
    .gespraech .seitenkopf .meta { display: none; }
    /* a sample is no citation: on paper the legend gives its words only */
    .legende .marke--muster { display: none; }
    /* balance samples without background graphics: the document dot is filled by its border, the catalogue sample is
       a square, "ohne Beleg" a dashed ring */
    .musterpunkt { background: none; box-shadow: none; }
    .musterpunkt--dok { border: 5px solid var(--doc-chip-border); }
    .musterpunkt--kat { border: 1px solid var(--cat-ring); }
    .musterpunkt--ohne { border: 1px dashed var(--danger-border); }
    /* "Lag vor, nicht zitiert" (opened by beforeprint): a compact list – #Nr · date · subject · from → to – without
       excerpt or key sentence; on paper uncited material must not look like evidence */
    .lagvor .belegliste__rest { gap: 0; }
    .lagvor .beleg__stellen, .lagvor .kartei__text,
    .lagvor .kartei__belegt, .lagvor .kartei__klappe { display: none; }
    .lagvor .beleg {
      display: block; padding: 1.2mm 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none;
      font-size: 9pt; line-height: 1.4;
    }
    .lagvor .beleg__kopf, .lagvor .beleg__betreff,
    .lagvor .beleg__personen { display: inline; min-height: 0; padding: 0; font-size: inherit; line-height: inherit; }
    .lagvor .beleg__kopf > .icon { display: none; }
    .lagvor .beleg__kopf > time::before { content: " "; }
    .lagvor .beleg__betreff::before, .lagvor .beleg__personen::before { content: " · "; font-weight: 400; }
    .lagvor .kartei { margin-top: 1.2mm; }
    /* the mails a catalogue entry rests on: one line of numbers instead of a row per mail */
    .runde .kartei__liste { display: block; }
    .runde .kartei__liste li { display: inline; }
    .runde .kartei__liste li + li::before { content: " "; }
    .runde .kartei__datum, .runde .kartei__betreff { display: none; }
  }
}
