/*
 * OnPOINT Screens – Oberfläche
 * Idee: Gehäuse eines Automaten. Gebürstetes Grau als Hintergrund, weiße Kopfleiste mit
 * rotem Streifen (Logo-Farbe), Medien als „Fächer“ hinter Glas, eine dunkle Anzeigetafel
 * mit roten Ziffern auf der Startseite. Schrift: Barlow (abgeleitet von Verkehrs- und
 * Hinweisschildern) – lokal eingebunden, keine externen Server (Datenschutz).
 */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --metal: #e7ebef;
  --metal-deep: #d9dfe6;
  --panel: #ffffff;
  --glass: #f4f6f8;
  --ink: #1c2633;
  --ink-2: #4b5868;
  --ink-3: #6f7b8a;
  --line: #cdd5de;
  --line-soft: #e2e7ec;
  --red: #d3202c;
  --red-press: #b01622;
  --red-tint: #fde8e9;
  --blue: #2c62ad;
  --blue-tint: #e6eef9;
  --green: #1b7447;
  --green-tint: #e2f3ea;
  --amber: #965a00;
  --amber-tint: #fdf0dc;
  --board: #1f2935;
  --board-edge: #2c3846;
  --led: #ff4747;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-condensed: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;
  --shadow-inset: inset 0 1px 3px rgba(28, 38, 51, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--metal);
}

h1, h2, h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.375rem; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; }

p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
code { font-size: 0.92em; background: var(--metal); padding: 0.05em 0.35em; border-radius: var(--radius-s); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--panel); padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; }
.muted { color: var(--ink-3); }

/* ---------------- Kopfleiste ---------------- */

