/* CS Systems Issue Desk screens (MR 7). Tokens follow the prototype Mack liked
   (mc-azazie-ai-infra/docs/ai_flag_desk/mockup.html) and DESIGN.md: deep navy ink, indigo accent,
   near white surfaces, light weights, tabular figures where numbers matter. Light and dark, following
   the system unless the person picked one (html[data-theme]). */
:root {
  --bg: #f6f9fc; --surface: #ffffff; --surface2: #f1f5fa; --ink: #0d253d; --ink2: #273951; --mute: #64748d;
  --line: #e3e8ee; --accent: #533afd; --accent-ink: #ffffff; --accent-soft: #efedff; --accent-text: #4434d4;
  --good-bg: #e2f5e2; --good-tx: #0b640b; --warn-bg: #fff0cc; --warn-tx: #7a5200; --crit-bg: #fde3e3;
  --crit-tx: #a12424; --info-bg: #e6effb; --info-tx: #1c4f95; --idle-bg: #eceff4; --idle-tx: #4c5b73;
  --good: #0ca30c; --warn: #fab219; --crit: #d03b3b;
  --shadow: 0 1px 2px rgba(0, 55, 112, .06), 0 8px 24px rgba(0, 55, 112, .07);
  --sans: "SF Pro Display", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1422; --surface: #111f35; --surface2: #16273f; --ink: #eaf0f7; --ink2: #c8d3e1; --mute: #8e9db5;
    --line: #25374f; --accent: #8f86ff; --accent-ink: #0a1422; --accent-soft: #1f1e4a; --accent-text: #b3adff;
    --good-bg: #0f3318; --good-tx: #7fdc86; --warn-bg: #3d2f08; --warn-tx: #f6c65a; --crit-bg: #431a1c;
    --crit-tx: #f59a9a; --info-bg: #14304f; --info-tx: #9cc4f5; --idle-bg: #1d2c42; --idle-tx: #a9b7cb;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1422; --surface: #111f35; --surface2: #16273f; --ink: #eaf0f7; --ink2: #c8d3e1; --mute: #8e9db5;
  --line: #25374f; --accent: #8f86ff; --accent-ink: #0a1422; --accent-soft: #1f1e4a; --accent-text: #b3adff;
  --good-bg: #0f3318; --good-tx: #7fdc86; --warn-bg: #3d2f08; --warn-tx: #f6c65a; --crit-bg: #431a1c;
  --crit-tx: #f59a9a; --info-bg: #14304f; --info-tx: #9cc4f5; --idle-bg: #1d2c42; --idle-tx: #a9b7cb;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-text-size-adjust: 100%; overflow-wrap: anywhere;
}
a { color: var(--accent-text); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 64px; }

