/* Reference-led mobile composition. Brand fonts and semantic sound feedback retained. */
:root{--ref-paper:#FAF7F2;--ref-white:#fff;--ref-ink:#25252a;--ref-muted:#64646b;--ref-dark:#37324F;--ref-teal:#116B66;--ref-mint:#e8efe8;--ref-lilac:#efedf4;--ref-blue:#315da3;--ref-sky:#e6edf8;--ref-shadow:0 8px 32px rgb(37 37 42 / .04);--ref-ease:cubic-bezier(.16,1,.3,1);--film-radius:20px;--film-control:12px}
body{background:var(--ref-paper)!important;color:var(--ref-ink)}
body .topbar{min-height:64px;padding:12px 24px;box-shadow:none!important;background:var(--ref-paper)!important}
body .topbar .brand{font-size:24px!important;letter-spacing:-.04em;gap:8px}body .topbar .banana-mark{width:32px;height:32px}body #help{min-width:40px;width:40px;min-height:40px;height:40px;border-radius:50%;box-shadow:none;background:var(--ref-white)}
body .sidebar.menu-sidebar{background:transparent!important;color:var(--ref-ink)!important;box-shadow:none!important;border:0!important;padding:24px 16px!important}body .sidebar-listen{display:none!important}
body .sidebar.menu-sidebar .studio-nav a{background:transparent!important;color:var(--ref-muted)!important;border-radius:12px!important;min-height:48px;box-shadow:none!important;padding:12px 16px!important}body .sidebar.menu-sidebar .studio-nav a[aria-current=page]{background:var(--ref-dark)!important;color:var(--ref-white)!important}
body .sidebar .eyebrow{color:var(--ref-muted)!important;font-size:13px;letter-spacing:0;text-transform:none}
body #hubView :is(.open-heading,.menu-page-heading,.explore-heading) h1{font:800 clamp(27px,3vw,36px)/1.15 var(--ui)!important;letter-spacing:-.04em!important;color:var(--ref-ink);margin-bottom:8px}
body #hubView :is(.open-heading,.menu-page-heading,.explore-heading)>p{font-size:14px!important;line-height:1.5!important;color:var(--ref-muted)}
body #hubView .direction-home{width:100%;max-width:1040px;margin:auto}
body #hubView .direction-home>.open-heading{margin:0 0 24px!important}
body #hubView .direction-next{display:grid!important;grid-template-columns:minmax(0,1fr) 240px;gap:0 32px;background:var(--ref-dark)!important;color:var(--ref-white)!important;box-shadow:none!important;border:0!important;border-radius:24px!important;padding:32px!important;min-height:0!important;margin:0 0 24px!important;overflow:hidden}
body #hubView .direction-next :is(h2,p){grid-column:1;color:inherit!important}
body #hubView .direction-next .eyebrow{font:600 13px/1.3 var(--ui)!important;text-transform:none;letter-spacing:0;opacity:.7;margin:0 0 12px!important}
body #hubView .direction-next h2{font:800 clamp(24px,2.6vw,32px)/1.15 var(--ui)!important;max-width:24ch;letter-spacing:-.03em;margin:0 0 12px!important}
body #hubView .direction-next>p:not(.eyebrow){font-size:14px!important;line-height:1.5!important;opacity:.85;margin:0 0 20px!important;max-width:42ch}
body #hubView .direction-next .menu-primary{grid-column:1;justify-self:start;min-height:44px;padding:12px 24px!important;width:auto!important;background:var(--ref-white)!important;color:var(--ref-dark)!important;border:0!important;box-shadow:none!important;border-radius:12px!important;font-size:14px}
.ref-hero-art{grid-column:2;grid-row:1/span 4;align-self:center;color:var(--ref-mint)}.ref-hero-art svg{display:block;width:100%;height:auto}
.ref-section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px;gap:16px}.ref-section-heading h2{font:800 20px/1.2 var(--ui);letter-spacing:-.025em;color:var(--ref-ink);margin:0}.ref-section-heading>a{font-size:14px;color:var(--ref-teal);padding:8px 0;min-height:40px;display:flex;align-items:center;text-decoration:none}
.ref-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ref-choice{display:grid;grid-template-columns:120px minmax(0,1fr);grid-template-rows:1fr 1fr;align-items:center;column-gap:24px;padding:24px;border-radius:20px;text-decoration:none;color:var(--ref-teal);background:var(--ref-mint)}.ref-choice svg{grid-column:1;grid-row:1/3;width:120px;height:84px}.ref-choice strong{align-self:end;font:800 20px/1.25 var(--ui);color:var(--ref-ink);letter-spacing:-.02em}.ref-choice span{align-self:start;font-size:14px;line-height:1.4;color:var(--ref-muted);margin-top:8px}.ref-listen{background:var(--ref-lilac);color:var(--ref-dark)}
.ref-course-link{display:flex;align-items:center;gap:16px;margin-top:20px;padding:20px 0;color:var(--ref-ink);text-decoration:none;box-shadow:0 -1px 0 rgb(37 37 42 / .08)}.ref-course-link>.icon{width:28px;height:28px;color:var(--ref-muted)}.ref-course-link>span:nth-child(2){flex:1;display:grid;gap:4px}.ref-course-link strong{font-size:16px}.ref-course-link small{font-size:13px;color:var(--ref-muted)}.ref-small-action{padding:10px 16px;border-radius:24px;background:var(--ref-white);font-size:13px;font-weight:750}
body #hubView .direction-more{margin:8px 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:14px}body #hubView .direction-more summary{min-height:44px;display:flex;align-items:center}
body #hubView :is(.lesson-tile,.explore-skill){background:var(--ref-white)!important;border-radius:16px!important;box-shadow:var(--ref-shadow)!important;border:0!important;padding:20px!important;min-height:0!important;gap:16px!important}
body #hubView .lesson-tile .course-glyph,body #hubView .explore-skill .course-glyph{transform:none!important;box-shadow:none!important;background:var(--ref-lilac)!important;color:var(--ref-dark)!important;border-radius:14px!important;min-width:56px!important;width:56px!important;height:64px!important;min-height:64px!important;font-size:23px!important}
body #hubView .lesson-tile h3{font-size:17px!important;line-height:1.3!important;letter-spacing:-.02em}body #hubView .lesson-example-pair{font-size:13px!important;line-height:1.45!important;color:var(--ref-muted)}body #hubView .lesson-state{font-size:13px;margin-top:8px}
body #hubView .course-card{display:grid!important;grid-template-columns:80px minmax(0,1fr) auto!important;align-items:center;gap:24px!important;background:var(--ref-white)!important;box-shadow:var(--ref-shadow)!important;border:0!important;border-radius:20px!important;padding:24px!important;margin-bottom:16px!important;min-height:0!important}
body #hubView .course-card>.course-glyph{border-radius:18px!important;box-shadow:none!important;transform:none!important;width:80px!important;height:96px!important;background:var(--ref-sky)!important;color:var(--ref-blue)!important;font-size:32px!important;display:grid;place-items:center}
body #hubView .course-card[data-course=differences]>.course-glyph{background:var(--ref-lilac)!important;color:var(--ref-dark)!important}body #hubView .course-card[data-course=precision]>.course-glyph{background:var(--ref-dark)!important;color:var(--ref-white)!important}body #hubView .course-card[data-course=everyday]>.course-glyph{background:var(--ref-mint)!important;color:var(--ref-teal)!important}
body #hubView .course-card .eyebrow{font-size:13px!important;letter-spacing:0;text-transform:none;color:var(--ref-muted);margin:0 0 4px}body #hubView .course-card h2{font:800 20px/1.2 var(--ui)!important;letter-spacing:-.025em;margin:0 0 8px!important;color:var(--ref-ink)}body #hubView .course-card p{font-size:14px!important;line-height:1.45!important;color:var(--ref-muted);margin:0 0 12px!important}body #hubView .course-card .course-meta{font-size:13px!important;color:var(--ref-teal)}body #hubView .course-card progress{height:4px!important;max-width:200px;margin-top:8px!important}.ref-course-action{font:750 13px/1.2 var(--ui);padding:12px 16px;border-radius:24px;background:var(--ref-paper);color:var(--ref-ink);white-space:nowrap}
body #practiceView .practice-card{background:var(--ref-white)!important;box-shadow:none!important;border:0!important;border-radius:24px!important}body #targetWord{color:var(--ref-dark);letter-spacing:-.05em}body .voice-compare{border-radius:16px!important;box-shadow:none!important}
body #hubView :is(.open-progress-card,.learning-card){border:0!important;box-shadow:var(--ref-shadow)!important;border-radius:20px!important;background:var(--ref-white)!important}
@keyframes ref-feedback-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
body[data-mode=result] #arenaFocus{animation:ref-feedback-in .24s var(--ref-ease) both}body #summaryTitle{animation:ref-feedback-in .3s var(--ref-ease) both}
:is(.ref-choice,.ref-small-action,.ref-course-action,.menu-primary){transition:transform .15s var(--ref-ease)}:is(.ref-choice,.ref-small-action,.menu-primary):active{transform:scale(.98)}:is(.ref-choice,.ref-course-link,.course-card):focus-visible{outline:3px solid var(--ref-teal);outline-offset:4px}
@media(min-width:1000px){body .app-shell{grid-template-columns:200px minmax(0,1fr)!important}}
@media(max-width:759px){body .topbar{min-height:56px;padding:8px 16px}body .topbar .brand{font-size:20px!important}body .topbar .banana-mark{width:28px;height:28px}body #hubView .direction-home>.open-heading{margin-bottom:16px!important}body #hubView .direction-home>.open-heading h1{font-size:27px!important}body #hubView .direction-home>.open-heading p{font-size:13px!important}
body #hubView .direction-next{grid-template-columns:minmax(0,1fr) 88px;gap:0 12px;padding:20px!important;margin-bottom:20px!important;border-radius:20px!important}body #hubView .direction-next h2{font-size:23px!important;line-height:1.13!important;margin-bottom:12px!important}body #hubView .direction-next>p:not(.eyebrow){display:none}body #hubView .direction-next .eyebrow{font-size:13px!important;margin-bottom:8px!important}.ref-hero-art{grid-row:1/span 3}.ref-hero-art svg{width:110px;margin-left:-10px}body #hubView .direction-next .menu-primary{padding:10px 20px!important;min-height:44px}
.ref-section-heading{margin-bottom:8px}.ref-section-heading h2{font-size:18px}.ref-choice-grid{gap:12px}.ref-choice{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:16px;border-radius:18px}.ref-choice svg{width:112px;height:72px;align-self:center;margin:0 0 8px}.ref-choice strong{font-size:16px;align-self:auto;white-space:nowrap}.ref-choice span{font-size:13px;margin-top:4px;line-height:1.35;align-self:auto}.ref-course-link{padding:16px 0;margin-top:16px;gap:12px}.ref-course-link strong{font-size:15px}.ref-course-link small{font-size:13px}.ref-small-action{padding:10px 12px}.ref-course-link>.icon{width:22px;height:22px;flex-shrink:0}
body .mobile-main-nav{left:16px!important;right:16px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;min-height:64px!important;padding:6px!important;gap:4px!important;border-radius:24px!important;background:var(--ref-dark)!important;box-shadow:0 6px 20px rgb(37 37 42 / .15)!important;border:0!important}body .mobile-main-nav a{min-height:48px!important;color:var(--ref-white)!important;border-radius:18px!important;font-size:13px!important;gap:4px!important;padding:6px!important;background:transparent!important}body .mobile-main-nav a[aria-current=page]{background:var(--ref-white)!important;color:var(--ref-dark)!important}body .mobile-main-nav .icon{width:20px!important;height:20px!important}body .mobile-main-nav a span{font-size:13px!important}
body #hubView .course-card{grid-template-columns:56px minmax(0,1fr)!important;gap:12px 16px!important;padding:20px!important}body #hubView .course-card>.course-glyph{width:56px!important;height:72px!important;font-size:25px!important;border-radius:14px!important;align-self:start}body #hubView .course-card h2{font-size:18px!important}body #hubView .course-card p{font-size:13px!important;line-height:1.4!important}.ref-course-action{grid-column:2;justify-self:start;background:var(--ref-dark);color:var(--ref-white);min-height:40px;padding:12px 16px}body #hubView .course-card .eyebrow{display:none}
}
@media(prefers-reduced-motion:reduce){body[data-mode=result] #arenaFocus,body #summaryTitle{animation:none!important}.ref-choice,.ref-small-action,.ref-course-action,.menu-primary{transition:none!important}}

.component-segments{position:relative;isolation:isolate}.component-segments::before{content:'';position:absolute;left:var(--pill-x,0px);top:var(--pill-y,0px);width:var(--pill-w,0px);height:var(--pill-h,0px);border-radius:10px;background:white;box-shadow:0 2px 6px rgb(18 62 49 / .12);transition:left .24s var(--component-ease),width .24s var(--component-ease);z-index:-1}
body .component-segments :is(a,button)[aria-pressed=true],body .component-segments :is(a,button)[aria-current=page],body .component-segments .active{background:transparent!important;color:var(--component-ink)!important;box-shadow:none!important}
.component-sheet-handle{display:grid;place-items:center;width:100%;min-height:32px;border:0;background:transparent!important;box-shadow:none!important;touch-action:none;cursor:grab;padding:8px}.component-sheet-handle span{width:40px;height:5px;background:#b7c4ba;border-radius:8px}
body :is(#arenaGuide,#arenaLessonGuide)::before{display:none!important}

@media(prefers-reduced-motion:reduce){.component-segments::before{transition:none!important}}
@media(max-width:759px){body .mobile-main-nav{transform:none!important;max-width:none!important;margin:0!important}}
