/* USAFL Umpires — Nationals 2026
   Design system: warm neutral ground, near-black ink, logo orange as a scarce accent.
   Display: Barlow Condensed (echoes the UMPIRES lettering). Body: system SF. */

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

:root {
  --bg: #f6f5f3;
  --card: #ffffff;
  --card-2: #f0eeeb;
  --ink: #15120f;
  --ink-2: #57504a;
  --ink-3: #7a726a;
  --line: rgba(21, 18, 15, 0.09);
  --line-2: rgba(21, 18, 15, 0.14);
  --brand: #f15822;
  --brand-ink: #c2410c;
  --brand-soft: #fdece4;
  --oz: #0e7a4f;
  --oz-soft: #e2f3ea;
  --live: #e5484d;
  --good: #1f8a4c;
  --good-soft: #e3f4ea;
  --bad: #d03a3a;
  --bad-soft: #fbe9e8;
  --hero: #15120f;
  --hero-ink: #ffffff;
  --hero-ink-2: rgba(255, 255, 255, 0.62);
  --hero-line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.7);
  --shadow: 0 1px 2px rgba(21, 18, 15, 0.04), 0 8px 24px -12px rgba(21, 18, 15, 0.12);
  --shadow-lg: 0 20px 50px -20px rgba(21, 18, 15, 0.35);

  --display: "Barlow Condensed", "SF Pro Display", -apple-system, "Arial Narrow", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: 20px;
  --tabbar-h: 64px;
  --tabbar-bottom: max(12px, env(safe-area-inset-bottom));
  --dock-bottom: calc(var(--tabbar-h) + var(--tabbar-bottom) + 4px);
}

/* Theme is chosen by an inline script in index.html (saved choice, else the phone's setting)
   and stamped on <html data-theme>. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e0d0c;
    --card: #1a1816;
    --card-2: #23201e;
    --ink: #f5f2ee;
    --ink-2: #bdb5ad;
    --ink-3: #8f877f;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --brand: #ff6a33;
    --brand-ink: #ff8a5c;
    --brand-soft: rgba(255, 106, 51, 0.14);
    --oz: #4cc38a;
    --oz-soft: rgba(76, 195, 138, 0.14);
    --good: #4cc38a;
    --good-soft: rgba(76, 195, 138, 0.14);
    --bad: #ff6b6b;
    --bad-soft: rgba(255, 107, 107, 0.14);
    --hero: #1f1c19;
    --hero-line: rgba(255, 255, 255, 0.1);
    --glass: rgba(30, 28, 26, 0.72);
    --glass-line: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
/* smooth cross-fade when the user flips the theme */
html.theming, html.theming * { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important; }

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font: 15px/1.45 var(--sans);
  color: var(--ink);
  background: var(--bg);
  height: 100dvh;
  overflow: hidden; /* the page never scrolls; #app does (iOS-safe) */
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 14px; height: 14px; stroke-width: 2; }

#phone {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}
@media (min-width: 520px) { #phone { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(0,0,0,0.25); } }

#app {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) calc(var(--tabbar-h) + var(--tabbar-bottom) + 32px);
  scrollbar-width: none;
}
#app::-webkit-scrollbar { display: none; }
#phone.no-tabs #app { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
.view { min-height: 100%; display: flex; flex-direction: column; }
.view > .jeff, .view > .welcome { flex: 1; }

