/* LabCoin Arena Admin. The arena's lilac/purple night theme (18.11), navy, LabCoin pink #D15AF5; the same tokens as
   the staff page (lobby-stage/public/staff). Sofia Sans is OFL and served from here: nothing from another site. */
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/fonts/sofia-sans-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/fonts/sofia-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/fonts/sofia-sans-extra-condensed-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: oklch(0.145 0.035 305); --bg-2: oklch(0.165 0.038 302);
  --surface: oklch(0.19 0.042 305); --surface-2: oklch(0.225 0.047 305); --surface-3: oklch(0.27 0.052 305);
  --navy: oklch(0.2 0.05 275);
  --line: oklch(0.29 0.05 305); --line-2: oklch(0.38 0.06 305);
  --text: oklch(0.97 0.012 320); --text-2: oklch(0.85 0.025 315); --text-3: oklch(0.72 0.03 312);
  --pink: #d15af5; --pink-hi: #df84f8; --pink-ink: oklch(0.17 0.05 315); --pink-dim: rgb(209 90 245 / 0.16);
  --lilac: oklch(0.78 0.11 305);
  --go: oklch(0.82 0.15 160); --go-ink: oklch(0.2 0.05 165); --go-dim: oklch(0.82 0.15 160 / 0.14);
  --warn: oklch(0.8 0.15 70); --warn-dim: oklch(0.8 0.15 70 / 0.14);
  --bad: oklch(0.68 0.2 25); --bad-hi: oklch(0.74 0.19 25); --bad-dim: oklch(0.68 0.2 25 / 0.16);
  --off: oklch(0.55 0.03 305);
  --font: "Sofia Sans", "Segoe UI", system-ui, sans-serif;
  --font-xc: "Sofia Sans XC", "Sofia Sans", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-1: 8px; --r-2: 14px; --r-3: 20px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rail: 248px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); font-feature-settings: "tnum" 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink-hi); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 30px; height: 40px; flex: none; }
.brand-words { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 800 22px/1 var(--font-xc); letter-spacing: 0.01em; white-space: nowrap; }
.brand-name b { color: var(--pink); font-weight: 800; }
.brand-sub { margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-1);
  border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 650; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.btn-primary:hover { background: var(--pink-hi); border-color: var(--pink-hi); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: oklch(0.15 0.04 25); }
.btn-danger:hover { background: var(--bad-hi); border-color: var(--bad-hi); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16.5px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border: 0; background: none; border-radius: 99px; }
.switch-track { position: relative; width: 52px; height: 30px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background 0.2s var(--ease), border-color 0.2s; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-3); transition: transform 0.25s var(--ease), background 0.2s; }
.switch[aria-checked="true"] .switch-track { background: var(--go-dim); border-color: var(--go); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); background: var(--go); }
.switch-label { min-width: 3.4em; text-align: left; font-weight: 700; font-size: 14px; color: var(--text-3); }
.switch[aria-checked="true"] .switch-label { color: var(--go); }
.switch[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* ---------- chips, dots ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.chip-go { background: var(--go-dim); color: var(--go); }
.chip-warn { background: var(--warn-dim); color: var(--warn); }
.chip-bad { background: var(--bad-dim); color: var(--bad-hi); }
.chip-pink { background: var(--pink-dim); color: var(--pink-hi); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--off); }
.dot-go { background: var(--go); box-shadow: 0 0 0 3px var(--go-dim); }
.dot-warn { background: var(--warn); }
.dot-bad { background: var(--bad); }

