/* GSP AI Learning: 8-screen prototype. GSP blue for primary actions, GSP green for growth and progress.
   Desktop (900px and wider): sidebar navigation and wide multi-column screens. Phone: full-screen app with a bottom tab bar. */
:root {
  --navy: #1f2a8c; --navy-2: #151d6b; --navy-ink: #10164f; --blue: #2f4fd8; --blue-soft: #edf0ff;
  --green: #2dba37; --green-d: #37943e; --green-soft: #e7f7e8; --cream: #f7f4e9;
  --ink: #161b33; --muted: #6a7088; --line: #e6e9f2; --bg: #f5f7fb; --white: #fff;
  --amber: #f0a020; --red: #e5484d; --red-soft: #fdeceb;
  --shadow: 0 1px 2px rgba(16,22,79,.05), 0 8px 22px rgba(16,22,79,.07);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ---- App shell ---- */
.app { height: 100dvh; display: flex; flex-direction: column; }
.side { display: none; }
.deskbar { display: none; }
.mainwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.screen { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-top: env(safe-area-inset-top); }
.pad { padding: 6px 20px 24px; }
.page { width: 100%; }

/* ---- Common ---- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px 4px; }
.back { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--navy); margin-left: -8px; flex: none; }
.back svg, .ic svg { width: 22px; height: 22px; }
.h1 { font-size: 19px; font-weight: 800; color: var(--navy-ink); letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--navy-2); }
.btn.block { width: 100%; border-radius: 14px; padding: 14px; font-size: 14.5px; }
.btn.green { background: var(--green); }
.btn.green:hover { background: var(--green-d); }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--blue-soft); color: var(--navy); }
.chip.green { background: var(--green-soft); color: var(--green-d); }
.sec-h { display: flex; justify-content: space-between; align-items: center; margin: 20px 2px 10px; font-weight: 800; color: var(--navy-ink); font-size: 15px; }
.sec-h a { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(16,22,79,.92); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px; z-index: 50; white-space: nowrap; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.grid2, .grid3 { display: grid; gap: 14px; }

/* ---- Bottom tab bar (phone) ---- */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.tabbar[hidden] { display: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #8a90a8; text-decoration: none; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--navy); }

/* ---- Brand ---- */
.brandrow { display: flex; align-items: center; gap: 10px; padding: 12px 20px 0; }
.brand { display: flex; align-items: center; gap: 9px; flex: 1; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { display: block; font-size: 14.5px; color: var(--navy); letter-spacing: .01em; line-height: 1.1; }
.brand span span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .18em; color: var(--green-d); }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--navy); display: grid; place-items: center; position: relative; flex: none; }
.iconbtn:hover { background: var(--blue-soft); }
.iconbtn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.me { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; text-decoration: none; flex: none; }

