/* MatIQ. A dark competition cockpit by design: one theme, tuned for gyms and arenas. */

:root {
  --bg: #07080B;
  --bg-2: #0C0E13;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --surface-solid: #111318;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #F4F6FA;
  --text-2: #A9B1C2;
  --text-3: #6B7387;
  --volt: #C6FF3D;
  --volt-ink: #0B0F02;
  --volt-soft: rgba(198,255,61,.12);
  --cyan: #3DE0FF;
  --violet: #9B7BFF;
  --red: #FF4D5E;
  --red-soft: rgba(255,77,94,.13);
  --amber: #FFB547;
  --amber-soft: rgba(255,181,71,.13);
  --green: #3DFFA2;
  --green-soft: rgba(61,255,162,.12);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --glow: 0 0 0 1px rgba(198,255,61,.35), 0 10px 40px -10px rgba(198,255,61,.45);
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 68px;
  color-scheme: dark;
}


* { box-sizing: border-box; }
/* Inline icons default to text size; components that want bigger ones say so below. */
svg { width: 18px; height: 18px; flex: none; }
.eyebrow svg { width: 13px; height: 13px; vertical-align: -2px; }
.card-head > svg { color: var(--text-3); }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 500 15px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: -20% -10% auto; height: 70vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 15% 10%, rgba(198,255,61,.10), transparent 70%),
    radial-gradient(35% 45% at 90% 0%, rgba(155,123,255,.12), transparent 70%),
    radial-gradient(30% 40% at 60% 30%, rgba(61,224,255,.06), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.03em; line-height: 1.08; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: -.02em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.hidden { display: none !important; }

/* ---------- boot ---------- */
.boot { display: grid; place-items: center; min-height: 100vh; }
.boot-mark { font-weight: 900; font-size: 34px; letter-spacing: -.05em; animation: pulse 1.4s ease-in-out infinite; }
.boot-mark b, .logo b { color: var(--volt); }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- shell ---------- */
.shell { position: relative; z-index: 1; min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: 240px; padding: 26px 16px; display: none; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(20px);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 22px; letter-spacing: -.05em; padding: 0 10px 22px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--volt); display: grid; place-items: center; box-shadow: var(--glow); }
.logo-mark svg { width: 18px; height: 18px; }
.side a.nav {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-weight: 600;
  transition: background .15s, color .15s;
}
.side a.nav:hover { background: var(--surface); color: var(--text); }
.side a.nav.on { background: var(--surface-2); color: var(--text); }
.side a.nav.on svg { color: var(--volt); }
.side .spacer { flex: 1; }
.side .who { font-size: 12px; color: var(--text-3); padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; }
.nav svg, .tab svg { width: 20px; height: 20px; flex: none; }

.main { padding: calc(env(safe-area-inset-top) + 18px) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px); max-width: 1120px; margin: 0 auto; }
.tabs {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 8px 10px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-3); border-radius: 14px; }
.tab.on { color: var(--text); }
.tab.on svg { color: var(--volt); filter: drop-shadow(0 0 8px rgba(198,255,61,.5)); }

@media (min-width: 900px) {
  .side { display: flex; }
  .tabs { display: none; }
  .main { margin-left: 240px; padding: 34px 40px 60px; max-width: 1200px; }
}
@media (min-width: 1500px) { .main { margin-left: calc(240px + (100vw - 240px - 1200px) / 2); } }

