/* ============================================================
   The Gym — sales rehearsal. Dark "call-room" product UI.
   ============================================================ */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* color (OKLCH) */
  --bg: oklch(0.165 0 0);
  --surface: oklch(0.205 0.004 80);
  --surface-2: oklch(0.245 0.006 80);
  --surface-3: oklch(0.285 0.007 80);
  --line: oklch(0.305 0.006 80);
  --line-2: oklch(0.38 0.008 80);
  --ink: oklch(0.965 0.004 80);
  --muted: oklch(0.755 0.012 80);
  --faint: oklch(0.64 0.012 80);
  --primary: oklch(0.80 0.15 80);
  --primary-2: oklch(0.86 0.13 82);
  --primary-dim: oklch(0.80 0.15 80 / 0.14);
  --on-primary: oklch(0.21 0.045 80);
  --success: oklch(0.76 0.15 150);
  --warn: oklch(0.83 0.15 75);
  --danger: oklch(0.68 0.20 25);
  --client: oklch(0.74 0.10 230);
  --influencer: oklch(0.72 0.16 310);
  --automation: oklch(0.76 0.13 150);
  --live_prospect: oklch(0.80 0.15 70); /* warm amber — real scraped leads */

  /* radius / shadow / motion */
  --r-sm: 7px;
  --r: 11px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 1px 0 oklch(1 0 0 / 0.03) inset, 0 12px 32px -12px oklch(0 0 0 / 0.55);
  --shadow-lg: 0 24px 64px -20px oklch(0 0 0 / 0.7);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.2s var(--ease);

  /* z-scale */
  --z-sticky: 10;
  --z-dialog-back: 40;
  --z-dialog: 50;
  --z-toast: 60;

  --rail-w: 312px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.018em; line-height: 1.2; text-wrap: balance; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary-dim); color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }

/* ============================ shell ============================ */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  height: 100dvh;
  overflow: hidden;
}
.railscrim { display: none; }

/* ============================ rail ============================ */
.rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.rail__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 14px;
}
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: radial-gradient(120% 120% at 30% 20%, var(--primary-2), var(--primary) 55%, oklch(0.62 0.15 70));
  color: var(--on-primary);
  font-weight: 800;
  box-shadow: 0 6px 18px -6px var(--primary-dim);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font-size: 15px; letter-spacing: -0.02em; }
.brand__txt span { font-size: 11.5px; color: var(--faint); }

.rail__controls { padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 10px; }

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 8px; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; font-weight: 550; transition: var(--t);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow); }

.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 15px; height: 15px; }
.search input {
  width: 100%; padding: 9px 11px 9px 32px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  transition: var(--t); font-size: 13px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--line-2); outline: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-2); }
.btn--ghost { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn--quiet { background: transparent; color: var(--muted); }
.btn--quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn--danger { background: transparent; border-color: oklch(0.45 0.12 25); color: var(--danger); }
.btn--danger:hover { background: oklch(0.66 0.20 25 / 0.12); }
.btn--lg { padding: 12px 20px; font-size: 14px; border-radius: var(--r-lg); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
/* deep-link cue: highlight the button the ping pointed at (voice vs text) without auto-starting */
.btn--cue { animation: btncue 1.1s var(--ease) 3; }
@keyframes btncue { 50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--primary) 35%, transparent); } }

.rail__new { width: 100%; }

