/* Winter Program Ops — ADEK × Sport360 */
:root {
  --red: #EA0029; --red-2: #ff3352; --red-soft: rgba(234, 0, 41, .14);
  --ok: #22c57a; --ok-soft: rgba(34, 197, 122, .14);
  --warn: #f2a93b; --warn-soft: rgba(242, 169, 59, .16);
  --bad: #ff4d5e; --bad-soft: rgba(255, 77, 94, .15);
  --info: #5aa9ff; --info-soft: rgba(90, 169, 255, .14);
  --r-s: 10px; --r: 14px; --r-l: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
  --bg: #0a0a0c; --bg-2: #0f0f12; --panel: #141418; --panel-2: #1b1b20; --panel-3: #23232a;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --ink: #f3f3f1; --ink-2: #c9c9cf; --mute: #8d8d96; --faint: #5b5b63;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 40px rgba(0, 0, 0, .35);
  --glass: rgba(20, 20, 24, .72);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f4f1; --bg-2: #ecece8; --panel: #ffffff; --panel-2: #f6f6f3; --panel-3: #ececE7;
    --line: rgba(10, 10, 12, .08); --line-2: rgba(10, 10, 12, .15);
    --ink: #121214; --ink-2: #3a3a40; --mute: #6c6c74; --faint: #a3a3aa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
    --glass: rgba(255, 255, 255, .78);
    --ok: #129a5c; --warn: #c97a07; --bad: #d92639;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f1; --bg-2: #ecece8; --panel: #ffffff; --panel-2: #f6f6f3; --panel-3: #ececE7;
  --line: rgba(10, 10, 12, .08); --line-2: rgba(10, 10, 12, .15);
  --ink: #121214; --ink-2: #3a3a40; --mute: #6c6c74; --faint: #a3a3aa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  --glass: rgba(255, 255, 255, .78);
  --ok: #129a5c; --warn: #c97a07; --bad: #d92639;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--font); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
form { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.015em; margin: 0; line-height: 1.15; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 18px 0 8px; }
p { margin: 0; }
.sub { color: var(--mute); font-size: 13px; }
.note { color: var(--mute); font-size: 13px; margin: 8px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nowrap { white-space: nowrap; }
.ta-r { text-align: right; }
.ta-r .btn + .btn { margin-left: 6px; }
.right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt6 { margin-top: 6px; } .mb { margin-bottom: 14px; } .mb2 { margin-bottom: 26px; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.ico { width: 18px; height: 18px; flex: none; }
.dark-only { display: none; } .light-only { display: none; }
:root[data-theme="dark"] .dark-only, :root:not([data-theme]) .dark-only { display: block; }
:root[data-theme="light"] .light-only { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .dark-only { display: none; } :root:not([data-theme]) .light-only { display: block; } }

/* ---------- controls ---------- */
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-s);
  padding: 9px 12px; min-height: 40px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--red); margin: 0; flex: none; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
label.check, label.inl { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 13.5px; }
label.inl input { width: 90px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 600 13.5px var(--font); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); cursor: pointer; text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.btn.big { min-height: 48px; font-size: 15px; width: 100%; }
.btn.pri { background: linear-gradient(180deg, var(--red-2), var(--red)); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(234, 0, 41, .28); }
.btn.pri:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: transparent; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.wide { width: 100%; }
.btn.up { position: relative; overflow: hidden; }
.btn.up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--mute); cursor: pointer; }
.icon-btn:hover { background: var(--panel-3); color: var(--ink); }
.linkish { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-align: left; font-weight: 600; }
.linkish:hover { color: var(--red-2); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.late { color: var(--bad); background: var(--bad-soft); }
.pill.pend { color: var(--warn); background: var(--warn-soft); }
.pill.n { color: var(--mute); background: var(--panel-3); }
.tag { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--panel-3); color: var(--ink-2); vertical-align: 1px; }
.tag.red { background: var(--red-soft); color: var(--red-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.ok { background: var(--ok); } .dot.late { background: var(--bad); } .dot.pend { background: var(--warn); }

/* ---------- gate (sign-in) ---------- */
body.gate { min-height: 100vh; overflow-x: hidden; background: #070709; color: #f3f3f1; color-scheme: dark;
  --panel-2: rgba(255,255,255,.05); --line-2: rgba(255,255,255,.14); --ink: #f3f3f1; --ink-2: #c9c9cf; --mute: #8d8d96; }
.gate-art { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 22s ease-in-out infinite alternate; }
.o1 { width: 560px; height: 560px; background: radial-gradient(circle, #EA0029, transparent 65%); top: -160px; left: -120px; }
.o2 { width: 620px; height: 620px; background: radial-gradient(circle, #5b1020, transparent 70%); bottom: -220px; right: -160px; animation-duration: 28s; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 40% 40%, #000 20%, transparent 75%); }
@keyframes float { to { transform: translate(60px, 40px) scale(1.08); } }
.gate-wrap { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 32px; }
.gate-wrap.single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.gate-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 44px; }
.logo-adek { height: 54px; width: auto; } .logo-adek.sm { height: 40px; margin-bottom: 18px; }
.x, .b-x { color: #6b6b73; font-size: 18px; }
.s360 { font: 800 20px/1 var(--display); letter-spacing: .04em; color: var(--ink); }
.s360 b { color: var(--red); font-weight: 800; }
.eyebrow { color: var(--red-2); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.gate h1 { font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.gate h1 span { background: linear-gradient(90deg, #fff, #EA0029 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: #b8b8bf; font-size: 16.5px; max-width: 520px; margin-top: 22px; line-height: 1.6; }
.gate-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.gate-points li { color: #a9a9b0; display: flex; gap: 10px; align-items: center; }
.gate-points li::before { content: ''; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }
.gate-points b { color: #fff; }
.card-glass { background: rgba(20, 20, 24, .62); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border: 1px solid rgba(255, 255, 255, .09); border-radius: 24px; padding: 34px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.card-glass h2 { font-size: 26px; }
.card-glass input { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #fff; min-height: 46px; }
.alert { background: var(--bad-soft); color: #ff8b96; border: 1px solid rgba(255, 77, 94, .3); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; }
.fine { color: #7c7c85; font-size: 12.5px; text-align: center; }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--red); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot-err { display: grid; gap: 10px; text-align: center; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px 12px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.b-adek { height: 30px; width: auto; }
.brand .s360 { font-size: 14px; }
.prog { margin: 0 6px 14px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prog em { font-style: normal; font-size: 10.5px; color: var(--warn); background: var(--warn-soft); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
nav#nav { flex: 1; }
.nav-g { display: grid; gap: 2px; margin-bottom: 16px; }
.nav-cap { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; padding: 0 12px 6px; }
.nav-i { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 13.5px; }
.nav-i:hover { background: var(--panel); color: var(--ink); }
.nav-i.on { background: linear-gradient(90deg, var(--red-soft), transparent 90%); color: var(--ink); font-weight: 600; }
.nav-i.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--red); }
.nav-i.on .ico { color: var(--red-2); }
.nb { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; display: grid; place-items: center; background: var(--red); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 8px 4px; border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }
.me-t { flex: 1; min-width: 0; display: grid; }
.me-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-t small { color: var(--mute); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-acts { display: flex; gap: 2px; width: 100%; justify-content: flex-end; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 12px var(--display); color: #fff; background: linear-gradient(135deg, #EA0029, #6d0d1f); }
.av.xl { width: 64px; height: 64px; font-size: 22px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); padding: 14px 28px 12px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top-t { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.top-t h1 { font-size: 21px; font-weight: 800; white-space: nowrap; }
.clock { color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums lining-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; align-self: center; }
.live-dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(34, 197, 122, .6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 122, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 122, 0); } }
.top-a { display: flex; gap: 8px; align-items: center; }
.top-a select { width: auto; min-height: 36px; padding: 6px 30px 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.site-one { font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 0 8px; }
.days { display: flex; gap: 6px; margin-top: 4px; padding-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.days::-webkit-scrollbar { display: none; }
.day { position: relative; flex: none; display: grid; justify-items: center; gap: 0; min-width: 62px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; font: inherit; }
.day b { font: 700 13px var(--display); color: var(--ink); }
.day span { font-size: 11px; color: var(--mute); }
.day .trip { position: absolute; top: -7px; right: -4px; font-style: normal; font-size: 9.5px; font-weight: 700; background: var(--info); color: #fff; border-radius: 6px; padding: 0 5px; }
.day s { position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ok); }
.day.today { border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.day.on { background: var(--ink); border-color: var(--ink); }
.day.on b, .day.on span { color: var(--bg); }
.day.all { min-width: 54px; }
.view { padding: 24px 28px 120px; max-width: 1480px; width: 100%; }
.pg { animation: rise .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pg, .orb, .live-dot.on { animation: none; } }

.impersonate { position: sticky; top: 0; z-index: 40; background: var(--warn); color: #1a1205; padding: 8px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 13px; flex-wrap: wrap; }
.impersonate .btn { background: #1a1205; color: #fff; border: 0; }

/* ---------- panels & lists ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-h.pad { padding: 16px 20px 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-h .sub { margin-top: 4px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pgrid .panel { display: grid; gap: 12px; align-content: start; margin: 0; }
.scroll { overflow-x: auto; }
.empty { padding: 36px 20px; text-align: center; color: var(--mute); background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--r-l); }
.ro-note { font-size: 12.5px; color: var(--info); background: var(--info-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.demo-note { font-size: 13px; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.list.plain { box-shadow: none; border: 0; background: transparent; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row.link { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row.link:hover { background: var(--panel-2); }
.row.hl { background: var(--red-soft); }
.row .nm { flex: 1 1 220px; min-width: 0; font-weight: 600; }
.row .nm small { display: block; color: var(--mute); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.row .nm p { font-weight: 400; margin-top: 6px; }
.row .nm a { color: var(--ink-2); }
.row.wrap .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1 1 420px; justify-content: flex-end; }
.row .acts select { width: auto; min-height: 34px; padding: 4px 28px 4px 10px; font-size: 12.5px; }
.row .acts input.grow { flex: 1 1 160px; width: auto; min-height: 34px; font-size: 13px; }
.row > select, .row > input { width: auto; }
.row.inc.serious { box-shadow: inset 3px 0 0 var(--bad); }

.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; min-height: 44px; border-radius: 999px; padding-left: 18px; }
.search select { width: auto; border-radius: 999px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.progress { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; margin-bottom: 12px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-2)); transition: width .3s; }

.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--mute); font: 600 13px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; min-width: 74px; }
.seg button.on.P { background: var(--ok); color: #fff; }
.seg button.on.L { background: var(--warn); color: #1a1205; }
.seg button.on.A { background: var(--bad); color: #fff; }
.seg button:disabled { cursor: not-allowed; }
.actionbar { position: sticky; bottom: 12px; z-index: 10; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px 10px 18px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow); }
.actionbar .sub { margin-right: auto; }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .n { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.panel > .t th:first-child, .panel > .scroll > .t th:first-child { border-top-left-radius: 0; }
.t.reg td { white-space: nowrap; }
.c-ok { color: var(--ok); font-weight: 600; } .c-bad { color: var(--bad); font-weight: 600; } .c-warn { color: var(--warn); font-weight: 600; }
tr.off td { opacity: .5; }
.report { white-space: pre-wrap; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; overflow-x: auto; }
.sent-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sent-row:last-child { border-bottom: 0; }
.inline-form { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.inline-form input { width: 120px; }

/* ---------- dashboard ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; padding: 24px 26px 22px; border-radius: 24px; margin-bottom: 18px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(234, 0, 41, .22), transparent 55%), radial-gradient(80% 120% at 100% 100%, rgba(234, 0, 41, .08), transparent 60%), var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 span { color: var(--mute); font-weight: 700; }
.hero .eyebrow { margin-bottom: 8px; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.live-badge, .state-badge, .health { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--panel-3); color: var(--ink-2); }
.live-badge { background: var(--red); color: #fff; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.state-badge.up { background: var(--info-soft); color: var(--info); }
.state-badge.note { background: var(--warn-soft); color: var(--warn); }
.health.ok { background: var(--ok-soft); color: var(--ok); } .health.warn { background: var(--warn-soft); color: var(--warn); } .health.bad { background: var(--bad-soft); color: var(--bad); }
.hero-r { display: flex; align-items: center; }
.big-ring { position: relative; width: 132px; height: 132px; }
.big-ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.big-ring-c b { font: 800 28px var(--display); letter-spacing: -.02em; }
.big-ring-c span { font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.ring .trk { fill: none; stroke: var(--panel-3); stroke-width: 7; }
.ring .val { fill: none; stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .7, .2, 1); }
.ring.ok .val { stroke: var(--ok); } .ring.warn .val { stroke: var(--warn); } .ring.bad .val { stroke: var(--bad); } .ring.mute .val { stroke: var(--faint); }
.tile .ring .trk, .tile .ring .val { stroke-width: 5; }

.timeline { grid-column: 1 / -1; padding: 30px 6px 0; }
.tl-track { position: relative; height: 6px; border-radius: 6px; background: var(--panel-3); margin: 0 10px; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, rgba(234, 0, 41, .25), var(--red)); }
.tl-pt { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; }
.tl-pt i { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--faint); z-index: 1; }
.tl-pt.ok i { border-color: var(--ok); background: var(--ok); } .tl-pt.bad i { border-color: var(--bad); background: var(--bad); } .tl-pt.warn i { border-color: var(--warn); }
.tl-pt b, .tl-pt span { position: absolute; white-space: nowrap; font-size: 11px; }
.tl-pt b { font-weight: 700; color: var(--ink); }
.tl-pt span { color: var(--mute); }
.tl-pt.up b { bottom: 18px; } .tl-pt.up span { bottom: 31px; }
.tl-pt.dn b { top: 18px; } .tl-pt.dn span { top: 31px; }
.needle { position: absolute; top: -14px; bottom: -14px; width: 2px; background: var(--ink); border-radius: 2px; z-index: 2; }
.needle span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; background: var(--ink); color: var(--bg); padding: 1px 6px; border-radius: 6px; }
.tl-hours { position: relative; height: 18px; margin: 52px 10px 0; }
.tl-hours span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--faint); }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.dash-main { min-width: 0; }
.dash-side { position: sticky; top: 140px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tiles.four { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 4px; align-content: start; padding: 16px 16px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .16s, border-color .16s; overflow: hidden; }
.tile::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--faint); opacity: .7; }
.tile.t-ok::after { background: var(--ok); } .tile.t-bad::after { background: var(--bad); } .tile.t-warn::after { background: var(--warn); }
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile .lab { font-size: 12px; font-weight: 600; color: var(--mute); }
.tile .big { font: 800 30px/1.05 var(--display); letter-spacing: -.025em; margin-top: -6px; }
.tile .big small { font-size: 18px; color: var(--faint); font-weight: 700; }
.tile .sub { font-size: 12px; margin-bottom: 8px; min-height: 2.6em; }
.tile .pill { justify-self: start; }

.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.matrix thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.matrix tbody th { text-align: left; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.cell { display: inline-block; min-width: 56px; padding: 4px 8px; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.cell.ok { background: var(--ok-soft); color: var(--ok); } .cell.bad { background: var(--bad-soft); color: var(--bad); } .cell.warn { background: var(--warn-soft); color: var(--warn); } .cell.mute { background: var(--panel-2); color: var(--mute); }

.trend { width: 100%; height: auto; display: block; }
.trend .gl { stroke: var(--line); } .trend .gy { fill: var(--faint); font-size: 10px; text-anchor: end; }
.trend .bar { fill: color-mix(in srgb, var(--ink) 22%, transparent); } .trend .bar.low { fill: var(--warn); } .trend .bar.cur { fill: var(--red); }
.trend .bar-empty { fill: none; stroke: var(--line-2); stroke-dasharray: 4 4; }
.trend .bar-na { fill: var(--faint); font-size: 11px; text-anchor: middle; }
.trend .bar-v { fill: var(--ink-2); font-size: 11px; font-weight: 700; text-anchor: middle; }
.trend .bar-l { fill: var(--mute); font-size: 11px; text-anchor: middle; } .trend .bar-l.cur { fill: var(--red-2); font-weight: 700; }
.trend .target { stroke: var(--ok); stroke-dasharray: 5 5; } .trend .target-l { fill: var(--ok); font-size: 10.5px; text-anchor: end; font-weight: 600; }

.attn .count { min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; padding: 0 8px; }
.count.bad { background: var(--bad); color: #fff; } .count.warn { background: var(--warn); color: #1a1205; } .count.ok { background: var(--ok-soft); color: var(--ok); }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.al { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.al:hover { border-color: var(--line-2); transform: translateX(2px); }
.al i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--info); }
.al.bad i { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); } .al.warn i { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.al div { flex: 1; min-width: 0; display: grid; }
.al b { font-size: 13px; font-weight: 600; }
.al span { font-size: 12px; color: var(--mute); }
.al em { font-style: normal; color: var(--faint); font-size: 18px; }
.all-clear { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 8px; }
.all-clear .check { width: 46px; height: 46px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.all-clear span { color: var(--mute); font-size: 13px; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 460px; overflow-y: auto; }
.feed-list li { display: flex; gap: 10px; }
.feed-list .av { width: 28px; height: 28px; font-size: 10.5px; background: var(--panel-3); color: var(--ink-2); }
.feed-list p { font-size: 13px; line-height: 1.4; }
.feed-list small { color: var(--mute); font-size: 11.5px; }
.empty-s { color: var(--mute); font-size: 13px; }

/* ---------- students ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.strip-i { text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: grid; }
.strip-i b { font: 800 22px var(--display); }
.strip-i span { font-size: 11.5px; color: var(--mute); }
.strip-i.warn b { color: var(--warn); } .strip-i.ok b { color: var(--ok); }
.ready-meter { display: grid; text-align: right; }
.ready-meter b { font: 800 30px var(--display); color: var(--red-2); line-height: 1; }
.ready-meter span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.cdots { display: flex; gap: 4px; flex-wrap: wrap; }
.cd { font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--panel-3); color: var(--mute); }
.cd.verified { background: var(--ok-soft); color: var(--ok); } .cd.received { background: var(--warn-soft); color: var(--warn); } .cd.missing { background: var(--bad-soft); color: var(--bad); }
.profile-h { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.profile-h > div { flex: 1; min-width: 240px; }
select.cs-verified { color: var(--ok); } select.cs-received { color: var(--warn); } select.cs-missing { color: var(--bad); }
select.st-absent { color: var(--bad); } select.st-replaced { color: var(--warn); }
.t.stack select { width: auto; min-width: 130px; }

/* ---------- transport ---------- */
.buses { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
.bus { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; box-shadow: var(--shadow); }
.bus.hl { border-color: var(--red); }
.bus-h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.bus-h b { font: 800 17px var(--display); display: block; }
.bus-h span { color: var(--mute); font-size: 12.5px; }
.leg { display: grid; grid-template-columns: 1fr 90px 90px auto; gap: 8px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
.leg-l { font-size: 12.5px; font-weight: 600; align-self: center; }
.leg label { font-size: 11px; }
.leg input { min-height: 36px; padding: 6px 10px; }
.leg-s { grid-column: 1 / -1; display: flex; gap: 6px; }

/* ---------- forms & sheets ---------- */
.form { display: grid; gap: 14px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sheet { border: 0; padding: 0; background: transparent; max-width: min(640px, 100vw - 24px); width: 100%; color: var(--ink); }
.sheet::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.sheet-pane { background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); max-height: calc(100vh - 40px); overflow-y: auto; }
.sheet hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.role-pick { display: grid; gap: 6px; }
.rp { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.rp:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.rp input { margin-top: 2px; }
.rp span { display: grid; } .rp b { color: var(--ink); font-size: 13.5px; } .rp small { color: var(--mute); font-weight: 400; }
.chip-check { flex-direction: row; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; color: var(--ink); }
.chip-check input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--red-soft); }
.gset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0 0 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gset legend { font-size: 12px; font-weight: 700; color: var(--mute); padding: 0 6px; }
.pw-row { display: flex; gap: 8px; align-items: center; }
.pw-row input { flex: 1; font-family: ui-monospace, Menlo, monospace; }
.roles-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 14px; }
.roles-legend > div { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.roles-legend small { color: var(--mute); font-size: 12px; }
.role { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 7px; justify-self: start; }
.r-admin { background: var(--red-soft); color: var(--red-2); } .r-site { background: var(--info-soft); color: var(--info); } .r-nurse { background: var(--ok-soft); color: var(--ok); } .r-crew { background: var(--warn-soft); color: var(--warn); } .r-adek { background: var(--panel-3); color: var(--ink-2); }
.days-ed { display: grid; gap: 6px; }
.day-row { display: grid; grid-template-columns: 56px 150px 140px 1fr auto; gap: 8px; align-items: center; }
.danger-zone .dz { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.danger-zone .dz > div { flex: 1; min-width: 240px; }

.more { display: grid; gap: 14px; }
.more-me { display: grid; } .more-me small { color: var(--mute); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-i { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; }
.more-i.on { border-color: var(--red); color: var(--red-2); }
.more-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.more-foot .btn { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }

.dock { display: none; }
.show-m { display: none; }
@media (max-width: 900px) { .show-m { display: inline; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
  .dash-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .dash-side .panel { margin: 0; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 10px 16px; }
  .top-t h1 { font-size: 18px; }
  .clock { display: none; }
  .view { padding: 16px 16px 110px; }
  .two, .pgrid, .f2 { grid-template-columns: 1fr; }
  .f4 { grid-template-columns: 1fr 1fr; }
  .dash-side { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 20px 18px; }
  .hero-r { position: absolute; top: 18px; right: 16px; }
  .big-ring { width: 96px; height: 96px; } .big-ring svg { width: 96px; height: 96px; } .big-ring-c b { font-size: 21px; } .big-ring-c span { font-size: 9.5px; }
  .hero h1 { font-size: 28px; padding-right: 100px; } .hero .eyebrow { padding-right: 100px; }
  .timeline { overflow-x: auto; padding: 48px 0 0; }
  .tl-track, .tl-hours { min-width: 900px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 13px 13px 12px; } .tile .big { font-size: 25px; } .tile .ring { width: 34px; height: 34px; }
  .buses { grid-template-columns: 1fr; }
  .leg { grid-template-columns: 1fr 1fr; } .leg-l { grid-column: 1 / -1; }
  .day-row { grid-template-columns: 50px 1fr 1fr; } .day-row input[name=note] { grid-column: 2 / -1; }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--line-2); border-radius: 22px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 16px; text-decoration: none; color: var(--mute); font: 600 10.5px var(--font); background: none; border: 0; cursor: pointer; }
  .dock a.on, .dock button.on { color: var(--ink); background: var(--red-soft); }
  .dock a.on .ico, .dock button.on .ico { color: var(--red-2); }
  .dock span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .actionbar { bottom: calc(86px + env(safe-area-inset-bottom)); border-radius: 18px; }
  .actionbar { padding: 8px; gap: 6px; }
  .actionbar .sub { width: 100%; text-align: center; font-size: 12.5px; }
  .actionbar .btn { flex: 1; min-height: 42px; padding: 0 10px; }
  .hide-m { display: none; }
  .row.att .nm { flex-basis: 100%; }
  .att .row { gap: 8px; }
  .att .seg { width: 100%; } .att .seg button { flex: 1; min-width: 0; padding: 10px 6px; }
  .row.wrap .acts { justify-content: flex-start; flex-basis: 100%; }
  .gate-wrap { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px; }
  .gate-logos { margin-bottom: 24px; } .logo-adek { height: 42px; }
  .lede { font-size: 15px; } .gate-points { display: none; }
  .card-glass { padding: 24px 20px; }
  .sheet { max-width: 100vw; margin: auto 0 0; }
  .sheet-pane { border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; }
  .gset { grid-template-columns: 1fr; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .top-a .btn { display: none; }
  .top-a select { max-width: 170px; }
}
@media (max-width: 380px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- print / PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root { color-scheme: light; --bg: #fff; --panel: #fff; --panel-2: #f6f6f4; --panel-3: #ececE7; --line: #e4e4e0; --line-2: #d4d4cf; --ink: #111; --ink-2: #333; --mute: #666; --faint: #999; --shadow: none; --glass: #fff; --ok: #0e8a52; --warn: #b36b00; --bad: #c8102e; }
  body { background: #fff; color: #111; font-size: 11.5px; }
  .side, .dock, .top-a, .impersonate, .actionbar, .search, .btn, .toast, dialog, .days, .live-dot, .clock, .inline-form, .ro-note, #incF, .panel:has(#incF) { display: none !important; }
  .shell { display: block; } .top { position: static; backdrop-filter: none; border: 0; padding: 0 0 8px; }
  .top::before { content: attr(data-x); }
  body::before { content: attr(data-print); display: block; font: 600 10px var(--font); color: #666; border-bottom: 2px solid #EA0029; padding-bottom: 6px; margin-bottom: 10px; }
  .view { padding: 0; max-width: none; }
  .pg { animation: none; }
  .panel, .tile, .list, .bus, .hero { box-shadow: none; break-inside: avoid; }
  .hero { background: #fff; }
  .dash-cols, .two { display: block; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .feed { display: none; }
  .scroll { overflow: visible; }
  .t.reg { font-size: 9px; } .t.reg td, .t.reg th { padding: 4px 5px; }
  select, input { border: 0; background: none; padding: 0; min-height: 0; appearance: none; }
}
