/* Flatbed. OLED black, three team lights, machined glass. Built thumb-first. */

:root {
  --bg: #050506;
  --core: #0b0b0d;
  --core-2: #111114;
  --shell: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f2ee;
  --ink-2: rgba(244, 242, 238, 0.62);
  --ink-3: rgba(244, 242, 238, 0.36);
  --blue: #4da3ff;
  --orange: #ff7b2e;
  --yellow: #ffd23f;
  --red: #ff5a52;
  --ice: #8fe3ff;
  --team: var(--blue);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --display: 'Bricolage Grotesque', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --body: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
body[data-team='orange'] { --team: var(--orange); }
body[data-team='yellow'] { --team: var(--yellow); }
.t-blue { --c: var(--blue); }
.t-orange { --c: var(--orange); }
.t-yellow { --c: var(--yellow); }

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--body); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; touch-action: manipulation; }
svg { display: block; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; letter-spacing: -0.02em; }

/* ---------- atmosphere (fixed layers, never on scrolling content) ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.2; transition: background 1.2s var(--ease), opacity 1.2s var(--ease); will-change: transform; }
.aurora i:nth-child(1) { width: 70vmax; height: 70vmax; left: -25vmax; top: -35vmax; background: var(--team); animation: drift-a 26s var(--ease) infinite alternate; }
.aurora i:nth-child(2) { width: 50vmax; height: 50vmax; right: -22vmax; top: 30vh; background: var(--team); opacity: 0.09; animation: drift-b 32s var(--ease) infinite alternate; }
.aurora i:nth-child(3) { width: 46vmax; height: 46vmax; left: 10vw; bottom: -34vmax; background: #6a5cff; opacity: 0.07; }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-6vmax, -8vmax, 0) scale(0.94); } }
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; }

/* ---------- primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font: 500 10px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow .dots { display: inline-flex; gap: 3px; }
.eyebrow .dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

.bezel { padding: 6px; border-radius: 30px; background: var(--shell); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.bezel > .core { border-radius: 24px; background: linear-gradient(180deg, var(--core-2), var(--core)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.025); }

.cta {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 24px; border-radius: 999px;
  background: var(--ink); color: #0a0a0b; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), background 0.5s var(--ease);
}
.cta .orb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.08); transition: transform 0.6s var(--ease); }
.cta:hover .orb { transform: translate3d(3px, -1px, 0) scale(1.06); }
.cta:active { transform: scale(0.97); }
.cta[disabled] { opacity: 0.35; pointer-events: none; }
.cta.team { background: var(--team); }
.cta.wide { width: 100%; justify-content: space-between; }
.ghost { padding: 12px 18px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.ghost, a.ghost { text-decoration: none; }
.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.ghost:active { transform: scale(0.96); }
.ghost.danger { color: var(--red); }

.field { display: block; }
.field > span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px 4px; }
.field input, .field select {
  width: 100%; padding: 15px 18px; border-radius: 18px; border: 0; outline: 0; font-size: 17px;
  background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); appearance: none;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.field input:focus, .field select:focus { box-shadow: inset 0 0 0 1px var(--team), 0 0 0 4px color-mix(in srgb, var(--team) 18%, transparent); }
.field input::placeholder { color: var(--ink-3); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.4s var(--ease); }
.seg button.on { background: var(--ink); color: #0a0a0b; }
.seg button:active { transform: scale(0.95); }

.rise { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(8px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- home ---------- */
.home { max-width: 1240px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 16px 96px; }
.brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 56px; }
.brand .mark { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); font: 600 15px var(--display); letter-spacing: -0.01em; }
.brand .mark .dots { display: inline-flex; }
.brand .mark .dots b { width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-left: -4px; box-shadow: 0 0 0 2px var(--bg); }
.brand .mark .dots b:first-child { margin-left: 0; }
.split { display: grid; gap: 40px; }
.headline { font: 700 clamp(52px, 13.5vw, 112px)/0.9 var(--display); letter-spacing: -0.045em; margin: 22px 0 26px; font-variation-settings: 'opsz' 96; }
.headline em { font-style: normal; color: var(--ink-3); }
.headline .go { background: linear-gradient(100deg, var(--blue), var(--orange) 55%, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 44ch; color: var(--ink-2); font-size: 18px; line-height: 1.5; }

.drop .core { padding: 28px; text-align: center; position: relative; overflow: hidden; transition: transform 0.6s var(--ease); }
.drop.over .core { transform: scale(0.985); }
.drop.over { box-shadow: 0 0 0 1px var(--team), 0 0 80px -20px var(--team); }
.drop .well { border-radius: 18px; padding: 44px 20px; border: 1px dashed var(--line-2); display: grid; justify-items: center; gap: 14px; }
.drop .well .ico { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.drop h3 { font: 600 24px/1.1 var(--display); letter-spacing: -0.02em; }
.drop p { color: var(--ink-2); font-size: 14px; max-width: 34ch; }
.drop input[type='file'] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.runs { margin-top: 96px; }
.runs h2 { font: 600 34px/1 var(--display); letter-spacing: -0.03em; margin: 18px 0 28px; }
.run-grid { display: grid; gap: 18px; }
.run { display: block; color: inherit; text-decoration: none; transition: transform 0.7s var(--ease); }
.run:hover { transform: translate3d(0, -4px, 0); }
.run:active { transform: scale(0.985); }
.run .core { padding: 24px; display: grid; gap: 18px; }
.run .top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.run h3 { font: 600 24px/1.08 var(--display); letter-spacing: -0.025em; }
.run .meta { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.run .pct { font: 500 34px/1 var(--mono); letter-spacing: -0.06em; }
.run .pct small { font-size: 14px; color: var(--ink-3); margin-left: 5px; letter-spacing: 0; }
.run .foot { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-size: 13px; }
.run .foot .warn { color: var(--yellow); }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--c, var(--team)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1s var(--ease); }
.empty { padding: 56px 24px; text-align: center; color: var(--ink-3); }

/* ---------- join ---------- */
.join { max-width: 560px; margin: 0 auto; padding: calc(36px + var(--safe-t)) 16px calc(48px + var(--safe-b)); min-height: 100dvh; display: flex; flex-direction: column; }
.join h1 { font: 700 clamp(44px, 12vw, 72px)/0.92 var(--display); letter-spacing: -0.045em; margin: 20px 0 12px; }
.join .sub { color: var(--ink-2); margin-bottom: 32px; }
.teams-pick { display: grid; gap: 12px; margin: 28px 0 32px; }
.pick { text-align: left; width: 100%; border-radius: 26px; padding: 5px; background: var(--shell); box-shadow: 0 0 0 1px var(--line); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.pick:active { transform: scale(0.98); }
.pick .core { border-radius: 21px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: linear-gradient(180deg, var(--core-2), var(--core)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.pick .lamp { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, white), var(--c) 60%); box-shadow: 0 0 0 0 var(--c); transition: box-shadow 0.8s var(--ease), transform 0.6s var(--spring); transform: scale(0.8); opacity: 0.85; }
.pick h4 { font: 600 21px/1.1 var(--display); letter-spacing: -0.02em; text-transform: capitalize; }
.pick p { color: var(--ink-3); font-size: 13px; margin-top: 4px; line-height: 1.35; }
.pick .n { font: 500 26px/1 var(--mono); letter-spacing: -0.05em; text-align: right; }
.pick .n small { display: block; font: 400 10px var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.pick.on { box-shadow: 0 0 0 1.5px var(--c), 0 24px 70px -28px var(--c); }
.pick.on .lamp { transform: scale(1); opacity: 1; box-shadow: 0 0 34px -2px var(--c); }

/* ---------- run chrome ---------- */
.pill {
  position: fixed; z-index: 30; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  width: min(calc(100vw - 20px), 560px); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(14, 14, 17, 0.72); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px -20px rgba(0, 0, 0, 0.9);
}
.pill .rnd { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 255, 255, 0.05); transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.pill .rnd:active { transform: scale(0.9); background: rgba(255, 255, 255, 0.1); }
.pill .where { flex: 1; min-width: 0; padding: 0 8px; }
.pill .where b { display: block; font: 600 14px/1.2 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill .where span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: ping 2.4s var(--ease) infinite; }
.live.off { background: var(--red); animation: none; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
.me { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--team) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--team) 40%, transparent); font-weight: 600; font-size: 13px; transition: transform 0.4s var(--ease); }
.me:active { transform: scale(0.94); }
.me i { width: 26px; height: 26px; border-radius: 50%; background: var(--team); display: grid; place-items: center; font: 700 12px var(--display); color: #0a0a0b; font-style: normal; }

.island {
  position: fixed; z-index: 30; bottom: calc(14px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(14, 14, 17, 0.78); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px -16px rgba(0, 0, 0, 0.95);
}
.island button { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 20px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14px; transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.4s var(--ease); }
.island button.on { background: var(--ink); color: #0a0a0b; }
.island button:active { transform: scale(0.94); }
.island .count { font: 500 12px var(--mono); padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.1); }
.island button:not(.on) .count { background: rgba(255, 255, 255, 0.08); }

.run-view { max-width: 600px; margin: 0 auto; padding: calc(78px + var(--safe-t)) 10px calc(120px + var(--safe-b)); }

/* ---------- hero ---------- */
.hero { padding: 26px 10px 8px; }
.hero .big { display: flex; align-items: flex-end; gap: 14px; margin-top: 18px; }
.hero .num { font: 700 clamp(88px, 27vw, 148px)/0.8 var(--display); letter-spacing: -0.06em; color: var(--team); font-variation-settings: 'opsz' 96; transition: color 0.8s var(--ease); }
.hero .of { padding-bottom: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.hero .of b { display: block; color: var(--ink); font: 500 22px/1 var(--mono); letter-spacing: -0.04em; margin-bottom: 4px; }
.hero .spark { margin: 22px 0 0; font: 500 19px/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); max-width: 26ch; min-height: 2.6em; }
.tri { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; margin-top: 22px; }
.tri button { text-align: left; padding: 12px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.tri button:active { transform: scale(0.96); }
.tri button.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.tri .lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 9px; }
.tri .lbl b { font: 500 13px var(--mono); color: var(--c); letter-spacing: -0.02em; }
.tri .bar { height: 4px; }

.tools { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 26px 4px 12px; }
.tools .hint { font-size: 12px; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease); }
.chip.on { background: rgba(255, 255, 255, 0.09); color: var(--ink); }
.chip:active { transform: scale(0.94); }

/* ---------- department card + rows ---------- */
.dept { margin-top: 14px; border-radius: 28px; padding: 5px; background: var(--shell); box-shadow: 0 0 0 1px var(--line); }
.dept > .core { border-radius: 23px; background: linear-gradient(180deg, var(--core-2), var(--core) 120px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); overflow: hidden; }
.dept-head { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 18px 18px 14px; }
.dept-head h3 { font: 600 21px/1.1 var(--display); letter-spacing: -0.025em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dept-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.dept-head .left { font: 500 13px var(--mono); color: var(--ink-2); padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 500 9.5px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.tag.cold { color: var(--ice); background: rgba(143, 227, 255, 0.1); }
.tag.here { color: #0a0a0b; background: var(--c, var(--team)); }
.tag.heavy { color: var(--ink-2); background: rgba(255, 255, 255, 0.07); }
.tag.out { color: var(--red); background: rgba(255, 90, 82, 0.12); }
.tag.sub { color: var(--yellow); background: rgba(255, 210, 63, 0.1); }
.dept.cleared > .core { background: var(--core); }
.dept.cleared .dept-head h3 { color: var(--ink-3); }
.dept.cleared .dept-head .left { color: #4ade80; background: rgba(74, 222, 128, 0.08); }
.dept.cleared:not(.open) .rows { display: none; }

.row { position: relative; display: grid; grid-template-columns: 58px 1fr 54px; align-items: center; min-height: 76px; border-top: 1px solid rgba(255, 255, 255, 0.055); user-select: none; -webkit-user-select: none; cursor: pointer; }
.row::before { content: ''; position: absolute; inset: 0; background: var(--c); opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.row:active::before { opacity: 0.07; transition-duration: 0.05s; }
.row .qty { align-self: stretch; display: grid; place-content: center; justify-items: center; gap: 3px; margin: 8px 0 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.row .qty:active { transform: scale(0.92); }
.row .qty b { font: 600 21px/1 var(--mono); letter-spacing: -0.05em; }
.row .qty small { font: 500 9px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .what { padding: 12px 6px 12px 14px; min-width: 0; position: relative; }
.row .name { font-size: 16.5px; font-weight: 500; line-height: 1.25; letter-spacing: -0.012em; transition: opacity 0.6s var(--ease); }
.row .name s { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat left 55% / 0% 1.5px; transition: background-size 0.6s var(--ease); }
.row .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.row .sub .note { color: var(--yellow); opacity: 0.85; }
.row .sub .who { color: var(--c); }
.check { justify-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2); transition: transform 0.6s var(--spring), background 0.4s var(--ease), box-shadow 0.4s var(--ease); position: relative; }
.check svg { stroke: #0a0a0b; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.5s var(--ease) 0.08s; }
.check::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px var(--c); opacity: 0; transform: scale(1); }
.row.done .check { background: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); transform: scale(1.02); }
.row.done .check svg { stroke-dashoffset: 0; }
.row.pop .check::after { animation: ring 0.7s var(--ease); }
.row.pop .check { animation: pop 0.6s var(--spring); }
@keyframes ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes pop { 0% { transform: scale(0.7); } 100% { transform: scale(1.02); } }
.row.done .name, .row.out .name { opacity: 0.38; }
.row.done .name s, .row.out .name s { background-size: 100% 1.5px; }
.row.done .qty, .row.out .qty { opacity: 0.4; }
.row.done .sub > :not(.who):not(.tag), .row.out .sub > :not(.tag):not(.who) { opacity: 0.5; }
.row.out .check { box-shadow: inset 0 0 0 1.5px var(--red); }
.row.out .check svg { display: none; }
.row.out .check::before { content: ''; width: 12px; height: 1.5px; background: var(--red); border-radius: 2px; }
.hide-done .row.done, .hide-done .row.out { display: none; }
.hide-done .dept.cleared { display: none; }

.allclear { margin-top: 14px; }
.allclear .core { padding: 40px 24px; text-align: center; }
.allclear h3 { font: 700 40px/0.95 var(--display); letter-spacing: -0.04em; color: var(--team); }
.allclear p { color: var(--ink-2); margin-top: 12px; }

/* ---------- floor view ---------- */
.floor h2 { font: 700 clamp(44px, 12vw, 64px)/0.92 var(--display); letter-spacing: -0.045em; margin: 18px 0 8px; }
.floor .sub { color: var(--ink-2); margin-bottom: 24px; }
.lane { margin-top: 12px; width: 100%; text-align: left; display: block; transition: transform 0.6s var(--ease); }
.lane:active { transform: scale(0.985); }
.lane .core { padding: 20px; position: relative; overflow: hidden; }
.lane .core::before { content: ''; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%; background: var(--c); opacity: 0.13; filter: blur(50px); }
.lane .top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.lane h3 { font: 600 24px/1 var(--display); letter-spacing: -0.03em; text-transform: capitalize; display: flex; gap: 10px; align-items: center; }
.lane h3 i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.lane .crew { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.lane .pct { font: 500 40px/0.9 var(--mono); letter-spacing: -0.07em; color: var(--c); }
.lane .pct small { font-size: 15px; opacity: 0.6; margin-left: 5px; letter-spacing: 0; }
.lane .bar { margin: 18px 0 14px; height: 8px; }
.lane .now { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.lane .now b { color: var(--ink); font-weight: 500; }
.stops { display: flex; gap: 3px; margin-top: 14px; }
.stops i { flex: var(--w, 1); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.stops i.c { background: var(--c); }
.stops i.p { background: color-mix(in srgb, var(--c) 45%, rgba(255, 255, 255, 0.1)); }

.shouts { display: flex; gap: 8px; overflow-x: auto; margin: 28px -10px 0; padding: 2px 10px 6px; scrollbar-width: none; }
.shouts::-webkit-scrollbar { display: none; }
.shouts .chip { flex: none; height: 42px; color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.sect { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin: 34px 6px 12px; }
.feed { display: grid; }
.ev { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 6px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; color: var(--ink-2); }
.ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); transform: translateY(-1px); }
.ev b { color: var(--ink); font-weight: 500; }
.ev time { font: 400 11.5px var(--mono); color: var(--ink-3); }
.ev.shout { color: var(--ink); }
.ev.shout span { padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--c, #fff) 13%, transparent); display: inline-block; margin-top: 4px; }

/* ---------- sheets, search, toasts, hype ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.5s var(--ease); }
.sheet { position: fixed; z-index: 51; left: 50%; bottom: 0; width: min(100vw, 600px); max-height: 92dvh; overflow-y: auto; transform: translate3d(-50%, 105%, 0); transition: transform 0.65s var(--ease); padding: 6px 6px 0; border-radius: 34px 34px 0 0; background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px var(--line); overscroll-behavior: contain; }
.sheet > .core { border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #151518, #0c0c0e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); padding: 12px 20px calc(28px + var(--safe-b)); min-height: 200px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); margin: 0 auto 22px; }
.open > .scrim { opacity: 1; }
.open > .sheet { transform: translate3d(-50%, 0, 0); }
.sheet h2 { font: 600 28px/1.05 var(--display); letter-spacing: -0.03em; }
.sheet .k { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.sheet .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 22px; text-align: left; font-weight: 500; font-size: 15px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.act:active { transform: scale(0.96); }
.act small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.act .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); }
.act.good .ic { background: var(--team); color: #0a0a0b; }
.act.bad .ic { color: var(--red); background: rgba(255, 90, 82, 0.12); }
.act.on { box-shadow: inset 0 0 0 1.5px var(--team); }
.sheet .block { margin-top: 22px; }
.stepper { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); width: max-content; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; font-size: 22px; background: rgba(255, 255, 255, 0.07); transition: transform 0.3s var(--ease); }
.stepper button:active { transform: scale(0.88); }
.stepper b { min-width: 86px; text-align: center; font: 500 18px var(--mono); }
.stepper b small { color: var(--ink-3); font-size: 13px; }
.handoff { display: flex; gap: 8px; flex-wrap: wrap; }
.handoff .chip { height: 44px; text-transform: capitalize; color: var(--ink); }
.handoff .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rowline { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.qr { display: grid; place-items: center; padding: 18px; border-radius: 22px; background: #f4f2ee; width: max-content; margin: 0 auto; }
.qr svg { width: 190px; height: 190px; }
.urlbox { font: 400 13px var(--mono); color: var(--ink-2); text-align: center; margin-top: 12px; word-break: break-all; }

.preview { margin-top: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.preview .pr { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 14px; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.preview .pr:first-child { border-top: 0; }
.preview .pr span:nth-child(2) { font-family: var(--mono); color: var(--ink-2); }
.preview .pr span:nth-child(3) { color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; align-self: center; min-width: 70px; text-align: right; }
.preview .more { padding: 10px 14px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.maps .field select { padding: 12px 14px; font-size: 14px; border-radius: 14px; }

.search { position: fixed; inset: 0; z-index: 45; background: rgba(5, 5, 6, 0.9); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease); display: flex; flex-direction: column; }
.search.open { opacity: 1; pointer-events: auto; }
.search .inner { width: min(100%, 600px); margin: 0 auto; padding: calc(14px + var(--safe-t)) 10px 0; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.search .bar-in { display: flex; gap: 8px; align-items: center; }
.search input { flex: 1; min-width: 0; height: 58px; border-radius: 999px; border: 0; outline: 0; padding: 0 24px; font-size: 18px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
.search .results { overflow-y: auto; margin-top: 14px; padding-bottom: 40px; flex: 1; border-radius: 24px; }
.search .row:first-child { border-top: 0; }

.toasts { position: fixed; z-index: 60; bottom: calc(86px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; pointer-events: none; width: min(calc(100vw - 24px), 520px); }
.toast { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 16px 10px 12px; border-radius: 999px; font-size: 13.5px; background: rgba(22, 22, 26, 0.92); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px -12px rgba(0, 0, 0, 0.9); animation: toast-in 0.6s var(--ease) both; pointer-events: auto; }
.toast i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-3)); box-shadow: 0 0 12px var(--c, transparent); }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { color: var(--team); font-weight: 600; margin-left: 4px; padding: 2px 4px; }
.toast.bye { animation: toast-out 0.5s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.94); } }
@keyframes toast-out { to { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.96); } }

.hype { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 22%, rgba(5, 5, 6, 0.9)), rgba(5, 5, 6, 0.94) 70%); animation: hype-bg 2.8s var(--ease) both; }
.hype h1 { font: 800 clamp(72px, 24vw, 190px)/0.84 var(--display); letter-spacing: -0.06em; color: var(--c); animation: hype-in 2.8s var(--ease) both; }
.hype p { font: 500 20px/1.3 var(--display); margin-top: 22px; max-width: 24ch; margin-inline: auto; animation: hype-in 2.8s var(--ease) 0.1s both; }
@keyframes hype-bg { 0% { opacity: 0; } 12%, 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hype-in { 0% { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.92); } 14%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate3d(0, -24px, 0); } }
.bit { position: fixed; z-index: 71; left: 50%; top: 46%; width: 10px; height: 10px; border-radius: 3px; pointer-events: none; animation: bit 1.6s var(--ease) both; }
@keyframes bit { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; } 100% { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r)); opacity: 0; } }

/* ---------- wide screens ---------- */
@media (min-width: 900px) {
  .home { padding: 40px 40px 140px; }
  .brand { margin-bottom: 96px; }
  .split { grid-template-columns: 1.25fr 0.85fr; gap: 72px; align-items: end; }
  .runs { margin-top: 160px; }
  .run-grid { grid-template-columns: repeat(12, 1fr); }
  .run { grid-column: span 4; }
  .run:first-child { grid-column: span 8; }
  .run:first-child h3 { font-size: 40px; }
  .run:first-child .core { padding: 36px; min-height: 260px; align-content: space-between; }
  .run:first-child .pct { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- small phones ---------- */
@media (max-width: 480px) {
  .tri { gap: 6px; }
  .tri button { padding: 10px; border-radius: 16px; }
  .tri .lbl { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 10px; letter-spacing: 0.1em; }
  .tri .lbl b { font-size: 15px; }
  .sheet .grid2 { gap: 8px; }
  .maps { grid-template-columns: 1fr; }
  .me { padding: 0 12px 0 8px; }
}
.chip { white-space: nowrap; flex: none; }
.lane .now .mono { white-space: nowrap; flex: none; }

/* ---------- review ---------- */
.review-tri button { cursor: default; }
.review-tri .lbl b { font-size: 15px; }
.review-rows .row:first-child { border-top: 0; }
.review-rows { counter-reset: line; }
.review-rows .row .name::before { counter-increment: line; content: counter(line, decimal-leading-zero); font: 400 11px var(--mono); color: var(--ink-3); margin-right: 9px; }
.tools .seg button { padding: 8px 13px; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 480px) { .review-tri { grid-template-columns: 1fr; } .review .tools { flex-wrap: wrap; } }
.review .row { grid-template-columns: 58px 1fr 14px; }
.review .row .check { display: none; }
.tools .hint { min-width: 0; }

/* ---------- notifications that must be dismissed ---------- */
.notes { position: fixed; z-index: 58; top: calc(68px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(calc(100vw - 20px), 560px); display: grid; gap: 8px; pointer-events: none; }
.note-card { pointer-events: auto; padding: 4px; border-radius: 26px; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, #fff) 45%, transparent), 0 24px 60px -18px rgba(0, 0, 0, 0.95), 0 0 50px -22px var(--c, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.note-card .core { border-radius: 22px; padding: 14px 14px 12px 16px; background: linear-gradient(180deg, rgba(28, 28, 33, 0.94), rgba(14, 14, 17, 0.94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.note-card .lamp { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--c, var(--ink-2)); box-shadow: 0 0 14px var(--c, transparent); animation: ping-note 1.8s var(--ease) infinite; }
@keyframes ping-note { 50% { transform: scale(1.5); opacity: 0.55; } }
.note-card small { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.note-card p { font: 500 18px/1.3 var(--display); letter-spacing: -0.015em; margin-top: 3px; overflow-wrap: anywhere; }
.note-card .btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.note-card .btns button { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.4s var(--ease); }
.note-card .btns button.ok { background: var(--c, var(--ink)); color: #0a0a0b; font-weight: 600; box-shadow: none; }
.note-card .btns button:active { transform: scale(0.93); }
.note-card.in { animation: note-in 0.7s var(--spring) both; }
.note-card.bye { animation: note-out 0.38s var(--ease) both; }
@keyframes note-in { from { opacity: 0; transform: translate3d(0, -26px, 0) scale(0.92); } }
@keyframes note-out { to { opacity: 0; transform: translate3d(40px, 0, 0) scale(0.96); } }
.note-more { pointer-events: auto; justify-self: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: rgba(22, 22, 26, 0.92); box-shadow: inset 0 0 0 1px var(--line-2); }