/* roster */
.roster { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 14px; }
.roster__group { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--faint); font-weight: 600; padding: 14px 8px 6px; }
.prow {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r); cursor: pointer;
  border: 1px solid transparent; transition: background var(--t), border-color var(--t);
}
.prow:hover { background: var(--surface-2); }
.prow[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-2); }
.prow[aria-selected="true"] .prow__name { color: var(--primary); }
.avatar {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: 12.5px; color: var(--ink);
  background: var(--surface-3); border: 1px solid var(--line-2);
}
.avatar--client { background: oklch(0.74 0.10 230 / 0.18); border-color: oklch(0.74 0.10 230 / 0.4); color: var(--client); }
.avatar--influencer { background: oklch(0.72 0.16 310 / 0.16); border-color: oklch(0.72 0.16 310 / 0.4); color: var(--influencer); }
.avatar--automation { background: oklch(0.78 0.13 150 / 0.15); border-color: oklch(0.78 0.13 150 / 0.4); color: var(--automation); }
.avatar--live_prospect { background: oklch(0.80 0.15 70 / 0.16); border-color: oklch(0.80 0.15 70 / 0.42); color: var(--live_prospect); }
.prow__main { min-width: 0; }
.prow__name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow__arch { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* difficulty meter */
.meter { display: inline-flex; gap: 2px; align-items: center; }
.meter i { width: 3px; height: 11px; border-radius: 2px; background: var(--line-2); display: block; }
.meter[data-d="1"] i:nth-child(-n+1),
.meter[data-d="2"] i:nth-child(-n+2),
.meter[data-d="3"] i:nth-child(-n+3),
.meter[data-d="4"] i:nth-child(-n+4),
.meter[data-d="5"] i:nth-child(-n+5) { background: var(--lvl, var(--muted)); }
.meter[data-d="1"] { --lvl: var(--success); }
.meter[data-d="2"] { --lvl: oklch(0.80 0.14 120); }
.meter[data-d="3"] { --lvl: var(--warn); }
.meter[data-d="4"] { --lvl: oklch(0.74 0.17 50); }
.meter[data-d="5"] { --lvl: var(--danger); }

.rail__status {
  border-top: 1px solid var(--line); padding: 10px 16px;
  font-size: 11px; color: var(--faint); display: flex; gap: 12px; flex-wrap: wrap;
}
.rail__status b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.dotlive { width: 6px; height: 6px; border-radius: 99px; background: var(--success); display: inline-block; margin-right: 5px; vertical-align: middle; }

/* ============================ stage ============================ */
.stage { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }

/* welcome */
.welcome { align-items: center; justify-content: center; text-align: center; padding: 40px; gap: 8px; }
.welcome__glyph { font-size: 40px; margin-bottom: 6px; filter: saturate(1.1); }
.welcome h1 { font-size: 26px; }
.welcome p { color: var(--muted); max-width: 46ch; }
.welcome__hint { margin-top: 18px; font-size: 12.5px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.kbd { font-size: 11px; padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

/* brief / dossier */
.brief { overflow-y: auto; padding: 40px clamp(24px, 6vw, 72px); }
.brief__inner { max-width: 720px; margin: 0 auto; width: 100%; }
.brief__top { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.brief .avatar { width: 58px; height: 58px; border-radius: 16px; font-size: 22px; }
.brief h1 { font-size: 28px; }
.brief__arch { color: var(--muted); font-size: 14px; margin-top: 3px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 99px; border: 1px solid; letter-spacing: 0.01em; }
.tag--client { color: var(--client); border-color: oklch(0.74 0.10 230 / 0.45); background: oklch(0.74 0.10 230 / 0.1); }
.tag--influencer { color: var(--influencer); border-color: oklch(0.72 0.16 310 / 0.45); background: oklch(0.72 0.16 310 / 0.1); }
.tag--automation { color: var(--automation); border-color: oklch(0.76 0.13 150 / 0.45); background: oklch(0.76 0.13 150 / 0.1); }
.tag--live_prospect { color: var(--live_prospect); border-color: oklch(0.80 0.15 70 / 0.45); background: oklch(0.80 0.15 70 / 0.1); }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
.seg--4 button { padding: 6px 4px; font-size: 12px; }
.seg--5 { grid-template-columns: repeat(5, 1fr); }
.seg--5 button { padding: 6px 3px; font-size: 12px; }
.brief__pers { font-size: 16px; line-height: 1.55; color: var(--ink); margin: 22px 0; max-width: 62ch; }
.brief__meta { display: flex; gap: 28px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.brief__meta div span { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.brief__meta div strong { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.brief__warn { font-size: 12.5px; color: var(--faint); }
.brief h3 { font-size: 13px; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.curve { color: var(--muted); padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; font-size: 13.5px; }
.curve::before { content: "“"; color: var(--primary); font-weight: 700; margin-right: 4px; }
.brief__cta { display: flex; gap: 12px; align-items: center; margin-top: 28px; }

/* ============================ call ============================ */
.call { min-height: 0; }
.call__bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); background: oklch(0.19 0.004 80 / 0.7); backdrop-filter: blur(8px);
}
.call__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.call__id .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.call__name { font-size: 15px; font-weight: 650; }
.call__sub { font-size: 12px; color: var(--faint); }
.call__spacer { flex: 1; }
.timer { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); padding: 5px 10px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--line); }

/* stage rail */
.srail { display: flex; gap: 4px; padding: 12px 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.schip {
  display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 12px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: var(--t);
}
.schip:hover { border-color: var(--line-2); color: var(--ink); }
.schip__n { width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; font-size: 10px; background: var(--surface-3); color: var(--faint); }
.schip--done { color: var(--ink); }
.schip--done .schip__n { background: var(--success); color: var(--on-primary); }
.schip--cur { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.schip--cur .schip__n { background: oklch(0.21 0.045 80 / 0.25); color: var(--on-primary); }

/* transcript */
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 24px clamp(18px, 5vw, 64px); display: flex; flex-direction: column; gap: 16px; }
.feed__inner { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 4px; }
.msg__who { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 0 2px; }
.msg__body { padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg--persona { align-self: flex-start; }
.msg--persona .msg__body { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg--rep { align-self: flex-end; align-items: flex-end; }
.msg--rep .msg__body { background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 5px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--faint); animation: blink 1.2s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* composer */
.composer { border-top: 1px solid var(--line); padding: 14px clamp(18px, 5vw, 64px); background: var(--surface); }
.composer__inner { max-width: 760px; margin: 0 auto; display: flex; align-items: flex-end; gap: 10px; }
.composer textarea {
  flex: 1; resize: none; height: 46px; max-height: 160px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  font-size: 14.5px; line-height: 1.4; transition: border-color var(--t);
}
.composer textarea::placeholder { color: var(--faint); }
.composer textarea:focus { outline: none; border-color: var(--line-2); }

/* mic orb */
.mic {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: var(--t);
}
.mic svg { width: 19px; height: 19px; position: relative; z-index: 1; }
.mic:hover { border-color: var(--primary); color: var(--primary); }
.mic::after {
  content: ""; position: absolute; inset: -4px; border-radius: 99px;
  border: 2px solid var(--primary); opacity: 0; transform: scale(0.8);
  transition: opacity var(--t), transform var(--t);
}
.mic--on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.mic--on::after { opacity: 0.5; transform: scale(calc(1 + var(--level, 0) * 0.6)); }
.mic--on.is-speak { background: oklch(0.7 0.13 230); border-color: oklch(0.7 0.13 230); color: oklch(0.16 0 0); }
.mic--on.is-speak::after { border-color: oklch(0.7 0.13 230); }

.vstatus { max-width: 760px; margin: 8px auto 0; font-size: 12px; font-weight: 600; height: 16px; display: none; align-items: center; gap: 7px; color: var(--muted); }
.vstatus.on { display: flex; }
.vstatus .pip { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.vs-listen { color: var(--success); }
.vs-rec { color: var(--warn); }
.vs-think { color: var(--faint); }
.vs-speak { color: var(--client); }

/* ============================ scorecard ============================ */
.score { overflow-y: auto; padding: 36px clamp(22px, 6vw, 72px) 60px; }
.score__inner { max-width: 780px; margin: 0 auto; }
.score__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.score__head h1 { font-size: 13px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.verdict { font-size: 21px; line-height: 1.35; letter-spacing: -0.02em; max-width: 30ch; margin: 6px 0 0; }

.score__top { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin: 26px 0; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring__track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.ring__bar { fill: none; stroke: var(--grade, var(--primary)); stroke-width: 10; stroke-linecap: round; }
.ring__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__num b { font-size: 38px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.ring__num span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }

.silence {
  padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line);
}
.silence__h { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.silence__score { font-variant-numeric: tabular-nums; }
.silence p { color: var(--muted); font-size: 13.5px; margin: 0; }
.silence ul { margin: 10px 0 0; padding-left: 18px; color: var(--faint); font-size: 12.5px; }
.silence li { margin-bottom: 3px; }

.outcome { background: var(--primary-dim); border: 1px solid oklch(0.80 0.15 80 / 0.3); border-radius: var(--r-lg); padding: 14px 18px; color: oklch(0.9 0.06 82); font-size: 13.5px; line-height: 1.5; margin-bottom: 26px; }

.dims { display: grid; gap: 14px; margin-bottom: 30px; }
.dim__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.dim__name { font-size: 13.5px; font-weight: 600; }
.dim__score { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dim__track { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.dim__fill { height: 100%; width: 0; border-radius: 99px; background: var(--primary); }
.dim__note { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

.score h2 { font-size: 13px; color: var(--muted); margin: 0 0 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wins { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.wins li { font-size: 13.5px; color: var(--ink); padding-left: 24px; position: relative; }
.wins li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.fix { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.fix__moment { font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.fix__line { font-size: 13.5px; line-height: 1.5; display: grid; grid-template-columns: 92px 1fr; gap: 10px; margin-top: 4px; align-items: start; }
.fix__line .lab { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 650; padding: 3px 7px; border-radius: 6px; text-align: center; }
.fix__line--said .lab { background: oklch(0.66 0.20 25 / 0.16); color: var(--danger); }
.fix__line--say .lab { background: oklch(0.76 0.15 150 / 0.16); color: var(--success); }
.fix__line--said { color: var(--muted); }

.score__foot { display: flex; gap: 12px; margin-top: 28px; }

/* loading state for coach */
.loading { align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 40px; }
.loading h2 { font-size: 19px; }
.loading p { color: var(--muted); max-width: 40ch; }
.orbit { width: 38px; height: 38px; border-radius: 99px; border: 3px solid var(--surface-3); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* skeleton (roster loading) */
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink);
  padding: 10px 16px; border-radius: var(--r); font-size: 13px; font-weight: 550;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: var(--t);
  z-index: var(--z-toast); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--err { border-color: oklch(0.5 0.15 25); color: oklch(0.85 0.1 25); }

/* dialog (generate) */
.gen { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: 0; width: min(480px, 92vw); box-shadow: var(--shadow-lg); }
.gen::backdrop { background: oklch(0 0 0 / 0.6); backdrop-filter: blur(3px); }
.gen__in { padding: 24px; }
.gen h2 { font-size: 18px; margin-bottom: 6px; }
.gen p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.gen textarea { width: 100%; min-height: 84px; resize: vertical; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; transition: var(--t); }
.gen textarea::placeholder { color: var(--faint); }
.gen textarea:focus { outline: none; border-color: var(--line-2); }
.gen__type { display: flex; gap: 8px; margin: 12px 0 18px; }
.gen__type label { flex: 1; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 13px; transition: var(--t); }
.gen__type label:has(input:checked) { border-color: var(--primary); background: var(--primary-dim); }
.gen__type input { accent-color: var(--primary); }
.gen__foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ============================ progress ============================ */
.iconbtn { margin-left: auto; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; transition: var(--t); }
.iconbtn:hover { color: var(--primary); border-color: var(--primary); background: var(--surface-3); }
.iconbtn svg { width: 17px; height: 17px; }

.prog { overflow-y: auto; padding: 36px clamp(22px, 6vw, 72px) 60px; }
.prog__inner { max-width: 820px; margin: 0 auto; }
.prog h1 { font-size: 24px; }
.prog__sub { color: var(--muted); margin: 4px 0 26px; }
.prog h2 { font-size: 13px; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 16px; }
.stat b { font-size: 27px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.stat span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.stat .up { color: var(--success); } .stat .down { color: var(--danger); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 104px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 30px; }
.spark i { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; }
.tw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 16px; }
.tcard .h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 6px; text-transform: capitalize; }
.calls { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.crow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background var(--t); }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--surface-2); }
.crow__p { font-size: 13.5px; font-weight: 600; }
.crow__a { font-size: 11.5px; color: var(--faint); }
.crow__d { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } .tw { grid-template-columns: 1fr; } }

/* ============================ brief: intel + prep + wrap-up ============================ */
.intel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin: 22px 0; }
.intel h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--primary); margin: 0 0 8px; font-weight: 650; }
.intel p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.prep { margin: 22px 0; }
.prep h3 { font-size: 13px; color: var(--muted); margin: 0 0 10px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prep__hint { font-size: 11px; color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.prep textarea { width: 100%; min-height: 92px; resize: vertical; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; line-height: 1.5; color: var(--ink); transition: border-color var(--t); font-family: inherit; }
.prep textarea::placeholder { color: var(--faint); }
.prep textarea:focus { outline: none; border-color: var(--line-2); }

/* ---- "Drive the meeting" prep panel ---- */
.mprep { margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.mprep__head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.mprep__head h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--primary); margin: 0 0 6px; font-weight: 700; }
.mprep__head p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 66ch; }
.mprep-sec { border-top: 1px solid var(--line); }
.mprep-sec:first-of-type { border-top: none; }
.mprep-sec > summary { list-style: none; cursor: pointer; padding: 13px 18px; font-size: 13.5px; font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 8px; user-select: none; }
.mprep-sec > summary::-webkit-details-marker { display: none; }
.mprep-sec > summary::after { content: "+"; margin-left: auto; color: var(--faint); font-size: 16px; font-weight: 400; }
.mprep-sec[open] > summary::after { content: "–"; }
.mprep-sec > summary:hover { color: var(--primary); }
.mprep-body { margin: 0; padding: 4px 18px 18px; list-style: none; }
.mprep-goal { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 66ch; }
.mprep-say { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); max-width: 66ch; padding: 10px 12px; background: var(--bg); border-left: 2px solid var(--primary); border-radius: 0 var(--r) var(--r) 0; }
.mprep-say > span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.mprep-watch { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); max-width: 66ch; }
/* spine */
.mprep-spine { counter-reset: none; }
.mprep-beat { padding: 14px 0; border-top: 1px solid var(--line); }
.mprep-beat:first-child { border-top: none; padding-top: 4px; }
.mprep-beat__h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.mprep-beat__n { width: 22px; height: 22px; flex: none; display: grid; place-items: center; background: var(--primary); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; }
.mprep-beat__h strong { font-size: 14px; color: var(--ink); }
.mprep-tag { font-size: 10.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; letter-spacing: 0.02em; }
/* checklist */
.mprep-check li { padding: 9px 0; border-top: 1px solid var(--line); }
.mprep-check li:first-child { border-top: none; }
.mprep-check strong { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.mprep-check span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* facts */
.mprep-facts li { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.mprep-facts li:first-child { border-top: none; }
.mprep-fnum { flex: none; width: 20px; height: 20px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 1px; }
.mprep-facts strong { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink); font-weight: 600; margin-bottom: 3px; }
.mprep-facts em { font-style: normal; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
/* objections */
.mprep-obj { padding: 13px 0; border-top: 1px solid var(--line); }
.mprep-obj:first-child { border-top: none; }
.mprep-obj__q { margin: 0 0 5px; font-size: 14px; font-weight: 650; color: var(--ink); }
.mprep-obj__m { margin: 0 0 8px; font-size: 12px; color: var(--faint); font-style: italic; }
.mprep-obj__a { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); padding: 10px 12px; background: var(--bg); border-left: 2px solid var(--primary); border-radius: 0 var(--r) var(--r) 0; }
.mprep-obj__a > span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.mprep-obj__t { margin: 7px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* drive-the-meeting drill toggle */
.ddrill { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 16px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; transition: border-color var(--t); }
.ddrill:hover { border-color: var(--line-2); }
.ddrill input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--primary); cursor: pointer; }
.ddrill span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ddrill strong { color: var(--ink); font-weight: 650; }
.ddrill:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

.wrap__cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }

/* ============================ call mode ============================ */
.i16 { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.i16 svg { width: 16px; height: 16px; }
.mic.v-speak { background: oklch(0.7 0.13 230); border-color: oklch(0.7 0.13 230); color: oklch(0.16 0 0); }

.cm { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cm__head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; }
.cm__meta { display: flex; flex-direction: column; }
.cm__name { font-size: 15px; font-weight: 650; }
.cm__sub { font-size: 12px; color: var(--faint); }
.cm__head .timer { margin-left: auto; }
.cm__srail { display: flex; gap: 4px; padding: 0 24px 6px; overflow-x: auto; justify-content: center; }
.cm__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; min-height: 0; }
.cm__orb { position: relative; width: 172px; height: 172px; border-radius: 50%; display: grid; place-items: center; font-size: 52px; font-weight: 750; color: var(--ink); background: radial-gradient(circle at 50% 38%, var(--surface-3), var(--surface)); border: 1px solid var(--line-2); flex: none; }
.cm__orb.avatar--client { color: var(--client); }
.cm__orb.avatar--influencer { color: var(--influencer); }
.cm__orb > span { position: relative; z-index: 2; }
.cm__orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line-2); opacity: 0; transition: border-color 0.2s ease; }
.cm__orb.v-on .ring { opacity: calc(0.3 + var(--level, 0) * 0.7); transform: scale(calc(1.05 + var(--level, 0) * 0.3)); }
.cm__orb.v-listen .ring, .cm__orb.v-rec .ring { border-color: var(--primary); }
.cm__orb.v-speak .ring { border-color: oklch(0.7 0.13 230); }
.cm__orb.v-listen, .cm__orb.v-rec { box-shadow: 0 0 90px -22px var(--primary); }
.cm__orb.v-speak { box-shadow: 0 0 90px -16px oklch(0.7 0.13 230 / 0.5); }
.cm__status { font-size: 13px; font-weight: 600; color: var(--muted); min-height: 18px; letter-spacing: 0.01em; }
.cm__meter { position: relative; width: 180px; height: 4px; border-radius: 99px; background: var(--surface-3); }
.cm__meter i { display: block; height: 100%; width: 0%; border-radius: 99px; background: var(--primary); transition: width 60ms linear; }
.cm__meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--muted); }
.cm__cap { font-size: 21px; line-height: 1.45; max-width: 32ch; color: var(--ink); min-height: 64px; text-wrap: pretty; }
.cap__who { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); margin-bottom: 8px; }
.cm__bar { display: flex; justify-content: center; gap: 12px; padding: 16px 24px 30px; }
.cmbtn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; padding: 11px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 11.5px; transition: var(--t); }
.cmbtn:hover { border-color: var(--line-2); background: var(--surface-3); }
.cmbtn.active { border-color: var(--primary); color: var(--primary); }
.cmbtn svg { width: 20px; height: 20px; }
.cmbtn--end { background: oklch(0.66 0.20 25 / 0.14); border-color: oklch(0.5 0.14 25); color: var(--danger); }
.cmbtn--end:hover { background: oklch(0.66 0.20 25 / 0.24); }
.cmbtn--talk { background: var(--primary-dim); border-color: color-mix(in oklab, var(--primary) 45%, var(--line)); color: var(--primary-2); user-select: none; -webkit-user-select: none; touch-action: none; }
.cmbtn--talk:hover { background: color-mix(in oklab, var(--primary) 22%, var(--surface-2)); }
.cmbtn--talk.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: scale(1.04); box-shadow: 0 0 0 4px var(--primary-dim); }
.cm__mic { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 24px 20px; font-size: 11.5px; color: var(--muted); }
.cm__mic select { max-width: 280px; padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 12px; }

