@import url('./tokens.css');
*{box-sizing:border-box}body{margin:0;background:#e8ebf1;color:var(--ink);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;touch-action:manipulation}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button,a{transition:background .15s}a{color:var(--primary)}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.3;letter-spacing:-.7px;font-weight:750}h2{font-size:17px;font-weight:650}p{line-height:1.5}.icon{width:22px;height:22px;display:inline-block;vertical-align:middle;flex-shrink:0}.shell{width:min(100%,var(--content-max-width));margin:0 auto;background:var(--bg);min-height:100dvh;display:flex;flex-direction:column;position:relative;box-shadow:0 0 45px #18254108}main{flex:1;outline:none!important;min-width:0}.welcome-shell{background:var(--primary)}.welcome-screen{min-height:100dvh;background:var(--primary);color:white;display:flex;flex-direction:column;padding:24px;padding-bottom:max(24px,env(safe-area-inset-bottom))}.welcome-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 0 65px}.welcome-logo{width:112px;height:112px;border-radius:28px;box-shadow:0 15px 35px #174c4255}.welcome-center h1{font-size:54px;font-weight:800;letter-spacing:-2px;margin:30px 0 18px}.welcome-center h1 span{color:var(--accent)}.welcome-center p{font-size:16px;line-height:23px;text-align:center;color:#ffffffd9}.welcome-actions{width:100%}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:52px;padding:12px 16px;font-size:16px;font-weight:650;border-radius:14px;text-decoration:none;line-height:1.4}.button .icon{height:21px;width:21px}.button.primary{background:var(--primary);color:white}.button.primary:hover{background:var(--primary)}.button.soft{background:var(--primary-soft);color:var(--primary)}.button.outline{border:1px solid var(--primary);color:var(--primary);background:white}.button.outline:hover,.button.soft:hover{background:var(--primary-soft)}.button.welcome-button{background:white;color:var(--primary)}.full{width:100%}.welcome-login{padding:18px 0 6px;background:transparent;color:#ffffffd9;text-align:center;width:100%;font-size:14px}.text-button{background:transparent;color:var(--primary);display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 0;font-size:13px;font-weight:600}.text-button .icon{width:17px;height:17px}.text-button:hover{text-decoration:underline}.icon-button{width:44px;height:44px;background:transparent;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.icon-button:hover{background:var(--primary-soft)}.practice-page{padding:26px 16px 18px}.home-heading{display:flex;align-items:center;gap:7px;margin-bottom:24px}.home-heading>div{flex:1;min-width:0}.home-heading p{color:var(--muted);font-size:15px;margin-bottom:3px}.home-heading h1{font-size:24px;line-height:1.28;letter-spacing:-.6px}.streak{font-size:12px;color:var(--accent);background:var(--primary-soft);padding:4px 9px;border-radius:20px;white-space:nowrap;font-weight:650}.allowance-banner{display:flex;align-items:center;gap:10px;padding:16px 14px;background:var(--primary-soft);border-radius:16px;margin-bottom:16px}.gift{font-size:28px}.allowance-banner>div{flex:1}.allowance-banner strong{font-size:16px;font-weight:650}.allowance-banner p{font-size:13px;color:var(--muted);margin-top:3px}.allowance-banner>.text-button{font-size:11px;max-width:62px}.filter-tabs{display:flex;background:#e6e8ee;padding:4px;border-radius:12px;margin-bottom:16px}.filter-tabs button{min-height:38px;flex:1;background:transparent;color:var(--muted);font-size:14px;border-radius:9px}.filter-tabs button.selected{background:white;color:var(--ink);font-weight:650;box-shadow:0 2px 4px #1118270a}.scenario-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scenario-card{display:flex;flex-direction:column;position:relative;min-height:180px;aspect-ratio:.99;border:1px solid var(--line);background:white;border-radius:16px;text-align:left;padding:14px}.scenario-card:hover{border-color:var(--line);background:#fcfcff}.scenario-card h2{font-size:15px;line-height:19px;font-weight:650;letter-spacing:-.2px}.scenario-card>p{font-size:12px;color:var(--muted);margin-top:6px}.scenario-emoji{font-size:44px;line-height:1;position:absolute;right:14px;bottom:14px}.search-tools{margin-top:17px;color:var(--muted);font-size:12px}.search-tools summary{cursor:pointer}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:8px 12px;background:white;border-radius:10px;margin-top:10px}.search .icon{width:18px;color:var(--muted)}.search input{border:0;background:transparent;min-width:0;flex:1;outline-offset:4px;font-size:14px;color:var(--ink)}.bottom-nav{position:sticky;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(4,1fr);background:white;border-top:1px solid var(--line);padding:9px 8px max(12px,env(safe-area-inset-bottom));min-height:77px;margin-top:auto}.nav-item{background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;color:var(--muted);padding:0}.nav-icon{display:grid;place-items:center;width:60px;height:32px;border-radius:30px}.nav-icon .icon{width:22px;height:22px}.nav-item.active{color:var(--primary);font-weight:600}.nav-item.active .nav-icon{background:var(--primary-soft)}.screen-toolbar{display:flex;align-items:center;padding:4px;min-height:52px}.screen-toolbar h1{font-size:18px;flex:1;text-align:center;padding-right:44px}.brief-page,.summary-page,.paywall-page{display:flex;flex-direction:column;min-height:100dvh}.brief-body{padding:0 20px 18px;flex:1}.brief-heading{text-align:center;margin:0 0 23px}.brief-emoji{display:block;font-size:64px;line-height:1.3;margin:4px 0 13px}.brief-heading h1{font-size:24px;font-weight:700;margin-bottom:10px}.brief-pills{display:flex;justify-content:center;gap:7px}.pill{display:inline-block;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:600;padding:4px 9px;border-radius:20px}.section-label{font-size:13px;font-weight:600;color:var(--muted);margin:18px 0 10px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:16px}.panel>p{font-size:15px;line-height:21px}.muted{color:var(--muted)}.brief-role{font-size:13px!important;margin-top:9px}.bullet-phrase{display:flex;gap:12px;align-items:flex-start;padding:3px 0}.bullet-phrase+.bullet-phrase{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.bullet-phrase>span{width:8px;height:8px;flex-shrink:0;margin-top:7px;border-radius:50%;background:var(--success)}.bullet-phrase strong{display:block;font-size:15px;line-height:1.5;font-weight:500}.bullet-phrase p{font-size:13px;color:var(--muted);margin-top:3px}.screen-actions{position:sticky;bottom:0;padding:16px;background:var(--bg);display:flex;flex-direction:column;gap:10px;margin-top:auto}.mode-label{display:block;text-align:center;color:var(--muted);font-size:10px;line-height:1.5;font-weight:400}.secondary-page{padding:22px 16px}.simple-heading{margin-bottom:22px}.simple-heading p{font-size:14px;color:var(--muted);margin-top:7px}.secondary-page>.panel{margin-bottom:16px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}.stat-card{display:flex;flex-direction:column;align-items:center;background:white;border-radius:14px;padding:18px 10px}.stat-card strong{font-size:28px;font-weight:700}.stat-card span{color:var(--muted);font-size:12px;margin-top:3px}.empty-state{grid-column:1/-1;text-align:center;padding:25px 6px}.empty-state h2{font-size:18px;margin-bottom:9px}.empty-state p{font-size:14px;color:var(--muted);margin-bottom:16px}.history-row{display:flex;align-items:center;gap:9px;padding:12px 0}.history-row+.history-row{border-top:1px solid var(--line)}.history-check{height:26px;width:26px;border-radius:50%;background:var(--success-soft);color:var(--success);display:grid;place-items:center;flex-shrink:0}.history-check .icon{height:16px;width:16px}.history-row>div{flex:1}.history-row strong{display:block;font-size:13px}.history-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.history-row>span:last-child{font-size:12px;color:var(--muted)}.privacy-copy{font-size:12px;line-height:1.6;color:var(--muted);margin-top:14px}.profile-panel{text-align:center}.profile-avatar{width:56px;height:56px;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:25px;font-weight:650;display:grid;place-items:center;margin:0 auto 13px}.profile-panel h2{font-size:21px;margin-bottom:7px}.profile-panel>.pill{margin:16px 0}.profile-options{padding:0 16px}.profile-options>button{padding:17px 0;width:100%;display:flex;align-items:center;gap:10px;background:transparent;color:var(--primary);text-align:left}.profile-options>button>.icon:last-child{margin-left:auto;width:18px}.profile-options>button+button{border-top:1px solid var(--line)}.phrase-panel h2{font-size:17px;margin-bottom:14px}.phrase{border-top:1px solid var(--line);padding:12px 0}.phrase strong{font-size:15px;line-height:1.5;font-weight:500;display:block}.phrase p{font-size:13px;color:var(--muted);margin-top:4px}.phrase-panel .text-button{margin-top:5px}.session-panel{height:100dvh;min-height:550px;display:flex;flex-direction:column;background:var(--bg)}.session-heading{display:flex;align-items:center;gap:5px;padding:4px;min-height:54px}.session-heading h1{font-size:16px;font-weight:650;text-align:center;flex:1;line-height:1.4;letter-spacing:-.3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.translation-toggle{width:44px;height:44px;background:transparent;color:var(--muted);font-size:20px;font-weight:500;flex-shrink:0}.translation-toggle.enabled{color:var(--primary)}.session-progress{padding:0 16px 5px}.session-progress>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:4px}.session-progress strong{font-weight:600}.session-progress progress{appearance:none;width:100%;height:6px;border:0;border-radius:4px;display:block;background:var(--line)}progress::-webkit-progress-bar{background:var(--line);border-radius:4px}progress::-webkit-progress-value{background:var(--primary);border-radius:4px}progress::-moz-progress-bar{background:var(--primary);border-radius:4px}.type-mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 4px;font-size:13px;color:var(--muted)}.switch{height:29px;width:46px;background:#d1d5db;border-radius:18px;position:relative;padding:3px}.switch>span{display:block;background:white;border-radius:50%;height:23px;width:23px;box-shadow:0 1px 3px #11182720}.switch.checked{background:var(--primary)}.switch.checked>span{transform:translateX(17px)}.switch:disabled{opacity:.6;cursor:default}.transcript{flex:1;min-height:100px;overflow-y:auto;padding:19px 16px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}.turn{display:flex;justify-content:flex-start}.user-turn{justify-content:flex-end}.bubble{max-width:300px;background:var(--tutor-bubble);border-radius:16px 16px 16px 4px;padding:11px 14px;overflow-wrap:anywhere}.bubble>p{font-size:15px;line-height:21px}.user-turn .bubble{background:white;border:1px solid var(--line);border-radius:16px 16px 4px 16px}.bubble .translation{font-size:13px;color:var(--muted);font-style:italic;line-height:19px;margin-top:5px}.replay{font-size:11px;padding:7px 0 0;color:var(--muted)}.replay .icon{width:16px;height:16px}.thinking-bubble{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.loading-dots{display:flex;gap:4px;padding:13px;background:var(--tutor-bubble);border-radius:12px}.loading-dots i{width:4px;height:4px;background:var(--muted);border-radius:50%;animation:pulse 1s infinite}.loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}@keyframes pulse{50%{opacity:.2}}.hint-card{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;background:white;margin:5px 16px 0;padding:12px}.hint-card>span{font-size:19px}.hint-card>div{flex:1;min-width:0}.hint-card small{display:block;font-size:11px;font-weight:650;color:var(--muted);margin-bottom:3px}.hint-card strong{font-size:14px;font-weight:500;display:block;line-height:1.5}.hint-card p{font-size:12px;color:var(--muted);margin-top:3px}.session-controls{padding:16px 16px 5px}.mic-controls{display:flex;flex-direction:column;align-items:center;position:relative}.record-button{height:76px;width:76px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:white;box-shadow:0 6px 16px #174c4230}.record-button .icon{width:34px;height:34px}.mic-controls>p{font-size:12px;color:var(--muted);margin-top:8px}.sample-shortcut{font-size:11px;padding:5px}.type-shortcut{font-size:11px;padding:4px}.recording-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:78px}.cancel-recording{height:52px;width:52px;border-radius:50%;display:grid;place-items:center;background:var(--error-soft);color:var(--error)}.record-send{height:64px;width:64px;border-radius:50%;background:var(--primary);color:white;display:grid;place-items:center;flex-shrink:0}.record-send .icon{width:30px;height:30px}.recording-center{text-align:center;min-width:0}.recording-center small{font-size:12px;color:var(--muted);display:block;margin-top:8px}.sound-bars{height:32px;display:flex;justify-content:center;align-items:center;gap:3px}.sound-bars i{width:3px;height:13px;background:var(--primary);border-radius:3px}.sound-bars i:nth-child(3n){height:29px}.sound-bars i:nth-child(4n){height:21px}.sound-bars.active i{animation:wave .7s infinite alternate}.sound-bars.active i:nth-child(2n){animation-delay:.3s}@keyframes wave{to{transform:scaleY(.3)}}.answer-form{display:flex;gap:8px;align-items:center}.answer-form textarea{width:100%;min-width:0;flex:1;resize:none;min-height:65px;border:1px solid var(--primary);border-radius:14px;background:white;padding:12px;color:var(--ink);font-size:14px;line-height:20px}.answer-form .record-send{height:52px;width:52px}.session-controls>.text-button{font-size:11px}.controls-placeholder{height:60px}.session-mode-label{text-align:center;font-size:10px;line-height:1.5;color:var(--muted);padding:3px 16px max(10px,env(safe-area-inset-bottom))}.session-notice{font-size:11px;color:var(--muted);padding:6px 16px}.session-error{padding:12px 16px;background:var(--error-soft);color:var(--error)}.session-error p{font-size:13px;margin-bottom:8px}.session-error .button{min-height:40px;font-size:14px}.session-error .text-button{margin-left:12px;font-size:12px}.summary-page{padding:22px 20px 0}.summary-heading{text-align:center}.summary-heading>span{font-size:52px;display:block;line-height:1.4;margin-bottom:6px}.summary-heading h1{font-size:24px}.summary-heading p{font-size:14px;color:var(--muted);margin-top:5px}.summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0 24px}.summary-stats>div{display:flex;flex-direction:column;align-items:center;background:white;border-radius:14px;padding:13px 8px}.summary-stats strong{font-size:23px;font-weight:700;margin-bottom:4px}.summary-stats span{font-size:12px;color:var(--muted)}.feedback-section{flex:1}.feedback-section>.section-label{margin-top:0}.correction{margin-bottom:14px}.correction header{display:flex;align-items:center;gap:9px;margin-bottom:16px}.correction header h2{font-size:16px;flex:1}.correction-number{height:24px;width:24px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:13px;font-weight:650}.correction header .text-button{padding:0;font-size:13px}.correction>small{color:var(--muted);font-size:11px;font-weight:650;display:block;margin-bottom:5px}.original{color:var(--error);text-decoration:line-through;font-size:15px;margin-bottom:13px;overflow-wrap:anywhere}.improved{font-size:15px;font-weight:650;color:var(--success);background:var(--success-soft);padding:10px;border-radius:10px;margin-bottom:11px;overflow-wrap:anywhere}.explanation{font-size:13px;line-height:19px}.summary-page>.screen-actions{margin:0 -20px}.summary-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.summary-buttons .button{min-height:48px;font-size:14px;padding:10px 8px}.paywall-body{padding:0 20px 22px;flex:1}.paywall-body h1{font-size:26px;line-height:32px;margin:8px 0 23px}.benefits{list-style:none;padding:0;margin:0 0 26px;display:flex;flex-direction:column;gap:17px}.benefits li{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.5}.benefits li>span{background:var(--success-soft);color:var(--success);height:22px;width:22px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-size:14px}.plans{display:flex;flex-direction:column;gap:23px}.plan{position:relative;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;background:white;padding:18px 14px;min-height:95px;text-align:left;width:100%}.plan.selected{border:2px solid var(--primary);padding:17px 13px}.plan-badge{position:absolute;top:-11px;left:16px;background:var(--accent);color:white;font-size:11px;font-weight:650;border-radius:6px;padding:3px 8px}.radio-dot{height:22px;width:22px;flex-shrink:0;border:2px solid var(--line);border-radius:50%}.plan.selected .radio-dot{border-color:var(--primary);background:var(--primary);box-shadow:inset 0 0 0 4px white}.plan-description{flex:1;min-width:0}.plan-description strong{font-size:16px;display:block}.plan-description small{font-size:11px;color:var(--muted);display:block;margin-top:4px;line-height:1.5}.plan-price{font-size:14px;white-space:nowrap}.paywall-body>.section-label{margin-top:25px;font-weight:400}.payment-chips{display:flex;gap:6px;flex-wrap:wrap}.payment-chips>span{padding:6px 8px;font-size:12px;background:white;border:1px solid var(--line);border-radius:8px}.modal-open{overflow:hidden}.modal-backdrop{position:fixed;inset:0;background:#11182773;z-index:30;display:flex;align-items:center;justify-content:center;padding:16px}.modal{width:min(100%,390px);max-height:calc(100dvh - 32px);overflow-y:auto;position:relative;border-radius:20px;background:white;padding:29px 24px 24px;box-shadow:0 20px 70px #11182733}.modal-close{position:absolute;right:8px;top:8px;width:34px;height:34px}.modal-close .icon{width:18px;height:18px}.modal h2{font-size:23px;line-height:1.4;padding-right:12px;margin-bottom:10px}.modal-lead{font-size:14px;color:var(--muted);margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:.6px;color:var(--muted);margin-bottom:8px;display:block}.modal form>label,.server-settings label{font-size:13px;font-weight:600;display:block;margin:14px 0 7px}.modal input{width:100%;min-height:48px;border:1px solid var(--line);padding:11px 12px;border-radius:10px;color:var(--ink);background:white;font-size:14px}.password-field{position:relative}.password-field input{padding-right:54px}.password-field>button{position:absolute;right:10px;top:15px;font-size:11px;color:var(--primary);background:transparent}.form-error{font-size:12px;line-height:1.6;color:var(--error);margin:10px 0}.modal .privacy-copy{font-size:11px}.server-settings{border-top:1px solid var(--line);margin-top:12px;padding-top:14px;font-size:12px;color:var(--muted)}.server-settings summary{cursor:pointer}.server-settings p{margin-top:10px;line-height:1.6}.server-settings .button{font-size:12px;min-height:38px;margin-top:9px}.modal .brief-goal{padding:14px;background:var(--primary-soft);border-radius:12px;margin:18px 0}.modal .brief-goal strong{font-size:14px}.modal .brief-goal p{font-size:13px;color:var(--muted);margin-top:5px}.rules-modal{text-align:center}.rules-robot{font-size:44px;display:block;line-height:1.4;margin-bottom:8px}.rules-modal .modal-lead{font-size:14px}.rule-item{display:flex;gap:12px;text-align:left;padding:10px 0}.rule-item>span{font-size:20px;flex-shrink:0}.rule-item strong{font-size:15px;font-weight:650;display:block}.rule-item p{font-size:13px;line-height:18px;color:var(--muted);margin-top:3px}.rules-modal>.button{margin-top:20px}.phrase-modal h2{margin-bottom:6px}.phrase-modal .modal-lead{font-size:14px}.drill-phrase{font-size:20px!important;color:var(--primary);font-weight:600;margin:20px 0}.skip-link{position:fixed;top:-70px;left:12px;z-index:99;padding:13px;background:var(--primary);color:white;border-radius:9px}.skip-link:focus{top:10px}.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}#toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,15px);max-width:min(92vw,370px);background:#263145;color:white;padding:13px 18px;font-size:13px;line-height:1.6;border-radius:10px;z-index:50;box-shadow:0 5px 20px #11182722;opacity:0;pointer-events:none;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:420px){body{background:var(--bg)}.shell{box-shadow:none}.modal-backdrop:has(.rules-modal),.modal-backdrop:has(.phrase-modal){padding:0;align-items:flex-end}.rules-modal,.phrase-modal{border-radius:24px 24px 0 0;max-height:90dvh;width:100%;padding-bottom:max(24px,env(safe-area-inset-bottom))}.home-heading h1{font-size:24px}.home-heading p{font-size:15px}}
@media(max-width:350px){.home-heading h1{font-size:21px}.scenario-card{min-height:165px;padding:12px}.scenario-card h2{font-size:14px;line-height:19px}.scenario-emoji{font-size:37px}.streak{font-size:11px;padding:4px 6px}.plan{gap:7px;padding:16px 10px}.plan-price{font-size:12px}.plan-description small{font-size:10px}.button{font-size:14px}.nav-item{font-size:11px}.bubble{max-width:270px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
