/* Easy English: luminous world, Russian entry, a personal route for each learner. */
:root {
  --paper: #fffaf2;
  --surface: #fff;
  --ink: #16364b;
  --muted: #627786;
  --primary: #146c78;
  --primary-hover: #0c5360;
  --gold: #f3cb83;
  --gold-ink: #5e4928;
  --line: #e3e9e8;
  --soft: #edf5f3;
  --sky: #0b3157;
  --shadow: 0 18px 48px #153c4810;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body { background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
button:disabled { cursor: default; }
a { color: inherit; }
.app-shell { display: block; min-height: 100vh; }
.side-rail { width: min(1320px, 100%); margin: auto; padding: 22px 34px; min-height: 100px; height: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 26px; background: transparent; color: var(--ink); position: relative; top: auto; }
.side-brand { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink); text-decoration: none; letter-spacing: -.04em; }
.side-brand img { width: 48px; height: 48px; border: 0; border-radius: 15px; }
.side-brand > span { font-size: 25px; font-weight: 500; line-height: 1.1; }
.side-brand b { font-size: inherit; font-weight: 800; }
.side-brand small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .015em; margin-top: 6px; }
.rail-links { display: flex; gap: 6px; }
.rail-link { width: auto; padding: 12px 16px; color: var(--muted); font-size: 13px; font-weight: 700; border-radius: 30px; }
.rail-link:hover, .rail-link.active { background: var(--soft); color: var(--primary); }
.rail-bottom { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.sun-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #f3cb8328; }
.main-area { max-width: 1320px; margin: auto; padding: 0 34px 80px; }
.topbar { min-height: 34px; height: auto; display: flex; align-items: center; justify-content: space-between; margin: -8px 0 18px; padding: 0; }
.mobile-brand { display: block; color: var(--muted); font-size: 12px; }
.top-right { gap: 12px; }
.connection-state { display: none; }
.connection-state.sync-error { display: block; max-width: 250px; color: #963d2d; }
.account-button { min-height: 34px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 7px 17px; border-radius: 30px; font-size: 12px; }
.profile-chip { border-color: var(--line); background: var(--surface); color: var(--ink); }
.profile-chip span { background: var(--gold); }
.view { max-width: none; }
.hero { height: 510px; border-radius: 28px; background: var(--sky); isolation: isolate; box-shadow: 0 18px 50px #12365518; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 41%; animation: world-breathe 22s ease-in-out infinite alternate; }
.hero-shade { background: linear-gradient(90deg, #06233ce8 0%, #0a2c4fb3 27%, #09264f38 50%, transparent 67%); }
.hero-copy { max-width: 570px; padding: 49px 50px; }
.eyebrow.light { color: #f3d6a3; letter-spacing: .15em; font-size: 10px; }
.hero h1 { margin: 18px 0 20px; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: clamp(38px, 4.9vw, 62px); line-height: 1.09; letter-spacing: -.055em; font-weight: 700; color: var(--surface); }
.hero h1 em { font-style: normal; color: #ffe0a1; }
.hero p { max-width: 330px; font-size: 15px; line-height: 1.7; color: #edf6ff; margin-bottom: 21px; }
.hero-time { display: inline-flex; align-items: center; gap: 9px; border-top: 1px solid #ffffff36; padding-top: 16px; color: #ffe3b4; font-size: 12px; font-weight: 600; }
.hero-time > span { font-size: 20px; }
.hero-stamp { font-size: 8px; right: 25px; bottom: 20px; letter-spacing: .13em; text-shadow: 0 1px 6px #07243c; }
.world-orbit { position: absolute; pointer-events: none; width: 32%; height: 17%; left: 42%; top: 18%; transform: rotate(-13deg); z-index: 1; }
.world-orbit i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #fff5cc; box-shadow: 0 0 8px 4px #ffd99a88; animation: travel-spark 14s ease-in-out infinite alternate; }
.start-panel { position: relative; z-index: 2; margin: -5px 28px 0; padding: 26px 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 0 0 24px 24px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.learner-choice { border: 0; padding: 0; margin: 0; flex: 1; min-width: 0; }
.learner-choice legend { font-size: 16px; font-weight: 750; margin-bottom: 12px; }
.learner-options { display: flex; gap: 12px; }
.learner-option { display: flex; align-items: center; gap: 10px; border-radius: 13px; padding: 13px 16px; min-width: 148px; border: 1px solid #d9e3e5; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 650; }
.learner-option svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.learner-option.selected { border-color: var(--primary); color: var(--primary); background: #eff8f6; box-shadow: inset 0 0 0 1px var(--primary); }
.learner-option:hover { background: var(--soft); }
.choice-check { margin-left: auto; visibility: hidden; font-size: 12px; }
.selected .choice-check { visibility: visible; }
.start-actions { min-width: 290px; max-width: 340px; flex: 1; }
.primary { background: var(--primary); border: 1px solid transparent; border-radius: 13px; color: var(--surface); font-size: 14px; min-height: 50px; font-weight: 750; }
.primary:hover { background: var(--primary-hover); }
#hero-start { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 22px; box-shadow: 0 6px 20px #146c781e; }
.hero-start-hint { display: block; max-width: none; color: var(--muted); font-size: 10px; text-align: center; margin: 9px 0 0; line-height: 1.5; }
.signin-prompt { margin: 12px 0 0; font-size: 11px; text-align: center; color: var(--muted); }
.signin-prompt .text-link { font-size: inherit; padding: 0; font-weight: 800; margin-left: 4px; }
.text-link { color: var(--primary); }
.welcome-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; padding: 32px 28px 14px; }
.welcome-benefits > div { display: flex; gap: 14px; align-items: flex-start; }
.benefit-number { border-top: 2px solid var(--gold); padding-top: 9px; font-size: 12px; color: var(--gold-ink); font-weight: 700; }
.welcome-benefits h2 { margin: 7px 0 8px; font-size: 13px; font-weight: 750; letter-spacing: -.02em; }
.welcome-benefits p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.is-guest .rail-links, .is-guest .profile-chip, .is-guest .content-grid, .is-guest .mobile-nav { display: none; }
.app-shell:not(.is-guest) .welcome-benefits { display: none; }
.app-shell:not(.is-guest) .start-panel { justify-content: flex-end; }
.content-grid { margin-top: 40px; grid-template-columns: minmax(0,1fr) 280px; }
.eyebrow, .card-overline { color: var(--muted); }
.daily-card, .neo-card, .mini-progress, .form-card, .question-card, .profile-card, .city, .route-summary { background: var(--surface); border-color: var(--line); border-radius: 20px; box-shadow: 0 8px 30px #173e4905; }
.daily-icon { background: var(--soft); color: var(--primary); }
.day-chip { color: var(--gold-ink); background: #f9ebd4; }
.city.current { background: #eff8f6; border-color: #c3ddda; }
.city-skyline { color: var(--primary); }
.city small, .daily-card p, .neo-card p, .mini-progress p { color: var(--muted); }
.neo-card { display: flex; gap: 14px; }
.progress-spark { font-size: 30px; color: #c99b47; padding-top: 5px; }
.neo-card h3 { font-size: 17px; }
.bar { background: #e9efee; }
.bar > span { background: var(--primary); }
.outline { border-color: #b9cecf; color: var(--primary); background: transparent; border-radius: 12px; }
.outline:hover { background: var(--soft); }
.inner { padding-top: 25px; }
.page-head h1, .lesson-header h1 { color: var(--ink); }
.page-head h1 em, .lesson-header h1 em { color: var(--primary); }
.form-card { max-width: 640px; }
.form-card input, .form-card select, .account-dialog input { border-color: #c8d8da; background: var(--surface); color: var(--ink); border-radius: 11px; }
.profile-card.selected { border-color: var(--primary); background: #f0f8f6; }
.profile-avatar { background: var(--gold); color: var(--ink); }
.lesson-neo { background: #ecf5f3; border-color: #dceae8; }
.lesson-spark { display: block; margin: 10px auto 20px; color: #bb8f38; font-size: 50px; }
.lesson-neo p { color: var(--ink); }
.answer { background: var(--surface); border-color: #cddcde; color: var(--ink); }
.answer:hover { border-color: var(--primary); background: var(--soft); }
.answer.correct { border-color: #438166; background: #eaf5ee; }
.answer.wrong { border-color: #c57b65; background: #fff1e9; }
.time-pill { color: var(--primary); background: #e5f1ee; }
.account-dialog { background: var(--paper); color: var(--ink); border-color: var(--line); border-radius: 23px; }
.account-dialog::backdrop { background: #092d4999; backdrop-filter: blur(5px); }
.account-dialog h2 { margin-bottom: 14px; }
.account-dialog .back { color: var(--primary); }
.account-dialog .wide { width: 100%; margin-top: 18px; }
.realtime-panel { background: #edf6f4; border-color: #cde1dc; }
.access-card { background: #123953; border-radius: 25px; }
.light-button { background: var(--gold); color: #193346; }
.light-button:hover { background: #ffdfa0; }
.fineprint, .demo-note { color: var(--muted); }
@keyframes world-breathe { from { transform: scale(1); } to { transform: scale(1.035) translateY(-3px); } }
@keyframes travel-spark { 0% { transform: translate(0,15px); opacity: .3; } 50% { opacity: 1; } 100% { transform: translate(210px,-10px); opacity: .3; } }
@media (max-width: 1050px) {
  .side-rail { padding-inline: 24px; }
  .main-area { padding-inline: 24px; }
  .rail-bottom { display: none; }
  .hero-copy { padding: 40px 32px; }
  .hero h1 { font-size: 51px; }
  .hero p { max-width: 300px; }
  .start-panel { margin-inline: 16px; padding: 25px; }
  .learner-option { min-width: 120px; }
  .start-actions { min-width: 260px; }
}
@media (max-width: 720px) {
  .side-rail { padding: 18px 20px 12px; min-height: 80px; }
  .side-brand > span { font-size: 23px; }
  .side-brand img { width: 43px; height: 43px; }
  .rail-links { display: none; }
  .main-area { padding: 0 16px 92px; }
  .topbar { min-height: 34px; flex-wrap: nowrap; margin: 0 2px 15px; }
  .mobile-brand { font-size: 10px; }
  .top-right { gap: 6px; }
  .profile-chip b { max-width: 70px; }
  .hero { height: auto; border-radius: 22px; display: flex; flex-direction: column; background: var(--sky); }
  .hero-art { position: relative; width: 100%; height: 235px; object-fit: cover; object-position: 76% 40%; animation: none; }
  .hero-shade { inset: 175px 0 auto; height: 60px; background: linear-gradient(0deg,var(--sky),transparent); pointer-events: none; }
  .hero-copy { max-width: none; padding: 15px 25px 26px; background: var(--sky); }
  .hero h1 { font-size: clamp(33px,8.9vw,44px); margin: 15px 0; line-height: 1.12; }
  .hero h1 br:nth-child(2) { display: none; }
  .hero p { max-width: 340px; font-size: 13px; line-height: 1.65; margin-bottom: 15px; }
  .hero-time { font-size: 11px; padding-top: 13px; }
  .hero-stamp { display: none; }
  .hero .eyebrow.light { font-size: 8px; letter-spacing: .12em; }
  .world-orbit { top: 15px; left: 25px; width: 60%; }
  .start-panel { margin: 0; padding: 22px 20px; border-radius: 0 0 20px 20px; flex-direction: column; gap: 20px; }
  .learner-choice, .start-actions { width: 100%; min-width: 0; max-width: none; }
  .learner-choice legend { font-size: 15px; margin-bottom: 12px; }
  .learner-options { gap: 9px; }
  .learner-option { flex: 1; min-width: 0; padding: 12px; font-size: 12px; gap: 7px; }
  .learner-option svg { width: 19px; height: 19px; }
  #hero-start { font-size: 13px; padding: 14px 18px; }
  .welcome-benefits { grid-template-columns: 1fr; gap: 18px; padding: 28px 9px; }
  .welcome-benefits h2 { font-size: 14px; }
  .welcome-benefits p { font-size: 12px; }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .status-column { grid-template-columns: 1fr; }
  .mobile-nav { background: var(--surface); padding-bottom: max(14px,env(safe-area-inset-bottom)); }
  .mobile-nav button { color: var(--muted); }
  .mobile-nav button.active { color: var(--primary); }
  .mobile-nav button b { font-size: 10px; }
  .lesson-spark { margin: 0; font-size: 38px; }
  .page-head h1, .lesson-header h1 { font-size: 34px; }
  .account-dialog { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .world-orbit i { animation: none; }
  button { transition: none; }
}

.hero-time { border: 1px solid #ffdda555; border-radius: 15px; padding: 10px 17px; gap: 12px; background: #092e4b66; backdrop-filter: blur(8px); }
.hero-time > strong { font-size: 37px; font-weight: 750; line-height: 1; color: #ffe0a1; }
.hero-time > span { font-size: 14px; line-height: 1.35; font-weight: 650; }
.hero-time small { display: block; font-size: 12px; color: #f5dfb8; margin-top: 2px; }
@media (min-width: 721px) { .hero-copy { padding-top: 39px; } .hero h1 { font-size: clamp(38px, 4.5vw, 56px); } }
@media (max-width: 720px) { .hero-time > strong { font-size: 33px; } .hero-time > span { font-size: 14px; } }

/* Keep the choice and free-start action visible on a laptop screen. */
.app-shell { position: relative; max-width: 1320px; margin-inline: auto; }
.side-rail { min-height: 92px; padding-right: 250px; }
.rail-bottom { display: none; }
.topbar { position: absolute; z-index: 4; top: 28px; right: 34px; min-height: 34px; margin: 0; }
.mobile-brand { display: none; }
@media (min-width: 721px) and (max-height: 800px) {
  .hero { height: 395px; }
  .hero-copy { max-width: 650px; padding: 30px 40px; }
  .hero h1 { font-size: 44px; max-width: 540px; margin: 15px 0; }
  .hero h1 br:nth-child(2) { display: none; }
  .hero p { max-width: 370px; font-size: 13px; margin-bottom: 18px; }
  .hero-time { padding: 9px 15px; }
  .hero-time > strong { font-size: 33px; }
  .hero-art { object-position: 50% 40%; }
  .start-panel { padding-block: 20px; }
}
@media (max-width: 1050px) and (min-width: 721px) {
  .side-rail { padding-right: 175px; }
  .side-brand > span { font-size: 21px; }
  .rail-link { font-size: 11px; padding: 10px; }
}
@media (max-width: 720px) {
  .side-rail { min-height: 84px; padding: 17px 100px 17px 16px; }
  .side-brand { gap: 9px; }
  .side-brand > span { font-size: 21px; }
  .side-brand small { font-size: 8px; }
  .side-brand img { width: 40px; height: 40px; }
  .topbar { top: 23px; right: 16px; margin: 0; }
  .topbar .profile-chip { display: none; }
  .main-area { padding-inline: 12px; }
  .hero-art { height: 210px; }
  .hero-copy { padding: 17px 22px 24px; }
  .hero h1 { margin-block: 12px; }
  .hero p { font-size: 12px; margin-bottom: 14px; }
  .start-panel { padding: 20px; gap: 18px; }
}

.side-rail .side-brand > span { display: block; }

/* Typography: an expressive wordmark, soft readable Russian headings. */
@font-face { font-family: 'Unbounded'; src: url('assets/fonts/unbounded-Variable.ttf') format('truetype'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('assets/fonts/onest-Variable.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
.side-brand .brand-wordmark { display: block; font-family: 'Unbounded', 'Manrope', sans-serif; font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -.045em; word-spacing: .12em; white-space: nowrap; }
.side-brand .brand-wordmark b { font-weight: 450; color: var(--primary); }
.side-brand small { font-family: 'Onest', 'Manrope', sans-serif; font-size: 11px; letter-spacing: .04em; margin-top: 3px; }
h1, h2, h3, .learner-choice legend, .hero-time { font-family: 'Onest', 'Manrope', sans-serif; }
.hero h1 { font-family: 'Onest', 'Manrope', sans-serif; font-weight: 600; letter-spacing: -.035em; }
.hero-time strong { font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 650; }
@media (max-width: 1000px) { .side-brand .brand-wordmark { font-size: 23px; } }
@media (max-width: 720px) {
  .side-brand .brand-wordmark { font-size: clamp(16px, 4.6vw, 21px); letter-spacing: -.065em; }
  .side-brand small { font-size: 8px; letter-spacing: .025em; }
  .side-brand { gap: 9px; }
  .hero h1 { letter-spacing: -.035em; }
}

.diagnostic-instruction { color: var(--muted); line-height: 1.7; margin: 10px 0 20px; font-size: 15px; }
.learning-start-result { padding: 18px 22px; margin: 22px 28px 0; background: var(--soft); border-radius: 16px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.7; }
@media(max-width:720px) { .learning-start-result { margin: 16px 0 0; padding: 16px; } }

.companion-card,.result-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 28px; max-width: 700px; margin: 24px auto; }
.companion-card label { display:block; margin: 18px 0; font-size: 14px; color: var(--ink); font-weight: 650; }
.companion-card select,.companion-card textarea { display: block; width: 100%; margin-top: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background:var(--paper); color:var(--ink); font:inherit; }
.companion-card .check-row { display: flex; font-weight: 400; line-height: 1.6; }
.companion-picture { width: min(100%,320px); aspect-ratio: 1; object-fit:contain; display:block; margin:0 auto 22px; border-radius:24px; }
.companion-picture.hidden { display:none; }
.lesson-companion { display:flex; align-items:center; gap:14px; padding:14px; border-radius:16px; background:var(--soft); margin:16px 0; font-size:13px; }
.lesson-companion.hidden { display:none; }
.lesson-companion img { width:72px; height:72px; border-radius:18px; object-fit:contain; }
#open-companion { margin:20px 28px 0; }
.result-card p { line-height:1.7; }
.result-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.result-actions button { padding:14px 18px; }
@media(max-width:720px) { .companion-card,.result-card { padding:20px; border-radius:20px; } .result-actions { flex-direction:column; } #open-companion { margin-left:0; } }

/* Signed-in controls use their own row so names cannot cover navigation. */
.app-shell:not(.is-guest) .side-rail { padding-right: 34px; }
.app-shell:not(.is-guest) .topbar { position: static; justify-content: flex-end; margin: 0 0 12px; }
@media(max-width:720px) {
  .app-shell:not(.is-guest) .side-rail { padding-right: 122px; }
  .app-shell:not(.is-guest) .topbar { position: absolute; top:23px; right:16px; margin:0; }
}
.voice-time { color:var(--primary); font-weight:750; font-variant-numeric:tabular-nums; }

.home-companion { display:flex; align-items:center; gap:20px; padding:20px; margin:24px 28px 0; background:var(--soft); border:1px solid var(--line); border-radius:22px; }
.home-companion.hidden { display:none; }
.home-companion img { width:100px; height:100px; object-fit:contain; border-radius:20px; }
.home-companion img.hidden { display:none; }
.home-companion p { font-size:13px; line-height:1.6; margin:6px 0 12px; color:var(--muted); }
.home-companion #open-companion { margin:0; font-size:12px; padding:9px 14px; }
@media(max-width:720px) { .home-companion { margin:18px 0 0; gap:14px; padding:16px; } .home-companion img { width:84px;height:84px; } .home-companion strong { font-size:14px; } }

.tutor-voice-control{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:4px 0 14px;color:#365b60;font-size:12px}.tutor-voice-control select{font:inherit;color:#174d50;background:#fff;border:1px solid #cadbd7;border-radius:14px;padding:9px 30px 9px 12px;min-width:125px;max-width:180px}.tutor-voice-control label{font-weight:600}@media(max-width:720px){.tutor-voice-control{justify-content:space-between;padding:4px 0 12px}}

.feedback-prompt{margin:24px 0;padding:22px;background:#edf5f1;border:1px solid #c8ddd5;border-radius:22px}.feedback-prompt h3{font-size:24px;margin:10px 0;color:#174d50}.feedback-prompt p{font-size:14px;line-height:1.65}.feedback-prompt .text-link{margin:12px}.feedback-dialog{max-height:90dvh;overflow:auto}.feedback-dialog h2{font-family:inherit;font-weight:700;font-size:25px;line-height:1.25}.feedback-dialog select,.feedback-dialog textarea{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #c9d8e9;border-radius:12px;background:white;color:#183455;font:inherit}.feedback-dialog textarea{resize:vertical;min-height:120px}.feedback-dialog small{display:block;font-size:11px;line-height:1.5;color:#58718e;margin:10px 0}.feedback-dialog #feedback-status{color:#246b5e}.feedback-open{font-size:12px;white-space:nowrap}@media(max-width:720px){.feedback-prompt{padding:18px}.feedback-dialog{padding:22px}.topbar{gap:8px;flex-wrap:wrap}.feedback-open{margin-left:auto}}

.recording-preview{padding:18px;margin-top:16px;border:1px solid #c8ddd5;border-radius:18px;background:#f3f8f5}.recording-preview>strong{display:block;font-size:15px;color:#174d50}.recording-preview audio{display:block;width:100%;margin:12px 0}.recording-preview p,.recording-preview .check-row{font-size:12px;line-height:1.6;color:#46646b}.recording-preview .check-row{display:flex;gap:9px;align-items:flex-start;margin:14px 0}.recording-preview .check-row input{flex:0 0 auto;margin-top:4px}.recording-preview .primary{width:100%;white-space:normal}

.daily-indicators{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.daily-indicators span{font-size:11px;line-height:1.4;padding:6px 10px;border-radius:15px;background:#fff0d2;color:#74541f}.daily-indicators span:empty{display:none}.daily-indicators .completed{background:#d8f0df;color:#24653b}.result-skills{padding:16px;border-radius:16px;background:#e6f3ee;color:#28584e;line-height:1.7}.admin-view{max-width:1150px}.admin-view h1{font-size:clamp(28px,5vw,42px)}.admin-view h2{font-size:22px;margin-top:28px}.admin-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:18px 0}.admin-toolbar label,.admin-partner-form label{font-size:12px;display:grid;gap:7px}.admin-view select,.admin-view input,.admin-partner-link input,#crm-note-form select,#crm-note-form textarea{font:inherit;padding:10px;border:1px solid #c8d9d4;background:white;border-radius:12px;max-width:100%;color:#174d50}.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-summary>div{padding:20px;background:white;border:1px solid #d4e2dc;border-radius:18px}.admin-summary strong{font-size:28px;display:block}.admin-summary span{font-size:12px}.admin-table-wrap{overflow:auto;max-width:100%}.admin-view table{border-collapse:collapse;width:100%;min-width:650px;font-size:12px;background:white}.admin-view th,.admin-view td{padding:12px;text-align:left;border-bottom:1px solid #dce6df;vertical-align:top}.admin-view th{background:#eaf2ee}.admin-partner-form{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.admin-partner-link,.admin-feedback-card{display:grid;gap:10px;margin-top:12px;padding:16px;border:1px solid #d4e2dc;background:white;border-radius:16px}.admin-feedback-card p{white-space:pre-wrap;font-size:13px;overflow-wrap:anywhere}.admin-feedback-card small,.admin-partner-link small{color:#627775;font-size:11px}#crm-note-form textarea{width:100%;min-height:120px}#crm-note-form select{width:100%}@media(max-width:720px){.admin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-summary>div{padding:15px}.admin-summary strong{font-size:24px}.admin-toolbar>a{font-size:12px}.admin-partner-form label{width:100%}}

.lesson-history{margin:28px 0}.lesson-history>h2{font-size:25px}.history-card{margin:12px 0;padding:20px;border-radius:20px;border:1px solid #d0e1d8;background:white}.history-card h3{font-size:20px;margin:8px 0}.history-card p,.history-card small,.history-card details{font-size:13px;line-height:1.6}.history-card details{margin:12px 0}.history-card li{margin:6px 0}.history-card summary{cursor:pointer;color:#146c68}

.adventure-card{display:grid;grid-template-columns:1fr 1fr;background:#f5f7f1;border:1px solid #d9e4df;border-radius:24px;overflow:hidden;margin:22px 0}
.adventure-scene{position:relative;min-height:270px;background:#18325d;overflow:hidden}
#adventure-scene-image{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
#adventure-hero-image{position:absolute;bottom:18px;left:28px;width:100px;height:100px;object-fit:contain;border:3px solid #fff;border-radius:24px;background:white;box-shadow:0 8px 25px #12233c44}
#adventure-scene-label{position:absolute;top:16px;left:16px;right:16px;color:white;text-shadow:0 1px 6px #11233b;font-size:12px}
.adventure-copy{padding:25px}.adventure-copy h2{font-size:24px;margin:10px 0}.adventure-copy p{font-size:13px;line-height:1.6}.adventure-copy small{display:block;font-size:11px;line-height:1.5;color:#52666e}
.adventure-copy progress{width:100%;height:10px;accent-color:#187987}.adventure-choices{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.adventure-choices button{font-size:12px;padding:10px 13px}.adventure-choices button[aria-pressed=true]{background:#186b78;color:white;border-color:#186b78}
@media(max-width:720px){.adventure-card{grid-template-columns:1fr}.adventure-scene{min-height:210px}.adventure-copy{padding:20px}}

.history-card li small{display:block;font-size:12px;line-height:1.6;color:#52666e;margin:4px 0 14px}

.profile-avatar{overflow:hidden;flex-shrink:0}.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}

/* In-app quick start: actual navigation controls, followed by readable steps. */
.guide-entry{display:block;margin:14px auto 0;font-size:12px;text-align:center}
.guide-profile-entry{margin:0 0 20px;font-size:13px}
.guide-view{max-width:960px;margin-inline:auto}.guide-view .page-head h1{font-size:clamp(32px,5vw,48px)}
.guide-local-note{padding:15px 18px;background:#fff1d3;border:1px solid #ead1a4;border-radius:16px;font-size:13px;line-height:1.65}
.guide-map{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:24px 0 30px}
.guide-map button{display:flex;flex-direction:column;gap:8px;align-items:center;padding:18px 8px;background:#edf5f3;color:var(--ink);border:1px solid var(--line);border-radius:18px;text-align:center;min-width:0}
.guide-map button:hover{background:#dceee9}.guide-map span{font-size:23px;color:var(--primary)}.guide-map strong{font-size:13px}.guide-map small{font-size:11px;line-height:1.4}
.guide-steps{list-style:none;padding:0;margin:0;display:grid;gap:15px}
.guide-steps>li{display:flex;gap:19px;padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:21px}
.guide-number{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border-radius:14px;background:var(--primary);color:white;font-size:13px;font-weight:700}
.guide-steps h2{font-size:21px;line-height:1.3;margin:4px 0 12px;letter-spacing:-.025em}.guide-steps p{font-size:14px;line-height:1.8;margin:9px 0}.guide-steps .text-link{font-size:13px;margin-top:8px;text-align:left}
.guide-voice{padding:16px 18px;background:var(--soft);border-radius:15px;margin-top:15px}.guide-voice>strong{font-size:13px}.guide-voice small{display:block;font-size:12px;line-height:1.6;color:var(--muted)}
.guide-finish{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#e9f3ef;padding:24px;border-radius:21px;margin:24px 0}.guide-finish h2{font-size:22px;margin:0 0 8px}.guide-finish p{font-size:13px;line-height:1.6;margin:0}.guide-finish .primary{white-space:nowrap}
@media(max-width:540px){.guide-map{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-map button{padding:14px 8px}.guide-steps>li{gap:12px;padding:18px 15px}.guide-number{width:31px;height:31px;border-radius:11px;font-size:11px}.guide-steps h2{font-size:18px}.guide-steps p{font-size:13px;line-height:1.75}.guide-voice{padding:13px}.guide-finish{align-items:stretch;flex-direction:column}.guide-finish .primary{width:100%}}

.guide-trial-note{border:1px solid #bbd8cb;background:#eaf4ed;border-radius:18px;padding:20px;margin:22px 0}.guide-trial-note strong{display:block;color:#185b4d;font-size:19px;line-height:1.4}.guide-trial-note p{font-size:13px;line-height:1.7;margin:9px 0 0}.guide-finish .primary{white-space:normal}

.start-help-links,.profile-help-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}.start-help-links .guide-entry{margin:14px 0 0;padding:0 8px}.profile-help-links{justify-content:flex-start}
.tariffs-view{max-width:1100px;margin-inline:auto}.tariffs-view .page-head h1{font-size:clamp(32px,5vw,48px)}
.tariffs-preview{font-size:12px;line-height:1.7;padding:15px 18px;border-radius:14px;background:#fff1d3;border:1px solid #ead1a4}
.tariff-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:26px 0}.tariff-card{position:relative;display:flex;flex-direction:column;padding:25px 22px;border:1px solid var(--line);background:var(--surface);border-radius:22px}.tariff-card h2{font-size:24px;margin:17px 0 5px;line-height:1.3}.tariff-card .eyebrow{font-size:9px}.tariff-price{display:flex;flex-direction:column;gap:7px;margin:15px 0 19px}.tariff-price strong{font-size:34px;letter-spacing:-.04em;white-space:nowrap}.tariff-price span{font-size:12px;color:var(--muted)}.tariff-card ul{font-size:13px;line-height:1.8;padding-left:17px;margin:0 0 15px}.tariff-card li{padding:5px 0}.tariff-saving{color:#185b4d;font-weight:700;font-size:13px}.tariff-per-person{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:20px}.tariff-card>button{margin-top:auto;font-size:13px}.tariff-family{border:2px solid #77ad9b;background:#f0f7f1}.tariff-badge{font-size:9px;font-weight:700;letter-spacing:.1em;color:#185b4d}
.tariff-included,.tariff-rules{padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:22px;margin:20px 0}.tariff-included h2,.tariff-rules h2,.tariff-addon h2{font-size:24px;line-height:1.4;margin:0 0 15px}.tariff-included ul{padding-left:18px;font-size:14px;line-height:1.8}.tariff-included li{padding:6px 0}.tariff-rules p{font-size:14px;line-height:1.8}
.tariff-addon{display:grid;grid-template-columns:1fr auto;gap:12px 28px;padding:27px;border-radius:22px;background:#eaf3f1;border:1px solid #d0e4dd}.tariff-addon p{font-size:14px;line-height:1.8;margin-bottom:0}.tariff-addon-price{display:flex;flex-direction:column;justify-content:center;gap:8px}.tariff-addon-price strong{font-size:34px;white-space:nowrap}.tariff-addon-price span{font-size:12px}.tariff-addon .tariff-addon-note{grid-column:1/-1;font-size:12px;color:var(--muted)}
@media(max-width:850px){.tariff-cards{grid-template-columns:1fr}.tariff-card{padding:24px}.tariff-card h2{margin-top:12px}.tariff-price strong{font-size:36px}.tariff-addon{grid-template-columns:1fr;padding:22px}.tariff-addon-price{padding-top:4px}.tariff-included,.tariff-rules{padding:21px}.tariff-included li,.tariff-rules p,.tariff-addon p{font-size:13px}}

.renewal-settings{margin:22px 0 0;padding:17px;border:1px solid #fff5;border-radius:16px}.renewal-settings legend{font-size:12px;font-weight:700;padding:0 7px}.renewal-settings .renewal-choice{margin-top:0}.renewal-settings input{min-width:22px;min-height:22px}.renewal-settings #renewal-status{margin:13px 0 0;line-height:1.6}

.checkout-learners{border:1px solid #fff4;border-radius:15px;padding:16px;margin:20px 0}.checkout-learners legend{font-size:12px;padding:0 6px}.checkout-learners .check-row{font-size:13px;padding:6px 0}.checkout-learners small{font-size:11px;line-height:1.7;display:block;color:#d1dfe4}

/* Generated once; playback never calls the AI API. The still image is the fallback. */
.hero-motion { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 41%; opacity:0; transition:opacity .35s; pointer-events:none; }
.hero-motion.is-ready { opacity:1; }
.hero-motion-controls { position:absolute; z-index:3; top:14px; right:14px; display:flex; gap:7px; }
.hero-motion-controls[hidden], .hero-motion-controls button[hidden] { display:none; }
.hero-motion-controls button { min-height:36px; border:1px solid #ffffff80; border-radius:24px; padding:7px 12px; color:#fff; background:#06233ce0; font-size:11px; font-weight:700; }
.hero-motion-controls button:hover { background:#123f59; }
@media (max-width:720px) { .hero-motion { height:210px; } .hero-motion-controls { top:10px; right:10px; gap:5px; } .hero-motion-controls button { padding:7px 10px; font-size:10px; } }
@media (prefers-reduced-motion:reduce) { .hero-motion { transition:none; } }

/* Sunny accents and a header that can grow on narrow screens. */
:root { --gold:#ffd76b; --gold-ink:#624710; --soft:#fff6d9; }
.hero-time { border-color:#ffe49a99; background:#133950ba; }
.hero-time > strong { color:#ffdc73; }
.day-chip, .daily-icon { background:#fff0b8; color:#654d12; }
.learner-option.selected { background:#fff5ce; border-color:#bc922a; box-shadow:inset 0 0 0 1px #bc922a; color:#16364b; }
#hero-start, .next-button { background:#ffda76; color:#243a47; border-color:#e8bf55; }
#hero-start:hover, .next-button:hover { background:#ffcd4f; }
.bar > span { background:linear-gradient(90deg,#e8b53f,#ffdd7b); }
@media(max-width:720px) {
 .side-rail { padding:16px 16px 8px; min-height:0; width:100%; box-sizing:border-box; }
 .side-brand { min-width:0; max-width:100%; }
 .side-brand .brand-wordmark { white-space:normal; line-height:1.35; }
 .side-brand small { line-height:1.5; }
 .topbar { position:relative; inset:auto; margin:0 0 14px; width:100%; display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
 .top-right { min-width:0; max-width:100%; flex-wrap:wrap; justify-content:flex-end; }
 .connection-state { max-width:100%; overflow-wrap:anywhere; }
 .feedback-open { position:static; }
}
@media(max-width:720px) {
 .app-shell:not(.is-guest) .side-rail { padding:16px 16px 8px; }
 .app-shell:not(.is-guest) .topbar { position:relative; inset:auto; margin:0 0 14px; justify-content:flex-end; }
}

.hero-story-caption { position:absolute; z-index:2; right:24px; bottom:24px; max-width:44%; border:1px solid #ffe7a66b; border-radius:16px; padding:12px 18px; background:#092c4dd9; color:#ffe7a6; font:600 18px/1.4 'Onest',sans-serif; pointer-events:none; }
.hero-story-caption[hidden] { display:none; }
@media(max-width:720px) { .hero-story-caption { inset:164px 12px auto; max-width:none; padding:7px 10px; border-radius:10px; font-size:13px; text-align:center; } }
@media(prefers-reduced-motion:reduce) { .hero-story-caption { display:none; } }
.hero-stamp { display:none; }

/* Easy English: an open book and a rising sun. */
.side-brand .brand-wordmark b { color:#a96b12; }
.side-brand img { flex-shrink:0; box-shadow:0 3px 12px #d5a54018; }

/* Free lesson: the same sunny invitation throughout onboarding. */
#hero-start,#tariffs-trial,.guide-finish .primary{background:#ffda76;color:#243a47;border-color:#e8bf55;box-shadow:0 8px 24px #e8bf5526}
#hero-start:hover,#tariffs-trial:hover,.guide-finish .primary:hover{background:#ffcd4f}
#hero-start span,#tariffs-trial span{font-size:1.25em;margin-right:.35em}
.guide-trial-note,.guide-finish{background:#fff4ce;border-color:#f0d38a}
.guide-trial-note strong{color:#5c4514}
#payment-status{margin:12px 0;background:#fff4ce;border:1px solid #f0d38a;border-radius:16px;padding:16px;color:#4d411d}

#tariffs-trial::before{content:"☀";display:inline-block;margin-right:.45em;font-size:1.2em;color:#795717}

/* Clear app installation and account actions. */
#install-app,#account-open{background:#ffda76;color:#243a47;border-color:#e8bf55;min-height:40px;font-weight:700}
#install-app:hover,#account-open:hover{background:#ffcd4f}

/* Orange utility actions: learner feedback, app guide and tariffs. */
.utility-action,.start-help-links .utility-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;max-width:100%;margin:0;padding:10px 16px;border:1px solid #ed943d;border-radius:17px;background:#ffbd76;color:#58300b;font-size:13px;font-weight:700;line-height:1.35;text-decoration:none;box-shadow:0 4px 12px #df7d1820;white-space:normal;text-align:left}
.utility-action:hover{background:#ffac55;color:#492308}.utility-action:focus-visible{outline:3px solid #8e470b;outline-offset:3px}
.utility-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;background:#ffe8c9;border-radius:10px;color:#b85210}
.utility-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topbar .utility-action{white-space:normal;font-size:12px}.topbar .utility-icon{width:26px;height:26px;flex-basis:26px}
@media(max-width:720px){.start-help-links{align-items:stretch}.start-help-links .utility-action{flex:1 1 200px}.profile-help-links .utility-action{flex:1 1 200px}.topbar .feedback-open{margin-left:0}}

/* A light magic signature, deliberately not a button. */
.hero-time{position:relative;display:inline-flex;align-items:center;gap:12px;padding:12px 0 6px;border:0;border-radius:0;background:none;backdrop-filter:none;box-shadow:none;cursor:default;color:#fff1be}
.hero-time .magic-wand{width:54px;height:62px;flex:0 0 54px;overflow:visible;filter:drop-shadow(0 0 9px #ffd66c88)}
.hero-time>strong{font-size:42px;color:#ffdf76;text-shadow:0 0 24px #ffce6a55}.hero-time>span{font-size:17px}.hero-time small{font-size:14px;color:#fff1ce}
.magic-dust{transform-origin:center;animation:magic-glow 3s ease-in-out infinite alternate}.magic-dust:nth-child(2){animation-delay:1s}
@keyframes magic-glow{from{opacity:.45}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.magic-dust{animation:none}}
@media(max-width:720px){.hero-time{padding:8px 0}.hero-time .magic-wand{width:42px;height:50px;flex-basis:42px}.hero-time>strong{font-size:36px}.hero-time>span{font-size:15px}}

/* Utility hierarchy: orange guide, yellow tariffs and hero, compact feedback. */
.utility-action[data-view="tariffs"],#open-companion{background:#ffda76;color:#4b3b13;border-color:#e8bf55;box-shadow:0 4px 12px #e8bf551a}
.utility-action[data-view="tariffs"]:hover,#open-companion:hover{background:#ffcd4f;color:#3d2d0b}
.utility-action[data-view="tariffs"] .utility-icon{background:#fff0b4;color:#906815}
#open-companion{font-weight:700;border-radius:18px}
.topbar #feedback-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;height:40px;padding:7px 12px;border-radius:30px;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;box-shadow:none;background:#ffd2a0;border-color:#efb87d;color:#58300b}
.topbar #feedback-open:hover{background:#ffc589}
.topbar #feedback-open .utility-icon{width:18px;height:18px;flex:0 0 18px;background:transparent;border-radius:0}
.topbar #feedback-open .utility-icon svg{width:17px;height:17px;stroke-width:1.8}

/* Quiet secondary actions: outlines instead of another orange fill. */
.topbar #feedback-open{background:transparent;color:#65563e;border-color:#cdbb9f;box-shadow:none}
.topbar #feedback-open:hover{background:#fff5e5;border-color:#af9064}
#hero-start.profile-start{background:transparent;color:#3f4b4d;border:1px solid #c4ad76;box-shadow:none}
#hero-start.profile-start:hover{background:#fff4d2;border-color:#ac8733}

/* App guide and learner feedback are quiet outlined actions. */
.utility-action[data-view="guide"],.start-help-links .utility-action[data-view="guide"]{background:transparent;color:#65563e;border-color:#cdbb9f;box-shadow:none}
.utility-action[data-view="guide"]:hover,.start-help-links .utility-action[data-view="guide"]:hover{background:#fff5e5;color:#58472e;border-color:#af9064}
.utility-action[data-view="guide"] .utility-icon{background:transparent;color:#946c3a}

/* Restore the account before showing first-time onboarding choices. */
#session-restore-status{display:none}
.restoring-access #session-restore-status{display:block;color:#65563e;font-size:14px}
.restoring-access #learner-choice,.restoring-access #hero-start,.restoring-access #hero-start-hint,.restoring-access #signin-prompt{visibility:hidden}

/* Installation and free registration are visible before any account exists. */
#account-register{background:#ffda76;color:#243a47;border-color:#e8bf55;font-weight:700;min-height:40px}
#account-register:hover{background:#ffcd4f}
#install-dialog h2{font-family:inherit;font-size:25px;font-weight:700}
#install-instructions{white-space:pre-line;line-height:1.7;color:#394d56}
#install-dialog .install-note{padding:12px;border:1px solid #ead7a4;border-radius:12px;background:#fff6d9;color:#65563e}
@media(max-width:720px){.top-right{gap:7px}.top-right #account-register{font-size:11px;padding:8px 12px}}

#install-platform{display:block;width:100%;margin-top:8px;border:1px solid #cdbb9f;border-radius:12px;padding:10px;background:#fffdf7;font:inherit;color:#394d56}#install-copy-status{font-size:12px;color:#65563e}