/* ---------- the shell: rail + main ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 18px;
  background: var(--bg-2); border-right: 1px solid var(--line); }
.rail .brand { padding: 0 6px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 650; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a[aria-current="page"] { background: var(--pink-dim); color: var(--text); box-shadow: inset 3px 0 0 var(--pink); }
.nav a[aria-current="page"] svg { color: var(--pink-hi); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--navy); color: var(--lilac);
  font: 800 16px/1 var(--font-xc); border: 1px solid var(--line-2); }
.me-text { min-width: 0; flex: 1; }
.me-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-role { font-size: 12.5px; color: var(--text-3); }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.lang button { height: 30px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--text-3); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.lang button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-1); border: 1px solid transparent; background: none; color: var(--text-3); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.main { min-width: 0; display: flex; flex-direction: column; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 28px; font-size: 13.5px; color: var(--text-2); background: var(--warn-dim);
  border-bottom: 1px solid oklch(0.8 0.15 70 / 0.3); }
.banner .chip { background: oklch(0.8 0.15 70 / 0.22); color: var(--warn); }
.banner-bad { background: var(--bad-dim); border-bottom-color: oklch(0.68 0.2 25 / 0.35); }
.page { width: 100%; max-width: 1180px; padding: 28px 28px 64px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { margin: 0; font: 800 38px/1 var(--font-xc); letter-spacing: 0.005em; }
.page-sub { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-3); font-size: 14px; }
.page-sub span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin-right: 14px; vertical-align: middle; }
.lead { margin: 0; color: var(--text-2); max-width: 70ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.card-pad { padding: 20px 22px; }
.card-title { margin: 0 0 4px; font: 800 22px/1.1 var(--font-xc); letter-spacing: 0.01em; }
.label { margin: 0 0 8px; font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.notice { padding: 12px 16px; border-radius: var(--r-1); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; }
.notice-bad { background: var(--bad-dim); border-color: oklch(0.68 0.2 25 / 0.45); color: var(--text); }
.notice-warn { background: var(--warn-dim); border-color: oklch(0.8 0.15 70 / 0.35); color: var(--text); }

/* ---------- halls ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px 18px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tile-n { font: 800 32px/1 var(--font-xc); letter-spacing: 0.01em; white-space: nowrap; }
.tile-n small { font: 700 18px/1 var(--font-xc); color: var(--text-3); margin-left: 4px; }
.tile-l { margin-top: 8px; font-size: 13px; font-weight: 650; color: var(--text-3); }
.halls { display: flex; flex-direction: column; }
.halls-head, .hall { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(140px, 0.9fr) minmax(150px, 1fr) 150px; align-items: center; gap: 16px; }
.halls-head { padding: 0 20px 10px; font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hall { padding: 16px 20px; border-top: 1px solid var(--line); cursor: pointer; transition: background 0.15s; }
.hall:first-child { border-top: 0; border-radius: var(--r-2) var(--r-2) 0 0; }
.hall:last-child { border-radius: 0 0 var(--r-2) var(--r-2); }
.hall:only-child { border-radius: var(--r-2); }
.hall:hover { background: var(--surface-2); }
.hall.is-off .hall-name { color: var(--text-2); }
.hall-id { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.hall-id .dot { margin-top: 7px; }
.hall-name { font: 750 18px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-meta { margin-top: 3px; font-size: 13px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.cell-main { font-weight: 650; }
.cell-sub { margin-top: 3px; font-size: 13px; color: var(--text-3); }
.hall-version { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.hall-version .v { font: 700 16px/1 var(--mono); }
.today-n { font: 800 24px/1 var(--font-xc); }
.today-n small { font: 650 13px/1 var(--font); color: var(--text-3); margin-left: 6px; }
.hall-switch { justify-self: end; }
.halls-empty { padding: 36px 24px; text-align: center; color: var(--text-2); }
.updated { font-size: 12.5px; color: var(--text-3); }

/* ---------- drawer (one hall) ---------- */
dialog { padding: 0; border: 0; background: none; color: inherit; max-width: none; max-height: none; }
dialog:focus, dialog:focus-visible { outline: none; }
dialog::backdrop { background: oklch(0.08 0.03 300 / 0.66); backdrop-filter: blur(3px); }
.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(480px, 100vw); }
.drawer[open] { animation: slide-in 0.28s var(--ease); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-body { height: 100%; overflow: auto; background: var(--bg-2); border-left: 1px solid var(--line); padding: 22px 24px 32px; display: flex; flex-direction: column; gap: 22px; }
.drawer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-title { margin: 0; font: 800 30px/1.05 var(--font-xc); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 12px 14px; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); }
.stat-n { font: 800 26px/1 var(--font-xc); }
.stat-l { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.section { display: flex; flex-direction: column; gap: 12px; }
.drawer-body .section + .section { padding-top: 20px; border-top: 1px solid var(--line); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .field-label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.input, select.input { height: 44px; padding: 0 12px; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); outline: none; width: 100%; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-dim); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input.mono { font-family: var(--mono); }
.hint { font-size: 12.5px; color: var(--text-3); }
.field-error { font-size: 13px; color: var(--bad-hi); font-weight: 650; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--pink); background: var(--pink-dim); }
.radio input { margin: 2px 0 0; accent-color: var(--pink); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 650; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); margin: 0; }

