@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{font-family:'DM Sans','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#302720;background:#f7f4ed;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#302720;--ink-soft:#493a31;--muted:#8c7e72;--muted-light:#a99c8f;--line:#e9e1d6;--paper:#f7f4ed;--surface:#fffefa;--surface-soft:#fbf7f1;--rust:#d97654;--rust-dark:#b95b3b;--rust-wash:#f8e8df;--cocoa:#593c2e;--brown:#8b5739;--sand:#ecd7c1;--sage:#7b8d60;--sage-wash:#edf1e5;--sky:#7998b2;--sky-wash:#eaf0f3;--shadow:0 12px 38px #58432a0c;--shadow-hover:0 18px 42px #58432a17}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh;background:var(--paper)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d9765460;outline-offset:2px}.shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}

/* Shared app frame */
.rail{position:sticky;top:0;height:100vh;padding:21px 17px 17px;background:#fcfaf6;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{height:86px;display:flex;align-items:center;justify-content:center;padding:0 3px 13px;margin-bottom:15px;border-bottom:1px solid #efe9df;color:inherit;text-decoration:none}.brand-logo{display:block;width:min(100%,218px);height:auto;object-fit:contain}.rail-label,.top-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#a49383}.rail-label{padding:0 12px 10px}.main-nav{display:flex;flex-direction:column;gap:5px}.nav-item{position:relative;min-height:45px;padding:0 12px;border:0;background:transparent;border-radius:12px;display:flex;align-items:center;gap:11px;text-align:left;color:#786b60;font-size:12px;font-weight:600;transition:background .18s,color .18s,transform .18s}.nav-item:hover{background:#f4eee5;color:var(--cocoa);transform:translateX(2px)}.nav-item.active{color:var(--rust-dark);background:var(--rust-wash);font-weight:800}.nav-item.active:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 4px 4px 0;background:var(--rust)}.nav-icon{width:22px;height:22px;display:grid;place-items:center;text-align:center;color:#9a8877;font-family:Manrope,sans-serif;font-size:16px;line-height:1;flex:none}.nav-item.active .nav-icon{color:var(--rust-dark)}.nav-item .nav-badge{margin-left:auto;background:var(--rust);color:white;border-radius:20px;padding:3px 7px;font-size:9px}.rail-promo{margin-top:auto;margin-bottom:13px;padding:15px 14px 14px;border:1px solid #eadfd1;background:linear-gradient(148deg,#fffaf3,#f7ecdf);border-radius:16px;display:flex;flex-direction:column;gap:8px;overflow:hidden;position:relative}.rail-promo:after{content:'✦';position:absolute;right:13px;top:10px;color:#d5a179;font-size:17px}.promo-overline{font-size:8px;letter-spacing:1.5px;font-weight:800;color:#bd8b67}.rail-promo strong{font-size:11px;color:#654631}.rail-promo small{font-size:9px;color:#9c8978;line-height:1.5}.streak-track{height:5px;background:#ead9c8;border-radius:9px;overflow:hidden}.streak-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e5a37b,var(--rust-dark));border-radius:inherit;transition:width .3s}.rail-bottom{border-top:1px solid #efe9df;padding-top:13px}.connection-mini{display:flex;align-items:center;gap:7px;font-size:10px;color:#9c8d7e;padding:0 12px 9px}.connection-mini i{display:block;width:7px;height:7px;border-radius:50%;background:#c8bdb0}.connection-mini i.online{background:#7b9b63;box-shadow:0 0 0 4px #7b9b6320}.settings-nav{width:100%;font-size:10px;height:39px}.settings-nav .nav-icon{font-size:15px}.privacy-note{font-size:8px;color:#aa9b8d;padding:7px 12px 0}.privacy-note span{font-size:7px;color:var(--sage);margin-right:5px}.main-shell{min-width:0;display:flex;flex-direction:column;max-width:1700px;width:100%;margin:0 auto;padding:0 42px}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9e2d8;flex-shrink:0}.topbar h1{font:800 20px Manrope,'Noto Sans SC',sans-serif;letter-spacing:-.5px;margin:5px 0 0;color:var(--ink)}.top-eyebrow{font-size:8px;letter-spacing:1.5px}.top-actions{display:flex;align-items:center;gap:12px}.target-chip{height:37px;padding:0 12px;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;font-size:10px;color:#86796d}.target-chip b{color:var(--rust-dark);font-size:12px}.target-icon{height:20px;width:20px;border-radius:7px;background:var(--rust-wash);display:grid;place-items:center;color:var(--rust-dark);font-weight:800}.avatar-button{height:35px;width:35px;border:0;border-radius:50%;background:#ead3c0;color:#72482f;font-size:11px;font-weight:800}.top-settings{display:flex;height:35px;width:35px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:#85766a;font-size:15px}.app-footer{display:flex;justify-content:space-between;gap:12px;padding:17px 0 19px;margin-top:auto;color:#aa9e91;font-size:8px;line-height:1.5}#viewRoot{padding:27px 0 36px;flex:1;min-width:0;outline:0}.view-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:23px;gap:18px}.view-heading h2{font:800 25px Manrope,'Noto Sans SC',sans-serif;letter-spacing:-.7px;margin:0 0 8px}.view-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.7;max-width:720px}.eyebrow{font-size:8px;font-weight:800;letter-spacing:1.45px;color:#a27e61;margin-bottom:8px;display:block}.surface{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.surface-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.surface-head h3{font:800 14px Manrope,'Noto Sans SC',sans-serif;margin:0;color:var(--ink-soft)}.surface-head p{font-size:10px;color:var(--muted);margin:6px 0 0;line-height:1.6}.link-button,.text-button{border:0;background:transparent;color:var(--rust-dark);font-size:10px;font-weight:700;padding:6px}.link-button:hover,.text-button:hover{text-decoration:underline}.primary-button,.secondary-button,.soft-button,.danger-button{border:0;border-radius:11px;padding:11px 16px;font-size:10px;font-weight:800;transition:transform .17s,box-shadow .17s,background .17s}.primary-button{background:var(--rust);color:white;box-shadow:0 8px 20px #d9765432}.primary-button:hover{transform:translateY(-1px);background:#ce6848;box-shadow:0 11px 23px #d9765440}.secondary-button{background:#f1ece4;color:#725e4d;border:1px solid #e9e0d5}.secondary-button:hover{background:#ebe2d7}.soft-button{background:var(--rust-wash);color:var(--rust-dark)}.danger-button{background:#fff0eb;color:#b04f38}.small-button{padding:7px 10px!important}.pill{display:inline-flex;align-items:center;border-radius:20px;padding:5px 9px;background:#f3eee8;color:#8b7a6b;font-size:8px;font-weight:700}.pill.blue{background:var(--sky-wash);color:#64839b}.pill.green{background:var(--sage-wash);color:#6c8056}.pill.amber{background:#fbefdd;color:#a87842}.pill.terra{background:var(--rust-wash);color:#b96244}

/* Dashboard */
.hero-card{position:relative;overflow:hidden;min-height:220px;padding:31px 34px;border-radius:24px;color:var(--ink);background:linear-gradient(108deg,#f0d9c3 0%,#f7e8d8 52%,#f4dcc8 100%);display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 14px 36px #87634412}.hero-card:before,.hero-card:after{content:'';position:absolute;pointer-events:none;border:1px solid #b9886630;border-radius:50%}.hero-card:before{width:340px;height:340px;right:10%;top:-240px}.hero-card:after{width:260px;height:260px;right:21%;bottom:-213px}.hero-copy{position:relative;z-index:2;max-width:550px}.hero-copy .eyebrow{color:#a46e4f}.hero-copy h2{font:800 27px Manrope,'Noto Sans SC',sans-serif;letter-spacing:-.8px;margin:0 0 10px;max-width:470px}.hero-copy p{font-size:11px;line-height:1.8;color:#7c604d;margin:0;max-width:500px}.hero-proof{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:9px;font-weight:700;color:#8b694f}.hero-proof i{height:4px;width:4px;border-radius:50%;background:#cc9875}.hero-fox-frame{position:absolute;z-index:1;right:164px;bottom:-22px;width:236px;height:236px;overflow:hidden;opacity:.98;filter:drop-shadow(0 14px 14px #60422b14);pointer-events:none}.hero-fox-frame img{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center}.hero-card>.primary-button{position:relative;z-index:2;white-space:nowrap;background:var(--rust-dark);padding:13px 19px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:16px 0}.metric-card{padding:17px 18px;min-height:110px}.metric-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8e7f70}.metric-symbol{display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#f7ece1;color:#b36846;font-size:13px}.metric-value{font:800 25px Manrope,sans-serif;color:var(--ink);margin-top:9px;letter-spacing:-.7px}.metric-value small{font:600 9px 'DM Sans',sans-serif;color:#a19385;letter-spacing:0;margin-left:5px}.metric-foot{font-size:9px;color:#a09284;margin-top:3px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:15px}.activity-card,.plan-card{padding:20px 21px}.week-chart{height:145px;display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:12px;padding:4px 4px 0}.day-col{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}.day-bar-wrap{height:108px;display:flex;align-items:flex-end;width:100%;justify-content:center;border-bottom:1px solid #eee6dc}.day-bar{width:min(28px,70%);min-height:4px;border-radius:8px 8px 3px 3px;background:#e8d9ca;position:relative;transition:height .35s ease}.day-bar.today{background:linear-gradient(#e9a179,#c76745)}.day-label{font-size:9px;color:#a29485}.activity-legend{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:#9a8c7d;font-size:9px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--rust);margin-right:6px}.plan-focus{padding:14px;border-radius:13px;background:#faf4ec;border:1px solid #f1e5d7;margin-top:10px}.plan-focus strong{font-size:11px;color:#62452f;display:block;margin-bottom:6px}.plan-focus p{font-size:9px;color:#8d7b69;line-height:1.7;margin:0}.plan-row{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #f0e9e0;align-items:flex-start}.plan-row:last-child{border-bottom:0;padding-bottom:0}.plan-mark{width:23px;height:23px;flex:none;border-radius:8px;background:var(--rust-wash);color:var(--rust-dark);display:grid;place-items:center;font-size:9px}.plan-row strong{font-size:10px;color:#665548;display:block;margin:2px 0 4px}.plan-row small{font-size:9px;color:#a09284;line-height:1.55;display:block}.section-row{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.section-row h3{font:800 14px Manrope,'Noto Sans SC',sans-serif;margin:0;color:var(--ink-soft)}.section-row p{font-size:10px;color:var(--muted);margin:6px 0 0}.section-row-large{align-items:center}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.quick-card{padding:17px 18px;display:flex;align-items:flex-start;gap:13px;min-height:116px;transition:transform .18s,border-color .18s,box-shadow .18s;cursor:pointer}.quick-card:hover,.topic-card:hover,.mode-card:hover{transform:translateY(-2px);border-color:#ddc3ad;box-shadow:var(--shadow-hover)}.quick-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--rust-wash);color:var(--rust-dark);font-size:13px;font-weight:800;flex:none}.quick-card h4{font-size:11px;margin:2px 0 6px;color:#493a31}.quick-card p{font-size:9px;line-height:1.6;color:#938575;margin:0}.feature-line{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}

/* Practice library and question detail */
.practice-hero{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:214px;padding:30px 34px;overflow:hidden;border-radius:23px;background:linear-gradient(106deg,#e8d2bc,#f6e8d9 59%,#eed6c2);margin-bottom:23px}.practice-hero:after{content:'';position:absolute;width:330px;height:330px;border:1px solid #b98b6930;border-radius:50%;right:80px;top:-204px}.practice-hero-copy{position:relative;z-index:2;max-width:600px}.practice-hero-copy h2{font:800 27px Manrope,'Noto Sans SC',sans-serif;margin:0 0 9px;letter-spacing:-.8px}.practice-hero-copy p{font-size:11px;line-height:1.7;color:#7d634e;max-width:500px}.practice-hero-stats{display:flex;gap:11px;align-items:center;margin-top:18px;font-size:9px;color:#8c715a}.practice-hero-stats b{color:#a45c3b;font-size:12px}.practice-hero-stats i{width:4px;height:4px;background:#c6906e;border-radius:50%}.practice-hero-art{position:absolute;right:44px;top:10px;width:210px;height:210px;overflow:hidden;z-index:1;filter:drop-shadow(0 12px 10px #60422b17)}.practice-hero-art img{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center}.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:14px 0 20px}.mode-card{padding:18px 19px;cursor:pointer;transition:.18s;position:relative;overflow:hidden;min-height:178px}.mode-card h3{margin:13px 0 7px;font-size:13px;color:#47382d}.mode-card p{font-size:10px;line-height:1.7;color:#897a6d;margin:0 0 12px;max-width:330px}.mode-number{display:inline-grid;place-items:center;width:30px;height:30px;background:#f5e8dc;border-radius:10px;color:#b66b49;font:800 10px Manrope}.mode-time{float:right;padding:6px 9px;border-radius:20px;background:#fff9f1;color:#96785f;font-size:8px;font-weight:700}.mode-link{font-size:9px;font-weight:800;color:var(--rust-dark)}.mode-p1{background:linear-gradient(140deg,#fffefa,#fff8ed)}.mode-p2{background:linear-gradient(140deg,#fffefa,#f9f0e7)}.mode-p3{background:linear-gradient(140deg,#fffefa,#f0f0e7)}.skill-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0 0 19px}.skill-card{padding:16px;min-height:154px;display:flex;flex-direction:column;align-items:flex-start}.skill-card h3{margin:12px 0 6px;font-size:12px;color:#4c3b30}.skill-card p{margin:0 0 10px;color:#8f8173;font-size:9px;line-height:1.65;flex:1}.skill-card .link-button{padding:0;color:var(--rust-dark);font-weight:800}.topic-library{padding:21px}.practice-toolbar{display:flex;gap:11px;align-items:center;margin:17px 0 13px;flex-wrap:wrap}.filter-row{display:flex;gap:6px;flex-wrap:wrap}.filter-chip{border:1px solid #e8dfd5;border-radius:20px;background:#fffefa;padding:7px 10px;color:#8d7d6d;font-size:9px;font-weight:700;transition:.15s}.filter-chip:hover{border-color:#dbb79d}.filter-chip.active{background:var(--rust-wash);border-color:#efd8ca;color:#b35e40}.search-field{margin-left:auto;display:flex;align-items:center;gap:8px;width:min(280px,100%);height:38px;border:1px solid var(--line);border-radius:11px;background:white;padding:0 11px;color:#a18f7f}.search-field span{font-size:16px}.search-field input{width:100%;border:0;outline:0;font-size:10px;color:#59483a;background:transparent}.topic-results-head{display:flex;justify-content:space-between;margin:8px 1px 11px;color:#a09182;font-size:9px}.topic-results-head b{color:#59483a}.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.topic-card{padding:14px 15px 12px;min-height:157px;display:flex;flex-direction:column;transition:transform .16s,border-color .16s,box-shadow .16s}.topic-meta{display:flex;justify-content:space-between;align-items:center}.favorite-button{margin-left:auto;border:1px solid #eee5da;background:#fcf8f2;color:#aa9b8c;border-radius:9px;min-width:28px;height:26px;padding:0 7px;font-size:12px}.favorite-button.saved{color:#bd7b35;background:#fbf0da;border-color:#f2dec0}.topic-card .pill{font-size:8px}.topic-main{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;text-align:left;padding:12px 0 10px;color:inherit}.topic-card-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:#f5e8dc;color:#a55f40;font:800 15px Manrope;flex:none}.topic-card:nth-child(3n+2) .topic-card-icon{background:#eff0e7;color:#72805b}.topic-card:nth-child(3n) .topic-card-icon{background:#eaf0f3;color:#66829a}.topic-card-content{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.topic-card-content strong{font-size:11px;color:#45382e}.topic-card-content small{font-size:9px;color:#9a8978}.topic-chevron{color:#b39278;font-size:13px}.topic-card-foot{border-top:1px solid #f0e9e0;padding-top:9px;display:flex;justify-content:space-between;align-items:center;margin-top:auto}.topic-card-foot span{font-size:8px;color:#a09182}.topic-card-foot button{border:0;background:transparent;color:#b35e40;font-size:9px;font-weight:800;padding:3px}.topic-breadcrumb{display:flex;align-items:center;gap:9px;margin:0 0 14px;color:#a39281;font-size:10px}.topic-breadcrumb button:not(.favorite-button){border:0;background:transparent;padding:0;color:#8c7969;font-size:10px}.topic-breadcrumb .favorite-button{margin-left:auto}.topic-detail-hero{display:flex;align-items:center;gap:16px;padding:21px 24px;margin-bottom:16px;border-radius:19px;background:linear-gradient(110deg,#f3e2d1,#fbf2e8);border:1px solid #efdfce}.topic-detail-icon{width:58px;height:58px;display:grid;place-items:center;flex:none;border-radius:17px;background:#e5c6ac;color:#7d4c32;font:800 22px Manrope}.topic-detail-hero>div:nth-child(2){flex:1}.topic-detail-hero .eyebrow{margin-bottom:4px}.topic-detail-hero h2{font:800 20px Manrope,'Noto Sans SC',sans-serif;margin:0 0 5px}.topic-detail-hero p{margin:0;color:#8b7665;font-size:9px}.topic-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:15px;align-items:start}.topic-questions{min-width:0}.part-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:17px}.part-tab{display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;border:1px solid var(--line);border-radius:13px;background:#fffefa;padding:11px 14px;color:#837466}.part-tab b{font-size:10px}.part-tab small{font-size:8px;color:#a59687}.part-tab.active{border-color:#eac9b4;background:#fbefe6;color:#a75a3b;box-shadow:0 4px 14px #9c5a3410}.part-tab.active small{color:#b78264}.topic-question-heading{display:flex;justify-content:space-between;align-items:center;margin:0 1px 12px}.topic-question-heading h3{font-size:13px;margin:0 0 5px}.topic-question-heading p{font-size:9px;color:var(--muted);margin:0}.question-list{display:flex;flex-direction:column;gap:9px}.question-card{display:flex;align-items:center;gap:13px;padding:14px 15px;border:1px solid var(--line);background:var(--surface);border-radius:15px;box-shadow:var(--shadow)}.question-number{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#f5e9de;color:#a56345;font:800 10px Manrope;flex:none}.question-main{flex:1;min-width:0}.question-meta{display:flex;align-items:center;gap:8px;margin-bottom:7px}.question-status{font-size:8px;color:#a09182}.question-status.done{color:#728858}.question-card h3{font-size:11px;line-height:1.65;margin:0;color:#44382f;font-weight:700}.question-last{display:block;margin-top:6px;color:#988777;font-size:8px}.cue-card{padding:22px;border:1px solid #ead9c9;background:linear-gradient(140deg,#fffdf9,#fbf2e8);border-radius:17px}.cue-card h3{font:700 15px/1.75 Manrope,'Noto Sans SC',sans-serif;color:#44372e;margin:8px 0 15px}.cue-guide{border-top:1px solid #eee1d3;padding:13px 0 15px;font-size:10px;color:#796858}.cue-guide ul{margin:7px 0 0;padding-left:20px;color:#8c7b6a;line-height:1.9}.topic-sidebar{display:flex;flex-direction:column;gap:12px}.topic-aside-card{padding:17px}.topic-aside-card h3{font-size:12px;margin:3px 0 12px}.topic-progress{display:flex;align-items:baseline;gap:7px}.topic-progress strong{font:800 26px Manrope;color:#a45a3b}.topic-progress span{font-size:9px;color:#998879}.topic-progress-line{height:5px;margin:7px 0 9px;border-radius:9px;background:#f0e7dc;overflow:hidden}.topic-progress-line i{height:100%;display:block;background:var(--rust);border-radius:inherit}.topic-aside-card p,.practice-tips{font-size:9px;line-height:1.7;color:#948474}.practice-tips{padding-left:17px;margin:0 0 9px}.practice-tips li{padding:3px 0}

/* Plans, reports, vocabulary and rubric */
.content-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr);gap:14px}.form-card{padding:20px}.profile-score-row{display:flex;align-items:center;gap:13px;padding:13px;border-radius:13px;background:#f9f3ec;margin:12px 0 18px}.profile-score-row strong{font-size:12px}.profile-score-row p{font-size:9px;color:var(--muted);line-height:1.6;margin:5px 0 0}.score-ring{width:55px;height:55px;border:4px solid #e6c4ad;border-radius:50%;display:grid;place-items:center;color:#a25435;font:800 15px Manrope;flex:none}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid label{min-width:0}.field-label{font-size:9px;font-weight:800;color:#796858;display:block;margin-bottom:6px}.field,.select-field{width:100%;height:38px;border:1px solid #e5dbcf;border-radius:10px;background:#fffefa;padding:0 11px;color:#56473b;font-size:10px}.field::placeholder{color:#b6a99c}.field:focus,.select-field:focus{border-color:#d58b69;outline:none;box-shadow:0 0 0 3px #d9765415}.help-text{font-size:9px;color:#9d8d7c;line-height:1.65}.criteria-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.criterion-guide{padding:17px}.criterion-guide h3{font-size:12px;margin:12px 0 7px}.criterion-guide p{font-size:9px;line-height:1.75;color:#877869;margin:0}.rubric-scale{padding:18px;margin:14px 0}.band-scale-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.band-scale-grid article{border:1px solid var(--line);border-radius:13px;padding:14px;background:var(--surface-soft)}.band-scale-grid b{font-size:13px;color:var(--ink)}.band-scale-grid p{margin:7px 0 0;color:var(--muted);font-size:9px;line-height:1.7}.source-link{display:inline-block;margin-top:13px;color:var(--rust-dark);font-size:10px;font-weight:800;text-decoration:none}.source-link:hover{text-decoration:underline}.guide-note{padding:13px 15px;border-radius:12px;background:#f2eadf;color:#7d654f;font-size:9px;line-height:1.7;margin:13px 0}.report-section{padding:20px;margin-bottom:13px}.report-bars{display:flex;flex-direction:column;gap:10px}.bar-row{display:grid;grid-template-columns:minmax(120px,190px) 1fr 32px;gap:10px;align-items:center;font-size:9px;color:#7e6f60}.bar-track{height:8px;background:#f0e9e0;border-radius:8px;overflow:hidden}.bar-track i{display:block;height:100%;background:linear-gradient(90deg,#e5aa84,#c66745);border-radius:8px}.history-list{display:flex;flex-direction:column}.history-item{display:flex;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid #f0e9e0;cursor:pointer}.history-item:last-child{border-bottom:0}.history-item:hover{background:#fcf7f1}.history-icon{height:37px;width:37px;border-radius:12px;background:#f5e8dc;color:#a65e3e;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}.history-main{flex:1;min-width:0}.history-main strong{font-size:10px;color:#554336;display:block}.history-main small{font-size:8px;color:#a09182;display:block;margin-top:5px}.history-score{font-size:12px;color:#a2593b}.history-empty{padding:22px;color:#968676;font-size:10px;text-align:center}.report-summary{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:13px}.score-panel{padding:18px;display:flex;align-items:center;gap:16px;background:linear-gradient(120deg,#fffefa,#faf0e7)}.big-band{font:800 42px Manrope;color:#a85636;line-height:1}.score-caption{font-size:9px;color:#987966;margin-top:6px}.score-explain{font-size:9px;line-height:1.7;color:#837365}.criterion-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.criterion-card{padding:14px}.criterion-title{font-size:9px;color:#827364;font-weight:700}.criterion-score{font:800 20px Manrope;color:#a45838;margin:9px 0 5px}.criterion-card p{font-size:8px;color:#928273;line-height:1.6;margin:0}.evidence{padding:12px 13px;background:#faf6f0;border:1px solid #f0e7dc;border-radius:11px;color:#6e5c4d;font-size:9px;line-height:1.75;margin:8px 0}.evidence b{display:block;color:#594435;font-size:9px;margin-bottom:3px}.evidence blockquote{margin:7px 0 0;padding-left:10px;border-left:2px solid #d99170;color:#92674e}.feedback-list{display:flex;flex-direction:column;gap:7px}.feedback-item{display:flex;gap:9px;align-items:flex-start;padding:8px 10px;border-radius:10px;background:#faf6f0;color:#746353;font-size:9px;line-height:1.65}.feedback-item i{height:19px;width:19px;display:grid;place-items:center;border-radius:7px;background:#f3e5d8;color:#a76243;font-style:normal;font-weight:800;font-size:8px;flex:none}.correction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.correction{padding:11px;border:1px solid #eee4d8;border-radius:11px;background:#fffefa;font-size:9px;line-height:1.65}.correction del{color:#ad7562}.correction strong{display:block;color:#6c8056;margin:5px 0}.score-caption,.score-explain{max-width:500px}.vocab-list{display:flex;flex-direction:column;gap:8px}.vocab-item{display:flex;align-items:center;gap:14px;padding:14px 15px}.vocab-word{min-width:160px;font:800 12px Manrope;color:#5d4230}.vocab-meaning{flex:1;color:#776859;font-size:9px;line-height:1.65;min-width:0}.vocab-meaning small{display:block;color:#998979;margin-top:4px}.vocab-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.vocab-actions button{border:1px solid #e9dfd4;background:#fffefa;border-radius:9px;padding:7px 9px;color:#8b6a52;font-size:8px;font-weight:700}.vocab-actions button:hover{background:#f8eee5}.inline-form{display:flex;gap:7px;align-items:center}.inline-form .field{flex:1}.resource-links{display:flex;gap:8px;flex-wrap:wrap}.resource-links a{font-size:9px;color:#9e5d3e;text-decoration:none;border:1px solid #e9ded2;border-radius:9px;padding:9px 10px;background:#fffefa}.resource-links a:hover{background:#fbf1e8}.part-pill{font-size:7px;color:#937a65;background:#f4eee7;border-radius:6px;padding:4px 6px;white-space:nowrap}.hr{border:0;border-top:1px solid #eee7de;margin:13px 0}.small-note{font-size:8px;line-height:1.65;color:#9b8b7b}

/* Live speaking, scoring states, modal */
.session-layout{display:grid;grid-template-columns:minmax(0,1fr) 355px;gap:15px;align-items:stretch;min-height:min(760px,calc(100vh - 185px))}.session-stage{padding:22px 27px 19px;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 27%,#fffdfa 0%,#fbf7f1 54%,#f3ebe0 100%)}.session-stage-top{width:100%;display:flex;justify-content:space-between;align-items:center}.session-breadcrumb{font-size:8px;color:#a28e7a;letter-spacing:1px;font-weight:800}.session-part{font-size:8px;color:#a15b3d;background:#f5e7dc;padding:7px 10px;border-radius:20px}.session-title{text-align:center;margin-top:24px;max-width:700px}.session-question{width:min(620px,92%);max-height:114px;overflow:auto;margin:12px auto 0;padding:10px 15px;border:1px solid #eadfd3;border-radius:12px;background:#fffefa;color:#725b47;text-align:left}.session-question span{font-size:7px;font-weight:800;letter-spacing:1px;color:#ad7655}.session-question p{margin:5px 0 0;font-size:9px;line-height:1.6;white-space:pre-wrap}.session-title h2{font:800 19px Manrope,'Noto Sans SC',sans-serif;margin:0 0 7px;color:#44352b}.session-title p{font-size:9px;color:#938273;margin:0;line-height:1.65}.session-orb{height:clamp(175px,27vh,248px);width:clamp(175px,27vh,248px);margin:20px 0 12px;border-radius:50%;position:relative;display:grid;place-items:center;background:radial-gradient(circle at 31% 24%,#fff3df,#f3c69e 37%,#dc8e69 65%,#b86549 86%,#8d4d39);box-shadow:inset -19px -22px 34px #7a3e2c25,inset 12px 15px 24px #fff7e69c,0 0 50px #d98b6654;transition:transform .2s}.session-orb:before,.session-orb:after{content:'';position:absolute;inset:-18px;border-radius:50%;background:radial-gradient(circle,#e5b58b38,transparent 69%);z-index:-1}.session-orb:after{inset:-40px;opacity:.6}.session-orb.talking{animation:orb-pulse 1.6s ease-in-out infinite}.session-orb.listening{animation:orb-pulse 3.1s ease-in-out infinite}.orb-inner{width:44px;height:34px;display:flex;align-items:center;justify-content:center;gap:4px}.orb-inner i{height:12px;width:3px;background:#fff;border-radius:4px;opacity:.82}.orb-inner i:nth-child(2),.orb-inner i:nth-child(6){height:20px}.orb-inner i:nth-child(3),.orb-inner i:nth-child(5){height:28px}.orb-inner i:nth-child(4){height:16px}.live-status{font-size:10px;color:#806f5e;display:flex;align-items:center;gap:8px}.live-status i{height:7px;width:7px;background:#c4b8aa;border-radius:50%}.live-status.listening i{background:#7f9a64;box-shadow:0 0 0 4px #7f9a6422}.live-status.talking i{background:#d57b56;box-shadow:0 0 0 4px #d57b5622}.session-clock{font:600 12px Manrope;color:#9b8a78;margin-top:8px;font-variant-numeric:tabular-nums}.session-timers{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap;justify-content:center}.timer-chip{border:1px solid #eadfd3;background:#fffdf9;padding:7px 9px;border-radius:9px;font-size:8px;color:#8c7a68}.timer-chip b{color:#604633}.session-controls{display:flex;align-items:center;gap:12px;margin-top:17px}.round-control{height:44px;width:44px;border-radius:50%;border:1px solid #eadfd3;background:#fffefa;color:#8a785f;display:grid;place-items:center;font-size:15px}.round-control.danger{color:#c96d51;background:#fff8f4;border-color:#efd9cd}.round-control.muted{color:#c96d51;background:#fff0ea;border-color:#efd9cd}.main-control{height:47px;min-width:195px;border:0;border-radius:40px;background:var(--rust);color:white;padding:0 19px;font-size:10px;font-weight:800;box-shadow:0 8px 20px #d9765436}.main-control.end{background:#bf624a}.barge-row{display:flex;align-items:center;gap:7px;color:#877666;font-size:8px;margin-top:12px}.barge-row input{accent-color:var(--rust)}.stage-hint{font-size:8px;color:#a09181;margin:8px 0 0;text-align:center;line-height:1.6}.session-chat{display:flex;flex-direction:column;min-height:0;overflow:hidden}.chat-head{padding:17px 18px;border-bottom:1px solid #eee6dc}.chat-head h3{font-size:12px;margin:0;color:#493a30}.chat-head p{font-size:8px;color:#9a8b7c;margin:6px 0 0;line-height:1.6}.conversation{padding:15px;overflow:auto;flex:1;min-height:0}.empty-conversation{text-align:center;color:#9b8d7f;padding:55px 12px;font-size:9px;line-height:1.8}.chat-turn{display:flex;gap:8px;margin:0 0 13px;animation:appear .18s ease}.chat-turn.user{flex-direction:row-reverse}.chat-avatar{width:24px;height:24px;border-radius:8px;background:#f5e7db;color:#a35a3d;display:grid;place-items:center;flex:none;font-size:8px;font-weight:800}.chat-turn.user .chat-avatar{background:#edf0e5;color:#748452}.chat-bubble-wrap{max-width:calc(100% - 32px);min-width:0}.chat-label{font-size:7px;color:#a19181;margin:2px 0 4px}.chat-turn.user .chat-label{text-align:right}.chat-text{font-size:9px;color:#665548;background:#faf5ee;border:1px solid #efe5da;border-radius:3px 12px 12px 12px;padding:9px 10px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.chat-turn.user .chat-text{background:#f1f0e8;color:#5c604c;border-radius:12px 3px 12px 12px}.chat-turn.pending .chat-text:after{content:' ▍';color:#c57655;animation:blink .8s steps(1) infinite}.chat-footer{padding:11px 14px;border-top:1px solid #eee6dc;color:#9a8b7b;font-size:7px;line-height:1.6}.analysis-loading{padding:45px 28px;text-align:center;color:#897a6b;font-size:10px}.analysis-loading h2{font-size:20px;color:#493a30}.loading-dots{display:flex;justify-content:center;gap:5px;margin:14px}.loading-dots i{width:6px;height:6px;background:var(--rust);border-radius:50%;animation:dot 1s infinite}.loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}.flash-card{border:1px solid var(--line);border-radius:13px;padding:14px;background:#fbf6f0}.flash-card strong{font:800 16px Manrope;color:#9f593a}.flash-card p{font-size:9px;line-height:1.65;color:#786858}.flash-actions{display:flex;gap:7px;margin-top:10px}.status-callout{background:#f8f1e8;border:1px solid #eee2d4;padding:13px 14px;border-radius:11px;color:#826d58;font-size:9px;line-height:1.7}.status-callout.warning{background:#fff5e4;border-color:#f3e3c7;color:#9b7c48}.status-callout.success{background:#eff4e9;border-color:#e2ead8;color:#688052}.empty-box{padding:35px 20px;text-align:center;color:#978879;font-size:10px;line-height:1.7}.filter-row{display:flex;gap:6px;flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#34271d70;backdrop-filter:blur(4px);padding:18px}.modal{width:min(620px,100%);max-height:min(92vh,840px);overflow:auto;background:var(--surface);border:1px solid #eee2d7;border-radius:21px;box-shadow:0 28px 90px #22180f35}.modal-practice{width:min(850px,100%)}.modal-head{padding:21px 23px 16px;border-bottom:1px solid #f0e8de;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-head h2{font:800 18px Manrope,'Noto Sans SC',sans-serif;margin:3px 0;color:#45372e}.modal-head p{font-size:9px;line-height:1.6;color:#8f7e6d;margin:6px 0 0}.modal-close{height:29px;width:29px;border:0;border-radius:50%;background:#f5eee7;color:#8b7866;font-size:18px}.modal-body{padding:19px 23px}.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:15px 23px;border-top:1px solid #f0e8de}.setup-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);gap:20px}.setup-fields{display:flex;flex-direction:column;gap:13px}.setup-part-label{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:9px 11px;background:#f7eee5;border:1px solid #eee0d1;border-radius:10px}.setup-part-label b{font-size:10px;color:#744e35}.setup-part-label span{font-size:8px;color:#97836f}.setup-question-preview{padding:11px 12px;border-left:3px solid #d88a65;background:#fbf5ee;color:#796453;font-size:9px;line-height:1.7;border-radius:0 9px 9px 0;margin-top:-5px}.setup-mode-title{display:flex;justify-content:space-between;align-items:center;margin-top:2px}.setup-mode-title .field-label{margin:0}.setup-options{display:flex;gap:9px}.setup-choice{position:relative;flex:1;border:1px solid #e8ddd1;border-radius:12px;padding:12px;cursor:pointer;background:#fffefa}.setup-choice:has(input:checked){border-color:#d99675;background:#fcf1e9;box-shadow:0 3px 12px #b6694510}.setup-choice input{position:absolute;opacity:0}.setup-choice-icon{width:23px;height:23px;border-radius:8px;background:#f4e4d8;color:#ab6547;display:grid;place-items:center;font-size:10px}.setup-choice strong{font-size:10px;display:block;margin:8px 0 5px;color:#5a4434}.setup-choice small{font-size:8px;line-height:1.55;color:#988675;display:block}.setup-summary{position:relative;overflow:hidden;padding:16px;border:1px solid #eddfd2;border-radius:15px;background:linear-gradient(150deg,#fbf2e8,#f5e3d3);align-self:stretch}.setup-summary img{position:absolute;width:91px;right:2px;top:0;opacity:.9}.setup-summary>.eyebrow{position:relative;margin:6px 0 45px;color:#a07152}.setup-summary h3{position:relative;font-size:13px;margin:0 0 5px;color:#5b3c2b}.setup-summary p{position:relative;font-size:8px;color:#8b725e;margin:0 0 15px}.setup-summary-line{display:flex;justify-content:space-between;gap:7px;padding:8px 0;border-top:1px solid #ead9c8;font-size:8px;color:#97816d}.setup-summary-line b{color:#73563e}.setup-summary>small{display:block;margin-top:12px;color:#a08770;font-size:7px;line-height:1.6}.consent-box{display:flex;gap:9px;align-items:flex-start;padding:11px 12px;background:#f7f2eb;border:1px solid #eee5da;border-radius:11px;color:#796959;font-size:8px;line-height:1.65;margin-top:4px}.consent-box b{color:#634833}.consent-box input{accent-color:var(--rust);margin:2px 0 0}.tiny-option{display:flex;gap:7px;align-items:center;font-size:8px;color:#8a7867;margin-top:10px}.tiny-option input{accent-color:var(--rust)}.toast{position:fixed;z-index:50;bottom:24px;left:50%;transform:translate(-50%,15px);background:#483a30;color:#fffefa;border-radius:11px;padding:11px 15px;font-size:9px;max-width:min(90vw,520px);box-shadow:0 8px 28px #25191035;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.guide-note strong{color:#744a2f}.source-link:hover{text-decoration:underline}

@keyframes orb-pulse{0%,100%{transform:scale(.98)}50%{transform:scale(1.035)}}@keyframes appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes blink{50%{opacity:0}}@keyframes dot{0%,80%,100%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}

@media(max-width:1250px){.shell{grid-template-columns:226px minmax(0,1fr)}.rail{padding-left:14px;padding-right:14px}.main-shell{padding:0 28px}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.session-layout{grid-template-columns:minmax(0,1fr) 310px}.skill-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-fox-frame{right:130px}}
@media(max-width:980px){.shell{grid-template-columns:74px minmax(0,1fr)}.rail{padding:16px 9px}.brand{height:64px;justify-content:center;padding:0 0 12px}.brand-logo{width:55px;height:49px;object-fit:cover;object-position:left center}.main-nav .nav-item{justify-content:center;padding:0;font-size:0}.nav-item span:not(.nav-icon):not(.nav-badge){display:none}.nav-icon{width:auto}.nav-badge{display:none}.rail-promo{display:none}.rail-bottom{margin-top:auto}.connection-mini{justify-content:center;padding:0 0 10px;font-size:0}.settings-nav{font-size:0!important;justify-content:center!important;padding:0!important}.privacy-note{display:none}.dashboard-grid,.content-layout{grid-template-columns:1fr}.session-layout{grid-template-columns:1fr;min-height:0}.session-stage{min-height:545px}.session-chat{height:400px}.report-summary{grid-template-columns:1fr}.topic-detail-layout{grid-template-columns:minmax(0,1fr) 240px}.criteria-info{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-fox-frame{right:118px}}
@media(max-width:680px){.shell{display:block;padding-bottom:68px}.rail{position:fixed;top:auto;bottom:0;height:65px;width:100%;padding:5px 8px 6px;border-right:0;border-top:1px solid var(--line);display:block;background:#fffefaeb;backdrop-filter:blur(16px)}.brand,.rail-label,.rail-promo,.rail-bottom{display:none}.main-nav{height:100%;display:grid;grid-template-columns:repeat(6,1fr);gap:0}.main-nav .nav-item{display:flex;flex-direction:column;justify-content:center;gap:3px;height:53px;padding:0;border-radius:10px;font-size:7px!important}.main-nav .nav-item span:not(.nav-icon):not(.nav-badge){display:block}.nav-icon{height:19px;font-size:16px!important}.nav-item.active:before{display:none}.main-shell{padding:0 16px}.topbar{height:72px}.topbar h1{font-size:16px}.top-eyebrow{font-size:7px}.target-chip{font-size:8px;padding:0 8px}.top-actions{gap:7px}.top-settings{height:31px;width:31px}.avatar-button{height:30px;width:30px}.app-footer{font-size:7px;flex-direction:column;gap:4px;padding:13px 0}.app-footer span{line-height:1.5}#viewRoot{padding:19px 0 26px}.view-heading{align-items:flex-start;flex-direction:column;margin-bottom:16px}.view-heading h2{font-size:21px}.view-heading p{font-size:9px}.hero-card{min-height:213px;padding:21px 20px 84px;border-radius:18px;align-items:flex-start}.hero-copy{max-width:100%;padding-right:70px}.hero-copy h2{font-size:20px;line-height:1.35}.hero-copy p{font-size:9px}.hero-proof{gap:6px;flex-wrap:wrap;font-size:7px;margin-top:13px}.hero-proof i{width:3px;height:3px}.hero-fox-frame{right:5px;bottom:-23px;width:132px;height:132px;opacity:.92}.hero-card>.primary-button{position:absolute;left:20px;bottom:16px;padding:10px 13px;font-size:9px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.metric-card{min-height:88px;padding:12px}.metric-top{font-size:8px}.metric-symbol{height:23px;width:23px}.metric-value{font-size:20px}.quick-grid,.mode-grid{grid-template-columns:1fr}.quick-card{min-height:78px}.dashboard-grid{gap:10px}.activity-card,.plan-card{padding:15px}.week-chart{height:124px;gap:5px}.day-bar-wrap{height:88px}.day-bar{width:20px}.section-row{margin:19px 0 10px}.section-row h3{font-size:12px}.section-row-large{align-items:flex-start}.practice-hero{min-height:192px;padding:20px;border-radius:17px;margin-bottom:18px}.practice-hero-copy{max-width:75%;position:relative;z-index:2}.practice-hero-copy h2{font-size:20px;line-height:1.35}.practice-hero-copy p{font-size:9px}.practice-hero-stats{font-size:7px;gap:6px}.practice-hero-stats b{font-size:10px}.practice-hero-art{width:118px;height:118px;right:-8px;top:auto;bottom:-5px}.mode-card{min-height:145px;padding:15px}.mode-card h3{font-size:12px}.mode-card p{font-size:9px}.skill-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.skill-card{padding:12px;min-height:155px}.skill-card h3{font-size:11px}.skill-card p{font-size:8px}.topic-library{padding:14px}.topic-library .surface-head{align-items:flex-start}.topic-library .surface-head h3{font-size:13px}.practice-toolbar{align-items:stretch}.filter-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.filter-chip{white-space:nowrap}.search-field{margin-left:0;width:100%}.topic-results-head{font-size:8px}.topic-grid{grid-template-columns:1fr}.topic-card{min-height:138px;padding:12px}.topic-card-content strong{font-size:10px}.topic-breadcrumb{font-size:8px}.topic-detail-hero{padding:15px;gap:11px;flex-wrap:wrap}.topic-detail-icon{width:43px;height:43px;font-size:17px;border-radius:13px}.topic-detail-hero h2{font-size:16px}.topic-detail-hero p{font-size:8px}.topic-detail-hero>.primary-button{width:100%}.topic-detail-layout{grid-template-columns:1fr}.topic-sidebar{display:grid;grid-template-columns:1fr 1fr}.topic-aside-card{padding:13px}.part-tabs{gap:5px}.part-tab{padding:9px 8px}.part-tab b{font-size:9px}.part-tab small{font-size:7px}.topic-question-heading{align-items:flex-start;gap:6px}.topic-question-heading h3{font-size:11px}.topic-question-heading p{font-size:8px}.question-card{align-items:flex-start;gap:8px;padding:11px}.question-number{width:28px;height:28px;font-size:8px}.question-card h3{font-size:9px}.question-card>.secondary-button{padding:8px 9px;font-size:8px;white-space:nowrap;align-self:center}.cue-card{padding:15px}.cue-card h3{font-size:12px}.criteria-info{grid-template-columns:1fr}.criterion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.correction-grid{grid-template-columns:1fr}.score-panel{padding:14px}.session-stage{min-height:510px;padding:15px}.session-title{margin-top:18px}.session-title h2{font-size:16px}.session-orb{height:174px;width:174px}.session-chat{height:350px}.session-controls{gap:7px}.main-control{min-width:145px;padding:0 12px}.vocab-item{flex-wrap:wrap;gap:8px}.vocab-word{min-width:100%}.vocab-actions{width:100%;justify-content:flex-end}.bar-row{grid-template-columns:93px 1fr 25px;gap:6px}.modal-backdrop{padding:9px}.modal{border-radius:16px;max-height:94vh}.modal-head,.modal-body,.modal-actions{padding-left:15px;padding-right:15px}.setup-layout{grid-template-columns:1fr}.setup-summary{display:none}.setup-options{flex-direction:column}.setup-choice{min-height:94px}.setup-part-label{align-items:flex-start;flex-direction:column;gap:4px}.report-summary{gap:8px}.score-panel{gap:12px}.big-band{font-size:36px}.band-scale-grid{grid-template-columns:1fr}.rubric-scale{padding:14px}.resource-links a{flex:1 1 140px}.history-item{gap:8px}.history-main strong{font-size:9px}.profile-score-row{align-items:flex-start}.topic-sidebar{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
@media print{body{background:#fff}.rail,.topbar,.app-footer,.view-heading>.secondary-button,.topic-sidebar,.modal-backdrop,.toast{display:none!important}.shell{display:block}.main-shell{padding:0;max-width:none}#viewRoot{padding:0}.surface{box-shadow:none;break-inside:avoid}}

/* Personal center: transparent membership preview, wallet, and usage surfaces. */
.account-page{max-width:1160px;margin:0 auto}
.account-heading{align-items:center}
.account-profile-form{display:flex;align-items:center;gap:7px;margin-top:10px;max-width:360px}
.account-profile-form .field{min-width:0;height:34px;padding:7px 10px;font-size:10px}
.account-profile-form .secondary-button{flex:none;padding:8px 10px;font-size:9px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.account-hero-new{grid-template-columns:auto minmax(0,1fr) 180px;background:linear-gradient(112deg,#f5e7dc,#fbf7ef 72%);border-color:#ead8c9}
.account-hero-new .account-copy h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.account-status-pill{padding:4px 9px;border:1px solid #dfd4c8;border-radius:20px;background:#fffefa;color:#756557;font:700 10px 'DM Sans','Noto Sans SC',sans-serif;vertical-align:middle}
.account-wallet{padding:20px 22px;margin:0 0 26px}
.wallet-summary{display:flex;align-items:center;gap:14px}
.wallet-summary>.account-card-icon{flex:none}
.wallet-summary>div:nth-child(2){min-width:0;flex:1}
.wallet-summary .eyebrow{margin:0 0 4px}
.wallet-summary h3,.account-section-title h3{margin:0;color:#302720;font-size:17px;font-weight:800}
.wallet-summary p,.account-section-title p{margin:5px 0 0;color:#67594e;font-size:12px;line-height:1.6}
.wallet-amount{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.wallet-amount small{color:#756557;font-size:10px}
.wallet-amount strong{color:#843d29;font:800 25px Manrope,'DM Sans',sans-serif}
.wallet-actions{display:flex;align-items:center;gap:12px;margin:15px 0 0 54px;padding-top:14px;border-top:1px solid #eee5dc}
.wallet-actions button:disabled,.membership-card button:disabled,.purchase-grid button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.wallet-actions span{color:#827365;font-size:10px}
.account-transaction-list{margin:13px 0 0 54px;padding-top:5px;border-top:1px solid #f0e9e1}
.account-empty{margin:10px 0;color:#8b7a6b;font-size:10px}
.account-details-grid .usage-row:last-of-type{border-bottom:1px solid #f0e9e1}
.account-memberships,.account-single-purchase{margin:0 0 24px}
.account-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:0 0 13px}
.account-section-title .eyebrow{margin:0 0 5px}
.account-section-title h3{font-size:18px}
.account-section-title>.pill{flex:none;margin-top:4px}
.membership-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.membership-card{position:relative;display:flex;min-width:0;flex-direction:column;padding:21px;border:1px solid #e4dbd0;border-radius:18px;background:#fffefa;box-shadow:0 8px 25px #49372608;overflow:hidden}
.membership-card.featured{border-color:#d4a486;background:linear-gradient(145deg,#fffefa,#fcf4ee);box-shadow:0 10px 28px #843d2910}
.membership-ribbon{position:absolute;top:14px;right:-27px;width:110px;padding:5px 0;background:#9b4a31;color:#fff;text-align:center;font-size:9px;font-weight:800;transform:rotate(35deg)}
.membership-top{display:flex;align-items:center;gap:9px;color:#756557;font-size:11px}
.membership-tier{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:8px;background:#f3e3d8;color:#843d29;font-size:12px;font-weight:900;letter-spacing:.5px}
.membership-tier.svip{background:#843d29;color:#fff}
.membership-price{display:flex;align-items:baseline;gap:5px;margin:15px 0 4px}
.membership-price strong{color:#302720;font:850 35px Manrope,'DM Sans',sans-serif;letter-spacing:-1px}
.membership-price span{color:#756557;font-size:11px}
.membership-card>p{min-height:36px;margin:0;color:#67594e;font-size:11px;line-height:1.6}
.membership-card ul{display:grid;gap:9px;flex:1;margin:16px 0 18px;padding:0;list-style:none}
.membership-card li{position:relative;padding-left:20px;color:#51443a;font-size:11px;line-height:1.55}
.membership-card li:before{position:absolute;left:0;top:0;color:#698050;font-size:13px;font-weight:900;content:'✓'}
.membership-card button{align-self:flex-start;min-width:152px}
.account-single-purchase{padding:20px}
.purchase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.purchase-grid article{display:flex;align-items:center;gap:11px;min-width:0;padding:12px;border:1px solid #eee5dc;border-radius:13px;background:#fffefa}
.purchase-icon{display:grid;width:35px;height:35px;flex:none;place-items:center;border-radius:11px;background:#f5e7dc;color:#843d29;font-size:15px;font-weight:800}
.purchase-grid article>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}
.purchase-grid article strong{color:#41352c;font-size:11px}
.purchase-grid article small{color:#756557;font-size:10px;line-height:1.4}
.purchase-grid button{min-height:30px;padding:0 9px;border:1px solid #e6ddd3;border-radius:9px;background:#f5f1ec;color:#756557;font-size:9px;font-weight:700;white-space:nowrap}
.account-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:15px}
.account-detail-card{padding:19px}
.account-detail-card .account-section-title{margin-bottom:9px}
.entitlement-row,.usage-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f0e9e1;color:#51443a;font-size:11px}
.entitlement-row:last-of-type,.usage-row:last-of-type{border-bottom:0}
.entitlement-row span{display:flex;align-items:center;gap:8px}
.entitlement-row i{display:grid;width:21px;height:21px;place-items:center;border-radius:50%;background:#f4e7dc;color:#843d29;font-size:10px;font-style:normal}
.entitlement-row b,.usage-row b{color:#756557;font-size:10px;text-align:right}
.account-footnote{margin:10px 0 0;padding:10px;border-radius:10px;background:#f8f4ee;color:#746557;font-size:9px;line-height:1.6}
.account-launch-note{display:flex;gap:10px;padding:13px 15px;border:1px solid #e9dece;border-radius:12px;background:#f8f3eb;color:#67594e;font-size:10px;line-height:1.65}
.account-launch-note b{flex:none;color:#843d29}
@media(max-width:680px){
  .account-heading{align-items:flex-start}
  .account-hero-new{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:16px}
  .account-hero-new .account-band{grid-column:1/-1}
  .account-wallet{padding:15px;margin-bottom:21px}
  .wallet-summary{gap:10px}
  .wallet-summary .account-card-icon{width:34px;height:34px}
  .wallet-summary h3{font-size:14px}
  .wallet-summary p{font-size:10px}
  .wallet-amount strong{font-size:20px}
  .wallet-actions{margin-left:0;flex-wrap:wrap}
  .account-transaction-list{margin-left:0}
  .account-profile-form{max-width:none}
  .wallet-actions span{font-size:9px}
  .account-section-title h3{font-size:16px}
  .membership-grid,.purchase-grid,.account-details-grid{grid-template-columns:1fr}
  .membership-card{padding:17px}
  .membership-card>p{min-height:0}
  .account-single-purchase{padding:15px}
  .purchase-grid article{padding:10px}
  .account-detail-card{padding:15px}
  .account-launch-note{font-size:9px}
}

/* Per-question answer examples */
.question-card{flex-wrap:wrap}
.question-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.example-trigger{border:1px solid #efdfd2;background:#fcf5ee;color:#a45a3c;border-radius:9px;padding:8px 10px;font-size:8px;font-weight:800;white-space:nowrap}
.example-trigger:hover{background:#f8e9de}
.example-panel{flex:0 0 calc(100% - 47px);margin-left:47px;padding:13px 14px;border:1px solid #eddfd3;border-radius:12px;background:#fbf6ef;color:#6e5a48}
.example-panel[hidden]{display:none}
.example-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:7px}
.example-panel p{font-size:10px;line-height:1.85;white-space:pre-wrap;margin:0;color:#5f4d3f}
.example-panel small{display:block;margin-top:8px;color:#9b8977;font-size:8px}
.example-loading,.example-error{font-size:9px;line-height:1.7;color:#927a65}
.example-error{color:#ad604a}
@media(max-width:680px){.question-actions{width:100%;justify-content:flex-end}.example-panel{flex-basis:100%;margin-left:0}.example-head{align-items:flex-start;flex-direction:column}}

/* Readability pass: larger type and stronger text contrast across the product */
:root{
  --muted:#625449;
  --muted-light:#75675b;
  --line:#ded3c6;
  --rust-dark:#93452e;
  --rust-wash:#f4e2d8;
}
body{font-size:15px;color:#302720}
.rail-label,.top-eyebrow{font-size:11px;color:#746557}
.nav-item{font-size:14px;color:#625449}
.nav-icon{font-size:18px;color:#786755}
.nav-item .nav-badge{font-size:11px}
.promo-overline{font-size:10px;color:#9b6743}
.rail-promo strong{font-size:14px;color:#563b2b}
.rail-promo small{font-size:12px;color:#6d5c4e}
.connection-mini{font-size:12px;color:#6d5c4e}
.settings-nav{font-size:12px}
.privacy-note{font-size:10px;color:#75675b}
.privacy-note span{font-size:9px}
.topbar h1{font-size:22px}
.top-eyebrow{font-size:10px}
.target-chip{font-size:13px;color:#625449}
.target-chip b{font-size:14px}
.avatar-button{font-size:13px}
.app-footer{font-size:11px;color:#75675b}
.view-heading h2{font-size:29px}
.view-heading p{font-size:14px;color:#62564b;line-height:1.7}
.eyebrow{font-size:10px;color:#806249}
.surface-head h3,.section-row h3{font-size:17px}
.surface-head p,.section-row p{font-size:13px;color:#62564b}
.link-button,.text-button{font-size:13px}
.primary-button,.secondary-button,.soft-button,.danger-button{font-size:13px}
.primary-button,.hero-card>.primary-button,.main-control{background:#ad5335}
.primary-button:hover,.hero-card>.primary-button:hover{background:#93452e}
.pill{font-size:11px;color:#625449}
.hero-copy h2,.practice-hero-copy h2{font-size:30px}
.hero-copy p,.practice-hero-copy p{font-size:14px;color:#5e4939;line-height:1.75}
.hero-proof,.practice-hero-stats{font-size:12px;color:#70553f}
.hero-proof i{background:#a76a47}
.metric-top{font-size:12px;color:#62564b}
.metric-value{font-size:29px}
.metric-value small,.metric-foot,.day-label,.activity-legend{font-size:11px;color:#75675b}
.plan-focus strong,.plan-row strong{font-size:13px;color:#563f2e}
.plan-focus p,.plan-row small{font-size:12px;color:#66584b;line-height:1.65}
.plan-mark{font-size:11px}
.quick-card h4{font-size:14px;color:#403329}
.quick-card p{font-size:12px;color:#62564b;line-height:1.65}
.quick-icon{font-size:15px}
.mode-card h3{font-size:16px}
.mode-card p{font-size:13px;color:#62564b;line-height:1.7}
.mode-time{font-size:10px;color:#70563f}
.mode-link{font-size:12px}
.practice-hero-stats b{font-size:14px}
.skill-card h3{font-size:14px}
.skill-card p{font-size:12px;color:#62564b;line-height:1.7}
.filter-chip{font-size:12px;color:#625449}
.filter-chip.active{color:#873e29}
.search-field{color:#75675b}
.search-field input{font-size:13px;color:#403329}
.topic-results-head{font-size:12px;color:#75675b}
.topic-card .pill{font-size:10px}
.topic-card-content strong{font-size:15px;color:#403329}
.topic-card-content small,.topic-card-foot span{font-size:12px;color:#62564b}
.topic-card-foot button{font-size:12px}
.topic-breadcrumb,.topic-breadcrumb button:not(.favorite-button){font-size:12px;color:#62564b}
.topic-detail-hero h2{font-size:24px}
.topic-detail-hero p{font-size:13px;color:#62564b}
.part-tab b{font-size:13px}
.part-tab small{font-size:11px;color:#62564b}
.topic-question-heading h3{font-size:16px}
.topic-question-heading p{font-size:12px;color:#62564b}
.question-status,.question-last{font-size:11px;color:#62564b}
.question-card h3{font-size:14px;color:#403329}
.question-card>.secondary-button,.example-trigger{font-size:12px}
.cue-card h3{font-size:16px}
.cue-guide{font-size:12px;color:#62564b}
.topic-aside-card h3{font-size:15px}
.topic-progress span,.topic-aside-card p,.practice-tips{font-size:12px;color:#62564b;line-height:1.7}
.profile-score-row strong{font-size:14px}
.profile-score-row p,.field-label{font-size:12px;color:#62564b}
.field,.select-field{font-size:14px;color:#403329}
.help-text{font-size:12px;color:#62564b}
.voice-tune-heading{margin:21px 0 10px;padding-top:15px;border-top:1px solid #eadfd3;color:#653c2b;font-size:14px}
.voice-tune-control{display:grid;gap:5px;margin:12px 0;padding:11px 13px;border:1px solid #eadfd3;border-radius:12px;background:#fffdf9}
.voice-tune-control>span{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#403329;font-size:13px}
.voice-tune-control output{color:#91492f;font-variant-numeric:tabular-nums;font-weight:700}
.voice-tune-control input[type=range]{width:100%;margin:3px 0;accent-color:#a65335}
.voice-tune-control small,.voice-tune-check small{color:#76695e;font-size:11px;line-height:1.45}
.voice-tune-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.voice-tune-check{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid #eadfd3;border-radius:11px;background:#fffdf9}
.voice-tune-check input{margin-top:3px;accent-color:#a65335}
.voice-tune-check span{display:grid;gap:3px;color:#403329;font-size:12px}
.criterion-guide h3{font-size:15px}
.criterion-guide p,.band-scale-grid p{font-size:12px;color:#62564b;line-height:1.65}
.band-scale-grid b{font-size:15px}
.source-link{font-size:12px}
.guide-note{font-size:12px;color:#5f5146;line-height:1.7}
.bar-row,.history-main strong,.history-score{font-size:13px}
.history-main small{font-size:11px;color:#62564b}
.history-empty{font-size:13px;color:#62564b}
.score-caption,.score-explain,.criterion-title,.evidence,.evidence b,.feedback-item,.correction{font-size:12px;color:#51453b;line-height:1.7}
.criterion-card p{font-size:12px;color:#62564b;line-height:1.7}
.feedback-item i{font-size:11px}
.vocab-meaning{font-size:13px;color:#51453b}
.vocab-actions button{font-size:11px}
.resource-links a{font-size:12px}
.part-pill{font-size:10px}
.small-note{font-size:11px;color:#62564b}
.session-breadcrumb,.session-part{font-size:11px;color:#62564b}
.session-question span{font-size:10px}
.session-question p,.session-title p{font-size:13px;color:#51453b}
.live-status{font-size:12px;color:#51453b}
.timer-chip{font-size:11px;color:#51453b}
.main-control{font-size:13px}
.barge-row{font-size:11px;color:#62564b}
.stage-hint{font-size:11px;color:#62564b;line-height:1.65}
.chat-head h3{font-size:16px;color:#403329}
.chat-head p,.chat-footer{font-size:11px;color:#62564b;line-height:1.65}
.empty-conversation{font-size:13px;color:#62564b}
.chat-avatar{font-size:10px}
.chat-label{font-size:10px;color:#62564b}
.chat-text{font-size:13px;color:#51453b;line-height:1.7}
.analysis-loading{font-size:13px;color:#62564b}
.flash-card p{font-size:12px;color:#62564b;line-height:1.7}
.status-callout{font-size:12px;color:#5f5146;line-height:1.7}
.empty-box{font-size:13px;color:#62564b;line-height:1.7}
.example-trigger{color:#873e29}
.example-panel{color:#51453b}
.example-panel p{font-size:13px;color:#40362e;line-height:1.8}
.example-panel small,.example-loading,.example-error{font-size:11px;color:#62564b}
.modal-head h2{font-size:20px}
.modal-head p{font-size:12px;color:#62564b;line-height:1.7}
.setup-part-label b,.setup-choice strong{font-size:13px}
.setup-part-label span,.setup-choice small{font-size:11px;color:#62564b;line-height:1.6}
.setup-question-preview{font-size:12px;color:#5e4939;line-height:1.7}
.setup-summary h3{font-size:15px}
.setup-summary p,.setup-summary-line{font-size:11px;color:#62564b}
.setup-summary>small{font-size:10px;color:#62564b;line-height:1.6}
.consent-box,.tiny-option{font-size:11px;color:#51453b;line-height:1.65}
.toast{font-size:12px}
#viewRoot p{font-size:13px;color:#605348;line-height:1.7}
#viewRoot small{font-size:12px;color:#62564b}

@media(max-width:680px){
  .nav-item,.main-nav .nav-item{font-size:10px!important}
  .topbar h1{font-size:18px}
  .app-footer{font-size:10px}
  .view-heading h2{font-size:24px}
  .view-heading p,#viewRoot p{font-size:13px}
  .hero-copy h2,.practice-hero-copy h2{font-size:23px}
  .hero-copy p,.practice-hero-copy p{font-size:13px}
  .hero-proof,.practice-hero-stats{font-size:10px}
  .metric-top{font-size:10px}
  .metric-value{font-size:23px}
  .quick-card h4{font-size:14px}
  .quick-card p,.mode-card p,.skill-card p{font-size:12px}
  .mode-card h3,.skill-card h3{font-size:14px}
  .topic-card-content strong{font-size:14px}
  .topic-detail-hero h2{font-size:21px}
  .topic-question-heading h3{font-size:15px}
  .question-card h3{font-size:13px}
  .question-card>.secondary-button,.example-trigger{font-size:11px}
  .chat-text,.session-question p,.session-title p,.example-panel p{font-size:13px}
  #viewRoot small{font-size:11px}
}

/* Stronger WCAG-friendly text contrast for muted copy and labels */
:root{--muted:#51443a;--muted-light:#5d5046;--rust-dark:#843d29}
body{color:#302720}
.rail-label,.top-eyebrow,.promo-overline,.rail-promo strong,.rail-promo small,
.connection-mini,.privacy-note,.app-footer,.target-chip,.top-settings{color:#51443a}
.nav-item{color:#51443a}
.nav-item.active,.nav-item.active .nav-icon{color:#843d29}
.eyebrow{color:#684b36}
.surface-head p,.view-heading p,.section-row p{color:#51443a}
#viewRoot :is(p,small,span,li,strong,em,b,label,dt,dd,h1,h2,h3,h4,a){color:#40342c!important}
#viewRoot button *{color:inherit!important}
.modal :is(p,small,span,label,strong,b,h2,h3){color:#40342c}
.pill.blue{color:#36566d}
.pill.green,.question-status.done,.correction strong,.status-callout.success{color:#455c2f}
.pill.amber,.favorite-button.saved,.status-callout.warning{color:#684818}
.pill.terra,.example-trigger,.link-button,.text-button,.source-link{color:#843d29}
.status-callout{color:#51443a}
.field::placeholder{color:#75675b}
.example-panel small,.example-loading,.example-error{color:#51443a}
.chat-label,.chat-footer,.stage-hint,.history-main small,.privacy-note{color:#51443a}

/* Distinct visual rhythm for each learning area */
#viewRoot[data-view="practice"] .practice-hero{background:linear-gradient(112deg,#e5eadb 0%,#f1f1e6 60%,#e7ece1 100%);border:1px solid #d9e0cf}
#viewRoot[data-view="practice"] .practice-hero:after{border-color:#77845c40}
#viewRoot[data-view="practice"] .practice-hero-copy .eyebrow{color:#56663c}
#viewRoot[data-view="plan"] .view-heading{padding:25px 28px;background:linear-gradient(112deg,#e8edde,#f4f2e9);border:1px solid #dce3d2;border-left:5px solid #7b8d60;border-radius:18px}
#viewRoot[data-view="plan"] .content-layout{align-items:start}
#viewRoot[data-view="plan"] .form-card{border-top:3px solid #91a174}
#viewRoot[data-view="reports"] .view-heading{padding:25px 28px;background:linear-gradient(112deg,#e4ebf0,#f3f3ef);border:1px solid #d8e1e7;border-left:5px solid #6e8ca2;border-radius:18px}
#viewRoot[data-view="reports"] .report-section:first-child{background:linear-gradient(160deg,#fffefa,#f3f6f7);border-color:#dbe3e7}
#viewRoot[data-view="reports"] .report-bars{padding:12px 3px}
#viewRoot[data-view="vocabulary"] .view-heading{padding:25px 28px;background:linear-gradient(112deg,#f2e3d7,#faf2e9);border:1px solid #ead7c8;border-left:5px solid #b56b47;border-radius:18px}
#viewRoot[data-view="vocabulary"] .vocab-item{border-left:4px solid #c17a55;background:linear-gradient(100deg,#fffefa,#faf6ef)}
#viewRoot[data-view="vocabulary"] .vocab-word{font-size:18px}
#viewRoot[data-view="guide"] .view-heading{padding:25px 28px;background:linear-gradient(112deg,#e9e2d9,#f6f2ec);border:1px solid #ded2c5;border-left:5px solid #594334;border-radius:18px}
#viewRoot[data-view="guide"] .criterion-guide:nth-child(4n+1){border-top:3px solid #c27652}
#viewRoot[data-view="guide"] .criterion-guide:nth-child(4n+2){border-top:3px solid #7b8d60}
#viewRoot[data-view="guide"] .criterion-guide:nth-child(4n+3){border-top:3px solid #718fa4}
#viewRoot[data-view="guide"] .criterion-guide:nth-child(4n){border-top:3px solid #a88764}
.account-hero{display:grid;grid-template-columns:auto minmax(0,1fr) 150px;gap:22px;align-items:center;padding:27px 30px;border:1px solid #dfe3d3;border-radius:22px;background:linear-gradient(115deg,#e8edde,#f8f5ec);margin-bottom:16px}
.account-monogram{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;background:#ad5335;color:#fff;font:800 22px Manrope,sans-serif;box-shadow:0 10px 24px #68412a25}
.account-copy .eyebrow{color:#596a43}
.account-copy h2{font:800 25px Manrope,'Noto Sans SC',sans-serif;margin:0 0 7px;color:#302720}
.account-copy p{margin:0;color:#51443a;font-size:13px}
.account-band{padding:14px 17px;border-radius:15px;background:#fffefa;border:1px solid #d8dfce;display:flex;flex-direction:column;align-items:flex-start}
.account-band span,.account-overview article>span{font-size:12px;color:#51443a}
.account-band strong{font:800 30px Manrope,sans-serif;color:#843d29;line-height:1.2;margin:3px 0}
.account-band small{font-size:11px;color:#51443a}
.account-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:17px}
.account-overview article{padding:15px 18px;border:1px solid #e3d9cc;background:#fffefa;border-radius:15px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.account-overview strong{font:800 20px Manrope,sans-serif;color:#302720}
.account-overview strong small{font:600 12px 'DM Sans','Noto Sans SC',sans-serif;color:#51443a}
.account-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.account-card{min-height:174px;padding:20px;border:1px solid #e4dbd0;border-radius:17px;background:#fffefa;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:14px;align-content:start;position:relative}
.account-card-goal{background:linear-gradient(135deg,#fffefa,#f8f0e8);border-top:3px solid #c17a55}
.account-card-connection{background:linear-gradient(135deg,#fffefa,#eef2e8);border-top:3px solid #7b8d60}
.account-card-privacy{background:linear-gradient(135deg,#fffefa,#edf1f3);border-top:3px solid #718fa4}
.account-card-icon{grid-row:1/4;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#f4e2d8;color:#843d29;font-size:17px}
.account-card-connection .account-card-icon{background:#e7eddc;color:#4c6338}
.account-card-privacy .account-card-icon{background:#e5edf1;color:#45657b}
.account-card .eyebrow{font-size:9px;margin:2px 0 5px}
.account-card h3{font:800 16px Manrope,'Noto Sans SC',sans-serif;margin:0 0 7px;color:#302720}
.account-card p{font-size:12px;color:#51443a;line-height:1.65;margin:0 0 6px}
.account-card small{font-size:11px;color:#51443a}
.account-card-action{grid-column:2;justify-self:start;margin-top:12px;border:0;background:transparent;color:#843d29;font-size:12px;font-weight:800;padding:0}
.account-card-action span{margin-left:7px}
.mobile-subnav,.mobile-nav{display:none}

@media(max-width:680px){
  .mobile-empty-account .topbar>div:first-child,.mobile-empty-account .app-footer{display:none}
  .mobile-empty-account .topbar{justify-content:flex-end}
  .shell{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  .rail{display:none}
  .main-shell{padding:0 16px}
  .topbar{position:sticky;top:0;z-index:9;background:var(--paper);height:66px;border-bottom:1px solid #ded3c6}
  .mobile-subnav:not([hidden]){display:flex;position:sticky;top:66px;z-index:8;gap:7px;overflow-x:auto;white-space:nowrap;margin:0 -16px 14px;padding:9px 16px 10px;background:#f7f4edf2;border-bottom:1px solid #e3d9cd;backdrop-filter:blur(14px);scrollbar-width:none}
  .mobile-subnav:not([hidden])::-webkit-scrollbar{display:none}
  .mobile-subnav-item{flex:none;border:1px solid #d9cfc3;border-radius:22px;padding:8px 14px;background:#fffefa;color:#51443a;font-size:12px;font-weight:700;min-height:36px}
  .mobile-subnav-item.active{border-color:#843d29;background:#843d29;color:#fffefa}
  #topic-library,#skill-training-section{scroll-margin-top:132px}
  .mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:20;left:0;right:0;bottom:0;height:calc(68px + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #ded3c6;background:#fffefaf2;backdrop-filter:blur(18px);box-shadow:0 -6px 22px #4a382415}
  .mobile-nav-item{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;border:0;border-radius:12px;background:transparent;color:#51443a;font-size:11px;font-weight:700}
  .mobile-nav-icon{display:grid;place-items:center;width:25px;height:24px;border-radius:9px;color:#665346;font-size:19px;line-height:1}
  .mobile-thread-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-nav-item.active{color:#843d29;background:#f6e9df}
  .mobile-nav-item.active .mobile-nav-icon{background:#843d29;color:#fffefa}
  .mobile-live-session .mobile-nav{display:none}
  .mobile-live-session .main-shell{padding-bottom:12px}
  .account-hero{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:18px;border-radius:18px}
  .account-monogram{width:54px;height:54px;border-radius:17px;font-size:17px}
  .account-copy h2{font-size:19px;line-height:1.35}
  .account-copy p{font-size:12px}
  .account-band{grid-column:1/-1;flex-direction:row;align-items:center;gap:9px;padding:11px 13px}
  .account-band strong{font-size:23px;margin:0}
  .account-overview{gap:7px}
  .account-overview article{padding:10px 9px;align-items:flex-start;flex-direction:column;gap:4px}
  .account-overview article>span{font-size:10px}
  .account-overview strong{font-size:17px}
  .account-card-grid{grid-template-columns:1fr;gap:9px}
  .account-card{min-height:0;padding:16px}
  #viewRoot[data-view="plan"] .view-heading,#viewRoot[data-view="reports"] .view-heading,#viewRoot[data-view="vocabulary"] .view-heading,#viewRoot[data-view="guide"] .view-heading{padding:18px 16px;border-radius:15px}
  #viewRoot[data-view="vocabulary"] .vocab-word{font-size:17px}
}

/* Free conversation: a focused, voice-first chat surface with local history. */
#viewRoot[data-view="conversation"]{min-width:0;width:calc(100% + 64px);margin-left:-32px;margin-right:-32px;padding-top:16px;padding-bottom:18px}
.conversation-screen{position:relative;display:flex;flex-direction:column;width:100%;height:min(920px,calc(100dvh - 36px));min-height:480px;margin:0 auto;overflow:hidden;border:1px solid #e6ddd2;border-radius:24px;background:#fffefa;box-shadow:0 16px 48px #4c382010}
.chat-app-header{display:flex;align-items:center;gap:13px;min-height:68px;padding:11px 18px;border-bottom:1px solid #eee7de;background:#fffefa}
.chat-header-icon,.chat-header-action{display:grid;place-items:center;width:41px;height:41px;flex:none;border:1px solid #e7ddd2;border-radius:50%;background:#fffefa;color:#51443a;font-size:20px}
.chat-header-title{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.chat-header-title strong{font:800 16px Manrope,'Noto Sans SC',sans-serif;color:#302720}
.chat-header-title small{color:#66574b;font-size:11px}
.chat-header-new{display:flex;align-items:center;gap:4px;min-height:35px;flex:none;padding:0 10px;border:1px solid #e5d8ca;border-radius:19px;background:#fffefa;color:#843d29;font-size:13px;font-weight:800;cursor:pointer}
.chat-header-new span{font-size:10px}
.chat-caption-toggle{min-height:37px;padding:0 12px;border:1px solid #e5d8ca;border-radius:20px;background:#fffefa;color:#59483a;font-size:11px;font-weight:800}
.chat-caption-toggle.active{background:#f5e8dd;border-color:#e8cbbb;color:#843d29}
.chat-mode-strip{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 22px;color:#5d5046;font-size:11px}
.chat-status-dot{width:8px;height:8px;border-radius:50%;background:#b9aa99}
.chat-status-dot.connected{background:#718b58;box-shadow:0 0 0 4px #718b5819}
.chat-mode-strip .talking .chat-status-dot{background:#c76d4c}
.chat-elapsed{margin-left:auto;font-variant-numeric:tabular-nums;color:#746354}
.conversation-stream{flex:1;min-height:0;overflow:auto;padding:24px clamp(24px,4vw,64px);scroll-behavior:smooth}
.conversation-stream .chat-turn{gap:13px;margin:0 auto 22px;max-width:1180px}
.conversation-stream .chat-avatar{width:30px;height:30px;border-radius:50%;font-size:10px}
.conversation-stream .chat-bubble-wrap{max-width:calc(100% - 42px)}
.conversation-stream .chat-label{font-size:10px;color:#716254}
.conversation-stream .chat-text{padding:13px 17px;border-radius:4px 17px 17px 17px;background:#f7f2eb;color:#3e342c;font-size:17px;line-height:1.75}
.conversation-stream .chat-turn.user .chat-text{border-radius:17px 4px 17px 17px;background:#f1efe6;color:#3e4435}
.conversation-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:720px;min-height:100%;margin:auto;text-align:center;padding:26px 18px}
.conversation-welcome img{width:112px;height:112px;object-fit:contain;margin-bottom:14px;filter:drop-shadow(0 8px 14px #6a43251a)}
.conversation-welcome .eyebrow{font-size:10px;letter-spacing:1.6px}
.conversation-welcome h2{margin:8px 0 7px;color:#302720;font:800 28px Manrope,'Noto Sans SC',sans-serif}
.conversation-welcome p{margin:0;color:#62564b;font-size:16px;line-height:1.75}
.chat-composer{padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #eee7de;background:linear-gradient(180deg,#fffefa,#faf6f0)}
.chat-compose-form{display:flex;align-items:center;gap:9px;max-width:780px;margin:0 auto;padding:7px;border:1px solid #e3d7ca;border-radius:30px;background:#fff;box-shadow:0 4px 16px #4632210b}
.chat-compose-form input{flex:1;min-width:0;height:42px;border:0;outline:0;background:transparent;color:#302720;font:14px 'DM Sans','Noto Sans SC',sans-serif}
.chat-compose-form input::placeholder{color:#7b6c5d}
.chat-mic-button,.chat-send-button{display:grid;place-items:center;width:43px;height:43px;flex:none;border:0;border-radius:50%;background:#f2e5d9;color:#843d29;font-size:19px}
.chat-mic-button.muted{background:#fae9e4;color:#ad4e3a}
.chat-send-button{width:39px;height:39px;background:#843d29;color:#fffefa;font-size:23px}
.chat-send-button:disabled{opacity:.45}
.chat-compose-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:780px;margin:8px auto 0;color:#6d5e51;font-size:10px}
.chat-compose-preflight{justify-content:center;text-align:center;color:#65564a}
.chat-compose-meta>div{display:flex;gap:7px}
.chat-compose-meta button{min-height:32px;padding:0 11px;border:1px solid #e5d8cb;border-radius:18px;background:#fffefa;color:#51443a;font-size:10px;font-weight:700}
.chat-compose-meta .chat-end-button{border-color:#ecd5c8;color:#843d29;background:#fbf0e9}
.chat-privacy-note{max-width:780px;margin:8px auto 0;text-align:center;color:#766657;font-size:10px;line-height:1.5}
.chat-start-panel{max-width:780px;margin:0 auto}
.chat-start-button{display:flex;align-items:center;gap:13px;width:100%;min-height:74px;padding:10px 16px;border:1px solid #e7cbbb;border-radius:24px;background:linear-gradient(110deg,#fff9f2,#f6e7da);text-align:left;color:#49392e;box-shadow:0 7px 20px #a8613c13}
.chat-start-wave{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:50%;background:#843d29;color:#fffefa;font-size:21px;box-shadow:0 4px 12px #843d2938}
.chat-start-button>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px}
.chat-start-button b{font-size:15px;color:#3b3028}
.chat-start-button small{font-size:11px;color:#66564a}
.chat-start-arrow{font-size:21px;color:#843d29}
.chat-start-panel>p{margin:9px 3px 0;color:#716254;text-align:center;font-size:10px}
.chat-hidden-note{display:grid;flex:1;place-items:center;padding:24px;text-align:center;color:#62564b;font-size:13px;line-height:1.7}
.chat-history-layer{position:fixed;z-index:45;inset:0;display:flex;align-items:stretch}
.chat-history-scrim{position:absolute;inset:0;border:0;background:#251b1680;backdrop-filter:blur(2px)}
.chat-history-drawer{position:relative;display:flex;flex-direction:column;width:min(360px,86vw);height:100%;padding:18px 15px calc(18px + env(safe-area-inset-bottom));background:#fbf8f2;box-shadow:12px 0 40px #24180f30;animation:drawer-in .2s ease-out}
.chat-history-drawer>header{display:flex;justify-content:space-between;align-items:center;padding:calc(9px + env(safe-area-inset-top)) 3px 14px;border-bottom:1px solid #e9dfd3}
.chat-history-drawer h2{margin:3px 0 0;color:#302720;font-size:21px}
.chat-history-drawer>header button{width:34px;height:34px;border:0;border-radius:50%;background:#eee6dc;color:#51443a;font-size:20px}
.chat-history-list{flex:1;overflow:auto;display:flex;flex-direction:column;gap:7px;padding:3px 0}
.chat-history-entry{display:flex;align-items:center;gap:5px;padding:3px;border:1px solid transparent;border-radius:14px}
.chat-history-entry.selected{border-color:#e9d6c7;background:#fffefa}
.chat-history-item{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0;padding:9px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:left;color:#40342c;cursor:pointer}
.chat-history-item.selected,.chat-history-item:hover{border-color:#e9d6c7;background:#fffefa}
.chat-history-item strong{overflow:hidden;color:#3a3028;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.chat-history-item small,.chat-history-item span{overflow:hidden;color:#716254;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.chat-history-delete{flex:none;padding:7px 8px;border:0;border-radius:9px;background:transparent;color:#9b6251;font-size:10px;cursor:pointer}
.chat-history-delete:hover{background:#fae9e4;color:#9b3f32}
.chat-history-empty{padding:28px 12px;text-align:center;color:#6c5e52;font-size:12px;line-height:1.8}
.chat-history-drawer>p{margin:8px 3px 0;color:#78695b;font-size:10px}
@keyframes drawer-in{from{transform:translateX(-16px);opacity:.6}to{transform:translateX(0);opacity:1}}

/* A dedicated voice surface: no text composer or send action. */
.chat-header-action{display:none}
.chat-composer{display:grid;place-items:center;min-height:132px;padding:18px 24px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#fffefa,#faf5ee)}
.voice-ready{width:min(520px,100%);text-align:center}
.voice-start-button{display:flex;align-items:center;gap:15px;width:100%;min-height:82px;padding:12px 20px;border:1px solid #e6c7b4;border-radius:24px;background:linear-gradient(110deg,#fffaf5,#f5e5d8);color:#49392e;text-align:left;box-shadow:0 8px 24px #843d2918;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.voice-start-button:hover{transform:translateY(-2px);box-shadow:0 12px 28px #843d2924}
.voice-mic-icon{display:grid;place-items:center;width:56px;height:56px;flex:none;border-radius:50%;background:linear-gradient(145deg,#b9694b,#843d29);color:#fff;font-size:25px;box-shadow:0 5px 14px #843d2938}
.voice-start-button>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:5px}
.voice-start-button strong{font-size:16px;color:#3b3028}
.voice-start-button small{font-size:12px;color:#746354}
.voice-start-arrow{font-size:22px;color:#843d29}
.voice-ready>p{margin:10px 0 0;color:#796a5d;font-size:11px}
.voice-new-chat-button{margin-top:9px;padding:7px 13px;border:0;border-radius:9px;background:transparent;color:#8a654e;font-size:11px;font-weight:700;cursor:pointer}
.voice-new-chat-button:hover{background:#f4e9df;color:#743f2c}
.voice-live-controls{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%}
.voice-live-mic{display:grid;place-items:center;width:62px;height:62px;border:0;border-radius:50%;background:linear-gradient(145deg,#b9694b,#843d29);color:#fff;font-size:25px;box-shadow:0 0 0 7px #f1e1d4,0 7px 18px #843d2930;cursor:pointer}
.voice-live-mic.muted{background:#8b8279;box-shadow:0 0 0 7px #eeeae5,0 7px 18px #51443a24}
.voice-live-mic.recording{animation:voice-pulse 1.5s ease-in-out infinite}
.voice-live-label{color:#66564a;font-size:12px;font-weight:700}
.voice-live-actions{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:2px}
.voice-live-actions button{min-height:34px;padding:0 14px;border:1px solid #e5d8cb;border-radius:18px;background:#fffefa;color:#51443a;font-size:11px;font-weight:700;cursor:pointer}
.voice-live-actions button:disabled{opacity:.42;cursor:default}
.voice-live-actions .voice-end-button{border-color:#ecd5c8;background:#fbf0e9;color:#843d29}
@keyframes voice-pulse{50%{box-shadow:0 0 0 12px #f1e1d466,0 7px 18px #843d2930}}

/* Full-screen voice chat stage with a state-aware animated orb. */
.voice-mode-panel{flex:none;padding:12px 18px;border-bottom:1px solid #eee7de;background:#fffefa}
.voice-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.voice-mode-choice{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 13px;border:1px solid #e8ded3;border-radius:13px;background:#fbf8f3;color:#6a594b;text-align:left}
.voice-mode-choice strong{font-size:13px}.voice-mode-choice small{font-size:10px;color:#847365}
.voice-mode-choice.selected{background:#f7e8dd;border-color:#cf9b7c;color:#843d29;box-shadow:inset 0 0 0 1px #cf9b7c}
.voice-mode-preferences{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:11px;color:#796858}
.voice-mode-preferences label{display:flex;align-items:center;gap:7px}.voice-mode-preferences select{max-width:115px;padding:5px 8px;border:1px solid #e6d8cb;border-radius:8px;background:#fffefa;color:#594638}
.voice-mode-panel.is-live{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 18px;color:#843d29;font-size:12px}
.voice-mode-panel.is-live small{font-size:10px;color:#8a796b}.voice-mode-locked{display:block;margin-top:6px;color:#8a796b;font-size:10px}
@media(max-width:680px){.voice-mode-panel{padding:9px 12px}.voice-mode-choice{padding:9px 10px}.voice-mode-choice strong{font-size:13px}.voice-mode-preferences{gap:10px;font-size:11px}.voice-mode-panel.is-live{padding:8px 12px;flex-wrap:wrap}}
.voice-live-stage{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 50% 43%,#fbf5ed 0,#fffefa 50%,#fffefa 100%)}
.voice-orb-wrap{position:relative;z-index:1;display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:26px 16px 20px}
.voice-chat-orb{position:relative;display:grid;place-items:center;width:clamp(126px,18vw,168px);height:clamp(126px,18vw,168px);isolation:isolate;border-radius:50%;background:radial-gradient(circle at 36% 30%,#fff1df 0,#e7b092 17%,#c87653 39%,#99472f 67%,#71331f 100%);box-shadow:inset -15px -20px 32px #55211145,inset 10px 9px 25px #fff5df88,0 18px 50px #8b472e35;animation:voice-orb-breathe 3s ease-in-out infinite;transition:filter .35s ease,transform .35s ease}
.voice-orb-core{position:absolute;inset:19%;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff9ec 0,#f8d8bf 18%,#e39b75 48%,#bd6448 78%,#9a4a35 100%);box-shadow:inset 0 0 24px #fff4db9c,0 0 24px #f5c4a768;animation:voice-core-shimmer 4s ease-in-out infinite}
.voice-orb-wave{position:absolute;inset:-12%;z-index:-1;border:1px solid #bc705447;border-radius:50%;opacity:0;transform:scale(.84)}
.voice-orb-wave.wave-two{inset:-22%;animation-delay:.65s}.voice-orb-wave.wave-three{inset:-33%;animation-delay:1.3s}
.voice-chat-orb.listening .voice-orb-wave,.voice-chat-orb.recording .voice-orb-wave{animation:voice-orb-wave 2.6s ease-out infinite}
.voice-chat-orb.talking{filter:saturate(1.16) brightness(1.05);animation:voice-orb-talk .82s ease-in-out infinite alternate}
.voice-chat-orb.talking .voice-orb-wave{animation:voice-orb-wave 1.15s ease-out infinite}
.voice-chat-orb.connecting{filter:saturate(.65);animation:voice-orb-breathe 4.2s ease-in-out infinite}
.voice-chat-orb.connecting .voice-orb-wave{animation:voice-orb-wave 3.4s ease-out infinite}
.voice-chat-orb.muted{filter:grayscale(.35) saturate(.55);animation:voice-orb-breathe 4s ease-in-out infinite}
.voice-orb-status{display:flex;align-items:center;gap:8px;margin-top:26px;color:#59483a;font-size:13px;font-weight:750}
.voice-orb-status .chat-status-dot{background:#c58160;box-shadow:0 0 0 4px #c5816019}
.voice-orb-status.talking .chat-status-dot{background:#b95337;box-shadow:0 0 0 4px #b953371c}
.voice-orb-status.connecting .chat-status-dot{background:#b9aa99;box-shadow:0 0 0 4px #b9aa9919}
.voice-orb-status.connecting .chat-status-dot{animation:voice-startup-pulse 1s ease-in-out infinite}
.conversation-screen.is-warming .chat-header-title small::after{content:"";display:inline-block;width:9px;height:9px;margin-left:8px;vertical-align:1px;border:2px solid #d9a98e;border-right-color:transparent;border-radius:50%;animation:voice-startup-spin .65s linear infinite}
.voice-orb-hint{margin-top:8px;color:#8a796b;font-size:11px}
.voice-chat-elapsed{margin:12px 0 0;font-size:11px;color:#9a8979;font-variant-numeric:tabular-nums}
.voice-transcript{position:relative;z-index:2;flex:0 1 34%;width:100%;max-height:34%;padding:15px clamp(18px,7vw,76px) 18px;border-top:1px solid #eee7de;background:#fffefa;mask-image:linear-gradient(to bottom,transparent 0,#000 14px)}
.voice-transcript .chat-turn{margin-bottom:12px}
.voice-transcript-empty{display:grid;min-height:70px;place-items:center;color:#a09183;font-size:11px;text-align:center}
.voice-live-stage.without-captions .voice-orb-wrap{transform:translateY(-12px)}
.voice-live-stage .chat-hidden-note{flex:none;max-height:50px;padding:4px 16px 12px;color:#968779;font-size:10px}
.voice-live-stage.with-captions{justify-content:flex-start;background:#fffefa}
.voice-live-stage.with-captions .voice-orb-wrap{display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:3px 14px;justify-content:start;align-items:center;padding:16px 24px;border-bottom:1px solid #eee7de;text-align:left}
.voice-live-stage.with-captions .voice-chat-orb{grid-column:1;grid-row:1/3;width:48px;height:48px;box-shadow:inset -4px -5px 9px #55211135,inset 3px 3px 7px #fff5df88,0 3px 12px #8b472e24;animation-name:voice-orb-compact-breathe}
.voice-live-stage.with-captions .voice-chat-orb.talking{animation-name:voice-orb-talk}
.voice-live-stage.with-captions .voice-orb-core{box-shadow:inset 0 0 7px #fff4db9c,0 0 7px #f5c4a768}
.voice-live-stage.with-captions .voice-orb-wave.wave-three{inset:-24%}
.voice-live-stage.with-captions .voice-orb-status{grid-column:2;grid-row:1;margin:0;min-width:0;font-size:12px}
.voice-live-stage.with-captions .voice-orb-status span{overflow-wrap:anywhere}
.voice-live-stage.with-captions .voice-orb-hint{grid-column:2;grid-row:2;margin:0;font-size:10px}
.voice-live-stage.with-captions .voice-chat-elapsed{grid-column:3;grid-row:1/3;margin:0;font-size:11px}
.voice-live-stage.with-captions .voice-transcript{flex:1 1 0;max-height:none;min-height:0;border-top:0;mask-image:none}
@keyframes voice-orb-compact-breathe{0%,100%{transform:scale(.97)}50%{transform:scale(1.035)}}
@media(max-width:680px){
  .voice-live-stage.with-captions .voice-orb-wrap{grid-template-columns:40px minmax(0,1fr) auto;gap:3px 12px;padding:13px 17px}
  .voice-live-stage.with-captions .voice-chat-orb{width:40px;height:40px}
  .voice-live-stage.with-captions .voice-transcript{flex:1 1 0;max-height:none}
}
@keyframes voice-orb-breathe{0%,100%{transform:scale(.97);box-shadow:inset -15px -20px 32px #55211145,inset 10px 9px 25px #fff5df88,0 18px 42px #8b472e2b}50%{transform:scale(1.035);box-shadow:inset -15px -20px 32px #55211145,inset 10px 9px 25px #fff5df88,0 20px 62px #8b472e4a}}
@keyframes voice-core-shimmer{0%,100%{transform:scale(.97);filter:brightness(.98)}50%{transform:scale(1.045);filter:brightness(1.12)}}
@keyframes voice-orb-wave{0%{opacity:.38;transform:scale(.86)}100%{opacity:0;transform:scale(1.13)}}
@keyframes voice-orb-talk{from{transform:scale(.97)}to{transform:scale(1.07)}}
@keyframes voice-startup-pulse{0%,100%{transform:scale(.85);box-shadow:0 0 0 3px #b9aa9918}50%{transform:scale(1.18);box-shadow:0 0 0 8px #b9aa9928}}
@keyframes voice-startup-spin{to{transform:rotate(360deg)}}

@media(max-width:680px){
  .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));height:calc(72px + env(safe-area-inset-bottom));padding:4px 5px calc(4px + env(safe-area-inset-bottom))}
  .mobile-conversation-item{display:grid;place-items:center;align-self:start;justify-self:center;width:62px;height:62px;margin-top:-17px;border:4px solid #f7f2e9;border-radius:50%;background:linear-gradient(145deg,#b9694b,#843d29);color:#fffefa;box-shadow:0 5px 16px #77382145;font-size:15px;font-weight:900;letter-spacing:1px}
  .mobile-conversation-item.active{background:linear-gradient(145deg,#cb7755,#843d29);box-shadow:0 0 0 3px #e8cbbb,0 7px 18px #77382145}
  .mobile-conversation-item span{color:inherit}
  .mobile-nav-item{font-size:10px}
  body.mobile-chat-open .shell{height:100dvh;min-height:100dvh;padding:0;overflow:hidden}
  body.mobile-chat-open .rail,body.mobile-chat-open .topbar,body.mobile-chat-open #mobileSubnav,body.mobile-chat-open .app-footer{display:none!important}
  body.mobile-chat-open .main-shell{height:100dvh;min-height:0;padding:0;overflow:hidden}
  body.mobile-chat-open #viewRoot{height:100%;padding:0;overflow:hidden}
  #viewRoot[data-view="conversation"]{width:100%;height:100%;margin:0;padding:0}
  .conversation-screen{width:100%;height:calc(100dvh - 76px - env(safe-area-inset-bottom));min-height:0;margin:0;border:0;border-radius:0;background:#fffefa;box-shadow:none}
  .chat-app-header{min-height:60px;gap:9px;padding:calc(8px + env(safe-area-inset-top)) 13px 9px}
  .chat-header-icon,.chat-header-action{width:38px;height:38px;font-size:19px}
  .chat-header-title strong{font-size:15px}
  .chat-header-title small{max-width:155px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
  .chat-caption-toggle{min-height:34px;padding:0 10px;font-size:10px}
  .chat-mode-strip{min-height:29px;padding:0 17px;font-size:10px}
  .conversation-stream{padding:15px 15px 18px}
  .conversation-stream .chat-turn{max-width:100%;margin-bottom:16px}
  .conversation-stream .chat-avatar{display:none}
  .conversation-stream .chat-turn.user{flex-direction:row;justify-content:flex-end}
  .conversation-stream .chat-turn.assistant{flex-direction:row;justify-content:flex-start}
  .conversation-stream .chat-bubble-wrap{max-width:88%}
  .conversation-stream .chat-label{font-size:10px}
  .conversation-stream .chat-turn.user .chat-label{text-align:right}
  .conversation-stream .chat-text{padding:10px 13px;font-size:15px;line-height:1.72}
  .conversation-welcome{padding:18px 20px}
  .conversation-welcome img{width:96px;height:96px;margin-bottom:10px}
  .conversation-welcome h2{font-size:22px}
  .conversation-welcome p{font-size:13px}
  .chat-composer{min-height:116px;padding:12px 16px calc(16px + env(safe-area-inset-bottom))}
  .voice-live-stage{justify-content:center;background:radial-gradient(ellipse at 50% 42%,#fbf5ed 0,#fffefa 62%)}
  .voice-orb-wrap{padding:12px 12px 15px}
  .voice-chat-orb{width:clamp(116px,36vw,150px);height:clamp(116px,36vw,150px)}
  .voice-orb-status{margin-top:22px;font-size:12px}
  .voice-orb-hint{font-size:10px}
  .voice-chat-elapsed{margin-top:8px}
  .voice-transcript{flex-basis:31%;max-height:31%;padding:10px 15px 12px}
  .voice-transcript .chat-turn{margin-bottom:9px}
  .voice-live-stage.without-captions .voice-orb-wrap{transform:translateY(-5px)}
  .voice-live-stage .chat-hidden-note{font-size:9px}
  .chat-compose-form{gap:6px;padding:5px}
  .chat-compose-form input{height:40px;font-size:14px}
  .chat-mic-button{width:40px;height:40px}
  .chat-send-button{width:37px;height:37px}
  .chat-compose-meta{font-size:9px}
  .chat-compose-meta button{min-height:30px;padding:0 9px;font-size:9px}
  .chat-privacy-note{font-size:9px}
  .chat-start-button{min-height:68px;padding:9px 12px;border-radius:21px}
  .chat-start-wave{width:45px;height:45px}
  .chat-start-button b{font-size:14px}
  .chat-start-button small{font-size:10px}
  .voice-start-button{min-height:72px;padding:9px 13px;border-radius:21px}
  .voice-mic-icon{width:49px;height:49px;font-size:22px}
  .voice-start-button strong{font-size:14px}
  .voice-start-button small{font-size:10px}
  .voice-ready>p{font-size:10px}
  .voice-live-mic{width:56px;height:56px;font-size:22px}
  .voice-live-controls{gap:7px}
  .chat-history-drawer{width:min(340px,88vw);padding-left:13px;padding-right:13px}
}

/* Keep page and section titles pure black on desktop and mobile. */
#pageTitle,
#viewRoot :is(h1,h2,h3,h4,h5,h6,.metric-top,.topic-card-content strong,.chat-header-title strong,.chat-history-item strong),
#modalRoot :is(h1,h2,h3,h4,h5,h6){color:#000!important}

/* Tongzhuo-inspired practice browser: compact filters and topic table. */
.practice-heading{margin-bottom:18px}
.practice-heading h2{margin:5px 0 4px;color:#000;font-size:30px}
.practice-heading p{margin:0;color:#74675c;font-size:13px}
.practice-heading-dot{padding:0 5px;color:#c2b6aa}
.practice-browser{padding:25px 28px 20px;border:1px solid #ece8e2;border-radius:12px;background:#fff;box-shadow:0 8px 28px #46351a08}
.practice-filter-line{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0eeeb}
.practice-filter-label{color:#6d6259;font-size:13px;font-weight:700;white-space:nowrap}
.practice-filter-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;min-width:0}
.practice-filter-chip,.practice-part-tab{min-height:34px;padding:0 16px;border:1px solid transparent;border-radius:20px;background:transparent;color:#443d37;font-size:14px;font-weight:650;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.practice-filter-chip:hover,.practice-part-tab:hover{background:#fff1ef;color:#a8453b}
.practice-filter-chip.active,.practice-part-tab.active{background:#ff7771;color:#fff;border-color:#ff7771}
.practice-part-tab{min-height:36px;padding:0 20px}
.practice-topic-filter-line{grid-template-columns:58px minmax(0,1fr) auto;gap:10px}
.practice-search{display:flex;width:min(300px,100%);height:38px;overflow:hidden;border:1px solid #e9edf2;border-radius:9px;background:#fff}
.practice-search-field{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 10px;color:#9aa0a6}
.practice-search-field>span{font-size:21px;line-height:1}
.practice-search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#302720;font:inherit;font-size:13px}
.practice-search-field input::placeholder{color:#a8a8a8}
.practice-search-field button{flex:none;border:0;background:transparent;color:#8b8b8b;font-size:18px}
.practice-search-submit{width:68px;flex:none;border:0;background:#ff625b;color:#fff;font-size:14px;font-weight:750}
.practice-topic-grid-head{display:flex;justify-content:space-between;align-items:center;margin:18px 0 9px;color:#4c433b;font-size:13px;font-weight:700}
.practice-topic-grid-head span:last-child{color:#8c837b;font-size:12px;font-weight:500}
.practice-topic-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #eceff2;border-left:1px solid #eceff2}
.practice-topic-cell{display:flex;align-items:center;gap:9px;min-width:0;min-height:49px;padding:0 10px;border:0;border-right:1px solid #eceff2;border-bottom:1px solid #eceff2;background:#fff;text-align:left;color:#373737;transition:background .15s}
.practice-topic-cell:hover{background:#fff7f5}
.practice-topic-cell.selected{background:#fff0ed;box-shadow:inset 0 0 0 1px #f2b4a6}
.practice-topic-check{display:grid;place-items:center;width:15px;height:15px;flex:none;border:1px solid #d6d8da;border-radius:3px;color:#fff;font-size:11px}
.practice-topic-cell.selected .practice-topic-check{border-color:#ee665c;background:#ee665c}
.practice-topic-name{overflow:hidden;flex:1;color:#363636;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.practice-topic-state{flex:none;color:#9a948e;font-size:10px;white-space:nowrap}
.practice-topic-cell.selected .practice-topic-state{color:#a84639}
.practice-empty{grid-column:1/-1;padding:36px 16px;color:#837a72;text-align:center;font-size:13px}
.practice-selection-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #efedea}
.practice-selection-bar>div{display:flex;align-items:center;gap:12px;min-width:0}
.practice-selection-bar strong{overflow:hidden;color:#27231f;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.practice-selection-bar .primary-button{min-height:42px;padding:0 20px;background:#843d29;white-space:nowrap}
@media(max-width:980px){.practice-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.practice-browser{padding:20px}}
@media(max-width:680px){
  .practice-heading{margin:0 0 13px;padding:0 2px}
  .practice-heading h2{font-size:24px}
  .practice-heading p{font-size:11px}
  .practice-browser{padding:12px;border-radius:11px}
  .practice-filter-line{grid-template-columns:38px minmax(0,1fr);gap:6px;padding:9px 0}
  .practice-filter-label{font-size:11px}
  .practice-filter-options{flex-wrap:nowrap;gap:5px;overflow-x:auto;scrollbar-width:none}
  .practice-filter-options::-webkit-scrollbar{display:none}
  .practice-filter-chip{min-height:30px;padding:0 11px;font-size:12px}
  .practice-part-tab{min-height:33px;padding:0 13px;font-size:12px}
  .practice-topic-filter-line{grid-template-columns:38px minmax(0,1fr);}
  .practice-topic-filter-line .practice-search{grid-column:2;grid-row:2;width:100%;margin-top:5px}
  .practice-search{height:36px}
  .practice-search-submit{width:58px;font-size:12px}
  .practice-topic-grid-head{margin:13px 0 7px;font-size:12px}
  .practice-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .practice-topic-cell{gap:6px;min-height:43px;padding:0 7px}
  .practice-topic-name{font-size:11px}
  .practice-topic-state{display:none}
  .practice-topic-check{width:14px;height:14px}
  .practice-selection-bar{align-items:stretch;flex-direction:column;gap:9px;margin-top:12px;padding-top:11px}
  .practice-selection-bar>div{gap:8px}
  .practice-selection-bar strong{font-size:13px}
  .practice-selection-bar .primary-button{width:100%;min-height:42px}
}

/* Topic detail and question workbench inspired by the supplied reference. */
.practice-source-note{margin:12px 0 0;color:#90877f;font-size:11px;line-height:1.6}
.practice-topic-cell{justify-content:space-between;gap:7px;cursor:pointer}
.practice-topic-cell .practice-topic-name{font-size:14px;font-weight:550}
.practice-topic-cell .practice-topic-state{opacity:0;transition:opacity .15s}
.practice-topic-cell:hover .practice-topic-state,.practice-topic-cell:focus-visible .practice-topic-state{opacity:1}
.topic-breadcrumb{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#786f67;font-size:13px}
.topic-breadcrumb button{border:0;background:transparent;color:#65594f;font-size:13px;font-weight:650}
.source-topic-header{display:flex;align-items:center;gap:16px;min-height:76px;margin-bottom:17px;padding:13px 18px;border:1px solid #eeeae5;border-radius:12px;background:#fff}
.source-part-badge{display:grid;place-items:center;min-width:100px;height:42px;padding:0 14px;border-radius:6px;background:#f2f5f8;color:#686868;font-size:17px;font-weight:800}
.source-topic-header h2{flex:1;margin:0;color:#242424;font-size:24px;line-height:1.3}
.source-topic-category,.source-practice-progress{color:#898078;font-size:12px}
.topic-detail-layout{grid-template-columns:minmax(0,1fr)}
.topic-sidebar{display:none}
.topic-question-heading{margin:0 0 12px;padding:0 2px}
.topic-question-heading h3{margin:0 0 5px;color:#292929;font-size:18px}
.topic-question-heading p{margin:0;color:#8b8178;font-size:12px;line-height:1.5}
.question-list{gap:3px;padding:0 18px;border:1px solid #eef0f2;border-radius:10px;background:#fff}
.question-card.question-accordion{display:block;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.question-card.question-accordion+.question-accordion{border-top:1px solid #eceff2}
.question-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:14px 0;border:0;background:transparent;text-align:left;color:#333}
.question-toggle .question-number{width:28px;height:28px;border-radius:7px;background:#f1f4f7;color:#6c747c;font-size:13px}
.question-title{flex:1;font-size:19px;font-weight:750;line-height:1.45}
.question-toggle .question-status{font-size:11px;white-space:nowrap}
.question-chevron{color:#666;font-size:22px}
.question-workbench{margin:0 0 18px 39px;padding:0 17px 16px;border-radius:8px;background:#f3f6fa}
.answer-customize-toggle{display:flex;align-items:center;gap:9px;min-height:50px;padding:0 4px;border:0;border-bottom:1px solid #e6ebf0;background:transparent;color:#333;font-size:15px;font-weight:750}
.answer-customize-toggle{position:relative;z-index:1;cursor:pointer;pointer-events:auto}
.answer-customize-toggle.has-material{width:100%;justify-content:flex-start;padding:0 12px;border:1px solid #ead0c2;border-radius:9px;background:#fff8f3;color:#8c452d;text-align:left}
.answer-customize-toggle.has-material:hover{border-color:#c98262;background:#fff1e8}
.answer-customize-toggle.has-material span{color:#785f50}
.answer-customize-toggle.active{color:#c64d43}
.answer-customize-toggle span{color:#92979d;font-size:12px;font-weight:500}
.answer-mode-tabs{display:flex;gap:23px;min-height:51px;border-bottom:1px solid #e6ebf0}
.answer-mode-tab{position:relative;padding:0 4px;border:0;background:transparent;color:#969696;font-size:15px;font-weight:700}
.answer-mode-tab.active{color:#333}
.answer-mode-tab.active:after{position:absolute;right:0;bottom:-1px;left:0;height:3px;border-radius:3px;background:#ff6058;content:""}
.answer-mode-tab i{margin-left:3px;padding:2px 4px;border-radius:3px;background:#ff625b;color:white;font-size:9px;font-style:normal}
.answer-keyword-area{padding:17px 0 0}
.answer-keywords{display:block;width:100%;min-height:118px;padding:13px 15px;resize:vertical;border:1px solid #edf0f2;border-radius:4px;outline:none;background:#fff;color:#383838;font:inherit;font-size:14px;line-height:1.65}
.answer-keywords:focus{border-color:#f2aaa2;box-shadow:0 0 0 3px #ff625b14}
.answer-keywords::placeholder{color:#b6b8ba}
.answer-workbench-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.question-workbench .answer-workbench-actions{justify-content:flex-end}
.answer-helper{color:#8a8d91;font-size:11px;line-height:1.5}
.answer-generate-button{min-height:40px;padding:0 20px;border:0;border-radius:7px;background:#ff554e;color:#fff;font-size:14px;font-weight:750;white-space:nowrap}
.question-workbench .example-panel{width:100%;box-sizing:border-box;margin:12px 0 0;padding:0;border:0;border-radius:10px;background:transparent;color:#414141}
.question-workbench .example-panel p{font-size:14px;line-height:1.75}
.part1-material-card{overflow:hidden;border:1px solid #e5e9ee;border-radius:10px;background:#fff;box-shadow:0 5px 18px #38261a0a}
.part1-material-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 18px;border-bottom:1px solid #edf0f3;background:linear-gradient(110deg,#fffaf5,#fff)}
.material-brand{display:flex;align-items:center;gap:10px;min-width:0}
.material-brand-mark{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#f7e7dc;color:#97472f;font-size:18px}
.material-brand strong,.material-brand small{display:block}
.material-brand strong{color:#302a25;font-size:14px}
.material-brand small{margin-top:3px;color:#8a7b70;font-size:11px}
.material-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.material-action{min-height:34px;padding:0 12px;border:1px solid #ead6c9;border-radius:7px;background:#fff;color:#87412d;font-size:12px;font-weight:700;white-space:nowrap}
.material-action:hover:not(:disabled){border-color:#b6664d;background:#fff8f3}
.material-action.secondary{border-color:#e3e7eb;color:#636b72}
.material-action:disabled{opacity:.45;cursor:not-allowed}
.part1-material-view{padding:6px 18px 0}
.material-section{padding:15px 0;border-bottom:1px solid #f0f1f2}
.material-section:last-of-type{border-bottom:0}
.material-section h4{display:flex;align-items:center;gap:9px;margin:0 0 9px;color:#39322d;font-size:13px;font-weight:750}
.material-section h4 span{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#f5f1ed;color:#9a654f;font-size:10px;letter-spacing:.03em}
.material-section-1 .material-section-content{color:#765343;font-size:13px;font-weight:650;line-height:1.8}
.material-section-2 .material-section-content{color:#292929;font-size:15px;line-height:1.8}
.material-section-3 .material-section-content{color:#61564e;font-size:13px;line-height:1.85}
.material-section-content strong{color:#793f2b;font-weight:700}
.material-footnote{display:flex;justify-content:space-between;gap:10px;padding:11px 0 13px;border-top:1px solid #f0f1f2;color:#999087;font-size:10px}
.material-editor{display:block;width:100%;min-height:340px;box-sizing:border-box;padding:16px 18px;border:0;border-radius:10px;outline:none;resize:vertical;background:#fff;color:#37312c;font:inherit;font-size:13px;line-height:1.8}
.material-editor[hidden],.material-edit-actions[hidden],.part1-material-view[hidden]{display:none}
.material-editor:focus{box-shadow:inset 0 0 0 2px #dfb39d}
.material-edit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #edf0f3;background:#faf9f7;color:#8d837a;font-size:11px}
.material-edit-actions>div{display:flex;gap:7px}
.material-action.save{border-color:#81412d;background:#81412d;color:#fff}
.material-action.save:hover:not(:disabled){border-color:#683321;background:#683321}
.record-practice-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:104px;margin-top:14px;border:0;border-radius:8px;background:#f3f6fa;color:#3a3a3a}
.record-practice-button>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#ff7770;color:#fff;font-size:22px}
.record-practice-button b{font-size:15px}
.record-practice-note{margin:7px 0 0;text-align:center;color:#858b91;font-size:11px;line-height:1.5}
@media(max-width:680px){
  .practice-topic-cell{min-height:48px}
  .practice-topic-cell .practice-topic-name{font-size:12px}
  .practice-topic-cell .practice-topic-state{display:none}
  .practice-source-note{font-size:9px}
  .topic-breadcrumb{gap:7px;margin-bottom:9px;font-size:11px}
  .topic-breadcrumb button{font-size:11px}

/* Make the topic-list return action easy to spot and tap. */
.topic-breadcrumb .topic-back-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 16px;border:1px solid #793b28;border-radius:12px;background:#843f2b;color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 9px #69321f24;cursor:pointer;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
.topic-breadcrumb .topic-back-button:hover{background:#713421;box-shadow:0 5px 13px #69321f30;transform:translateY(-1px)}
.topic-breadcrumb .topic-back-button:active{transform:translateY(0)}
.topic-breadcrumb .topic-back-button:focus-visible{outline:3px solid #d08a68;outline-offset:3px}
.topic-breadcrumb .topic-back-icon{font-size:20px;line-height:1}
.topic-breadcrumb .topic-breadcrumb-separator{color:#b8aa9e}
.topic-breadcrumb .topic-breadcrumb-current{font-weight:700;color:#47382d}
@media(max-width:680px){.topic-breadcrumb .topic-back-button{min-height:42px;padding:0 13px;gap:7px;font-size:13px}.topic-breadcrumb .topic-back-icon{font-size:19px}}
.topic-breadcrumb button.topic-back-button:not(.favorite-button){border:1px solid #793b28;background:#843f2b;padding:0 16px;color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 9px #69321f24}
@media(max-width:680px){.topic-breadcrumb button.topic-back-button:not(.favorite-button){min-height:42px;padding:0 13px;gap:7px;font-size:13px}}

/* Override the generic breadcrumb button reset with the intentional button treatment. */
.topic-breadcrumb button.topic-back-button:not(.favorite-button){border:1px solid #793b28;background:#843f2b;padding:0 16px;color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 9px #69321f24}
@media(max-width:680px){.topic-breadcrumb button.topic-back-button:not(.favorite-button){min-height:42px;padding:0 13px;gap:7px;font-size:13px}}
  .source-topic-header{display:grid;grid-template-columns:auto 1fr;gap:7px 10px;min-height:0;padding:11px;border-radius:10px}
  .source-part-badge{grid-row:span 2;min-width:68px;height:34px;padding:0 8px;font-size:13px}
  .source-topic-header h2{font-size:18px}
  .source-topic-category,.source-practice-progress{font-size:10px}
  .question-list{padding:0 10px;border-radius:8px}
  .question-toggle{min-height:60px;gap:8px;padding:11px 0}
  .question-toggle .question-number{width:24px;height:24px;font-size:11px}
  .question-title{font-size:14px}
  .question-toggle .question-status{font-size:9px}
  .question-chevron{font-size:19px}
  .question-workbench{margin:0 0 13px 0;padding:0 10px 11px}
  .answer-customize-toggle{min-height:44px;font-size:14px}
  .answer-mode-tabs{gap:16px;min-height:43px}
  .answer-mode-tab{font-size:12px}
  .answer-mode-tab i{font-size:8px}
  .answer-keyword-area{padding-top:11px}
  .answer-keywords{min-height:106px;padding:10px;font-size:12px}
  .answer-workbench-actions{align-items:flex-end;gap:7px;margin-top:9px}
  .answer-helper{font-size:9px}
  .answer-generate-button{min-height:37px;padding:0 13px;font-size:12px}
  .part1-material-head{align-items:stretch;flex-direction:column;padding:12px}
  .material-actions{display:grid;grid-template-columns:1fr 1fr}
  .material-action{padding:0 8px;font-size:11px}
  .part1-material-view{padding:3px 12px 0}
  .material-section{padding:12px 0}
  .material-section-2 .material-section-content{font-size:14px}
  .material-footnote{flex-direction:column;gap:4px;font-size:9px}
  .material-editor{min-height:280px;padding:12px;font-size:12px}
  .material-edit-actions{align-items:stretch;flex-direction:column;padding:10px}
  .material-edit-actions>div{justify-content:flex-end}
  .record-practice-button{min-height:88px;margin-top:10px}
  .record-practice-button>span{width:38px;height:38px;font-size:19px}
  .record-practice-button b{font-size:12px}
  .record-practice-note{font-size:10px}
}

.source-topic-favorite{width:34px;height:34px;border:1px solid #e9e3dc;border-radius:50%;background:#fff;color:#8a796a;font-size:19px}.source-topic-favorite.saved{color:#bd6948;background:#fff5ee;border-color:#e9c7b5}
@media(max-width:680px){.source-topic-favorite{grid-column:2;grid-row:3;width:28px;height:28px;justify-self:end;margin-top:-28px}}

/* Make the topic-list return action easy to spot and tap. */
.topic-breadcrumb .topic-back-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 16px;border:1px solid #793b28;border-radius:12px;background:#843f2b;color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 9px #69321f24;cursor:pointer;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
.topic-breadcrumb .topic-back-button:hover{background:#713421;box-shadow:0 5px 13px #69321f30;transform:translateY(-1px)}
.topic-breadcrumb .topic-back-button:active{transform:translateY(0)}
.topic-breadcrumb .topic-back-button:focus-visible{outline:3px solid #d08a68;outline-offset:3px}
.topic-breadcrumb .topic-back-icon{font-size:20px;line-height:1}
.topic-breadcrumb .topic-breadcrumb-separator{color:#b8aa9e}
.topic-breadcrumb .topic-breadcrumb-current{font-weight:700;color:#47382d}
@media(max-width:680px){.topic-breadcrumb .topic-back-button{min-height:42px;padding:0 13px;gap:7px;font-size:13px}.topic-breadcrumb .topic-back-icon{font-size:19px}}

/* Collapsible desktop navigation rail. */
.rail-label{display:flex;align-items:center;justify-content:space-between}
.rail-collapse-button{width:25px;height:25px;display:grid;place-items:center;border:1px solid #e8dfd5;border-radius:8px;background:#fffefa;color:#806249;font-size:20px;line-height:1}
.rail-collapse-button:hover{background:#f8e8df;color:#843d29}
@media(min-width:681px){
  .shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}
  .sidebar-collapsed .rail{padding:18px 9px 14px}
  .sidebar-collapsed .brand{height:64px;justify-content:center;padding:0 0 10px}
  .sidebar-collapsed .brand-logo{width:55px;height:48px;object-fit:cover;object-position:left center}
  .sidebar-collapsed .rail-label{justify-content:center;padding:0 0 10px}
  .sidebar-collapsed .rail-label>span,.sidebar-collapsed .main-nav .nav-item>span:not(.nav-icon):not(.nav-badge){display:none}
  .sidebar-collapsed .rail-collapse-button{width:38px;height:32px;font-size:23px}
  .sidebar-collapsed .main-nav .nav-item{justify-content:center;padding:0;font-size:0}
  .sidebar-collapsed .nav-icon{width:auto}
  .sidebar-collapsed .rail-promo,.sidebar-collapsed .privacy-note{display:none}
  .sidebar-collapsed .connection-mini{justify-content:center;padding:0 0 10px;font-size:0}
  .sidebar-collapsed .settings-nav{justify-content:center!important;padding:0!important;font-size:0!important}
  .sidebar-collapsed .settings-nav .nav-icon{font-size:15px}
  .sidebar-collapsed .main-shell{padding-right:42px;padding-left:42px}
}

/* Practice bank NEW priority and optional multi select. */
.practice-topic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.practice-topic-cell{position:relative;overflow:hidden;min-height:54px;padding:0 12px}
.practice-topic-open{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit}
.practice-topic-new{position:absolute;top:6px;right:-18px;width:65px;padding:2px 0;background:#ff514b;color:#fff;text-align:center;font-size:10px;font-weight:800;transform:rotate(45deg);pointer-events:none}
.practice-topic-cell.is-new .practice-topic-open{padding-right:17px}
.practice-topic-check{appearance:none;width:17px;height:17px;flex:none;margin:0 2px 0 0;border:1px solid #c8c8c8;border-radius:3px;background:#fff;cursor:pointer}
.practice-topic-check:checked{border-color:#f05b55;background:#f05b55}
.practice-topic-check:checked:after{content:'✓';display:block;color:white;text-align:center;font-size:13px;line-height:15px}
.practice-topic-cell.selected{background:#fff0ed;box-shadow:inset 0 0 0 1px #f2b4a6}
.practice-topic-cell.selected .practice-topic-open{color:#9b4439}
.practice-select-mode{padding:5px 10px;border:1px solid #e5d6c9;border-radius:15px;background:#fff;color:#78695c;font-size:11px;font-weight:700}
.practice-select-mode.active{border-color:#e8b19f;background:#fff0ed;color:#983f31}
.practice-selection-bar{justify-content:flex-start}
.practice-selection-bar .secondary-button{min-height:32px;padding:0 12px;border:1px solid #e7dcd1;border-radius:8px;background:#fff;color:#77685a;font-size:12px}
.practice-topic-grid-head span:last-child{display:flex;align-items:center;gap:9px}
.topic-breadcrumb{padding-left:12px;margin-top:4px}
@media(max-width:980px){.practice-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.rail-collapse-button{display:none}.practice-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-topic-cell{min-height:48px;padding:0 8px}.practice-topic-open{gap:5px}.practice-topic-cell.is-new .practice-topic-open{padding-right:9px}.practice-topic-new{right:-22px;top:5px;width:58px;font-size:8px}.practice-topic-check{width:15px;height:15px}.practice-topic-grid-head span:last-child{gap:5px}.practice-select-mode{font-size:10px;padding:4px 7px}.topic-breadcrumb{padding-left:8px}}
/* Let long topic names use the full cell width; keep the action hint out of the text flow. */
.practice-topic-open{position:relative;justify-content:flex-start}
.practice-topic-open .practice-topic-state{position:absolute;right:0;top:50%;padding:4px 0 4px 10px;background:#fff;color:#8b8178;transform:translateY(-50%);white-space:nowrap}
.practice-topic-cell:hover .practice-topic-open .practice-topic-state,.practice-topic-open:focus-visible .practice-topic-state{opacity:1}
.practice-topic-cell.selected .practice-topic-open .practice-topic-state{background:#fff0ed}

/* Give the topic detail back button more horizontal room. */
.topic-breadcrumb .topic-back-button{min-width:248px;padding-right:26px;padding-left:26px}
@media(max-width:680px){.topic-breadcrumb .topic-back-button{min-width:220px;padding-right:22px;padding-left:22px}}

/* Preserve the source cue-card line breaks (prompt, cue label, each bullet). */
.question-toggle .question-title{white-space:pre-line}

.target-chip{gap:7px;white-space:nowrap}
.target-band-select{width:43px;padding:0 1px;border:0;outline:0;background:transparent;color:var(--rust-dark);font:800 14px Manrope,'Noto Sans SC',sans-serif;cursor:pointer;appearance:none;-webkit-appearance:none}
.target-band-select:focus-visible{outline:2px solid #d9765480;outline-offset:3px;border-radius:4px}
.target-band-select option{color:#302720;background:#fffefa;font:600 14px Manrope,'Noto Sans SC',sans-serif}
.target-band-chevron{margin-left:-8px;color:#8d7867;font-size:12px;pointer-events:none}
@media(max-width:680px){.target-band-select{width:38px;font-size:11px}.target-chip{gap:5px}}

/* Fox-led navigation palette, shared by the desktop rail and mobile dock. */
.rail-bottom{margin-top:auto}
.main-nav [data-view="dashboard"],.mobile-nav [data-mobile-section="learn"]{--fox-color:#e8a323;--fox-wash:#fff1c4}
.main-nav [data-view="practice"],.mobile-nav [data-mobile-section="practice"]{--fox-color:#20a992;--fox-wash:#d8f4ea}
.main-nav [data-view="conversation"],.mobile-conversation-item{--fox-color:#e96b57;--fox-wash:#ffe1d7}
.main-nav [data-view="ai"],.mobile-nav [data-mobile-section="ai"]{--fox-color:#9062d5;--fox-wash:#eee2ff}
.main-nav [data-view="plan"],.mobile-nav [data-mobile-section="me"]{--fox-color:#e45e91;--fox-wash:#ffe1ec}
.main-nav [data-view="reports"]{--fox-color:#4d91d1;--fox-wash:#deefff}
.main-nav [data-view="vocabulary"]{--fox-color:#78a943;--fox-wash:#e8f5d8}
.main-nav [data-view="guide"]{--fox-color:#dc873d;--fox-wash:#ffedd8}
#settingsBtn{--fox-color:#4d91d1;--fox-wash:#deefff}
.nav-item.fox-nav-item{min-height:50px;gap:10px}
.fox-nav-icon{position:relative;width:40px;height:40px;overflow:visible;border-radius:0;background:transparent;box-shadow:none}
.fox-nav-icon img{display:block;width:100%;height:100%;object-fit:contain}
.nav-item.fox-nav-item.active{background:var(--fox-wash);color:#382c24}
.nav-item.fox-nav-item.active:before{background:var(--fox-color)}
.nav-item.fox-nav-item.active .fox-nav-icon{color:inherit}
.sidebar-collapsed .fox-nav-icon{width:38px;height:38px}
.mobile-nav{border-top-color:#eadccf;background:linear-gradient(100deg,#fffaf2f5,#fffdf8f5,#fff8f4f5)}
.mobile-nav-item{gap:2px;border-radius:14px;transition:transform .16s ease,background .16s ease}
.mobile-nav-icon.fox-mobile-icon{position:relative;width:36px;height:36px;overflow:visible;border-radius:0;background:transparent;box-shadow:none}
.fox-mobile-icon img{display:block;width:100%;height:100%;object-fit:contain}
.mobile-nav-item.active{color:#3c3028;background:var(--fox-wash);box-shadow:inset 0 0 0 1px #fff}
.mobile-nav-item.active .mobile-nav-icon{background:transparent;color:var(--fox-color);box-shadow:none}
.mobile-conversation-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px;width:72px;height:74px;margin-top:-17px;border:0;border-radius:0;background:transparent;color:#56392f;font-size:10px;font-weight:900;letter-spacing:.2px;box-shadow:none}
.mobile-conversation-art{display:grid;width:56px;height:56px;place-items:center;overflow:hidden;border:3px solid #fff;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ffc96b,#f17a57 58%,#db5574);box-shadow:0 4px 14px #a8423240,0 0 0 3px #ffe9d8}
.mobile-conversation-art img{width:100%;height:100%;object-fit:contain;transform:scale(1.16)}
.mobile-conversation-item.active{background:transparent;box-shadow:none}
.mobile-conversation-item.active .mobile-conversation-art{box-shadow:0 4px 14px #a8423240,0 0 0 4px #ffe2a9}
.mobile-conversation-item>span:last-child{line-height:14px}
@media(max-width:680px){
  .nav-item.fox-nav-item{min-height:45px}
  .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));}
  .mobile-nav-item{font-size:10px}
  .mobile-conversation-item{width:66px;height:70px;margin-top:-16px}
  .mobile-conversation-art{width:52px;height:52px}
  .mobile-nav-icon.fox-mobile-icon{width:34px;height:34px}
}
/* Story builder: responsive Part 2 interview and reusable personal story cards. */
.story-home,.story-interview-page,.story-edit-page{max-width:1320px;margin:0 auto;padding:8px 0 56px;color:#201b17}
.story-hero{position:relative;display:grid;grid-template-columns:1fr auto;gap:16px 28px;align-items:center;padding:34px 40px 24px;border:1px solid #eadfd4;border-radius:24px;background:linear-gradient(120deg,#fffaf5,#f4e8dc);overflow:hidden}
.story-hero h2{margin:9px 0 10px;color:#171310;font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}
.story-hero p{max-width:760px;margin:0;color:#66584c;font-size:16px;line-height:1.8}
.story-hero small{grid-column:1/-1;color:#78695d;font-size:12px;line-height:1.6}
.story-hero-mark{width:90px;height:90px;display:grid;place-items:center;border-radius:28px;background:#8b3d25;color:#fff;font-size:42px;box-shadow:0 14px 32px #8b3d2526}
.story-section-heading{display:flex;justify-content:space-between;align-items:end;margin:32px 0 16px}.story-section-heading h3{margin:4px 0;color:#181411;font-size:23px}.story-section-heading h3 small{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:20px;background:#f2e8df;color:#74402d;font-size:13px}.story-section-heading p{margin:5px 0 0;color:#786e66;font-size:13px}
.story-saved-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.story-saved-card,.story-empty{border:1px solid #e9e1d9;border-radius:17px;background:#fff;padding:16px}.story-saved-open{width:100%;display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;text-align:left;border:0;background:transparent;color:inherit;cursor:pointer}.story-saved-open span:nth-child(2){min-width:0}.story-saved-open strong,.story-saved-open small{display:block}.story-saved-open strong{font-size:16px}.story-saved-open small{margin-top:5px;color:#74685e;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.story-saved-open b{color:#8b3d25;font-size:13px;white-space:nowrap}.story-card-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#f6e9df;color:#8b3d25}.story-saved-foot{display:flex;justify-content:space-between;margin:13px 0 0 50px;padding-top:10px;border-top:1px solid #f0ebe6;color:#877a70;font-size:12px}.story-saved-foot button{border:0;background:none;color:#8b3d25;cursor:pointer}
.story-empty{grid-column:1/-1;display:grid;justify-items:start;gap:6px;color:#74685e}.story-empty>span{color:#8b3d25;font-size:24px}.story-empty b{color:#342b24}.story-empty p{margin:0;font-size:13px}
.story-filter-row{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.story-filter{padding:9px 18px;border:1px solid #e5d9cf;border-radius:999px;background:white;color:#56483d;cursor:pointer;font-weight:700}.story-filter.active{border-color:#8b3d25;background:#8b3d25;color:white}
.story-cue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.story-cue-card{display:flex;flex-direction:column;min-height:238px;padding:19px;border:1px solid #e8dfd7;border-radius:17px;background:#fff;transition:transform .18s,border-color .18s,box-shadow .18s}.story-cue-card:hover{transform:translateY(-2px);border-color:#d5b8a6;box-shadow:0 12px 30px #4c2b1710}.story-cue-top{display:flex;justify-content:space-between;gap:8px;color:#8a7060;font-size:12px}.story-cue-top b{color:#8b3d25;font-size:10px;letter-spacing:.08em}.story-cue-card h4{margin:14px 0 8px;color:#1c1714;font-size:18px}.story-cue-card p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 18px;color:#5f554d;font-size:13px;line-height:1.7}.story-cue-actions{display:flex;gap:8px;margin-top:auto}.story-cue-actions button,.story-voice-controls button{flex:1;padding:10px 12px;border:1px solid #e5d4c8;border-radius:11px;background:#fff8f3;color:#793a24;font-weight:700;cursor:pointer}.story-cue-actions button:last-child{background:#8b3d25;border-color:#8b3d25;color:white}
.story-page-head{padding:8px 0 21px}.story-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;padding:10px 15px;border:1px solid #ded2c7;border-radius:12px;background:#fff;color:#563b2c;font-weight:750;cursor:pointer}.story-page-head h2{margin:10px 0 6px;color:#16120f;font-size:30px}.story-page-head p{max-width:900px;color:#675a50;line-height:1.7}.story-part-badge{padding:6px 11px;border-radius:7px;background:#f0f2f5;color:#555e67;font-size:12px;font-weight:800;letter-spacing:.04em}
.story-session-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:18px}.story-chat-panel,.story-side-panel{min-width:0;border:1px solid #e9e1d9;border-radius:18px;background:#fff}.story-chat-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid #eee8e3}.story-chat-head b,.story-chat-head small{display:block}.story-chat-head small{margin-top:5px;color:#84796f}.story-finish{padding:10px 16px;border:0;border-radius:10px;background:#8b3d25;color:#fff;font-weight:750;cursor:pointer}.story-transcript{display:flex;flex-direction:column;gap:12px;max-height:500px;min-height:210px;overflow:auto;padding:20px}.story-first-question{padding:16px;border-radius:13px;background:#f5f6f8;color:#39332f;line-height:1.7}.story-turn{max-width:88%;padding:12px 15px;border-radius:14px;background:#f4f5f7}.story-turn.user{align-self:flex-end;background:#f6e9df}.story-turn b{font-size:11px;color:#8b3d25}.story-turn p{margin:5px 0 0;line-height:1.65;white-space:pre-wrap}.story-reply-form{display:flex;align-items:end;gap:10px;padding:12px 18px;border-top:1px solid #eee8e3}.story-reply-form textarea{flex:1;resize:vertical;min-height:52px;padding:12px;border:1px solid #ded8d2;border-radius:11px;font:inherit}.story-reply-form button{height:44px;padding:0 17px;border:0;border-radius:10px;background:#8b3d25;color:white;font-weight:750;cursor:pointer}.story-voice-controls{display:flex;align-items:center;gap:12px;padding:14px 18px;border-top:1px solid #eee8e3}.story-voice-controls span{flex:1;color:#776b62;font-size:13px}.story-voice-controls span.live{color:#2d7954}.story-voice-controls button{flex:0 0 auto}.story-side-panel{padding:20px}.story-side-panel h3{margin:0 0 10px;color:#211b17;font-size:16px}.story-side-panel h3:not(:first-child){margin-top:25px}.story-side-panel p{color:#6f6258;line-height:1.7;font-size:13px}.story-detail-chip{display:inline-block;margin:4px 4px 0 0;padding:6px 9px;border-radius:999px;background:#f4eee8;color:#6b4936;font-size:11px}.story-match{display:grid;gap:6px;margin:9px 0;padding:12px;border:1px solid #eee7e0;border-radius:12px;background:#fff}.story-match>span{color:#8b3d25;font-size:11px;font-weight:750}.story-match strong{font-size:13px;line-height:1.55}.story-match small,.story-match em{color:#756960;font-size:12px;line-height:1.55}.story-match em{font-style:normal;color:#9a613e}
.story-edit-page{max-width:900px}.story-edit-page header{margin-bottom:20px}.story-edit-page header h2{margin:8px 0;color:#171310;font-size:30px}.story-edit-page header p{color:#71665d;line-height:1.7}.story-edit-page>label{display:grid;gap:7px;margin:15px 0;color:#4d4036;font-weight:700}.story-edit-page input,.story-edit-page textarea{width:100%;padding:12px;border:1px solid #ded7d0;border-radius:11px;background:white;color:#27211c;font:inherit;line-height:1.7}.story-edit-matches{margin:26px 0}.story-edit-matches h3{color:#211b17}.story-edit-matches .story-match button{justify-self:start;padding:8px 12px;border:0;border-radius:8px;background:#8b3d25;color:white;font-weight:700;cursor:pointer}.story-edit-page footer{display:flex;gap:10px;margin-top:22px}
@media(max-width:980px){.story-cue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-session-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,.8fr)}}
@media(max-width:680px){.story-home,.story-interview-page,.story-edit-page{padding:0 0 30px}.story-hero{grid-template-columns:1fr;padding:23px 20px 17px;border-radius:18px}.story-hero h2{font-size:28px}.story-hero p{font-size:14px}.story-hero-mark{position:absolute;right:17px;top:18px;width:45px;height:45px;border-radius:15px;font-size:22px}.story-hero>div:first-child{padding-right:34px}.story-section-heading{margin:25px 0 12px}.story-section-heading h3{font-size:20px}.story-cue-grid,.story-saved-grid{grid-template-columns:1fr}.story-cue-card{min-height:0;padding:16px}.story-cue-card p{-webkit-line-clamp:3}.story-filter-row{gap:6px}.story-filter{padding:8px 14px;font-size:13px}.story-page-head h2,.story-edit-page header h2{font-size:25px}.story-page-head p{font-size:13px}.story-session-grid{grid-template-columns:1fr;gap:12px}.story-chat-head{align-items:start;padding:14px}.story-chat-head small{max-width:190px;line-height:1.5}.story-finish{padding:9px 11px;font-size:12px;white-space:nowrap}.story-transcript{min-height:190px;max-height:48vh;padding:14px}.story-turn{max-width:96%}.story-reply-form{padding:10px;gap:7px}.story-reply-form textarea{font-size:14px}.story-reply-form button{padding:0 12px;font-size:13px}.story-side-panel{padding:16px}.story-voice-controls{padding:12px}.story-edit-page footer{flex-direction:column}.story-edit-page footer button{width:100%}}
/* Cross-topic collection and answer management view. */
.story-hero-main{grid-template-columns:minmax(0,1fr) auto;padding:42px 46px 24px}.story-hero-main>div:first-child{max-width:850px}.story-start-primary{display:inline-flex;align-items:center;gap:28px;margin-top:22px;padding:14px 24px;border:0;border-radius:13px;background:#8b3d25;color:#fff;font-size:17px;font-weight:800;box-shadow:0 9px 22px #8b3d252b;cursor:pointer}.story-start-primary span{font-size:21px}.story-hero-main .story-hero-mark{width:106px;height:106px}.story-progress-card{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:8px 22px;margin:0 0 18px;padding:17px 22px;border:1px solid #e9e1d9;border-radius:16px;background:white}.story-progress-card>div:first-child{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px}.story-progress-card>div:first-child b{font-size:14px}.story-progress-card>div:first-child strong{grid-row:1/3;grid-column:2;color:#8b3d25;font-size:25px}.story-progress-card>div:first-child small{color:#83776e;font-size:11px}.story-progress-track{position:relative;height:10px;border-radius:20px;background:#f0ebe6}.story-progress-track i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#b56546,#8b3d25)}.story-progress-track span{position:absolute;top:-3px;height:16px;border-left:2px dashed #342920}.story-progress-step{grid-column:2;color:#756a60;font-size:12px}.story-interview-count{color:#8b3d25;font-size:13px;font-weight:750}.story-ready-callout{display:grid;grid-template-columns:1fr auto;gap:6px 14px;margin:0 18px 10px;padding:15px;border:1px solid #c9e3cf;border-radius:12px;background:#f1faf3}.story-ready-callout b{color:#265b36}.story-ready-callout span{color:#4f6d57;font-size:12px}.story-ready-callout button{grid-column:2;grid-row:1/3;padding:10px 13px;border:0;border-radius:9px;background:#347548;color:white;font-weight:750;cursor:pointer}.story-plan-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.story-plan-list li{display:grid;grid-template-columns:23px 1fr;gap:8px;align-items:start;color:#766b63;font-size:12px;line-height:1.55}.story-plan-list li i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#f0ebe6;color:#66584c;font-size:10px;font-style:normal}.story-plan-list li.current{color:#382a20;font-weight:750}.story-plan-list li.current i,.story-plan-list li.done i{background:#8b3d25;color:white}.story-material-mini{margin:8px 0;padding:10px;border:1px solid #eee7e0;border-radius:10px}.story-material-mini b,.story-material-mini small{display:block}.story-material-mini b{font-size:12px}.story-material-mini small{margin-top:4px;color:#83776e;font-size:11px;line-height:1.5}.story-result-summary{display:flex;gap:10px;margin:16px 0}.story-result-summary>div{display:grid;gap:3px;min-width:125px;padding:13px 16px;border:1px solid #e9e1d9;border-radius:12px;background:white}.story-result-summary b{color:#8b3d25;font-size:21px}.story-result-summary small{color:#776b61;font-size:11px}.story-plan-title{display:grid;gap:7px;max-width:600px;margin:20px 0;color:#4d4036;font-weight:700}.story-plan-title input{padding:12px;border:1px solid #ded7d0;border-radius:10px;font:inherit}.story-articles-manage{display:grid;gap:16px}.story-article-card{padding:18px;border:1px solid #e7dfd7;border-radius:16px;background:#fff}.story-article-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:14px}.story-article-card>header>span{color:#8b3d25;font-size:12px;font-weight:800}.story-article-title{min-width:0;padding:9px 11px;border:1px solid #e5ddd5;border-radius:9px;font-family:inherit;font-size:16px;font-weight:700}.story-article-card>header button{border:0;background:transparent;color:#9a5340;cursor:pointer}.story-article-mapping{margin:0 0 15px;padding:14px;border-radius:12px;background:#f7f5f2}.story-article-mapping>b{display:block;margin-bottom:8px;color:#42372e;font-size:13px}.story-mapped-topic{padding:9px 0;border-top:1px solid #e9e4de}.story-mapped-topic>span{color:#8b3d25;font-size:12px;font-weight:800}.story-mapped-topic p{margin:4px 0;color:#544a42;font-size:12px;line-height:1.6}.story-mapped-topic small{color:#807368;font-size:11px}.story-article-card>label{display:grid;gap:6px;margin:13px 0;color:#55483e;font-size:12px;font-weight:750}.story-article-card textarea{width:100%;padding:11px;border:1px solid #ded7d0;border-radius:10px;font-family:inherit;font-size:14px;line-height:1.7;color:#29221d}.story-practice-article{padding:10px 14px;border:0;border-radius:9px;background:#8b3d25;color:white;font-weight:750;cursor:pointer}.story-gap-note{display:grid;gap:4px;margin:10px 0;padding:10px;border-radius:9px;background:#fff7e9;color:#78552e;font-size:12px}.story-gap-note span{line-height:1.6}
@media(max-width:680px){.story-hero-main{grid-template-columns:1fr;padding:25px 20px 17px}.story-hero-main .story-hero-mark{width:48px;height:48px}.story-start-primary{width:100%;justify-content:center}.story-progress-card{grid-template-columns:1fr;padding:14px}.story-progress-track,.story-progress-step{grid-column:1}.story-ready-callout{grid-template-columns:1fr;margin:0 10px 10px}.story-ready-callout button{grid-column:1;grid-row:auto}.story-result-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.story-result-summary>div{min-width:0;padding:10px}.story-result-summary b{font-size:16px}.story-article-card{padding:13px}.story-article-card>header{grid-template-columns:auto minmax(0,1fr) auto;gap:6px}.story-article-title{font-size:14px}.story-plan-list li{font-size:12px}}
/* Story answer to cue mapping controls */
.story-map-remove{float:right;padding:3px 8px;border:1px solid #ead6cc;border-radius:7px;background:#fff;color:#8b3d25;font-size:11px;font-weight:700;cursor:pointer}
.story-map-add-row{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e9e4de}
.story-map-select{min-width:0;flex:1;padding:10px 12px;border:1px solid #ded7d0;border-radius:9px;background:#fff;color:#29221d;font:inherit;font-size:13px}
.story-map-add-row button{padding:9px 13px;border:0;border-radius:9px;background:#8b3d25;color:#fff;font-weight:750;cursor:pointer}
.story-map-add-row button:disabled,.story-practice-article:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:680px){.story-map-add-row{align-items:stretch;flex-direction:column}.story-map-select,.story-map-add-row button{width:100%;min-height:42px}}

/* Hide the redundant workspace title strip on the focused practice and assistant pages. */
.hide-workspace-topbar .topbar{display:none}
.practice-topic-cell.is-practiced{background:#f3f3f2}
.practice-topic-cell.is-practiced .practice-topic-name{color:#a3a3a2;text-decoration:line-through}
.practice-topic-cell.is-practiced .practice-topic-state{color:#aaa5a0}
.practice-topic-cell.is-practiced .practice-topic-check:checked{border-color:#aaa;background:#aaa}
.practice-topic-check:disabled{cursor:not-allowed}

.membership-annual{margin-top:-5px;margin-bottom:12px;color:var(--muted,#887b6c);font-size:.84rem;font-weight:650}
.story-interview-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;margin:9px 0;padding:12px;border:1px solid #eee7e0;border-radius:11px;background:#faf8f6}
.story-interview-progress.active{border-color:#e8cabc;background:#fff8f3}
.story-interview-progress b{color:#40352e;font-size:12px}
.story-interview-progress strong{grid-row:1/3;grid-column:2;align-self:center;color:#8b3d25;font-size:19px}
.story-interview-progress small{color:#80766e;font-size:11px;line-height:1.45}

/* IELTS practice score report */
.criterion-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.criterion-line .criterion-score{margin:0;font-size:22px}.criterion-track{height:9px;margin:11px 0 9px;overflow:hidden;border-radius:999px;background:#f0f1f3}.criterion-track i{display:block;height:100%;border-radius:inherit;background:#477cf0;transition:width .35s ease}.criterion-card p{margin:0}.big-band small{font:600 18px Manrope;color:#5f5a56}.evaluation-status{display:inline-flex;margin-top:8px;padding:4px 8px;border-radius:999px;background:#f2f4f6;color:#5d6269;font-size:11px;font-weight:700}.evaluation-status.scored{background:#edf5eb;color:#496a39}.evaluation-status.provisional{background:#fff4e6;color:#8b5e26}.evaluation-status.insufficient_evidence{background:#f8ece8;color:#8b4936}.evaluation-next-step{margin:14px 0;padding:22px 26px}.evaluation-next-step h3{margin:0 0 9px;color:#171513;font-size:20px}.evaluation-next-step p{margin:0;color:#302a26;font-size:17px;line-height:1.65}.evaluation-next-step small{display:block;margin-top:19px;color:#6f6862;font-size:13px;line-height:1.6}
@media(max-width:680px){.report-summary{grid-template-columns:1fr}.score-panel{align-items:flex-start}.criterion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.criterion-card{padding:12px}.criterion-line .criterion-score{font-size:19px}.criterion-track{height:7px;margin:9px 0}.criterion-card p{font-size:11px}.evaluation-next-step{padding:17px}.evaluation-next-step h3{font-size:17px}.evaluation-next-step p{font-size:15px}.evaluation-next-step small{font-size:11px}.big-band small{font-size:15px}}
@media(min-width:681px){#viewRoot[data-view="evaluation"] .criterion-grid{grid-template-columns:1fr;gap:13px}#viewRoot[data-view="evaluation"] .criterion-card{padding:16px 18px}#viewRoot[data-view="evaluation"] .criterion-card p{margin-top:7px}}

/* Part 1 AI answer customization, based on the Part 2 reference while scoped to Part 1 only. */
.p1-customizer{margin-top:14px;padding:22px 24px;border:1px solid #e6e2dd;border-radius:16px;background:#fff;box-shadow:0 8px 24px #3223160a;color:#24211f}.p1-customizer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.p1-customizer-head strong,.p1-customizer-head small{display:block}.p1-customizer-head strong{font-size:20px;font-weight:800;color:#171513}.p1-customizer-head small{margin-top:4px;color:#77716c;font-size:13px}.p1-model-chip{padding:7px 12px;border-radius:999px;background:#f4eee9;color:#704632;font-size:12px;font-weight:750;white-space:nowrap}.p1-custom-question{padding:13px 15px;margin-bottom:18px;border-left:3px solid #9a5135;border-radius:0 10px 10px 0;background:#faf7f4}.p1-custom-question span,.p1-custom-question strong{display:block}.p1-custom-question span{margin-bottom:6px;color:#746d67;font-size:12px}.p1-custom-question strong{color:#22201e;font-size:17px;line-height:1.55}.p1-band-field,.p1-personalization{min-width:0;margin:0;padding:0;border:0}.p1-band-field legend,.p1-personalization legend{margin-bottom:10px;color:#514940;font-size:14px;font-weight:750}.p1-band-options{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.p1-band-choice{position:relative;display:flex;justify-content:center;align-items:center;min-height:43px;border:1px solid #e3dfdb;border-radius:10px;background:#fff;color:#383431;cursor:pointer;transition:.16s ease}.p1-band-choice:hover{border-color:#bd8f78;background:#fdf9f6}.p1-band-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.p1-band-choice:has(input:checked){border-color:#292725;background:#292725;color:white;box-shadow:0 3px 9px #21170f20}.p1-band-choice span{font-size:15px;font-weight:700;pointer-events:none}.p1-custom-row{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin:17px 0}.p1-custom-field{display:grid;gap:7px;color:#514940;font-size:14px;font-weight:750}.p1-custom-field>span{display:flex;align-items:center;gap:7px}.p1-custom-field i{color:#8c8178;font-size:11px;font-style:normal;font-weight:500}.p1-custom-field select{width:100%;min-height:44px;padding:0 13px;border:1px solid #dedad5;border-radius:10px;background:#fff;color:#292624;font:inherit;font-size:14px;font-weight:500}.p1-custom-field textarea{width:100%;min-height:104px;padding:12px 14px;border:1px solid #dedad5;border-radius:10px;background:#fff;color:#292624;font:inherit;font-size:14px;font-weight:450;line-height:1.6;resize:vertical}.p1-custom-field textarea::placeholder{color:#aaa39d}.p1-custom-field textarea:focus,.p1-custom-field select:focus{outline:0;border-color:#a76448;box-shadow:0 0 0 3px #a7644817}.p1-personal-field{margin:0 0 18px}.p1-personalization{display:grid;gap:8px}.p1-personalization legend{margin-bottom:2px}.p1-personalization>label{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #e9e5e1;border-radius:11px;background:#fff;cursor:pointer}.p1-personalization>label:has(input:checked){border-color:#d7b6a6;background:#fcf7f3}.p1-personalization input{width:17px;height:17px;flex:0 0 17px;margin:1px 0 0;accent-color:#8c452d}.p1-personalization span b,.p1-personalization span small{display:block}.p1-personalization span b{color:#302a26;font-size:13px}.p1-personalization span small{margin-top:3px;color:#77706a;font-size:11px;font-weight:450;line-height:1.5}.p1-customizer-foot{display:flex;justify-content:space-between;align-items:center;gap:13px;margin-top:18px;padding-top:15px;border-top:1px solid #eeeae6}.p1-customizer-foot>small{color:#77706a;font-size:11px;line-height:1.5}.p1-customizer .answer-generate-button{min-height:45px;padding:0 21px;border-radius:10px;background:#292725;color:#fff;font-size:14px;font-weight:750}.p1-customizer .answer-generate-button:hover:not(:disabled){background:#8b3d25}.p1-customizer .answer-generate-button:disabled{opacity:.6}
@media(max-width:680px){.p1-customizer{margin-top:10px;padding:16px 14px;border-radius:13px}.p1-customizer-head{align-items:flex-start;margin-bottom:16px}.p1-customizer-head strong{font-size:17px}.p1-customizer-head small{font-size:11px}.p1-model-chip{padding:6px 8px;font-size:10px}.p1-custom-question{padding:11px 12px}.p1-custom-question strong{font-size:14px}.p1-band-options{grid-template-columns:repeat(4,minmax(0,1fr))}.p1-band-choice{min-height:40px}.p1-band-choice span{font-size:14px}.p1-custom-field{font-size:13px}.p1-custom-field select{min-height:43px;font-size:13px}.p1-custom-field textarea{min-height:94px;font-size:13px}.p1-personalization span b{font-size:12px}.p1-personalization span small{font-size:10px}.p1-customizer-foot{align-items:stretch;flex-direction:column}.p1-customizer-foot .answer-generate-button{width:100%}}
/* Unified IELTS Part 2 custom-answer panel and separate preparation/speaking clocks. */
.p2-customizer{background:#fffdfa;border-color:#eadbcd}
.p2-custom-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:17px 0}
.p3-custom-row{grid-template-columns:minmax(0,1fr)}
.p2-answer-card{margin-top:16px;padding:20px;border:1px solid #e9ded2;border-radius:16px;background:#fffdfa;color:#302820}
.p2-answer-head,.p2-model-answer-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.p2-answer-head strong,.p2-answer-head small{display:block}.p2-answer-head strong{font-size:18px}.p2-answer-head small,.p2-answer-head>span,.p2-answer-card footer{color:#847568;font-size:12px}.p2-answer-head small{margin-top:5px}
.p2-notes{margin:17px 0;padding:16px;border-radius:12px;background:#f8f0e7}.p2-notes h4,.p2-model-answer-title h4{margin:0;color:#5a4030;font-size:15px}.p2-notes p{margin:10px 0 12px;color:#67594d;font-size:15px;line-height:1.7}.p2-notes>small{display:block;margin-top:8px;color:#897969;font-size:11px}
.p2-model-answer{padding:4px 0}.p2-model-answer-title{padding-bottom:12px;border-bottom:1px solid #eee5dc}.p2-answer-text{padding:14px 0 4px;color:#332d28;font-size:15px;line-height:1.85;white-space:normal}.p2-answer-card footer{padding-top:13px;border-top:1px solid #eee5dc;line-height:1.6}
@media(max-width:680px){.p2-custom-row{grid-template-columns:1fr}.p2-answer-card{padding:14px}.p2-answer-head,.p2-model-answer-title{align-items:flex-start;flex-direction:column}.p2-answer-head strong{font-size:16px}.p2-notes{padding:13px}.p2-notes p,.p2-answer-text{font-size:14px}}
.p2-diagnostics-section{margin:12px 0 16px;padding:20px}.p2-diagnostics-section .surface-head{margin:0 0 13px}.p2-diagnostics-section .surface-head h3{margin:0 0 5px}.p2-diagnostics-section .surface-head p{margin:0;color:#8c7e72;font-size:12px}.p2-diagnostics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.p2-diagnostic-row{padding:12px 2px;border-top:1px solid #eee8e0}.p2-diagnostic-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.p2-diagnostic-title strong{font-size:14px;color:#45382e}.p2-diagnostic-title span{font-size:12px;font-weight:700}.p2-diagnostic-good{color:#32865a}.p2-diagnostic-needs_improvement{color:#a46b31}.p2-diagnostic-insufficient_evidence{color:#8e8881}.p2-diagnostic-row p{margin:7px 0 0;color:#6f6257;font-size:12px;line-height:1.6}.p2-diagnostic-row small{display:block;margin-top:5px;color:#92765e;font-size:11px;line-height:1.6}.evaluation-status.assisted_practice{background:#fff2dd;color:#886026}
@media(max-width:680px){.p2-diagnostics-section{padding:14px}.p2-diagnostics-grid{grid-template-columns:1fr}.p2-diagnostic-row{padding:10px 0}.p2-diagnostic-title strong{font-size:13px}.p2-diagnostic-row p{font-size:11px}}
/* Keep the selected Part 1 target band vivid and readable. */
.p1-band-choice:has(input:checked){border-color:#ff625b;background:#ff625b;color:#fff;box-shadow:0 3px 10px #ff625b45}
.p1-band-choice:has(input:checked) span{color:#fff!important;font-weight:800;text-shadow:0 1px 1px #9b282266}

/* Focused, single-speaker Part 1 recording and scoring flow */
.solo-practice-wrap{max-width:1040px;margin:0 auto;min-height:min(760px,calc(100vh - 185px));display:grid;place-items:center}.solo-practice-card{width:100%;min-height:570px;padding:clamp(22px,4vw,48px);display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 26%,#fffdfa 0%,#fbf7f1 55%,#f4ece2 100%)}.solo-practice-top{width:100%;display:flex;align-items:center;justify-content:space-between}.solo-practice-card>h2{font:800 clamp(22px,3vw,32px) Manrope,'Noto Sans SC',sans-serif;color:#30251f;margin:24px 0 8px}.solo-question{width:min(780px,100%);padding:20px 24px;border:1px solid #eadfd3;border-radius:16px;background:#fffefa;box-shadow:0 10px 30px #644a3210}.solo-question span{font-size:12px;font-weight:800;letter-spacing:.06em;color:#a15b3d}.solo-question p{font-size:clamp(18px,2.3vw,26px);line-height:1.55;font-weight:700;color:#30251f;margin:8px 0 0}.solo-orb{margin:32px 0 14px}.solo-orb.listening{animation:orb-pulse 2.2s ease-in-out infinite}.solo-status{min-height:25px;display:flex;align-items:center;gap:10px;color:#766759;font-size:14px;text-align:center}.solo-status i{width:9px;height:9px;border-radius:50%;background:#b9aa99}.solo-status i.active{background:#7f9a64;box-shadow:0 0 0 5px #7f9a6422}.solo-practice-card .session-clock{font-size:15px}.solo-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:25px;flex-wrap:wrap}.solo-mic{width:56px;height:56px;font-size:22px;background:#fff8f4;color:#a34f34;border-color:#ead6c9}.solo-pause{width:56px;height:56px;font-size:20px;font-weight:900}.solo-finish{height:56px;min-width:250px;font-size:14px}.solo-finish:disabled{opacity:.58;cursor:wait}.solo-hint{max-width:700px;color:#938273;font-size:12px;line-height:1.7;text-align:center;margin:18px 0 0}.part3-reading-check{display:flex;align-items:flex-start;justify-content:center;gap:8px;cursor:pointer;color:#65564a}.part3-reading-check input{margin:3px 0 0;accent-color:#a34f34;flex:none}
@media(max-width:680px){.solo-practice-wrap{min-height:calc(100dvh - 160px)}.solo-practice-card{min-height:calc(100dvh - 205px);padding:19px 16px}.solo-practice-card>h2{margin:20px 0 8px;font-size:21px}.solo-question{padding:17px}.solo-question span{font-size:10px}.solo-question p{font-size:18px}.solo-orb{width:168px;height:168px;margin:27px 0 13px}.solo-controls{gap:10px;margin-top:21px}.solo-mic,.solo-pause{width:50px;height:50px}.solo-finish{height:52px;min-width:min(220px,calc(100vw - 165px));font-size:12px;padding:0 12px}.solo-hint{font-size:10px;margin-top:15px}}

/* Keep the mobile voice conversation immersive while preserving its caption control. */
.voice-live-caption-toggle{display:none}
@media(max-width:680px){
  body.mobile-live-conversation .mobile-nav{display:none!important}
  body.mobile-live-conversation .conversation-screen{height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:0}
  body.mobile-live-conversation .chat-app-header,
  body.mobile-live-conversation .conversation-screen>.voice-mode-panel{display:none!important}
  body.mobile-live-conversation .chat-composer{min-height:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
  body.mobile-live-conversation .voice-live-controls{gap:5px}
  body.mobile-live-conversation .voice-live-mic{width:46px;height:46px;font-size:19px;box-shadow:0 0 0 5px #f1e1d4,0 5px 14px #843d2930}
  body.mobile-live-conversation .voice-live-mic.muted{box-shadow:0 0 0 5px #eeeae5,0 5px 14px #51443a24}
  body.mobile-live-conversation .voice-live-actions{gap:7px;margin-top:0}
  body.mobile-live-conversation .voice-live-actions button{min-height:30px;padding:0 12px;font-size:10px}
  body.mobile-live-conversation .voice-live-caption-toggle{display:block;position:fixed;z-index:8;top:calc(env(safe-area-inset-top) + 8px);right:12px;min-height:30px;padding:0 10px;border:1px solid #e5d8ca;border-radius:18px;background:#fffefa;color:#59483a;font-size:10px;font-weight:800;box-shadow:0 2px 8px #3c2b1d12}
  body.mobile-live-conversation .voice-live-caption-toggle.active{background:#f5e8dd;border-color:#e8cbbb;color:#843d29}
}

/* Mobile live chat: lock the app viewport and let only the transcript consume scroll gestures. */
@media(max-width:680px){
  html.mobile-live-conversation,
  body.mobile-live-conversation{width:100%;height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
  body.mobile-live-conversation{position:fixed;inset:0;height:100dvh}
  body.mobile-live-conversation .shell{position:fixed;inset:0;display:block;width:100%;height:100dvh;min-height:0;overflow:hidden}
  body.mobile-live-conversation .main-shell{display:flex;width:100%;height:100%;min-height:0;max-width:none;margin:0;padding:0;overflow:hidden}
  body.mobile-live-conversation #viewRoot{display:flex;flex:1 1 auto;width:100%;height:100%;min-height:0;padding:0;overflow:hidden}
  body.mobile-live-conversation #viewRoot[data-view="conversation"]{display:flex;flex:1 1 auto;width:100%;height:100%;min-height:0;margin:0;padding:0;overflow:hidden}
  body.mobile-live-conversation .conversation-screen{display:flex;flex:1 1 auto;width:100%;height:100%;min-height:0;margin:0;padding-top:env(safe-area-inset-top);padding-bottom:0;overflow:hidden;border:0;border-radius:0;box-shadow:none}
  body.mobile-live-conversation .voice-live-stage{display:flex;flex:1 1 0;height:0;min-height:0;overflow:hidden}
  body.mobile-live-conversation .voice-orb-wrap{flex:0 0 auto}
  body.mobile-live-conversation .voice-transcript{display:block;flex:1 1 0;height:0;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;mask-image:none}
  body.mobile-live-conversation .chat-composer{flex:0 0 auto;min-height:0;padding:7px 12px calc(8px + env(safe-area-inset-bottom));overscroll-behavior:contain}
  body.mobile-live-conversation .conversation-stream{scrollbar-width:thin;scrollbar-color:#c7a18a transparent}
  body.mobile-live-conversation .conversation-stream .chat-text{padding:12px 15px;font-size:17px;line-height:1.65;color:#302923}
  body.mobile-live-conversation .conversation-stream .chat-turn.user .chat-text{color:#30352b}
  body.mobile-live-conversation .conversation-stream .chat-label{color:#4b4037;font-size:13px;font-weight:700}
}

/* Make both live voice states readable and keep the final transcript lines
   clear of the fixed microphone controls on narrow screens. */
.voice-transcript .chat-text,
.conversation-stream .chat-text{font-size:19px;line-height:1.75;color:#302923}
.voice-transcript .chat-label,
.conversation-stream .chat-label{font-size:13px;color:#4b4037;font-weight:700}
.voice-orb-status{font-size:16px}
.voice-orb-hint{font-size:14px;color:#625247}
.voice-chat-elapsed{font-size:14px;color:#625247}
.voice-live-stage .chat-hidden-note{font-size:14px;line-height:1.6;color:#625247}
.voice-transcript{scroll-padding-block:16px;padding-bottom:24px}
.voice-transcript .chat-turn:last-child{margin-bottom:20px}
.conversation-stream .chat-turn.interrupted .chat-text::after{content:' · 回复已被打断';display:inline;color:#8a7666;font-size:.76em;font-weight:600}
@media(max-width:680px){
  .chat-caption-toggle,
  body.mobile-live-conversation .voice-live-caption-toggle{font-size:14px;min-height:40px;padding:0 13px}
  .voice-live-stage.with-captions .voice-orb-wrap{padding:8px 14px;gap:3px 10px}
  .voice-live-stage.with-captions .voice-orb-status{font-size:16px}
  .voice-live-stage.with-captions .voice-orb-hint{font-size:13px}
  .voice-live-stage.with-captions .voice-chat-elapsed{font-size:14px}
  body.mobile-live-conversation .voice-transcript{padding:10px 15px calc(30px + env(safe-area-inset-bottom))}
  body.mobile-live-conversation .voice-transcript .chat-text,
  body.mobile-live-conversation .conversation-stream .chat-text{font-size:20px;line-height:1.7}
  body.mobile-live-conversation .voice-transcript .chat-label,
  body.mobile-live-conversation .conversation-stream .chat-label{font-size:14px}
  body.mobile-live-conversation .voice-orb-status{font-size:17px}
  body.mobile-live-conversation .voice-orb-hint,
  body.mobile-live-conversation .voice-live-stage .chat-hidden-note{font-size:15px;line-height:1.65}
  body.mobile-live-conversation .voice-chat-elapsed{font-size:15px}
}

/* Strengthen readable text across the four non-practice areas while leaving practice screens alone. */
#viewRoot:is([data-view="dashboard"],[data-view="storyInterview"],[data-view="storyEdit"],[data-view="conversation"],[data-view="ai"],[data-view="account"],[data-view="plan"],[data-view="reports"],[data-view="vocabulary"],[data-view="guide"]) :is(p,small,label,.eyebrow,.metric-top,.metric-foot,.activity-legend,.day-label,.topic-card-content small,.chat-label,.chat-compose-meta,.chat-privacy-note){font-size:max(12px,1em);font-weight:550;color:#51463d}
#viewRoot:is([data-view="dashboard"],[data-view="storyInterview"],[data-view="storyEdit"],[data-view="conversation"],[data-view="ai"],[data-view="account"],[data-view="plan"],[data-view="reports"],[data-view="vocabulary"],[data-view="guide"]) :is(.view-heading p,.surface-head p,.section-row p,.hero-copy p,.quick-card p,.plan-focus p,.plan-row small,.metric-foot,.account-footnote,.account-launch-note,.chat-text){color:#403831}
#viewRoot:is([data-view="dashboard"],[data-view="storyInterview"],[data-view="storyEdit"],[data-view="conversation"],[data-view="ai"],[data-view="account"],[data-view="plan"],[data-view="reports"],[data-view="vocabulary"],[data-view="guide"]) :is(.nav-item,.primary-button,.secondary-button,.soft-button,.danger-button,.link-button,.text-button){font-weight:750}
.main-nav .nav-item:is([data-view="dashboard"],[data-view="conversation"],[data-view="ai"],[data-view="plan"],[data-view="reports"],[data-view="vocabulary"],[data-view="guide"],[data-view="account"]){color:#40362e;font-size:13px;font-weight:750}
.mobile-nav-item:is([data-mobile-section="learn"],[data-mobile-section="conversation"],[data-mobile-section="ai"],[data-mobile-section="me"]){color:#352d27;font-size:12px;font-weight:800}
#viewRoot[data-view="ai"] .ai-message-text{color:#2e2925!important}
#viewRoot[data-view="ai"] .ai-message-label{color:#4a3e34!important}
#viewRoot[data-view="ai"] .ai-suggestions button small,
#viewRoot[data-view="ai"] .ai-welcome-hint{color:#51463d!important}

@media(max-width:680px){
  #viewRoot:is([data-view="dashboard"],[data-view="storyInterview"],[data-view="storyEdit"],[data-view="conversation"],[data-view="ai"],[data-view="account"],[data-view="plan"],[data-view="reports"],[data-view="vocabulary"],[data-view="guide"]) :is(p,label){font-size:max(15px,1em);font-weight:600;color:#3c342e}
  #viewRoot:is([data-view="dashboard"],[data-view="storyInterview"],[data-view="storyEdit"],[data-view="conversation"],[data-view="ai"],[data-view="account"],[data-view="plan"],[data-view="reports"],[data-view="vocabulary"],[data-view="guide"]) :is(small,.eyebrow,.metric-top,.metric-foot,.activity-legend,.day-label,.topic-card-content small,.chat-label,.chat-compose-meta,.chat-privacy-note){font-size:max(13px,1em);font-weight:600;color:#51463d}
  .mobile-nav-item:is([data-mobile-section="learn"],[data-mobile-section="conversation"],[data-mobile-section="ai"],[data-mobile-section="me"]){font-size:13px;font-weight:850;color:#2f2924}
  #viewRoot[data-view="ai"] .ai-message-text{font-size:19px;line-height:1.75}
  #viewRoot[data-view="ai"] .ai-welcome p{font-size:15px}
  #viewRoot[data-view="ai"] .ai-suggestions button{font-size:13px}
  #viewRoot[data-view="ai"] .ai-suggestions button small{font-size:12px}
}

/* Story builder refresh: full Part 2 coverage, deletable history and ChatGPT-like batch voice input. */
.story-hero-points{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
.story-hero-points span{padding:7px 11px;border:1px solid #e7d8cb;border-radius:999px;background:#fff9f4;color:#654b3b;font-size:12px;font-weight:750}
.story-hero-mark{display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:center}
.story-hero-mark span{font-size:48px;font-weight:850;line-height:1;letter-spacing:-.05em}
.story-hero-mark small{color:#f8e9de;font-size:10px;letter-spacing:.1em}
.story-saved-foot{align-items:center;gap:12px}
.story-saved-foot button{padding:6px 10px;border:1px solid #ead8cd;border-radius:9px;background:#fff8f3;color:#8b3d25;font-size:12px;font-weight:750}
.story-saved-foot button:hover{border-color:#c8876c;background:#fbede4}
.story-page-title{max-width:850px;margin:8px 0 17px;padding:22px 26px;border:1px solid #eadfd4;border-radius:18px;background:linear-gradient(110deg,#fffaf5,#f6e9dc)}
.story-page-title .eyebrow{color:#8b3d25;font-weight:800}
.story-page-title h2{margin:8px 0;color:#241c16;font-size:clamp(23px,3vw,32px);line-height:1.35;letter-spacing:-.025em}
.story-page-title p{margin:0;color:#6c5b4e;font-size:14px;line-height:1.7}
.story-reply-form.story-voice-composer{display:grid;gap:8px;margin:12px 18px 8px;padding:10px 11px 9px;border:1px solid #ded4ca;border-radius:20px;background:#fff;box-shadow:0 5px 18px #3b24100a}
.story-reply-form.story-voice-composer:focus-within{border-color:#b7876f;box-shadow:0 0 0 3px #b7876f1c}
.story-voice-composer textarea{display:block;width:100%;min-height:52px;max-height:180px;padding:8px 10px;border:0;border-radius:12px;background:transparent;color:#261e18;font:inherit;line-height:1.55;resize:vertical;outline:none}
.story-voice-composer textarea:disabled{opacity:.6}
.story-voice-composer textarea::placeholder{color:#8c8178}
.story-composer-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%;min-height:42px;padding:0 8px}
.story-mic-button,.story-send-button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:0;border-radius:50%;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s}
.story-mic-button{background:#f4eee8;color:#5d493b}
.story-mic-button:hover{background:#efe2d7}
.story-mic-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.story-mic-button.recording{background:#bd4e43;color:white;box-shadow:0 0 0 5px #bd4e4320;animation:story-record-pulse 1.5s infinite}
.story-record-stop{width:14px;height:14px;border-radius:3px;background:currentColor}
.story-send-button{background:#8b3d25;color:white;font-size:25px;font-weight:600;line-height:1}
.story-send-button:hover:not(:disabled){background:#74321f;transform:translateY(-1px)}
.story-send-button:disabled,.story-mic-button:disabled{background:#d4d0cc;color:#fff;opacity:1;cursor:not-allowed;transform:none;box-shadow:none}
.story-recording-indicator{display:flex;align-items:center;gap:12px;min-height:32px;padding:2px 10px;color:#8b3d25}
.story-recording-indicator>span{min-width:42px;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.story-recording-indicator .story-live-wave{display:flex;align-items:center;justify-content:center;gap:2px;width:min(220px,36vw);height:30px;overflow:hidden}
.story-live-wave>i{display:block;width:3px;height:2px;min-height:2px;flex:1 1 3px;border-radius:4px;background:#b75238;transition:height 70ms linear}
.story-live-wave>i:nth-child(3n){background:#e08a56}
.story-live-wave>i:nth-child(4n){background:#6d8b71}
@keyframes story-record-pulse{50%{box-shadow:0 0 0 8px #bd4e4310;opacity:.75}}
@media(max-width:680px){
  .story-hero-points{gap:6px;margin-top:13px}
  .story-hero-points span{padding:6px 8px;font-size:10px}
  .story-hero-mark span{font-size:26px}
  .story-hero-mark small{font-size:8px}
  .story-page-title{margin:7px 0 12px;padding:16px;border-radius:15px}
  .story-page-title h2{font-size:22px}
  .story-page-title p{font-size:12px}
  .story-reply-form.story-voice-composer{margin:10px 10px 7px;padding:8px;border-radius:17px}
  .story-voice-composer textarea{min-height:48px;padding:7px;font-size:14px}
  .story-composer-tools{gap:6px;min-height:40px}
  .story-mic-button,.story-send-button{flex-basis:40px;width:40px;height:40px}
  .story-recording-indicator{gap:8px;padding:0 6px}
  .story-recording-indicator .story-live-wave{width:100%;height:26px;justify-content:flex-start}
}

/* Keep the Part 2 count badge contained at desktop and mobile sizes. */
.story-hero-main .story-hero-mark{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:4px;min-width:106px;min-height:106px;overflow:hidden;color:#fff;text-align:center}
.story-hero-main .story-hero-mark span{display:block;color:#fff;font-size:48px;line-height:1;white-space:nowrap}
.story-hero-main .story-hero-mark small{display:block;grid-column:auto;color:#f8e9de;font-size:11px;line-height:1;letter-spacing:.06em;white-space:nowrap}
.story-reply-form.story-voice-composer .story-mic-button,.story-reply-form.story-voice-composer .story-send-button{box-sizing:border-box;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;margin:0;padding:0;border:0;border-radius:50%;line-height:0;text-align:center}
.story-reply-form.story-voice-composer .story-mic-button svg,.story-reply-form.story-voice-composer .story-send-icon{display:block;width:23px;height:23px;margin:0;flex:none;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:680px){
  .story-hero-main>div:first-child{padding-right:58px}
  .story-hero-main .story-hero-mark{min-width:48px;min-height:48px;width:48px;height:48px;gap:0}
  .story-hero-main .story-hero-mark span{font-size:21px}
  .story-hero-main .story-hero-mark small{display:none}
  .story-reply-form.story-voice-composer .story-mic-button,.story-reply-form.story-voice-composer .story-send-button{flex-basis:40px;width:40px;height:40px;min-width:40px;min-height:40px}
}

/* Bulk-delete controls for local history lists. */
.history-clear-all,.chat-history-clear-all,.ai-history-clear-all{border:1px solid #ead6ca;border-radius:10px;background:#fff8f4;color:#8b3d25;font-weight:750;white-space:nowrap;cursor:pointer}
.history-clear-all{padding:10px 13px;font-size:12px}
.history-clear-all:hover,.chat-history-clear-all:hover,.ai-history-clear-all:hover{border-color:#d6a58d;background:#f9eee7}
.story-section-heading{gap:12px}
.chat-history-actions{display:flex;align-items:center;gap:8px}
.chat-history-drawer>header .chat-history-clear-all{width:auto;height:34px;padding:0 11px;border:1px solid #ead6ca;border-radius:10px;background:#fff8f4;color:#8b3d25;font-size:11px;font-weight:750}
@media(max-width:680px){.story-section-heading{align-items:center}.history-clear-all{padding:9px 11px;font-size:11px}}
