:root{color-scheme:light dark;--font-sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;--font-mono: "SFMono-Regular", Consolas, monospace;--canvas: #f2f1e9;--surface: #fbfaf4;--surface-strong: #e8e7dd;--surface-inverse: #18352d;--text: #18221f;--text-soft: #5d6863;--line: #d4d5cb;--accent: #d79624;--accent-strong: #9a6208;--accent-soft: #f2dba7;--danger: #a33b32;--success: #2f6e52;--focus: #a76800;--shadow: 0 20px 60px rgb(29 51 43 / .1);--radius-surface: 14px;--radius-control: 999px;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.5rem;--space-6: 2rem;--space-7: 3rem;--layer-nav: 20;--layer-overlay: 40;--layer-dialog: 50;font-family:var(--font-sans);background:var(--canvas);color:var(--text)}@media(prefers-color-scheme:dark){:root{--canvas: #111815;--surface: #17221e;--surface-strong: #22312b;--surface-inverse: #dce9e1;--text: #ebf0ec;--text-soft: #a7b3ad;--line: #34423c;--accent: #e1a739;--accent-strong: #f1c265;--accent-soft: #4a3b1d;--danger: #ef8c80;--success: #7fc69e;--focus: #f1c265;--shadow: 0 20px 60px rgb(0 0 0 / .24)}}*{box-sizing:border-box}html{min-width:320px;background:var(--canvas)}body{margin:0;min-width:320px;min-height:100dvh;background:var(--canvas);color:var(--text);text-rendering:optimizeLegibility}button,input,select,textarea{font:inherit}button,a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.4rem,7vw,5.6rem);letter-spacing:-.06em;line-height:.96}h2{font-size:clamp(1.45rem,3vw,2.25rem);letter-spacing:-.035em;line-height:1.06}h3{font-size:1rem}p{color:var(--text-soft);line-height:1.6}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{background:var(--accent-soft);color:var(--text)}.skip-link{position:fixed;left:1rem;top:-5rem;z-index:100;padding:.75rem 1rem;border-radius:var(--radius-control);background:var(--surface-inverse);color:var(--canvas)}.skip-link:focus{top:1rem}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:.55rem;padding:.72rem 1.1rem;border:1px solid transparent;border-radius:var(--radius-control);font-weight:700;cursor:pointer;white-space:nowrap;transition:transform .16s ease,background .16s ease,border-color .16s ease}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{opacity:.48;cursor:not-allowed}.button-primary{background:var(--surface-inverse);color:var(--canvas)}.button-primary:hover:not(:disabled){background:color-mix(in srgb,var(--surface-inverse) 88%,var(--accent))}.button-secondary{background:var(--surface);border-color:var(--line)}.button-secondary:hover:not(:disabled),.button-quiet:hover:not(:disabled){background:var(--surface-strong)}.button-quiet{background:transparent}.button-danger{color:var(--danger);background:transparent;border-color:color-mix(in srgb,var(--danger) 50%,transparent)}.icon-button{display:inline-grid;width:42px;height:42px;place-items:center;border:0;border-radius:var(--radius-control);background:transparent;cursor:pointer}.icon-button:hover{background:var(--surface-strong)}.field{display:grid;gap:.45rem}.field-label{font-weight:700;font-size:.9rem}.field-hint{color:var(--text-soft);font-size:.8rem}.field-error{color:var(--danger);font-size:.85rem}.input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);padding:.75rem .9rem}.input::placeholder{color:color-mix(in srgb,var(--text-soft) 80%,transparent)}.textarea{resize:vertical;min-height:96px;line-height:1.45}.select{appearance:auto}.alert{display:flex;gap:.6rem;align-items:flex-start;padding:.85rem 1rem;border-radius:var(--radius-surface);background:var(--surface-strong);color:var(--text)}.alert-error{color:var(--danger)}.alert-success{color:var(--success)}.skeleton{display:grid;gap:.75rem;padding:1rem 0}.skeleton span{height:4rem;border-radius:var(--radius-surface);background:var(--surface-strong);animation:breathe 1.6s ease-in-out infinite alternate}.skeleton span:nth-child(2){width:78%;justify-self:end}@keyframes breathe{to{opacity:.55}}.empty-state{display:grid;justify-items:center;text-align:center;max-width:28rem;margin:auto;padding:4rem 1rem}.empty-state p{max-width:34ch}.empty-orbit{width:80px;height:80px;display:grid;place-items:center;margin-bottom:1.5rem;border:1px solid var(--line);border-radius:50%;color:var(--accent-strong);font-size:2.3rem;font-weight:800;transform:rotate(-7deg)}.dialog-overlay{position:fixed;inset:0;z-index:var(--layer-overlay);background:#08110d94}.dialog-content{position:fixed;z-index:var(--layer-dialog);left:50%;top:50%;width:min(92vw,32rem);transform:translate(-50%,-50%);border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--surface);box-shadow:var(--shadow);padding:1.5rem}.dialog-content>div{margin-top:1.25rem}.dialog-close{position:absolute;right:.5rem;top:.5rem}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.brand-mark{display:inline-flex;align-items:center;gap:.75rem;font-size:1.15rem;font-weight:800;letter-spacing:-.03em}.brand-mark>span{display:grid;width:2.6rem;height:2.6rem;place-items:center;border-radius:50%;background:var(--surface-inverse);color:var(--canvas);font-size:1.45rem;transform:rotate(-7deg)}.brand-mark.compact>span{width:2.15rem;height:2.15rem;font-size:1.2rem}.kicker{margin-bottom:.65rem;color:var(--accent-strong);font-size:.78rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.auth-layout{display:grid;min-height:100dvh;grid-template-columns:minmax(0,1.25fr) minmax(22rem,.75fr)}.auth-copy{display:flex;flex-direction:column;justify-content:space-between;padding:clamp(2rem,6vw,6rem);background:var(--surface);color:var(--text)}.auth-copy h1{max-width:9ch;margin:auto 0 1.5rem}.auth-copy p{max-width:38ch;color:var(--text-soft);font-size:1.08rem}.auth-copy .brand-mark>span{background:var(--accent);color:#17231f}.language-note{display:flex;justify-content:space-between;width:min(20rem,100%);padding-top:1rem;border-top:1px solid var(--line);color:var(--text-soft)}.auth-panel{display:flex;flex-direction:column;justify-content:center;gap:1rem;padding:clamp(2rem,7vw,6rem);background:var(--surface);border-left:1px solid var(--line)}.auth-panel>p{max-width:36ch}.auth-panel small{color:var(--text-soft);line-height:1.45}.provider-slot{display:grid;min-height:48px}.provider-button{display:flex;width:100%;min-height:50px;align-items:center;justify-content:center;gap:.7rem;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font-weight:750;cursor:pointer}.provider-button:hover{background:var(--surface-strong)}.onboarding{min-height:100dvh;padding:1.5rem clamp(1rem,6vw,5rem)}.onboarding>header{display:flex;align-items:center;justify-content:space-between;max-width:72rem;margin:auto}.step-count{color:var(--text-soft);font-family:var(--font-mono);font-size:.82rem}.onboarding>section{max-width:48rem;margin:clamp(3rem,10vh,7rem) auto 0}.onboarding h1{max-width:11ch}.onboarding>section>p:not(.kicker){max-width:42ch}.choice-list{display:grid;gap:.65rem;margin:2.25rem 0}.choice{display:flex;min-height:58px;align-items:center;justify-content:space-between;padding:.8rem 1rem;border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--surface);color:var(--text);text-align:left;cursor:pointer}.choice:hover{border-color:var(--accent-strong)}.choice-selected{border-color:var(--accent-strong);background:var(--accent-soft)}.choice-ring{width:18px;height:18px;border:1px solid var(--line);border-radius:50%}.choice-selected .choice-ring{border:5px solid var(--accent-strong)}.onboarding footer{display:flex;justify-content:space-between}.app-shell{display:grid;min-height:100dvh;grid-template-columns:14.5rem minmax(0,1fr)}.side-nav{position:sticky;top:0;display:flex;height:100dvh;flex-direction:column;align-items:stretch;gap:2rem;padding:1.25rem;border-right:1px solid var(--line);background:color-mix(in srgb,var(--canvas) 90%,transparent)}.side-nav nav{display:grid;gap:.35rem}.side-nav nav a,.bottom-nav a{display:flex;align-items:center;gap:.7rem;min-height:44px;padding:.55rem .75rem;border-radius:var(--radius-control);color:var(--text-soft);text-decoration:none;font-weight:700}.side-nav nav a.active,.bottom-nav a.active{background:var(--surface-strong);color:var(--text)}.side-nav>.button{margin-top:auto;justify-content:flex-start}.app-main{width:min(100%,78rem);margin:0 auto;padding:clamp(1.25rem,4vw,3.5rem)}.bottom-nav{display:none}.loading-page{width:min(40rem,calc(100% - 2rem));margin:4rem auto}.practice{display:grid;min-height:calc(100dvh - 7rem);grid-template-rows:auto minmax(18rem,1fr) auto}.practice-header{display:flex;justify-content:space-between;align-items:flex-start}.practice-header h1{font-size:clamp(2.2rem,5vw,4.4rem)}.turn-list{overflow:auto;padding:1.5rem 0 2.5rem;scroll-behavior:smooth}.older-button{margin:0 auto 1.5rem}.turn{display:grid;gap:1.1rem;margin-bottom:1.75rem}.learner-message{max-width:min(78%,38rem);justify-self:end;padding:.9rem 1rem;border-radius:var(--radius-surface) var(--radius-surface) 3px var(--radius-surface);background:var(--surface-strong)}.learner-message p,.slovely-reply p{margin:0;color:var(--text);line-height:1.55;white-space:pre-wrap}.source-label{display:flex;align-items:center;gap:.35rem;margin-bottom:.5rem;color:var(--text-soft);font-size:.75rem}.slovely-reply{display:grid;max-width:50rem;grid-template-columns:2rem 1fr;gap:.75rem}.slovely-reply>div{display:grid;gap:.85rem}.reply-mark{display:grid;width:2rem;height:2rem;place-items:center;border-radius:50%;background:var(--surface-inverse);color:var(--canvas);font-weight:800;transform:rotate(-7deg)}.slovely-reply details{margin-top:.75rem;color:var(--accent-strong)}.slovely-reply pre{overflow-x:auto;padding:.75rem;border-radius:10px;background:var(--surface-strong);color:var(--text);white-space:pre-wrap}.topic-picker{display:grid;gap:1rem;padding:1.25rem;border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--surface)}.topic-picker-copy p:not(.kicker){max-width:38ch;margin:0;color:var(--text-soft)}.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.topic-button{min-height:58px;padding:.85rem 1rem;border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--canvas);color:var(--text);font:inherit;font-weight:700;text-align:left;cursor:pointer}.topic-button:hover:not(:disabled){border-color:var(--accent-strong);background:var(--surface-strong)}.topic-button-custom{grid-column:1 / -1}.custom-topic-card{display:grid;gap:1rem}.custom-topic-actions{display:flex;justify-content:flex-end;gap:.65rem}.correction-panel{display:grid;gap:.9rem;padding:1rem;border:1px solid var(--line);border-radius:1rem;background:var(--surface)}.correction-section{display:grid;gap:.65rem}.correction-section h3{margin:0;font-size:.9rem}.feedback-list{display:grid;gap:.75rem;padding:0;margin:0;list-style:none}.feedback-item,.fluency-tip-card{display:grid;gap:.4rem;padding:.85rem .9rem;border-radius:.9rem;background:var(--surface-strong)}.correction-section-fluency .fluency-tip-card{background:color-mix(in srgb,var(--accent-soft) 70%,var(--surface))}.feedback-swap,.feedback-explanation,.fluency-pattern,.repeat-nudge{margin:0}.feedback-swap{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.feedback-swap span{color:var(--text-soft)}.feedback-swap-mistake span{text-decoration:line-through}.feedback-swap strong{color:var(--text)}.feedback-explanation,.fluency-pattern,.repeat-nudge{color:var(--text-soft);font-size:.88rem}.fluency-pattern{font-family:var(--font-mono)}.reply-pending{display:flex;gap:.35rem;padding-left:2.8rem}.reply-pending>span:not(.sr-only){width:.45rem;height:.45rem;border-radius:50%;background:var(--accent);animation:breathe .75s ease-in-out infinite alternate}.reply-pending>span:nth-child(2){animation-delay:.1s}.reply-pending>span:nth-child(3){animation-delay:.2s}.turn-error{justify-self:end;color:var(--danger);font-size:.8rem}.composer{position:sticky;bottom:1rem;display:grid;grid-template-columns:1fr auto;gap:.4rem;padding:.55rem;border:1px solid var(--line);border-radius:var(--radius-surface);background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.composer textarea{min-height:46px;max-height:9rem;resize:none;border:0;background:transparent;color:var(--text);padding:.75rem}.composer textarea:focus{outline:none}.send-button{display:grid;width:42px;height:42px;place-items:center;align-self:center;border:0;border-radius:50%;background:var(--surface-inverse);color:var(--canvas);cursor:pointer}.send-button:disabled{opacity:.35;cursor:not-allowed}.voice-composer{grid-column:1 / -1;border-top:1px solid var(--line);padding-top:.35rem}.voice-unavailable,.composer-hint{display:flex;align-items:center;gap:.35rem;color:var(--text-soft);font-size:.72rem;padding:.35rem .6rem}.composer-hint{justify-self:end;grid-column:1 / -1}.recording-status{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.recording-time{font-family:var(--font-mono);color:var(--danger)}.settings-page,.account-page{max-width:52rem}.settings-page header,.account-page header{margin-bottom:2.5rem}.settings-page h1,.account-page h1{font-size:clamp(2.6rem,6vw,5rem)}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem}.settings-advanced{margin-top:1.5rem}.advanced-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;padding:.9rem 1rem;border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--surface);color:var(--text);font:inherit;font-weight:700;cursor:pointer}.settings-grid-advanced{margin-top:1rem}.settings-page footer{display:flex;justify-content:flex-end;margin:2rem 0}.toggle{display:flex;align-items:center;gap:.75rem;padding:.75rem}.toggle input{width:1.2rem;height:1.2rem;accent-color:var(--accent-strong)}.identity-list{display:grid;gap:.75rem}.identity-row{display:grid;grid-template-columns:2.7rem 1fr auto;align-items:center;gap:.8rem;padding:1rem;border:1px solid var(--line);border-radius:var(--radius-surface);background:var(--surface)}.identity-icon{display:grid;width:2.7rem;height:2.7rem;place-items:center;border-radius:50%;background:var(--surface-strong);font-size:1.35rem}.identity-row div{display:grid;gap:.2rem}.identity-row div span{color:var(--text-soft);font-size:.8rem}.connected{display:flex;align-items:center;gap:.35rem;color:var(--success);font-size:.82rem;font-weight:700}.plan-note{margin-top:3rem;padding:1.5rem;border-radius:var(--radius-surface);background:var(--surface-inverse);color:var(--canvas)}.plan-note span{color:color-mix(in srgb,var(--canvas) 70%,transparent);font-size:.8rem}.plan-note strong{display:block;margin:.4rem 0;font-size:1.6rem}.plan-note p{margin:0;color:color-mix(in srgb,var(--canvas) 75%,transparent)}.dialog-actions{display:flex;justify-content:flex-end}@media(max-width:767px){.auth-layout{grid-template-columns:1fr}.auth-copy{min-height:48dvh;padding:1.25rem}.auth-copy h1{margin-top:4rem;font-size:clamp(2.6rem,13vw,4.5rem)}.auth-panel{padding:2rem 1.25rem 3rem;border-top:1px solid var(--line);border-left:0}.app-shell{display:block;padding-bottom:4.5rem}.side-nav{display:none}.bottom-nav{position:fixed;z-index:var(--layer-nav);bottom:0;left:0;right:0;display:grid;grid-template-columns:1fr auto auto;gap:.25rem;padding:.5rem .75rem max(.5rem,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:color-mix(in srgb,var(--canvas) 94%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.bottom-nav a{justify-content:center;padding-inline:1rem}.app-main{padding:1rem}.practice{min-height:calc(100dvh - 6.5rem)}.practice-header h1{max-width:8ch}.topic-grid{grid-template-columns:1fr}.learner-message{max-width:88%}.composer{bottom:.5rem}.composer-hint{display:none}.settings-grid{grid-template-columns:1fr}.identity-row{grid-template-columns:2.7rem 1fr}.identity-row>:last-child{grid-column:2;justify-self:start}.onboarding h1{font-size:clamp(2.6rem,13vw,4.3rem)}}@media(prefers-reduced-motion:reduce){.turn-list{scroll-behavior:auto}}