/* ---------- motion ---------- */
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.view-in > * { animation: viewIn 0.4s var(--ease) both; }
.view-in .stagger > * { animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.pressable { transition: transform 0.18s var(--ease); }
.pressable:active { transform: scale(0.975); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.92; }
.page-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 40px; line-height: 0.95; letter-spacing: 0.005em; text-wrap: balance; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.num { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- page header ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.head .sub { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative;
}
.icon-btn .dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.back {
  display: inline-flex; align-items: center; gap: 2px; margin: 2px 0 6px -6px; padding: 6px 8px 6px 2px;
  font-size: 15px; font-weight: 600; color: var(--brand-ink);
}
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.brand .b1 { font-family: var(--display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.brand .b2 { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
@keyframes iconIn { from { opacity: 0; transform: rotate(-90deg) scale(0.5); } to { opacity: 1; transform: none; } }
.theme-btn svg.i.anim { animation: iconIn 0.45s var(--spring); }
.me-btn {
  width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
}

/* ---------- cards / lists ---------- */
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; }
.section-head a, .section-head button { font-size: 14px; font-weight: 600; color: var(--brand-ink); }

.list { background: var(--card); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px;
  position: relative; width: 100%; text-align: left;
}
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 68px; border-top: 1px solid var(--line); }
.list.plain .row + .row::before { left: 16px; }
.row:active { background: var(--card-2); }
.row .main { flex: 1; min-width: 0; display: block; }
.row .t1, .row .t2 { display: block; }
.row .t1 { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { font-size: 13px; color: var(--ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .trail { display: flex; align-items: center; gap: 6px; color: var(--ink-3); flex-shrink: 0; }
.row .ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--card-2); color: var(--ink); flex-shrink: 0; }
.row .ico.brand { background: var(--brand-soft); color: var(--brand-ink); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  background: var(--brand-soft); color: var(--brand-ink);
}
.avatar.oz { background: var(--oz-soft); color: var(--oz); }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--card-2); color: var(--ink-2);
}
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag.oz { background: var(--oz-soft); color: var(--oz); }
.tag.solid { background: var(--ink); color: var(--bg); }
.tag.live { background: var(--live); color: #fff; }
.tag.goal { background: #fff4d6; color: #8a5a00; }
.tag.boundary { background: #e6eefc; color: #2956b3; }
.tag.coach { background: #efe9fb; color: #6a3fc0; }
.tag.duty, .tag.ts { background: #e1f3f1; color: #0f766e; }
[data-theme="dark"] .tag.goal { background: rgba(255, 196, 0, 0.14); color: #ffcf5c; }
[data-theme="dark"] .tag.boundary { background: rgba(93, 142, 255, 0.16); color: #8fb0ff; }
[data-theme="dark"] .tag.coach { background: rgba(160, 120, 255, 0.16); color: #c3a8ff; }
[data-theme="dark"] .tag.duty, [data-theme="dark"] .tag.ts { background: rgba(45, 212, 191, 0.14); color: #5eead4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 650; font-size: 16px;
  background: var(--brand); color: #fff; transition: transform 0.18s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card-2); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.link-btn { font-size: 14px; font-weight: 600; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 2px; }

/* ---------- segmented control ---------- */
.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--card-2); border-radius: 12px; padding: 3px; margin-bottom: 16px;
}
.seg .thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 9px;
  background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 0 0.5px var(--line);
  transition: transform 0.38s var(--spring), width 0.38s var(--spring);
}
.seg button { position: relative; z-index: 1; height: 34px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { color: var(--ink); }
.seg button .c { font-size: 11px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- search ---------- */
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  color: var(--ink-3);
}
.search input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.search .clear { color: var(--ink-3); display: flex; }
.sticky-search { position: sticky; top: 0; z-index: 5; padding: 8px 0 10px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); background: linear-gradient(var(--bg) 70%, transparent); }
.sticky-search::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(env(safe-area-inset-top) + 14px); background: var(--bg); }
.filter-row { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-row .seg { flex: 1; margin: 0; }

/* ---------- hero (scoreboard card) ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: 22px 22px 20px;
  background: var(--hero); color: var(--hero-ink); box-shadow: var(--shadow-lg);
  isolation: isolate;
}
[data-theme="dark"] .hero { border: 1px solid var(--line-2); }
.hero .pitch { position: absolute; right: -70px; top: -40px; width: 300px; height: 230px; z-index: -1; color: #fff; opacity: 0.07; }
.hero .glow { position: absolute; left: -40px; bottom: -80px; width: 220px; height: 160px; z-index: -1; background: var(--brand); filter: blur(70px); opacity: 0.28; }
.hero .eyebrow { color: var(--hero-ink-2); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; flex-shrink: 0; }
.hero-count { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 2px; }
.hero-count .big { font-family: var(--display); font-weight: 800; font-size: 92px; line-height: 0.82; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hero-count .unit { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: var(--hero-ink-2); }
.hero-time { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 64px; line-height: 0.85; letter-spacing: -0.01em; margin: 12px 0 6px; font-variant-numeric: tabular-nums; }
.hero-time small { font-size: 24px; font-style: normal; font-weight: 700; color: var(--hero-ink-2); margin-left: 6px; letter-spacing: 0.02em; }
.hero-where { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
.hero-where .accent { color: var(--brand); }
.hero-role { font-size: 15px; color: var(--hero-ink-2); margin-top: 4px; }
.hero-rule { height: 1px; background: var(--hero-line); margin: 18px 0 14px; }
/* collapsible crew inside the (always dark) scoreboard card */
.hcrew-head { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--hero-ink); text-align: left; padding: 2px 0; }
.hcrew-head .lbl { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcrew-head .chev { color: var(--hero-ink-2); transition: transform 0.35s var(--spring); }
.hcrew.open .hcrew-head .chev { transform: rotate(180deg); }
.hcrew .stack { display: flex; }
.hcrew .stack .av-xs { box-shadow: 0 0 0 2px var(--hero); }
.hcrew .stack .av-xs + .av-xs { margin-left: -4px; }
.hero .av-xs { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hero .av-xs.oz { background: rgba(76, 195, 138, 0.28); color: #b8f0d2; }
.hero .av-xs.more { background: rgba(255, 255, 255, 0.24); }
.hcrew .acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s var(--spring); }
.hcrew.open .acc-body { grid-template-rows: 1fr; }
.hcrew .acc-inner { overflow: hidden; }
.hero .crew { border-top: none; margin-top: 0; padding-top: 14px; }
.hero .crew .grp .rl { color: var(--hero-ink-2); }
.hero .crew .p .nm { color: var(--hero-ink); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.hero-foot .meta { font-size: 13px; color: var(--hero-ink-2); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px; border-radius: 20px;
  background: var(--brand); color: #fff; font-weight: 650; font-size: 14px; flex-shrink: 0;
}
.hero-cta.ghost { background: rgba(255,255,255,0.12); }
.hero h3 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 0.92; text-transform: uppercase; margin: 10px 0 8px; }
.hero p { color: var(--hero-ink-2); font-size: 15px; max-width: 30ch; }

/* ---------- home ---------- */
.greet { margin: 0 2px 16px; }
.greet .g1 { font-size: 15px; color: var(--ink-2); }
.notice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; margin-top: 12px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; font-weight: 600;
}
.notice .grow { flex: 1; }
/* bleeds to the screen edge while scrolling, but snaps cards to the page gutter */
.strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.mini {
  flex: 0 0 132px; scroll-snap-align: start; padding: 14px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mini .d { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.mini .t { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.mini .t small { font-size: 14px; font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.mini .f { font-weight: 600; font-size: 14px; }
.mini .r { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.mini.next { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.mini.past { opacity: 0.45; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.tile .ti { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--card-2); color: var(--ink); }
.tile .tt { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; margin-top: 14px; }
.tile .ts { font-size: 13px; color: var(--ink-2); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.tile .ts .live-dot { width: 6px; height: 6px; }

.event-card { display: flex; gap: 14px; padding: 16px; }
.event-card .when { width: 58px; flex-shrink: 0; text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.event-card .when .dow { font-size: 12px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.event-card .when .dd { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.event-card .what .tm { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.event-card .what .tl { font-weight: 650; font-size: 16px; margin: 2px 0; }
.event-card .what .wh { font-size: 13px; color: var(--ink-3); }

.foot-note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 28px; line-height: 1.6; }

/* ---------- directory ---------- */
.letter { position: sticky; top: 66px; z-index: 2; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink-3); padding: 14px 4px 6px; background: var(--bg); }
.count-num { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); line-height: 1; text-align: right; }
.count-lbl { font-size: 11px; color: var(--ink-3); text-align: right; }
.empty { text-align: center; padding: 48px 24px; color: var(--ink-2); }
.empty .e-i { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--card-2); color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- profile ---------- */
.profile { display: flex; align-items: center; gap: 16px; margin: 6px 0 16px; }
.profile .pn { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.95; text-transform: uppercase; }
.profile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 14px; }
.stats > div { padding: 12px 6px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.stats b.zero { color: var(--ink-3); }
.stats span { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.claim { display: flex; gap: 10px; margin-bottom: 20px; }
.claim .btn { flex: 1; }

/* ---------- timeline ---------- */
.tl { display: grid; grid-template-columns: 56px 18px 1fr; column-gap: 8px; position: relative; }
.tl-time { text-align: right; padding-top: 16px; }
.tl-time b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-time span { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line-2); border-radius: 1px; }
.tl:first-child .tl-rail::before { top: 22px; }
.tl:last-child .tl-rail::before { bottom: calc(100% - 22px); }
.tl-rail i { position: relative; margin-top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--ink-3); }
.tl.game .tl-rail i { border-color: var(--ink); }
.tl.game.next .tl-rail i, .tl.game.live .tl-rail i { border-color: var(--brand); background: var(--brand); }
.tl.game.live .tl-rail i { animation: pulse 1.8s infinite; }
.tl-card { margin: 6px 0; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl.game.next .tl-card, .tl.game.live .tl-card { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.tl.game.past .tl-card, .tl.game.past .tl-time { opacity: 0.5; }
.tl-card .top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-card .fld { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; margin: 10px 0 2px; }
.tl-card .sub { font-size: 14px; color: var(--ink-2); }
/* crew: one person per line with initials, grouped by role */
.crew { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.crew .grp .rl { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.crew .ppl { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 6px 12px; }
.crew .p { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 2px 0; }
.crew .p .nm { min-width: 0; overflow-wrap: anywhere; }
.crew .p .tbc { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.crew .p.me .nm { color: var(--brand-ink); }
.av-xs { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; background: var(--brand-soft); color: var(--brand-ink); }
.av-xs.oz { background: var(--oz-soft); color: var(--oz); }
.p.me .av-xs { background: var(--brand); color: #fff; }
.tl.gap .tl-time { padding-top: 9px; }
.tl.gap .tl-time b { font-size: 16px; color: var(--ink-3); }
.tl.gap .tl-rail i { margin-top: 12px; width: 8px; height: 8px; border-width: 2px; border-color: var(--line-2); }
.tl.gap .gap-l { padding: 8px 0 12px; font-size: 14px; color: var(--ink-3); }
.tl.gap .gap-l b { color: var(--ink-2); font-weight: 600; }
.note-card { padding: 16px; border-radius: 18px; background: var(--card); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* ---------- field board ---------- */
.hours { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter) 4px; scrollbar-width: none; }
.hours::-webkit-scrollbar { display: none; }
.hour {
  flex: 0 0 auto; min-width: 62px; height: 58px; border-radius: 14px; padding: 0 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.hour b { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.hour span { font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; display: flex; align-items: center; gap: 4px; }
.hour span .live-dot { width: 6px; height: 6px; }
.hour.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hour.on span { color: inherit; opacity: 0.7; }
.hour:active { transform: scale(0.95); }
.board { display: grid; gap: 10px; }
.fcard { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fcard.mine { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.fcard .fh { display: flex; align-items: baseline; gap: 8px; }
.fcard .fh .fl { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.fcard .fh b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.9; }
.fcard .fh .tag { margin-left: auto; align-self: center; }
.fcard.mine .fh b { color: var(--brand); }
.fcard .none { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

/* ---------- Ask Jeff ---------- */
.jeff { display: flex; flex-direction: column; min-height: 100%; }
.jeff-intro { margin: 6px 0 22px; }
.jeff-intro .page-title { font-size: 48px; }
.topic { margin-bottom: 18px; }
.topic .eyebrow { margin: 0 4px 8px; }
.log { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 4px 0 16px; }
.msg { max-width: 86%; font-size: 15.5px; line-height: 1.5; }
.msg.new { animation: rise 0.35s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); padding: 11px 15px; border-radius: 20px 20px 6px 20px; }
.msg.jeff { align-self: flex-start; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 13px 16px; border-radius: 20px 20px 20px 6px; }
.msg.jeff .who { font-size: 12px; font-weight: 700; color: var(--brand-ink); margin-bottom: 4px; letter-spacing: 0.02em; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
/* Sticky offsets are measured inside #app's padding, which already clears the tab bar. */
.composer-wrap, .dock { position: sticky; bottom: 0; z-index: 4; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.composer-wrap::after, .dock::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--tabbar-h) + var(--tabbar-bottom) + 32px); background: var(--bg); }
.composer-wrap { padding-top: 14px; padding-bottom: 6px; background: linear-gradient(transparent, var(--bg) 22px); }
.composer {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.composer input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; min-width: 0; height: 40px; }
.composer input::placeholder { color: var(--ink-3); }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s, transform 0.18s var(--ease); }
.send:disabled { opacity: 0.3; }
.send:active { transform: scale(0.92); }
.disclaim { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ---------- guide ---------- */
.tbd { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); color: var(--ink-2); font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.ev { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 10px; }
.ev .ev-t { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--brand-ink); text-transform: uppercase; letter-spacing: 0.02em; }
.ev h3 { font-size: 18px; font-weight: 700; margin: 2px 0 6px; letter-spacing: -0.01em; }
.ev .ev-w { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.ev .ev-w a { color: var(--brand-ink); font-weight: 600; }
.ev p { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }
.ev .ev-a { margin-top: 12px; display: flex; gap: 8px; }
.acc { border-top: 1px solid var(--line); }
.acc:first-child { border-top: none; }
.acc-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; text-align: left; font-weight: 600; font-size: 16px; }
.acc-head .chev { margin-left: auto; color: var(--ink-3); transition: transform 0.35s var(--spring); }
.acc.open .acc-head .chev { transform: rotate(90deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s var(--spring); }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner ul { list-style: none; padding: 0 16px 16px; display: grid; gap: 10px; }
.acc-inner li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.acc-inner li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ---------- quiz ---------- */
.q-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 26px; }
.q-bar { flex: 1; display: grid; grid-auto-flow: column; gap: 4px; }
.q-bar i { height: 5px; border-radius: 3px; background: var(--line-2); transition: background 0.3s; }
.q-bar i.done { background: var(--ink); }
.q-bar i.right { background: var(--good); }
.q-bar i.wrong { background: var(--bad); }
.q-bar i.cur { background: var(--brand); }
.q-n { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.q-text { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 24px; text-wrap: balance; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; min-height: 60px;
  border-radius: 16px; background: var(--card); border: 1.5px solid var(--line-2); font-size: 16px; font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.18s var(--ease);
}
.opt:active { transform: scale(0.985); }
.opt .ab { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--card-2); color: var(--ink-2); transition: all 0.2s; }
.opt.sel { border-color: var(--ink); }
.opt.sel .ab { background: var(--ink); color: var(--bg); }
.opt.right { border-color: var(--good); background: var(--good-soft); animation: pop 0.35s var(--ease); }
.opt.right .ab { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); animation: shake 0.4s var(--ease); }
.opt.wrong .ab { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }
.why { margin-top: 16px; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: rise 0.35s var(--ease) both; }
.why.good { background: var(--good-soft); color: var(--ink); }
.why.bad { background: var(--bad-soft); color: var(--ink); }
.why b { display: block; margin-bottom: 2px; }
.why.good b { color: var(--good); }
.why.bad b { color: var(--bad); }
.dock { padding-top: 18px; padding-bottom: 6px; background: linear-gradient(transparent, var(--bg) 22px); margin-top: 24px; }
.score-hero { text-align: center; padding: 34px 22px 26px; }
.score-hero .big { font-family: var(--display); font-weight: 800; font-size: 110px; line-height: 0.85; }
.score-hero .big small { font-size: 44px; color: var(--hero-ink-2); }
.review .row { align-items: flex-start; }
.review .mark { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; background: var(--bad-soft); color: var(--bad); }
.review .t1 { white-space: normal; font-size: 15px; }
.review .t2 { white-space: normal; }

/* ---------- welcome ---------- */
.welcome { min-height: 100%; display: flex; flex-direction: column; padding-top: 6vh; }
.welcome .logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: var(--shadow-lg); display: block; }
.welcome .page-title { font-size: 64px; line-height: 0.88; margin-top: 26px; }
.welcome .page-title em { font-style: italic; color: var(--brand); }
.welcome .lead { font-size: 17px; color: var(--ink-2); margin: 12px 0 28px; max-width: 32ch; }
.welcome .results { margin-top: 10px; }
.welcome .skip { margin: 20px auto 0; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 10px; }
.welcome .small { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.welcome .spacer { flex: 1; min-height: 28px; }
.install-card { padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise 0.55s var(--ease) 0.25s both; }
.install-card .ic-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.install-card img { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.install-card .ic-top b { display: block; font-size: 15px; }
.install-card .ic-top span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; margin-top: 1px; }
.steps { list-style: none; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--card-2); font-size: 14.5px; }
.steps .stp { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; }
.steps .stx { flex: 1; min-width: 0; }
.steps .sti { display: flex; color: var(--brand-ink); }

/* ---------- more ---------- */
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 24px; }
.me-card .n { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
.me-card .s { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.group-label { margin: 22px 4px 8px; }
.acc-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.acc-row:first-child { border-top: none; }
.acc-row .code { width: 76px; flex-shrink: 0; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--brand-ink); }
.acc-row h4 { font-size: 15px; }
.acc-row p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.check-row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; width: 100%; text-align: left; }
.check-row:first-child { border-top: none; }
.check-row .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; transition: all 0.2s var(--ease); }
.check-row.done .box { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.check-row.done span { color: var(--ink-3); text-decoration: line-through; }

/* ---------- sheet ---------- */
.scrim { position: absolute; inset: 0; z-index: 80; background: rgba(10, 8, 6, 0.4); opacity: 0; transition: opacity 0.3s; }
.scrim.on { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 86%;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  transform: translateY(105%); transition: transform 0.45s var(--spring);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.sheet.on { transform: none; }
.sheet .drag-zone { flex-shrink: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.sheet .drag-zone:active { cursor: grabbing; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto; }
.sheet .grab-hit { padding: 10px 0 6px; }
.sheet .sh-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; flex-shrink: 0; }
.sheet .sh-head h3 { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.sheet .sh-body { overflow-y: auto; padding: 0 20px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: 14px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on.oz { background: var(--oz); border-color: var(--oz); color: #fff; }

/* ---------- tab bar (floating glass capsule inside #phone — never position:fixed) ---------- */
#tabbar {
  position: absolute; z-index: 50; left: 14px; right: 14px; bottom: var(--tabbar-bottom);
  height: var(--tabbar-h); border-radius: 32px;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255,255,255,0.4) inset;
  transition: transform 0.4s var(--spring), opacity 0.3s;
}
#phone.no-tabs #tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tab-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 26px; background: var(--brand-soft); transition: transform 0.45s var(--spring); pointer-events: none; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-2); font-size: 11px; font-weight: 600; transition: color 0.25s; }
.tab.on { color: var(--brand-ink); }
.tab svg.i { width: 23px; height: 23px; }

/* ---------- overlays ---------- */
.offline {
  position: absolute; z-index: 70; top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translate(-50%, -150%);
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; transition: transform 0.45s var(--spring);
}
.offline.on { transform: translate(-50%, 0); }
.a2hs {
  position: absolute; z-index: 60; left: 14px; right: 14px; bottom: calc(var(--tabbar-bottom) + var(--tabbar-h) + 10px);
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
  animation: rise 0.5s var(--ease) both;
}
#phone.no-tabs .a2hs { display: none; }
.a2hs img { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }
.a2hs .tx { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.a2hs .tx b { display: block; color: var(--ink); font-size: 14px; }
.a2hs .x { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); flex-shrink: 0; }

/* ---------- announcement ---------- */
.announce { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; margin: 0 0 14px; background: var(--brand-soft); color: var(--ink); text-align: left; }
.announce > svg { color: var(--brand-ink); margin-top: 1px; }
.announce b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 2px; }
.announce span { font-size: 15px; line-height: 1.45; }
.announce.urgent { background: var(--bad-soft); }
.announce.urgent > svg, .announce.urgent b { color: var(--bad); }
.ann-toast {
  position: absolute; z-index: 75; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 10px);
  transform: translateY(-140%); transition: transform 0.5s var(--spring); padding: 0;
}
.ann-toast.on { transform: none; }
.ann-toast .announce { margin: 0; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--card); }
.ann-toast .announce.urgent { background: var(--card); border-color: var(--bad); }

/* ---------- admin ---------- */
.gate { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 10vh; }
.gate-i { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; }
.gate .muted { margin: 8px 0 22px; }
.pin-row { display: flex; gap: 10px; width: 100%; max-width: 300px; }
.pin { flex: 1; min-width: 0; height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); text-align: center; font-size: 24px; letter-spacing: 0.3em; color: var(--ink); outline: none; }
.pin:focus { border-color: var(--brand); }
.pin.shake { animation: shake 0.4s var(--ease); }
.pin-err { color: var(--bad); font-size: 14px; margin-top: 12px; }
.stat-card { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 4px; }
.stat-card > div { padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-card > div + div { border-left: 1px solid var(--line); }
.stat-card b { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; }
.stat-card b.accent { color: var(--brand); }
.stat-card span:last-child { font-size: 13px; color: var(--ink-2); }
.form-card { padding: 16px; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.fld input, .fld textarea, .sel {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 16px; background: var(--bg); color: var(--ink); outline: none; font-family: inherit; resize: vertical;
}
.fld input:focus, .fld textarea:focus, .sel:focus { border-color: var(--brand); }
.sel { margin-bottom: 14px; appearance: none; -webkit-appearance: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.hint { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 10px; }
.hint:empty { display: none; }
.hint.good { color: var(--good); font-weight: 600; }
.hint.bad { color: var(--bad); font-weight: 600; }
.conn { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.conn.ok { color: var(--good); }
.howto { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card-2); font-size: 14px; }
.howto summary { font-weight: 600; cursor: pointer; }
.howto ol { margin: 12px 0 0 18px; display: grid; gap: 8px; line-height: 1.5; color: var(--ink-2); }
.howto b { color: var(--ink); }
.count-row { text-align: right; font-size: 12px; color: var(--ink-3); margin: -6px 0 4px; }
.drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 20px; border-radius: 22px; border: 2px dashed var(--line-2); background: var(--card); cursor: pointer; }
.drop-i { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 6px; }
.drop b { font-size: 17px; }
.drop span:last-child { font-size: 13px; color: var(--ink-2); max-width: 30ch; }
.err-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bad-soft); margin-bottom: 12px; }
.err-card > svg { color: var(--bad); flex-shrink: 0; margin-top: 1px; }
.err-card b { display: block; font-size: 15px; }
.err-card span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.err-card.warn { background: var(--brand-soft); }
.err-card.warn > svg { color: var(--brand-ink); }
.sum-card { padding: 16px; margin-bottom: 12px; }
.sum-card > b { display: block; font-size: 15px; margin: 4px 0 14px; line-height: 1.35; }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; background: var(--card-2); }
.sum-grid > div { padding: 10px; text-align: center; }
.sum-grid span { display: block; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.sum-grid b { font-family: var(--display); font-weight: 800; font-size: 26px; }
.sum-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.warns { padding: 12px 16px; border-radius: 16px; background: var(--card-2); margin-bottom: 12px; font-size: 14px; }
.warns summary { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; list-style: none; }
.warns summary::-webkit-details-marker { display: none; }
.warns ul { margin: 10px 0 0 18px; display: grid; gap: 4px; color: var(--ink-2); font-size: 13px; }
.diff { display: grid; gap: 8px; }
.dcard { padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.dh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dh b { font-size: 15px; }
.dl { font-size: 14px; color: var(--ink-2); line-height: 1.5; font-variant-numeric: tabular-nums; }
.pend { width: 100%; margin: 0 0 12px; }
.slot-row .st { width: 74px; flex-shrink: 0; font-family: var(--display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.slot-row .t1.dim { color: var(--ink-3); font-weight: 500; }
.list.plain .row.slot-row + .row::before { left: 16px; }
.chip.num { min-width: 44px; justify-content: center; padding: 0 12px; }
.hrow { align-items: center; }
.hrow .t1 { white-space: normal; font-size: 15px; }
.pub { display: grid; gap: 4px; padding-bottom: 8px; }
.pstep { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-size: 16px; color: var(--ink-3); font-weight: 500; }
.pdot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; position: relative; transition: all 0.3s; }
.pstep.on { color: var(--ink); font-weight: 600; }
.pstep.on .pdot { border-color: var(--brand); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.pstep.done { color: var(--ink); }
.pstep.done .pdot { background: var(--good); border-color: var(--good); }
.pstep.done .pdot::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pstep.fail { color: var(--bad); }
.pstep.fail .pdot { background: var(--bad); border-color: var(--bad); }
.pmsg { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 8px 0 14px; }
.pmsg.bad { color: var(--bad); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