/* ---------- modal ---------- */
.modal { margin: auto; width: min(520px, calc(100vw - 32px)); }
.modal[open] { animation: pop 0.22s var(--ease); }
@keyframes pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
.modal-body { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-3); padding: 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 30px 80px oklch(0.05 0.03 300 / 0.6); max-height: calc(100dvh - 32px); overflow: auto; }
.modal-title { margin: 0; font: 800 26px/1.1 var(--font-xc); }
.modal-text { margin: 0; color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.secret { display: flex; align-items: stretch; gap: 8px; }
.secret-value { flex: 1; min-width: 0; padding: 14px; border-radius: var(--r-1); background: var(--bg); border: 1px dashed var(--pink); font: 600 15px/1.45 var(--mono);
  overflow-wrap: anywhere; user-select: all; color: var(--text); }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); font-weight: 650; box-shadow: 0 12px 40px oklch(0.05 0.03 300 / 0.5);
  animation: pop 0.22s var(--ease); max-width: min(560px, calc(100vw - 32px)); }
.toast-bad { background: oklch(0.3 0.09 25); border-color: var(--bad); }
.toast-go { border-color: var(--go); }

/* ---------- releases ---------- */
.rel-body { display: flex; flex-direction: column; gap: 32px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rel-v { font: 800 46px/1 var(--font-xc); letter-spacing: 0.01em; }
.rel-v.none { font-size: 30px; color: var(--text-2); }
.list { display: flex; flex-direction: column; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.vrow { display: grid; grid-template-columns: minmax(160px, 1.4fr) 110px minmax(130px, 1fr) minmax(140px, 1fr); align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); }
.vrow:first-child { border-top: 0; }
.vrow-head { padding-top: 14px; padding-bottom: 8px; font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.summary { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- log ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); gap: 2px; }
.tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--text-3); font-weight: 700; }
.tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font-weight: 650; font-size: 13.5px; }
.filters button[aria-pressed="true"] { background: var(--pink-dim); border-color: var(--pink); color: var(--text); }
.log { width: 100%; border-collapse: collapse; }
.log th { text-align: left; padding: 12px 16px 8px; font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.log td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.log td.when { white-space: nowrap; color: var(--text-2); }
.log .what-sub { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.log .from { white-space: nowrap; color: var(--text-3); font-size: 13.5px; }
.log tr.refused td { background: oklch(0.68 0.2 25 / 0.05); }
.more { align-self: center; }

/* ---------- admins ---------- */
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pk { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pk:first-of-type { border-top: 0; }
.pk-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--lilac); flex: none; }
.pk-text { flex: 1; min-width: 0; }
.pk-name { font-weight: 700; }
.pk-sub { margin-top: 2px; font-size: 13px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- sign-in ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.gate-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 22px; }
.gate-card .card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.gate-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gate-title { margin: 0; font: 800 34px/1 var(--font-xc); }
.gate-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); justify-content: center; text-align: center; }
.gate .btn-lg { width: 100%; }

/* ---------- boot ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; color: var(--text-3); }

/* ---------- phone ---------- */
.tabbar { display: none; }
@media (max-width: 960px) {
  .halls-head { display: none; }
  .hall { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id sw" "seen ver" "today today"; gap: 12px 16px; }
  .hall-id { grid-area: id; } .hall-switch { grid-area: sw; } .hall-seen { grid-area: seen; } .hall-version { grid-area: ver; align-items: flex-end; text-align: right; }
  .hall-today { grid-area: today; display: flex; align-items: baseline; gap: 10px; }
  .hall-today .cell-sub { margin: 0; }
  .vrow { grid-template-columns: minmax(0, 1fr) auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vrow > :nth-child(3), .vrow > :nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; z-index: 10; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 16px 10px;
    border-right: 0; border-bottom: 1px solid var(--line); }
  .rail .nav, .rail .me-text, .rail .me .avatar { display: none; }
  .rail-foot { margin: 0; flex-direction: row; align-items: center; gap: 8px; }
  .me { padding: 0; border: 0; background: none; }
  .brand-mark { width: 24px; height: 32px; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }
  .page { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .page-title { font-size: 32px; }
  .banner { padding: 10px 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in oklch, var(--bg-2) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; color: var(--text-3); text-decoration: none; font-size: 11.5px; font-weight: 700; }
  .tabbar a[aria-current="page"] { color: var(--pink-hi); }
  .hall { padding: 14px 16px; }
  .rel-grid, .adm-grid { grid-template-columns: minmax(0, 1fr); }
  .rel-v { font-size: 40px; }
  .log thead { display: none; }
  .log tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 16px; border-top: 1px solid var(--line); gap: 2px 12px; }
  .log td { padding: 0; border: 0; }
  .log td.what { grid-column: 1 / -1; order: -1; }
  .drawer { width: 100vw; }
  .drawer-body { padding: max(18px, env(safe-area-inset-top)) 16px 32px; }
  .modal { margin: auto auto 0; width: 100vw; }
  .modal-body { border-radius: var(--r-3) var(--r-3) 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; height: 48px; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