/* ---------- header ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.title { font-size: clamp(30px, 6vw, 46px); font-weight: 800; }
.title em { font-style: normal; color: var(--volt); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.back svg { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(10px);
}
.card.pad-lg { padding: 22px; }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-width: 0; }
.card-head h3 { flex: none; }
.card, .grid > * { min-width: 0; }
.main { overflow-wrap: anywhere; }
.card-head .eyebrow { margin: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .g3 { grid-template-columns: repeat(3, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 26px 2px 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .2s, opacity .15s; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line-2)); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--volt); color: var(--volt-ink); border-color: transparent; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.danger { color: var(--red); }
.btn.sm { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.chip.volt { background: var(--volt-soft); color: var(--volt); border-color: transparent; }
.chip.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.live { animation: pulse 1.2s infinite; }

/* belt chip */
.belt { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: capitalize; }
.belt i { width: 26px; height: 9px; border-radius: 3px; background: #ddd; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); position: relative; }
.belt i::after { content: ""; position: absolute; right: 3px; top: 0; bottom: 0; width: 7px; background: #111; }
.belt.b-white i { background: #F2F2F2; } .belt.b-blue i { background: #2F6BFF; } .belt.b-purple i { background: #8A3FFC; }
.belt.b-brown i { background: #7A4A25; } .belt.b-black i { background: #111; } .belt.b-black i::after { background: #D21F2D; }
.belt.b-grey i, .belt.b-gray i { background: #9AA0A6; } .belt.b-yellow i { background: #F5D000; } .belt.b-orange i { background: #FF8A00; } .belt.b-green i { background: #1FA34A; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: .02em; }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--bg-2);
  outline: none; transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--volt); box-shadow: 0 0 0 4px var(--volt-soft); }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ---------- sub tabs ---------- */
.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 18px; padding: 0 16px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); padding: 9px 15px; border-radius: 99px;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.subtabs button.on { background: var(--text); color: var(--bg); border-color: transparent; }
@media (min-width: 900px) { .subtabs { margin: 4px 0 20px; padding: 0; } }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 24px; border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(155,123,255,.22), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(198,255,61,.16), transparent 55%),
    var(--surface-solid);
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; margin: 6px 0 4px; }
.count { display: flex; align-items: baseline; gap: 8px; }
.count b { font: 700 clamp(60px, 14vw, 104px)/.9 var(--mono); letter-spacing: -.06em; color: var(--volt); text-shadow: 0 0 40px rgba(198,255,61,.35); }
.count span { font-weight: 700; color: var(--text-2); font-size: 15px; }
.hero-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .hero-grid { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.kpi b { display: block; font: 700 24px/1 var(--mono); letter-spacing: -.04em; }
.kpi span { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.qa { display: flex; flex-direction: column; gap: 22px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .15s, border-color .15s; text-align: left; }
.qa:hover { transform: translateY(-2px); border-color: var(--line-2); }
.qa .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.qa .ico svg { width: 20px; height: 20px; }
.qa b { font-size: 15px; }
.qa small { display: block; color: var(--text-3); font-size: 12px; font-weight: 600; margin-top: 2px; }

/* ---------- list items ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
}
.item:hover { border-color: var(--line-2); background: var(--surface-2); }
.item:active { transform: scale(.99); }
.item .grow { flex: 1; min-width: 0; }
.item .name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .chev { color: var(--text-3); width: 18px; height: 18px; flex: none; }
.date-tile { width: 54px; flex: none; text-align: center; border-radius: 14px; border: 1px solid var(--line-2); padding: 7px 0; background: var(--bg-2); }
.date-tile b { display: block; font: 700 22px/1 var(--mono); letter-spacing: -.04em; }
.date-tile span { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }

.avatar {
  width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 45%, var(--surface-solid)), color-mix(in srgb, var(--cyan) 25%, var(--surface-solid)));
  color: #fff; overflow: hidden; letter-spacing: -.02em;
}
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
@media (min-width: 700px) { .avatar.xl { width: 84px; height: 84px; border-radius: 24px; font-size: 28px; } }
.opp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.opp-head .who { flex: 1; min-width: 0; }
.opp-head .title { font-size: clamp(26px, 7vw, 42px); }
@media (max-width: 560px) { .opp-head .gauge, .opp-head .gauge svg { width: 104px; height: 61px; } .opp-head .gauge .val b { font-size: 24px; } .opp-head .gauge .val span { font-size: 8px; } }

/* threat meter */
.threat { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.threat .bars { display: flex; gap: 2px; }
.threat .bars i { width: 4px; height: 14px; border-radius: 2px; background: var(--line-2); }
.threat .bars i.on { background: var(--c, var(--volt)); }
.threat small { font: 700 11px/1 var(--mono); color: var(--c, var(--text-3)); }

.gauge { position: relative; width: 150px; height: 88px; flex: none; }
.gauge svg { width: 150px; height: 88px; overflow: visible; }
.gauge .val { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.gauge .val b { font: 700 34px/1 var(--mono); letter-spacing: -.05em; }
.gauge .val span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }

/* ---------- report blocks ---------- */
.lead { font-size: clamp(18px, 3.2vw, 22px); font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--surface-solid); padding: 12px 14px; min-width: 0; }
.fact span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.fact b { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.named { display: flex; flex-direction: column; gap: 10px; }
.named > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--volt)); }
.named b { display: block; font-size: 15px; letter-spacing: -.015em; margin-bottom: 3px; }
.named p { color: var(--text-2); font-size: 14px; }
.bul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bul li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.bul li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--volt)); transform: rotate(45deg); }
.bul.red { --c: var(--red); } .bul.green { --c: var(--green); } .bul.amber { --c: var(--amber); } .bul.cyan { --c: var(--cyan); }
.tagline { display: flex; flex-wrap: wrap; gap: 8px; }
.links { display: flex; flex-direction: column; gap: 6px; }
.links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; min-width: 0; }
.links a:hover { border-color: var(--line-2); }
.links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.links a small { color: var(--text-3); flex: none; }
.links svg { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.callout { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--amber-soft); color: var(--text); font-size: 14px; }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--amber); }
.callout.volt { background: var(--volt-soft); } .callout.volt svg { color: var(--volt); }

