:root{--navy:#102a42;--ink:#213749;--gold:#b49864;--paper:#f6f3eb;--muted:#61717e;--line:#dedfd9;--green:#246759}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--navy);border-radius:9px;background:var(--navy);color:white;padding:10px 18px}button:hover{background:#24465e}button:disabled{opacity:.45;cursor:wait}.secondary{background:white;color:var(--navy);border-color:#cdd4d5}.danger{background:#8c4536;border-color:#8c4536}a{color:#1d5e75}input,textarea,select{width:100%;border:1px solid #bac6c8;border-radius:8px;padding:11px;background:#fff;color:var(--ink)}textarea{min-height:100px;resize:vertical}label{display:block;margin:13px 0 7px;font-size:14px;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.35;letter-spacing:-.6px}h2{font-size:23px}h3{font-size:18px}.shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:#fff;padding:30px 20px;position:sticky;top:0;height:100vh}.wordmark{font-family:Georgia,serif;font-size:36px;letter-spacing:5px;color:#e1c793}.side-sub{font-size:12px;color:#abbcc8;margin:0 0 34px}.nav{display:grid;gap:7px}.nav button{text-align:left;border:0;font-size:15px;background:transparent;color:#cedbe4}.nav button.active{background:#ffffff15;color:#fff;border-left:3px solid var(--gold);border-radius:3px}.side-bottom{position:absolute;bottom:25px;font-size:12px;color:#9fb1be;width:190px}.main{max-width:1260px;width:100%;padding:35px 46px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:12px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#987c48;margin-bottom:10px}.muted{color:var(--muted);font-size:14px}.pill{display:inline-block;border-radius:20px;font-size:12px;padding:4px 11px;background:#e5ede9;color:#296555}.pill.warning{background:#f4e6d4;color:#946127}.hero{background:#e8ece7;border:1px solid #d9e0d9;padding:30px;border-radius:16px;margin-bottom:24px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.hero p{max-width:660px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.grid.two{grid-template-columns:repeat(2,1fr)}.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:23px;margin-bottom:15px;box-shadow:0 2px 1px #233d4a02}.card .number{color:#aa8c55;font:28px Georgia,serif;margin-bottom:10px}.card button{margin-top:9px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.stat b{display:block;font:32px Georgia,serif;color:var(--navy)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:30px 0 14px;gap:14px}.section-head h2{margin:0}.progress{height:5px;background:#e8eeeb;border-radius:10px;overflow:hidden;margin:15px 0}.progress span{display:block;height:100%;background:var(--green)}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.notice{font-size:14px;background:#f5ecdb;border:1px solid #e4d3b6;padding:13px 17px;border-radius:10px;margin-bottom:20px}.concept{background:#eef3f1;color:#3c655c;border-radius:8px;padding:10px;font-size:14px}.lesson{max-width:800px}.bubble{max-width:89%;padding:17px 21px;border-radius:14px;margin-bottom:16px;white-space:pre-wrap;overflow-wrap:anywhere}.parent{background:white;border:1px solid var(--line);border-bottom-left-radius:3px}.student{background:#dae8e5;margin-left:auto;border-bottom-right-radius:3px}.external_unverified{background:#f8eacb;border:1px solid #dbc494}.chat-meta{font-size:11px;text-transform:uppercase;color:#7a8b93;margin-bottom:5px}.feedback{border-left:3px solid var(--gold);background:#f5f2eb;padding:13px 16px;margin:4px 0 20px;font-size:14px;overflow-wrap:anywhere}.feedback.bad{border-color:#a24e40}.composer{position:sticky;bottom:10px;background:var(--paper);padding:14px 0}.error{color:#ad4539;font-size:14px}.login{max-width:460px;margin:7vh auto;padding:38px}.login-brand{background:var(--navy);color:white;padding:45px 30px;border-radius:18px 18px 0 0}.login .card{border-radius:0 0 18px 18px;padding:28px}.small{font-size:12px}.mono{font:13px/1.65 ui-monospace,monospace;min-height:280px;white-space:pre}.review-row{padding:15px 0;border-bottom:1px solid var(--line)}.quote{white-space:pre-wrap;color:#35566b}details{margin:13px 0}summary{cursor:pointer;font-weight:600}#toast{position:fixed;right:20px;bottom:20px;background:var(--navy);color:white;border-radius:9px;padding:12px 20px;display:none;z-index:20;max-width:85vw}footer{font-size:12px;color:#819095;margin-top:40px}.listitem{padding:15px 0;border-bottom:1px solid var(--line)}.product-link{overflow-wrap:anywhere;font-size:13px}.empty{padding:22px;color:var(--muted);background:#eef0e9;border-radius:10px}@media(max-width:1000px){.main{padding:25px}.grid{grid-template-columns:repeat(2,1fr)}.shell{grid-template-columns:195px 1fr}.sidebar{padding:24px 13px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.shell{display:block}.sidebar{position:static;height:auto;padding:15px}.wordmark{font-size:25px;display:inline-block}.side-sub{display:inline-block;margin:0 0 0 15px}.nav{display:flex;overflow-x:auto;gap:3px;margin-top:14px}.nav button{white-space:nowrap;font-size:13px;padding:8px 10px}.side-bottom{display:none}.main{padding:23px 17px}.topbar{margin-bottom:20px}.topbar .muted{font-size:12px}h1{font-size:27px}.hero{grid-template-columns:1fr;padding:23px}.grid,.grid.two{grid-template-columns:1fr}.stats{gap:9px}.stat{padding:14px}.card{padding:19px}.bubble{max-width:96%}.login{margin:2vh auto;padding:20px}.row button{flex:1}.section-head{align-items:flex-start}.composer{bottom:0}}

progress{width:100%;height:7px;accent-color:#246759;border:0;margin:15px 0}progress::-webkit-progress-bar{background:#e8eeeb;border-radius:10px}progress::-webkit-progress-value{background:#246759;border-radius:10px}

.v2-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.v2-entry-grid .card{min-width:0}.v2-option{display:block;width:100%;white-space:normal;text-align:left;margin:12px 0}nav details{position:relative}nav details button{display:block}#reply-options details{margin:0 0 14px}button:disabled{cursor:wait;opacity:.6}@media(max-width:700px){.v2-entry-grid{grid-template-columns:1fr}nav{flex-wrap:wrap}.customer-controls{gap:8px}.customer-room .row{flex-wrap:wrap}.v2-option{overflow-wrap:anywhere}}
.studio-route[hidden]{display:none!important}

.customer-room h1{font-size:28px;margin-bottom:10px}.customer-controls{margin:14px 0}.customer-controls button{font-size:14px;padding:10px 12px}.customer-room .topic-picker{background:#fff;border:1px solid #dedfd9;padding:12px 15px;border-radius:10px}.customer-room .notice details{margin:3px 0}.customer-domain-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.customer-room .bubble{white-space:pre-wrap}.customer-hint-text{white-space:pre-wrap}#customer-working{font-size:14px;color:#7c663b}#customer-answer{margin:20px 0}#customer-transcript{margin-top:20px}.customer-room details p{margin:8px 0}@media(max-width:680px){.customer-room h1{font-size:25px}.customer-controls{display:grid;grid-template-columns:1fr 1fr}.customer-controls button:last-child{grid-column:1 / -1}.customer-domain-grid{grid-template-columns:1fr}.customer-room .section-head{margin-top:8px}.customer-room .section-head button{white-space:nowrap}}

#reply-output pre,.lesson pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}#wechat-reply{white-space:pre-wrap}.lesson label.row input[type=checkbox]{width:18px;flex:0 0 18px}.lesson form{margin-bottom:20px}.lesson p,.lesson li{overflow-wrap:anywhere}#reply-working{display:block;color:#7c663b;margin:10px 0}.nav button[data-action=reply-open]{border:1px solid #b99b65}.lesson input[type=checkbox]{accent-color:#17354a}
.beginner{padding-top:24px}.parent-question{font-size:24px;line-height:1.8;color:#18394e}.first-choices{margin-top:26px}.first-choices button{min-height:52px}.reply-style-switch{margin:20px 0}.reply-style-switch button{flex:1;font-size:14px}.beginner .feedback p{margin-bottom:10px}#first-status{display:block;color:#7c663b;margin:10px 0}@media(max-width:680px){.parent-question{font-size:21px}.first-choices{display:grid;grid-template-columns:1fr}.beginner{padding-top:5px}.reply-style-switch{gap:5px}.reply-style-switch button{font-size:12px;padding:10px 5px}.topbar>.eyebrow{display:none}}
.secondary:hover{background:#e5ecec;color:#18354a}

/* Full-width choices on small screens; modifying is deliberately secondary. */
@media(max-width:600px){
 #scene-options>.row{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:12px 0 20px}
 #scene-options .v2-option{width:100%;min-height:52px;padding:14px 16px;text-align:left;font-size:16px;line-height:1.65}
 #scene-options .row>.small{align-self:flex-end;flex:0 0 auto;min-height:40px;width:auto;padding:7px 12px}
 .studio-route select{width:100%;max-width:100%;white-space:normal}
 .topbar{flex-wrap:wrap;gap:8px}
 .lesson,.card{overflow-wrap:anywhere}
}
