/* Up List — design system */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  /* brand (matches ezrv's navy) */
  --brand: #0E1B3D; --brand-2: #1A2B57; --brand-ink: #F5F7FB; --mint: #34D399;
  /* neutrals */
  --bg: #F5F6F8; --card: #FFFFFF; --ink: #0B1220; --ink-2: #344054; --muted: #667085; --faint: #98A2B3;
  --line: #E4E7EC; --line-2: #F0F2F5; --hover: #F7F8FA;
  /* status */
  --up: #067647; --up-bg: #ECFDF3; --up-line: #ABEFC6; --up-solid: #079455;
  --deck: #B54708; --deck-bg: #FFFAEB; --deck-line: #FEDF89; --deck-solid: #DC6803;
  --hole: #175CD3; --hole-bg: #EFF8FF; --hole-line: #B2DDFF; --hole-solid: #1570EF;
  --paused: #475467; --paused-bg: #F2F4F7;
  --mh: #5925DC; --mh-bg: #F4F3FF; --mh-solid: #6938EF;
  --tow: #B93815; --tow-bg: #FEF6EE;
  --danger: #D92D20; --danger-bg: #FEF3F2;
  --focus: 0 0 0 4px rgba(21, 112, 239, .18);
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --sh-3: 0 20px 24px -4px rgba(16, 24, 40, .1), 0 8px 8px -4px rgba(16, 24, 40, .04);
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; }
body.sheet-open { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-stretch: 108%; letter-spacing: -.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.flex { flex: 1; }
.i { width: 18px; height: 18px; flex: 0 0 auto; }
.i.solid { fill: currentColor; stroke: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.loading { min-height: 100vh; display: grid; place-items: center; }
.loading .logo { width: 44px; height: 44px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.94); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink-2);
  font-weight: 600; font-size: .93rem; box-shadow: var(--sh-1); transition: background .12s, border-color .12s, color .12s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.btn:disabled { opacity: .45; box-shadow: none; }
.btn .i { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-2); color: #fff; }
.btn-success { background: var(--up-solid); border-color: var(--up-solid); color: #fff; }
.btn-success:hover:not(:disabled) { background: var(--up); color: #fff; }
.btn-sm { height: 34px; padding: 0 11px; font-size: .86rem; gap: 6px; }
.btn-sm .i { width: 14px; height: 14px; }
.btn-lg { height: 48px; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); color: var(--muted); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
kbd { font: 600 .7rem/1 var(--font); padding: 4px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .8); }

/* ---------- chips, avatars, position pills ---------- */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: var(--paused-bg); color: var(--ink-2); white-space: nowrap; }
.chip-all { background: var(--mh-bg); color: var(--mh); }
.chip-tow { background: var(--tow-bg); color: var(--tow); }
.av { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--av-bg); color: var(--av-fg);
  font-weight: 700; font-stretch: 100%; letter-spacing: .02em; width: 34px; height: 34px; font-size: .78rem; }
.av-sm { width: 26px; height: 26px; font-size: .64rem; }
.av-lg { width: 44px; height: 44px; font-size: .92rem; }
.av-xl { width: 72px; height: 72px; font-size: 1.4rem; }
.pos { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  letter-spacing: .01em; white-space: nowrap; background: var(--paused-bg); color: var(--muted); }
.pos i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: .68rem; color: #fff; }
.pos-rest { padding: 0 10px; background: transparent; color: var(--muted); font-variant-numeric: tabular-nums; }
.pos-up { background: var(--up-bg); color: var(--up); box-shadow: inset 0 0 0 1px var(--up-line); }
.pos-up i { background: var(--up-solid); }
.pos-deck { background: var(--deck-bg); color: var(--deck); box-shadow: inset 0 0 0 1px var(--deck-line); }
.pos-deck i { background: var(--deck-solid); }
.pos-hole { background: var(--hole-bg); color: var(--hole); box-shadow: inset 0 0 0 1px var(--hole-line); }
.pos-hole i { background: var(--hole-solid); }
.pos-paused { padding: 0 10px; }
.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; vertical-align: 1px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: .76rem; margin-left: 6px; }