/* game plan */
.cues { display: flex; gap: 10px; flex-wrap: wrap; }
.cue { flex: 1 1 120px; text-align: center; padding: 16px 10px; border-radius: 16px; background: var(--volt); color: var(--volt-ink); font-weight: 900; font-size: 18px; letter-spacing: -.03em; text-transform: uppercase; box-shadow: var(--glow); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--volt), var(--violet), var(--red)); border-radius: 2px; }
.phase { position: relative; }
.phase::before { content: ""; position: absolute; left: -24px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--volt); }
.phase:nth-child(2)::before { border-color: var(--violet); } .phase:nth-child(n+3)::before { border-color: var(--red); }
.phase h4 { font-size: 16px; }
.phase .goal { color: var(--text-2); font-size: 14px; margin: 3px 0 8px; }
.scen { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .scen { grid-template-columns: 1fr 1fr; } }
.sc { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.sc.ahead { background: var(--green-soft); border-color: transparent; }
.sc.behind { background: var(--red-soft); border-color: transparent; }
.sc.tied { background: var(--amber-soft); border-color: transparent; }
.sc .hd { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-weight: 800; font-size: 13px; }
.sc .hd .mono { font-size: 12px; color: var(--text-2); }
.sc p { font-size: 14px; color: var(--text); }

/* record */
.wl { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line); }
.wl .w { background: var(--green); } .wl .l { background: var(--red); }
.bigrec { display: flex; align-items: baseline; gap: 14px; }
.bigrec b { font: 700 44px/1 var(--mono); letter-spacing: -.06em; }
.bigrec .w { color: var(--green); } .bigrec .l { color: var(--red); }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .t { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hbar .t i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--green)); }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar b { font-family: var(--mono); text-align: right; }
.medals { display: flex; gap: 10px; }
.medal { flex: 1; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.medal b { display: block; font: 700 24px/1 var(--mono); }
.medal span { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.medal.g b { color: #FFD24A; } .medal.s b { color: #C9D1DC; } .medal.b b { color: #E08A4B; }
.belt-line { display: flex; flex-direction: column; gap: 8px; }
.belt-line > div { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.belt-line .mono { color: var(--text-3); width: 86px; flex: none; }
.mt { width: 100%; border-collapse: collapse; font-size: 13px; }
.mt td { padding: 9px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.mt td:first-child { padding-left: 0; white-space: nowrap; color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.res { font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.res.win { color: var(--green); } .res.loss { color: var(--red); } .res.draw { color: var(--amber); }

/* training plan */
.focus { display: grid; gap: 10px; }
.focus > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.prio { flex: none; width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; transform: rotate(45deg); }
.prio.high { background: var(--red); } .prio.medium { background: var(--amber); } .prio.low { background: var(--cyan); }
.week { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.week > summary { list-style: none; cursor: pointer; padding: 15px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.week > summary::-webkit-details-marker { display: none; }
.week > summary b { font-size: 15px; }
.week > summary small { color: var(--text-2); font-size: 13px; display: block; }
.week[open] > summary { border-bottom: 1px solid var(--line); }
.week .chev { transition: transform .2s; width: 18px; height: 18px; color: var(--text-3); flex: none; }
.week[open] .chev { transform: rotate(90deg); }
.sessions { padding: 14px 16px; display: grid; gap: 14px; }
@media (min-width: 760px) { .sessions { grid-template-columns: 1fr 1fr; } }
.session h5 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--volt); letter-spacing: .02em; }
.scr { display: grid; gap: 10px; }
@media (min-width: 760px) { .scr { grid-template-columns: 1fr 1fr; } }
.scr > div { padding: 14px; border-radius: 16px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.scr .board { display: inline-flex; gap: 8px; align-items: center; font: 700 12px/1 var(--mono); padding: 6px 9px; border-radius: 9px; background: #000; color: var(--volt); margin-bottom: 9px; }
.scr b { display: block; margin-bottom: 4px; }
.scr p { font-size: 13px; color: var(--text-2); }

/* rules */
.pts { display: flex; flex-wrap: wrap; gap: 8px; }
.pt { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.pt b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--volt); color: var(--volt-ink); font: 700 14px/1 var(--mono); }

/* jobs */
.jobs { position: fixed; z-index: 30; right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .jobs { bottom: 24px; right: 24px; } }
.job {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(20px);
  box-shadow: var(--shadow); max-width: 360px; cursor: pointer;
}
.job .orb { width: 28px; height: 28px; border-radius: 50%; flex: none; background: conic-gradient(from 0deg, var(--volt), var(--violet), var(--cyan), var(--volt)); animation: spin 1.6s linear infinite; position: relative; }
.job .orb::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface-solid); }
.job small { display: block; color: var(--text-3); font-weight: 600; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .txt { min-width: 0; }

.working { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(120deg, var(--volt-soft), transparent 60%), var(--surface); }
.working .orb { width: 42px; height: 42px; border-radius: 50%; flex: none; background: conic-gradient(from 0deg, var(--volt), var(--violet), var(--cyan), var(--volt)); animation: spin 1.6s linear infinite; position: relative; }
.working .orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface-solid); }
.working b { display: block; font-size: 15px; }
.working small { color: var(--text-2); font-size: 13px; }
.scan { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; }
.scan i { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, transparent, var(--volt), transparent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* empty */
.empty { text-align: center; padding: 40px 20px; border-radius: 22px; border: 1px dashed var(--line-2); }
.empty .ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--volt-soft); color: var(--volt); }
.empty .ico svg { width: 26px; height: 26px; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--text-2); max-width: 420px; margin: 0 auto 18px; font-size: 14px; }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); animation: fade .2s; }
.sheet {
  width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--line-2);
  border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.9,.3,1);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h3 { font-size: 22px; margin-bottom: 16px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet .actions .btn { flex: 1; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; padding: 22px 24px; } .sheet .grab { display: none; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* toast */
#toast { position: fixed; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translate(-50%, -140%); transition: transform .3s cubic-bezier(.2,.9,.3,1); padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
#toast.on { transform: translate(-50%, 0); }
#toast.err { background: var(--red); color: #fff; }

/* login */
.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 440px; }
.login h1 { font-size: clamp(44px, 12vw, 64px); font-weight: 900; letter-spacing: -.045em; line-height: .95; margin: 18px 0 14px; }
.login h1 em { font-style: normal; color: var(--volt); }
.login .lede { color: var(--text-2); font-size: 16px; margin-bottom: 26px; }
.login .feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 26px 0 0; }
.login .feat div { padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; color: var(--text-2); }
.login .feat svg { width: 18px; height: 18px; color: var(--volt); display: block; margin-bottom: 6px; }
.code-input { font: 700 28px/1 var(--mono) !important; letter-spacing: .3em; text-align: center; }

.candidate { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.candidate .grow { flex: 1; min-width: 0; }
.candidate b { display: block; font-size: 14px; }
.candidate small { color: var(--text-2); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fade-in { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
