:root{--ame-bg:#FCF6EA;--ame-surface:#FFFFFF;--ame-ink:#1C160F;--ame-accent:#F5B93B;--ame-coral:#FF6F5E;--ame-teal:#2BAFA0;--ame-muted:#6B6156;--ame-line:#EFE4CF;--ame-tint:#FFF1D6;--ame-deep:#14213D;--ame-radius:20px;--ame-shadow:0 20px 40px rgba(28,22,15,.08)}.ame-app{font-family:"General Sans",Arial,sans-serif;color:var(--ame-ink);font-size:16px;line-height:1.65}.ame-app *{box-sizing:border-box}.ame-app h1,.ame-app h2,.ame-app h3{font-family:"Cabinet Grotesk","Arial Black",sans-serif;color:var(--ame-ink);letter-spacing:-.025em;margin:0 0 14px}.ame-app h1{font-size:clamp(38px,5vw,64px);line-height:1}.ame-app h2{font-size:clamp(28px,3vw,42px);line-height:1.08}.ame-app h3{font-size:22px;line-height:1.2}.ame-app p{color:var(--ame-muted);margin:0 0 20px;max-width:66ch}.ame-kicker,.ame-card-label{display:inline-flex;align-items:center;width:max-content;padding:7px 12px;border-radius:999px;background:var(--ame-tint);font-size:13px;font-weight:700;line-height:1.2;margin-bottom:18px}.ame-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 24px;border-radius:999px;font-weight:700;text-decoration:none!important;border:2px solid transparent;transition:transform .18s ease,box-shadow .18s ease}.ame-btn:hover{transform:translateY(-2px)}.ame-btn-primary{background:var(--ame-accent);color:var(--ame-ink)!important;box-shadow:0 10px 24px rgba(245,185,59,.35)}.ame-btn-dark{background:var(--ame-ink);color:var(--ame-bg)!important}.ame-panel,.ame-card,.ame-auth-card,.ame-feature-card,.ame-stat-card,.ame-empty{background:var(--ame-surface);border:1px solid var(--ame-line);border-radius:32px;box-shadow:var(--ame-shadow)}.ame-empty{padding:42px;text-align:center}.ame-empty p{margin-left:auto;margin-right:auto}.ame-auth-card{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;padding:clamp(28px,5vw,64px);background:linear-gradient(135deg,var(--ame-bg),var(--ame-surface))}.ame-auth-actions{background:var(--ame-surface);border:1px solid var(--ame-line);border-radius:20px;padding:28px}.ame-auth-actions label{display:block;font-weight:700;margin-bottom:6px}.ame-auth-actions input[type=text],.ame-auth-actions input[type=password]{width:100%;border:1px solid var(--ame-line);border-radius:12px;padding:13px 14px;background:#fff}.ame-auth-actions .login-submit input{width:100%;border:0;border-radius:999px;background:var(--ame-accent);color:var(--ame-ink);font-weight:800;padding:14px;cursor:pointer}.ame-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--ame-muted);font-size:13px}.ame-divider:before,.ame-divider:after{content:"";height:1px;background:var(--ame-line);flex:1}.ame-text-link{color:var(--ame-ink);font-weight:700}.ame-onboarding{padding:clamp(28px,5vw,64px)}.ame-progress{height:10px;background:var(--ame-line);border-radius:999px;overflow:hidden;margin-bottom:42px}.ame-progress span{display:block;height:100%;background:var(--ame-accent);border-radius:inherit}.ame-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}.ame-choice{min-height:100px;border:2px solid var(--ame-line);background:#fff;border-radius:20px;font:800 24px/1 "Cabinet Grotesk",sans-serif;color:var(--ame-ink);cursor:pointer;box-shadow:0 8px 20px rgba(28,22,15,.05)}.ame-choice:hover,.ame-choice:focus{border-color:var(--ame-accent);background:var(--ame-tint);outline:3px solid rgba(245,185,59,.25)}.ame-note{font-size:13px;margin-top:28px}.ame-dashboard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:32px}.ame-streak{background:var(--ame-tint);padding:10px 16px;border-radius:999px;font-weight:700}.ame-dashboard-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;align-items:stretch}.ame-feature-card{grid-row:span 2;padding:36px}.ame-card-yellow{background:var(--ame-accent);border-color:rgba(28,22,15,.12);transform:rotate(-.5deg)}.ame-card-yellow p{color:rgba(28,22,15,.78)}.ame-stat-card{padding:28px;display:flex;flex-direction:column;justify-content:center}.ame-stat-card strong{font:900 clamp(40px,5vw,68px)/.9 "Cabinet Grotesk",sans-serif}.ame-stat-card span{color:var(--ame-muted);margin-top:12px}.ame-review-card{grid-column:2/4;padding:28px;background:var(--ame-deep);color:var(--ame-bg)}.ame-review-card h3{color:var(--ame-bg)}.ame-review-card p{color:#AEB9D6}.ame-learning-path{margin-top:72px}.ame-section-heading{margin-bottom:28px}.ame-path-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.ame-path-item{display:flex;gap:16px;align-items:center;padding:22px;border-radius:20px;border:1px solid var(--ame-line);background:#fff}.ame-path-item.is-current{background:var(--ame-tint);border-color:var(--ame-accent)}.ame-path-item.is-locked{opacity:.68}.ame-path-number{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:var(--ame-deep);color:var(--ame-bg);font-weight:800}.ame-path-item h3{font-size:18px;margin-bottom:4px}.ame-path-item p{font-size:13px;margin:0}.ame-help{max-width:840px;margin-inline:auto}@media(max-width:900px){.ame-auth-card{grid-template-columns:1fr}.ame-dashboard-grid{grid-template-columns:1fr 1fr}.ame-feature-card{grid-column:1/3;grid-row:auto}.ame-review-card{grid-column:1/3}.ame-path-list{grid-template-columns:1fr 1fr}}@media(max-width:620px){.ame-choice-grid,.ame-dashboard-grid,.ame-path-list{grid-template-columns:1fr}.ame-feature-card,.ame-review-card{grid-column:auto}.ame-dashboard-head{display:block}.ame-streak{margin-top:18px}.ame-auth-card,.ame-onboarding{border-radius:20px;padding:24px}.ame-choice{min-height:76px}.ame-btn{width:100%}}@media(prefers-reduced-motion:reduce){.ame-btn{transition:none}.ame-card-yellow{transform:none}}
/* Adaptive Math v0.2 onboarding and assessment */
.ame-step{display:none}.ame-step.is-active{display:block}.ame-progress{height:10px;background:#EFE4CF;border-radius:999px;overflow:hidden;margin-bottom:32px}.ame-progress span{display:block;height:100%;width:0;background:#F5B93B;border-radius:999px;transition:width .25s ease}.ame-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:28px 0}.ame-choice{appearance:none;border:1px solid #EFE4CF;background:#fff;color:#1C160F;border-radius:20px;padding:18px 20px;text-align:left;font:600 16px/1.35 "General Sans",sans-serif;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}.ame-choice:hover,.ame-choice:focus-visible{transform:translateY(-2px);border-color:#F5B93B;outline:none}.ame-choice.is-selected{background:#FFF1D6;border-color:#F5B93B;box-shadow:0 10px 24px rgba(245,185,59,.18)}.ame-wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.ame-other-input{width:100%;min-height:110px;padding:16px;border:1px solid #EFE4CF;border-radius:16px;background:#fff;color:#1C160F;font:400 16px/1.55 "General Sans",sans-serif}.ame-form-message{margin-top:16px;color:#D6473A;font-weight:600}.ame-btn[disabled]{opacity:.48;cursor:not-allowed;box-shadow:none}.ame-assessment-stage{max-width:760px;margin:0 auto}.ame-question-title{font-size:clamp(28px,4vw,44px);line-height:1.08}.ame-question-note{color:#6B6156}.ame-result-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.5fr);gap:32px;align-items:center;background:#14213D;color:#FCF6EA;padding:48px;border-radius:32px}.ame-result-hero p{color:#AEB9D6}.ame-result-score{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#1C2C4E;border-radius:24px;padding:28px;text-align:center}.ame-result-score strong{font:900 clamp(54px,8vw,82px)/.9 "Cabinet Grotesk",sans-serif;color:#F5B93B}.ame-result-score span{margin-top:12px;color:#AEB9D6}.ame-result-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;margin-top:24px}.ame-path-item.is-ready{opacity:.88}.ame-path-item .ame-text-link{display:inline-block;margin-top:8px}
@media(max-width:767px){.ame-choice-grid{grid-template-columns:1fr}.ame-wizard-actions{align-items:stretch}.ame-wizard-actions .ame-btn{flex:1}.ame-result-hero,.ame-result-grid{grid-template-columns:1fr}.ame-result-hero{padding:28px 22px}.ame-result-score{align-items:flex-start;text-align:left}}
@media(prefers-reduced-motion:reduce){.ame-choice,.ame-progress span{transition:none}}


/* Adaptive practice */
.ame-practice-shell{display:grid;gap:24px}.ame-practice-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.ame-practice-head h1{margin:.25rem 0 .5rem;font-size:clamp(32px,5vw,54px);line-height:1.02}.ame-mastery-meter{min-width:140px;padding:18px 22px;border-radius:20px;background:#14213D;color:#FCF6EA;text-align:center}.ame-mastery-meter strong{display:block;font-family:"Cabinet Grotesk",sans-serif;font-size:34px;line-height:1}.ame-mastery-meter span{font-size:13px;color:#AEB9D6}.ame-question-card{background:#fff;border:1px solid #EFE4CF;border-radius:32px;padding:clamp(24px,5vw,48px);box-shadow:0 20px 40px rgba(28,22,15,.08)}.ame-question-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.ame-status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#FFF1D6;padding:8px 13px;font-size:13px;font-weight:600}.ame-question-count{color:#6B6156;font-size:14px}.ame-practice-question{max-width:760px;font-size:clamp(27px,4vw,42px);line-height:1.08;margin:0 0 28px}.ame-practice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ame-practice-input-wrap{max-width:520px}.ame-practice-input-wrap label{display:block;font-weight:700;margin-bottom:10px}.ame-practice-input{width:100%;min-height:62px;border:2px solid #EFE4CF;border-radius:16px;padding:12px 18px;font-size:24px;color:#1C160F;background:#FCF6EA}.ame-practice-input:focus{outline:3px solid rgba(245,185,59,.35);border-color:#F5B93B}.ame-hint-box,.ame-feedback-box{margin-top:20px;padding:18px 20px;border-radius:18px}.ame-hint-box{background:#FFF1D6;border:1px solid #F5B93B}.ame-feedback-box.is-success{background:rgba(43,175,160,.12);border:1px solid #2BAFA0}.ame-feedback-box.is-support{background:rgba(255,111,94,.1);border:1px solid #FF6F5E}.ame-hint-box strong,.ame-feedback-box strong{display:block;margin-bottom:5px}.ame-hint-box p,.ame-feedback-box p{margin:0}.ame-session-summary{background:#14213D;color:#FCF6EA;border-radius:32px;padding:clamp(28px,6vw,58px)}.ame-session-summary h2{color:#FCF6EA;font-size:clamp(32px,5vw,54px);line-height:1.04;margin:.4rem 0 1.2rem}.ame-session-summary p{color:#AEB9D6;max-width:680px}.ame-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,180px));gap:16px;margin:24px 0}.ame-summary-grid>div{background:#1C2C4E;border-radius:20px;padding:20px}.ame-summary-grid strong{display:block;color:#F5B93B;font-family:"Cabinet Grotesk",sans-serif;font-size:38px;line-height:1}.ame-summary-grid span{display:block;color:#AEB9D6;margin-top:6px;font-size:14px}.ame-inline-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ame-path-item.is-mastered{border-color:#2BAFA0;background:rgba(43,175,160,.08)}.ame-path-item.is-mastered .ame-path-number{background:#2BAFA0;color:#fff}
@media(max-width:767px){.ame-practice-head{align-items:flex-start;flex-direction:column}.ame-mastery-meter{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left}.ame-practice-options{grid-template-columns:1fr}.ame-question-card{border-radius:24px}.ame-summary-grid{grid-template-columns:1fr 1fr}.ame-practice-actions .ame-btn{width:100%}}