/* ---- 1. Home ---- */
.hello { position: relative; padding: 16px 20px 6px; }
.hello h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--navy-ink); }
.hello h1 b { font-weight: 800; display: block; font-size: 26px; }
.hello p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; max-width: 230px; }
.hello svg.mount { position: absolute; right: 12px; bottom: 0; width: 120px; }
.cont { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.cont h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--navy-ink); grid-column: 1 / -1; }
.ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), #e8edf5 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: 17px; color: var(--navy-ink); }
.cont .t b { display: block; font-size: 14.5px; color: var(--navy-ink); }
.cont .t span { font-size: 12.5px; color: var(--muted); }
.cont .btn { margin-top: 10px; }
.sess { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.sess .thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--blue-soft); }
.sess b { display: block; font-size: 13.5px; }
.sess span { display: block; font-size: 12px; color: var(--muted); }
.score { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; background: linear-gradient(120deg, #fff, var(--green-soft)); }
.score .ic { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--green-d); box-shadow: var(--shadow); flex: none; }
.score b { font-size: 22px; color: var(--navy-ink); }
.score small { color: var(--green-d); font-weight: 700; margin-left: 6px; }

/* ---- 2. Coaches ---- */
.coach { display: grid; grid-template-columns: 72px 1fr 18px; gap: 14px; align-items: center; padding: 12px; margin-bottom: 12px; text-decoration: none; color: inherit; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.coach:hover { border-color: #dfe4ff; }
.coach.active { border-color: #c9d1ff; background: linear-gradient(120deg, #fff, var(--blue-soft)); }
.coach .av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; }
.coach .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.coach b { display: block; font-size: 14.5px; color: var(--navy-ink); }
.coach p { margin: 3px 0 7px; font-size: 12.5px; color: var(--muted); }
.coach .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.coach .soon { font-size: 10.5px; font-weight: 800; color: var(--muted); background: #f0f2f7; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.chev { color: #9aa1b8; }

/* ---- 3. Scenarios ---- */
.filters { display: flex; gap: 8px; padding: 12px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.filters button { border: 1.5px solid var(--line); background: #fff; color: var(--navy-ink); border-radius: 999px; padding: 7px 15px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.scn { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; margin-bottom: 12px; border: 2px solid transparent; }
.scn.featured { border-color: #c9d1ff; }
.scn .art { width: 84px; height: 84px; border-radius: 14px; display: grid; place-items: center; }
.scn .art svg { width: 44px; height: 44px; }
.scn b { display: block; font-size: 14.5px; color: var(--navy-ink); line-height: 1.3; }
.scn dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0; font-size: 12px; }
.scn dt { color: var(--muted); }
.scn dd { margin: 0; color: var(--ink); }
.scn .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.scn .row > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.scn .row .btn { padding: 8px 13px; font-size: 12px; }

/* ---- 4. Live session (phone: full screen, dark) ---- */
.app.dark .screen { background: #0b1033; }
.livewrap { position: relative; height: 100%; min-height: 560px; color: #fff; background: linear-gradient(180deg, #0b1033 60%, #10164f); }
.stagev { position: absolute; left: 0; right: 0; top: 0; height: 74%; overflow: hidden; background: #0b1033; }
.stagev .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* while Asha speaks: a soft pulsing ring around her frame (no zoom on the photo, so it stays sharp) */
.stagev.talking { box-shadow: inset 0 0 0 3px rgba(45,186,55,.85); animation: talkring 1.6s ease-in-out infinite; }
@keyframes talkring { 50% { box-shadow: inset 0 0 0 6px rgba(45,186,55,.35); } }
.lipface { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 50% 35%; will-change: transform; }
.lip-wrap { position: absolute; inset: 0; z-index: 1; opacity: .01; transition: opacity .35s ease; pointer-events: none; background: #0b1033; }
.lip-wrap.live { opacity: 1; }
.lip-wrap video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.stagev::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 2; background: linear-gradient(180deg, transparent, rgba(8,12,40,.88)); pointer-events: none; }
.joining { position: absolute; z-index: 3; top: 46%; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 14px; color: #fff; animation: joinfade 1.6s ease-in-out infinite; }
.joining[hidden] { display: none; }
@keyframes joinfade { 50% { opacity: .45; } }
.live-top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 18px 30px; background: linear-gradient(180deg, rgba(8,12,40,.7), transparent); }
.live-top .back { color: #fff; }
.live-top .ttl { flex: 1; font-weight: 700; font-size: 15px; }
.live-top .ttl small { display: none; }
.live-top .tmr { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; }
.live-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.panel-h { display: none; }
.who { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #b9c6ff; margin: 0 6px 6px; }
.bubble { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; padding: 13px 16px; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-height: 150px; overflow-y: auto; }
.bubble .w { opacity: .35; transition: opacity .15s; }
.bubble .w.on { opacity: 1; }
.tipline { margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; background: rgba(45,186,55,.18); border: 1px solid rgba(45,186,55,.45); color: #dff7e1; font-size: 12.5px; line-height: 1.4; }
.tipline[hidden] { display: none; }
.tipline b { color: #fff; }
.speak[hidden] { display: none; }
.speak { margin-top: 12px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--muted); border-radius: 999px; padding: 7px 18px 7px 7px; }
.speak .mic { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.speak .mic.on { background: var(--red); animation: ring 1.3s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 12px rgba(229,72,77,0); } 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } }
.speak .mic svg { width: 22px; height: 22px; }
.speak .lbl { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.speak .lbl.live { color: var(--ink); }
.typerow { margin-top: 12px; display: flex; gap: 8px; }
.typerow[hidden] { display: none; }
.typerow input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 13px 16px; font: inherit; font-size: 14px; }
.typerow button { border: 0; border-radius: 999px; padding: 0 18px; background: var(--green); color: #fff; font-weight: 800; }
.ctrls { display: flex; justify-content: space-around; margin-top: 14px; }
.ctrls button { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.ctrls i { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); display: grid; place-items: center; }
.ctrls i svg { width: 21px; height: 21px; }
.ctrls button:hover i { background: rgba(255,255,255,.12); }
.ctrls button.on i { background: #fff; color: var(--navy); border-color: #fff; }
.endrow { margin-top: 12px; }
.endrow[hidden] { display: none; }
.pinbox { position: absolute; inset: 0; z-index: 30; background: rgba(8,12,40,.72); display: grid; place-items: center; padding: 24px; }
.pinbox[hidden] { display: none; }
.pinbox .card { width: min(100%, 360px); text-align: center; color: var(--ink); }
.pinbox input { width: 100%; font: 800 22px/1 var(--font); letter-spacing: .4em; text-align: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; margin: 12px 0 10px; }
.pinbox .err { color: var(--red); font-size: 12.5px; min-height: 1.2em; margin-bottom: 6px; }

/* ---- 5. Feedback ---- */
.great { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; background: linear-gradient(120deg, #fff, var(--green-soft)); }
.great h2 { margin: 0 0 4px; font-size: 19px; color: var(--navy-ink); }
.great p { margin: 0; font-size: 12.5px; color: var(--muted); }
.medal { width: 70px; height: 70px; }
.skill { display: grid; grid-template-columns: 36px 1fr 40px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.skill:last-child { border-bottom: 0; }
.skill .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.skill .ic svg { width: 18px; height: 18px; }
.skill b { font-size: 13px; display: block; margin-bottom: 6px; }
.skill .bar { height: 7px; border-radius: 4px; background: #edf0f6; overflow: hidden; }
.skill .bar i { display: block; height: 100%; border-radius: 4px; }
.skill .v { font-weight: 800; text-align: right; font-size: 13px; color: var(--navy-ink); }
.overall { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; text-decoration: none; color: inherit; }
.overall b { font-size: 16px; color: var(--navy-ink); }
.overall .ring { width: 62px; height: 62px; }
.overall .ring::before { inset: 6px; }

/* ---- 6. Detailed feedback ---- */
.tabs3 { display: flex; gap: 6px; padding: 12px 20px 4px; }
.tabs3 button { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 4px; font-size: 11.5px; font-weight: 700; color: var(--navy-ink); white-space: nowrap; }
.tabs3 button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fb { border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; transition: opacity .2s; }
.fb h3 { margin: 0 0 8px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.fb ul { margin: 0; padding-left: 18px; font-size: 13px; color: #3b4160; }
.fb li { margin-bottom: 5px; }
.fb.good { background: var(--green-soft); } .fb.good h3 { color: var(--green-d); }
.fb.improve { background: var(--red-soft); } .fb.improve h3 { color: #c0333a; }
.fb.next { background: var(--blue-soft); } .fb.next h3 { color: var(--navy); }
.fb.dim { opacity: .45; }
.say { margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.7); font-size: 12.5px; font-style: italic; color: var(--ink); }

/* ---- 7. Progress ---- */
.range { white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--navy-ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 12px; }
.stat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; }
.stat .ic svg { width: 18px; height: 18px; }
.stat span { display: block; font-size: 11px; color: var(--muted); line-height: 1.25; }
.stat b { display: block; font-size: 20px; color: var(--navy-ink); margin-top: 4px; }
.radar svg { width: 100%; max-width: 520px; display: block; margin: 0 auto; }
.legend { display: flex; justify-content: flex-end; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: -6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.strengths { display: flex; gap: 8px; flex-wrap: wrap; }
.strengths span { padding: 7px 13px; border-radius: 999px; background: var(--green-soft); color: var(--green-d); font-size: 12.5px; font-weight: 700; }

/* ---- 8. Profile ---- */
.prof { display: flex; align-items: center; gap: 14px; padding: 14px 20px 8px; }
.prof .big { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 20px; font-weight: 800; display: grid; place-items: center; flex: none; }
.prof b { display: block; font-size: 18px; color: var(--navy-ink); }
.prof span { font-size: 12.5px; color: var(--muted); }
.menu a.card { display: grid; grid-template-columns: 40px 1fr 18px; gap: 12px; align-items: center; padding: 14px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.menu .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; }
.menu .ic svg { width: 20px; height: 20px; }
.menu b { display: block; font-size: 14px; color: var(--navy-ink); }
.menu span { font-size: 12px; color: var(--muted); }
.promo { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--blue-soft), var(--green-soft)); padding: 18px; }
.promo img { width: 40px; height: 40px; border-radius: 10px; }
.promo b { display: block; margin-top: 8px; font-size: 15px; color: var(--navy-ink); }
.promo span { font-size: 12.5px; color: var(--muted); }
.promo svg.mount { position: absolute; right: 8px; bottom: 0; width: 120px; }

/* =================== Desktop =================== */
@media (min-width: 900px) {
  .app { flex-direction: row; }
  .tabbar { display: none !important; }
  .side { display: flex; flex-direction: column; width: 248px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; overflow-y: auto; }
  .side .brand { flex: none; margin: 0 6px 26px; }
  .side .brand img { width: 40px; height: 40px; }
  .side .brand b { font-size: 15.5px; }
  .side nav { display: grid; gap: 4px; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: #4a5070; font-weight: 600; font-size: 14px; }
  .side nav a svg { width: 21px; height: 21px; }
  .side nav a:hover { background: var(--bg); }
  .side nav a.on { background: var(--navy); color: #fff; }
  .side-foot { margin-top: auto; padding: 16px; border-radius: 16px; background: linear-gradient(140deg, var(--blue-soft), var(--green-soft)); }
  .side-foot > b { display: block; color: var(--navy-ink); font-size: 14px; }
  .side-foot > span { font-size: 12px; color: var(--muted); }
  .side-foot .me-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(31,42,140,.12); text-decoration: none; color: inherit; }
  .side-foot .me-row b { display: block; font-size: 13px; color: var(--navy-ink); }
  .side-foot .me-row span { font-size: 11.5px; color: var(--muted); }
  .screen { padding-top: 0; }
  .page { max-width: 1180px; margin: 0 auto; padding: 26px 34px 40px; }
  .pad, .topbar, .filters, .tabs3, .hello, .prof { padding-left: 0; padding-right: 0; }
  .topbar { padding-top: 0; padding-bottom: 6px; }
  .h1 { font-size: 26px; }
  .sub { font-size: 14px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .brandrow { display: none; }
  .deskbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
  /* Home */
  .hello { background: linear-gradient(115deg, #fff 30%, var(--green-soft)); border-radius: 22px; box-shadow: var(--shadow); padding: 28px 30px; margin-bottom: 18px; min-height: 170px; }
  .hello h1 { font-size: 26px; }
  .hello h1 b { font-size: 34px; }
  .hello p { max-width: 420px; font-size: 15px; }
  .hello svg.mount { width: 230px; right: 30px; }
  .home .pad { padding: 0; }
  .home .score { margin-top: 0 !important; }
  .sess { padding: 14px 18px; }
  /* Coaches */
  .coachgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 14px; }
  .coachgrid .coach { margin: 0; padding: 18px; }
  .coach:hover { transform: translateY(-2px); }
  /* Scenarios */
  .scngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 10px; }
  .scngrid .scn { grid-template-columns: 1fr; margin: 0; padding: 18px; align-content: start; }
  .scngrid .scn .art { width: 100%; height: 140px; border-radius: 16px; }
  .scngrid .scn .art svg { width: 64px; height: 64px; }
  .filters { padding-top: 16px; padding-bottom: 8px; }
  /* Live session: large stage on the left, conversation panel on the right */
  .app.dark .screen { background: var(--bg); }
  .page.sessionpage { max-width: 1320px; padding-bottom: 26px; }
  .livewrap { position: relative; min-height: 0; background: none; color: var(--ink); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); grid-template-rows: auto 1fr; gap: 18px; height: calc(100dvh - 52px); }
  .live-top { position: static; grid-column: 1 / -1; grid-row: 1; background: none; padding: 0; }
  .live-top .back { color: var(--navy); }
  .live-top .ttl { font-size: 24px; font-weight: 800; color: var(--navy-ink); }
  .live-top .ttl small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
  .live-top .tmr { background: #fff; box-shadow: var(--shadow); padding: 8px 14px; border-radius: 999px; color: var(--navy-ink); }
  .stagev { grid-column: 1; grid-row: 2; position: relative; height: auto; min-height: 0; border-radius: 24px; box-shadow: 0 20px 50px rgba(16,22,79,.25); }
  .stagev.talking { box-shadow: 0 20px 50px rgba(16,22,79,.25), 0 0 0 4px rgba(45,186,55,.9); animation: talkring-d 1.6s ease-in-out infinite; }
  @keyframes talkring-d { 50% { box-shadow: 0 20px 50px rgba(16,22,79,.25), 0 0 0 9px rgba(45,186,55,.3); } }
  .stagev .still { object-position: 50% 8%; }
  .lip-wrap video { object-position: 50% 35%; }
  .stagev::after { height: 25%; }
  .live-bottom { grid-column: 2; grid-row: 2; position: static; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, #121a5c, #0b1033); color: #fff; display: flex; flex-direction: column; min-height: 0; }
  .panel-h { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: auto; border-bottom: 1px solid rgba(255,255,255,.12); }
  .panel-h img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; }
  .panel-h b { display: block; font-size: 15px; }
  .panel-h span { font-size: 12px; color: #b9c6ff; }
  .live-bottom .tipline { margin-top: 18px; }
  .bubble { max-height: 280px; font-size: 15px; }
  .pinbox { position: fixed; }
  /* Feedback */
  .fbgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; padding-top: 10px; }
  .detgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; padding-top: 10px; }
  .detgrid .fb { margin: 0; }
  .detgrid .fb.dim { opacity: 1; }
  .detgrid .fb:not(.dim) { box-shadow: 0 0 0 2px var(--navy); }
  .tabs3 { max-width: 560px; }
  .detbtn { max-width: 360px; margin-top: 18px; }
  /* Progress */
  .stat { padding: 18px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 12.5px; }
  .proggrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .radar svg { max-width: 430px; }
  /* Profile */
  .profgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .promo { min-height: 220px; padding: 26px; }
  .promo svg.mount { width: 200px; }
  .toast { bottom: 40px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .scngrid { grid-template-columns: repeat(2, 1fr); }
  .detgrid { grid-template-columns: 1fr; }
  .livewrap { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); }
}
