/* Echo English / v2 — editorial language lab, 2026 */
:root{--ink:#101a39;--muted:#6b7184;--line:#dcd9d0;--lime:#ffb84b;--paper:#f6f0e7;--purple:#ddd4ff;--peach:#ffb99c;--font:'Plus Jakarta Sans','DM Sans',sans-serif}
body{background:#101a39;color:var(--ink)}
.app-shell{max-width:none;grid-template-columns:238px minmax(0,1fr) 276px;background:var(--paper)}
.sidebar{background:#111b3c;border:0;padding:30px 18px 20px 20px;color:#f8f2e8}
.brand{color:#fff;font-size:38px;letter-spacing:-2.7px}.brand-dot{color:#ffb547}.brand-mark span{background:#ffb547}.brand-caption{color:#93a4d6;font-size:8px;letter-spacing:1.85px;margin-bottom:61px}
.side-group-label{color:#788bb8;letter-spacing:1.8px;font-size:9px}
.side-link{color:#aeb9d6;border-radius:9px;font-size:12px;padding:13px 12px}.side-link:hover{background:#25345e;color:#fff}.side-link.active{background:#ffb84b;color:#101a39;box-shadow:3px 4px 0 #db7e3d}.nav-active-dot{background:#15204b}.nav-count{color:#d4ddf3}
.side-quote{background:#202e57;border:1px solid #374774;border-radius:8px;color:#fff;padding:19px}.quote-spark{color:#ffb84b}.side-quote p{font-size:13px}.side-quote>span{color:#a6b2d0}.profile-row{border-color:#344367}.avatar{background:#ffb84b;color:#101a39;border-radius:9px}.profile-copy span,.profile-more{color:#9caed2}
.main{background:#f6f0e7}.topbar{background:#f6f0e7;border-bottom:1px solid #d9d5cb;height:74px;padding:0 38px}.breadcrumb{color:#6f7486;font-weight:700}.breadcrumb strong{color:#18244d}.today-chip{background:#ffdfb7;color:#68411f;border-radius:6px;font-weight:800;letter-spacing:.1px}.today-dot{background:#f47739}.icon-button{border-color:#c7c6c0;border-radius:8px;color:#17234b}
.page-content{padding:37px 37px 24px;max-width:1260px}.welcome-line{margin-bottom:27px}.eyebrow{color:#e16b37;letter-spacing:2px;font-size:10px}.eyebrow-line{background:#e16b37;width:26px;height:2px}.welcome-line h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(31px,3.2vw,45px);font-weight:700;letter-spacing:-2.2px;margin:11px 0 7px}.welcome-line h1 span:first-child{font-weight:700;color:#3c53a7}.wave-hello{color:#e97836}.welcome-line p{font-size:12px;color:#646c80}.date-label{color:#747787;font-weight:700}
.hero{height:360px;background:#3158db;border-radius:12px;border:2px solid #152455;box-shadow:8px 8px 0 #152455;overflow:hidden}.hero:before{background:radial-gradient(circle at 80% 40%,#627dff 0%,#3158db 39%,#2548bc 77%);opacity:1}.hero-grain{opacity:.14}.hero-content{padding:32px 0 30px 40px;width:58%}.hero-tag{background:#ffb84b;color:#111b3c;border:1px solid #111b3c;border-radius:4px;padding:8px 11px;letter-spacing:1.25px;font-size:9px}.hero-tag-dot{background:#111b3c;box-shadow:none}.hero h2{font-family:'Space Grotesk',sans-serif;font-size:clamp(33px,3.2vw,48px);line-height:1.09;letter-spacing:-2.1px;margin:23px 0 15px}.hero h2 em{font-weight:700;color:#ffcb76}.hero p{font-size:12px;line-height:1.8;color:#e7eaff;max-width:360px}.hero-actions{margin-top:22px}.btn{border-radius:5px;font-size:11px;padding:14px 19px}.btn-lime{background:#ffbd52;color:#121b39;border:1px solid #121b39;box-shadow:3px 4px 0 #121b39}.btn:hover{transform:translate(-1px,-2px);box-shadow:5px 6px 0 #121b39}.hero-secondary{color:#fff;text-decoration:underline;text-underline-offset:4px}.hero-social{color:#e0e8ff}.tiny-avatars span{border-color:#2b50c6}
.hero-art{width:43%;right:0}.hero-art:before,.hero-art:after{background:#ffbd52;box-shadow:none}.orbit{border:1px solid rgba(255,255,255,.3)}.orbit-1{width:103%;border-width:2px}.orbit-2{width:84%}.orbit-3{width:65%}.orbit-4{width:46%}.orbit-center{width:57%;border:7px solid #16244c;background:#ffba50;box-shadow:9px 11px 0 #10235a55;transform:rotate(-9deg)}.center-mini{color:#29365b}.hero-sound i{background:#15254c}.center-word{color:#17234b;font-family:'Space Grotesk',sans-serif;font-size:27px}.center-word span{color:#f07035}.float-note{background:#fff7e9;color:#18244a;border:1px solid #14234b;box-shadow:4px 4px 0 #17254d;border-radius:4px;font-size:11px}.note-top{right:2%;top:17%;transform:rotate(9deg)}.note-bottom{left:-1%;bottom:13%;transform:rotate(-8deg)}.mini-wave,.art-star{color:#ffb84b}.art-star-1{left:4%}
.section-head{margin-top:47px;margin-bottom:21px}.eyebrow.small{color:#e06b38;font-size:10px;letter-spacing:1.5px}.section-head h3{font-family:'Space Grotesk',sans-serif;font-size:29px;letter-spacing:-1.3px}.section-head h3 em{font-weight:700;color:#3d57bb}.text-link{color:#172d83;font-size:11px;border-bottom:1px solid #172d83;padding-bottom:5px}
.steps-grid{gap:15px}.step-card{border:2px solid #17244c;border-radius:9px;min-height:251px;padding:18px 19px 17px;box-shadow:4px 5px 0 #17244c}.step-primary{background:#ffbb57}.step-purple{background:#b9a6fa}.step-peach{background:#ff9b7e}.step-number{color:#28315a;font-size:9px;letter-spacing:1px}.step-status{color:#14224a}.step-status span{background:#14224a}.step-bottom h4{font-family:'Space Grotesk',sans-serif;font-size:15px;color:#101a39}.step-bottom p{color:#344061;font-size:10px}.circle-arrow{background:#17234c;color:#fff;border-radius:5px}.circle-arrow.muted{background:#ffffffaa;color:#17244c}.step-visual-wave .wavebars i{background:#17244c}.vocab-visual{background:#fff8e7;border:2px solid #17244c;box-shadow:5px 5px 0 #7355c6}.grammar-visual{color:#17244c}.grammar-underline{background:#17244c}
.topics-heading{margin-top:53px}.topics-heading p{color:#656b7b;font-size:11px}.filter-row{gap:8px}.filter{border:1px solid #aeb1bd;border-radius:5px;background:#fff8ed;color:#344064;font-weight:800}.filter.active{background:#15234a;color:#fff;border-color:#15234a}.lesson-grid{gap:16px}.lesson-card{border:2px solid #17244c;border-radius:8px;box-shadow:4px 5px 0 #17244c;background:#fffaf1;overflow:hidden;transition:transform .2s,box-shadow .2s}.lesson-card:hover{transform:translate(-2px,-3px);box-shadow:6px 8px 0 #17244c}.lesson-cover{height:143px;border-bottom:2px solid #17244c}.cover-decoration{border-color:#ffffffa8}.cover-emoji{font-size:59px;filter:drop-shadow(3px 4px 0 #15234c44);transform:rotate(-10deg)}.cover-badge{background:#fff8ed;border:1px solid #17244c;color:#17244c;border-radius:4px}.cover-morning{background:#ffd279}.cover-coffee{background:#b8b0ff}.cover-city{background:#7dbce6}.cover-rain{background:#8cabe6}.cover-friend{background:#f8a5a4}.cover-night{background:#96a3e5}.lesson-info{background:#fffaf1}.lesson-info-top{color:#dc673a}.lesson-info h4{font-family:'Space Grotesk',sans-serif;font-size:15px;color:#101a39}.lesson-info p{color:#74788a}.lesson-info-bottom{border-color:#ddd5c8}.lesson-play{background:#ffb84b;border:1px solid #17244c;border-radius:5px;color:#17244c}.lesson-play:hover{background:#f89255}.bottom-banner{background:#c6d6ff;border:2px solid #17244c;border-radius:8px;box-shadow:4px 5px 0 #17244c}.bottom-icon{background:#17244c;color:#ffb84b}.bottom-banner strong{color:#14224b}.bottom-banner p{color:#4c5b83}.bottom-banner button{color:#152b82}footer{color:#777a84}
.rightbar{background:#ffdfbb;border-left:2px solid #17244c;padding:36px 20px 20px}.rightbar-heading{color:#17244c;font-size:9px}.rightbar-star{color:#e9773e}.streak-card{background:#fff5e7;border:2px solid #17244c;border-radius:8px;box-shadow:4px 5px 0 #17244c}.streak-top{color:#d36535}.streak-big{color:#14214b}.fire{color:#f4763e}.week-day{color:#6e7490}.week-day span{background:#e6ddcb}.week-day.today span{border:1px solid #17244c}.week-day.done span{background:#ffb84b}.right-section-title,.progress-header{color:#17244c}.next-lesson{border-bottom:1px solid #d6ac86}.next-art{background:#ffb84b;border:1px solid #17244c;border-radius:5px}.next-meta strong{color:#17244c}.next-meta>span{color:#7e6680}.next-lesson button{background:#17244c;color:#ffb84b;border-radius:5px}.progress-panel{border-color:#d6ac86}.progress-number strong{color:#17244c}.progress-track{background:#f8eee0}.progress-track div{background:#f07840}.progress-panel p{color:#816d68}.right-quote{border-color:#d6ac86}.right-quote>span{color:#ed7c3f}.right-quote p{color:#17244c}.right-footer{color:#ae7454}
.overlay{background:#0a1434bd}.lesson-drawer{background:#f6f0e7}.drawer-head{border-color:#d7d0c4}.drawer-head h2{font-family:'Space Grotesk',sans-serif}.close-btn{border:1px solid #17244c;border-radius:5px}.drawer-illustration{background:#3158db;border:2px solid #17244c;border-radius:8px}.drawer-orbit{border-color:#ffffff77}.drawer-core{background:#ffb84b;border:4px solid #17244c;border-radius:12px;transform:rotate(-8deg)}.drawer-core>span{color:#17244c}.drawer-bars i{background:#17244c}.drawer-float{color:#fff}.player-meta{color:#e36e36}.listen-guide{background:#fff9ed;border:1px solid #17244c;border-radius:6px}.guide-icon{color:#e77936}.speed-button,.round-player{border:1px solid #17244c;color:#17244c;border-radius:5px}.main-play{background:#ffb84b;color:#17244c;border:2px solid #17244c;border-radius:7px;box-shadow:4px 5px 0 #17244c}.player-progress div{background:#3158db}.transcript-panel{border:1px solid #17244c;border-radius:6px;background:#fffaf2}.transcript-header button{background:#ffb84b;color:#17244c;border-radius:5px}.transcript-line.active{background:#dce4ff;color:#17244c}.check-panel{border:1px dashed #17244c;border-radius:6px}.check-panel span{color:#e36e36}.btn-dark{background:#17244c;color:#fff}.understand-panel{background:#dce4ff;border-radius:6px}.understand-panel button{background:#17244c;border-radius:5px}.modal{background:#fff5e6;border:2px solid #17244c;border-radius:8px}.modal-symbol,.modal h2 em{color:#e87536}.modal-steps>div{background:#dce4ff;border-radius:5px}.modal-steps b{color:#3158db}.toast{background:#17244c;color:#fff;border-radius:6px}
@media(max-width:1300px){.app-shell{grid-template-columns:205px minmax(0,1fr) 245px}.page-content{padding:31px 26px}.hero-content{padding-left:29px}.hero h2{font-size:37px}.step-bottom h4{font-size:13px}}
@media(max-width:1100px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.rightbar{display:none}}
@media(max-width:760px){.app-shell{display:block}.sidebar{width:265px}.topbar{height:66px}.mobile-brand{color:#17244c}.mobile-brand .brand-mark span{background:#3158db}.page-content{padding:25px 17px}.welcome-line h1{font-size:31px}.hero{min-height:515px;box-shadow:5px 5px 0 #17244c}.hero-content{padding:29px 22px 242px}.hero h2{font-size:36px}.hero-art{height:245px;bottom:-12px}.orbit-center{width:143px;border-width:5px}.section-head h3{font-size:23px}.steps-grid,.lesson-grid{gap:12px}.step-card{min-height:229px;padding:13px;box-shadow:3px 4px 0 #17244c}.step-card:last-child{min-height:170px}.step-bottom h4{font-size:12px}.lesson-cover{height:110px}.lesson-info h4{font-size:13px}.lesson-card{box-shadow:3px 4px 0 #17244c}.bottom-banner{box-shadow:3px 4px 0 #17244c}}
@media(max-width:390px){.hero h2{font-size:32px}.hero-secondary{font-size:9px}.step-bottom h4{font-size:11px}.lesson-info h4{font-size:11px}}

button.profile-row { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.profile-copy { min-width: 0; }
.profile-copy strong, .profile-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger { border: 1px solid #dce0ec; background: white; color: #182342; border-radius: 10px; padding: .55rem .7rem; white-space: nowrap; font: inherit; font-weight: 700; cursor: pointer; }
.account-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 2rem; color: #182342; background: #fff; border: 0; border-radius: 22px; }
.account-dialog::backdrop { background: #111b3c99; }
.account-dialog h2 { margin: 0 2rem .65rem 0; }
.account-dialog form { display: grid; gap: .9rem; }
.account-dialog label { display: grid; gap: .35rem; font-weight: 700; }
.account-dialog input { width: 100%; border: 1px solid #a2aabb; border-radius: 8px; padding: .65rem; font: inherit; }
.account-dialog [hidden] { display: none; }
.account-text { border: 0; background: transparent; color: #2545b7; padding: .75rem .65rem 0 0; text-decoration: underline; cursor: pointer; font: inherit; }
#accountStatus { overflow-wrap: anywhere; }

@keyframes hero-wave {
  from { transform: scaleY(1); }
  to { transform: scaleY(.78); }
}

.hero-sound i {
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-sound i {
    animation: hero-wave 2s ease-in-out infinite alternate;
    animation-delay: var(--wave-offset, 0s);
  }

  .hero-sound i:nth-child(3n + 1) { --wave-offset: -1.3s; }
  .hero-sound i:nth-child(3n + 2) { --wave-offset: -.65s; }
}

.step-primary button.circle-arrow {
  transition: background-color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .step-primary button.circle-arrow:hover { background-color: #3158db; }
}

.step-primary button.circle-arrow:focus-visible {
  outline: 2px solid #17234c;
  outline-offset: 3px;
}

.close-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
}

.account-dialog .close-btn,
.modal .close-btn { position: absolute; top: 1rem; right: 1rem; }
.modal h2 { padding-inline: 1.5rem; }

.close-btn.sidebar-close { display: none; }
@media (max-width: 760px) {
  .close-btn.sidebar-close {
    display: grid;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
}

.account-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  min-height: 44px;
  margin: .75rem 0;
  border: 1px solid #747775;
  border-radius: 8px;
  background: white;
  color: #1f1f1f;
  font: inherit;
  cursor: pointer;
}
.account-google:disabled { opacity: .6; cursor: default; }

@keyframes playback-wave {
  from { transform: scaleY(1); }
  to { transform: scaleY(.76); }
}

@media (prefers-reduced-motion: no-preference) {
  .drawer-bars.playing i {
    animation: playback-wave 1.7s ease-in-out infinite alternate;
  }

  .drawer-bars.playing i:nth-child(3n + 2) { animation-delay: .16s; }
  .drawer-bars.playing i:nth-child(3n) { animation-delay: .32s; }
}

button.profile-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #202e57;
  border: 1px solid #50618e;
  color: #fff;
  border-radius: 10px;
  padding: .7rem;
}
button.profile-row:hover { background: #273962; }
.profile-copy strong { display: block; color: #fff; }
.profile-copy span, .profile-more { color: #c4d0eb; }
.profile-row .avatar { flex-shrink: 0; }
 .guide-trigger, .language-control {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #c8d0e1;
  border-radius: 10px;
  background: #fffaf2;
  color: #17244c;
}
.guide-trigger { gap: 7px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.guide-trigger > span:first-child { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; }
.language-control { position: relative; }
.language-control::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); position: absolute; right: 10px; pointer-events: none; }
#echoLanguage { appearance: none; min-height: 38px; padding: 0 24px 0 9px; border: 0; border-radius: inherit; color: inherit; background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.guide-trigger:hover, .language-control:hover { background: #edf1ff; }
.guide-trigger:focus-visible, #echoLanguage:focus-visible, .tour-card button:focus-visible { outline: 2px solid #3158db; outline-offset: 3px; }
@media(max-width:760px) {
  .topbar { padding-inline: 12px; }
  .top-actions { gap: 5px; }
  .guide-trigger { padding-inline: 7px; font-size: 12px; }
}
@media(max-width:390px) {
  .guide-trigger { width: 40px; justify-content: center; }
  .guide-trigger [data-copy] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.tour-active { overflow: hidden; }
.tour-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #16234a;
}
.tour-dialog::backdrop { background: transparent; }
.tour-spotlight {
  position: absolute;
  pointer-events: none;
  border-radius: 12px;
  outline: 2px solid #ffb64d;
  box-shadow: 0 0 0 200vmax rgb(13 21 43 / 72%);
}
.tour-card {
  position: absolute;
  width: min(350px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #d6ddee;
  border-top: 4px solid #3158db;
  border-radius: 14px;
  background: #fffaf2;
  box-shadow: 0 16px 40px #101a3966;
}
.tour-progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #304aa0; font-size: 12px; font-weight: 700; }
.tour-progress progress { width: 76px; height: 5px; accent-color: #3158db; }
.tour-card h2 { margin: 8px 0 6px; font-size: 21px; line-height: 1.2; outline: none; }
.tour-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.tour-actions { display: flex; gap: 6px; align-items: center; }
.tour-card button, .practice-panel button {
  padding: .55rem .8rem;
  border: 1px solid #6577a0;
  background: #fff;
  border-radius: 8px;
  color: #17244c;
  font: inherit;
  cursor: pointer;
}
.tour-card button { min-height: 44px; padding-inline: 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
#tourSkip { margin-right: auto; border-color: transparent; background: transparent; }
#tourNext { background: #3158db; border-color: #3158db; color: #fff; }
.practice-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #b0bde0;
  border-radius: 10px;
  background: #fffaf1;
  color: #17244c;
}
.practice-panel[hidden], .practice-panel [hidden] { display: none; }
.practice-panel h4 { margin: 1rem 0 .5rem; }
.practice-panel fieldset { min-width: 0; border: 0; padding: 0; }
.practice-panel form, .practice-panel fieldset { display: grid; gap: .45rem; }
.practice-panel form input { padding: .55rem; font: inherit; border: 1px solid #6577a0; border-radius: 6px; width: 100%; }
.practice-panel audio { width: 100%; margin-top: .75rem; }
.practice-panel button:hover { background: #dce4ff; }
.transcript-line .transcript-words { flex: 1; color: inherit; font: inherit; }
.word-lookup { display: inline-block; position: relative; }
.word-lookup button { padding: 0; border: 0; color: inherit; font: inherit; background: none; cursor: help; }
.word-definition {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 2;
  max-width: 145px;
  width: max-content;
  border-radius: 5px;
  background: #17244c;
  color: white;
  font-size: .75rem;
  padding: .3rem .5rem;
}
.word-lookup:hover .word-definition, .word-lookup:focus-within .word-definition, .word-lookup.revealed .word-definition { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .drawer-bars.playing i { animation-duration: 2.2s; }
}
