/* Messe-Terminbuchung - EGovC Design System (D1-D10) */

:root {
  color-scheme: light;
  --portal-900: #0A1A3F;
  --portal-800: #122B6E;
  --portal-700: #1A45B8;
  --portal-600: #255FFE;
  --portal-500: #4B7FFF;
  --portal-400: #649DFF;
  --portal-200: #B0C5FF;
  --portal-100: #D6E4FF;
  --portal-50:  #EBF0FF;

  --surface: #FAFAF9;
  --elevated: #FFFFFF;
  --sunken: var(--portal-50);
  --ink: #1C1917;
  --ink-muted: #57534E;
  --ink-faint: #A8A29E;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;

  --accent: var(--portal-600);
  --accent-hover: var(--portal-500);
  --accent-ink: var(--portal-700);
  --heading: var(--portal-900);

  --ok: #10B981;
  --warn: #F59E0B;
  --err: #EF4444;
  --ok-bg: #E7F8F1;
  --warn-bg: #FDF3E2;
  --err-bg: #FDECEC;

  --font: 'Avenir Next', Avenir, 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-pill: 50px;
  --focus: 0 0 0 3px rgba(37, 95, 254, 0.3);
  --shadow: 0 1px 2px rgba(10, 26, 63, 0.04), 0 8px 24px -16px rgba(10, 26, 63, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #060610;
    --elevated: #0D0D1A;
    --sunken: #111128;
    --ink: #F3F5FA;
    --ink-muted: #A0B0CC;
    --ink-faint: #7888A5;
    --border: #1A1A35;
    --border-strong: #2A2A50;
    --accent: var(--portal-500);
    --accent-hover: var(--portal-400);
    --accent-ink: var(--portal-400);
    --heading: #EDF2FF;
    --ok-bg: #0C2A22;
    --warn-bg: #2C2110;
    --err-bg: #2E1414;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -16px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-lg); }

h1, h2, h3 { color: var(--heading); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 22px; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
p { margin: 0 0 14px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px 64px; }
.container--narrow { max-width: 780px; }

/* ---------- Kopf ---------- */
.masthead {
  background: var(--elevated);
  border-bottom: 1px solid var(--border);
}
.masthead__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.masthead__logo img { max-height: 52px; max-width: 200px; display: block; }
.masthead__text { flex: 1 1 260px; }
.masthead__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 4px;
}
.masthead__title { font-size: 20px; font-weight: 700; color: var(--heading); margin: 0; }
.masthead__meta { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }
/* Wortmarke: einfarbige SVGs, je Theme die passende Datei (D9).
   Mindestabstand über margin-left, damit die Marke nicht am Messelogo klebt. */
.brandlogo { display: block; flex: none; margin-left: auto; padding-left: 24px; }
.brandlogo img { max-width: 200px; }
.logo-dark-theme { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light-theme { display: none; }
  :root:not([data-theme="light"]) .logo-dark-theme { display: block; }
}
:root[data-theme="dark"] .logo-light-theme { display: none; }
:root[data-theme="dark"] .logo-dark-theme { display: block; }

/* ---------- Navigation (intern) ---------- */
.appnav { background: var(--portal-900); }
.appnav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.appnav__brand { flex: none; display: flex; align-items: center; }
.appnav__bar { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }

/* Eintrag der Leiste: Link oder Knopf einer Gruppe, gleich aussehend */
.appnav__item {
  display: inline-flex; align-items: center; gap: 6px;
  height: 60px; padding: 0 12px;
  color: #D6E4FF; text-decoration: none; white-space: nowrap;
  font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent; cursor: pointer;
}
.appnav__item:hover { color: #fff; }
.appnav__item[aria-current="page"], .appnav__item.is-active { color: #fff; border-bottom-color: var(--portal-500); }
.appnav__item:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* Gruppen als <details>: Pfeil statt Standard-Dreieck */
.appnav__group { position: relative; }
.appnav__group > summary { list-style: none; }
.appnav__group > summary::-webkit-details-marker { display: none; }
.appnav__group > summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .7;
}
.appnav__group[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }

.appnav__menu {
  position: absolute; top: calc(100% - 4px); left: 0; z-index: 30;
  min-width: 220px; padding: 6px;
  background: var(--elevated); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: 0 16px 40px -12px rgba(10, 26, 63, 0.35);
  display: flex; flex-direction: column;
}
.appnav__menu--right { left: auto; right: 0; }
.appnav__menu a {
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.appnav__menu a:hover { background: var(--sunken, #EBF0FF); color: var(--accent-ink); }
.appnav__menu a[aria-current="page"] { color: var(--accent-ink); background: var(--sunken, #EBF0FF); }

.appnav__account { flex: none; }
.appnav__user { color: #fff; font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.appnav__role { color: var(--portal-200); font-size: 13px; font-weight: 400; }

/* Schmale Bildschirme: eine aufklappbare Liste statt Leiste */
.appnav__mobile { display: none; margin-left: auto; }
.appnav__mobile > summary { list-style: none; }
.appnav__mobile > summary::-webkit-details-marker { display: none; }
/* Drei Striche vor "Menü", beim Oeffnen ein Kreuz */
.appnav__mobile > summary::before {
  content: ""; width: 18px; height: 2px; margin-right: 4px; background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.appnav__mobile[open] > summary::before { box-shadow: none; transform: rotate(45deg); }
.appnav__sheet {
  position: absolute; left: 0; right: 0; top: 60px; z-index: 30;
  background: var(--portal-900); padding: 8px 16px 16px;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
}
.appnav__sheet a {
  color: #D6E4FF; text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 12px 8px; border-radius: 8px;
}
.appnav__sheet a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.appnav__heading {
  margin: 12px 8px 2px; color: var(--portal-200);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.appnav { position: relative; }

@media (max-width: 960px) {
  .appnav__bar, .appnav__account { display: none; }
  .appnav__mobile { display: block; }
}

/* ---------- Karten und Raster ---------- */
.card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 24px;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.section { margin-top: 32px; }

.stat { background: var(--elevated); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 16px 18px; }
.stat__value { font-size: 28px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; color: var(--ink-muted); }

/* ---------- Teilnehmerkacheln ---------- */
.person {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}
a.person:hover { transform: translateY(-2px); border-color: var(--portal-400); box-shadow: 0 25px 50px -12px rgba(37, 95, 254, 0.15); }
.person__photo {
  width: 64px; height: 64px; flex: none;
  border-radius: var(--r-pill);
  object-fit: cover;
  background: var(--sunken);
}
/* Partnerlogos sind selten quadratisch: ganz zeigen statt rund beschneiden. */
.person__photo--logo { border-radius: var(--r-xl); object-fit: contain; background: #fff; padding: 6px; border: 1px solid var(--border); }
.person__initials {
  width: 64px; height: 64px; flex: none;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--portal-600), var(--portal-400));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
}
.person__name { font-weight: 700; color: var(--heading); }
.person__role { font-size: 14px; color: var(--ink-muted); }
.person__topics { font-size: 14px; margin-top: 6px; }
.person__free { font-size: 14px; margin-top: 10px; font-weight: 600; color: var(--accent-ink); }
.person__full { font-size: 14px; margin-top: 10px; color: var(--ink-muted); }

/* ---------- Slot-Raster ---------- */
.day { margin-bottom: 28px; }
.day__head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
}
.day__title { font-size: 17px; font-weight: 700; color: var(--heading); }
.day__count { font-size: 14px; color: var(--ink-muted); }

.hour { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.hour__label {
  flex: none; width: 56px;
  font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums;
  color: var(--ink-faint); padding-top: 9px;
}
.slots { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }

.slot {
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--elevated);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.slot__mark { font-size: 12px; }
a.slot:hover { border-color: var(--portal-500); background: var(--portal-50); color: var(--accent-ink); }
.slot--free { border-color: var(--portal-400); color: var(--accent-ink); font-weight: 600; }
.slot--selected {
  background: linear-gradient(to right, var(--portal-700), var(--portal-600));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 0 30px rgba(37, 95, 254, 0.3);
}
/* Nicht wählbare Zustände: ink-muted statt ink-faint, damit der Kontrast auch
   auf dem hellen Grund über 4.5:1 bleibt (N5). */
.slot--taken, .slot--held, .slot--blocked, .slot--past, .slot--too_late {
  cursor: default;
  color: var(--ink-muted);
  background: var(--surface);
  border-style: dashed;
}
.slot--past, .slot--too_late { opacity: 0.75; }
.slot--held { color: #9A6410; border-color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-muted); margin: 0 0 20px; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--ink-muted); margin: 6px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--elevated);
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
/* Dateiauswahl im gleichen Stil wie die Geisterknoepfe */
input[type=file] { font: inherit; font-size: 14px; color: var(--ink-muted); max-width: 100%; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 16px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--elevated); color: var(--accent-ink);
}
input[type=file]::file-selector-button:hover { border-color: var(--portal-400); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--portal-500); }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.field--check label { font-weight: 400; font-size: 15px; margin: 0; }
.field--row { display: flex; flex-wrap: wrap; gap: 18px; }
.field--row > * { flex: 1 1 200px; }
.required { color: var(--err); }

.btn {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--portal-700), var(--portal-600));
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { background: var(--portal-600); color: #fff; box-shadow: 0 0 30px rgba(37, 95, 254, 0.3); }
.btn--ghost { background: var(--elevated); color: var(--accent-ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--portal-50); color: var(--accent-ink); box-shadow: none; border-color: var(--portal-400); }
.btn--danger { background: var(--err); }
.btn--danger:hover { background: #DC2626; box-shadow: none; }
.btn--small { font-size: 14px; padding: 8px 16px; }

/* ---------- Meldungen ---------- */
.note {
  border-radius: var(--r-xl);
  padding: 14px 18px;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  background: var(--elevated);
  font-size: 16px;
}
.note--info { border-left: 3px solid var(--portal-600); background: var(--sunken); }
.note--ok { border-left: 3px solid var(--ok); background: var(--ok-bg); }
.note--warn { border-left: 3px solid var(--warn); background: var(--warn-bg); }
.note--err { border-left: 3px solid var(--err); background: var(--err-bg); }
.note strong { color: var(--heading); }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); border-color: var(--ok); color: #0B7A5A; }
.badge--warn { background: var(--warn-bg); border-color: var(--warn); color: #9A6410; }
.badge--err { background: var(--err-bg); border-color: var(--err); color: #B91C1C; }
.badge--info { background: var(--portal-50); border-color: var(--portal-400); color: var(--accent-ink); }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--elevated); }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--sunken); white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.muted { color: var(--ink-muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

footer.pagefoot {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 20px 16px;
  font-size: 14px;
  color: var(--ink-muted);
}
footer.pagefoot .inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 8px; top: 8px; z-index: 10; background: var(--elevated);
  padding: 10px 16px; border-radius: var(--r-lg); box-shadow: var(--focus);
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .card { padding: 18px; }
  .hour { gap: 8px; }
  .hour__label { width: 46px; font-size: 12px; }
  /* Touch-Ziel bleibt bei 44 px, auch wenn die Schrift kleiner wird. */
  .slot { padding: 10px 12px; font-size: 15px; min-height: 44px; }
  .btn { width: 100%; justify-content: center; }
  .btn--small { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  a.person:hover { transform: none; }
}

@media print {
  .appnav, .masthead, footer.pagefoot, .noprint { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { border: none; box-shadow: none; padding: 0; }
}

/* ---------------------------------------------------------------- Modal (Anlegen, Bearbeiten, Buchen)
   <dialog> mit showModal(): Fokus bleibt im Fenster, Esc schliesst. Kopf bleibt beim Scrollen stehen. */
dialog.modal {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 0;
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  background: var(--elevated);
  color: var(--ink);
  box-shadow: 0 25px 50px -12px rgba(10, 26, 63, 0.35);
  overflow: hidden;
}
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(10, 26, 63, 0.55); }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal__head h2 { font-size: 20px; }
.modal__close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-muted); font-size: 26px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--sunken); color: var(--heading); }
.modal__body { padding: 24px; overflow-y: auto; }
@media (max-width: 600px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .modal__head, .modal__body { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.modal[open] { animation: modal-in 0.18s ease-out; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Seitenkopf mit Aktion rechts (z. B. "Teilnehmer anlegen") */
.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 12px; }

/* ---------- Hilfe (admin/help.php) ---------- */
.help-lead { max-width: 760px; }
/* Die Suche blendet ueber das hidden-Attribut aus - auch bei Klassen mit eigenem display. */
.help [hidden], .help-search [hidden] { display: none !important; }
.help-search { margin: 20px 0 28px; }
.help-search label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.help-search__row { display: flex; gap: 10px; align-items: center; }
.help-search__row input { flex: 1; min-width: 0; }
.help-search .hint { font-size: 13px; color: var(--ink-muted); margin: 8px 0 0; }
.help { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.help-toc { position: sticky; top: 20px; font-size: 14px; }
.help-toc__title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px; }
.help-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.help-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-muted); text-decoration: none; }
.help-toc li a:hover { color: var(--accent-ink); border-left-color: var(--portal-400); }
.help-body { max-width: 820px; }
.help-chapter { margin-bottom: 44px; scroll-margin-top: 20px; }
.help-chapter > h2 { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.help-topic { margin: 0 0 26px; scroll-margin-top: 20px; }
.help-topic h3 { font-size: 17px; }
.help-topic p, .help-topic li { line-height: 1.6; }
.help-topic ul, .help-topic ol { padding-left: 22px; }
.help-topic li { margin-bottom: 4px; }
.help-topic .tablewrap { margin: 12px 0 14px; }
.help-steps li { margin-bottom: 8px; }
.help-legend { list-style: none; padding-left: 0 !important; }
.help-legend li { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.help-legend .slot { flex: none; min-width: 78px; justify-content: center; cursor: default; }
.help code, .help kbd, .help-search kbd {
  font-family: var(--mono); font-size: 0.88em; background: var(--sunken);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; word-break: break-word;
}
.help mark { background: #FDE68A; color: #1C1917; border-radius: 3px; padding: 0 1px; }
@media (max-width: 900px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .help-toc { position: static; margin-bottom: 28px; }
  .help-toc ol { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .help-toc li a { border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px 12px; margin: 0; background: var(--elevated); }
}
@media print {
  .help { display: block; }
}
