/* Panel de comisarios · F1 Tournament
   Sala de control: paredes gris azulado, hojas blancas de decisión, una torre de tiempos como calendario
   y el código de banderas de pista para los estados (amarilla pendiente, verde resuelto, roja Race Ban, cuadros publicado). */

@font-face { font-family: 'Fira Sans'; src: url('/assets/fonts/FiraSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/assets/fonts/FiraSans-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/assets/fonts/FiraSans-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/assets/fonts/FiraSans-SemiBold.woff') format('woff'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Anton'; src: url('/assets/fonts/Anton-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --wall: #e6eaf0;
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --line: #d3dae4;
  --line-2: #b9c3d1;
  --ink: #13213a;
  --ink-2: #394862;
  --ink-3: #5f6d86;
  --tower: #13213a;
  --tower-2: #1d2e4c;
  --tower-ink: #eef2f8;
  --tower-dim: #93a3be;
  --yellow: #f2c200;
  --yellow-bg: #fff3c4;
  --yellow-ink: #5a4400;
  --red: #d3242c;
  --red-bg: #fde4e4;
  --red-ink: #8c1118;
  --green: #138a4e;
  --green-bg: #ddf2e5;
  --green-ink: #0b5a33;
  --blue: #1f5fd1;
  --blue-bg: #e2ebfc;
  --blue-ink: #163f8c;
  --discord: #5865f2;
  --focus: #1f5fd1;
  --r-s: 5px;
  --r-m: 8px;
  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Anton', 'Fira Sans', 'Arial Narrow', sans-serif;
  --top-h: 56px;
  --tower-w: 236px;
  --reg-w: 560px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--wall); font-variant-numeric: tabular-nums; }
a { color: var(--blue-ink); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 0.75em; }
code, pre { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.lede { color: var(--ink-2); font-size: 15.5px; max-width: 72ch; }
.warn-text { color: var(--yellow-ink); font-weight: 500; }
.spacer { flex: 1; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-ink); text-decoration: underline; cursor: pointer; }
.count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 3px; background: var(--paper-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: center; color: var(--ink-2); vertical-align: 2px; }

