/* Layout: sign-in screen, then a slim live-call bar + fixed sidebar (bottom tabs on phones) + one canvas.
   Ink + white; lime only for "now", progress, points and wins. */
:root {
  --bg: #FFFFFF; --ink: #0B0B0C; --ink2: #1A1B1C; --muted: #6B6E66; --faint: #A9ACA3;
  --line: #E7E9E2; --soft: #F5F6F2; --soft2: #EDEFE8;
  --lime: #C6F135; --lime-soft: #F1FCD2; --lime-ink: #3E5A00; --lime-mid: #DDF3A0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --r: 16px; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { background: var(--ink); color: #fff; padding: 44px max(44px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; bottom: -200px; background: radial-gradient(circle, rgba(198,241,53,.22), transparent 62%); }
.auth-art h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.045em; margin: 0; max-width: 12ch; text-wrap: balance; }
.auth-art h1 em { font-style: normal; color: var(--lime); }
.auth-art p { color: rgba(255,255,255,.66); max-width: 40ch; margin: 18px 0 0; font-size: 16px; }
.proof { display: flex; gap: 28px; flex-wrap: wrap; position: relative; z-index: 1; }
.proof div { display: grid; }
.proof b { font-size: 26px; letter-spacing: -0.03em; }
.proof small { color: rgba(255,255,255,.55); font-size: 12.5px; }
.inside { display: grid; gap: 10px; position: relative; z-index: 1; }
.inside span { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.8); font-size: 14.5px; }
.inside i { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); display: inline-grid; place-items: center; flex: none; }
.inside i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px,-1px); }
.auth-form { display: grid; align-content: center; justify-items: center; padding: 44px max(24px, env(safe-area-inset-right, 0px)) 44px 24px; }
.auth-form form { width: min(380px, 100%); display: grid; gap: 14px; }
.auth-form h2 { font-size: 28px; letter-spacing: -0.03em; margin: 0; }
.auth-form p { margin: -6px 0 6px; color: var(--muted); }
.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.field input { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; color: var(--ink); background: var(--bg); }
.field input:focus, textarea:focus, input:focus, select:focus { outline: none; border-color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wide { width: 100%; justify-content: center; }
.fine { font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------- shell ---------- */
.live { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 7px max(16px, env(safe-area-inset-right, 0px)) 7px max(16px, env(safe-area-inset-left, 0px)); flex-wrap: wrap; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ink); z-index: 31; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198,241,53,.18); }
.live b { font-weight: 600; }
.live .m { color: rgba(255,255,255,.62); }
.live button { border: 0; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 3px 11px; }
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100% - 34px); }
.side { position: sticky; top: calc(34px + env(safe-area-inset-top, 0px)); height: calc(100vh - 34px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; padding: 22px 14px 14px max(14px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.brand { padding: 0 10px; display: grid; }
.brand b { font-size: 17px; letter-spacing: -0.035em; line-height: 1.15; }
.brand b i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-left: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.brand span { font-size: 12px; color: var(--muted); }
.searchbtn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 8px 10px; color: var(--muted); font-size: 13.5px; width: 100%; text-align: left; }
.searchbtn kbd { margin-left: auto; font: 11px var(--font); border: 1px solid var(--line); background: var(--bg); border-radius: 5px; padding: 1px 5px; }
.nav { display: grid; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; border-radius: 10px; padding: 9px 10px; font-size: 14.5px; color: var(--muted); text-align: left; }
.nav button:hover { background: var(--soft); color: var(--ink); }
.nav button.on { background: var(--ink); color: #fff; }
.nav button.on svg { color: var(--lime); }
.nav .ai { margin-top: 6px; border: 1px solid var(--lime-mid); background: var(--lime-soft); color: var(--ink); }
.nav .ai:hover { background: var(--lime-mid); }
.nav .ai.on { background: var(--ink); border-color: var(--ink); }
.badge { margin-left: auto; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--soft); }
.me b { display: block; font-size: 14px; }
.me small { color: var(--muted); font-size: 12px; }
.me button { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 4px; }
.me button:hover { color: var(--ink); }

.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; color: var(--ink); position: relative; }
.av.coach { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.lvl { position: absolute; right: -4px; bottom: -3px; background: var(--ink); color: var(--lime); font-size: 9.5px; font-weight: 800; border-radius: 999px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--bg); }
.stack { display: inline-flex; } .stack .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--bg); } .stack .av:first-child { margin-left: 0; }

.main { min-width: 0; padding: 28px max(20px, env(safe-area-inset-right, 0px)) 72px 36px; }
.view { display: grid; gap: 20px; max-width: 1200px; animation: in .35s cubic-bezier(.2,.7,.2,1) both; }
.still { display: grid; gap: 20px; max-width: 1200px; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head h1 { font-size: clamp(26px, 3.3vw, 38px); letter-spacing: -0.035em; line-height: 1.08; margin: 0; text-wrap: balance; }
.head p { margin: 6px 0 0; color: var(--muted); }
.headr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--faint); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.streak { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px 5px 9px; }
.streak svg { color: var(--lime); }

.grid { display: grid; gap: 18px; }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { display: grid; gap: 18px; min-width: 0; align-content: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; background: var(--bg); }
.ph { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ph h2 { font-size: 16px; margin: 0; letter-spacing: -0.01em; }
.lnk { background: none; border: 0; color: var(--muted); font-size: 13.5px; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.lnk:hover { color: var(--ink); }
.k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 14.5px; background: var(--ink); color: #fff; white-space: nowrap; transition: transform .15s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.onink { background: rgba(255,255,255,.1); color: #fff; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--lime); color: var(--ink); white-space: nowrap; }
.tag.ghost { background: var(--soft); color: var(--muted); font-weight: 600; }
.tag.role { background: var(--ink); color: var(--lime); font-size: 10.5px; padding: 1px 7px; }
.muted { color: var(--muted); }

/* build hero */
.build { background: var(--ink); color: #fff; border-radius: 22px; padding: 26px; display: grid; gap: 22px; overflow: hidden; position: relative; }
.build::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(198,241,53,.16), transparent 65%); pointer-events: none; }
.build .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; position: relative; z-index: 1; }
.build .k { color: var(--lime); }
.build h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; margin: 6px 0 4px; line-height: 1.12; text-wrap: balance; }
.build p { margin: 0; color: rgba(255,255,255,.68); max-width: 44em; }
.meta { display: flex; gap: 22px; flex-wrap: wrap; }
.meta div { display: grid; }
.meta b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.meta small { color: rgba(255,255,255,.55); font-size: 12px; }
.track { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; position: relative; z-index: 1; }
.st { display: grid; gap: 8px; min-width: 0; }
.st .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.st .bar span { display: block; height: 100%; background: #fff; }
.st.now .bar span { background: var(--lime); }
.st b { font-size: 12px; font-weight: 600; line-height: 1.25; color: rgba(255,255,255,.5); }
.st.done b { color: rgba(255,255,255,.85); }
.st.now b { color: var(--lime); }
.st small { font-size: 11px; color: rgba(255,255,255,.4); }
.donext { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px 18px; position: relative; z-index: 1; }
.donext b { display: block; font-size: 16px; }
.donext small { color: rgba(255,255,255,.6); }
.ideabar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 8px; max-width: 280px; }
.ideabar span { display: block; height: 100%; background: var(--lime); }

.court { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--soft); border: 0; text-align: left; width: 100%; }
.item:hover { background: var(--soft2); }
.item .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); }
.item b { font-weight: 600; font-size: 14px; display: block; }
.item small { color: var(--muted); font-size: 12.5px; }
.sla { font-size: 12px; font-weight: 600; color: var(--lime-ink); background: var(--lime-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* accountability */
.commit { display: grid; gap: 6px; }
.cm { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; border: 0; background: none; text-align: left; width: 100%; }
.cm:hover { background: var(--soft); }
.box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--faint); flex: none; margin-top: 1px; display: grid; place-items: center; }
.cm.done .box { background: var(--lime); border-color: var(--lime); }
.cm.done .box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px,-1px); }
.cm.done .tt { color: var(--muted); text-decoration: line-through; }
.cm small { display: block; color: var(--muted); font-size: 12.5px; }
.checkin { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; gap: 10px; }
.checkin p { margin: 0; color: rgba(255,255,255,.7); font-size: 13.5px; }
.rate { display: flex; gap: 6px; }
.rate button { flex: 1; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; border-radius: 10px; padding: 8px 0; font-weight: 700; }
.rate button.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.checkin textarea { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 10px; padding: 10px; resize: none; min-height: 60px; }
.hours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 110px; position: relative; margin-top: 6px; }
.hours .b { display: grid; justify-items: center; gap: 6px; height: 100%; align-content: end; }
.hours .b span { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: var(--ink); }
.hours .b.today span { background: var(--lime); }
.hours .b small { font-size: 11px; color: var(--muted); }
.target { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--faint); }
.target span { position: absolute; right: 0; top: -18px; font-size: 11px; color: var(--muted); background: var(--bg); padding-left: 4px; }
.partner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }

.callcard { display: grid; gap: 14px; }
.when { display: flex; gap: 14px; align-items: center; }
.datebox { width: 56px; flex: none; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--line); }
.datebox span { display: block; background: var(--ink); color: var(--lime); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 0; }
.datebox b { display: block; font-size: 22px; padding: 3px 0 5px; }
.count { display: flex; gap: 8px; }
.count div { flex: 1; background: var(--soft); border-radius: 10px; padding: 8px 4px; text-align: center; }
.count b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.count small { font-size: 11px; color: var(--muted); }
.aicta { border-radius: var(--r); padding: 20px; background: var(--lime-soft); border: 1px solid var(--lime-mid); display: grid; gap: 12px; }
.aicta h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.aicta p { margin: 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qchip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 12px; font-size: 13px; text-align: left; }
.qchip:hover { border-color: var(--ink); }
.preview { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.preview p { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; }
.win { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.win:first-of-type { border-top: 0; padding-top: 0; }
.win p { margin: 2px 0 0; font-size: 14px; }
.minilb { display: grid; gap: 8px; }
.minilb div { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.minilb .rk { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.minilb .pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.minilb .me-row { background: var(--lime-soft); border-radius: 10px; padding: 6px; margin: 0 -6px; }

/* course */
.cstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cstat { background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.cstat b { display: block; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cstat span { font-size: 13px; color: var(--muted); }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mod { border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: left; background: var(--bg); display: grid; gap: 14px; align-content: start; }
.mod:hover { border-color: var(--ink); }
.mod .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--soft); }
.mod.done .n { background: var(--ink); color: var(--lime); }
.mod.now { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mod.now .n { background: var(--lime); }
.mod.gated { background: var(--soft); }
.mod.gated .n { color: var(--faint); background: var(--bg); }
.mod b { font-size: 16.5px; letter-spacing: -0.01em; display: block; }
.mod small { color: var(--muted); font-size: 13px; }
.mod .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mbar { height: 5px; border-radius: 3px; background: var(--soft2); overflow: hidden; }
.mbar span { display: block; height: 100%; background: var(--ink); }
.mod.now .mbar span { background: var(--lime); }
.gate { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.lessons { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.les { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); text-align: left; }
.les:last-child { border-bottom: 0; }
.les:hover { background: var(--soft); }
.dotst { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; flex: none; }
.les.done .dotst, .dotst.done { background: var(--ink); border-color: var(--ink); }
.les.done .dotst::after, .dotst.done::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg) translate(1px,-1px); }
.les.cur .dotst { background: var(--lime); border-color: var(--ink); }
.les b { font-weight: 500; }
.les .num { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.les .res { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.player { aspect-ratio: 16 / 9; border-radius: 18px; background: radial-gradient(110% 120% at 85% 0%, #2B3313 0%, #111210 58%); position: relative; overflow: hidden; display: grid; place-items: center; max-width: 100%; }
.player .pt { position: absolute; left: 22px; top: 18px; right: 22px; color: #fff; }
.player .pt small { color: var(--lime); font-weight: 700; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.player .pt b { display: block; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -0.02em; margin-top: 4px; }
.bigplay { width: 74px; height: 74px; border-radius: 50%; border: 0; background: var(--lime); display: grid; place-items: center; transition: transform .15s; }
.bigplay:hover { transform: scale(1.06); }
.ctrl { position: absolute; inset: auto 0 0 0; padding: 14px 20px; display: flex; gap: 14px; align-items: center; color: #fff; font-size: 12.5px; background: linear-gradient(transparent, rgba(0,0,0,.55)); font-variant-numeric: tabular-nums; }
.scrub { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.scrub span { display: block; height: 100%; width: 0; background: var(--lime); }
.phold { position: absolute; right: 20px; bottom: 44px; font-size: 11.5px; color: rgba(255,255,255,.5); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.points { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.points li::marker { color: var(--lime-ink); font-weight: 700; }
.action { background: var(--lime-soft); border: 1px solid var(--lime-mid); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.action ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.file { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.file b { font-size: 14px; font-weight: 600; }
.file small { color: var(--muted); }
.transcript { color: var(--muted); font-size: 14.5px; max-height: 260px; overflow-y: auto; display: grid; gap: 10px; }
.transcript p { margin: 0; }
textarea.ask { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 86px; resize: vertical; background: var(--bg); }
.side-les { display: grid; gap: 2px; max-height: 70vh; overflow-y: auto; }
.side-les button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 8px; border-radius: 10px; font-size: 13.5px; }
.side-les button:hover { background: var(--soft); }
.side-les button.on { background: var(--soft); font-weight: 600; }
.side-les .dotst { width: 18px; height: 18px; }

/* community */
.chat { display: grid; grid-template-columns: 250px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; height: calc(100vh - 190px); min-height: 540px; }
.chans { background: var(--soft); padding: 14px 10px; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.chans .k { padding: 12px 10px 6px; }
.chans button { display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 8px; padding: 7px 10px; font-size: 14px; color: var(--muted); text-align: left; width: 100%; }
.chans button:hover { background: var(--soft2); color: var(--ink); }
.chans button.on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chans button.unread { color: var(--ink); font-weight: 600; }
.chans .priv { background: var(--ink); color: #fff; margin: 4px 0 6px; padding: 10px; }
.chans .priv:hover { background: var(--ink2); color: #fff; }
.chans .priv.on { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--lime); }
.chans .priv small { display: block; font-weight: 400; font-size: 11.5px; color: rgba(255,255,255,.6); }
.keep { margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--bg); font-size: 12px; color: var(--muted); }
.feed { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.chead { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chead b { font-size: 15.5px; }
.chead small { display: block; color: var(--muted); font-size: 12.5px; }
.msgs { overflow-y: auto; padding: 8px 18px 14px; display: flex; flex-direction: column; gap: 2px; }
.day { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 4px; display: flex; gap: 12px; align-items: center; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pin { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--lime-soft); font-size: 13.5px; }
.msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 8px; border-radius: 10px; }
.msg:hover { background: var(--soft); }
.who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.who b { font-size: 14.5px; }
.who small { color: var(--muted); font-size: 12px; }
.body { margin: 2px 0 0; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.attach { margin-top: 8px; display: inline-flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; background: var(--bg); }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.reacts:empty { display: none; }
.reacts button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 1px 9px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.reacts button.mine { background: var(--lime-soft); border-color: #CDEB7A; }
.thread { margin-top: 6px; border: 0; background: none; padding: 0; color: var(--lime-ink); font-weight: 600; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.replies { margin-top: 8px; border-left: 2px solid var(--line); padding-left: 12px; display: grid; gap: 2px; }
.typing { font-size: 12.5px; color: var(--muted); padding: 0 26px 4px; min-height: 22px; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; min-height: 46px; max-height: 140px; background: var(--bg); }
.chanpick { display: none; }
.readonly { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); background: var(--soft); }

/* Jamal AI */
.jai { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.jchat { border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100vh - 200px); min-height: 520px; overflow: hidden; }
.jhead { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.jhead b { font-size: 15.5px; display: block; }
.jhead small { color: var(--muted); font-size: 12.5px; }
.jface { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 13px; position: relative; flex: none; }
.jface::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--bg); }
.jmsgs { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bub { max-width: 78%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.bub.you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; position: relative; overflow: visible; }
.bub.ai { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
.jhead small.jtyping { color: var(--lime-ink); font-weight: 600; }
.jgroup { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.jgroup .bub.ai { max-width: 78%; }
.jgroup .bub.ai:not(:last-of-type) { border-bottom-left-radius: 18px; }
.rcpt { align-self: flex-end; margin-top: -10px; font-size: 11.5px; color: var(--muted); }
.bub.dots { display: inline-flex; gap: 4px; align-items: center; padding: 15px 16px; }
.bub.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: jdot 1.2s infinite ease-in-out; }
.bub.dots i:nth-child(2) { animation-delay: .15s; }
.bub.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes jdot { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.bub.pop { animation: jpop .22s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes jpop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bub.dots i, .bub.pop { animation: none; } }
.bub .src { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.jwelcome { display: grid; gap: 14px; justify-items: start; padding: 6px 0; }
.jwelcome h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.jwelcome p { margin: 0; color: var(--muted); max-width: 52ch; }
.jform { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-end; }
.jform textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; min-height: 46px; max-height: 140px; background: var(--bg); }
.jnote { font-size: 12px; color: var(--muted); padding: 0 18px 10px; }

/* leaderboard */
.lbhero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; background: var(--ink); color: #fff; border-radius: 22px; padding: 24px; }
.lbhero .k { color: var(--lime); }
.lbhero h2 { margin: 4px 0; font-size: 26px; letter-spacing: -0.03em; }
.lbhero p { margin: 0; color: rgba(255,255,255,.65); }
.lvring { position: relative; width: 96px; height: 96px; }
.lvring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.lvring small { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: .08em; }
.rankbig { text-align: right; }
.rankbig b { display: block; font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.rankbig small { color: rgba(255,255,255,.55); }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.lb { display: grid; }
.lbr { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.lbr:last-child { border-bottom: 0; }
.lbr .rk { font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.lbr.top .rk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); justify-self: center; }
.lbr.you { background: var(--lime-soft); border-radius: 12px; border-bottom-color: transparent; }
.lbr b { font-size: 14.5px; }
.lbr small { display: block; color: var(--muted); font-size: 12.5px; }
.lbr .pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.ladder { display: grid; gap: 6px; }
.rung { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; }
.rung i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--soft); color: var(--faint); }
.rung.got i { background: var(--ink); color: var(--lime); }
.rung.cur { background: var(--lime-soft); }
.rung small { color: var(--muted); font-size: 12px; }
.rules { display: grid; gap: 8px; }
.rules div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rules b { font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.heat .wk { display: grid; gap: 4px; }
.heat span { aspect-ratio: 1; border-radius: 3px; background: var(--soft2); }
.heat span.l1 { background: #E3F7B0; } .heat span.l2 { background: #C6F135; } .heat span.l3 { background: #8DB31A; } .heat span.l4 { background: #3E5A00; }

/* calls + booking */
.callhero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: 22px; padding: 26px; }
.callhero .k { color: var(--lime); }
.callhero h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; margin: 6px 0; }
.callhero p { margin: 0; color: rgba(255,255,255,.68); }
.zones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.zones span { background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.qlist { display: grid; gap: 8px; }
.q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--soft); border-radius: 12px; font-size: 14px; }
.vote { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 4px 8px; font-size: 12.5px; font-weight: 700; display: grid; justify-items: center; line-height: 1.1; min-width: 40px; }
.vote.on { background: var(--lime); border-color: var(--lime); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 13px; font-size: 13px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rec { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; background: var(--bg); padding: 0; display: grid; }
.rec:hover { border-color: var(--ink); }
.rec .rt { aspect-ratio: 16 / 9; background: radial-gradient(110% 120% at 85% 0%, #2B3313 0%, #111210 60%); position: relative; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; max-width: 100%; }
.rec .rt b { font-size: 15px; line-height: 1.25; }
.rec .rt small { font-size: 11px; color: var(--lime); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.rec .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); border-radius: 6px; padding: 1px 6px; font-size: 11.5px; }
.rec .rb { padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.chapters { display: grid; gap: 2px; }
.chapters button { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px; border: 0; background: none; text-align: left; padding: 8px; border-radius: 8px; font-size: 14px; }
.chapters button:hover { background: var(--soft); }
.chapters span { color: var(--lime-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.search { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-width: 0; flex: 1; max-width: 300px; background: var(--bg); }
.coachpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp { border: 1px solid var(--line); background: var(--bg); border-radius: 16px; padding: 16px; text-align: left; display: grid; gap: 10px; }
.cp:hover { border-color: var(--ink); }
.cp.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cp b { font-size: 15px; display: block; }
.cp small { color: var(--muted); font-size: 12.5px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dayb { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 10px 4px; display: grid; justify-items: center; gap: 2px; }
.dayb small { font-size: 11.5px; color: var(--muted); }
.dayb b { font-size: 18px; }
.dayb.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dayb.on small { color: rgba(255,255,255,.6); }
.dayb:disabled { opacity: .35; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--ink); }
.slot.on { background: var(--lime); border-color: var(--lime); }
.booked { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--lime-soft); border: 1px solid var(--lime-mid); }

/* tools */
.tool { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tool.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool.dark p { color: rgba(255,255,255,.68); }
.tool h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; }
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.calc input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 16px; width: 100%; background: var(--bg); font-variant-numeric: tabular-nums; }
.out { background: var(--lime-soft); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.out b { font-size: 20px; }
.dcc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; opacity: .55; }
.dcc div { background: var(--soft); border-radius: 10px; padding: 10px; }
.dcc b { display: block; font-size: 16px; }
.dcc small { font-size: 11.5px; color: var(--muted); }

/* ⌘K + sheet + toast */
.cmdk { position: fixed; inset: 0; background: rgba(11,11,12,.35); z-index: 60; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.cmdbox { width: min(620px, 100%); background: var(--bg); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
.cmdbox input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font-size: 17px; background: var(--bg); }
.cmdres { max-height: 50vh; overflow-y: auto; padding: 8px; display: grid; gap: 2px; }
.cmdres button { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; border: 0; background: none; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.cmdres button.sel, .cmdres button:hover { background: var(--soft); }
.cmdres small { color: var(--muted); font-size: 12px; }
.cmdres .kk { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.sheet { position: fixed; inset: 0; z-index: 55; background: rgba(11,11,12,.35); display: grid; align-items: end; }
.sheet div { background: var(--bg); border-radius: 20px 20px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 4px; }
.sheet button { display: flex; gap: 12px; align-items: center; border: 0; background: none; padding: 14px 12px; border-radius: 12px; font-size: 16px; text-align: left; }
.sheet button:hover { background: var(--soft); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 70; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }
.tabbar { display: none; }

@media (max-width: 1120px) {
  .g-main, .jai { grid-template-columns: 1fr; }
  .track { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 14px; }
  .jside { display: none; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 32px max(20px, env(safe-area-inset-left, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); gap: 26px; }
  .auth-art .inside { display: none; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; background: var(--bg); border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); z-index: 40; }
  .tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 6px 0; position: relative; }
  .tabbar button.on { color: var(--ink); font-weight: 600; }
  .tabbar .badge { position: absolute; top: 0; left: 56%; font-size: 10px; line-height: 16px; padding: 0 5px; }
  .track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .donext { grid-template-columns: 1fr; }
  .g-2, .g-3, .cstats, .coachpick { grid-template-columns: 1fr; }
  .callhero, .lbhero { grid-template-columns: 1fr; }
  .rankbig { text-align: left; }
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 330px - env(safe-area-inset-bottom, 0px)); min-height: 420px; }
  .jchat { height: calc(100dvh - 300px - env(safe-area-inset-bottom, 0px)); min-height: 440px; }
  .chans { display: none; }
  .chanpick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--soft); }
  .chanpick button { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: 13px; white-space: nowrap; }
  .chanpick button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
  .calc, .dcc { grid-template-columns: 1fr 1fr; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .live { font-size: 12px; gap: 8px; }
  .live .m { display: none; }
  .les { grid-template-columns: auto minmax(0, 1fr); }
  .les .res { display: none; }
  .bub { max-width: 90%; }
}

/* ---------- live version additions ---------- */
.player.real { display: block; background: #000; }
.player.real .phold { display: none; }
.player.embed { aspect-ratio: auto; min-height: 200px; display: block; background: #000; }
.player.embed > * { max-width: 100%; }
.toast.bad { background: #B42318; }
.setupmsg { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.setupmsg div { max-width: 420px; display: grid; gap: 10px; }
.upsell { background: var(--ink); color: #fff; border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-self: stretch; }
.upsell h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.upsell p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.upsell .price { color: var(--lime); font-weight: 700; }
.trialnote { font-size: 12.5px; color: var(--muted); padding: 0 18px 6px; }
.thread-reply { display: flex; gap: 8px; margin-top: 8px; }
.thread-reply input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.reacts .add { opacity: .55; }
.reacts .add:hover { opacity: 1; }
.emojis { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px; }
.emojis button { border: 0; background: none; font-size: 16px; padding: 2px 4px; border-radius: 8px; }
.emojis button:hover { background: var(--soft); }
.hoursin { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.hoursin input { width: 80px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.cadd { display: flex; gap: 8px; margin-top: 10px; }
.cadd input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; }
.cm .del { margin-left: auto; opacity: 0; border: 0; background: none; color: var(--muted); font-size: 16px; }
.cm:hover .del { opacity: 1; }
.calframe { width: 100%; min-height: 720px; border: 0; border-radius: 16px; background: #fff; }
.profileform { display: grid; gap: 12px; max-width: 460px; }
.profileform input { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- v2: composer, attachments, voice notes, pins, questions ---------- */
.composer { display: grid; gap: 8px; align-items: stretch; }
.composer.drop { outline: 2px dashed var(--lime-ink); outline-offset: -6px; }
.crow { display: flex; gap: 8px; align-items: flex-end; }
.ibtn { width: 40px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--muted); flex: none; }
.ibtn:hover { color: var(--ink); border-color: var(--ink); }
.qtoggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; padding: 0 4px; height: 46px; }
.pending:empty { display: none; }
.pending { display: grid; gap: 6px; }
.pend { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--soft); border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.pend span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pend.bad { background: #FEE4E2; color: #B42318; }
.pend button { border: 0; background: none; font-size: 16px; color: var(--muted); }
.prog { width: 110px; height: 6px; border-radius: 99px; background: var(--soft2); overflow: hidden; display: block; }
.prog i { display: block; height: 100%; background: var(--ink); transition: width .2s; }
.recbar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; }
.recbar .dot { width: 9px; height: 9px; border-radius: 50%; background: #F04438; animation: pulse 1s infinite alternate; flex: none; }
.recbar #recText { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.7); }
@keyframes pulse { to { opacity: .3; } }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.att-img img { display: block; max-width: min(320px, 100%); max-height: 260px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); min-width: 80px; min-height: 60px; object-fit: cover; }
.att-video { max-width: min(420px, 100%); border-radius: 12px; background: #000; }
.att-file { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; text-decoration: none; color: inherit; max-width: 320px; }
.att-file:hover { border-color: var(--ink); }
.att-file b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.att-file small { color: var(--muted); font-size: 12px; }
.att-voice { display: grid; gap: 4px; background: var(--soft); border-radius: 14px; padding: 8px 10px; max-width: 360px; }
.att-voice audio { width: 100%; height: 36px; }
.att-voice details { font-size: 13.5px; }
.att-voice summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.att-voice p { margin: 4px 0 0; }
.msg.pinned { background: var(--lime-soft); }
.tag.qa { background: #FDF1D6; color: #8A5A00; }
.tag.qa.done { background: var(--lime-soft); color: var(--lime-ink); }
.chead-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.chead-tools .chip { padding: 4px 10px; font-size: 12.5px; }

/* ---------- v2: course sections ---------- */
.track-sec { margin-top: 26px; }
.track-sec .ph h2 { font-size: 20px; letter-spacing: -0.02em; }
.unlock { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; }
.unlock h2 { margin: 4px 0; font-size: 21px; letter-spacing: -0.02em; }
.unlock p { margin: 0; color: rgba(255,255,255,.7); max-width: 56ch; font-size: 14px; }
.unlock .k { color: var(--lime); }
.unlock-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.unlock-cta b { font-size: 17px; }
.track-sec.locked .mod { opacity: .75; cursor: default; }

/* ---------- v2: tools ---------- */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.toolcard { text-align: left; background: var(--bg); text-decoration: none; color: inherit; cursor: pointer; }
.toolcard:hover { border-color: var(--ink); }
.toolcard h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.toolcard p { margin: 0; color: var(--muted); font-size: 14px; }
.tool.dark.toolcard p { color: rgba(255,255,255,.7); }
.tool-grid { align-items: start; }
.ttable { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.ttable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 6px; white-space: nowrap; }
.ttable td { padding: 3px 4px; vertical-align: middle; }
.ttable input, .ttable select, .trow input, .trow select, .three input, .formgrid input, .formgrid textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 14px; background: var(--bg); min-width: 0; }
.ttable td b { font-variant-numeric: tabular-nums; }
.scrollx { overflow-x: auto; }
.scrollx .ttable input { min-width: 120px; }
.x { border: 0; background: none; color: var(--faint); font-size: 18px; padding: 0 4px; }
.x:hover { color: #B42318; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.trow small { display: block; color: var(--muted); font-size: 12px; }
.kv2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.kv2 b, .kv3 b { font-variant-numeric: tabular-nums; text-align: right; }
.kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr) auto); gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
b.lime { background: var(--lime); padding: 1px 8px; border-radius: 8px; }
.big { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; gap: 2px; }
.big span, .big small { color: rgba(255,255,255,.65); font-size: 13px; }
.big b { font-size: 32px; letter-spacing: -0.03em; color: var(--lime); }
.p3 { margin-top: 14px; }
.p3grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.titlein { font-size: 17px !important; font-weight: 700; border: 0 !important; padding: 0 !important; width: 100%; }
.verdict { font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 12px; background: var(--soft); white-space: nowrap; }
.verdict[data-v="PASS"] { background: var(--lime); }
.verdict[data-v="FAIL"] { background: #FEE4E2; color: #B42318; }
.why { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.checks { display: grid; gap: 2px; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; padding: 9px 6px; border-radius: 10px; font-size: 14.5px; cursor: pointer; }
.checkrow:hover { background: var(--soft); }
.checkrow input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.checkrow input:checked + span { color: var(--muted); text-decoration: line-through; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field2 { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field2.wide { grid-column: 1 / -1; }
.formgrid textarea { resize: vertical; font-family: inherit; }
.imgplan { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 14px 0; }
.imgcard .ph { align-items: center; }
.onimg { background: var(--soft); border-radius: 12px; padding: 12px; display: grid; gap: 4px; margin-bottom: 8px; }
.onimg b { font-size: 17px; letter-spacing: -0.01em; }
.onimg span { font-size: 13px; color: var(--muted); }
.prompt { white-space: pre-wrap; font: 12.5px/1.5 ui-monospace, Menlo, monospace; background: var(--soft); padding: 10px; border-radius: 10px; margin: 6px 0 0; }
.imgcard details summary, .aplus details summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 8px; }
.aplus { border-top: 1px solid var(--line); padding: 12px 0; }
.aplus:first-of-type { border-top: 0; padding-top: 0; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 760px) {
  .formgrid { grid-template-columns: 1fr; }
  .trow { grid-template-columns: minmax(0, 1fr) 120px; }
  .kv3 { grid-template-columns: minmax(0, 1fr) auto; }
  .qtoggle { font-size: 14px; padding: 0; gap: 3px; }
  .qt-l { display: none; }
  .qt-s { display: inline !important; font-weight: 800; }
  .crow { gap: 6px; }
  .ibtn { width: 36px; }
  .unlock { padding: 16px; }
}

.qt-s { display: none; }
.crow textarea { min-width: 0; width: 100%; }
@media (max-width: 760px) { .crow .btn[type="submit"] { padding: 11px 14px; } .composer { padding: 10px; } }
.crow textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- v3: formatting, team notes, coach desk, student file ---------- */
.body b { font-weight: 700; }
.body code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.body pre.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0; white-space: pre-wrap; overflow-x: auto; }
.body .quote { display: block; border-left: 3px solid var(--faint); padding-left: 10px; color: var(--muted); }
.body .mention { background: var(--lime-soft); color: var(--lime-ink); border-radius: 5px; padding: 0 3px; font-weight: 600; }
.body a { color: #1D5FD1; text-decoration: none; }
.body a:hover { text-decoration: underline; }
.ctools { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.ctools button { border: 0; background: none; color: var(--muted); border-radius: 7px; padding: 4px 8px; font-size: 13px; min-height: 28px; }
.ctools button:hover { background: var(--soft); color: var(--ink); }
.ctools .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.ctools .ai, .ibtn.ai, .btn.ai { color: var(--lime-ink); }
.ctools .ai { background: var(--lime-soft); font-weight: 600; }
.ctools .ai:disabled { opacity: .6; }
.note-t { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); padding: 4px 8px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.note-t input { margin: 0; }
.note-t:has(input:checked) { background: #FDF1D6; color: #8A5A00; font-weight: 600; }
.composer.noting textarea { background: #FFFBF0; border-color: #E9C46A; }
.composer textarea.busy { opacity: .55; }
.linkbar { display: flex; gap: 6px; flex-wrap: wrap; background: var(--soft); border-radius: 12px; padding: 8px; }
.linkbar input { flex: 1 1 160px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 14px; min-width: 0; }
.savedpop { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 12px 32px rgba(0,0,0,.08); max-height: 280px; overflow-y: auto; padding: 6px; }
.sphead { display: flex; gap: 8px; align-items: center; padding: 4px; position: sticky; top: -6px; background: var(--bg); }
.sphead input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 14px; }
#savedList button { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: none; border-radius: 9px; padding: 8px 10px; }
#savedList button:hover { background: var(--soft); }
#savedList small { color: var(--muted); font-size: 12.5px; }
.msg.internal { background: #FFFBF0; box-shadow: inset 3px 0 0 #E9C46A; }
.tag.note { background: #FDF1D6; color: #8A5A00; }
.msg.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--lime-mid); } to { background: transparent; } }
.chip.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.thread-reply { align-items: flex-end; flex-wrap: wrap; }
.thread-reply textarea { flex: 1 1 220px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 14px; resize: none; min-height: 38px; max-height: 160px; min-width: 0; }
.ibtn.sm { width: 36px; height: 38px; }

.dstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dstat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; text-decoration: none; color: inherit; }
.dstat b { font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dstat small { color: var(--muted); font-size: 12.5px; }
.dstat.warn { border-color: #F4B4AE; background: #FEF3F2; }
.dstat.warn b { color: #B42318; }
.dstat.link { background: var(--ink); color: #fff; border-color: var(--ink); }
.dstat.link small { color: rgba(255,255,255,.7); }
.dstat.link b { color: var(--lime); }
.chip small { background: var(--soft2); color: var(--ink); border-radius: 999px; padding: 0 6px; margin-left: 3px; font-size: 11.5px; }
.chip.on small { background: rgba(255,255,255,.18); color: #fff; }
.queue { display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.qtop { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.qtop .sla { margin-left: auto; }
.qtop small { font-size: 12.5px; }
.qmain p { margin: 4px 0 10px; font-size: 14px; overflow-wrap: anywhere; }
.qact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sla.soon { background: #FDF1D6; color: #8A5A00; }
.sla.late { background: #FEE4E2; color: #B42318; }
select.mini { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; background: var(--bg); color: var(--ink); max-width: 160px; }
.empty-state { text-align: center; padding: 36px 20px; }
.empty-state p { margin: 6px 0 0; }
.dtools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.dtools input { flex: 1 1 220px; max-width: 320px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
table.roster { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.roster th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roster td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.roster tr:last-child td { border-bottom: 0; }
.roster .who { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 0; text-align: left; }
.roster .who b { display: block; font-weight: 600; }
.roster .who small { color: var(--muted); font-size: 12px; }
.flags { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0 0 40px; }
.flag { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; background: var(--soft2); color: var(--muted); }
.flag.quiet { background: #FDF1D6; color: #8A5A00; }
.flag.wait, .flag.low { background: #FEE4E2; color: #B42318; }
.pbar { height: 6px; width: 90px; background: var(--soft2); border-radius: 999px; overflow: hidden; }
.pbar.wide { width: 100%; }
.pbar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.panel.saved .body { font-size: 14px; }

.scrim { position: fixed; inset: 0; background: rgba(11,11,12,.32); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--bg); z-index: 61; overflow-y: auto; padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; box-shadow: -20px 0 60px rgba(0,0,0,.14); }
.drawer .x { position: absolute; top: 16px; right: 16px; border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.drawer h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.drawer .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer .field select.mini { max-width: none; width: 100%; border-radius: 10px; padding: 9px 10px; }
.dhead { display: flex; gap: 12px; align-items: center; padding-right: 40px; }
.av.lg { width: 48px; height: 48px; font-size: 15px; }
.dsec { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.dsec h3 { margin: 0 0 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dsec p { margin: 0; font-size: 14px; }
.clist { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.clist .done { color: var(--muted); text-decoration: line-through; }
.cnform { display: grid; gap: 8px; }
.cnform textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.cnform .btn { justify-self: start; }
.cnote { background: #FFFBF0; border: 1px solid #F3E2B5; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; margin-top: 8px; }
.cnote p { margin: 0; font-size: 14px; white-space: pre-wrap; }
@media (max-width: 760px) {
  .ctools button { padding: 4px 6px; }
  .drawer .g2 { grid-template-columns: 1fr; }
  .qtop .sla { margin-left: 0; }
}
@media (max-width: 760px) {
  .chead { flex-wrap: wrap; gap: 8px; }
  .chead-tools { width: 100%; }
}
