/* Trainings-Kamera – Anzeige-Seite.
   Aufbau: Kopfzeile, darunter ein bis zwei Bild-Fenster (.pane) und die Szenen-Liste.
   Anpassung an den Bildschirm:
   - Querformat: Fenster nebeneinander, Liste rechts. Hochformat: Fenster übereinander, Liste als Streifen unten.
   - Die Leisten unter den Bildern richten sich nach der Breite ihres Fensters (@container), nicht nach dem
     ganzen Bildschirm: so stimmen sie in jeder Ansicht, bei jeder Fenstergröße und bei jedem Zoom.
   - Die Kopfzeile kürzt ihre Beschriftungen schrittweise (@media), statt in eine zweite Zeile zu springen. */

:root {
  --bg: #0e1116;
  --panel: #161b22;
  --panel2: #1f2630;
  --line: #2b3440;
  --text: #e8edf3;
  --muted: #8b97a6;
  --accent: #ffb020;
  --accent-ink: #1a1200;
  --green: #35d07f;
  --red: #ff4d5e;
  --blue: #4da3ff;
  --tap: 36px;                          /* Höhe und Mindestbreite der Knöpfe (Maus) */
  --play: calc(var(--tap) + 14px);      /* der Abspiel-Knopf ist breiter */
  color-scheme: dark;
}
@media (pointer: coarse) { :root { --tap: 44px; } }   /* Finger: größere Knöpfe */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; overflow: hidden;
  position: fixed; inset: 0; height: 100dvh;
  overscroll-behavior: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
[hidden] { display: none !important; }