/* ---------- Botones y campos ---------- */
.btn { font: inherit; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.25; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); background: var(--paper-2); color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #0a1426; border-color: #0a1426; color: #fff; }
.btn-small { padding: 4px 10px; font-size: 13px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #b01920; border-color: #b01920; color: #fff; }
.btn-danger-ghost { border-color: transparent; background: transparent; color: var(--red-ink); }
.btn-danger-ghost:hover { background: var(--red-bg); border-color: var(--red-bg); color: var(--red-ink); }
.btn-wide { width: 100%; padding: 10px 14px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { font: inherit; font-size: 20px; line-height: 1; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-s); border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); border-color: var(--line); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.file-btn { position: relative; }

.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; min-width: 0; border: 0; padding: 0; }
.field-label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-help { font-size: 13px; color: var(--ink-3); margin: 0; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=password], select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 7px 10px; width: 100%; min-width: 0; }
textarea { resize: vertical; line-height: 1.5; }
input:disabled, select:disabled, textarea:disabled { background: var(--paper-2); color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.check-disabled { opacity: 0.55; cursor: default; }
.unit-input { display: flex; align-items: stretch; }
.unit-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; text-align: right; }
.unit-input span { display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 var(--r-s) var(--r-s) 0; background: var(--paper-2); color: var(--ink-3); font-size: 13px; }
.input-with-btn { display: flex; gap: 6px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid { display: grid; gap: 4px; }
.inline-field select { width: auto; font-size: 14px; padding: 4px 8px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; background: var(--paper); }
.seg-opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; cursor: pointer; font-size: 14px; border-right: 1px solid var(--line); position: relative; }
.seg-opt:last-child { border-right: 0; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt::before { content: ''; width: 11px; height: 9px; border-radius: 1px; border: 1px solid var(--line-2); background: var(--paper-2); }
.seg-yellow:has(input:checked) { background: var(--yellow-bg); color: var(--yellow-ink); }
.seg-yellow:has(input:checked)::before { background: var(--yellow); border-color: #b79200; }
.seg-green:has(input:checked) { background: var(--green-bg); color: var(--green-ink); }
.seg-green:has(input:checked)::before { background: var(--green); border-color: var(--green); }
.seg-red:has(input:checked) { background: var(--red-bg); color: var(--red-ink); }
.seg-red:has(input:checked)::before { background: var(--red); border-color: var(--red); }
.seg-blue:has(input:checked) { background: var(--blue-bg); color: var(--blue-ink); }
.seg-blue:has(input:checked)::before { background: var(--blue); border-color: var(--blue); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }

/* ---------- Banderas de estado ---------- */
.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.4; padding: 2px 8px 2px 6px; border-radius: 3px; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); vertical-align: middle; }
.flag::before { content: ''; flex: none; width: 11px; height: 8px; border-radius: 1px; background: var(--ink-3); }
.flag-yellow { background: var(--yellow-bg); color: var(--yellow-ink); }
.flag-yellow::before { background: var(--yellow); box-shadow: inset 0 0 0 1px #b79200; }
.flag-green { background: var(--green-bg); color: var(--green-ink); }
.flag-green::before { background: var(--green); }
.flag-red { background: var(--red-bg); color: var(--red-ink); }
.flag-red::before { background: var(--red); }
.flag-blue { background: var(--blue-bg); color: var(--blue-ink); }
.flag-blue::before { background: var(--blue); }
.flag-none::before { display: none; }
.flag-checkered { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.flag-checkered::before { background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 5.5px 4px; box-shadow: inset 0 0 0 1px var(--ink); }
.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 3px; font-size: 11.5px; font-weight: 600; line-height: 1; vertical-align: 1px; }
.badge-yellow { background: var(--yellow); color: #2b2100; }
.badge-red { background: var(--red); color: #fff; }

/* ---------- Tira de licencia ---------- */
.lic { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.lic-cell { width: 9px; height: 15px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 1px; }
.lic-mark { margin-right: 5px; }
.lic-cell.lic-mark:last-child { margin-right: 0; }
.lic-cell.on.lic-ok { background: var(--ink); border-color: var(--ink); }
.lic-cell.on.lic-qualy { background: var(--yellow); border-color: #b79200; }
.lic-cell.on.lic-race { background: var(--red); border-color: var(--red); }
.lic-sm .lic-cell { width: 7px; height: 12px; }
.lic-sm .lic-mark { margin-right: 4px; }
.lic-lg .lic-cell { width: 18px; height: 28px; border-radius: 2px; }
.lic-lg .lic-mark { margin-right: 8px; }
.lic-over { font-size: 12px; font-weight: 600; color: var(--red-ink); margin-left: 4px; }
.pl-cell { display: inline-flex; align-items: center; gap: 10px; }
.pl-num { font-family: var(--display); font-weight: 400; font-size: 17px; min-width: 2ch; }

/* ---------- Estructura ---------- */
.shell { display: grid; grid-template-columns: var(--tower-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr); min-height: 100vh; }
body.reg-docked .shell { margin-right: var(--reg-w); }
.topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: var(--top-h); padding: 0 16px 0 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; width: var(--tower-w); height: 100%; padding: 0 16px; background: var(--tower); color: var(--tower-ink); text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand-flag { width: 26px; height: 20px; background: repeating-conic-gradient(var(--tower-ink) 0 25%, var(--tower) 0 50%) 0 0 / 10px 8px; border: 1.5px solid var(--tower-ink); border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--tower-dim); }
.topnav { display: flex; gap: 2px; align-items: stretch; height: 100%; overflow-x: auto; scrollbar-width: none; }
.topnav a { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.topnav a:hover { color: var(--ink); background: var(--paper-2); }
.topnav a.active { color: var(--ink); border-bottom-color: var(--red); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.btn-reg[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.sync { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; color: var(--ink-3); background: none; border: 1px solid transparent; border-radius: var(--r-s); padding: 4px 8px; cursor: pointer; max-width: 300px; }
.sync:hover { border-color: var(--line); color: var(--ink); }
.sync-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sync-idle .sync-dot { background: var(--line-2); }
.sync-off .sync-dot { background: var(--line-2); }
.sync-syncing .sync-dot { background: var(--discord); animation: pulse 1.1s ease-in-out infinite; }
.sync-error .sync-dot { background: var(--red); }
.sync-error { color: var(--red-ink); }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Torre de tiempos: el calendario */
.tower { grid-row: 2; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; background: var(--tower); color: var(--tower-ink); padding-bottom: 24px; }
.tower-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 10px 16px; }
.tower-head h2 { font-size: 13px; font-weight: 500; color: var(--tower-dim); }
.btn-tower { background: transparent; color: var(--tower-ink); border-color: #3a4d70; }
.btn-tower:hover { background: var(--tower-2); color: #fff; border-color: var(--tower-dim); }
.tower-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tower-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 12px 7px 13px; color: var(--tower-ink); text-decoration: none; border-left: 3px solid transparent; border-top: 1px solid #22345a; }
.tower-row:hover { background: var(--tower-2); color: #fff; }
.tower-row.active { background: var(--paper); color: var(--ink); border-left-color: var(--red); }
.tower-num { font-family: var(--display); font-size: 21px; line-height: 1; color: var(--tower-dim); letter-spacing: 0.02em; }
.tower-row.active .tower-num { color: var(--ink); }
.tower-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 500; line-height: 1.25; min-width: 0; }
.tower-name { overflow: hidden; text-overflow: ellipsis; }
.tower-date { font-size: 12px; font-weight: 400; color: var(--tower-dim); }
.tower-row.active .tower-date { color: var(--ink-3); }
.tower-flags { display: flex; gap: 3px; }
.tf { min-width: 20px; height: 20px; padding: 0 4px; border-radius: 2px; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.tf-yellow { background: var(--yellow); color: #2b2100; }
.tf-green { background: var(--green); color: #fff; }
.tower-empty { padding: 4px 16px; font-size: 13.5px; color: var(--tower-dim); }

.view { grid-row: 2; min-width: 0; padding: 28px 36px 96px; container-type: inline-size; outline: none; }
.page { max-width: 1240px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; }
.page-head h1:focus { outline: none; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 4px; }
.crumbs a { color: var(--ink-3); }

.block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px 14px; margin-bottom: 18px; }
.block > h2 { margin-bottom: 12px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head h2 a { color: inherit; text-decoration: none; }
.block-yellow { border-left: 4px solid var(--yellow); }
.block-alert { border-left: 4px solid var(--red); }
.block-quiet { background: transparent; }
.block-quiet summary { cursor: pointer; list-style: none; }
.block-quiet summary h2 { display: inline; }
.block-quiet summary::before { content: '▸'; display: inline-block; width: 1em; color: var(--ink-3); }
.block-quiet[open] summary::before { content: '▾'; }
.mini-num { font-family: var(--display); font-weight: 400; background: var(--tower); color: var(--tower-ink); padding: 1px 6px; border-radius: 2px; font-size: 15px; margin-right: 4px; letter-spacing: 0.02em; }
.plain-list { list-style: none; margin: 8px 0 0; padding: 0; }
.plain-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.plain-list li:first-child { border-top: 0; }

.notice { border-radius: var(--r-s); padding: 10px 12px; margin: 0 0 14px; border: 1px solid; background: var(--paper); font-size: 14px; }
.notice p { margin: 0 0 6px; }
.notice-info { border-color: #b8cdf3; background: var(--blue-bg); color: var(--blue-ink); }
.notice-warn { border-color: #e7cf6c; background: var(--yellow-bg); color: var(--yellow-ink); }
.notice-error { border-color: #f0b3b6; background: var(--red-bg); color: var(--red-ink); }
.notice-success { border-color: #a8dbbd; background: var(--green-bg); color: var(--green-ink); }
.notice .btn { margin-left: 6px; }

.empty { padding: 28px 8px; text-align: left; color: var(--ink-2); }
.empty-title { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 4px; }

.onboard { background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-m); padding: 18px 20px; margin-bottom: 18px; }
.onboard ol { margin: 10px 0 0; padding-left: 20px; }
.onboard li { margin-bottom: 6px; }

/* ---------- Avisos de PL ---------- */
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li { display: grid; grid-template-columns: minmax(140px, 220px) auto auto 1fr; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.alert-list li:first-child { border-top: 0; }
.alert-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.alert-race strong { color: var(--red-ink); }
.alert-qualy strong { color: var(--yellow-ink); }
.crossings { list-style: none; padding: 0; margin: 0 0 12px; }
.crossings li { padding: 10px 12px; border-radius: var(--r-s); margin-bottom: 8px; }
.crossings .alert-race { background: var(--red-bg); color: var(--red-ink); }
.crossings .alert-qualy { background: var(--yellow-bg); color: var(--yellow-ink); }

/* ---------- Tarjetas de hilos e incidentes ---------- */
.tlist { display: grid; gap: 10px; }
.tcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); }
.tcard-open { border-left: 3px solid var(--yellow); }
.tcard-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcard-meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.tcard-line { font-size: 14px; margin-top: 6px; }
.tcard-excerpt { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; max-width: 72ch; }
.tcard-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tcard-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.discord-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--discord); display: inline-block; flex: none; margin-right: 2px; }
.link-ext { color: var(--ink-3); }
.mention { background: rgba(88, 101, 242, 0.14); color: #3c45b8; border-radius: 3px; padding: 0 3px; font-weight: 500; }

.ilist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.icard { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); color: var(--ink); text-decoration: none; }
.icard:hover { border-color: var(--ink-3); color: var(--ink); }
.icard-pend { border-left-color: var(--yellow); }
.icard-ok { border-left-color: var(--green); }
.icard-pub { border-left-color: var(--ink); }
.icard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.icard-body { font-size: 14px; display: grid; gap: 2px; }
.icard-foot { margin-top: auto; }
.driver-tag { font-weight: 500; }
.driver-off { color: var(--ink-3); }

/* ---------- Carrera ---------- */
.race-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 22px; }
.race-num { font-family: var(--display); font-size: 58px; line-height: 1; padding: 8px 12px 6px; background: var(--tower); color: var(--tower-ink); border-radius: 3px; letter-spacing: 0.02em; border-bottom: 4px solid var(--red); }
.race-title h1 { font-size: 30px; }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.pub-list li:first-child { border-top: 0; }
.pub-list li > a { font-weight: 500; text-decoration: none; color: var(--ink); min-width: 200px; }

/* ---------- Editor ---------- */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 20px; align-items: start; }
.editor-thread { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
.editor-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px 20px 0; }
.editor-form fieldset { border: 0; padding: 14px 0 6px; margin: 0; border-bottom: 1px solid var(--line); }
.editor-form fieldset:last-of-type { border-bottom: 0; }
.editor-form legend { font-size: 16px; font-weight: 600; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.editor-form legend + * { clear: both; }
.editor-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 14px; margin-top: 4px; background: var(--paper); border-top: 1px solid var(--line); z-index: 2; }
form.block .editor-bar { position: static; }
.field-decision textarea { min-height: 120px; }
.sanctions { display: grid; gap: 10px; margin-bottom: 10px; }
.nobody { margin: 0 0 6px; padding: 10px 12px; background: var(--paper-2); border-radius: var(--r-s); font-size: 14px; color: var(--ink-2); }
.srow, .crow { border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--r-s); padding: 10px 12px 4px; background: var(--paper); }
.srow-annulled, .crow-annulled { border-left-color: var(--line-2); background: var(--paper-2); }
.editor-form { container-type: inline-size; }
.srow-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(84px, 0.6fr) minmax(84px, 0.6fr) 32px; grid-template-areas: 'driver sec pl rm' 'date other other other'; gap: 0 10px; align-items: end; }
.srow-driver { grid-area: driver; }
.srow-sec { grid-area: sec; }
.srow-pl { grid-area: pl; }
.srow-date { grid-area: date; }
.srow-other { grid-area: other; }
.srow-remove { grid-area: rm; }
.srow-grid .field { margin-bottom: 8px; }
.srow-remove { margin-bottom: 9px; }
.srow-impact { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.srow-appeal { font-size: 13px; color: var(--blue-ink); margin: 0 0 6px; }
.crow { border-left-color: var(--blue); }
.crow-add { border-left-color: var(--red); }
.crow-who { display: flex; flex-direction: column; margin-bottom: 6px; }
.crow-grid { display: grid; grid-template-columns: minmax(90px, 0.7fr) minmax(90px, 0.7fr) minmax(130px, 1.2fr) auto; gap: 0 10px; align-items: end; }
.crow-grid-add { grid-template-columns: minmax(0, 1.7fr) minmax(84px, 0.6fr) minmax(84px, 0.6fr) 32px; grid-template-areas: 'driver sec pl rm' 'date other other other'; }
.crow-grid-add > :nth-child(1) { grid-area: driver; }
.crow-grid-add > :nth-child(2) { grid-area: sec; }
.crow-grid-add > :nth-child(3) { grid-area: pl; }
.crow-grid-add > :nth-child(4) { grid-area: date; }
.crow-grid-add > :nth-child(5) { grid-area: other; }
.crow-grid-add > :nth-child(6) { grid-area: rm; margin-bottom: 9px; }
.crow-annul { margin-bottom: 16px; white-space: nowrap; }
.resolution { margin: 14px 0; display: grid; gap: 10px; justify-items: stretch; }
.orig { background: var(--paper-2); border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; }
.orig-head { display: flex; gap: 8px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.orig p { margin: 0; white-space: pre-wrap; }
.sub { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 6px 0 2px; }
.seg-4 { margin-bottom: 4px; }

@container (max-width: 1020px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-thread { position: static; max-height: 560px; }
}
@container (max-width: 520px) {
  .row-2 { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 440px) {
  .srow-grid, .crow-grid-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; grid-template-areas: 'driver driver rm' 'sec pl pl' 'date date date' 'other other other'; }
  .crow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 760px) {
  .crow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .race-head { grid-template-columns: auto minmax(0, 1fr); }
  .race-head .page-actions { grid-column: 1 / -1; }
  .alert-list li { grid-template-columns: 1fr auto; }
}

/* ---------- Selector de pilotos ---------- */
.picker { position: relative; }
.picker-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 5px 6px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); min-height: 40px; }
.picker-box:focus-within { outline: 2px solid var(--focus); border-color: var(--focus); }
.picker-chips { display: contents; }
.picker-input { border: 0 !important; outline: none !important; padding: 4px !important; flex: 1; min-width: 140px; width: auto !important; }
.picker-input-hidden { min-width: 0; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 9px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.chip button { background: none; border: 0; color: #c7d1e2; font-size: 17px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 2px; }
.chip button:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }
.picker-single .chip { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.picker-single .chip button { color: var(--ink-3); }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px; list-style: none; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: 0 10px 28px rgba(19, 33, 58, 0.16); max-height: 280px; overflow: auto; }
.picker-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 4px; cursor: pointer; }
.picker-list li.active, .picker-list li:hover { background: var(--blue-bg); }
.picker-empty { color: var(--ink-3); cursor: default !important; }

/* ---------- Hilos de Discord ---------- */
.thread { padding: 14px 16px 16px; }
.thread-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.thread-head h3 { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.thread-head p { margin: 2px 0 0; }
.thread-tools { display: flex; gap: 6px; }
.thread-none { padding: 18px; }
.thread-none h3 { margin-bottom: 6px; }
.thread-empty { padding: 18px; color: var(--ink-3); }
.template { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-s); background: #f1f2fe; border-left: 3px solid var(--discord); display: grid; gap: 8px; }
.template div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px; }
.template dt { font-weight: 600; font-size: 13.5px; color: #3c45b8; }
.template dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.msgs { list-style: none; margin: 0; padding: 0; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #edf0f4; }
.msg:first-child { border-top: 0; }
.msg-starter { background: transparent; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); }
.msg-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.msg-link { margin-left: auto; color: var(--ink-3); text-decoration: none; }
.msg-text { font-size: 14.5px; overflow-wrap: anywhere; margin-top: 2px; }
.msg-text pre { background: var(--paper-2); padding: 8px; border-radius: 4px; white-space: pre-wrap; margin: 4px 0; }
.msg-text code { background: var(--paper-2); padding: 0 3px; border-radius: 3px; }
.msg-text .quote { display: inline-block; border-left: 3px solid var(--line-2); padding-left: 8px; color: var(--ink-2); }
.spoiler { background: var(--ink-2); color: transparent; border-radius: 3px; cursor: pointer; }
.spoiler:hover { color: #fff; }
.msgs-sep { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); padding: 10px 0 4px; border-top: 0 !important; }
.msgs-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.media-grid { display: grid; gap: 8px; margin-top: 8px; }
.media { margin: 0; }
.media video, .media iframe { width: 100%; max-height: 420px; aspect-ratio: 16 / 9; background: #0b0f17; border-radius: 4px; border: 0; display: block; }
.media figcaption { font-size: 12.5px; margin-top: 3px; overflow-wrap: anywhere; }
.img-btn { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.media-image img { max-width: 100%; max-height: 300px; border-radius: 4px; display: block; }
.lite-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #0b0f17; cursor: pointer; display: grid; place-items: center; }
.lite-embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.lite-embed .play { position: relative; width: 64px; height: 44px; border-radius: 10px; background: var(--red); }
.lite-embed .play::after { content: ''; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.lite-embed:hover .play { background: #b01920; }
.lite-label { position: absolute; top: 10px; left: 12px; color: #fff; font-weight: 600; }
.embed-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-left: 3px solid var(--discord); border-radius: 4px; text-decoration: none; color: var(--ink); max-width: 520px; }
.embed-card img { width: 96px; height: 60px; object-fit: cover; border-radius: 3px; }
.embed-card span { display: flex; flex-direction: column; min-width: 0; }
.file-link { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.zoomed { max-width: 100%; max-height: 75vh; display: block; margin: 0 auto 8px; }

/* ---------- Tablas ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); background: var(--paper-2); }
.table tbody th { font-weight: 500; }
.table tbody th a { color: var(--ink); text-decoration: none; display: block; }
.table tbody th a:hover { text-decoration: underline; }
.table .num { text-align: right; }
.drivers-table { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.history tr.st-expired td, .history tr.st-annulled td { color: var(--ink-3); }
.state { font-size: 13px; font-weight: 500; }
.state-active { color: var(--red-ink); }
.state-future { color: var(--blue-ink); }
.state-expired, .state-annulled, .state-nopl { color: var(--ink-3); }
.state-annulled { text-decoration: line-through; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 12px; }
.search input { width: 260px; }

.driver-head { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; align-items: flex-end; margin: 6px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.driver-pl { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; }
.big-pl { grid-row: 1 / 3; font-family: var(--display); font-size: 64px; line-height: 0.9; }
.big-pl-label { font-size: 13px; color: var(--ink-3); }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.active .count { background: rgba(255, 255, 255, 0.15); border-color: transparent; color: #fff; }
.assign-list { list-style: none; margin: 0; padding: 0; }
.assign-list li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.assign-list li > span { flex: 1; min-width: 220px; }
.appeal-list { list-style: none; margin: 0; padding: 0; }
.appeal-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.appeal-list li:first-child { border-top: 0; }

/* ---------- Ajustes ---------- */
.page-settings .block { max-width: 980px; }
.checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-s); }
.checks .ok { background: var(--green-bg); color: var(--green-ink); }
.checks .ko { background: var(--red-bg); color: var(--red-ink); }
.check-mark { font-weight: 700; width: 1.2em; }
.diag { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin-top: 6px; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--role); flex: none; }
.snippet { white-space: pre-wrap; word-break: break-all; background: var(--paper-2); border: 1px solid var(--line); padding: 10px; border-radius: 4px; max-height: 140px; overflow: auto; }
.legacy-help summary { cursor: pointer; font-weight: 500; margin: 10px 0; }
.import-sum { margin: 0 0 12px; padding-left: 20px; }

/* ---------- Diálogos y avisos ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(19, 33, 58, 0.48); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { width: min(560px, 100%); background: var(--paper); border-radius: var(--r-m); box-shadow: 0 24px 60px rgba(10, 20, 38, 0.3); display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.modal-wide { width: min(1080px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 16px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.modal-thread .modal-body { padding: 0; }
.modal-image .modal-body { text-align: center; }

.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(460px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: var(--r-s); background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(10, 20, 38, 0.25); font-size: 14px; border-left: 4px solid var(--blue); }
.toast span { flex: 1; }
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-close { background: none; border: 0; color: #c7d1e2; font-size: 18px; cursor: pointer; padding: 0 4px; }
.toast .btn { background: transparent; color: #fff; border-color: #4b5d80; }

/* ---------- Publicación ---------- */
.pub-grid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; }
.pub-items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.pub-items .check { align-items: flex-start; }
.pub-items .check span { display: flex; flex-direction: column; }
.dc-msgs { list-style: none; margin: 0; padding: 12px; background: #313338; border-radius: var(--r-s); display: grid; gap: 14px; max-height: 58vh; overflow: auto; }
.dc-msg { color: #dbdee1; }
.dc-meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #949ba4; margin-bottom: 4px; }
.dc-meta .muted { color: #949ba4; }
.dc-meta a { color: #00a8fc; }
.dc-bot { background: var(--discord); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 4px; border-radius: 3px; }
.dc-text { font-size: 15px; line-height: 1.375; white-space: normal; overflow-wrap: anywhere; }
.dc-text .mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; }
@container (max-width: 700px) { .pub-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pub-grid { grid-template-columns: 1fr; } }

/* ---------- Acceso ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--tower); }
.login-card { width: min(420px, 100%); background: var(--paper); border-radius: var(--r-m); padding: 28px 28px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.login-card h1 { font-size: 24px; margin-bottom: 2px; }
.login-card .lede { margin-bottom: 18px; color: var(--ink-3); }
.login-card .check { margin: 0 0 16px; font-size: 14px; }
.login-mark { width: 44px; height: 32px; margin-bottom: 16px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 11px 8px; border: 2px solid var(--ink); border-radius: 2px; }
body.logged-out .shell { display: none; }

/* ---------- Reglamento ---------- */
.reg { position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--reg-w), 100vw); z-index: 45; background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(19, 33, 58, 0.16); }
body.reg-docked .reg { box-shadow: none; z-index: 25; }
.reg-resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 2; }
.reg-resize:hover { background: rgba(31, 95, 209, 0.25); }
.reg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px 8px 16px; min-height: var(--top-h); border-bottom: 1px solid var(--line); background: var(--paper); }
.reg-head h2 { font-size: 16px; margin-right: auto; }
.reg-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.reg-pageno input { width: 54px; text-align: center; padding: 4px 4px; font-size: 14px; }
.reg-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.reg-find { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.reg-find input { font-size: 14px; }
.reg-toc { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; scrollbar-width: thin; }
.toc-chip { font: inherit; font-size: 12.5px; white-space: nowrap; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.toc-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.reg-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow: auto; display: grid; gap: 2px; }
.reg-results button { font: inherit; font-size: 13px; text-align: left; width: 100%; padding: 6px 8px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.reg-results button:hover { background: var(--blue-bg); }
.reg-res-page { font-weight: 600; color: var(--ink); margin-right: 6px; }
.reg-results mark { background: #ffe58a; color: inherit; }
.reg-view { flex: 1; overflow: auto; padding: 16px; background: #c9d0da; outline: none; }
.reg-view:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.reg-page { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px rgba(19, 33, 58, 0.2); --user-unit: 1; --total-scale-factor: calc(var(--scale-factor, 1) * var(--user-unit)); --scale-round-x: 1px; --scale-round-y: 1px; }
.reg-page canvas { display: block; }
.reg-status { text-align: center; padding: 20px; }

/* Capa de texto de pdf.js (selección y búsqueda) */
.textLayer { position: absolute; text-align: initial; inset: 0; overflow: clip; opacity: 1; line-height: 1; letter-spacing: normal; word-spacing: normal; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; caret-color: CanvasText; z-index: 0; --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.textLayer span, .textLayer br { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; user-select: text; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) { z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height)); --scale-x: 1; --rotate: 0deg; transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
.textLayer .markedContent { display: contents; }
.textLayer span[role="img"] { user-select: none; cursor: default; }
.textLayer ::selection { background: rgba(31, 95, 209, 0.3); color: transparent; }
.textLayer br::selection { background: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }
.textLayer.selecting .endOfContent { top: 0; }
.textLayer .reg-hit { background: rgba(242, 194, 0, 0.45); border-radius: 2px; }

/* ---------- Pantallas estrechas ---------- */
@media (max-width: 1180px) {
  .view { padding: 22px 22px 80px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .topbar { height: auto; flex-wrap: wrap; gap: 0; padding: 0; position: sticky; }
  .brand { width: auto; height: 48px; }
  .topbar-right { padding: 0 10px; gap: 8px; }
  .who { display: none; }
  .sync { max-width: 170px; }
  .topnav { order: 3; width: 100%; height: 44px; border-top: 1px solid var(--line); }
  .tower { grid-row: 2; position: static; height: auto; overflow-x: auto; overflow-y: hidden; display: flex; align-items: stretch; padding: 0; }
  .tower-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px; border-right: 1px solid #22345a; }
  .tower-head h2 { display: none; }
  .tower-list { display: flex; }
  .tower-row { border-top: 0; border-left: 0; border-bottom: 3px solid transparent; border-right: 1px solid #22345a; grid-template-columns: auto auto; padding: 8px 12px; min-width: 150px; }
  .tower-row.active { border-bottom-color: var(--red); }
  .tower-flags { grid-column: 1 / -1; }
  .view { grid-row: 3; padding: 18px 14px 80px; }
  .tcard { grid-template-columns: minmax(0, 1fr); }
  .tcard-side { align-items: flex-start; }
  .tcard-actions { justify-content: flex-start; }
  .race-num { font-size: 40px; }
  .race-title h1, h1 { font-size: 22px; }
  .template div { grid-template-columns: 1fr; gap: 0; }
  .ilist { grid-template-columns: minmax(0, 1fr); }
  .drivers-table thead { display: none; }
  .drivers-table tr { display: grid; grid-template-columns: 1fr auto; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .drivers-table th, .drivers-table td { border: 0; padding: 4px 12px; }
  .search input { width: 100%; }
  .reg { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