/* ---------- app bar ---------- */
.shell { min-height: 100vh; }
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand .logo { width: 30px; height: 30px; }
.wordmark { font-weight: 800; font-stretch: 118%; font-size: 1.12rem; letter-spacing: -.02em; }
.org { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .86rem; }
.tabs { display: flex; gap: 4px; flex: 1; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: color .12s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.appbar-r { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live.on { background: var(--up-bg); color: var(--up); }
.live.on i { animation: ping 2s infinite; }
.live.off { background: var(--deck-bg); color: var(--deck); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(7, 148, 85, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(7, 148, 85, 0); } }
.when { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.when b { font-size: .92rem; font-variant-numeric: tabular-nums; }
.when small { color: var(--muted); font-size: .74rem; }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 999px; transition: background .12s; }
.me-btn:hover { background: var(--line-2); }
.me-name { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.me-name b { font-size: .88rem; }
.me-name small { color: var(--muted); font-size: .72rem; }
.me-btn .chev { width: 16px; height: 16px; color: var(--faint); }
.tabbar { display: none; }

.page { max-width: 1320px; margin: 0 auto; padding: 24px max(24px, env(safe-area-inset-right)) 48px max(24px, env(safe-area-inset-left)); }
.page-me { max-width: 560px; }
.page-staff, .page-settings, .page-reports { max-width: 1080px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { font-size: 1.75rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; }
.page-h p { margin-top: 6px; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1080px) {
  .when { display: none; }
}
@media (max-width: 860px) {
  .appbar { gap: 12px; height: calc(56px + env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .tabs, .me-name, .me-btn .chev, .org { display: none; }
  .appbar-r { gap: 10px; }
  .page { padding: 16px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }
  .has-tabbar .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--faint); font-size: .68rem; font-weight: 600; border-radius: var(--r-sm); }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar .nbadge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
  .page-h h1 { font-size: 1.45rem; }
}

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.card-h h2 { font-size: 1.12rem; font-weight: 750; }
.card-h h3 { font-size: .98rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-h h3 .i { color: var(--muted); }
.card-h p { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.card-f { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: .8rem; }
.card-f .i { width: 14px; height: 14px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { padding: 4px 18px 18px; color: var(--faint); font-size: .9rem; }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 20px; color: var(--muted); }
.empty-state .i { width: 28px; height: 28px; color: var(--faint); margin-bottom: 6px; }
.empty-state b { color: var(--ink); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--tow-bg); color: #7A2E0E; font-size: .88rem; }
.callout .i { width: 17px; height: 17px; margin-top: 1px; color: var(--tow); }
.page > .callout { margin-bottom: 16px; }
.skeleton { height: 280px; background: linear-gradient(90deg, var(--card) 0%, var(--line-2) 50%, var(--card) 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- floor ---------- */
.floor { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.floor-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 1140px) {
  .floor { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .floor-side { display: contents; }
  .walkin { order: 1; } .requests { order: 2; } .rotation { order: 3; } .stats { order: 4; } .activity { order: 5; }
}

.walkin .card-h { padding-bottom: 12px; }
.assign-stack { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
@media (min-width: 640px) and (max-width: 1140px) { .assign-stack { flex-direction: row; } .assign { flex: 1; } }
.assign { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; border-radius: var(--r); color: #fff; text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .08s, filter .12s; }
.assign:hover:not(:disabled) { filter: brightness(1.08); }
.assign:active:not(:disabled) { transform: scale(.985); }
.assign:disabled { background: var(--line-2) !important; color: var(--faint); box-shadow: none; }
.assign:disabled .assign-ic { background: var(--line); }
.assign:disabled kbd { display: none; }
.assign.busy { opacity: .7; }
.assign-towable { background: var(--brand); }
.assign-motorhome { background: var(--mh-solid); }
.assign-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, .14); flex: 0 0 auto; }
.assign-ic .i { width: 26px; height: 26px; }
.assign-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.assign-txt small { font-size: .78rem; font-weight: 600; opacity: .78; }
.assign-txt b { font-size: 1.32rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.assign kbd { margin-left: 8px; vertical-align: 1px; padding: 2px 5px; font-size: .66rem; }
@media (hover: none) { .assign kbd { display: none; } }
.walkin .callout { margin: 0 14px 14px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat:nth-child(odd) { border-right: 1px solid var(--line-2); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
.stat small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.stat b { font-size: 1.7rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--faint); font-size: .76rem; }
@media (max-width: 1140px) and (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { border: 0 !important; } .stat + .stat { border-left: 1px solid var(--line-2) !important; } }

.activity ul { list-style: none; margin: 0; padding: 0 18px 10px; max-height: 360px; overflow: auto; }
.activity li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-2); }
.activity li:first-child { border-top: 0; }
.act-t { flex: 1; min-width: 0; }
.act-t b { color: var(--ink); font-weight: 650; }
.activity time { color: var(--faint); font-size: .76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.act-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); color: var(--muted); flex: 0 0 auto; }
.act-ic .i { width: 13px; height: 13px; }
.act-up { background: var(--up-bg); color: var(--up); }
.act-up.motorhome { background: var(--mh-bg); color: var(--mh); }
.act-pause { background: var(--deck-bg); color: var(--deck); }
.act-remove { background: var(--danger-bg); color: var(--danger); }

/* rotation table */
.rotation .card-h { border-bottom: 1px solid var(--line); }
.thead, .trow { display: grid; grid-template-columns: 28px 132px minmax(160px, 1fr) 118px 84px 52px 92px 160px; align-items: center; gap: 12px; padding: 0 18px 0 10px; }
.thead { height: 38px; background: #FAFBFC; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.thead > span { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }
.thead .c-ups { text-align: right; }
.tbody { list-style: none; margin: 0; padding: 0; }
.trow { min-height: 64px; border-bottom: 1px solid var(--line-2); background: var(--card); position: relative; transition: background .12s; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: #FCFCFD; }
.trow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.trow.s-up { background: linear-gradient(90deg, var(--up-bg), rgba(236, 253, 243, .35) 60%, #fff); }
.trow.s-up::before { background: var(--up-solid); }
.trow.s-deck::before { background: var(--deck-solid); }
.trow.s-hole::before { background: var(--hole-solid); }
.trow.s-paused { background: #FCFCFD; }
.trow.s-paused .c-who b { color: var(--muted); }
.trow.s-paused .av { filter: grayscale(1); opacity: .6; }
.c-grip { display: grid; place-items: center; height: 44px; color: #C4CAD4; cursor: grab; touch-action: none; user-select: none; }
.c-grip:hover { color: var(--muted); }
.c-grip .i { width: 16px; height: 16px; }
.c-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.who-t b { font-weight: 650; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow.s-up .who-t b { font-size: 1.06rem; font-weight: 750; }
.who-t small { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.paused-note { color: var(--deck); font-weight: 600; font-size: .8rem; }
.paused-note .i { width: 12px; height: 12px; }
.c-team { color: var(--ink-2); font-size: .88rem; }
.c-ups { text-align: right; font-weight: 700; font-size: 1.02rem; }
.c-last { display: flex; flex-direction: column; font-size: .86rem; color: var(--ink-2); line-height: 1.2; }
.c-last small { color: var(--faint); font-size: .74rem; }
.c-acts { display: flex; justify-content: flex-end; gap: 4px; }
.m-only { display: none !important; }
.trow.dragging { z-index: 5; box-shadow: var(--sh-3); transition: none; background: #fff; }
.trow.drop-before { box-shadow: inset 0 3px 0 var(--hole-solid); }
.trow.drop-after { box-shadow: inset 0 -3px 0 var(--hole-solid); }
/* The table adapts to its card's width (sidebar layouts make the card narrower than the screen). */
.rotation { container-type: inline-size; }
@container (max-width: 960px) {
  .thead, .trow { grid-template-columns: 28px 124px minmax(140px, 1fr) 44px 84px 150px; }
  .c-cls, .c-team { display: none !important; }
  .m-only { display: flex !important; }
}
@container (max-width: 700px) {
  .thead, .trow { grid-template-columns: 28px 124px minmax(140px, 1fr) 44px 150px; }
  .c-last { display: none !important; }
}
@container (max-width: 560px) {
  .thead { display: none; }
  .trow { grid-template-columns: 18px auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 10px 10px 4px; min-height: 68px; }
  .c-pos .pos { height: 24px; font-size: .7rem; }
  .c-who { gap: 10px; }
  .c-who .av { display: none; }
  .c-ups { display: none; }
  .c-acts .btn { width: 36px; padding: 0; }
  .c-acts .btn .lbl { display: none; }
  .rotation .card-h .tools .btn span { display: none; }
  .rotation .card-h .tools .btn { width: 40px; padding: 0; }
}

/* requests */
.requests { border-color: #FEC84B; box-shadow: 0 0 0 3px rgba(254, 200, 75, .18); }
.request { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.requests .card-h { padding-bottom: 10px; }
.rq-t { flex: 1; min-width: 140px; display: flex; flex-direction: column; font-size: .88rem; color: var(--ink-2); }
.rq-t b { color: var(--ink); font-size: .95rem; }
.rq-t small { color: var(--faint); font-size: .76rem; }
.rq-acts { display: flex; gap: 8px; flex-basis: 100%; padding-left: 46px; }
.rq-acts .btn { flex: 1; }
.page-board > .requests { margin-bottom: 20px; }

/* ---------- build ---------- */
.build { padding-bottom: 120px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--line-2); border: 1px solid var(--line); border-radius: 9px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 7px; font-weight: 600; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px rgba(16, 24, 40, .04); }
.seg-filter { margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pick-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: left; box-shadow: var(--sh-1); transition: border-color .12s, box-shadow .12s; }
.pick-card:hover { border-color: #CDD3DC; }
.pick-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 27, 61, .1); }
.pick-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pick-t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-t small { display: flex; gap: 8px; align-items: center; font-size: .78rem; white-space: nowrap; }
.pick-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed #CDD3DC; color: var(--faint); font-weight: 800; font-size: .9rem; flex: 0 0 auto; }
.pick-n .i { width: 14px; height: 14px; }
.pick-card.on .pick-n { border: 0; background: var(--brand); color: #fff; }
.build-bar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 12px max(24px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 24, 40, .06); }
.build-bar-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order { flex: 1; min-width: 200px; display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; font-size: .84rem; }
.order > b { margin-right: 6px; white-space: nowrap; }
.ord { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 10px; border-radius: 999px; background: var(--line-2); color: var(--muted); font-weight: 700; font-size: .74rem; white-space: nowrap; }
.ord em { font-style: normal; font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.build-bar .tools { margin-left: auto; }
@media (max-width: 860px) { .has-tabbar .build-bar { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 12px; } .build { padding-bottom: 200px; } .order { flex-basis: 100%; } .build-bar .tools { margin-left: 0; width: 100%; } .build-bar .btn-primary { flex: 1; } }

/* ---------- my status ---------- */
.me-wrap { display: flex; flex-direction: column; gap: 14px; }
.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 22px 20px; color: #fff; background: #1F2A44; box-shadow: var(--sh-2); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .1), transparent 45%); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.hero-of { font-size: 1.1rem; font-weight: 800; opacity: .9; }
.hero-of small { font-size: .8rem; opacity: .65; }
.hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 850; font-stretch: 122%; letter-spacing: -.035em; margin: 10px 0 6px; line-height: 1; }
.hero p { font-size: 1.02rem; opacity: .9; }
.hero-up { background: linear-gradient(140deg, #079455, #05603A); animation: glowpulse 2s ease-in-out infinite; }
.hero-deck { background: linear-gradient(140deg, #DC6803, #93370D); }
.hero-hole { background: linear-gradient(140deg, #1570EF, #1849A9); }
.hero-rest { background: linear-gradient(140deg, #1A2B57, #0E1B3D); }
.hero-paused { background: linear-gradient(140deg, #667085, #344054); }
.hero-off { background: var(--card); color: var(--ink); border: 1px dashed #CDD3DC; box-shadow: none; }
.hero-off::after { display: none; }
.hero-off p { color: var(--muted); }
.hero-off h1 { font-size: 1.7rem; font-stretch: 110%; }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 6px rgba(7, 148, 85, .12), var(--sh-2); } }
.ladder { display: flex; gap: 5px; margin-top: 18px; }
.ladder i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.ladder i.ahead { background: rgba(255, 255, 255, .55); }
.ladder i.me { background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.ahead { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .8rem; }
.ahead > .lbl { opacity: .75; margin-right: 4px; font-weight: 600; }
.ahead .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.ahead em { font-style: normal; font-weight: 700; opacity: .8; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: .88rem !important; }
.mystats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.mystats div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.mystats div + div { border-left: 1px solid var(--line-2); }
.mystats small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.mystats b { font-size: 1rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-card { overflow: hidden; }
.list-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; border-top: 1px solid var(--line-2); transition: background .12s; }
.list-btn:first-child, .req-result + .list-btn { border-top: 0; }
.list-btn:hover { background: var(--hover); }
.list-btn > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.list-btn b { font-weight: 650; }
.list-btn small { color: var(--muted); font-size: .82rem; }
.list-btn .chev { color: var(--faint); }
.lb-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); flex: 0 0 auto; }
.list-btn[data-type="back"] .lb-ic { background: var(--up-bg); color: var(--up); }
.list-foot { padding: 10px 16px 12px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: .78rem; }
.req-result { display: flex; gap: 10px; align-items: center; margin: 12px 12px 4px; padding: 10px 12px; border-radius: var(--r); font-weight: 600; font-size: .88rem; }
.req-result.approved { background: var(--up-bg); color: var(--up); }
.req-result.denied { background: var(--danger-bg); color: var(--danger); }
.req-wait { display: flex; align-items: center; gap: 14px; padding: 16px; border-color: var(--deck-line); background: var(--deck-bg); }
.req-wait > div { flex: 1; }
.req-wait p { color: #7A2E0E; font-size: .86rem; margin-top: 2px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--deck-line); border-top-color: var(--deck-solid); animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; align-items: flex-start; gap: 14px; padding: 16px; }
.notice > div { flex: 1; }
.notice p { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.notice .btn { align-self: center; }
@media (max-width: 520px) { .notice { flex-wrap: wrap; } .notice .btn { flex-basis: 100%; margin-left: 52px; } }
.notice-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; background: var(--line-2); color: var(--ink-2); }
.notice-ok .notice-ic { background: var(--up-bg); color: var(--up); }
.notice-warn .notice-ic { background: var(--deck-bg); color: var(--deck); }
.notice-cta { border-color: #C7D7FE; background: linear-gradient(180deg, #F5F8FF, #fff); }
.notice-cta .notice-ic { background: var(--brand); color: #fff; }
.steps { margin: 8px 0; padding-left: 18px; color: var(--ink-2); font-size: .88rem; line-height: 1.8; }
.kbd-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; vertical-align: -6px; border-radius: 5px; background: var(--line-2); color: var(--hole); }
.kbd-ic .i { width: 14px; height: 14px; }
.mlist { list-style: none; margin: 0; padding: 0 0 6px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line-2); }
.mrow .pos { min-width: 92px; justify-content: center; padding: 0 10px; }
.mrow .who-t { flex: 1; }
.mrow .who-t b { font-size: .92rem; }
.mrow .who-t em { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--brand); color: #fff; margin-left: 4px; vertical-align: 1px; }
.mrow .who-t small { color: var(--muted); font-size: .76rem; }
.mrow .num { font-weight: 700; font-size: .92rem; }
.mrow .num small { color: var(--faint); font-weight: 500; font-size: .74rem; }
.mrow.mine { background: #F8F9FC; }
.mrow.s-paused { opacity: .7; }

/* ---------- staff ---------- */
.table-card { overflow: hidden; }
.shead, .srow { display: grid; grid-template-columns: minmax(200px, 1.6fr) 110px 110px 130px 140px 100px 24px; align-items: center; gap: 12px; padding: 0 18px; }
.shead { height: 40px; background: #FAFBFC; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.shead > span { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }
.stbody { list-style: none; margin: 0; padding: 0; }
.srow { min-height: 62px; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: .9rem; color: var(--ink-2); transition: background .12s; }
.srow:last-child { border-bottom: 0; }
.srow:hover { background: var(--hover); }
.srow.inactive { opacity: .5; }
.srow .c-who b { color: var(--ink); }
.s-push { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: .86rem; }
.s-push .i { width: 15px; height: 15px; }
.s-push.on { color: var(--up); font-weight: 600; }
.dot-ok { display: inline-flex; align-items: center; gap: 6px; }
.dot-ok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--up-solid); }
.srow .chev { color: var(--faint); }
@media (max-width: 860px) {
  .shead { display: none; }
  .srow { grid-template-columns: minmax(0, 1fr) auto 20px; padding: 12px 16px; }
  .s-role, .s-team, .s-status, .s-cls { display: none; }
  .srow .m-only { display: block !important; color: var(--muted); font-size: .8rem; }
}

/* ---------- reports ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.kpi b { font-size: 2rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.1; }
.kpi span { color: var(--faint); font-size: .8rem; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } }
.table-card > .card-h { border-bottom: 1px solid var(--line); }
.scroll-x { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.rtable th { height: 40px; padding: 0 18px; background: #FAFBFC; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
.rtable td { height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.rtable tr:last-child td { border-bottom: 0; }
.rtable .num { text-align: right; font-weight: 650; color: var(--ink); }
.rtable .c-who { gap: 10px; }
.rtable .c-who b { font-weight: 650; color: var(--ink); }
.bar-cell { width: 30%; white-space: nowrap; }
.bar-cell > * { vertical-align: middle; }
.bar { display: inline-block; width: calc(100% - 48px); height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-right: 10px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.bar-cell .num { font-weight: 600; font-size: .82rem; }

/* ---------- settings / forms ---------- */
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 4px; }
.field input:not([type=checkbox]) { display: block; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 8px; background: #fff; font-size: 1rem; box-shadow: var(--sh-1); transition: border-color .12s, box-shadow .12s; }
.field input:focus { outline: none; border-color: #84ADFF; box-shadow: var(--focus); }
.seg-form { display: flex; width: 100%; }
.seg-form button { flex: 1; height: auto; min-height: 40px; padding: 6px 8px; line-height: 1.2; }
.seg-form button small { display: block; font-size: .7rem; font-weight: 500; color: var(--faint); }
.toggle { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #D0D5DD; transition: background .15s; flex: 0 0 auto; }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .2); transition: transform .15s; }
.toggle input:checked + i { background: var(--brand); }
.toggle input:checked + i::after { transform: translateX(16px); }
.toggle input:focus-visible + i { box-shadow: var(--focus); }
.toggle span { display: flex; flex-direction: column; }
.toggle b { font-weight: 600; font-size: .92rem; }
.toggle small { color: var(--muted); font-size: .8rem; }
.form-card { padding: 0; }
.form-sec { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 24px; border-bottom: 1px solid var(--line-2); }
.form-sec-h h3 { font-size: .98rem; font-weight: 700; }
.form-sec-h p { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.form-foot { display: flex; justify-content: flex-end; padding: 16px 24px; background: #FAFBFC; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.team-row { padding-bottom: 8px; }
.team-row + .team-row { padding-top: 16px; border-top: 1px dashed var(--line); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day { cursor: pointer; position: relative; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span { display: grid; place-items: center; width: 52px; height: 38px; border-radius: 8px; border: 1px solid #D0D5DD; font-weight: 600; font-size: .86rem; color: var(--ink-2); background: #fff; transition: all .12s; }
.day input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.day input:focus-visible + span { box-shadow: var(--focus); }
@media (max-width: 860px) { .form-sec { grid-template-columns: 1fr; gap: 14px; padding: 18px; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 44%) 1fr; }
.auth-brand { position: relative; display: flex; flex-direction: column; padding: 40px 48px; background: var(--brand); color: var(--brand-ink); overflow: hidden; }
.auth-brand::before { content: ''; position: absolute; right: -120px; bottom: -80px; width: 520px; height: 520px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 15.5l6-6 6 6' stroke='%23ffffff' stroke-opacity='.06' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.5 20.5h13M12 25h8' stroke='%23ffffff' stroke-opacity='.04' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.auth-brand-top { display: flex; align-items: center; gap: 12px; }
.auth-brand-top .logo { width: 36px; height: 36px; }
.auth-brand-top .logo rect { fill: #fff; fill-opacity: .1; }
.auth-brand .wordmark { font-size: 1.3rem; color: #fff; }
.auth-pitch { margin-top: auto; position: relative; }
.auth-pitch h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 850; font-stretch: 120%; letter-spacing: -.035em; line-height: 1.02; color: #fff; }
.auth-pitch p { margin-top: 16px; max-width: 400px; color: #B9C3DB; font-size: 1.05rem; }
.auth-points { position: relative; list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #DCE3F2; font-weight: 500; }
.auth-points li { display: flex; align-items: center; gap: 12px; }
.auth-points .i { width: 18px; height: 18px; color: var(--mint); }
.auth-foot { margin-top: 48px; color: #7D8BAE; font-weight: 600; }
.auth-main { display: flex; justify-content: center; align-items: flex-start; padding: 64px 40px; overflow: auto; }
.auth-card { width: 100%; max-width: 560px; }
.auth-card h2 { font-size: 1.75rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; }
.auth-card > p, .auth-card form > p { margin: 8px 0 28px; }
.m-brand { display: none; align-items: center; gap: 10px; margin-bottom: 28px; }
.m-brand .logo { width: 34px; height: 34px; }
.people-group + .people-group { margin-top: 24px; }
.people-group h4 { margin-bottom: 10px; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-stretch: 100%; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-align: left; box-shadow: var(--sh-1); transition: border-color .12s, box-shadow .12s, transform .08s; }
.person:hover { border-color: #B8C0CC; box-shadow: var(--sh-2); }
.person:active { transform: scale(.99); }
.person > span:not(.av) { display: flex; flex-direction: column; min-width: 0; }
.person b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { color: var(--muted); font-size: .8rem; }
.pin { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 340px; margin: 0 auto; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 28px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.back-link:hover { color: var(--ink); }
.pin .av-xl { margin-bottom: 18px; }
.pin h2 { font-size: 1.5rem; }
.pin > p { margin: 6px 0 0 !important; }
.dots { display: flex; justify-content: center; gap: 16px; margin: 28px 0; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: background .12s, transform .12s; }
.dots i.on { background: var(--brand); transform: scale(1.1); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 24px; justify-content: center; }
.pad button { width: 76px; height: 76px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: 1.7rem; font-weight: 500; font-stretch: 100%; font-variant-numeric: tabular-nums; transition: background .1s; }
.pad button:active { background: var(--line-2); }
.pad button[data-k="⌫"] { border: 0; background: none; box-shadow: none; display: grid; place-items: center; color: var(--muted); }
.pad button[data-k="⌫"] .i { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-main { padding: calc(32px + env(safe-area-inset-top)) 20px 40px; }
  .m-brand { display: flex; }
  .people { grid-template-columns: 1fr 1fr; }
  .person { flex-direction: column; text-align: center; padding: 16px 10px; }
  .person > span:not(.av) { align-items: center; max-width: 100%; }
}

/* ---------- sheet / menu ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(12, 17, 29, .5); backdrop-filter: blur(2px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); max-height: 88vh; overflow: auto;
  background: var(--card); border-radius: 16px; box-shadow: var(--sh-3), 0 0 0 1px rgba(16, 24, 40, .05); animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; }
.sheet-h h2 { font-size: 1.18rem; font-weight: 750; }
.sheet-h p { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.sheet-b { padding: 4px 20px 20px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-2); }
@media (max-width: 640px) {
  .sheet { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: slideup .2s ease-out; }
  .sheet::before { content: ''; display: block; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line); }
  @keyframes slideup { from { transform: translate(-50%, 30px); opacity: 0; } }
}
.menu { display: flex; flex-direction: column; margin: 0 -8px; }
.menu button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; text-align: left; font-weight: 600; font-size: .95rem; color: var(--ink); flex-wrap: wrap; }
.menu button:hover:not(:disabled) { background: var(--hover); }
.menu button:disabled { opacity: .35; }
.menu button .i { color: var(--muted); }
.menu button small { flex-basis: 100%; margin: -4px 0 0 30px; color: var(--muted); font-weight: 400; font-size: .82rem; }
.menu button .av + small { margin-left: 38px; }
.menu button.danger, .menu button.danger .i { color: var(--danger); }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reason-btn { height: 56px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; background: var(--card); box-shadow: var(--sh-1); transition: border-color .12s, background .12s; }
.reason-btn:hover { border-color: var(--brand); background: #F8F9FC; }

/* ---------- toast & alert ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
@media (max-width: 860px) { body:has(.has-tabbar) #toast-root { bottom: calc(86px + env(safe-area-inset-bottom)); } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--brand); color: #fff; box-shadow: var(--sh-3); font-weight: 500; font-size: .92rem; animation: toastin .2s ease-out; }
.toast > .i { width: 18px; height: 18px; color: var(--mint); }
.toast span:not(.av) { flex: 1; }
.toast.err { background: #B42318; }
.toast.err > .i { color: #fff; }
.toast button { height: 32px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: .86rem; }
.toast button:hover { background: rgba(255, 255, 255, .24); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }
.big-alert { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, #0BA55F, #05603A); animation: fade .2s; }
.big-alert h1 { font-size: clamp(3rem, 14vw, 7rem); font-weight: 900; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; margin: 20px 0 14px; }
.big-alert p { font-size: 1.25rem; opacity: .9; }
.ba-ic { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: rgba(255, 255, 255, .16); animation: nudge 1s ease-in-out infinite; }
.ba-ic .i { width: 44px; height: 44px; }
.ba-dismiss { display: block; margin-top: 36px; opacity: .65; font-size: .9rem; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.fatal { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.fatal .card { padding: 32px; max-width: 380px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fatal .logo { width: 40px; height: 40px; }

/* ---------- TV ---------- */
body.tv-mode { background: #070E22; color: #fff; }
.tv { min-height: 100vh; display: flex; flex-direction: column; gap: 2.2vw; padding: 2.2vw 3vw; }
.tv-top { display: flex; align-items: center; gap: 2vw; }
.tv-top .brand .logo { width: 2.6vw; height: 2.6vw; min-width: 30px; min-height: 30px; }
.tv-top .brand .logo rect { fill: #fff; fill-opacity: .1; }
.tv-top .wordmark { font-size: max(1.6vw, 18px); }
.tv-top .org { border-color: rgba(255, 255, 255, .15); color: #7D8BAE; font-size: max(1.2vw, 14px); }
.tv-clock { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.tv-clock b { font-size: max(2.6vw, 24px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
.tv-clock small { color: #7D8BAE; font-size: max(1vw, 12px); margin-top: 4px; }
.tv-exit { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: #4B5A80; font-weight: 600; font-size: .85rem; }
.tv-exit:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.tv-exit .i { width: 14px; height: 14px; }
.tv-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.6vw; }
.tv-card { position: relative; overflow: hidden; border-radius: 1.4vw; padding: 2.4vw; display: flex; flex-direction: column; gap: .8vw; min-height: 17vw; }
.tv-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .12), transparent 50%); }
.tv-k { font-size: max(1.3vw, 14px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.tv-card h1 { margin-top: auto; font-size: max(4.6vw, 34px); font-weight: 850; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; }
.tv-up h1 { font-size: max(6.4vw, 44px); }
.tv-card .chip { align-self: flex-start; height: auto; padding: .35vw .9vw; font-size: max(.95vw, 12px); background: rgba(255, 255, 255, .18); color: #fff; }
.tv-up { background: linear-gradient(140deg, #079455, #05603A); }
.tv-deck { background: linear-gradient(140deg, #DC6803, #93370D); }
.tv-hole { background: linear-gradient(140deg, #1570EF, #1849A9); }
.tv-mh { display: flex; align-items: center; gap: 1vw; padding: 1.1vw 1.6vw; border-radius: 1vw; background: rgba(105, 56, 239, .16); color: #BDB4FE; font-size: max(1.5vw, 16px); font-weight: 600; }
.tv-mh .i { width: max(2vw, 22px); height: max(2vw, 22px); }
.tv-mh b { margin-left: auto; color: #fff; font-size: max(2vw, 20px); font-weight: 800; font-stretch: 110%; }
.tv-lists { display: grid; grid-template-columns: 3fr 1fr; gap: 3vw; }
.tv-lists h4 { color: #7D8BAE; font-size: max(1vw, 12px); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1vw; font-stretch: 100%; }
.tv-rest { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 2vw; }
.tv-rest li { display: flex; align-items: center; gap: 1vw; padding: .7vw 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: max(1.9vw, 18px); font-weight: 600; break-inside: avoid; }
.tv-rest .num { display: inline-grid; place-items: center; width: 2.4vw; height: 2.4vw; min-width: 26px; min-height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #9AA6C4; font-size: max(1vw, 12px); }
.tv-paused { list-style: none; margin: 0; padding: 0; }
.tv-paused li { padding: .6vw 0; font-size: max(1.5vw, 16px); color: #6B7899; font-weight: 600; display: flex; justify-content: space-between; gap: 1vw; }
.tv-paused small { color: #4B5A80; }
.tv-empty { margin: auto; color: #7D8BAE; font-size: max(2.4vw, 22px); font-weight: 600; }
@media (max-width: 900px) {
  .tv-grid, .tv-lists { grid-template-columns: 1fr; }
  .tv-rest { columns: 1; }
  .tv-card { min-height: 0; padding: 20px; border-radius: 16px; }
}

[hidden] { display: none !important; }
.reception-note { margin: -4px 0 16px; font-size: .86rem; }