.topbar {
  background: var(--panel);
  border-bottom: 4px solid var(--red);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.wordmark {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.wordmark-o { color: var(--red); }
.brand-sub {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-3);
}
.mainnav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  overflow-x: auto;
}
.mainnav a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-m);
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.mainnav a:hover { background: var(--metal); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.usermenu { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.usermenu form { margin: 0; }
.usermenu-name {
  display: flex;
  flex-direction: column;
  text-align: right;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}
.usermenu-role { font-size: 0.8rem; color: var(--ink-3); font-weight: 400; }

/* ---------------- Seite ---------------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  min-height: calc(100vh - 160px);
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.page-head h1 { margin-bottom: 0.25rem; }
.page-lead { color: var(--ink-2); margin: 0; max-width: 62ch; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb { margin: 0 0 0.5rem; font-size: 0.95rem; }
.breadcrumb a::before { content: "‹ "; }
.meta { color: var(--ink-2); }

.section { margin-top: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.5rem;
}
.panel + .panel { margin-top: 1.25rem; }
.narrow { max-width: 560px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-press); color: #fff; }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-quiet:hover:not(:disabled) { background: var(--metal); color: var(--ink); }
.btn-danger { background: var(--panel); color: var(--red-press); border-color: #e9aeb2; }
.btn-danger:hover:not(:disabled) { background: var(--red-tint); color: var(--red-press); }
.btn-approve { background: var(--green); color: #fff; }
.btn-approve:hover:not(:disabled) { background: #145c38; color: #fff; }
.btn-small { padding: 0.35rem 0.65rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------------- Formulare ---------------- */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; margin: 0; }
.field label, .label, legend { font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"],
input[type="date"], input[type="time"], input[type="url"], input[type="number"], select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0.6rem 0.75rem;
  width: 100%;
  box-shadow: var(--shadow-inset);
}
textarea { resize: vertical; }
.field input[type="file"] { font: inherit; max-width: 100%; padding: 0.5rem; border: 1px dashed var(--line); border-radius: var(--radius-m); background: var(--panel); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.field-hint { font-size: 0.875rem; color: var(--ink-3); margin: 0; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox input { margin-top: 0.3rem; }
.form-row { grid-template-columns: 1fr 1fr auto; align-items: end; }
.inline-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; }

/* ---------------- Meldungen ---------------- */

.notice {
  border-radius: var(--radius-m);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
}
.notice-success { background: var(--green-tint); border-color: #aed8c1; color: #11502f; }
.notice-error { background: var(--red-tint); border-color: #f0b8bc; color: #7d0f17; }
.notice-info { background: var(--blue-tint); border-color: #b9cdea; color: #1c3f72; }
.notice-password { background: #fffbea; border-color: #ecd790; color: var(--ink); }
.notice-password p { margin: 0 0 0.6rem; }
.notice-hint { font-size: 0.9rem; color: var(--ink-2); }
.credentials { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0 0 0.6rem; }
.credentials dt { color: var(--ink-2); }
.credentials dd { margin: 0; font-weight: 600; word-break: break-all; }
.secret { font-size: 1.1rem; background: var(--panel); border: 1px solid #ecd790; padding: 0.1em 0.5em; letter-spacing: 0.04em; }

/* ---------------- Status ---------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.3;
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status-processing { background: var(--blue-tint); color: var(--blue); }
.status-pending { background: var(--amber-tint); color: var(--amber); }
.status-approved { background: var(--green-tint); color: var(--green); }
.status-rejected, .status-failed { background: var(--red-tint); color: var(--red-press); }
.status-archived { background: var(--metal); color: var(--ink-2); }
.pill {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--metal);
  color: var(--ink-2);
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ---------------- Anzeigetafel (Startseite) ---------------- */

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--board);
  border: 6px solid var(--board-edge);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.board-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem 1.35rem;
  text-decoration: none;
  border-right: 1px solid var(--board-edge);
}
.board-cell:last-child { border-right: 0; }
.board-cell:hover { background: #253140; }
.board-cell:focus-visible { outline-color: #fff; outline-offset: -4px; }
.board-number {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--led);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 71, 71, 0.45);
}
.board-label { color: #c5ced8; font-weight: 500; }

.todo {
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-m);
  padding: 1rem 1.25rem;
}
.todo h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.todo ul { margin: 0; padding-left: 1.2rem; }
.todo li + li { margin-top: 0.35rem; }

/* ---------------- Medien als Automatenfächer ---------------- */

.shelf {
  list-style: none;
  margin: 0;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem 1.25rem;
  background: var(--metal-deep);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-inset);
}
.slot-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}
.slot-window {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #10161d;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 3px solid var(--panel);
  box-shadow: 0 1px 0 rgba(28, 38, 51, 0.15);
}
.slot-window img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slot-link:hover .slot-window { border-color: var(--red); }
.slot-link:focus-visible { outline: none; }
.slot-link:focus-visible .slot-window { outline: 3px solid var(--blue); outline-offset: 2px; }
.slot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #93a0ae;
  font-size: 0.9rem;
}
.slot-duration {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  background: rgba(16, 22, 29, 0.82);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-s);
  font-variant-numeric: tabular-nums;
}
.slot-title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.slot-company { font-size: 0.875rem; color: var(--ink-2); margin-top: -0.25rem; }
.slot-tag { display: block; }

/* ---------------- Filter ---------------- */

.tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 0.55rem 0.85rem;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.tab-count { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 0.15rem; }
.filterbar { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.filterbar input { max-width: 280px; }
.filterbar select { max-width: 260px; }
.pager { display: flex; gap: 0.35rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pager a {
  min-width: 2.25rem; text-align: center; padding: 0.35rem 0.6rem; border-radius: var(--radius-m);
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-l);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-2);
}
.empty-state p { max-width: 52ch; margin: 0 auto 1rem; }

/* ---------------- Detailseite ---------------- */

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.screen {
  background: #0d1218;
  border: 10px solid #1f2935;
  border-radius: var(--radius-l);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.screen video, .screen img { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.screen-processing, .screen-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  color: #c5ced8;
  padding: 1.5rem;
  text-align: center;
}
.screen-processing-title { font-family: var(--font-condensed); font-weight: 700; font-size: 1.6rem; color: #fff; margin: 0; }
.screen-processing-text { margin: 0; max-width: 46ch; }
.detail-side > section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.25rem 1.35rem; }
.detail-side > section + section { margin-top: 1rem; }
.detail-side h2 { font-size: 1.2rem; }
.decision { border-top: 4px solid var(--amber) !important; }
.decision form + form { margin-top: 1rem; }
.reject-form { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.reject-form label { font-weight: 600; font-size: 0.95rem; }
.facts dl { display: grid; grid-template-columns: 1fr; gap: 0.15rem; margin: 0; }
.facts dt { color: var(--ink-3); font-size: 0.875rem; margin-top: 0.6rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.action-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.action-row form { margin: 0; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; flex-direction: column; padding: 0.45rem 0; border-top: 1px solid var(--line-soft); }
.history li:first-child { border-top: 0; padding-top: 0; }
.history-what { font-weight: 600; }
.history-when { font-size: 0.875rem; color: var(--ink-3); }

.progress { display: block; height: 0.5rem; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width 0.4s ease; }
.progress-large { width: min(420px, 80%); height: 0.75rem; background: #2c3846; }

/* ---------------- Upload ---------------- */

.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.upload-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem; }
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.25rem 1rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius-l);
  background: var(--glass);
  text-align: center;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--red); background: var(--red-tint); }
.dropzone:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-main { font-weight: 600; font-size: 1.1rem; }
.dropzone-link { color: var(--red-press); text-decoration: underline; }
.dropzone-sub { color: var(--ink-3); font-size: 0.9rem; }
.filelist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.fileitem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
}
.fileitem-name { font-weight: 600; overflow-wrap: anywhere; }
.fileitem-size, .fileitem-state { color: var(--ink-3); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.fileitem .progress { grid-column: 1 / -1; }
.fileitem-state { grid-column: 1 / -1; }
.fileitem.is-error { border-color: #f0b8bc; background: var(--red-tint); }
.fileitem.is-done .progress-bar { background: var(--green); }
.fit-choice { display: grid; gap: 0.6rem; }
.fit-choice legend { margin-bottom: 0.4rem; }
.fit-option {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
}
.fit-option:has(input:checked) { border-color: var(--red); background: #fff7f7; }
.fit-choice .fit-option { font-weight: 400; }
.fit-option strong { font-weight: 600; }
.fit-preview { width: 64px; height: 36px; background: #10161d; border-radius: 3px; position: relative; overflow: hidden; }
.fit-preview span { position: absolute; background: linear-gradient(135deg, #f0b44c, #e85d3a); }
.fit-preview-contain span { top: 0; bottom: 0; left: 50%; width: 27px; transform: translateX(-50%); }
.fit-preview-cover span { inset: 0; }
.fit-preview-landscape span { inset: 6px 4px; }
.fit-preview-portrait span { top: 2px; bottom: 2px; left: 50%; width: 18px; transform: translateX(-50%); }
.fit-preview-auto span:first-child { top: 8px; bottom: 8px; left: 4px; width: 30px; }
.fit-preview-auto span:last-child { top: 3px; bottom: 3px; right: 6px; width: 14px; }
.upload-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.upload-error { color: var(--red-press); margin: 0; font-weight: 500; }
.hints { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.35rem; }
.hints h2 { font-size: 1.2rem; }
.hints ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.hints li + li { margin-top: 0.45rem; }
.hints p { margin: 0; color: var(--ink-2); }

/* ---------------- Tabellen ---------------- */

.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.table th, .table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { font-size: 0.875rem; color: var(--ink-2); font-weight: 600; background: var(--glass); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .is-inactive td { color: var(--ink-3); }
.row-actions { display: flex; gap: 0.25rem; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.log { margin: 0; white-space: pre-wrap; font-size: 0.8rem; max-height: 9rem; overflow: auto; color: var(--ink-2); }

/* ---------------- Systemcheck ---------------- */

.checklist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.4rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.55rem 0.8rem; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); }
.check-mark { flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; margin-top: 0.15rem; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: #fff; }
.check-ok .check-mark { background: var(--green); }
.check-ok .check-mark::before { content: "✓"; }
.check-bad .check-mark { background: var(--red); }
.check-bad .check-mark::before { content: "!"; }
.check-info .check-mark { background: var(--ink-3); }
.check-info .check-mark::before { content: "i"; }
.check-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.check-value { color: var(--ink-2); overflow-wrap: anywhere; }
.check-hint { color: var(--red-press); font-size: 0.9rem; }
.copybox { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.5rem; }
.copybox code { flex: 1; overflow-wrap: anywhere; padding: 0.5rem; font-size: 0.85rem; }
.split-side .panel form { margin-top: 0.75rem; }

/* ---------------- Login / Installation ---------------- */

body.plain { background: var(--metal); min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; }
.login, .install, .plain-box {
  width: min(440px, calc(100% - 2rem));
  margin: 8vh auto 3rem;
  background: var(--panel);
  border-top: 6px solid var(--red);
  border-radius: var(--radius-l);
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(28, 38, 51, 0.12);
}
.install { width: min(620px, calc(100% - 2rem)); }
.login-brand { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.75rem; }
.wordmark-large { font-size: 3rem; }
.login-247 { font-family: var(--font-condensed); font-weight: 700; font-size: 1.5rem; color: var(--ink-3); }
.login-lead { color: var(--ink-2); }
.login-help { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--ink-3); }
.steps { padding-left: 1.25rem; }
.steps li + li { margin-top: 0.4rem; }
.plain-details { white-space: pre-wrap; font-size: 0.85rem; background: var(--glass); padding: 0.75rem; border-radius: var(--radius-m); }

/* ---------------- Zeitplan: Einplanungen ---------------- */

.status-running, .status-player-online { background: var(--green-tint); color: var(--green); }
.status-planned { background: var(--blue-tint); color: var(--blue); }
.status-paused, .status-ended { background: var(--metal); color: var(--ink-2); }
.status-blocked, .status-player-offline { background: var(--red-tint); color: var(--red-press); }
.status-player-never { background: var(--amber-tint); color: var(--amber); }

.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.plan {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-m);
  padding: 0.9rem 1rem;
}
.plan-planned { border-left-color: var(--blue); }
.plan-paused, .plan-ended { border-left-color: var(--line); }
.plan-blocked { border-left-color: var(--red); }
.plan-ended .plan-main, .plan-paused .plan-main { color: var(--ink-2); }
.detail-media .plan, .plan-list-compact .plan { grid-template-columns: minmax(0, 1fr) auto; }
.plan-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #10161d;
  border-radius: var(--radius-s);
  overflow: hidden;
}
.plan-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.plan-main { min-width: 0; }
.plan-title { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; overflow-wrap: anywhere; }
.plan-title a { color: var(--ink); text-decoration: none; }
.plan-title a:hover { color: var(--blue); text-decoration: underline; }
.plan-company { margin: 0.1rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
.plan-facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin: 0.5rem 0 0; }
.plan-facts div { display: flex; flex-direction: column; }
.plan-facts dt { font-size: 0.78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-facts dd { margin: 0; }
.plan-warning { margin: 0.5rem 0 0; color: var(--red-press); font-weight: 500; }
.plan-notes { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--ink-3); font-style: italic; }
.plan-actions { display: flex; flex-direction: column; gap: 0.3rem; align-items: stretch; }
.plan-actions form { margin: 0; }
.plan-actions .btn { width: 100%; }

.loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.loop-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  background: var(--board);
  border: 4px solid var(--board-edge);
  border-radius: var(--radius-m);
  text-decoration: none;
  color: #c5ced8;
}
.loop-card:hover { background: #253140; color: #fff; }
.loop-card:focus-visible { outline-color: #fff; outline-offset: -4px; }
.loop-card-name { font-weight: 600; color: #fff; }
.loop-card-value { font-family: var(--font-condensed); font-weight: 700; font-size: 1.6rem; line-height: 1.15; color: var(--led); }
.loop-card-empty { color: #93a0ae; }
.loop-card-sub { font-size: 0.85rem; }

.plan-form { gap: 1.4rem; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
  font-weight: 400;
  color: var(--ink-2);
}
.choice strong { color: var(--ink); font-weight: 600; }
.choice input { margin-top: 0.3rem; }
.choice:has(input:checked) { border-color: var(--red); background: #fff7f7; }
.choice:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.location-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.4rem 1rem; margin-top: 0.75rem; padding: 0.75rem 0.85rem; background: var(--glass); border-radius: var(--radius-m); }
.location-picks .checkbox { font-weight: 400; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-pair label { font-weight: 500; font-size: 0.95rem; }
.day-picks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.day-pick { position: relative; cursor: pointer; }
.day-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.day-pick span {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  font-weight: 600;
  color: var(--ink-2);
  background: var(--panel);
}
.day-pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.day-presets { margin-top: 0.5rem; }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.schedule-callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius-l);
  padding: 1.25rem 1.35rem;
  margin-top: 1.25rem;
}
.schedule-callout h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.approve-form { display: grid; gap: 0.75rem; }
.approve-form .checkbox { font-size: 0.95rem; }
.todo-alert { border-left-color: var(--red); }

/* ---------------- Bildschirme ---------------- */

.location-block + .location-block { margin-top: 2rem; }
.location-block .section-head { margin-bottom: 0.25rem; }
.location-address { margin: 0 0 0.85rem; }
.screen-cards { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.screen-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 0.9rem 1rem 0.95rem;
  background: var(--board);
  border: 6px solid var(--board-edge);
  border-radius: var(--radius-m);
  color: #c5ced8;
  text-decoration: none;
}
.screen-card:hover { background: #253140; color: #fff; }
.screen-card:focus-visible { outline-color: #fff; outline-offset: -6px; }
.screen-card-name { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; color: #fff; font-size: 1.05rem; }
.screen-card-now { font-size: 0.95rem; overflow-wrap: anywhere; }
.screen-card-meta { font-size: 0.85rem; color: #93a0ae; }
.screen-card-warn { color: #ffb4b4; font-weight: 600; }
.led { flex-shrink: 0; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #93a0ae; display: inline-block; }
.led-online { background: #3ddc84; box-shadow: 0 0 10px rgba(61, 220, 132, 0.7); }
.led-offline { background: var(--led); box-shadow: 0 0 10px rgba(255, 71, 71, 0.6); }
.led-never { background: #f0b44c; }
.player-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.player-mini li { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.player-mini .led-online { box-shadow: none; }
.player-mini .led-offline { background: var(--red); box-shadow: none; }
.setup-guide { margin-top: 2.5rem; }
.setup-guide .steps li { margin-bottom: 0.4rem; }
.setup-guide .copybox { margin: 0.5rem 0 0.25rem; }
.code-input { font-family: var(--font-condensed); font-size: 1.6rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.waiting { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.waiting h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.waiting ul { margin: 0 0 0.5rem; padding-left: 1.1rem; font-size: 0.92rem; }
.now-playing { margin: -0.5rem 0 1.25rem; color: var(--ink-2); }
.plain-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.action-stack { display: grid; gap: 0.5rem; }
.action-stack form { margin: 0; }
.loop-summary { color: var(--ink-2); }
.screen-card-playlist { display: flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 500; }
.screen-card-now + .screen-card-now { margin-top: 0.15rem; }
.screen-card-warn-light { color: var(--amber); font-weight: 500; }

/* Bildschirme eines Players: Vorschau (quer/hochkant) und Einstellungen */
.screen-row { display: grid; gap: 1.25rem; align-items: end; }
.screen-row-2 { grid-template-columns: 1fr 1fr; }
.screen-figure { margin: 0 0 1.25rem; }
.screen-figure .screen { margin-bottom: 0.6rem; }
.screen-figure .now-playing { margin: 0; }
.screen-portrait { aspect-ratio: 9 / 16; max-width: 280px; margin-inline: auto; }
.screen-row-2 .screen-portrait { max-width: 220px; }
.screens-panel { margin-bottom: 1.5rem; }
.screen-settings { display: grid; gap: 0.75rem; }
.screens-panel form:has(input[name="count"][value="2"]:checked) .screen-settings { grid-template-columns: 1fr 1fr; }
.screen-setting { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0.75rem 0.9rem 0.9rem; margin: 0; display: grid; gap: 0.75rem; min-width: 0; }
.screen-setting legend { font-weight: 600; padding: 0 0.3rem; }
.screen-setting select { max-width: none; width: 100%; }
.screen-setting-dual { display: none; }
.screens-panel form:has(input[name="count"][value="2"]:checked) .screen-setting-single { display: none; }
.screens-panel form:has(input[name="count"][value="2"]:checked) .screen-setting-dual { display: inline; }

/* Format-Symbol: liegendes oder stehendes Rechteck */
.orient { display: inline-block; flex-shrink: 0; border: 2px solid currentColor; border-radius: 2px; vertical-align: -0.1em; opacity: 0.85; }
.orient-landscape { width: 1.05em; height: 0.65em; }
.orient-portrait { width: 0.65em; height: 1.05em; }

/* ---------------- Playlists ---------------- */

.loop-card-name { display: flex; align-items: center; gap: 0.45rem; }
.loop-card-new { background: var(--panel); border: 2px dashed var(--line); color: var(--ink-2); gap: 0.45rem; display: grid; align-content: start; }
.loop-card-new:hover { background: var(--panel); color: var(--ink-2); }
.loop-card-new .loop-card-name { color: var(--ink); }
.loop-card-new input, .loop-card-new select { max-width: none; width: 100%; }
.playlist-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.playlist-picks-compact { grid-template-columns: 1fr; margin: 0.25rem 0 0.75rem; }
.playlist-pick {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  cursor: pointer;
  font-weight: 400;
}
.playlist-pick input { margin-top: 0.3rem; }
.playlist-pick strong { font-weight: 600; display: block; }
.playlist-pick .muted { font-size: 0.875rem; }
.playlist-pick:has(input:checked) { border-color: var(--red); background: #fff7f7; }
.approve-hint { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.schedule-callout form { display: grid; gap: 0.5rem; }
.playlist-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.playlist-entry {
  display: grid;
  grid-template-columns: 2rem 128px minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-m);
  padding: 0.85rem 1rem;
}
.playlist-entry-pos { font-family: var(--font-condensed); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--ink-3); text-align: center; }
.move-buttons { display: flex; gap: 0.3rem; }
.move-buttons form { flex: 1; }
.add-panel { margin-top: 1.25rem; }
.add-panel .form-row { grid-template-columns: minmax(0, 1fr) auto; }
.add-panel select { max-width: none; width: 100%; }
.ended-entries summary { cursor: pointer; color: var(--blue); }
.ended-entries .plan-list { margin-top: 0.75rem; }

/* ---------------- Statistik ---------------- */

.stats-filter { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1rem 1.1rem; margin-bottom: 1.5rem; }
.stats-filter .field { gap: 0.25rem; min-width: 150px; flex: 1 1 150px; }
.stats-filter .field label { font-size: 0.875rem; color: var(--ink-2); }
.stats-filter .field-submit { flex: 0 0 auto; min-width: 0; }
.stats-filter select, .stats-filter input { max-width: none; }
.board-number-text { font-size: 2.4rem; line-height: 1.1; }
.stats-empty { margin-top: 1.5rem; }
.chart-figure { margin: 1.75rem 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.1rem 1.25rem 0.9rem; }
.chart-title { font-family: var(--font-condensed); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.5rem; }
.chart { position: relative; min-height: 240px; }
.chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart-grid { stroke: var(--line-soft); stroke-width: 1; shape-rendering: crispEdges; }
.chart-axis { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart-label { fill: var(--ink-3); font-family: var(--font); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-bar { fill: var(--blue); pointer-events: none; }
.chart-hit { fill: transparent; }
.chart-bar.is-active { fill: #1f4b87; }
.chart-tip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-s);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(28, 38, 51, 0.2);
}
.chart-tip strong { font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 0.75rem; }
.chart-table summary { cursor: pointer; color: var(--blue); font-size: 0.95rem; }
.chart-table .table { margin-top: 0.75rem; max-width: 420px; }
.table-compact th, .table-compact td { padding: 0.35rem 0.75rem; }
.media-cell { display: flex; gap: 0.75rem; align-items: center; }
.mini-thumb { flex-shrink: 0; width: 64px; height: 36px; border-radius: 3px; background: #10161d; object-fit: contain; display: block; }
.stats-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 2rem; }
.export-panel { margin-top: 2.5rem; }
.export-panel .action-row { margin-bottom: 0.75rem; }
.stats-note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-3); max-width: 75ch; }

/* ---------------- Webseiten, Anzeigedauer, Fernwartung ---------------- */

.web-badge {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius-s);
  padding: 0.1rem 0.45rem;
}
.slot-web { gap: 0.4rem; align-content: center; padding: 0 0.75rem; text-align: center; overflow-wrap: anywhere; }
.plan-thumb:has(.web-badge) { display: grid; place-items: center; }
.screen-web { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.75rem; padding: 1.5rem; text-align: center; }
.screen-web .web-badge { font-size: 1.6rem; }
.screen-web-host { margin: 0; color: #fff; font-size: 1.15rem; overflow-wrap: anywhere; }
.break-all { overflow-wrap: anywhere; }
.web-badge-php { background: #6c5fc7; }
.web-badge-zip { background: #2f7d6d; }
.web-badge-cam { background: #b5452f; }
.screen-web-note { margin: 0; max-width: 26rem; color: #c7d0da; font-size: 0.9rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.shots h2 { margin-bottom: 0.75rem; }
.shots .field-hint { margin-top: -0.5rem; margin-bottom: 1.25rem; }
.screen-shot { display: block; cursor: zoom-in; }

.input-unit { display: flex; align-items: center; gap: 0.5rem; }
.input-unit input { max-width: 9rem; }
.duration-form { display: flex; align-items: center; gap: 0.35rem; margin: 0; }
.duration-form input { width: 5.5rem; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.duration-form input[data-default] { color: var(--ink-3); }

.remote h2 { margin-bottom: 0.75rem; }
.remote-subhead { font-size: 1rem; margin: 1.25rem 0 0.4rem; }
.update-box { background: var(--blue-tint); border-radius: var(--radius-m); padding: 0.75rem 0.9rem; margin-bottom: 0.9rem; }
.update-box p { margin: 0 0 0.6rem; }
.update-box .copybox { margin: 0; }
.command-list { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.command-list li { display: flex; flex-direction: column; padding: 0.4rem 0 0.4rem 0.7rem; border-left: 3px solid var(--line); margin-bottom: 0.35rem; }
.command-what { font-weight: 600; }
.command-state, .command-result { color: var(--ink-2); overflow-wrap: anywhere; }
.command-result { font-size: 0.88rem; }
.command-list .command-waiting, .command-list .command-sent { border-left-color: var(--blue); }
.command-list .command-done { border-left-color: var(--green); }
.command-list .command-failed, .command-list .command-expired, .command-list .command-silent { border-left-color: var(--red); }
.command-line { font-size: 0.88rem; color: var(--ink-2); }
.command-line:empty { display: none; }
.command-line.command-done { color: var(--green); }
.command-line.command-failed, .command-line.command-expired, .command-line.command-silent { color: var(--red); }
.push-form { margin: 1rem 0 0.5rem; }
.screen-card-update { color: #9cc3ff; font-weight: 600; }

/* ---------------- Drucken (Statistik als PDF) ---------------- */

@media print {
  body { background: #fff; }
  .topbar, .footer, .no-print, .skip-link, .notice { display: none !important; }
  .page { padding: 0; max-width: none; min-height: 0; }
  .board { background: #fff; border: 1px solid #999; }
  .board-cell { border-right-color: #ccc; }
  .board-number { color: var(--ink); text-shadow: none; }
  .board-label { color: var(--ink-2); }
  .chart-figure, .table { break-inside: avoid; }
  .chart-table { display: none; }
  a { color: var(--ink); text-decoration: none; }
}

/* ---------------- Kleine Bildschirme ---------------- */

@media (max-width: 960px) {
  .split, .detail, .upload-layout { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .board-cell:nth-child(2) { border-right: 0; }
  .board-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--board-edge); }
}

@media (max-width: 720px) {
  h1 { font-size: 1.85rem; }
  .plan { grid-template-columns: 88px minmax(0, 1fr); }
  .plan-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .plan-actions .btn { width: auto; }
  .detail-media .plan { grid-template-columns: minmax(0, 1fr); }
  .playlist-entry { grid-template-columns: 1.5rem 88px minmax(0, 1fr); }
  .playlist-entry .plan-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .playlist-entry .plan-actions .btn { width: auto; }
  .screen-row-2, .screens-panel form:has(input[name="count"][value="2"]:checked) .screen-settings { grid-template-columns: 1fr; }
  .choice-row, .field-pair { grid-template-columns: 1fr; }
  .board-number-text { font-size: 1.75rem; }
  .media-cell .mini-thumb { display: none; }
  .topbar-inner { flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0.6rem 1rem; }
  .mainnav { order: 3; flex-basis: 100%; margin: 0 -0.25rem; }
  .usermenu { margin-left: auto; }
  .usermenu-role { display: none; }
  .page { padding: 1.25rem 1rem 2.5rem; }
  .board-number { font-size: 2.75rem; }
  .board-cell { padding: 1rem; }
  .shelf { padding: 0.85rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .filterbar input, .filterbar select { max-width: none; flex: 1 1 100%; }
  .table { display: block; overflow-x: auto; }
  .footer { flex-direction: column; gap: 0.25rem; }
  .fit-option { grid-template-columns: auto 52px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
