/* KENT LIVE SPEAKING UI · sourced from the effective final CSS layers of user-supplied IELTS P1/P2/P3.
   Purely presentational: no mutation of VSTEP JSON, evidence state, timers, microphone, TTS or scoring.
   Canonical semantic tokens in source/design-system/kent-live-tokens.json. */
:root{
  --kent-black:#121212;--kent-orange:#F4512A;--kent-orange-dark:#D93F1C;
  --kent-cream:#FFF3E9;--kent-paper:#FBF8F3;--kent-canvas:#FBF8F3;
  --kent-line:#DFD8D0;--kent-line-strong:#DFD8D0;--kent-muted:#6B655F;
  --kent-green:#E9F4EE;--kent-red:#FDE4E4;
  --ink:#121212;--orange:#F4512A;--soft:#FFF3E9;--line:#DFD8D0;--muted:#6B655F;
  --k-tint:#F6F0E9;--k-panel:#FFFDFA;--k-panel-border:#E6D9CE;
  --k-active:#FDE9E1;--k-active-border:#F2C5B4;--k-success:#235D31;
  --k-font-ui:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --k-font-explanation:"Segoe UI","Noto Sans",Arial,Helvetica,sans-serif;
  --k-shell:1280px;--k-sidebar:300px;--k-step-radius:10px;
}
body{font-family:var(--k-font-ui);font-size:14px;line-height:1.6;color:var(--ink);background:#FBF8F3}
button,input,select,textarea{font-family:var(--k-font-ui)}
.app-shell{width:min(96vw,var(--k-shell))}
.site-header{background:rgba(251,248,243,.97);border-top:0;border-bottom:1px solid var(--kent-line)}
.header-shell{min-height:58px;padding:8px 4px;gap:12px}
.brand-lockup{gap:9px}
.brand-emblem{width:42px;height:38px;object-fit:contain;flex:0 0 auto}
.brand-wordmark{font-family:var(--k-font-ui);font-weight:800;font-size:20px;letter-spacing:-.045em}
.brand-english{color:var(--orange)}
.header-context{gap:10px;min-width:0}
.product-context{font-size:12px;color:#4F4640;gap:7px;max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-context strong{font-weight:800;color:var(--ink);font-size:15px;overflow:hidden;text-overflow:ellipsis}
.header-status{background:#FDE9E1;color:#B83A18;border:1px solid #F2C5B4;border-radius:999px;padding:7px 11px;font-weight:800;white-space:nowrap}
.main-shell{padding:16px 0 48px}
.muted{color:var(--muted);font-size:14px;font-weight:400;line-height:1.65}
.small{font-size:12px}.mini-note{font-size:11px;font-weight:400;line-height:1.55}
.eyebrow,.box-label,.part-kicker,.question-label{font-size:11px;font-weight:800;letter-spacing:.1em;color:#D93F1C}
.intro-title,.intro-panel h2,.editorial-title strong,.catalog-toolbar-count,.topic-card h3,.detail-title h1,.activity-head h2,.learning-card h2,.learning-card h3{font-family:var(--k-font-ui)}
.intro-copy{background:transparent}.intro-title{font-size:clamp(48px,6vw,80px)}
.intro-panel{background:#121212}.home-part-row{background:#FFFDFA;border-bottom-color:#E6D9CE}.home-part-copy h2{font-size:22px;font-weight:800}
.editorial-title strong{font-size:clamp(28px,3.1vw,39px);font-weight:800}.editorial-index,.topic-index{font-family:var(--k-font-ui);font-weight:800}
.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px}
.topic-card{border-bottom-color:#DFD8D0;min-height:176px;background:transparent}
.topic-card h3{font-size:19px;font-weight:800;line-height:1.15;letter-spacing:-.045em}
.topic-card .topic-meta span{font-size:13px;font-weight:400}.topic-progress{border-radius:999px;background:#F2ECE5;border:1px solid #E6D9CE;padding:5px 10px;font-family:var(--k-font-ui);font-size:11px;font-weight:800;color:#4F4640}
.topic-card--active .topic-progress{background:#FDE9E1;border-color:#F2C5B4;color:#B83A18}.topic-card--complete .topic-progress{background:#E9F4EE;border-color:#BFD7C4;color:var(--k-success)}
.landing-toolbar .search-row input{background:#FFFFFF;border:1px solid #DFD8D0;border-radius:10px;min-height:45px;font-size:15px}
.part-tab{font-size:11px;font-weight:800}
/* The active task is a single horizontal question bar, matching the actual IELTS P1 learner screen. */
.detail-header{margin-bottom:10px;padding:8px 0;border-color:var(--line);grid-template-columns:auto minmax(0,1fr) auto}
.detail-title h1{font-size:20px;font-weight:800;letter-spacing:-.045em}
.detail-context{font-size:10px;font-weight:800;color:var(--kent-orange-dark)}
.detail-tools{margin-bottom:9px}
.question-bar{display:flex;align-items:center;gap:12px;padding:8px 12px;margin-bottom:11px;background:#FFFDFA;border:1px solid #E6D9CE;border-radius:14px;min-width:0}
.question-audio-button{width:39px;height:39px;border-radius:999px;background:#121212;color:white;border:0;font-size:18px;display:grid;place-items:center;flex:0 0 auto}
.question-audio-button:hover{background:var(--orange)}
.question-bar-main{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.question-bar-label{font-size:11px;letter-spacing:.11em;color:#D93F1C;font-weight:850}
.question-bar h3{margin:0;font-size:16px;line-height:1.35;font-weight:800;overflow-wrap:anywhere}
.question-bar .question-nav{margin:0;padding:0;flex:0 0 auto;display:flex;gap:6px;max-width:38%;overflow-x:auto;flex-wrap:nowrap}
.question-bar .question-chip{width:32px;height:32px;min-width:32px;max-width:32px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #DCCDC1;border-radius:9px;background:#F5EEE7;color:#4F4640;font-size:11px;font-weight:800;white-space:nowrap}
.question-bar .question-chip.active{background:#121212;color:#fff;border-color:#121212}.question-bar .question-chip.done:not(.active){background:#E9F4EE;color:#235D31;border-color:#BFD7C4}
.question-part-pill{padding:6px 10px;border-radius:9px;background:#F5EEE7;border:1px solid #DCCDC1;font-size:11px;font-weight:800;white-space:nowrap}
/* IELTS P1/P3 live step grid: compact numbered boxed cells; preserve eight VSTEP gates. */
.flow-nav-wrap{border:0;border-radius:0;padding:0;margin:0 0 9px;background:transparent}
.flow-nav-head{margin:0 0 7px;padding:0 0 5px;border-bottom:1px solid #DFD8D0}
.flow-nav-label{font-size:11px;font-weight:800;letter-spacing:.1em;color:#D93F1C}
.stepRail.flow-nav{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.step.flow-step{min-height:46px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:7px;padding:8px 9px;background:#F2ECE5;border:1px solid #E6D9CE;border-radius:10px;color:#4F4640;font-size:12px;font-weight:700;line-height:1.22;text-align:left;letter-spacing:0}
.step.flow-step+.step.flow-step{border-left:1px solid #E6D9CE}
.step.flow-step .flow-step-num{width:22px;height:22px;min-width:22px;background:#FBF8F3;border:1px solid #E6D9CE;border-radius:7px;display:flex;justify-content:center;align-items:center;color:#4F4640;font-family:var(--k-font-ui);font-size:10px;font-weight:800}
.step.flow-step .flow-step-name{display:block;overflow-wrap:normal;word-break:normal;font-size:12px;font-weight:700}
.step.flow-step.active{background:#FDE9E1;border:1px solid #F2C5B4;color:#121212}
.step.flow-step.active .flow-step-num{background:var(--orange);border-color:var(--orange);color:white}
.step.flow-step.done:not(.active){background:#E9F4EE;border-color:#C7DCCB;color:#235D31}
.step.flow-step.done:not(.active) .flow-step-num{background:#E9F4EE;border-color:#BFD7C4;color:#235D31}
.step.flow-step .step-check{display:none}.step.flow-step.locked{opacity:.35}
/* Learning canvas + 300px sidebar: VSTEP's own engine components remain in the left activity. */
.workspace{display:grid;grid-template-columns:minmax(0,1fr) var(--k-sidebar);grid-template-areas:'activity reference';gap:16px;align-items:start}
.workspace>.rightside{grid-area:activity;min-width:0}
.workspace>.left{grid-area:reference;position:sticky;top:76px;min-width:0}
.workspace .learning-card.activity{background:#F6F0E9;border:1px solid #E4D8CD;border-radius:18px;padding:19px;box-shadow:none}
.workspace .learning-card.activity .activity-head{padding:0;margin:0 0 16px;border-bottom:0}
.workspace .learning-card.activity .activity-head h2{font-family:var(--k-font-ui);font-size:24px;font-weight:800;line-height:1.15;letter-spacing:-.045em;margin:4px 0 6px}
.workspace .learning-card.activity .step-eyebrow{font-size:11px;font-weight:800;letter-spacing:.1em;color:#D93F1C;text-transform:uppercase}
.workspace .learning-card.activity .activity-head p{font-size:14px;font-weight:400;line-height:1.65;color:#6B655F}
.workspace .learning-card.task{background:#FFFDFA;border:1px solid #E6D9CE;border-radius:14px;box-shadow:none;padding:16px}
.workspace .learning-card.task h2{font-family:var(--k-font-ui);font-size:18px;line-height:1.3;font-weight:800}
.taskHead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.taskHead .question-label{font-size:11px}.task-context-meta{color:#6B655F;font-size:10px;font-weight:700;white-space:nowrap}
.workspace .task-reference{border:0;padding:10px 4px;background:transparent}.workspace .task-reference .step-eyebrow{font-size:11px}
.workspace .task-reference p{font-size:12px;line-height:1.55;font-weight:400}
.voicePanel,.languagePanel,.selfChecks,.g5Unit,.modelExample,.card,.note-panel,.record-panel,.listen-panel{background:#FFFDFA;border:1px solid #E6D9CE;border-radius:14px;box-shadow:none}
.voicePanel,.languagePanel,.selfChecks,.g5Unit,.modelExample,.note-panel{padding:16px}
.field,.question-chip,.progress-chip{border:1px solid #E6D9CE;background:#fff;border-radius:9px;font-size:14px;font-weight:400}
.field:focus{border-color:var(--orange)}
.button,.btn-orange,.btn-black,.btn-soft{font-family:var(--k-font-ui);font-size:14px;font-weight:750;min-height:44px;border-radius:999px;padding:10px 18px}
.btn-orange,.button.dark{background:#F4512A;border-color:#F4512A;color:white}.btn-black{background:#121212;border-color:#121212;color:#fff}
.actionRow{gap:8px}.step-actions{margin-top:16px}
.optionList li,.mindmap,.node,.centerNode{border-color:#E6D9CE;background:#FFFDFA;border-radius:9px}
.mindmap{min-width:0;max-width:100%}.task .question{padding:10px 12px;border-left:3px solid var(--orange);border-radius:8px;background:#F6F0E9}
/* Maintain accessible control sizes and responsive, scrollable eight-step route. */
@media(max-width:1260px){.stepRail.flow-nav{display:flex;overflow-x:auto;padding-bottom:4px;overscroll-behavior-x:contain}.step.flow-step{flex:0 0 147px;white-space:normal}}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 285px}}
@media(max-width:850px){.workspace{grid-template-columns:1fr;grid-template-areas:'reference' 'activity'}.workspace>.left{position:static}.workspace .learning-card.task{padding:13px}.header-context .product-context{max-width:42vw}}
@media(max-width:650px){.app-shell{width:min(94vw,1280px)}.header-shell{min-height:58px;padding:6px 0}.brand-emblem{width:32px;height:31px}.brand-wordmark{font-size:17px}.header-status{display:none}.product-context{font-size:11px}.product-context strong{font-size:12px}.main-shell{padding-top:12px}.detail-header{gap:6px}.detail-title h1{font-size:18px}.detail-tools{flex-wrap:wrap}.question-bar{gap:8px;padding:7px 8px}.question-bar h3{font-size:14px}.question-bar .question-nav{max-width:41%}.question-bar .question-chip{width:29px;height:29px;min-width:29px}.question-audio-button{height:34px;width:34px;font-size:16px}.step.flow-step{flex-basis:135px;min-height:45px}.workspace .learning-card.activity{padding:15px;border-radius:16px}.workspace .learning-card.activity .activity-head h2{font-size:22px}.topic-grid{grid-template-columns:1fr}.topic-card{padding-left:70px}.topic-index{font-size:36px;left:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
