:root { color-scheme: light; --ink:#16302d; --muted:#5d716e; --line:#d9e6e2; --surface:#fff; --wash:#f3f8f6; --teal:#0f766e; --teal-dark:#115e59; --mint:#ccfbf1; --amber:#a16207; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
*{box-sizing:border-box} body{margin:0;min-height:100vh;background:linear-gradient(135deg,#f4faf8 0%,#edf4f0 55%,#fefcf8 100%);color:var(--ink)} button,select{font:inherit}button{cursor:pointer}.app-shell{width:min(820px,calc(100% - 32px));margin:0 auto;padding:28px 0 36px}.hero{display:flex;gap:14px;align-items:center;position:relative;margin-bottom:24px}.brand-mark{width:52px;height:48px;border-radius:15px;display:grid;place-items:center;background:var(--teal);color:#fff;font-weight:800;letter-spacing:-.08em;font-size:.77rem;box-shadow:0 9px 18px #0f766e2e}.eyebrow{margin:0 0 4px;color:var(--teal);font-size:.72rem;font-weight:800;letter-spacing:.15em}h1,h2,p{margin-top:0}h1{margin-bottom:3px;font-size:clamp(1.8rem,7vw,2.5rem);letter-spacing:-.04em}h2{margin-bottom:8px;font-size:1.3rem;letter-spacing:-.02em}.subtitle{margin-bottom:0;color:var(--muted);font-size:.92rem}.ghost-button{margin-left:auto;border:1px solid var(--line);background:#fff;color:var(--teal-dark);padding:9px 12px;border-radius:11px;font-size:.82rem;font-weight:700}.hidden{display:none!important}
.toolbar,.practice-card,.record-card,.tips{border:1px solid var(--line);background:#fffffff2;border-radius:20px;box-shadow:0 14px 38px #17453d0b}.toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1.4fr);gap:18px;align-items:end;padding:16px 18px;margin-bottom:14px}label{color:var(--muted);font-size:.78rem;font-weight:700}select{width:100%;margin-top:6px;border:1px solid var(--line);border-radius:10px;padding:10px;color:var(--ink);background:#fff}.progress{align-self:center;font-size:.78rem;color:var(--muted)}.progress-line{display:flex;justify-content:space-between;gap:8px}.practice-status{color:var(--teal);font-size:.72rem;font-weight:750;text-align:right}.progress-track{height:7px;border-radius:99px;margin-top:7px;background:var(--mint);overflow:hidden}.progress-bar{height:100%;width:7%;border-radius:inherit;background:var(--teal);transition:width .25s ease}.lesson-progress{display:block;margin-top:7px;color:#76908c;font-size:.72rem}
.practice-card,.record-card{padding:20px;margin-bottom:14px}.card-topline,.record-heading,.record-controls,.pager{display:flex;align-items:center;justify-content:space-between;gap:12px}.tag,.difficulty{display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;font-size:.72rem;font-weight:800}.tag{color:var(--teal-dark);background:var(--mint)}.secondary-tag{background:#e4efff;color:#245d8c}.difficulty{color:var(--amber);background:#fef3c7}.context{color:var(--muted);line-height:1.55;margin-bottom:15px}
.comic-card{margin:0 0 16px;padding:14px 14px 12px;border:1px solid #dcebe6;border-radius:16px;background:linear-gradient(145deg,#fffdf7,#f3faf7)}.comic-header{display:flex;justify-content:space-between;gap:8px;margin-bottom:11px;color:var(--teal-dark);font-size:.75rem;font-weight:800}.comic-header span:last-child{color:var(--muted);font-weight:700}.comic-dialogue{display:grid;grid-template-columns:1fr 1fr;gap:12px}.comic-character{position:relative;min-width:0}.comic-character.right{text-align:right}.avatar{display:inline-grid;place-items:center;width:37px;height:37px;border-radius:13px;background:#dff6ef;font-size:1.2rem;vertical-align:middle;margin-right:6px}.comic-character.right .avatar{margin:0 0 0 6px;background:#e7effc}.comic-character strong{font-size:.78rem;color:var(--ink);vertical-align:middle}.bubble{position:relative;margin-top:8px;padding:10px 11px;border-radius:13px;background:#fff;border:1px solid #dcebe6;line-height:1.35;font-size:.82rem;text-align:left;box-shadow:0 4px 10px #17453d0a}.bubble-left:before,.bubble-right:before{content:"";position:absolute;top:-7px;border:7px solid transparent;border-bottom-color:#dcebe6}.bubble-left:before{left:20px}.bubble-right:before{right:20px}.bubble-left:after,.bubble-right:after{content:"";position:absolute;top:-5px;border:6px solid transparent;border-bottom-color:#fff}.bubble-left:after{left:21px}.bubble-right:after{right:21px}
.target-box{position:relative;padding:16px;border-radius:15px;background:var(--wash);border:1px solid #dcebe6}.label{margin-bottom:6px;color:var(--muted);font-size:.76rem;font-weight:700}.target-sentence{margin-bottom:14px;padding-right:105px;font-size:clamp(1.2rem,4.5vw,1.55rem);line-height:1.35;font-weight:700;letter-spacing:-.02em}.hint{margin:12px 0 0;color:var(--muted);font-size:.84rem}.practice-flow{margin:15px 0 0;color:var(--teal);font-size:.76rem;font-weight:800;letter-spacing:.02em}.practice-flow span{color:#8ca7a1;padding:0 3px}.secondary-button,.primary-button{border-radius:11px;padding:10px 14px;font-weight:750;border:1px solid var(--line)}.secondary-button{color:var(--teal-dark);background:#fff}.primary-button{color:#fff;border-color:var(--teal);background:var(--teal);box-shadow:0 8px 15px #0f766e22}.secondary-button:hover{border-color:var(--teal)}.primary-button:hover{background:var(--teal-dark)}.target-box>.secondary-button{position:absolute;right:13px;top:50%;transform:translateY(-50%)}
.record-card{background:#113c37;color:#ecfffb;border-color:#113c37}.record-card .eyebrow{color:#82e4d4}.record-card h2{margin-bottom:0}.support-status{color:#a9d4cd;font-size:.75rem;text-align:right}.record-controls{justify-content:flex-start;flex-wrap:wrap;margin:20px 0 10px}.record-button{display:inline-flex;align-items:center;gap:9px;padding:11px 16px;border:0;border-radius:11px;color:#113c37;background:#b8f1e4;font-weight:800}.record-button.is-recording{color:#fff;background:#c24153}.record-dot{width:11px;height:11px;border-radius:50%;background:currentColor}.is-recording .record-dot{animation:pulse 1.1s infinite}@keyframes pulse{50%{opacity:.35;transform:scale(.75)}}.record-card .secondary-button{color:#d8f8f1;border-color:#37645e;background:transparent}.timer-label{color:#a9d4cd;font-size:.76rem;font-weight:700}.status{min-height:20px;margin:5px 0 10px;color:#add4cd;font-size:.82rem}.transcript{min-height:58px;padding:13px;border:1px solid #37645e;border-radius:12px;color:#eafff9;background:#0c332f;line-height:1.5}.transcript.placeholder{color:#7ea9a2;font-style:italic}.score-panel{display:flex;align-items:flex-start;gap:14px;margin-top:14px;padding:13px;border-radius:12px;background:#1a5049}.score-number{color:#a7f3d0;font-size:1.65rem;font-weight:800;white-space:nowrap}.score-number small{color:#9bcac1;font-size:.75rem}.score-panel strong{display:block;margin-bottom:3px}.score-panel p{margin:0;color:#bcddd7;font-size:.79rem}.pronunciation-words{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.word-chip{border:1px solid #8ce2d1;border-radius:999px;padding:5px 9px;color:#eafff9;background:#235e56;font-size:.76rem;font-weight:800}.word-chip:hover{background:#2b756b}.no-word-tip{color:#9bcac1;font-size:.76rem}
.pager{margin-bottom:18px}.tips{padding:14px 16px;color:var(--muted)}.tips summary{color:var(--ink);cursor:pointer;font-weight:750}.tips ul{margin:12px 0 2px;padding-left:19px;line-height:1.7;font-size:.85rem}footer{padding-top:17px;color:#76908c;text-align:center;font-size:.72rem}@media(max-width:640px){.app-shell{width:min(100% - 22px,820px);padding-top:18px}.toolbar{grid-template-columns:1fr;gap:12px}.hero{align-items:flex-start}.ghost-button{position:absolute;top:4px;right:0;font-size:.72rem;padding:7px 9px}.subtitle{max-width:72%}.card-topline{flex-wrap:wrap}.comic-dialogue{grid-template-columns:1fr}.comic-character.right{text-align:left}.comic-character.right .avatar{margin:0 6px 0 0}.target-sentence{padding-right:0;margin-bottom:56px}.target-box>.secondary-button{top:auto;bottom:13px;transform:none}.record-heading{align-items:flex-start}.support-status{max-width:42%}.progress-line{align-items:flex-start;flex-direction:column}.practice-status{text-align:left}}

/* MET V3 role practice and course integrity */
.turn-card{position:relative;display:block;width:100%;min-width:0;padding:12px;border:1px solid #dcebe6;border-radius:15px;background:#fff;text-align:left;color:var(--ink);cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.turn-card:hover{border-color:#86cfc1;transform:translateY(-1px)}.turn-card-active{border:2px solid var(--teal);box-shadow:0 8px 20px #0f766e18;background:#f6fffc}.turn-card .avatar{margin-right:6px}.turn-card strong{font-size:.78rem;vertical-align:middle}.turn-status{display:block;margin-top:5px;color:#6d8d87;font-size:.7rem;font-weight:700}.turn-card-active .turn-status{color:var(--teal)}.turn-card .bubble{display:block;min-height:72px;margin-top:9px;pointer-events:none}.integrity-status{margin:0 0 14px;padding:9px 12px;border:1px solid #bce4d8;border-radius:10px;color:#176758;background:#effbf7;font-size:.76rem;font-weight:700}.integrity-error{border-color:#efb5b5;color:#a42d2d;background:#fff5f5}.target-actions{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:640px){.target-actions{display:grid;grid-template-columns:1fr}.turn-card .bubble{min-height:0}.integrity-status{font-size:.7rem}}
.turn-translation{display:block;margin-top:6px;padding:0 3px;color:#5e7d78;font-size:.72rem;line-height:1.45;text-align:left}.turn-card-active .turn-translation{color:#256f63}
