/* ============================== AUTH ============================== */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .auth { grid-template-columns: 1.1fr 1fr; } }
.auth-hero {
  position: relative; overflow: hidden; display: none; padding: 48px; color: #fff;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(255, 122, 61, .55), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(77, 163, 255, .25), transparent 60%),
    linear-gradient(160deg, #15171C 0%, #0A0B0E 100%);
}
@media (min-width: 1000px) { .auth-hero { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-hero .gauge-wrap { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 620px; opacity: .95; }
.auth-hero h1 { font-size: var(--fs-hero); max-width: 11ch; }
.auth-hero .brand-word { color: #fff; }
.auth-form-wrap { display: grid; place-items: center; padding: 32px 18px; }
.auth-form { width: min(420px, 100%); display: grid; gap: 18px; }
.auth-mobile-brand { display: flex; }
@media (min-width: 1000px) { .auth-mobile-brand { display: none; } }
.hero-points { display: grid; gap: 14px; max-width: 420px; position: relative; z-index: 1; }
.hero-points div { display: flex; gap: 12px; align-items: center; font-weight: 600; color: rgba(255, 255, 255, .88); }
.hero-points i { font-size: 1.4rem; color: var(--ember-1); }

/* Animated gauge */
.gauge .needle { transform-origin: 200px 200px; animation: needle 3.6s var(--ease-in-out) infinite alternate; }
@keyframes needle { 0% { transform: rotate(-115deg); } 60% { transform: rotate(38deg); } 100% { transform: rotate(52deg); } }
.gauge .tick { stroke: rgba(255, 255, 255, .35); }
.gauge .tick.red { stroke: #FF5B24; }

/* =========================== ONBOARDING =========================== */
.choice { display: grid; gap: 14px; text-align: left; border: 0; width: 100%; }
.choice-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 1.8rem; }
.code-input { text-align: center; letter-spacing: .4em; font-weight: 800; font-size: 1.4rem; text-transform: uppercase; font-stretch: 115%; }

/* ============================== TODAY ============================== */
.today-hero { display: grid; gap: 22px; }
@media (min-width: 900px) { .today-hero { grid-template-columns: 1.4fr 1fr; align-items: stretch; } }
.streak { display: flex; align-items: center; gap: 10px; }
.streak i { font-size: 2rem; color: #FF7A3D; animation: flicker 1.8s var(--ease-in-out) infinite; }
.stat-tile { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--highlight); }
.stat-tile .num { font-size: 1.9rem; font-weight: 800; font-stretch: 112%; line-height: 1; }

/* =========================== DRILL LADDER =========================== */
.ladder { display: grid; }
.ladder-step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.ladder-rail { display: grid; justify-items: center; grid-template-rows: auto 1fr; }
.ladder-node {
  width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-stretch: 112%;
  background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 var(--highlight), var(--shadow-sm);
}
.ladder-node.done { background: linear-gradient(180deg, #4BE3A4, #16A76B); color: #032014; box-shadow: 0 6px 18px -6px rgba(61, 220, 151, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ladder-node.next { background: linear-gradient(180deg, var(--ember-1), var(--ember-3)); color: var(--on-ember); animation: pulse-ring 2s var(--ease-out) infinite; }
.ladder-line { width: 2px; margin: 6px 0; background: linear-gradient(var(--line-strong), transparent); border-radius: 2px; min-height: 26px; }
.ladder-body { padding-bottom: 22px; }

/* ========================== DEMO READ-ALONG ========================== */
.demo-segs { display: grid; grid-auto-flow: column; gap: 4px; }
.demo-seg { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.demo-seg > span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.demo-line { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; font-stretch: 105%; line-height: 1.3; min-height: 3.9em; animation: rise 420ms var(--ease-out); }
.demo-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warning-soft); color: var(--ink); font-size: var(--fs-sm); }
.demo-note i { color: var(--warning); font-size: 1.2rem; }

.scorecard-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.scorecard-item i { font-size: 1.5rem; color: var(--success); }

.sticky-actions { position: sticky; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 5; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-strong); }
@media (max-width: 959px) {
  .sticky-actions .btn-lg { min-height: 54px; }
  .sticky-actions .btn-secondary > span { display: none; } /* icon-only upload on phones */
  .sticky-actions .btn-secondary { padding: 0 18px; }
}
@media (min-width: 960px) { .sticky-actions { bottom: 20px; grid-template-columns: 1.4fr 1fr; padding: 14px; } }

/* ============================== CAMERA ============================== */
.camera { position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; display: grid; }
.camera video { width: 100%; height: 100%; object-fit: cover; }
.camera video.mirror { transform: scaleX(-1); }
.camera-ui { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 22%, transparent 62%, rgba(0, 0, 0, .7)); }
.cam-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.cam-btn i { font-size: 1.4rem; }
.cam-timer { justify-self: center; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(10px); font-weight: 800; font-variant-numeric: tabular-nums; font-stretch: 110%; }
.cam-timer .dot { width: 9px; height: 9px; border-radius: 50%; background: #FF3B3B; animation: fade .8s ease-in-out infinite alternate; }
.cue { align-self: end; margin-bottom: 18px; padding: 16px; border-radius: 20px; background: rgba(10, 10, 12, .62); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); display: grid; gap: 8px; max-width: 520px; width: 100%; justify-self: center; }
.cue-item { display: flex; gap: 10px; font-weight: 650; font-size: 15px; }
.cue-item b { color: var(--ember-1); min-width: 18px; }
.drawn { font-size: 1.25rem; font-weight: 800; line-height: 1.3; animation: rise 500ms var(--ease-spring); }
.shutter { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; background: transparent; justify-self: center; }
.shutter svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.shutter .core { position: absolute; inset: 11px; border-radius: 50%; background: linear-gradient(180deg, #FF4D4D, #D90E0E); box-shadow: 0 6px 20px rgba(255, 40, 40, .55), inset 0 1px 0 rgba(255, 255, 255, .4); transition: all var(--t-med) var(--ease-spring); }
.shutter.rec .core { inset: 26px; border-radius: 9px; }
.cam-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }

/* ============================== VIDEO ============================== */
.video-frame { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #000; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); aspect-ratio: 9 / 16; max-height: 70vh; width: 100%; margin: 0 auto; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (min-width: 900px) { .video-frame { max-width: 420px; } }
.split { display: grid; gap: 22px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(300px, 420px) 1fr; align-items: start; } .split > .sticky-col { position: sticky; top: 24px; } }

/* ============================ SCORING ============================ */
.score-row { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.score-pick button {
  --edge: 4px; min-height: 46px; border: 0; border-radius: 12px; font-weight: 800; font-stretch: 112%; font-size: 1.05rem;
  background: var(--btn-2); color: var(--ink-2); box-shadow: 0 var(--edge) 0 var(--btn-2-edge), inset 0 0 0 1px var(--line), inset 0 1px 0 var(--highlight);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast), color var(--t-fast);
}
.score-pick button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-2-edge); }
.score-pick button[aria-pressed="true"] { color: var(--on-ember); background: linear-gradient(180deg, var(--ember-1), var(--ember-3)); box-shadow: 0 var(--edge) 0 var(--ember-edge), 0 10px 20px -8px rgba(255, 91, 36, .6), inset 0 1px 0 rgba(255, 255, 255, .45); transform: translateY(-1px); }
.score-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.score-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.signoff {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; cursor: pointer;
  background: var(--success-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 35%, transparent);
}
.signoff-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; font-weight: 800; font-stretch: 110%; color: #032014; background: linear-gradient(180deg, #5FF0B3, #16A76B); box-shadow: 0 8px 20px -8px rgba(61, 220, 151, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.signoff-badge i { font-size: 1.3rem; }
.chip-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-prompt { border: 0; padding: 7px 12px; border-radius: 99px; font-size: var(--fs-xs); font-weight: 650; background: var(--surface-3); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--t-fast), color var(--t-fast); }
.chip-prompt:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ============================ LEADERBOARD ============================ */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; padding-top: 20px; }
.podium-spot { display: grid; justify-items: center; gap: 10px; text-align: center; }
.podium-block {
  width: 100%; border-radius: 18px 18px 8px 8px; display: grid; place-items: center; font-weight: 900; font-stretch: 125%; font-size: 1.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -8px 0 rgba(0, 0, 0, .18), var(--shadow-md);
  animation: podium-up 900ms var(--ease-spring) both;
}
.podium-spot:nth-child(1) .podium-block { height: 110px; background: linear-gradient(180deg, #E4E8EE, #9AA3AF); color: #2A2F36; animation-delay: 150ms; }
.podium-spot:nth-child(2) .podium-block { height: 150px; background: linear-gradient(180deg, #FFE08A, #D69E1C); color: #3A2600; }
.podium-spot:nth-child(3) .podium-block { height: 86px; background: linear-gradient(180deg, #F2B488, #B8672F); color: #3A1A05; animation-delay: 280ms; }
@keyframes podium-up { from { transform: scaleY(0); transform-origin: bottom; opacity: 0; } to { transform: scaleY(1); transform-origin: bottom; } }
.crown { font-size: 1.8rem; color: #FFC53D; filter: drop-shadow(0 4px 10px rgba(255, 197, 61, .6)); animation: flicker 2.4s ease-in-out infinite; }
.rank { width: 30px; font-weight: 800; font-stretch: 115%; color: var(--ink-3); text-align: center; }
.me-row { background: var(--accent-soft) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }

/* ============================ TABLE ============================ */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 750; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-med); }
.table tbody tr:hover { background: var(--surface-hover); }
.table-wrap { overflow-x: auto; }

.invite-code { font-size: 2.2rem; font-weight: 900; letter-spacing: .28em; font-stretch: 120%; text-align: center; padding: 18px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 2px 6px rgba(0, 0, 0, .2); }
.upload-ring-wrap { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 24px 0; }

/* ============================ LIBRARY FILTERS ============================ */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: -4px -2px -6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; scroll-snap-align: start;
  border: 0; padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--line-strong);
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-med), color var(--t-med), box-shadow var(--t-med);
}
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--line); }
.chip.active { color: #fff; background: linear-gradient(180deg, #FF7A3D, #F0450F); box-shadow: 0 3px 0 #9E2C05, 0 10px 24px -8px rgba(255, 91, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.chip i { font-size: 1rem; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface-2); }
.chip.active .chip-dot { background: #fff; box-shadow: none; }
.section-title { font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.search { position: relative; display: block; min-width: min(320px, 100%); flex: 1 1 240px; max-width: 420px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 40px; }

/* ============================ HQ ============================ */
.table tr.clickable { cursor: pointer; }
.chart svg { width: 100%; height: 190px; display: block; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-dasharray: 3 5; }
.chart-bar { fill: var(--accent); transform-origin: bottom; transform-box: fill-box; animation: bar-grow .7s var(--ease-out) both; animation-delay: var(--d, 0ms); transition: opacity var(--t-fast); }
@keyframes bar-grow { from { transform: scaleY(0); } }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .chart-bar { animation: none; } }
/* ============================ SKILL PAGE (one calm column) ============================ */
.skill-page { max-width: 760px; width: 100%; margin: 0 auto; gap: clamp(40px, 6vw, 64px); }
.skill-hero { display: grid; gap: 16px; }
.skill-summary { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 0; }
.why-callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 8px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.why-callout > i { font-size: 1.6rem; color: var(--accent); margin-top: 2px; }
.why-callout strong { display: block; margin-bottom: 4px; }
.why-callout p { margin: 0; color: var(--ink-2); line-height: 1.6; }

.skill-step { display: grid; gap: 24px; }
.skill-step-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.skill-step-head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.skill-step-head p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.55; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  font-weight: 900; font-size: 1.2rem; color: #fff; font-stretch: 120%;
  background: linear-gradient(160deg, #FF8A47, #E0400C); box-shadow: 0 3px 0 #8A2604, 0 10px 22px -8px rgba(255, 91, 36, .7);
}

/* Conversation */
.convo { display: grid; gap: 14px; padding: clamp(16px, 2.4vw, 24px); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.convo-intro { margin: 0; color: var(--ink-3); font-weight: 600; font-size: var(--fs-sm); }
/* The conversation scrolls inside its own window, so the page never has to move while it plays. */
.convo-lines {
  position: relative; list-style: none; margin: 0; padding: 14px 6px; display: grid; gap: 14px; align-content: start;
  max-height: clamp(240px, 42vh, 380px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
}
.convo-line { display: grid; gap: 5px; max-width: min(86%, 520px); transition: opacity var(--t-med); }
.convo-line.customer { justify-self: start; }
.convo-line.you { justify-self: end; justify-items: end; text-align: right; }
.convo-line.direction { justify-self: center; }
.convo.is-playing .convo-line:not(.active) { opacity: .38; }
.convo-who { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.convo-line.you .convo-who { color: var(--accent-ink); }
.convo-step { letter-spacing: .08em; opacity: .8; }
.convo-bubble {
  border: 0; font: inherit; text-align: left; cursor: pointer;
  padding: 11px 16px; border-radius: 18px; font-size: clamp(.98rem, .95rem + .15vw, 1.06rem); font-weight: 600; line-height: 1.45; color: var(--ink);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med);
}
.convo-line.customer .convo-bubble { background: var(--surface-3); border-bottom-left-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.convo-line.you .convo-bubble { background: var(--accent-soft); border-bottom-right-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.convo-bubble:hover { transform: translateY(-1px); }
.convo-line.active .convo-bubble { box-shadow: 0 0 0 2px var(--accent), 0 10px 26px -14px rgba(255, 91, 36, .6); }
.convo-note { display: inline-flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink-3); line-height: 1.4; max-width: 44ch; }
.convo-note i { color: var(--warning); margin-top: 2px; }
.convo-direction { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 99px; font-size: var(--fs-sm); font-style: italic; color: var(--ink-3); background: var(--surface-3); }
.convo-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.convo-play { flex: 1 1 220px; }
.voice-toggle { border: 0; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 99px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.voice-toggle.on { color: var(--success); background: var(--success-soft); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* Your turn */
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.howto li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.howto-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: var(--accent); background: var(--accent-soft); }
.howto strong { font-size: var(--fs-lg); }
.howto p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.6; }
.cheat { display: grid; gap: 12px; }
.cheat-items { display: flex; flex-wrap: wrap; gap: 10px; }
.cheat-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 99px; font-weight: 650; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cheat-item b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--accent); }
.more { border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 700; color: var(--ink-2); }
.more summary::-webkit-details-marker { display: none; }
.more-caret { margin-left: auto; transition: transform var(--t-med); }
.more[open] .more-caret { transform: rotate(180deg); }
.more-steps { margin: 0; padding: 0 24px 8px 46px; display: grid; gap: 12px; line-height: 1.6; }
.more-tips { padding: 8px 20px 20px; display: grid; gap: 8px; }
.more-tips p { margin: 0; display: flex; gap: 10px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.more-tips i { color: var(--warning); margin-top: 3px; }

/* Manager looks for */
.looks-for { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.looks-for li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.looks-for i { font-size: 1.5rem; color: var(--success); margin-top: 1px; }
.looks-for strong { font-size: var(--fs-lg); }
.looks-for p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 600px) {
  .convo-line { max-width: 94%; }
  .why-callout, .howto li { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 8px; } }
.studio-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }

/* ============================ LEVELS & BADGES ============================ */
.level-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.level-chip:hover { background: var(--surface-hover); }
.level-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: conic-gradient(from 200deg, #FFB04D, #FF5B24, #B98CFF, #FFB04D); box-shadow: 0 0 0 3px var(--surface-2), 0 6px 18px -6px rgba(255, 91, 36, .7); }
.level-text { display: grid; gap: 5px; min-width: 86px; }
.level-text b { font-size: 13px; line-height: 1; }
.level-bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.level-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB04D, #FF5B24); }
.level-card { display: grid; gap: 16px; }
.level-card-top { display: flex; align-items: center; gap: 20px; }
.level-badge { width: 88px; height: 88px; flex: none; border-radius: 26px; display: grid; place-items: center; align-content: center; gap: 2px; color: #fff; background: linear-gradient(150deg, #FF8A47, #E0400C 60%, #8F3BD8); box-shadow: 0 4px 0 #6B1D03, 0 18px 36px -14px rgba(255, 91, 36, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.level-badge span { font-size: 10px; font-weight: 800; letter-spacing: .18em; opacity: .85; }
.level-badge b { font-size: 2.4rem; font-weight: 900; line-height: 1; font-stretch: 120%; }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.trophy { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 20px 14px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.trophy strong { font-size: var(--fs-sm); }
.trophy span { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.trophy-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--ink-3); background: var(--surface-3); margin-bottom: 4px; }
.trophy.got .trophy-icon { color: #fff; background: linear-gradient(150deg, #FFC53D, #FF7A3D); box-shadow: 0 3px 0 #9E4A05, 0 10px 24px -10px rgba(255, 170, 60, .8); }
.trophy:not(.got) { opacity: .75; }

/* ============================ DELIVERY STATS ============================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat-box { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.stat-label { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-size: 1.8rem; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-value small { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-3); }
.stat-note { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.stat-note.good { color: var(--success); } .stat-note.slow, .stat-note.fast { color: var(--warning); }
.pace-meter { position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); }
.pace-zone { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--success-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 40%, transparent); }
.pace-meter i { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; transform: translateY(-50%); background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 4px 10px rgba(0,0,0,.3); transition: left .8s var(--ease-out); }

/* ============================ HALL OF FAME ============================ */
.hof-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.hof-card { border: 0; font: inherit; text-align: left; cursor: pointer; display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: var(--r-lg); color: var(--ink); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-sm), inset 0 0 0 1px color-mix(in srgb, #F5C451 35%, var(--line)); transition: transform var(--t-med) var(--ease-spring); }
.hof-card:hover { transform: translateY(-3px); }
.hof-thumb { position: relative; }
.hof-thumb .thumb { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; }
.hof-crown { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #3A2A00; background: linear-gradient(150deg, #FFE08A, #F5C451); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.hof-note { font-size: 13px; font-style: italic; color: var(--ink-2); line-height: 1.4; margin: 0; }

/* ============================ AI PRACTICE ============================ */
.ai-invite { border: 0; font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r-xl); color: var(--ink);
  background: linear-gradient(120deg, color-mix(in srgb, #8F3BD8 22%, var(--surface)), var(--surface) 60%); box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in srgb, #B98CFF 35%, var(--line)); transition: transform var(--t-med) var(--ease-spring); }
.ai-invite:hover { transform: translateY(-2px); }
.ai-invite strong { display: block; font-size: var(--fs-lg); margin-bottom: 4px; }
.ai-invite .grow > span { color: var(--ink-2); line-height: 1.5; }
.ai-invite-icon { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(150deg, #B98CFF, #6A3FC4); box-shadow: 0 3px 0 #3E1E80, 0 12px 24px -10px rgba(140, 90, 255, .8); }
.ai-invite-go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; font-weight: 750; color: #fff; background: #7B4FE0; box-shadow: 0 3px 0 #3E1E80; }
@media (max-width: 600px) { .ai-invite { flex-wrap: wrap; } .ai-invite-go { width: 100%; justify-content: center; } }
.practice-page { max-width: 760px; width: 100%; margin: 0 auto; gap: 40px; }
.live { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; height: calc(100dvh - 210px - env(safe-area-inset-bottom)); min-height: 360px; }
@media (min-width: 960px) { .live { height: calc(100dvh - 170px); } }
.live .btn { justify-self: stretch; }
.live-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.live-head .orb { width: 56px; height: 56px; flex: none; }
.live-head .orb span:nth-child(2) { inset: -6px; } .live-head .orb span:nth-child(3) { inset: -12px; }
.live-head strong { display: block; font-size: 15px; }
.live-status { margin: 0; font-weight: 700; color: var(--ink-2); }
.live-lines { width: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 8px 4px 16px; }
.live-lines .convo-bubble { cursor: default; }
.orb { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.orb span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFB04D, #FF5B24 45%, #8F3BD8 100%); filter: blur(.5px); transition: transform .4s var(--ease-out), opacity .4s; }
.orb span:nth-child(2) { inset: -14px; opacity: .25; filter: blur(14px); }
.orb span:nth-child(3) { inset: -30px; opacity: .12; filter: blur(26px); }
.orb.ai span:nth-child(1) { animation: orb-talk .7s ease-in-out infinite alternate; }
.orb.ai span:nth-child(2), .orb.ai span:nth-child(3) { animation: orb-glow 1.1s ease-in-out infinite alternate; }
.orb.you span:nth-child(1) { background: radial-gradient(circle at 35% 30%, #7BE0B0, #3DDC97 45%, #1C5FB8 100%); transform: scale(.94); }
.orb.connecting span:nth-child(1) { animation: pulse-ring 1.4s var(--ease-out) infinite; opacity: .7; }
@keyframes orb-talk { from { transform: scale(.96); } to { transform: scale(1.06); } }
@keyframes orb-glow { from { transform: scale(.9); opacity: .15; } to { transform: scale(1.12); opacity: .35; } }

/* ============================ CERTIFICATES ============================ */
.cert-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--r-xl); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cert-banner .grow { min-width: 220px; display: grid; gap: 4px; }
.cert-banner .grow > span { color: var(--ink-2); font-size: var(--fs-sm); }
.cert-banner-icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: var(--warning); background: var(--warning-soft); }
.cert-banner.complete { background: linear-gradient(120deg, color-mix(in srgb, #F5C451 18%, var(--surface)), var(--surface)); box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in srgb, #F5C451 45%, var(--line)); }
.cert-banner.complete .cert-banner-icon { color: #3A2A00; background: linear-gradient(150deg, #FFE08A, #F5C451); }
.cert { border-radius: 26px; padding: 12px; background: linear-gradient(145deg, #FF8A47, #8F3BD8); box-shadow: 0 30px 70px -30px rgba(255, 91, 36, .6); }
.cert-inner { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(28px, 6vw, 64px) clamp(18px, 5vw, 56px); border-radius: 18px; color: #fff;
  background: radial-gradient(900px 400px at 85% -10%, rgba(255, 91, 36, .35), transparent 60%), linear-gradient(160deg, #15171C, #0B0C0F); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cert-top { display: flex; align-items: center; gap: 10px; }
.cert-top .brand-word { color: #fff; }
.cert-kicker { font-size: 13px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #FF9A5C; margin-top: 8px; }
.cert-small { color: rgba(255,255,255,.7); font-weight: 500; }
.cert-name { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); font-weight: 900; font-stretch: 115%; letter-spacing: -.02em; }
.cert-section { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 850; background: linear-gradient(90deg, #FFB04D, #FF5B24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-weight: 650; color: rgba(255,255,255,.85); }
.cert-seal { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #3A2A00; background: linear-gradient(150deg, #FFE08A, #F5C451); box-shadow: 0 0 0 4px rgba(245,196,81,.25); }
.cert-code { font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.45); margin-top: 6px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.verified { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px; font-weight: 800; color: var(--success); background: var(--success-soft); }
.verified i { font-size: 1.4rem; }
/* ============================ GUIDED TAKE (camera) ============================ */
.scene-card { align-self: end; justify-self: center; width: min(560px, 100%); display: grid; gap: 14px; padding: 18px 18px 16px; border-radius: 24px; color: #fff;
  background: rgba(12, 13, 17, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12);
  animation: rise .35s var(--ease-out) both; }
.scene-howto { margin: 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; font-weight: 600; }
.scene-hint { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }
.scene-toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.85); cursor: pointer; }
.scene-toggle strong { color: #fff; }
.scene-count { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.scene-who { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.scene-who.you { color: #FF9A5C; }
.scene-them { display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.1); transition: box-shadow .3s; }
.scene-them.talking { box-shadow: 0 0 0 2px rgba(255,154,92,.8); }
.scene-them p { margin: 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 650; line-height: 1.45; }
.scene-you { display: grid; gap: 8px; }
.scene-cues { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-cues span { padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; background: rgba(255, 91, 36, .22); box-shadow: inset 0 0 0 1px rgba(255,154,92,.45); }
.scene-next { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 16px; font: inherit; font-weight: 800; font-size: 1.05rem; color: #1A0A03;
  background: linear-gradient(180deg, #fff, #F3EEE8); box-shadow: 0 4px 0 #8A2604, 0 12px 26px -10px rgba(0,0,0,.6); transition: transform var(--t-fast); }
.scene-next:active { transform: translateY(3px); box-shadow: 0 1px 0 #8A2604; }.scene-card { margin-bottom: 18px; max-height: 58vh; overflow-y: auto; }

/* ------------------------------ Level rewards ------------------------------ */
.reward-card { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--r-xl); color: var(--ink);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, #FFC53D 22%, transparent), transparent 55%), linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in srgb, #FFC53D 40%, var(--line)); }
.reward-compact { text-decoration: none; transition: transform var(--t-med) var(--ease-spring); }
.reward-compact:hover { transform: translateY(-2px); }
.reward-head { display: flex; gap: 16px; align-items: center; }
.reward-head h3 { margin: 2px 0 0; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); line-height: 1.25; }
.reward-head p { margin: 4px 0 0; font-size: 14px; font-weight: 650; }
.reward-icon { flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 1.7rem; color: #5A3B00;
  background: linear-gradient(160deg, #FFE08A, #FFB020); box-shadow: 0 3px 0 #B7830E, 0 12px 26px -10px rgba(255, 176, 32, .8); }
.reward-togo { flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.reward-togo b { display: block; font-size: 1.4rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.reward-bar { height: 10px; }
.reward-bar span { background: linear-gradient(90deg, #FFB020, #FF5B24) !important; }
.reward-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reward-list li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.reward-list li.got { background: color-mix(in srgb, var(--success) 10%, var(--surface-2)); }
.reward-list strong { display: block; }
.reward-list span { font-size: 13px; color: var(--ink-3); }
.reward-lv { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(160deg, #FF8A47, #E0400C); }
.reward-list li.got .reward-lv { background: linear-gradient(160deg, #3DDC97, #12825A); }
.reward-row { display: flex !important; gap: 20px; align-items: flex-start; }
.reward-row.set { box-shadow: var(--shadow-sm), inset 0 0 0 1.5px color-mix(in srgb, #FFB020 55%, transparent); }
.reward-row-lv { flex: none; width: 92px; display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: 18px; text-align: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.reward-row-lv span { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); }
.reward-row-lv b { font-size: 2rem; line-height: 1; font-weight: 900; color: var(--accent); }
.reward-row-lv em { font-style: normal; font-weight: 750; font-size: 13px; }
.reward-row-lv small { font-size: 11px; color: var(--ink-3); font-weight: 650; }
@media (max-width: 560px) { .reward-row { flex-direction: column; } .reward-row-lv { width: 100%; grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; } }

/* ------------------------------ Bonus library ------------------------------ */
.bonus-shelf { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--r-xl);
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, #B98CFF 18%, transparent), transparent 60%), linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in srgb, #B98CFF 35%, var(--line)); }
.bonus-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.bonus-head h3 { margin: 6px 0 4px; }
.bonus-head p { margin: 0; font-size: 14px; max-width: 56ch; }
.bonus-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #B98CFF, #6A3FC4); }
.bonus-count { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.bonus-count b { font-size: 1.6rem; color: var(--ink); }
.bonus-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bonus-tile { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med); }
.bonus-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-strong); }
.bonus-tile strong { display: block; font-size: 14px; }
.bonus-tile .faint { font-size: 12px; }
.bonus-tile-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.bonus-note { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r-lg); font-weight: 600; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.bonus-note i { font-size: 1.4rem; color: var(--accent); flex: none; }
.lesson-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson-points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-weight: 600; line-height: 1.5; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.lesson-points b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, #B98CFF, #6A3FC4); }
.lesson-steps { padding: 0 0 0 22px !important; }

/* ------------------------------ Dashboards ------------------------------ */
.dept-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dept-meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.dept-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3DDC97, #16A76B); transition: width var(--t-slow) var(--ease-out); }
.dept-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.dept-nums span { display: grid; gap: 1px; font-size: 11px; font-weight: 650; color: var(--ink-3); }
.dept-nums b { font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.dept-nums .warn b { color: var(--warning); }
.coach-num { display: grid; justify-items: end; font-size: 11px; font-weight: 650; color: var(--ink-3); }
.coach-num b { font-size: 1.3rem; color: var(--ink); }
.rank { width: 24px; text-align: center; font-weight: 900; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.level-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; font-size: 12px; font-weight: 750; white-space: nowrap; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.level-tag b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: linear-gradient(160deg, #FF8A47, #E0400C); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------ View as (platform owner) ------------------------------ */
.viewas-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; color: #1A0A03; font-weight: 700; font-size: 14px; background: linear-gradient(90deg, #FFC53D, #FF9A5C); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .4); }
.viewas-bar button { border: 0; font: inherit; font-weight: 800; padding: 8px 14px; border-radius: 99px; cursor: pointer; color: #fff; background: #1A0A03; white-space: nowrap; }

/* ------------------------------ First-run tour ------------------------------ */
.tour-scrim { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, #0B0705 62%, transparent); backdrop-filter: blur(10px) saturate(1.2); animation: fade-in var(--t-med) var(--ease-out); }
.tour-card { position: relative; width: min(460px, 100%); display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 28px 24px; border-radius: 30px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line); animation: tour-in .42s var(--ease-spring); }
.tour-card h2 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.tour-text { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; max-width: 36ch; min-height: 5em; }
.tour-skip { position: absolute; top: 14px; right: 16px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink-3); cursor: pointer; padding: 6px 10px; border-radius: 99px; }
.tour-skip:hover { background: var(--surface-2); color: var(--ink); }
.tour-art { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 6px; }
.tour-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tone) 45%, transparent), transparent 70%); animation: pulse-ring 2.4s var(--ease-out) infinite; }
.tour-icon { position: relative; width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; font-size: 2.8rem; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 70%, #fff), var(--tone)); box-shadow: 0 4px 0 color-mix(in srgb, var(--tone) 60%, #000), 0 18px 34px -12px var(--tone); transform: rotate(-6deg); }
.tour-dots { display: flex; gap: 6px; margin: 6px 0 4px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--surface-3); transition: width var(--t-med) var(--ease-spring), background var(--t-med); }
.tour-dots i.done { background: color-mix(in srgb, var(--accent) 45%, var(--surface-3)); }
.tour-dots i.on { width: 26px; background: var(--accent); }
.tour-actions { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
@keyframes tour-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------ Chat ------------------------------ */
.chat-list .chat-row { align-items: center; text-decoration: none; color: inherit; }
.chat-team-icon { flex: none; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: linear-gradient(160deg, #FF8A47, #E0400C); }
.chat-team-icon.group { background: linear-gradient(160deg, #4DA3FF, #1C5FB8); }
.chat-team-icon.sm { width: 38px; height: 38px; border-radius: 13px; font-size: 1.15rem; }
.chat-unread-text { color: var(--ink); font-weight: 700; }
.chat-page { display: grid; grid-template-rows: auto auto 1fr auto auto; height: calc(100dvh - 130px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 380px;
  border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
@media (min-width: 960px) { .chat-page { height: calc(100dvh - var(--s8) - var(--s12)); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat-monitor { display: flex; gap: 8px; align-items: center; padding: 8px 14px; font-size: 13px; font-weight: 650; color: #5A3B00; background: color-mix(in srgb, #FFC53D 40%, var(--surface)); }
.chat-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 16px clamp(12px, 2vw, 22px); display: flex; flex-direction: column; gap: 4px; }
.chat-empty { margin: auto; display: grid; justify-items: center; gap: 6px; color: var(--ink-3); }
.chat-empty i { font-size: 2.6rem; }
.chat-older { align-self: center; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); padding: 6px 14px; border-radius: 99px; cursor: pointer; margin-bottom: 8px; }
.chat-day { align-self: center; margin: 12px 0 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.chat-day span { padding: 4px 12px; border-radius: 99px; background: var(--surface-2); }
.msg { display: grid; justify-items: start; gap: 3px; max-width: min(78%, 520px); margin-top: 8px; }
.msg.grouped { margin-top: 0; }
.msg.mine { align-self: flex-end; justify-items: end; }
.msg-who { font-size: 12px; font-weight: 750; color: var(--ink-3); padding-left: 12px; }
.msg-bubble { padding: 10px 14px; border-radius: 20px; border-bottom-left-radius: 6px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.msg.mine .msg-bubble { color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; background: linear-gradient(160deg, #FF7A3D, #E0400C); box-shadow: none; }
.msg-time { font-size: 11px; color: var(--ink-3); padding: 0 8px; }
.msg-image { display: block; max-width: 280px; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #000; }
.msg-image img { width: 100%; height: 100%; object-fit: cover; }
.msg-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: var(--ink); min-width: 220px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.msg-card i { font-size: 1.8rem; color: var(--accent); }
.msg-card span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat-input { flex: 1; resize: none; font: inherit; line-height: 1.4; padding: 11px 16px; border-radius: 22px; border: 0; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); max-height: 140px; }
.chat-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: #fff; cursor: pointer; background: linear-gradient(160deg, #FF7A3D, #E0400C); transition: transform var(--t-med) var(--ease-spring), opacity var(--t-med); }
.chat-send:disabled { opacity: .4; cursor: default; }
.chat-send:not(:disabled):active { transform: scale(.92); }
.chat-note { margin: 0; padding: 0 14px 8px; font-size: 11px; text-align: center; color: var(--ink-3); background: var(--surface-2); }
.chat-readonly { padding: 14px; text-align: center; font-weight: 700; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--surface-2); }
.pick-list { max-height: 44vh; overflow-y: auto; }
.pick-row { border: 0; width: 100%; font: inherit; color: inherit; background: none; border-radius: 14px; }
.pick-row.on { background: var(--accent-soft); }
.pick-check { font-size: 1.4rem; color: var(--accent); }
.share-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.share-opt { border: 0; font: inherit; color: var(--ink); cursor: pointer; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.share-opt i { font-size: 1.8rem; color: var(--accent); margin-bottom: 4px; }
.share-opt span { font-size: 12px; color: var(--ink-3); }

.save-practice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.save-practice > i { font-size: 1.3rem; color: var(--accent); }


/* ------------------------------ Guided take: briefing + clearer steps ------------------------------ */
.brief { align-self: end; justify-self: center; width: min(560px, 100%); max-height: 72vh; overflow-y: auto; display: grid; gap: 14px; margin-bottom: 6px;
  padding: 20px 18px 18px; border-radius: 26px; color: #fff; background: rgba(10, 10, 12, .78); backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); animation: rise 420ms var(--ease-out); }
.brief h2 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); line-height: 1.25; }
.brief-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brief-step { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 16px; text-align: center; background: rgba(255,255,255,.08); }
.brief-step i { font-size: 1.6rem; color: #FF9A5C; }
.brief-step strong { font-size: 14px; }
.brief-step small { font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.3; }
.brief-num { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 800; color: rgba(255,255,255,.45); }
.brief-preview summary { cursor: pointer; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.8); }
.brief-preview ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13px; line-height: 1.45; }
.brief-preview li { display: grid; gap: 2px; }
.bp-them { color: rgba(255,255,255,.9); }
.bp-you { color: #FF9A5C; font-weight: 700; }
.brief-go { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; border-radius: 18px; font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, #FF4D4D, #D90E0E); box-shadow: 0 4px 0 #8A0606, 0 14px 30px -10px rgba(255, 40, 40, .7); }
.brief-go:disabled { opacity: .6; }
.brief-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #8A0606; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(6rem, 22vw, 11rem); font-weight: 900; color: #fff; text-shadow: 0 6px 40px rgba(0,0,0,.6); pointer-events: none; animation: count-pop .8s var(--ease-out); }
@keyframes count-pop { from { transform: scale(1.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.9); opacity: .85; } }
.cam-end { width: auto !important; padding: 0 14px; gap: 6px; display: inline-flex !important; font-weight: 800; font-size: 14px; }
.cam-end i { color: #FF4D4D; font-size: 1rem !important; }
.scene-progress { display: flex; gap: 5px; }
.scene-progress i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
.scene-progress i.done { background: rgba(255,154,92,.6); }
.scene-progress i.on { background: #FF9A5C; }
.scene-who { display: inline-flex; align-items: center; gap: 6px; }
.scene-you { padding: 14px 16px; border-radius: 18px; transition: background .3s, box-shadow .3s, opacity .3s; }
.scene-you.go { background: rgba(255, 91, 36, .16); box-shadow: inset 0 0 0 2px rgba(255,154,92,.75); }
.scene-you.waiting { opacity: .55; }
.scene-example { margin: 0; font-size: 15px; line-height: 1.45; font-style: italic; color: rgba(255,255,255,.92); }
.scene-example span { font-style: normal; font-weight: 700; color: rgba(255,255,255,.6); margin-right: 4px; }

/* Skill page actions sit at the end of the page (not floating while scrolling). */
.sticky-actions.page-actions { position: static; margin-top: 8px; }


/* AI practice transcript grows with the page (the page follows the newest words), unlike the fixed example window. */
.live .live-lines { max-height: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px); mask-image: linear-gradient(180deg, transparent 0, #000 16px); }
.practice-page .convo-lines:not(.live-lines) { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }


.mic-meter { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.mic-meter > i { color: #3DDC97; font-size: 1.1rem; }
.mic-meter > span { width: 90px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; flex: none; }
.mic-meter > span i { display: block; height: 100%; background: linear-gradient(90deg, #3DDC97, #A6F4C5); border-radius: inherit; transition: width .08s linear; }
.mic-meter small { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.3; }


/* ------------------------------ Bonus lessons (Social & AI): their own look ------------------------------ */
.lesson { --lx: #B98CFF; --lx2: #6A3FC4; --lx-soft: color-mix(in srgb, #B98CFF 16%, transparent); max-width: 760px; margin-inline: auto; }
.lesson-ai { --lx: #4DA3FF; --lx2: #1C5FB8; --lx-soft: color-mix(in srgb, #4DA3FF 16%, transparent); }
.lesson-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--lx), var(--lx2)); }
.lesson-progress { display: flex; gap: 6px; }
.lesson-progress i { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); transition: background .3s; }
.lesson-progress i.done { background: color-mix(in srgb, var(--lx) 55%, var(--surface-3)); }
.lesson-progress i.on { background: linear-gradient(90deg, var(--lx), var(--lx2)); }
.lesson-card { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 28px; min-height: 340px; align-content: start;
  background: radial-gradient(120% 90% at 100% 0%, var(--lx-soft), transparent 60%), linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in srgb, var(--lx) 30%, var(--line)); }
.lesson-card h2 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.lesson-card > .muted { margin: -8px 0 0; }
.lesson-hero { display: grid; gap: 10px; justify-items: start; }
.lesson-hero h1 { margin: 0; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); }
.lesson-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: linear-gradient(150deg, var(--lx), var(--lx2)); box-shadow: 0 12px 26px -12px var(--lx); transform: rotate(-5deg); }
.lesson-lead { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.lesson-why { display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--lx-soft); }
.lesson-why i { font-size: 1.5rem; color: var(--lx); flex: none; margin-top: 2px; }
.lesson-why p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.55; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.lesson-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--surface-3); }
.lesson-meta i { color: var(--lx); }
.flip-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.flip { border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: grid; gap: 10px; align-content: start; min-height: 150px; padding: 18px; border-radius: 20px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); transition: transform .35s var(--ease-spring), background .3s, box-shadow .3s; }
.flip:hover { transform: translateY(-2px); }
.flip.open { background: linear-gradient(160deg, var(--lx-soft), var(--surface)); box-shadow: inset 0 0 0 2px var(--lx); animation: flip-in .45s var(--ease-spring); }
@keyframes flip-in { from { transform: rotateY(90deg); } to { transform: none; } }
.flip-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--lx), var(--lx2)); }
.flip strong { font-size: 1.05rem; line-height: 1.35; }
.flip-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--lx); }
.flip-back { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.quiz { display: grid; gap: 10px; }
.quiz-q { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt { border: 0; font: inherit; text-align: left; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); line-height: 1.45; transition: background .2s, box-shadow .2s, opacity .2s; }
.quiz-opt i { font-size: 1.2rem; flex: none; margin-top: 1px; color: var(--ink-3); }
.quiz-opt:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--lx); }
.quiz-opt.right { background: var(--success-soft); box-shadow: inset 0 0 0 2px var(--success); } .quiz-opt.right i { color: var(--success); }
.quiz-opt.wrong { background: color-mix(in srgb, var(--danger) 14%, transparent); box-shadow: inset 0 0 0 2px var(--danger); } .quiz-opt.wrong i { color: var(--danger); }
.quiz-opt.dim { opacity: .55; }
.quiz-fb { margin: 0; font-weight: 700; font-size: 14px; } .quiz-fb.good { color: var(--success); } .quiz-fb.bad { color: var(--ink-2); }
.quiz-score { margin: 0; font-size: 1.2rem; font-weight: 800; }
.try-list { display: grid; gap: 8px; }
.try-item { border: 0; font: inherit; text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.45; }
.try-item i { font-size: 1.35rem; color: var(--ink-3); flex: none; }
.try-item.on { background: var(--lx-soft); } .try-item.on i { color: var(--lx); } .try-item.on span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink-2); }
.lesson-tips { display: grid; gap: 6px; } .lesson-tips p { margin: 0; display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); } .lesson-tips i { color: var(--warning); margin-top: 3px; }
.lesson-done { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--success-soft); }
.lesson-done i { font-size: 2rem; color: var(--success); } .lesson-done strong { display: block; } .lesson-done span { font-size: 14px; color: var(--ink-2); }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lesson-meter { width: min(360px, 100%); height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.lesson-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--lx), var(--lx2)); border-radius: inherit; }
.lesson-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lesson-tile { border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .3s var(--ease-spring), box-shadow .3s; }
.lesson-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--lx), var(--shadow-md); }
.lesson-tile.next { box-shadow: inset 0 0 0 2px var(--lx), var(--shadow-md); }
.lesson-tile-num { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--lx), var(--lx2)); }
.lesson-tile.fin .lesson-tile-num { background: linear-gradient(135deg, #3DDC97, #12825A); }
.lesson-tile strong { font-size: 1.05rem; line-height: 1.3; }
.lesson-tile > span:not(.lesson-tile-num) { font-size: 13px; color: var(--ink-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lesson-tile em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--lx); margin-top: 2px; }