/* Top bar: the two view tabs sit at the very top (R13 item 2). */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .inner { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: space-between; }
.brand { font-weight: 600; letter-spacing: -.2px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.views { display: flex; gap: 4px; background: var(--surface2); border-radius: 9999px; padding: 3px; }
.views button { font: inherit; border: 0; background: none; color: var(--ink2); padding: 6px 14px; border-radius: 9999px;
  cursor: pointer; white-space: nowrap; }
.views button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tools select, .tools button { font: inherit; font-size: 13px; width: auto; }
.who { font-size: 12px; color: var(--mute); white-space: nowrap; }
.localbar { background: var(--warn-bg); color: var(--warn-tx); font-size: 12px; }
.localbar .inner { max-width: 1180px; margin: 0 auto; padding: 6px 16px; display: flex; flex-wrap: wrap; gap: 6px 12px;
  align-items: center; }
.localbar select { font: inherit; font-size: 12px; width: auto; max-width: 100%; padding: 3px 6px; }

nav.sub { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 16px 0 20px; }
nav.sub a { color: var(--mute); text-decoration: none; padding: 9px 12px; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; }
nav.sub a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
nav.sub .n { font-size: 11px; background: var(--idle-bg); color: var(--idle-tx); border-radius: 999px; padding: 1px 7px;
  margin-left: 6px; }

h1 { font-size: 26px; font-weight: 300; letter-spacing: -.4px; margin: 0; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 400; letter-spacing: -.2px; margin: 0; }
h3 { font-size: 12px; font-weight: 600; margin: 0; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.lead { color: var(--mute); margin: 4px 0 0; max-width: 72ch; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.pagehead { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel.lift { box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }

label, .label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink2); }
label .hint, .hint { font-weight: 400; color: var(--mute); font-size: 12px; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%; min-width: 0; }
textarea { min-height: 72px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
legend { font-size: 12px; font-weight: 600; color: var(--ink2); padding: 0; margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink);
  flex-direction: row; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.choice input { width: auto; margin-top: 3px; }
/* MR 20: a flex item may shrink, so a box beside a label that wraps to two lines was drawn tiny. Every checkbox and
   radio keeps one fixed size, whatever its label. */
.choice input[type="checkbox"], .choice input[type="radio"] { flex: 0 0 auto; width: 16px; height: 16px; }
.choice small { display: block; color: var(--mute); font-size: 12px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
/* MR 15 (R22.1): two or three examples under each level, and the S1 supervisor line. */
.choice ul.examples { margin: 2px 0 0; padding-left: 16px; color: var(--mute); font-size: 12px; }
.choice small.supervisor { color: var(--ink2); font-weight: 600; margin-top: 2px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
/* MR 10 addition E (R18): a person's teams, ticked; wraps on a phone. */
.checks { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.checks .choice { flex: 0 1 auto; padding: 6px 10px; align-items: center; }
.checks .choice input { margin-top: 0; }
.row > * { flex: 1 1 180px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.count { font-size: 12px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.count.bad { color: var(--crit-tx); }

.btn { font: inherit; font-weight: 600; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-ink); padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: var(--line); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.danger { background: transparent; color: var(--crit-tx); border-color: var(--crit); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
/* MR 10: the idea a Zoom link opened, marked on the ideas board. */
.panel.opened { outline: 2px solid var(--accent); outline-offset: 2px; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 999px;
  padding: 2px 9px; white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good-tx); }
.chip.warn { background: var(--warn-bg); color: var(--warn-tx); }
.chip.crit { background: var(--crit-bg); color: var(--crit-tx); }
.chip.info { background: var(--info-bg); color: var(--info-tx); }
.chip.idle { background: var(--idle-bg); color: var(--idle-tx); }
.chip.acc { background: var(--accent-soft); color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--mute); }
.small { font-size: 12px; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filters button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink2); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text);
  font-weight: 600; }
.filters input { width: auto; flex: 1 1 200px; }

/* A list of items: a card per row on a phone, a dense row on a desk. */
.items { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px;
  border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.item:first-child { border-top: 0; }
a.item:hover { background: var(--surface2); }
.item .t { font-weight: 600; }
.item .meta { color: var(--mute); font-size: 12px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 12px; }
.item .full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .item { grid-template-columns: minmax(0, 1fr); }
  .item .side { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; }
}
.group { display: flex; flex-direction: column; gap: 8px; }
.group > h2 { display: flex; gap: 8px; align-items: baseline; }
.empty { color: var(--mute); padding: 16px; text-align: center; background: var(--surface); border: 1px dashed var(--line);
  border-radius: 10px; }

.note { border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.note.good { background: var(--good-bg); }
.note.warn { background: var(--warn-bg); }
.note.info { background: var(--info-bg); }
.note b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.note.good b { color: var(--good-tx); }
.note.warn b { color: var(--warn-tx); }
.note.info b { color: var(--info-tx); }
.fixnote { margin: 0; }
.fixnote dt { font-weight: 600; color: var(--good-tx); font-size: 12px; margin-top: 6px; }
.fixnote dt:first-child { margin-top: 0; }
.fixnote dd { margin: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; min-width: 0; }
.quote { background: var(--surface2); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.quote .by { font-size: 12px; color: var(--mute); margin-bottom: 2px; }

.clock { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.clock .c { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface2); }
.clock .v { font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.clock .l { font-size: 12px; color: var(--mute); }
.clock .c.crit { border-color: var(--crit); background: var(--crit-bg); }
.clock .c.crit .v { color: var(--crit-tx); }
.clock .c.good .v { color: var(--good-tx); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.kpi .v { font-size: 28px; font-weight: 300; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--mute); }
.kpi .d { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 40px; gap: 8px; align-items: center;
  font-size: 13px; }
.bar .track { background: var(--surface2); border-radius: 4px; height: 12px; overflow: hidden; }
.bar .track, .bar .fill { display: block; }
.bar .fill { background: var(--accent); height: 100%; border-radius: 4px; min-width: 2px; }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.timeline .when { color: var(--mute); font-variant-numeric: tabular-nums; }

.similar { border: 1px solid var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; }
.similar .k { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  background: var(--surface); border-radius: 6px; padding: 8px 10px; color: var(--ink); }
.seg { align-self: flex-start; max-width: 100%; flex-wrap: wrap; display: inline-flex; border: 1px solid var(--line); border-radius: 9999px; padding: 3px; background: var(--surface); }
.seg button { font: inherit; border: 0; background: none; padding: 6px 14px; border-radius: 9999px; cursor: pointer; color: var(--ink2); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
details.form { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--surface); }
details.form > summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--ink2); }
details.form[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details.form > .body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.score { font-variant-numeric: tabular-nums; background: var(--accent-soft); color: var(--accent-text); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; }

#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 60;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
#toast.bad { background: var(--crit); color: #fff; }
.loading { color: var(--mute); padding: 24px 0; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .filters button, .views button, nav.sub a { transition: background .15s, color .15s, opacity .15s; }
}

#flag-form, #idea-form { max-width: 760px; }
@media (max-width: 560px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dd { margin-bottom: 6px; }
}
/* On a phone the issue page shows the actions right after the clock. */
@media (max-width: 900px) { .grid2.side-first > :last-child { order: -1; } }

/* MR 8 (R14.3): a queue line with the owner's move form under it. */
.ordered { border-top: 1px solid var(--line); }
.ordered:first-child { border-top: 0; }
.ordered > .item { border-top: 0; }
.ordered > details.form.order { margin: 0 14px 10px; }
.ordered > details.form.order > summary { padding: 6px 0; font-size: 12px; }
.changelog li .why { color: var(--mute); }

/* MR 9: the AI helper's hints. Quiet: a dashed edge says "a suggestion, not a decision". */
.ai-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px dashed var(--line, #ccc);
  border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.ai-hint[hidden] { display: none; }
.ai-hint .ai-pick { min-width: 0; overflow-wrap: anywhere; }

/* MR 10 addition D (R17): the Admin page's two closed day lists, side by side on a desk, stacked on a phone. */
#closed-days { margin-top: 16px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
.panel.inner { background: var(--surface2); }

/* MR 15 (C4): the shared issue row. Line 1: id and title, at most three chips on the right (level, status,
   deadline). Line 2: labelled items, the label muted and the value in body colour, then text marks (no chips).
   Under it, outside the link: one action, the workaround or the fix note. */
.item .main { min-width: 0; }
.item .meta .kvi { color: var(--ink); font-size: 13px; }
.item .meta .kvi .k { color: var(--mute); font-size: 12px; }
.item .meta .mk { font-size: 12px; color: var(--ink2); }
.item .meta .mk.good { color: var(--good-tx); font-weight: 600; }
.item .meta .mk.warn { color: var(--warn-tx); }
.item .meta .mk.crit { color: var(--crit-tx); }
.item .meta .mk.acc { color: var(--accent-text); }
.item .side.chips { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 460px; }
.item .side.chips .chip { flex: 0 0 auto; }
.row-wrap { border-top: 1px solid var(--line); }
.row-wrap:first-child { border-top: 0; }
.row-wrap > .item { border-top: 0; }
.row-wrap > .full, .row-wrap > details { margin: 0 14px 10px; }
/* Priority stays a plain, quiet summary (Fable N6): the row's one button is the pickup or the accept. */
.row-wrap > details.form.order { border: 0; background: none; padding: 0; margin-top: -4px; }
.row-wrap > details.form.order > summary { padding: 2px 0; font-size: 12px; color: var(--mute); font-weight: 400; }
.row-wrap > details.form.order[open] { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px;
  background: var(--surface); }
details.row-act > summary { list-style: none; }
details.row-act > summary::-webkit-details-marker { display: none; }
details.row-act > .body { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface2); }
@media (max-width: 560px) {
  .item .chip { white-space: normal; }
  .item .side.chips { justify-content: flex-start; }
  details.row-act > summary { width: 100%; justify-content: center; }
  .similar .btn { width: 100%; justify-content: center; }
}
/* Fix round 1 (Codex should fix 1): the rows follow the width of their own list, not only the screen's, so in a
   narrow column (the Overview's two columns at 1280) the chips wrap under the title as they do on a phone. */
.items { container-type: inline-size; }
@container (max-width: 760px) {
  .item { grid-template-columns: minmax(0, 1fr); }
  .item .side { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; }
  .item .side.chips { justify-content: flex-start; max-width: none; }
}

/* MR 15 (R22.7): attaching files. A dashed drop area, then one line per file with a small preview. */
.attach { gap: 6px; }
.drop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border: 1px dashed var(--line);
  border-radius: 8px; background: var(--surface2); font-weight: 400; color: var(--mute); font-size: 13px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
ul.uploads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
li.upload { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
  background: var(--surface); font-weight: 400; color: var(--ink); min-width: 0; }
li.upload .name { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
li.upload .name small { display: block; color: var(--mute); font-size: 12px; }
li.upload.failed { border-color: var(--crit); }
li.upload.failed .name small { color: var(--crit-tx); }
li.upload.sent .name small { color: var(--good-tx); }
.thumb { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface2); display: inline-grid; place-items: center; color: var(--ink2); font-size: 11px; font-weight: 600;
  text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs .thumb { width: 72px; height: 72px; }
#evidence li.with-thumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.upload-note { margin: 0; color: var(--ink2); }
.upload-note.bad { color: var(--crit-tx); }
.flag-what { color: var(--ink2); }

/* MR 15 (audit A): the Info tab. One long page, a short index first. */
.info-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.info-index { position: sticky; top: 72px; font-size: 13px; }
.info-index b { display: block; font-size: 12px; color: var(--ink2); margin-bottom: 6px; }
.info-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.linkish { font: inherit; background: none; border: 0; padding: 4px 0; color: var(--accent-text); cursor: pointer; text-align: left; }
.info-section h2 { margin-bottom: 2px; }
.info-section p { margin: 0; max-width: 72ch; }
.info-list, .info-checklist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; max-width: 72ch; }
.info-checklist { list-style: none; padding-left: 0; }
.info-checklist li::before { content: "\2610"; margin-right: 8px; color: var(--mute); }
.info-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.info-steps b { margin-right: 6px; }
.table-wrap { overflow-x: auto; }
.info-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.info-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--line);
  padding: 6px 8px; }
.info-table td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.info-table tr:last-child td { border-bottom: 0; }
/* Fix round 2 (Fable R2 S2): table cells break between words, never inside one ("compensatio / n"); a table too
   wide for a phone scrolls sideways inside .table-wrap instead. */
.info-table td, .info-table th { overflow-wrap: normal; word-break: normal; }
.info-table td:last-child { min-width: 9em; }
.info-table td.num { color: var(--mute); font-variant-numeric: tabular-nums; width: 32px; white-space: nowrap; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.level { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface2); }
.level.s1 { border-color: var(--crit); }
/* MR 19: S2 and S3 borders match their Zoom post colors (CardStyle ORANGE and BLUE), which read on both themes. */
.level.s2 { border-color: #F79009; }
.level.s3 { border-color: #2E90FA; }
.level b { display: block; }
.level ul.examples { margin: 4px 0 0; padding-left: 16px; color: var(--mute); font-size: 12px; }
.level .supervisor { font-weight: 600; color: var(--crit-tx); font-size: 12px; margin-top: 6px; }
@media (max-width: 900px) {
  .info-page { grid-template-columns: minmax(0, 1fr); }
  .info-index { position: static; }
  .info-index ul { flex-direction: row; flex-wrap: wrap; gap: 2px 12px; }
  .levels { grid-template-columns: minmax(0, 1fr); }
}

/* MR 17 (Task 6): the Link my Zoom popup, a native dialog (X and Escape close it). Fits a 320 px phone. */
.modal { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow); padding: 16px; width: min(480px, calc(100vw - 32px)); max-width: none; }
.modal::backdrop { background: rgba(13, 37, 61, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface2);
  border-radius: 8px; padding: 10px 12px; }
.modal-code .mono { font-size: 15px; flex: 1 1 auto; user-select: all; }
.modal-video { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--line); margin: 12px 0 4px; }
.modal .steps { margin: 12px 0; padding-left: 20px; }
.modal .steps li { margin: 4px 0; }