/* ============================ training plan ============================ */
.seg--rep { grid-template-columns: repeat(2, 1fr); }
.seg--rep button[aria-selected="true"] { color: var(--primary); }

.plan { overflow-y: auto; padding: 36px clamp(22px, 6vw, 72px) 60px; }
.plan__inner { max-width: 820px; margin: 0 auto; }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.plan__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); font-weight: 650; margin-bottom: 8px; }
.plan__head h1 { font-size: 28px; }
.plan__goal { color: var(--muted); margin: 8px 0 0; max-width: 56ch; }
.ptrack { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; }
.ptrack button { border: 0; background: transparent; color: var(--muted); padding: 5px 14px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; transition: var(--t); }
.ptrack button:hover { color: var(--ink); }
.ptrack button[aria-selected="true"] { background: var(--surface-3); color: var(--primary); box-shadow: var(--shadow); }
.plan__streak { flex: none; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 18px; }
.plan__streak b { display: block; font-size: 26px; font-weight: 750; color: var(--primary); font-variant-numeric: tabular-nums; }
.plan__streak span { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }

.plan__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-bottom: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.pcard h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); font-weight: 650; margin: 0 0 12px; }
.pcard--drill { border-color: oklch(0.80 0.15 80 / 0.35); }
.pcard__who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pcard__who .meter { margin-left: auto; }
.pcard__focus { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.pcard__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pcard__pass { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.pdot { width: 12px; height: 12px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); display: inline-block; }
.pdot--hit { background: var(--success); border-color: var(--success); }
.psess { font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--muted); margin-right: 4px; }
.psess--hit { background: oklch(0.76 0.15 150 / 0.15); border-color: oklch(0.76 0.15 150 / 0.5); color: var(--success); }
.pcard__sess { font-size: 12.5px; color: var(--faint); }
.pcard__hint { font-size: 12.5px; color: var(--faint); margin: 0; }
.pcard__slots { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pslot { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: var(--primary-dim); color: var(--primary-2); border: 1px solid oklch(0.80 0.15 80 / 0.3); font-weight: 600; }
.pcard__links { display: flex; gap: 8px; flex-wrap: wrap; }

.ppressure { background: oklch(0.66 0.20 25 / 0.08); border: 1px solid oklch(0.5 0.14 25 / 0.5); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px; }
.ppressure h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--danger); font-weight: 650; margin: 0 0 8px; }
.ppressure p { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.55; }