/* ---------- Knöpfe, Symbole, Felder ---------- */
button {
  font: inherit; color: var(--text); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); min-width: var(--tap); padding: 0 12px;
  cursor: pointer; white-space: nowrap; flex: none;
}
button:hover { border-color: #46566a; }
button:disabled { opacity: .38; cursor: default; }
button:disabled:hover { border-color: var(--line); }
button.on, .seg button.on { background: var(--blue); border-color: var(--blue); color: #06121f; font-weight: 600; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
button.toggle.on { background: var(--green); border-color: var(--green); color: #04150c; }
button.set { border-color: var(--accent); color: var(--accent); }   /* gesetzt: Stern, Schleifen-Marke */
button.sq { padding: 0; }
.ic { width: 20px; height: 20px; flex: none; display: block; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; flex: none; display: inline-block; }
kbd {
  font: 11px ui-monospace, Consolas, monospace; padding: 1px 5px; border-radius: 4px;
  border: 1px solid currentColor; opacity: .75; margin-left: 4px;
}
select, input[type=number] {
  font: inherit; color: var(--text); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px;
}
.grow { flex: 1; }
.muted { color: var(--muted); }
.pad { padding: 12px; }
.seg { display: inline-flex; flex: none; }
.seg button { border-radius: 0; margin-left: -1px; }
.seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.seg button:last-child { border-radius: 0 8px 8px 0; }
.seg button.on { position: relative; }

/* ---------- Kopfzeile: immer eine Zeile ---------- */
header {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-width: 0;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 16px; letter-spacing: .3px; margin-right: 6px; white-space: nowrap; flex: none; }
.status { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; overflow: hidden; }
.pill {
  padding: 3px 9px; border-radius: 999px; background: var(--panel2); color: var(--muted); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0;
}
.pill:empty { display: none; }
.pill.rec { background: rgba(255,77,94,.15); color: var(--red); font-weight: 700; flex: none; }
.pill.rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; animation: blink 1.2s infinite; }
.pill.ok { background: rgba(53,208,127,.14); color: var(--green); }
.pill.hot { background: var(--green); color: #04150c; font-weight: 700; }
.pill.scene { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
@keyframes blink { 50% { opacity: .25; } }
.field { display: flex; align-items: center; gap: 6px; color: var(--muted); flex: none; }
.field select { max-width: 180px; min-height: var(--tap); }
#syncBtn { display: none; }
body:has(main[data-layout="clip-clip"]) #syncBtn { display: inline-flex; }
#helpBtn { font-weight: 800; font-size: 16px; }
.pic { width: 30px; height: 20px; flex: none; display: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lbl-short { display: none; }

@media (max-width: 1279px) {
  .brand, .field .cap { display: none; }
  .field select { max-width: 150px; }
}
@media (max-width: 1099px) {
  #syncBtn .lbl, .lbl-long { display: none; }
  .lbl-short { display: inline; }
  #syncBtn { padding: 0; }
}
@media (max-width: 979px) { .field { display: none; } }   /* das Profil lässt sich dann in den Einstellungen wählen */
@media (max-width: 859px) { .pill .x { display: none; } }
@media (max-width: 799px) {
  #layoutSeg .lbl { display: none; }                       /* Ansichten als Bildzeichen */
  #layoutSeg .pic { display: block; }
  #layoutSeg button { padding: 0 8px; }
}
@media (max-width: 599px) {
  /* sehr schmal (Handy hochkant, geteilter Bildschirm): Anzeige oben, Knöpfe darunter */
  header { flex-wrap: wrap; }
  .status { flex: 1 1 100%; }
  #markBtn { flex: 1 1 auto; }
}
@media (max-width: 439px) { body:has(main[data-layout="clip-clip"]) #markBtn .lbl-short { display: none; } }
@media (max-width: 389px) { #markBtn .lbl-short { display: none; } }

/* ---------- Hauptbereich ---------- */
main { flex: 1; display: flex; min-height: 0; min-width: 0; }
.panes { flex: 1; display: flex; gap: 8px; padding: 8px; min-width: 0; min-height: 0; }
.pane {
  flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: var(--panel); border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  container: pane / inline-size;
}
.pane.active { border-color: var(--blue); }
main[data-layout="live-clip"] #livePane { flex-grow: 2; }   /* Live-Bild schmaler, die Szene ist die Hauptsache */
main[data-layout="live-clip"] #p1 { flex-grow: 3; }
/* Solange eine Kamera gewählt oder das Handy gekoppelt wird, bekommt die linke Hälfte mehr Platz */
main[data-layout="live-clip"] #livePane:has(.start:not([hidden])) { flex-grow: 4; }
main[data-layout="live-clip"] #p2,
main[data-layout="clip-clip"] #livePane,
main[data-layout="clip"] #livePane,
main[data-layout="clip"] #p2 {
  /* nicht display:none – das Live-Video muss für Aufnahme und Erkennung weiterlaufen */
  position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; overflow: hidden; flex: none;
}

/* ---------- Bild-Fläche ---------- */
.stage { position: relative; flex: 1; background: #000; overflow: hidden; min-height: 0; }
.stage video, .stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
#liveCanvas, #delayCanvas { display: none; }
.remote #liveCanvas { display: block; }
.remote #live { display: none; }
.delaying #delayCanvas { display: block; background: #000; }
#overlay { touch-action: none; pointer-events: none; }
.zoning #overlay { pointer-events: auto; cursor: crosshair; }
.badge {
  position: absolute; top: 10px; left: 10px; display: none; padding: 4px 10px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px;
}
.delaying .badge { display: block; }
#camInfo {
  position: absolute; right: 8px; top: 8px; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 6px;
  background: rgba(0,0,0,.55); color: #cfd6de; font-size: 12px; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#camInfo:empty { display: none; }
.delaying #camInfo { max-width: calc(100% - 160px); }   /* links steht dann „VERZÖGERT“ */
.livehint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; text-align: center;
  padding: 12px 18px; border-radius: 12px; background: rgba(0,0,0,.7); font-weight: 700; font-size: 16px;
}
.livehint span { font-weight: 400; font-size: 13px; color: var(--muted); }

/* Quelle wählen / Handy koppeln */
.start {
  position: absolute; inset: 0; z-index: 2; overflow: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; gap: 8px; padding: 24px; background: radial-gradient(circle at 50% 40%, #1d2633, #07090c);
}
.start::before, .start::after { content: ""; flex: 1; } /* mittig, aber scrollbar wenn es eng wird */
.start h2 { margin: 0; }
.start p { margin: 0; color: var(--muted); max-width: 520px; }
.start .small a { color: var(--muted); }
.start .error { color: var(--red); white-space: pre-line; }
.start .error:empty { display: none; }
.start .state { color: var(--accent); font-weight: 700; font-size: 16px; }
.start .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0; max-width: 100%; }
.choice {
  display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  width: 230px; max-width: 100%; min-height: 96px; padding: 14px; border-radius: 12px; white-space: normal;
}
.choice b { font-size: 17px; }
.choice span { font-size: 12.5px; font-weight: 400; opacity: .85; }
.pair { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pair canvas { position: static; inset: auto; width: 190px; height: 190px; border-radius: 10px; image-rendering: pixelated; background: #fff; flex: none; }
.pair ol { margin: 0; padding-left: 20px; text-align: left; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.code { font: 700 18px ui-monospace, Consolas, monospace; letter-spacing: 2px; color: var(--text); }
@container pane (max-width: 420px) {
  .start { padding: 14px 10px; }
  .pair canvas { width: 150px; height: 150px; }
}

/* ---------- Leisten unter den Bildern ----------
   Jede Leiste besteht aus festen Gruppen (.grp). .brk ist ein Zeilenumbruch, der je nach Breite gilt.
   Reicht der Platz trotzdem einmal nicht, rutscht die letzte Gruppe in eine neue Zeile, statt abgeschnitten zu werden. */
.controls {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; padding: 0 6px 6px;
  border-top: 1px solid var(--line); background: var(--panel);
}
.controls > * { margin-top: 6px; }
.controls > .brk { display: none; flex: 0 0 100%; height: 0; margin: 0; }
.controls button { padding: 0 10px; }
.controls button.sq { padding: 0; }
.grp { display: flex; align-items: center; gap: 4px; min-width: 0; }
.grp.seg { gap: 0; }
.cap { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-right: 2px; }
.cap .ic { width: 18px; height: 18px; }
.lbl { overflow: hidden; text-overflow: ellipsis; }

/* -- Leiste unter der Szene: Schritt · Tempo · Schleife · Behalten/Speichern -- */
.pbar .big { min-width: var(--play); }
.pbar .big .ic { width: 22px; height: 22px; }
.g-speed button { min-width: 40px; padding: 0 8px; flex: 1 1 auto; }
.g-clip { margin-left: auto; }

/* schmal (unter 380): drei Zeilen */
.pbar .b0, .pbar .b1 { display: block; }
.pbar .g-step, .pbar .g-speed { flex: 1 1 auto; }
.pbar .g-step .big { flex: 1 1 auto; }
.pbar .g-clip .lbl { display: none; }
@container pane (max-width: 339px) { .pbar .cap .lbl { display: none; } }

/* mittel (380 bis 799): zwei Zeilen – oben Schritt und Tempo, unten Schleife und Behalten/Speichern */
@container pane (min-width: 380px) {
  .pbar .b0 { display: none; }
  .pbar .g-step { flex: none; }
  .pbar .g-step .big { flex: none; }
  .pbar .g-speed { flex: 1 1 0; }
}
@container pane (min-width: 500px) { .pbar .g-clip .lbl { display: inline; } }

/* breit (ab 800): alles in einer Zeile */
@container pane (min-width: 800px) {
  .pbar .b1 { display: none; }
  .pbar .g-speed { flex: none; }
  .pbar .g-speed button { flex: none; min-width: var(--tap); padding: 0 10px; }
  .pbar .g-speed, .pbar .g-loop { border-left: 1px solid var(--line); padding-left: 8px; }
  .pbar .g-clip .lbl { display: none; }
}
@container pane (min-width: 900px) { .pbar .g-clip .lbl { display: inline; } }

/* -- Leiste unter dem Live-Bild: Live/Verzögert · Bereich · Drehen -- */
.lbar .brk { display: block; }
.lbar .g-live, .lbar .g-tools { flex: 1 1 auto; }
.lbar .g-live button, .lbar .g-tools button { flex: 1 1 auto; min-width: 0; }
@container pane (min-width: 530px) {
  .lbar .brk { display: none; }
  .lbar .g-live, .lbar .g-tools, .lbar .g-live button, .lbar .g-tools button { flex: none; }
}

/* ---------- Player ---------- */
.player .stage, .timeline { touch-action: none; }
.player .stage { cursor: grab; }
.player .stage.scrubbing { cursor: ew-resize; }
.player video { transition: transform .15s ease-out; }
.player .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 16px; }
.player.has-clip .empty { display: none; }
.hud {
  position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 6px;
  background: rgba(0,0,0,.6); font-weight: 700; font-size: 15px; pointer-events: none;
}
.zoomchip {
  position: absolute; top: 8px; left: 8px; min-height: 36px; padding: 0 8px 0 12px;
  background: rgba(0,0,0,.7); border-color: rgba(255,255,255,.35); font-weight: 700; cursor: pointer;
}
.zoomchip .ic { width: 18px; height: 18px; }
.player:not(.has-clip) .hud, .player:not(.has-clip) .scrubhint { display: none; }
.scrubhint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 6px;
  background: rgba(0,0,0,.45); color: #fff9; font-size: 12px; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.player .stage:hover .scrubhint { opacity: 1; }
/* Zeitleiste mit der Zeit-Anzeige rechts daneben */
.trow { display: flex; align-items: stretch; border-top: 1px solid var(--line); background: #0a0d11; }
.timeline { position: relative; flex: 1; min-width: 0; height: 22px; cursor: pointer; }
.timeline .played { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(77,163,255,.25); }
.timeline .loop { position: absolute; top: 0; bottom: 0; background: rgba(255,176,32,.28); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); display: none; }
.timeline .head { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--blue); }
.time { align-self: center; padding: 0 10px; font: 12.5px ui-monospace, Menlo, Consolas, monospace; color: var(--muted); white-space: nowrap; }
@container pane (max-width: 299px) { .time { display: none; } }

/* ---------- Szenen-Liste ---------- */
aside {
  width: 270px; flex: none; display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid var(--line); background: var(--panel);
}
.list-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.lh-title { white-space: nowrap; }
.chk { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; min-height: 28px; }
#clearAll { min-height: 32px; min-width: 36px; padding: 0 6px; }
#clips { flex: 1; overflow-y: auto; padding: 6px; min-height: 0; }
.clip {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 6px; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; margin-bottom: 4px; position: relative;
}
.clip:hover { background: var(--panel2); }
.clip.in-p1 { border-color: var(--blue); }
.clip.in-p2 { border-color: var(--green); }
.clip.new { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(255,176,32,.45); } }
/* Vorschaubild ganz zeigen (bei Hochformat sonst ohne Kopf und Füße) */
.clip img { width: 112px; height: 63px; object-fit: contain; border-radius: 5px; background: #000; display: block; }
.clip .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clip .meta b { font-size: 14px; }
.clip .meta span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.clip .acts { display: flex; gap: 4px; margin-top: auto; padding-top: 2px; }
.clip .acts button { flex: 1 1 0; min-width: 0; max-width: 46px; min-height: 28px; padding: 0; }
.clip .acts .ic { width: 17px; height: 17px; }
.tag { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--panel2); }
.tag.manual { color: var(--accent); }
@media (max-width: 1279px) {
  aside { width: 250px; }
  .clip { grid-template-columns: 88px minmax(0, 1fr); gap: 6px; }
  .clip img { width: 88px; height: 50px; }
}

/* ---------- Hochformat: Fenster übereinander, Szenen als Streifen unten ---------- */
@media (orientation: portrait) {
  main, .panes { flex-direction: column; }
  main[data-layout="live-clip"] #livePane { flex-grow: 4; }
  main[data-layout="live-clip"] #p1 { flex-grow: 5; }
  main[data-layout="live-clip"] #livePane:has(.start:not([hidden])) { flex-grow: 8; }
  aside { width: auto; flex-direction: row; border-left: 0; border-top: 1px solid var(--line); }
  .list-head {
    flex: none; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 6px 2px 6px 10px; border-bottom: 0;
  }
  .list-head .grow { display: none; }
  #clips { display: flex; overflow-x: auto; overflow-y: hidden; padding: 6px; }
  #clips > p { margin: auto; }
  .clip { flex: none; width: 236px; margin: 0 4px 0 0; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
  .clip img { width: 112px; height: 63px; }
}
/* Hochformat-Bild vom Handy: Live-Bild und Szene nebeneinander lassen, auch wenn das Tablet hochkant steht */
@media (orientation: portrait) and (min-width: 600px) {
  main[data-video="portrait"] .panes { flex-direction: row; }
}
/* Querformat, aber schmal (Handy quer, kleines Fenster): schmale Liste, Vorschaubild über dem Text */
@media (orientation: landscape) and (max-width: 900px) {
  aside { width: 150px; }
  .list-head { padding: 4px 6px; }
  .clip { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .clip img { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* ---------- Dialoge ---------- */
dialog {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 0; width: min(1100px, 96vw); max-width: 96vw; max-height: 92vh; max-height: 92dvh;
}
#helpDlg { width: min(1160px, 96vw); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog form { padding: 18px 20px; overflow: auto; max-height: 92vh; max-height: 92dvh; container: dlg / inline-size; }
dialog h2 { margin: 0 0 12px; }
/* Spalten nach der Breite des Dialogs: eine, zwei oder drei */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
#helpDlg .cols { gap: 14px 28px; }
@container dlg (min-width: 560px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #settingsDlg fieldset:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }   /* der lange Block rechts, die zwei kurzen links */
}
@container dlg (min-width: 900px) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #settingsDlg fieldset:nth-child(2) { grid-column: auto; grid-row: auto; }
}
fieldset { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; padding: 12px; margin: 0; min-width: 0; }
legend { color: var(--accent); font-weight: 700; padding: 0 6px; }
fieldset label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
fieldset label.chk { flex-direction: row; }
fieldset .row { display: flex; gap: 8px; align-items: flex-end; }
fieldset .row > * { flex: 1 1 0; min-width: 0; }
fieldset select, fieldset input[type=number], fieldset input[type=range] { width: 100%; min-width: 0; }
fieldset button { white-space: normal; padding-top: 6px; padding-bottom: 6px; }
.val { color: var(--text); font-weight: 600; }
.hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
input[type=range] { accent-color: var(--accent); }
.dlg-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
/* Tabellen in der Hilfe */
.keys { border-collapse: collapse; width: 100%; }
.keys th { text-align: left; color: var(--accent); padding: 10px 0 6px; }
.keys tr:first-child th { padding-top: 0; }
.keys td { padding: 5px 14px 5px 0; vertical-align: top; }
.keys td:first-child { color: var(--muted); width: 38%; }
.keys td:last-child { padding-right: 0; }
.keys .sym { color: var(--text); white-space: nowrap; }
.keys .ic { display: inline-block; vertical-align: -5px; }
.keys .dot { color: var(--accent); margin-right: 2px; }

#toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px);
  max-width: calc(100vw - 24px); text-align: center;
  background: var(--panel2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 10; font-weight: 600;
}
#toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Finger-Bedienung (Tablet, Handy) ---------- */
@media (pointer: coarse) {
  .timeline { height: 30px; }
  .clip .acts button { min-height: 36px; }
  #clearAll { min-height: 40px; min-width: 44px; }
  .chk { min-height: 32px; }
  select, input[type=number] { min-height: 40px; font-size: 16px; } /* 16px: iOS zoomt sonst beim Antippen */
  .scrubhint { display: none; }
  .kbtable { display: none; }   /* Tastatur-Kürzel: am Tablet ohne Belang */
}
/* Hilfe am Tablet: zwei Blöcke, auch wenn drei Spalten Platz hätten */
@media (pointer: coarse) { @container dlg (min-width: 900px) { #helpDlg .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } } }
