@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--ink:#f0f4f8;--blue:#e2b714;--paper:#0a0e11;--line:#28333c;--muted:#a7b4c3;--lime:#e2b714;--surface:#12191e;--soft:#1c272f}
body{font-family:Vazirmatn,Tahoma,sans-serif;background:radial-gradient(ellipse at 20% 0%,#e2b71409,transparent 50%),var(--paper);line-height:1.85}
header{border-bottom:1px solid var(--line);max-width:1320px;flex-wrap:wrap}header .brand{color:var(--ink)}.brand i{background:var(--soft);color:var(--blue);border:1px solid #e2b71455}
nav{flex-wrap:wrap;gap:2px}nav a{font-size:12px;padding:9px 12px}nav a.active{background:var(--soft);color:var(--blue);box-shadow:none}.avatar{background:var(--soft);color:var(--blue)}
.card{background:var(--surface);border-color:var(--line);box-shadow:0 8px 28px #00000012}.primary,.lime{background:var(--blue);color:#13171b;font-weight:700}.dark{background:var(--soft);color:var(--ink);border:1px solid var(--line)}button{background:var(--soft);color:var(--blue)}.ghost{background:none;color:var(--muted)}.button-link{display:inline-block;padding:11px 18px;border-radius:10px;margin-top:16px}
input,select{background:var(--paper);border-color:var(--line);color:var(--ink)}input[type=date]{min-width:0}button,input,select{font-family:inherit}:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.badge,.topic-icon{background:var(--soft);color:var(--muted)}.badge.blue,.badge.green{background:#e2b71418;color:#f1cd47}.feature{background:linear-gradient(130deg,#1d252a,#12191e);border:1px solid #e2b71455}.feature .muted{color:var(--muted)}.note{background:#e2b71412;color:#e7d488;border-color:#e2b71444}.server-status{background:#e2b71414;color:#efd574}.auth-tabs a.active{background:var(--soft);color:var(--blue)}.auth-error{background:#e1616218;color:#ffb6b6}
.level-tile,.topic-tile,.choice-summary{background:var(--surface);border-color:var(--line)}.chooser input:checked+.level-tile,.chooser input:checked+.topic-tile{background:#e2b7140e;border-color:var(--blue)}.chooser input:checked+.topic-tile .topic-icon,.choice-number{background:var(--soft);color:var(--blue)}.level-option:hover .level-tile,.topic-option:hover .topic-tile{border-color:#8a761f}.level-tile strong{color:var(--ink)}
.sentence{color:var(--muted);background:transparent}.sentence.selected{background:#e2b7140c;color:var(--ink);border-color:#e2b71455}.rail span,.budget{background:var(--soft)}.rail span.done{background:var(--blue)}.record{border-color:var(--line)}.wave i{background:#53616d}.auth-intro .en{color:var(--blue);font-family:Georgia,serif}.eyebrow{letter-spacing:1.4px}
.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.plan-grid h2{font-size:26px;margin-top:16px}.account-policy{margin-top:22px}.plan-grid progress{width:100%;height:12px;accent-color:var(--blue);margin-top:22px}.report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin-bottom:24px}.report-filters>div{flex:1;min-width:160px}.report-filters p{width:100%}.report-item h2{margin-top:16px;text-align:left}.report-item details{margin:18px 0}.report-item time{color:var(--muted);font-size:12px}.report-item summary{cursor:pointer;color:var(--blue)}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:25px 0;font-size:12px}
.drill-target{border:1px solid #e2b71466;border-radius:12px;padding:20px;margin:20px 0;background:#e2b71408}.drill-target strong{display:block;font:38px/1.7 Georgia,serif;text-align:left;color:var(--blue);overflow-wrap:anywhere}.drill-target p{font-size:12px;color:var(--muted)}.word-practice{margin-top:10px;border:1px solid #e2b71444}.feedback-item .word{overflow-wrap:anywhere}.practice-grid>*{min-width:0}th{background:var(--soft)}.state-error{color:#ffb6b6}.recorded-audio{color-scheme:dark}#toast{background:var(--soft);border:1px solid var(--line);color:var(--ink)}footer a{color:var(--blue)}
.segment-nav{background:var(--soft);color:var(--muted)}.segment-nav.active{background:#e2b71414;color:var(--blue);border-color:var(--blue)}.segment-nav b{background:var(--paper);color:var(--ink)}.sentence.selected{box-shadow:none;border-bottom-color:var(--blue)}
.upgrade-settings{margin-bottom:22px}.upgrade-settings form{max-width:650px}
.passage-overview{margin:12px 0;color:var(--muted);font-size:12px}.passage-overview summary{cursor:pointer;padding:8px 0;color:var(--blue)}.sentence-meaning{font:14px/1.9 Vazirmatn,Tahoma,sans-serif;margin:4px 13px 18px;color:var(--muted);text-align:right}.reading-target{background:#e2b7140c;border-right:3px solid var(--blue);border-radius:10px;padding:16px;margin:12px 0}.target-label{font-size:11px;color:var(--blue);margin:0 0 8px}.target-english{font:23px/1.65 Georgia,serif;text-align:left;overflow-wrap:anywhere;margin:0}.target-meaning{font-size:14px;line-height:1.9;color:var(--muted);margin:10px 0 0}.word-meaning{color:var(--ink)!important}.recording-station .listen{padding:8px 0;gap:6px}.recording-station .record{margin:12px 0}.recording-station .notice{font-size:11px}.recording-station #record-status{font-size:12px;margin:6px 0}
@media(max-width:700px){.practice-grid>.reader{grid-row:1}.practice-grid>aside:first-child{grid-row:2}.practice-grid>.feedback{grid-row:3}.reader h2{font-size:21px;margin:10px 0}.reader{padding:14px}.reading-target{padding:12px;margin:8px 0}.target-english{font-size:20px;line-height:1.6}.target-meaning{font-size:13px;line-height:1.75;margin-top:8px}.recording-station{position:sticky;top:0;background:var(--surface);z-index:1}.recording-station .listen{font-size:11px}.recording-station .listen button{padding:8px 10px}.recording-station .record button{min-height:44px}.practice-grid>aside:first-child .sections{margin:8px 0}.practice-grid>aside:first-child h2{font-size:16px}.practice-grid>aside:first-child .notice{margin:6px 0}}
@media(max-width:1100px){header{gap:14px}header nav{order:3;width:100%;justify-content:center}}
@media(max-width:700px){.plan-grid{grid-template-columns:1fr}.report-filters>div{min-width:100%;width:100%}.report-filters button{width:100%}.pagination{gap:10px}.pagination button{padding:9px}.brand{max-width:52%}header #account.profile{position:static;margin-right:auto}header nav{overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start}nav a{white-space:nowrap;flex:none}h1{letter-spacing:0}.auth-layout{margin-top:25px}.drill-target strong{font-size:32px}footer{flex-wrap:wrap}}

.analysis-error{font-size:13px;color:#ffb6b6;background:#e1616218;padding:10px;border-radius:8px;white-space:pre-wrap}.analysis-error:empty{display:none}
.practice-steps{padding:14px 20px;margin-bottom:18px;display:flex;align-items:center;gap:24px}.practice-steps .sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;flex:1}.practice-steps .segment-nav{min-height:48px;padding:9px 14px;justify-content:center}.practice-steps .segment-nav small{display:none}.practice-progress{display:flex;flex-direction:column;gap:3px;font-size:11px}.practice-progress a{color:var(--blue)}
.practice-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:22px}.practice-grid>.feedback{grid-column:auto;grid-row:auto;scroll-margin-top:18px;border:1px solid #345b56;background:#101e1e}.feedback-heading{display:flex;gap:12px;align-items:center;padding-bottom:16px;border-bottom:1px solid #345b56;margin-bottom:16px}.feedback-heading h2{font-size:22px;margin:0}.feedback-heading .eyebrow{font-size:11px;color:#a9d7ce;letter-spacing:0}.feedback-symbol{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:#214039;color:#b3eadb;font-size:22px}.feedback-body>p:first-of-type{font-size:15px;line-height:2;color:var(--ink)}.feedback .feedback-item{background:#152826;padding:16px;border:1px solid #345b56;border-radius:12px;margin:14px 0}.feedback .feedback-item .word{margin-top:0}.feedback .note{background:#17302a;color:#b3eadb;border-color:#345b56}.feedback-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #345b56;margin-top:20px;padding-top:16px}.feedback-actions[hidden]{display:none}.feedback-actions button{flex:1;min-height:44px}.feedback.is-ready{border-color:#68b8a5;box-shadow:0 0 0 2px #68b8a522;animation:feedback-arrived 1s ease-out}.feedback.is-processing .feedback-symbol{animation:pulse .8s ease-in-out infinite alternate}.feedback.is-processing .feedback-body{min-height:90px;color:var(--muted)}.analysis-status{font-size:13px;color:#b3eadb;margin-top:10px}.analysis-status:empty{display:none}.practice-grid>.reader .recording-station{position:static}
@keyframes feedback-arrived{from{box-shadow:0 0 0 5px #68b8a555}to{box-shadow:0 0 0 2px #68b8a522}}
@media(max-width:900px){.practice-grid{grid-template-columns:minmax(0,1fr)}.practice-grid>.reader{grid-row:1}.practice-grid>.feedback{grid-row:2;grid-column:1}.practice-steps{display:block;padding:12px}.practice-progress{flex-direction:row;justify-content:space-between;flex-wrap:wrap;margin-top:12px;gap:8px}.practice-progress>.muted{display:none}.practice-steps .segment-nav{padding:8px;gap:6px}.feedback-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.feedback.is-ready,.feedback.is-processing .feedback-symbol{animation:none}}

/* Motion follows real recording, analysis and completion states. */
.practice-grid>.reader .recording-station .wave.running i{background:#e2b714;animation:record-wave .72s ease-in-out infinite alternate;transform-origin:center}
.practice-grid>.reader .recording-station .wave.running i:nth-child(3n+1){animation-delay:-.36s}
.practice-grid>.reader .recording-station .wave.running i:nth-child(3n+2){animation-delay:-.18s}
.recording-dot{background:#ff796e;box-shadow:0 0 0 0 #ff796e66;animation:record-beacon 1.3s ease-out infinite}
#analyze.is-analyzing{opacity:1;position:relative;overflow:hidden;background:linear-gradient(100deg,#c69e11,#f3d557,#c69e11);background-size:220% 100%;animation:analysis-shimmer 1.7s linear infinite;color:#11171a}
.analysis-motion:not([hidden]){display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px;margin-top:10px;color:#e2b714}
.analysis-motion .motion-wave{display:flex;align-items:center;gap:3px;height:22px}
.analysis-motion .motion-wave i{display:block;width:3px;height:6px;border-radius:3px;background:#e2b714;animation:travel-wave .85s ease-in-out infinite alternate}
.analysis-motion .motion-wave i:nth-child(2){animation-delay:.12s}.analysis-motion .motion-wave i:nth-child(3){animation-delay:.24s}.analysis-motion .motion-wave i:nth-child(4){animation-delay:.36s}.analysis-motion .motion-wave i:nth-child(5){animation-delay:.48s}
.analysis-motion .motion-track{width:72px;height:2px;position:relative;overflow:hidden;border-radius:4px;background:#e2b71433}
.analysis-motion .motion-track::after{content:"";position:absolute;inset:0 0 0 auto;width:23px;background:#e2b714;border-radius:4px;animation:signal-travel 1.2s ease-in-out infinite}
.analysis-motion .motion-target{font-size:21px;line-height:1;animation:target-breathe 1.2s ease-in-out infinite alternate}
.feedback.is-processing{border-color:#6b6342;background:linear-gradient(135deg,#1b221e,#101e1e)}
.feedback.is-processing .feedback-symbol{animation:target-breathe 1s ease-in-out infinite alternate;background:#3a321f;color:#f3d557}
.feedback.is-ready .feedback-symbol{animation:result-pop .55s cubic-bezier(.2,1.5,.4,1)}
.feedback.is-ready .feedback-body>*{animation:result-enter .5s ease-out both}
.feedback.is-ready .feedback-body>*:nth-child(2){animation-delay:.08s}
.feedback.is-ready .feedback-body>*:nth-child(3){animation-delay:.16s}
.feedback.is-ready .feedback-body>*:nth-child(n+4){animation-delay:.24s}
.feedback.is-insufficient{border-color:#8a7140;background:#211e17}
.feedback.is-insufficient .feedback-symbol{background:#4a3921;color:#f5d685}
.practice-progress .practice-meter{height:5px;width:110px;background:#28333c;border-radius:5px;overflow:hidden;align-self:center}
.practice-meter i{display:block;height:100%;border-radius:inherit;background:#e2b714}
.practice-steps.just-completed .practice-meter i{transform-origin:right;animation:meter-fill .8s cubic-bezier(.2,.8,.2,1) both}
.practice-steps .segment-nav.just-completed b{background:#e2b714;color:#11171a;animation:result-pop .6s cubic-bezier(.2,1.5,.4,1)}
#toast.milestone-toast{background:#21372d;border-color:#86b895;color:#e6f6e8;animation:milestone-enter .45s cubic-bezier(.2,1.25,.4,1)}
@keyframes record-wave{from{transform:scaleY(.55)}to{transform:scaleY(1.4)}}
@keyframes record-beacon{50%{box-shadow:0 0 0 8px #ff796e00}100%{box-shadow:0 0 0 0 #ff796e00}}
@keyframes analysis-shimmer{to{background-position:-220% 0}}
@keyframes travel-wave{to{height:20px}}
@keyframes signal-travel{from{transform:translateX(0)}to{transform:translateX(-72px)}}
@keyframes target-breathe{to{opacity:.6;transform:scale(.9)}}
@keyframes result-pop{from{opacity:.5;transform:scale(.72)}to{opacity:1;transform:scale(1)}}
@keyframes result-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes meter-fill{from{transform:scaleX(var(--previous-scale,0))}to{transform:scaleX(1)}}
@keyframes milestone-enter{from{opacity:0;transform:translate(-50%,18px) scale(.96)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(max-width:900px){.practice-progress .practice-meter{order:3;width:100%;align-self:auto}}
@media(prefers-reduced-motion:reduce){.recording-dot,.practice-grid>.reader .recording-station .wave.running i,#analyze.is-analyzing,.analysis-motion .motion-wave i,.analysis-motion .motion-track::after,.analysis-motion .motion-target,.feedback.is-processing .feedback-symbol,.feedback.is-ready .feedback-symbol,.feedback.is-ready .feedback-body>*,.practice-steps.just-completed .practice-meter i,.practice-steps .segment-nav.just-completed b,#toast.milestone-toast{animation:none;transform:none}}

.install-card{display:flex;align-items:flex-start;gap:20px;margin-top:18px;border-color:#4a4a2b;background:linear-gradient(130deg,#1c211c,#12191e)}
.install-card>div:last-child{flex:1;min-width:0}.install-card h2{margin:0 0 8px}.install-card p{margin:6px 0}.install-card #install-app{margin:14px 0 10px;min-height:44px}.install-card #install-app[hidden]{display:none}
.install-mark{display:flex;align-items:center;justify-content:center;gap:4px;flex:none;width:58px;height:58px;border:1px solid #a08433;border-radius:15px;background:#262719;box-shadow:inset 0 0 0 4px #12191e}
.install-mark i{width:6px;border-radius:4px;background:#e2b714}.install-mark i:nth-child(1),.install-mark i:nth-child(3){height:20px}.install-mark i:nth-child(2){height:32px}
@media(max-width:700px){.install-card{gap:12px;padding:18px}.install-mark{width:44px;height:44px;border-radius:12px}.install-card #install-app{width:100%}}