.pframe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px clamp(18px, 4vw, 34px); margin-bottom: 24px; }
.pframe h2 { font-size: 21px; margin: 0 0 14px; }
.pframe h3 { font-size: 14px; margin: 22px 0 8px; color: var(--primary-2); }
.pframe h4 { font-size: 13px; margin: 16px 0 6px; }
.pframe p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.pframe strong { color: var(--ink); }
.pframe ul { margin: 0 0 12px; padding-left: 20px; }
.pframe li { font-size: 14px; line-height: 1.6; color: var(--ink); margin-bottom: 7px; }
.pframe blockquote { margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--primary-dim); border-radius: 0 var(--r) var(--r) 0; font-size: 13.5px; }

.prc h2 { font-size: 17px; margin: 0 0 4px; }
.plesson { display: flex; gap: 10px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; margin-bottom: 8px; font-size: 13.5px; }
.plesson__tag { flex: none; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: var(--primary-dim); color: var(--primary-2); }
.prc__up { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.prc__status { font-size: 12.5px; color: var(--faint); }
.prc__list { display: grid; gap: 8px; }
.rcrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; }
.rcrow--err { border-color: oklch(0.5 0.14 25 / 0.6); }
.rcrow__top { display: flex; align-items: center; gap: 10px; }
.rcrow__name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcrow__badge { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.rcrow__badge--done { background: oklch(0.76 0.15 150 / 0.15); color: var(--success); }
.rcrow__badge--error { background: oklch(0.66 0.20 25 / 0.15); color: var(--danger); }
.rcrow__badge--transcribing, .rcrow__badge--coaching { background: var(--primary-dim); color: var(--primary-2); }
.rcrow__lesson { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

@media (max-width: 680px) { .plan__grid { grid-template-columns: 1fr; } .plan__head { flex-direction: column; } }

/* ============================ responsive ============================ */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: min(86vw, var(--rail-w)); z-index: var(--z-dialog); transform: translateX(-100%); transition: transform var(--t); box-shadow: var(--shadow-lg); }
  .app.rail-open .rail { transform: translateX(0); }
  .railscrim { display: none; }
  .app.rail-open .railscrim { display: block; position: fixed; inset: 0; background: oklch(0 0 0 / 0.5); z-index: var(--z-dialog-back); }
  .mobile-only { display: inline-flex !important; }
}
.mobile-only { display: none; }

/* ============================ reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .mic--on::after { transform: none !important; }
}

/* ============================================================
   THE FORGE — isolated skill drills (separate page /forge)
   Reuses .btn / .seg / .toast; adds its own layout below.
   ============================================================ */
body.forge { height: auto; min-height: 100dvh; overflow-y: auto; }
.fg-top {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.fg-brand { font-weight: 680; letter-spacing: -0.02em; font-size: 16px; display: flex; align-items: baseline; gap: 8px; }
.fg-brand em { font-style: normal; color: var(--faint); font-size: 12px; font-weight: 500; }
.fg-hammer { filter: saturate(1.1); }
.fg-rep { margin-left: auto; }
.fg-back { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 13px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); transition: var(--t); }
.fg-back:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface); }

.fg-main { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 40px); }

/* hero */
.fg-hero { margin-bottom: 28px; }
.fg-hero h1 { font-size: clamp(24px, 4vw, 34px); }
.fg-hero > p { color: var(--muted); max-width: 60ch; margin: 10px 0 18px; }
.fg-gauntlet span { font-weight: 500; opacity: 0.85; }
.fg-belthelp { margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.fg-belthelp b { color: var(--muted); font-weight: 640; }

/* skill grid */
.fg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fg-card {
  text-align: left; cursor: pointer; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow); transition: var(--t);
}
.fg-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.fg-card h3 { font-size: 16px; }
.fg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fg-fixes { color: var(--faint); font-size: 12.5px; line-height: 1.45; }
.fg-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.fg-acc { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fg-card.is-due { border-color: var(--warn); box-shadow: 0 0 0 1px color-mix(in oklab, var(--warn) 40%, transparent); }

/* belt chips + color */
.fg-belt { font-size: 11px; font-weight: 640; padding: 3px 8px; border-radius: 999px; letter-spacing: -0.01em; white-space: nowrap; }
.b-blocked  { color: var(--faint);      background: var(--surface-3); }
.b-gauntlet { color: var(--primary-2);  background: var(--primary-dim); }
.b-retained { color: var(--success);    background: color-mix(in oklab, var(--success) 16%, transparent); }
.fg-due { font-size: 10.5px; font-weight: 640; color: var(--warn); background: color-mix(in oklab, var(--warn) 15%, transparent); padding: 3px 7px; border-radius: 999px; }

/* streak dots */
.fg-dots { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: var(--success); font-weight: 620; }
.fg-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); }
.fg-dots i.on { background: var(--primary); border-color: var(--primary); }
.fg-dots.done { color: var(--success); }

/* drill view */
.fg-drill { max-width: 680px; margin: 0 auto; }
.fg-drillhead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fg-now { display: flex; align-items: center; gap: 8px; flex: 1; }
.fg-now em { font-style: normal; color: var(--faint); font-size: 12px; }
.fg-tag { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 9px; border-radius: 999px; }
.fg-streak { margin-left: auto; }

.fg-buyer {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px 20px; box-shadow: var(--shadow);
}
.fg-buyer__tag { position: absolute; top: -9px; left: 16px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); background: var(--bg); padding: 0 8px; }
.fg-buyer p { margin: 0; font-size: clamp(17px, 2.6vw, 21px); line-height: 1.4; letter-spacing: -0.01em; }

/* answer box */
.fg-answer { margin-top: 16px; }
.fg-answer textarea {
  width: 100%; resize: vertical; min-height: 58px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 14px; font-size: 15px; line-height: 1.45;
}
.fg-answer textarea:focus { outline: none; border-color: var(--primary); }
.fg-answer__row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fg-send { margin-left: auto; }
.fg-mic {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--muted); cursor: pointer; transition: var(--t);
}
.fg-mic svg { width: 20px; height: 20px; }
.fg-mic:hover { color: var(--ink); border-color: var(--primary); }
.fg-mic.rec { background: var(--danger); color: #fff; border-color: var(--danger); animation: fgpulse 1s var(--ease) infinite; }
.fg-mic.busy { opacity: 0.6; pointer-events: none; }
@keyframes fgpulse { 50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--danger) 30%, transparent); } }

/* verdict */
.fg-verdict { margin-top: 16px; border-radius: var(--r-lg); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.fg-verdict.pass { border-color: color-mix(in oklab, var(--success) 55%, var(--line)); background: color-mix(in oklab, var(--success) 8%, var(--surface)); }
.fg-verdict.fail { border-color: color-mix(in oklab, var(--danger) 50%, var(--line)); background: color-mix(in oklab, var(--danger) 8%, var(--surface)); }
.fg-verdict__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fg-mark { font-weight: 700; font-size: 16px; }
.fg-verdict.pass .fg-mark { color: var(--success); }
.fg-verdict.fail .fg-mark { color: var(--danger); }
.fg-why { margin: 0; font-size: 14.5px; line-height: 1.5; }
.fg-tip { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.fg-tip b { color: var(--ink); }
.fg-say { margin-top: 12px; border-left: 3px solid var(--primary); padding: 8px 0 8px 12px; }
.fg-say__lbl { display: block; font-size: 10.5px; font-weight: 680; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-2); margin-bottom: 3px; }
.fg-say p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); font-style: italic; }
.fg-event { margin-top: 12px; font-weight: 640; font-size: 13px; color: var(--primary-2); background: var(--primary-dim); padding: 8px 12px; border-radius: var(--r-sm); }

.fg-next { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

@media (max-width: 560px) {
  .fg-top { flex-wrap: wrap; gap: 10px; }
  .fg-rep { order: 3; margin-left: 0; }
  .fg-grid { grid-template-columns: 1fr; }
}
