:root {
  --ink: #17211f;
  --muted: #68716e;
  --paper: #f4f6f1;
  --card: #fffefa;
  --line: #dfe5de;
  --green: #27413b;
  --mint: #dcebe1;
  --lime: #cbe56b;
  --coral: #f07a61;
  --yellow: #f2dc73;
  --shadow: 0 18px 50px rgba(42, 60, 54, .08);
}

/* 2026 responsive learning experience: desktop keeps the information-rich
   studio while smaller screens become a focused, thumb-friendly lesson flow. */
:root {
  --mobile-nav-height: 74px;
  --focus-ring: 0 0 0 4px rgba(203, 229, 107, .34);
}

button, a, select, input { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.source-card, .route-card, .workspace-card, .daily-studio-panel {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .source-card:hover, .workspace-card:hover {
    border-color: #d1dbd2;
    box-shadow: 0 22px 58px rgba(42, 60, 54, .105);
  }
  .nav-item:hover, .view-switch button:hover, .content-mode-switch button:hover {
    transform: translateY(-1px);
  }
}

@media (min-width: 761px) {
  main { width: 100%; max-width: 1640px; margin-inline: auto; }
  .workspace-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(255, 254, 250, .94);
    backdrop-filter: blur(14px);
  }
  .sentence-navigation > button, .sound-nav button, .shadow-controls button { min-height: 44px; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  main { padding-inline: clamp(20px, 3vw, 32px); }
  .topbar { min-height: 112px; }
  #sentencesView, .view-panel.active#sentencesView {
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  }
  .sentence-stage { padding-inline: clamp(20px, 3vw, 28px); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 18px; }
  body {
    background: radial-gradient(circle at 100% 0, rgba(203, 229, 107, .18), transparent 28rem), var(--paper);
    overscroll-behavior-y: contain;
  }
  .app-shell { min-height: 100svh; }
  main {
    width: 100%;
    padding: 0 12px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 22px);
  }
  .topbar {
    min-height: 0;
    padding: max(18px, env(safe-area-inset-top)) 2px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
  }
  .topbar .eyebrow { margin-bottom: 5px; color: var(--coral); font-size: 9px; }
  .topbar h1 {
    max-width: 250px;
    font-size: clamp(21px, 6vw, 27px);
    line-height: 1.18;
    letter-spacing: -.75px;
  }
  .top-actions { display: grid; justify-items: end; gap: 8px; }
  .daily-progress {
    min-width: 92px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 7px;
    border: 1px solid rgba(39, 65, 59, .08);
    border-radius: 14px;
    background: rgba(255, 254, 250, .82);
    box-shadow: 0 8px 24px rgba(42, 60, 54, .06);
    backdrop-filter: blur(10px);
    font-size: 9px;
  }
  .daily-progress strong { font-size: 10px; }
  .daily-progress .progress-track { height: 4px; }
  .add-button {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 10px;
    box-shadow: 0 7px 16px rgba(39, 65, 59, .13);
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    padding: 7px max(14px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(14px, env(safe-area-inset-right));
    display: block;
    border-top: 1px solid rgba(39, 65, 59, .1);
    background: rgba(255, 254, 250, .94);
    color: var(--green);
    box-shadow: 0 -12px 36px rgba(30, 48, 43, .11);
    backdrop-filter: blur(18px) saturate(1.35);
    z-index: 30;
  }
  .sidebar .brand, .sidebar-bottom { display: none; }
  .main-nav {
    width: min(410px, 100%);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .nav-item, .nav-item:not(.active), .nav-item.active {
    width: auto;
    min-width: 0;
    min-height: 58px;
    padding: 5px 3px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    border-radius: 14px;
    color: #89928e;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
  }
  .nav-item span {
    width: 32px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #74807b;
    font-size: 20px;
    line-height: 1;
  }
  .nav-item.active { color: var(--green); }
  .nav-item.active span {
    background: var(--lime);
    color: var(--green);
    box-shadow: 0 5px 12px rgba(112, 141, 48, .16);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", "Noto Sans KR", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; background: var(--green); color: white; display: flex; flex-direction: column; z-index: 5; }
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 11px; padding: 0 8px 32px; font-size: 22px; font-weight: 700; letter-spacing: -.6px; }
.brand-mark { width: 35px; height: 35px; border-radius: 12px 12px 12px 4px; background: var(--lime); color: var(--green); display: grid; place-items: center; font-size: 22px; }
.brand-mark span { color: var(--coral); }
.main-nav { display: grid; gap: 7px; }
.nav-item { color: rgba(255,255,255,.67); text-decoration: none; padding: 13px 14px; display: flex; gap: 13px; align-items: center; border-radius: 12px; font-size: 14px; font-weight: 600; transition: .2s ease; }
.nav-item span { width: 20px; text-align: center; font-size: 18px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: white; }
.sidebar-bottom { margin-top: auto; }
.streak-card { display: flex; gap: 10px; padding: 15px 10px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.streak-icon { color: var(--lime); font-size: 24px; }
.streak-card strong, .streak-card span { display: block; }
.streak-card strong { font-size: 13px; }
.streak-card span { color: rgba(255,255,255,.58); font-size: 10px; margin-top: 3px; }
.profile { width: 100%; border: 0; background: none; color: white; display: flex; align-items: center; gap: 10px; text-align: left; padding: 18px 8px 0; cursor: pointer; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: #f1b48b; display: grid; place-items: center; color: var(--green); font-weight: 700; font-size: 11px; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 12px; }.profile small { color: rgba(255,255,255,.55); margin-top: 2px; font-size: 10px; }.more { margin-left: auto; opacity: .5; }

main { padding: 0 42px; min-width: 0; }
.topbar { min-height: 123px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.eyebrow, .kicker { margin: 0 0 7px; color: #88918e; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
h1 { margin: 0; font-size: clamp(22px, 2.1vw, 31px); letter-spacing: -1.1px; }
.top-actions { display: flex; align-items: center; gap: 22px; }
.runtime-banner { margin: -5px 0 18px; padding: 13px 15px; border: 1px solid #e7cf9b; border-radius: 12px; background: #fff7e4; display: flex; justify-content: space-between; align-items: center; gap: 20px; }.runtime-banner[hidden] { display: none; }.runtime-banner strong, .runtime-banner span { display: block; }.runtime-banner strong { font-size: 11px; }.runtime-banner span { margin-top: 3px; color: #837458; font-size: 9px; }.runtime-banner button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 8px 11px; background: var(--green); color: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.global-mode-tabs { margin: -2px 0 20px; padding: 6px; border: 1px solid #dfe6dd; border-radius: 16px; background: rgba(255,255,250,.72); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; box-shadow: 0 10px 28px rgba(42,60,54,.05); }
.global-mode-tabs button { min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: #77817d; font-weight: 800; cursor: pointer; transition: .18s ease; }
.global-mode-tabs button span { display: block; margin-bottom: 3px; color: #96a09b; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.global-mode-tabs button.active { background: var(--green); color: white; box-shadow: 0 9px 24px rgba(39,65,59,.18); }
.global-mode-tabs button.active span { color: var(--lime); }
.tts-voice-panel { margin: -8px 0 20px; padding: 14px; border: 1px solid #dfe6dd; border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,250,.86), rgba(239,245,235,.86)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .42fr) auto; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(42,60,54,.05); }
.tts-voice-panel span { display: block; color: var(--coral); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.tts-voice-panel strong { display: block; margin-top: 5px; color: var(--green); font-size: 13px; }
.tts-voice-panel p { margin: 4px 0 0; color: #6f7a75; font-size: 9px; line-height: 1.45; }
.tts-voice-panel label { color: #7f8985; font-size: 8px; font-weight: 800; }
.tts-voice-panel select { width: 100%; height: 35px; margin-top: 5px; padding: 0 30px 0 10px; border: 1px solid #dce2dc; border-radius: 9px; background: white; color: var(--ink); font-size: 9px; outline: none; }
.tts-voice-panel select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39,65,59,.08); }
.tts-voice-panel button { min-height: 35px; border: 0; border-radius: 10px; padding: 0 14px; background: var(--green); color: white; font-size: 9px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 16px rgba(39,65,59,.13); }
.tts-voice-panel button.speaking { animation: pulse 1s infinite; }
.tts-voice-panel button:disabled, .tts-voice-panel select:disabled { opacity: .55; cursor: not-allowed; }
.daily-progress { min-width: 170px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; color: var(--muted); font-size: 11px; }
.daily-progress strong { color: var(--ink); }.progress-track { grid-column: 1/-1; height: 5px; background: #dce2dc; border-radius: 10px; overflow: hidden; }.progress-track i { display: block; height: 100%; width: 25%; background: var(--coral); border-radius: inherit; transition: width .3s ease; }
.add-button, .primary { border: 0; border-radius: 11px; background: var(--green); color: white; padding: 12px 17px; font-weight: 700; font-size: 12px; cursor: pointer; box-shadow: 0 8px 18px rgba(39,65,59,.16); }
.add-button:hover, .primary:hover { transform: translateY(-1px); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 20px; }
.hero-grid[hidden], .workspace-card[hidden], .daily-page[hidden] { display: none !important; }
.source-card, .route-card, .workspace-card { background: var(--card); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }
.source-card { padding: 26px; background: radial-gradient(circle at 95% 0%, #ecf3df 0, transparent 34%), var(--card); }
.content-mode-switch { margin: -6px 0 13px; padding: 5px; border-radius: 12px; background: #edf1ec; display: grid; grid-template-columns: repeat(2, minmax(120px, auto)) 1fr; gap: 5px; align-items: center; }
.content-mode-switch button { border: 0; border-radius: 9px; padding: 9px 12px; background: transparent; color: #6f7a75; font-size: 10px; font-weight: 800; cursor: pointer; }
.content-mode-switch button.active { background: white; color: var(--green); box-shadow: 0 3px 10px rgba(39,65,59,.08); }
.content-mode-switch p { margin: 0 6px 0 10px; color: #7d8883; font-size: 9px; line-height: 1.4; }
.content-browser { margin: -6px 0 20px; padding: 13px; border: 1px solid #dce4dc; border-radius: 13px; background: rgba(255,255,255,.76); display: grid; grid-template-columns: minmax(180px,1fr) 125px minmax(190px,1.25fr) 33px; gap: 9px; align-items: end; }.content-browser-title span, .content-browser-title strong { display: block; }.content-browser-title span { color: var(--coral); font-size: 8px; font-weight: 700; letter-spacing: .8px; }.content-browser-title strong { margin-top: 4px; font-size: 10px; }.content-browser label { color: #7f8985; font-size: 8px; font-weight: 700; }.content-browser select { width: 100%; height: 34px; margin-top: 5px; padding: 0 28px 0 9px; border: 1px solid #dce2dc; border-radius: 8px; background: white; color: var(--ink); font-size: 9px; outline: none; }.content-browser select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39,65,59,.08); }.content-browser button { width: 33px; height: 34px; border: 1px solid #dce2dc; border-radius: 8px; background: white; color: var(--green); cursor: pointer; font-size: 15px; }.content-browser button.loading { animation: spin 1s linear infinite; }.catalog-status { min-height: 15px; margin: -12px 2px 12px; color: #82908a; font-size: 8px; }.catalog-status.error { color: #b45545; }.catalog-status.success { color: #52715f; }
@keyframes spin { to { transform: rotate(360deg); } }
.source-meta { display: flex; gap: 12px; align-items: center; color: #858e8a; font-size: 9px; font-weight: 700; letter-spacing: .6px; }
.level-picker { display: flex; align-items: center; gap: 3px; }.level-picker>span { margin-right: 3px; }.level-picker button { width: 23px; height: 23px; border: 1px solid #d7ded6; border-radius: 6px; background: rgba(255,255,255,.72); color: #7c8581; font-size: 9px; font-weight: 700; cursor: pointer; }.level-picker button.active { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 4px 10px rgba(39,65,59,.16); }
.source-pill { background: var(--lime); color: var(--green); padding: 5px 8px; border-radius: 6px; }
.source-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin: 21px 0 22px; }
.source-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 39px); letter-spacing: -1.5px; line-height: 1; max-width: 600px; }
.source-heading>div>p:last-child { color: var(--muted); margin: 12px 0 0; font-size: 13px; }
.source-link { color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
.audio-panel { border-radius: 14px; background: #edf1ec; padding: 12px; }
.audio-panel iframe { width: 100%; height: 86px; display: block; }
.no-source-audio { min-height: 86px; border: 1px dashed #cbd5cb; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #69756f; text-align: center; }.no-source-audio[hidden] { display: none; }.no-source-audio>span { color: var(--coral); font-size: 18px; }.no-source-audio strong { margin-top: 2px; font-size: 10px; }.no-source-audio small { margin-top: 4px; color: #8a948f; font-size: 8px; }
.audio-panel p { margin: 10px 3px 0; color: #64706b; font-size: 10px; line-height: 1.5; }.audio-panel p span { color: var(--coral); font-weight: 700; margin-right: 7px; }

.route-card { padding: 23px; }
.route-head { display: flex; align-items: center; justify-content: space-between; }.route-head .kicker { margin: 0; }.route-head>span { font-size: 11px; font-weight: 700; color: var(--green); }
.route-line { margin: 13px 0 18px; height: 4px; background: #e6eae5; border-radius: 10px; overflow: hidden; }.route-line i { display: block; width: 25%; height: 100%; background: var(--lime); transition: width .3s ease; }
.route-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.route-list button { width: 100%; padding: 10px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 11px; text-align: left; background: transparent; cursor: pointer; }
.route-list li.current button { background: #eff4ec; }
.route-list button>span { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #7c8782; }
.route-list .done button>span { background: var(--green); border-color: var(--green); color: white; }.route-list .current button>span { background: var(--lime); border-color: var(--lime); color: var(--green); }
.route-list button div { min-width: 0; }.route-list strong, .route-list small { display: block; }.route-list strong { font-size: 12px; }.route-list small { margin-top: 3px; color: #8a928f; font-size: 9px; }.route-list em { margin-left: auto; font-style: normal; font-size: 9px; color: #919995; }

.workspace-card { margin-top: 20px; overflow: hidden; }
.workspace-header { padding: 24px 27px 19px; display: flex; justify-content: space-between; align-items: end; gap: 22px; border-bottom: 1px solid var(--line); }
.workspace-header h2 { margin: 0; font-size: 19px; letter-spacing: -.5px; }
.view-switch { display: flex; background: #eef1ed; padding: 4px; border-radius: 10px; }.view-switch button { border: 0; background: transparent; padding: 8px 12px; border-radius: 7px; color: #7b8581; font-weight: 600; font-size: 10px; cursor: pointer; }.view-switch button.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.06); }
.view-panel { display: none; }.view-panel.active { display: block; }
#sentencesView { grid-template-columns: minmax(0, 1.7fr) minmax(270px, .75fr); }.view-panel.active#sentencesView { display: grid; }
.sentence-stage { padding: 25px 28px 22px; border-right: 1px solid var(--line); }
.sentence-toolbar { display: flex; justify-content: space-between; color: #909895; font-size: 10px; }.sentence-toolbar>div { display: flex; gap: 7px; }.icon-button, .speed-button { border: 1px solid var(--line); background: white; border-radius: 8px; min-height: 29px; cursor: pointer; }.icon-button { width: 31px; font-size: 17px; }.icon-button.saved { color: var(--coral); background: #fff0ed; }.speed-button { padding: 0 10px; font-size: 10px; font-weight: 700; }
.sentence-main { position: relative; padding: 27px 28px 22px 52px; }.sound-button { position: absolute; left: 0; top: 31px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--green); background: var(--lime); cursor: pointer; font-size: 11px; }.sound-button.speaking { animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(203,229,107,.25); } }
.sentence-en { margin: 0; font-size: clamp(21px, 2.4vw, 32px); font-weight: 600; line-height: 1.35; letter-spacing: -.8px; text-wrap: balance; }.sentence-en mark { color: var(--green); background: linear-gradient(transparent 64%, var(--lime) 64%); padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }.sentence-ko { margin: 12px 0 0; color: #727c78; font-size: 13px; }
.chunk-box { background: #eff4ec; border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }.chunk-label { display: block; color: #7b8983; font-size: 9px; font-weight: 700; letter-spacing: .7px; }.chunk-box strong { display: block; margin: 5px 0 2px; font-size: 17px; }.chunk-box p { margin: 0; color: #65716c; font-size: 10px; }.usage-meter { min-width: 120px; text-align: right; }.usage-meter>span { color: #818b87; font-size: 9px; }.usage-meter>div { margin: 5px 0; display: flex; justify-content: end; gap: 3px; }.usage-meter i { width: 16px; height: 5px; border-radius: 5px; background: var(--lime); }.usage-meter strong { margin: 0; font-size: 9px; color: var(--green); }
.learning-coach { margin-top: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.learning-coach article { min-height: 88px; padding: 12px; border: 1px solid #e0e7dc; border-radius: 12px; background: #fffefa; }
.learning-coach span { display: block; color: var(--coral); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.learning-coach strong { display: block; margin-top: 5px; color: var(--green); font-size: 14px; line-height: 1.2; }
.learning-coach p { margin: 6px 0 0; color: #6c7772; font-size: 8px; line-height: 1.45; }
.pronunciation-row { min-height: 54px; display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }.pronunciation-row>span { color: #8b9490; font-size: 9px; font-weight: 700; }.pronunciation-row p { margin: 0; font-size: 11px; }.pronunciation-row button { border: 0; background: none; color: var(--green); font-size: 9px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sentence-navigation { padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }.sentence-navigation>button { border: 0; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; padding: 10px 13px; }.sentence-navigation>button.primary { color: white; background: var(--green); }.sentence-dots { display: flex; gap: 6px; }.sentence-dots i { width: 5px; height: 5px; background: #d4d9d4; border-radius: 50%; }.sentence-dots i.active { width: 17px; background: var(--green); border-radius: 5px; }
.transfer-panel { padding: 26px 24px; background: #fcfdf9; }.transfer-panel h3 { margin: 0 0 18px; font-size: 17px; }.example-card { border-top: 1px solid var(--line); padding: 12px 0; }.example-card:first-child { border-top: 0; padding-top: 0; }.example-card p { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.45; }.example-card span { display: block; color: #858e8a; font-size: 9px; margin-top: 4px; }.example-card mark { background: #e6f0b9; color: inherit; }
.input-first-card { margin-bottom: 16px; padding: 13px; border-radius: 13px; background: #edf4ea; border: 1px solid #dfe9d8; }
.input-first-card strong { display: block; color: var(--green); font-size: 11px; }
.input-first-card p { margin: 5px 0 0; color: #69756f; font-size: 9px; line-height: 1.5; }
.mini-challenge { margin-top: 15px; padding: 16px; background: #fff5e5; border-radius: 13px; }.mini-challenge>span { color: var(--coral); font-size: 9px; font-weight: 700; letter-spacing: .6px; }.mini-challenge .coach-guide { margin: 8px 0 5px; color: #806f57; font-size: 9px; }.mini-challenge blockquote { margin: 0 0 12px; padding: 9px 10px; border-left: 3px solid var(--yellow); border-radius: 0 7px 7px 0; background: rgba(255,255,255,.65); font-size: 10px; font-weight: 600; line-height: 1.45; }.mini-challenge button { width: 100%; border: 1px solid #ead8bd; border-radius: 9px; background: white; padding: 9px; display: flex; justify-content: center; align-items: center; gap: 7px; cursor: pointer; font-size: 10px; font-weight: 700; }.mini-challenge button i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }.mini-challenge button.recording i { animation: blink .8s infinite; }.mini-challenge audio { width: 100%; height: 34px; margin-top: 9px; }.mini-challenge>small { display: block; color: #9b8d79; font-size: 8px; text-align: center; margin-top: 8px; line-height: 1.4; }.ai-feedback { margin-top: 12px; padding: 11px; background: white; border: 1px solid #eadfcf; border-radius: 10px; display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; }.ai-feedback[hidden] { display: none; }.score-orb { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: white; display: grid; place-content: center; text-align: center; }.score-orb strong { font-size: 15px; line-height: 1; }.score-orb span { margin-top: 2px; font-size: 7px; opacity: .7; }.feedback-copy>strong { display: block; font-size: 10px; }.feedback-copy p { margin: 3px 0; color: #6e7773; font-size: 8px; line-height: 1.4; }.feedback-copy small { display: block; color: #998a75; font-size: 7px; line-height: 1.4; }
@keyframes blink { 50% { opacity: .25; } }

.compare-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 27px; }.comparison-badge { display: inline-block; color: var(--green); background: var(--lime); padding: 5px 8px; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: .7px; }.compare-intro h3 { margin: 10px 0 0; font-size: 21px; }.compare-intro p { max-width: 350px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.level-grid { padding: 0 27px 25px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.level-grid article { padding: 20px; min-height: 160px; background: #f3f6f0; border: 1px solid #e1e7df; border-radius: 14px; }.level-grid article:nth-child(2) { background: #fff7e8; }.level-grid article:nth-child(3) { background: #edf2f1; }.level-grid article>span { color: #7d8883; font-size: 9px; font-weight: 700; letter-spacing: .5px; }.level-grid p { font-size: 18px; line-height: 1.45; font-weight: 600; }.level-grid mark { color: inherit; background: linear-gradient(transparent 60%, var(--yellow) 60%); }.level-grid small { color: #858f8b; font-size: 9px; }.swap-note { margin: 0 27px 27px; padding: 15px; border: 1px dashed #cfd8cf; border-radius: 12px; display: flex; gap: 13px; align-items: center; justify-content: center; font-size: 11px; }.swap-note strong { color: var(--coral); }.swap-note span { padding: 5px 9px; background: white; border-radius: 6px; }.swap-note b { color: #a1aaa6; }

.shadow-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); }.video-wrap { position: relative; padding: 24px; background: #18211f; }.video-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 11px; display: block; }.video-fallback { min-height: 310px; aspect-ratio: 16/9; padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: #232a28; color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }.video-fallback[hidden] { display: none; }.video-fallback>span { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--green); }.video-fallback strong { font-size: 13px; }.video-fallback p { margin: 7px 0 15px; color: rgba(255,255,255,.6); font-size: 9px; }.video-fallback a { color: var(--lime); font-size: 9px; font-weight: 700; }.video-caption { color: rgba(255,255,255,.6); font-size: 9px; margin-top: 10px; }.shadow-console { padding: 28px; display: flex; flex-direction: column; }.shadow-top { display: flex; justify-content: space-between; color: #87908d; font-size: 9px; font-weight: 700; letter-spacing: .6px; }.shadow-console>p { margin: 28px 0 12px; font-size: 23px; line-height: 1.4; font-weight: 600; }.shadow-console>p.hidden-script { filter: blur(7px); user-select: none; }.rhythm-line { color: var(--coral); font-size: 10px; word-spacing: 9px; min-height: 20px; }.shadow-controls { display: grid; grid-template-columns: 38px 1fr 38px; gap: 8px; margin: 27px 0 17px; }.shadow-controls button { border: 1px solid var(--line); background: white; border-radius: 9px; cursor: pointer; }.shadow-controls .shadow-play { border: 0; background: var(--green); color: white; padding: 12px; font-size: 10px; font-weight: 700; }.script-toggle { font-size: 10px; color: var(--muted); cursor: pointer; }.shadow-tip { margin-top: auto !important; padding: 13px; background: #eff4ec; border-radius: 10px; color: #68736f; font-size: 9px !important; font-weight: 400 !important; }
.daily-source-panel { margin-top: 13px; padding: 14px; border: 1px solid #dfe8dc; border-radius: 12px; background: #fffefa; }
.daily-source-panel[hidden] { display: none; }
.daily-source-panel>span { display: block; color: var(--coral); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.daily-source-panel>strong { display: block; margin-top: 6px; font-size: 13px; color: var(--green); }
.daily-source-panel>p { margin: 6px 0 10px !important; color: #6a746f; font-size: 8px !important; line-height: 1.45 !important; font-weight: 500 !important; }
.daily-source-panel dl { margin: 0; display: grid; gap: 6px; }
.daily-source-panel dl div { display: grid; grid-template-columns: 54px 1fr; gap: 8px; }
.daily-source-panel dt { color: #8b9691; font-size: 8px; font-weight: 800; }
.daily-source-panel dd { margin: 0; color: #52645d; font-size: 8px; line-height: 1.35; }
.daily-source-panel a { display: inline-block; margin-top: 10px; color: var(--green); font-size: 9px; font-weight: 800; text-underline-offset: 3px; }

.daily-page { display: grid; gap: 20px; }
.daily-hero-panel { padding: 28px; border: 1px solid #dfe7dc; border-radius: 22px; background: radial-gradient(circle at 88% 0%, rgba(203,229,107,.42), transparent 31%), linear-gradient(135deg, #fffefa, #edf4eb); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: 24px; align-items: center; }
.daily-hero-panel h2 { margin: 0; font-size: clamp(24px, 3vw, 42px); letter-spacing: -1.4px; line-height: 1.05; }
.daily-hero-panel p:not(.kicker) { max-width: 620px; margin: 13px 0 0; color: #68736f; font-size: 13px; line-height: 1.6; }
.daily-refresh-status { display: inline-flex; width: fit-content; margin-top: 13px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.7); color: #6b7772; font-size: 9px; font-weight: 800; }
.daily-refresh-status.success { background: #edf6df; color: var(--green); }
.daily-refresh-status.warn { background: #fff4d6; color: #8b6840; }
.daily-flow { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.74); display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1fr; gap: 8px; align-items: center; }
.daily-flow span { min-height: 42px; border-radius: 11px; background: #f3f7ef; color: var(--green); display: grid; place-items: center; text-align: center; font-size: 10px; font-weight: 800; }
.daily-flow i { height: 2px; border-radius: 4px; background: var(--lime); }
.daily-page-grid { display: grid; grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr); gap: 20px; }
.daily-control-panel, .daily-studio { border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.daily-control-panel { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.daily-control-head span, .daily-license-card>span, .daily-pack-grid button span, .daily-coach-grid span { display: block; color: var(--coral); font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.daily-control-head strong { display: block; margin-top: 6px; font-size: 18px; letter-spacing: -.4px; }
.daily-category-tabs { padding: 4px; border-radius: 12px; background: #eef2ed; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.daily-category-tabs button { border: 0; border-radius: 9px; padding: 10px 6px; background: transparent; color: #7d8883; font-size: 9px; font-weight: 800; cursor: pointer; }
.daily-category-tabs button.active { background: white; color: var(--green); box-shadow: 0 3px 9px rgba(39,65,59,.07); }
.daily-date-browser { padding: 14px; border: 1px solid #e0e8dc; border-radius: 15px; background: #fbfdf8; }
.daily-date-browser>div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.daily-date-browser span { display: block; color: var(--coral); font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.daily-date-browser strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }
.daily-date-browser small { color: #8a948f; font-size: 8px; line-height: 1.35; text-align: right; }
.daily-date-list { max-height: 180px; overflow: auto; padding-right: 3px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.daily-date-list button { min-height: 48px; padding: 8px 6px; border: 1px solid #dfe7dc; border-radius: 11px; background: white; color: #6d7974; cursor: pointer; text-align: center; transition: .18s ease; }
.daily-date-list button:hover, .daily-date-list button.active { border-color: var(--green); background: #eef5ea; color: var(--green); box-shadow: 0 5px 13px rgba(39,65,59,.08); }
.daily-date-list button strong { margin: 0; font-size: 11px; color: inherit; }
.daily-date-list button span { margin-top: 4px; color: inherit; opacity: .72; font-size: 7px; font-weight: 800; letter-spacing: 0; }
.daily-date-list button.active strong { color: var(--green); }
.daily-pack-grid { display: grid; gap: 9px; }
.daily-pack-grid button { width: 100%; padding: 14px; border: 1px solid #dfe7dc; border-radius: 14px; background: #fbfcf8; text-align: left; cursor: pointer; transition: .18s ease; }
.daily-pack-grid button:hover, .daily-pack-grid button.active { border-color: var(--green); background: #eef5ea; transform: translateY(-1px); }
.daily-pack-grid strong { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; line-height: 1.25; }
.daily-pack-grid small { display: block; margin-top: 6px; color: #828d88; font-size: 8px; }
.daily-license-card { margin-top: auto; padding: 16px; border-radius: 15px; background: #f4f7ef; border: 1px dashed #cfdcc9; }
.daily-license-card strong { display: block; margin-top: 7px; color: var(--green); font-size: 14px; }
.daily-license-card p { margin: 7px 0 12px; color: #66736d; font-size: 9px; line-height: 1.45; }
.daily-license-card dl { margin: 0; display: grid; gap: 7px; }
.daily-license-card dl div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.daily-license-card dt { color: #8b9691; font-size: 8px; font-weight: 800; }
.daily-license-card dd { margin: 0; color: #52645d; font-size: 8px; line-height: 1.35; }
.daily-license-card a { display: inline-block; margin-top: 12px; color: var(--green); font-size: 9px; font-weight: 800; text-underline-offset: 3px; }
.daily-studio { overflow: hidden; }
.daily-studio-top { padding: 25px 28px 21px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.daily-studio-top h2 { margin: 0; font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -1.4px; }
.daily-studio-top p:not(.kicker) { margin: 10px 0 0; color: #68736f; font-size: 12px; line-height: 1.5; }
.daily-level-picker { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; color: #7d8883; font-size: 9px; font-weight: 800; }
.daily-level-picker button { width: 30px; height: 30px; border: 1px solid #d7ded6; border-radius: 8px; background: white; color: #7c8581; font-size: 10px; font-weight: 800; cursor: pointer; }
.daily-level-picker button.active { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 5px 12px rgba(39,65,59,.17); }
.daily-shadow-player { margin: 25px 28px 0; min-height: 390px; padding: 28px; border-radius: 20px; background: radial-gradient(circle at 50% 36%, rgba(203,229,107,.14), transparent 26%), linear-gradient(145deg, #20302c, #111917); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.daily-shadow-player::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 30px 30px; }
.daily-player-meta { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; color: rgba(255,255,255,.58); font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.daily-play-orb { position: relative; z-index: 1; width: 66px; height: 66px; border: 0; border-radius: 50%; background: var(--lime); color: var(--green); font-size: 18px; cursor: pointer; box-shadow: 0 0 0 13px rgba(203,229,107,.08), 0 0 0 26px rgba(203,229,107,.035); }
.daily-play-orb.speaking { animation: pulse 1s infinite; }
.daily-sentence { position: relative; z-index: 1; max-width: 920px; margin: 28px 0 8px; font-size: clamp(26px, 3.55vw, 48px); font-weight: 700; line-height: 1.18; letter-spacing: -1.5px; text-wrap: balance; overflow-wrap: normal; }
.daily-sentence .sentence-line { display: block; white-space: nowrap; }
.daily-sentence mark { color: white; background: linear-gradient(transparent 62%, rgba(203,229,107,.65) 62%); padding: 0 4px; border-radius: 3px; white-space: nowrap; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.daily-translation { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.66); font-size: 13px; }
.daily-rhythm { position: relative; z-index: 1; min-height: 20px; margin-top: 18px; color: var(--lime); font-size: 11px; word-spacing: 9px; }
.daily-studio-controls { position: relative; z-index: 1; width: min(640px, 100%); margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.daily-studio-controls button { min-height: 43px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: rgba(255,255,255,.08); color: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.daily-studio-controls button:hover { background: rgba(255,255,255,.15); }
.daily-studio-controls button:nth-child(3) { background: var(--lime); color: var(--green); border-color: var(--lime); }
.daily-coach-grid { padding: 18px 28px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.daily-coach-grid article { min-height: 118px; padding: 16px; border: 1px solid #e0e7dc; border-radius: 15px; background: #fbfcf7; }
.daily-coach-grid strong { display: block; margin-top: 7px; color: var(--green); font-size: 17px; line-height: 1.2; }
.daily-coach-grid p { margin: 8px 0 0; color: #68746f; font-size: 9px; line-height: 1.5; }

footer { display: flex; justify-content: space-between; padding: 28px 3px 35px; color: #8a938f; font-size: 9px; }footer p { margin: 0; }footer a { color: inherit; }

dialog { width: min(520px, calc(100% - 30px)); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 90px rgba(20,31,28,.25); }dialog::backdrop { background: rgba(23,33,31,.48); backdrop-filter: blur(3px); }dialog form { padding: 30px; position: relative; }dialog h2 { margin: 15px 0 8px; font-size: 25px; }dialog p { color: var(--muted); font-size: 12px; line-height: 1.5; }.dialog-close { position: absolute; right: 17px; top: 15px; border: 0; background: none; font-size: 24px; cursor: pointer; }dialog label { display: block; margin: 23px 0 12px; font-size: 10px; font-weight: 700; }dialog input { width: 100%; margin-top: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; outline: none; }dialog input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39,65,59,.09); }.dialog-note { background: #eff4ec; color: #63706b; border-radius: 10px; padding: 12px; font-size: 10px; line-height: 1.5; }.wide { width: 100%; margin-top: 15px; }.dialog-status { text-align: center; color: var(--green) !important; min-height: 18px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 80px minmax(0,1fr); }.sidebar { padding: 25px 12px; }.brand { padding: 0 10px 30px; }.brand>span:last-child, .nav-item:not(.active), .nav-item.active { font-size: 0; }.nav-item { justify-content: center; padding: 12px; }.nav-item span { font-size: 19px; }.streak-card, .profile>span:not(.avatar) { display: none; }.profile { justify-content: center; padding: 18px 0 0; }.hero-grid { grid-template-columns: 1fr; }.route-card { display: none; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { position: fixed; bottom: 0; top: auto; width: 100%; height: 67px; padding: 8px 15px; flex-direction: row; align-items: center; }.brand { padding: 0; }.brand>span:last-child { display: none; }.main-nav { margin-left: auto; display: flex; }.nav-item { width: 44px; }.sidebar-bottom { display: none; }main { padding: 0 16px 75px; }.topbar { min-height: 110px; }.top-actions { gap: 8px; }.daily-progress { display: none; }.add-button { padding: 11px 12px; }.runtime-banner { align-items: start; }.runtime-banner button { display: none; }.source-card { padding: 20px; }.content-mode-switch { grid-template-columns: 1fr 1fr; }.content-mode-switch p { grid-column: 1 / -1; margin: 3px 5px 2px; }.content-browser { grid-template-columns: 1fr 1fr 34px; }.content-browser-title { grid-column: 1 / -1; }.article-select-label { grid-column: span 1; }.source-meta { flex-wrap: wrap; }.source-heading { display: block; }.source-link { display: inline-block; margin-top: 14px; }.workspace-header { align-items: start; flex-direction: column; }.view-switch { width: 100%; }.view-switch button { flex: 1; }#sentencesView, .view-panel.active#sentencesView, .shadow-layout { grid-template-columns: 1fr; }.sentence-stage { border: 0; border-bottom: 1px solid var(--line); padding: 22px 18px; }.transfer-panel { padding: 22px 18px; }.sentence-main { padding-left: 44px; }.chunk-box { align-items: start; }.learning-coach { grid-template-columns: 1fr; }.usage-meter { display: none; }.pronunciation-row { grid-template-columns: 62px 1fr; }.pronunciation-row button { grid-column: 2; text-align: left; padding: 0 0 10px; }.compare-intro { align-items: start; flex-direction: column; }.level-grid { grid-template-columns: 1fr; }.level-grid article { min-height: 0; }.swap-note { flex-wrap: wrap; }.shadow-console { min-height: 360px; }.video-fallback { min-height: 230px; }footer { display: block; line-height: 1.5; }footer a { display: inline-block; margin-top: 8px; }
}

.level-grid article.selected { border: 2px solid var(--green); box-shadow: 0 8px 24px rgba(39,65,59,.09); }

.feedback-details { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid #eee5d8; }
.feedback-legend { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; color: #8b8376; font-size: 7px; }
.feedback-legend span { display: flex; align-items: center; gap: 4px; }
.feedback-legend i { width: 6px; height: 6px; border-radius: 50%; }
.feedback-legend .ok { background: #77a78d; }.feedback-legend .weak { background: #e6a644; }.feedback-legend .missing { background: #df725f; }
.word-feedback { display: flex; flex-wrap: wrap; gap: 5px; }
.word-feedback>span { padding: 5px 6px; border-radius: 6px; font-size: 8px; font-weight: 700; }
.word-feedback small { display: block; margin-top: 1px; font-size: 6px; font-weight: 500; opacity: .72; }
.word-ok { background: #e8f2eb; color: #426955; }.word-weak { background: #fff0d7; color: #96641b; }.word-missing { background: #ffe5df; color: #a94b3b; }.word-extra { background: #ecefed; color: #6f7774; }
.coach-advice { margin: 9px 0 0 !important; padding: 8px 9px; border-radius: 7px; background: #f3f6ee; color: #59675f !important; font-size: 8px !important; line-height: 1.45 !important; }

.sound-lab { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .72fr); }
.sound-focus { padding: 30px; border-right: 1px solid var(--line); background: radial-gradient(circle at 83% 18%, #edf4d9, transparent 25%), #fffefa; }
.sound-focus-head { display: flex; justify-content: space-between; gap: 20px; color: #89928f; font-size: 9px; }.sound-focus-head>div strong { display: block; margin-top: 8px; color: var(--ink); font-size: 14px; }.sound-badge { display: inline-block; padding: 5px 7px; border-radius: 5px; background: var(--coral); color: white; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.sound-sentence { max-width: 780px; margin: 35px 0 28px; font-size: clamp(25px, 3vw, 39px); font-weight: 600; line-height: 1.35; letter-spacing: -1px; }.sound-sentence span { display: inline-block; margin-right: .17em; }.sound-sentence .stress { color: var(--green); background: linear-gradient(transparent 68%, var(--lime) 68%); }.sound-sentence .soft { color: #8b9491; font-weight: 500; }
.sound-notation { padding: 16px 18px; border-radius: 13px; background: #edf3ec; display: grid; grid-template-columns: 76px minmax(120px,.7fr) 1fr; gap: 12px; align-items: center; }.sound-notation>span { color: #7b8782; font-size: 9px; font-weight: 700; }.sound-notation strong { color: var(--green); font-size: 17px; letter-spacing: .4px; }.sound-notation p { margin: 0; color: #68746f; font-size: 10px; line-height: 1.5; }
.beat-track { min-height: 56px; margin: 15px 0; padding: 11px 15px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 7px; overflow: hidden; }.beat-track span { height: 7px; min-width: 12px; flex: 1; border-radius: 7px; background: #dce2dc; transition: .2s ease; }.beat-track span.strong { height: 18px; background: var(--coral); }.beat-track span.active { transform: scaleY(1.35); box-shadow: 0 0 0 5px rgba(240,122,97,.12); }
.sound-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.sound-actions button { min-height: 67px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; display: grid; grid-template-columns: 26px 1fr; column-gap: 7px; text-align: left; cursor: pointer; }.sound-actions button:hover, .sound-actions button.active { border-color: var(--green); background: #f1f6ef; }.sound-actions button>span { grid-row: 1 / 3; width: 25px; height: 25px; border-radius: 50%; background: #edf1ec; color: var(--green); display: grid; place-items: center; font-size: 9px; }.sound-actions button.active>span { background: var(--green); color: white; }.sound-actions strong { align-self: end; font-size: 11px; }.sound-actions small { color: #8b9490; font-size: 8px; }
.sound-drill { padding: 29px 24px; background: #f8faf6; }.sound-drill h3 { margin: 0 0 22px; font-size: 19px; line-height: 1.35; }.sound-drill ol { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }.sound-drill li { min-height: 54px; padding: 9px; border: 1px solid transparent; border-radius: 10px; display: flex; align-items: center; gap: 9px; }.sound-drill li.active { border-color: #d6dfcf; background: white; box-shadow: 0 5px 14px rgba(39,65,59,.06); }.sound-drill li.done { background: #eef4e9; }.sound-drill li>span { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; border: 1px solid #dbe1da; display: grid; place-items: center; color: #7f8985; font-size: 9px; font-weight: 700; }.sound-drill li.active>span { border-color: var(--lime); background: var(--lime); color: var(--green); }.sound-drill li.done>span { border-color: var(--green); background: var(--green); color: white; }.sound-drill li div { min-width: 0; }.sound-drill li strong, .sound-drill li small { display: block; }.sound-drill li strong { font-size: 10px; }.sound-drill li small { margin-top: 3px; color: #89928e; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.sound-drill li em { margin-left: auto; color: #909995; font-size: 8px; font-style: normal; }.sound-auto { width: 100%; }.sound-drill-status { min-height: 30px; margin: 10px 0 13px; color: #7d8883; font-size: 8px; line-height: 1.45; text-align: center; }.sound-nav { padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }.sound-nav button { border: 0; background: none; color: var(--green); font-size: 8px; font-weight: 700; cursor: pointer; }

.generated-player { position: relative; min-height: 370px; aspect-ratio: 16 / 9; overflow: hidden; padding: 25px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: radial-gradient(circle at 50% 43%, rgba(203,229,107,.14), transparent 26%), linear-gradient(145deg, #1e2c28, #111917); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.generated-player::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.generated-head { position: absolute; z-index: 1; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: start; gap: 16px; color: rgba(255,255,255,.78); font-weight: 800; letter-spacing: .5px; }
.generated-head span, .generated-head strong { min-height: 44px; padding: 9px 13px; border-radius: 14px; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 10px 28px rgba(0,0,0,.11); backdrop-filter: blur(3px); }
.generated-head span { max-width: 270px; color: rgba(255,255,255,.88); text-align: left; font-size: 11px; line-height: 1.25; }
.generated-head span::before { content: "학습 소스"; display: block; margin-bottom: 3px; color: rgba(203,229,107,.9); font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.generated-head strong { min-width: 108px; background: rgba(203,229,107,.13); color: var(--lime); text-align: center; font-size: 13px; line-height: 1.2; box-shadow: inset 0 0 0 1px rgba(203,229,107,.24), 0 10px 28px rgba(0,0,0,.11); }
.generated-head strong::before { content: "현재 상태"; display: block; margin-bottom: 3px; color: rgba(255,255,255,.65); font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.generated-player.listening .generated-head strong { background: rgba(240,122,97,.18); color: #ffd5cc; box-shadow: inset 0 0 0 1px rgba(240,122,97,.34), 0 10px 28px rgba(0,0,0,.11); }
.generated-player.repeating .generated-head strong, .generated-player.complete .generated-head strong { background: rgba(203,229,107,.18); color: var(--lime); }
.voice-orbit { position: relative; z-index: 2; width: 74px; height: 74px; margin: 0 0 34px; border: 0; border-radius: 50%; background: var(--lime); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 13px rgba(203,229,107,.09), 0 0 0 28px rgba(203,229,107,.04), 0 18px 42px rgba(0,0,0,.22); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.voice-orbit::before { content: "전체 쉐도잉 시작"; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.84); font-size: 10px; font-weight: 900; letter-spacing: .2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.voice-orbit:hover, .voice-orbit:focus-visible { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 15px rgba(203,229,107,.13), 0 0 0 31px rgba(203,229,107,.06), 0 20px 48px rgba(0,0,0,.28); outline: none; }
.voice-orbit::after { content: "▶"; color: var(--green); font-size: 18px; transform: translateX(2px); }
.voice-orbit i { position: absolute; inset: -8px; border: 1px solid rgba(203,229,107,.18); border-radius: 50%; opacity: 0; }
.generated-player.listening .voice-orbit i { animation: voiceRing 1.7s infinite; }.generated-player.listening .voice-orbit i:nth-child(2) { animation-delay: .45s; }.generated-player.listening .voice-orbit i:nth-child(3) { animation-delay: .9s; }
.generated-player.listening .voice-orbit::after, .generated-player.repeating .voice-orbit::after { content: "■"; transform: none; font-size: 19px; }
.generated-player.listening .voice-orbit::before { content: "듣는 중 · 누르면 멈춤"; background: rgba(240,122,97,.22); color: white; }
.generated-player.repeating .voice-orbit::before { content: "따라 말하는 시간"; background: rgba(203,229,107,.2); color: var(--lime); }
.generated-player.complete .voice-orbit::before { content: "다시 시작"; background: rgba(203,229,107,.2); color: var(--lime); }
@keyframes voiceRing { 0% { opacity: .65; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.65); } }
.waveform { position: relative; z-index: 1; height: 28px; display: flex; align-items: center; gap: 3px; }
.waveform i { display: block; width: 3px; height: 7px; border-radius: 4px; background: var(--lime); opacity: .55; }
.waveform i:nth-child(3n+1) { height: 13px; }.waveform i:nth-child(4n+2) { height: 20px; }
.generated-player.listening .waveform i { animation: wave .65s ease-in-out infinite alternate; }.generated-player.listening .waveform i:nth-child(2n) { animation-delay: -.3s; }.generated-player.listening .waveform i:nth-child(3n) { animation-delay: -.5s; }
@keyframes wave { to { height: 27px; opacity: 1; } }
.turn-label { position: relative; z-index: 1; min-width: 190px; margin-top: 13px; padding: 11px 18px 10px; border-radius: 999px; border: 1px solid rgba(240,122,97,.58); background: rgba(240,122,97,.16); color: #ffd5cc; font-size: clamp(14px, 1.5vw, 20px); font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; box-shadow: 0 12px 32px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.06); }
.turn-label::after { content: "듣고 바로 따라 말하기"; display: block; margin-top: 3px; color: rgba(255,255,255,.68); font-size: 9px; font-weight: 800; letter-spacing: .2px; text-transform: none; }
.generated-player.listening .turn-label { border-color: rgba(240,122,97,.9); background: linear-gradient(135deg, rgba(240,122,97,.98), rgba(240,122,97,.6)); color: white; box-shadow: 0 0 0 8px rgba(240,122,97,.11), 0 14px 40px rgba(240,122,97,.2); animation: turnPulseCoral 1.05s ease-in-out infinite; }
.generated-player.listening .turn-label::after { content: "원음을 먼저 듣는 중"; color: rgba(255,255,255,.86); }
.generated-player.repeating .turn-label { border-color: rgba(203,229,107,.95); background: linear-gradient(135deg, var(--lime), #ecff9f); color: var(--green); box-shadow: 0 0 0 9px rgba(203,229,107,.12), 0 16px 46px rgba(203,229,107,.2); animation: turnPulseLime 1.05s ease-in-out infinite; }
.generated-player.repeating .turn-label::after { content: "지금 따라 말하세요"; color: rgba(39,65,59,.72); }
.generated-player.complete .turn-label { border-color: rgba(203,229,107,.9); background: rgba(203,229,107,.92); color: var(--green); animation: none; }
.generated-player.complete .turn-label::after { content: "문장 쉐도잉 완료"; color: rgba(39,65,59,.72); }
@keyframes turnPulseCoral { 50% { transform: translateY(-1px); box-shadow: 0 0 0 13px rgba(240,122,97,.08), 0 18px 46px rgba(240,122,97,.24); } }
@keyframes turnPulseLime { 50% { transform: translateY(-1px); box-shadow: 0 0 0 14px rgba(203,229,107,.1), 0 18px 46px rgba(203,229,107,.24); } }
.generated-player>p { position: relative; z-index: 1; max-width: 570px; margin: 9px 0 17px; font-size: clamp(17px, 2.2vw, 26px); font-weight: 600; line-height: 1.35; }
.stage-progress { position: relative; z-index: 1; width: min(360px, 75%); height: 3px; margin-bottom: 17px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.12); }.stage-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.generated-player>#sequenceButton { position: relative; z-index: 1; margin-top: -5px; border: 0; border-radius: 0; padding: 0; background: transparent; color: rgba(255,255,255,.56); font-size: 10px; font-weight: 800; cursor: default; pointer-events: none; box-shadow: none; }
.generated-player>#sequenceButton:hover { background: transparent; }
.generated-player.complete .voice-orbit::after { content: "↻"; transform: none; font-size: 24px; }

.generated-player {
  min-height: clamp(430px, 56vw, 680px);
  padding: clamp(24px, 3vw, 44px);
  gap: clamp(8px, 1vw, 14px);
}
.generated-head {
  top: clamp(18px, 2vw, 28px);
  left: clamp(18px, 2.2vw, 34px);
  right: clamp(18px, 2.2vw, 34px);
}
.generated-head span,
.generated-head strong {
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
}
.generated-head span {
  max-width: min(360px, 42%);
  font-size: clamp(12px, .95vw, 15px);
}
.generated-head span::before,
.generated-head strong::before {
  margin-bottom: 5px;
  font-size: clamp(8px, .68vw, 10px);
}
.generated-head strong {
  min-width: clamp(122px, 12vw, 168px);
  font-size: clamp(15px, 1.15vw, 19px);
}
.turn-label {
  min-width: clamp(230px, 23vw, 340px);
  margin: 0 0 clamp(14px, 1.7vw, 24px);
  padding: clamp(12px, 1vw, 16px) clamp(20px, 2vw, 30px);
  font-size: clamp(18px, 1.75vw, 28px);
  letter-spacing: clamp(1.2px, .18vw, 2.3px);
}
.turn-label::after {
  margin-top: 5px;
  font-size: clamp(10px, .85vw, 13px);
}
.voice-orbit {
  width: clamp(78px, 6.2vw, 98px);
  height: clamp(78px, 6.2vw, 98px);
  margin: 0;
}
.voice-orbit::after {
  font-size: clamp(20px, 1.7vw, 28px);
}
.generated-player.listening .voice-orbit::after,
.generated-player.repeating .voice-orbit::after {
  font-size: clamp(22px, 1.85vw, 30px);
}
.voice-orbit::before {
  top: calc(100% + 12px);
  padding: 7px 12px;
  font-size: clamp(10px, .82vw, 13px);
}
.waveform {
  margin-top: clamp(18px, 1.8vw, 27px);
}
.generated-player>p {
  max-width: min(840px, 82%);
  margin: clamp(18px, 2vw, 32px) 0 clamp(15px, 1.4vw, 22px);
  font-size: clamp(24px, 2.35vw, 38px);
  line-height: 1.23;
  letter-spacing: -.5px;
}
.stage-progress {
  width: min(560px, 72%);
  height: 5px;
  margin-bottom: 12px;
}
.generated-player>#sequenceButton {
  font-size: clamp(10px, .82vw, 13px);
  color: rgba(255,255,255,.68);
}
.video-caption {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(203,229,107,.18);
  border-radius: 12px;
  background: rgba(203,229,107,.07);
  color: rgba(219,246,226,.9);
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 760px) { .generated-player { min-height: 300px; aspect-ratio: auto; }.generated-player>p { font-size: 18px; }.feedback-legend { gap: 6px; }.sound-lab { grid-template-columns: 1fr; }.sound-focus { padding: 24px 18px; border-right: 0; border-bottom: 1px solid var(--line); }.sound-notation { grid-template-columns: 65px 1fr; }.sound-notation p { grid-column: 1 / -1; }.sound-actions { grid-template-columns: 1fr; }.sound-actions button { min-height: 58px; }.sound-drill { padding: 24px 18px; }.view-switch button { padding-left: 6px; padding-right: 6px; font-size: 9px; } }

@media (max-width: 760px) {
  .video-wrap { padding: 14px; }
  .generated-player {
    min-height: min(620px, calc(100vh - 185px));
    padding: 104px 16px 30px;
    gap: 9px;
  }
  .generated-head {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 8px;
  }
  .generated-head span,
  .generated-head strong {
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 13px;
  }
  .generated-head span {
    max-width: 58%;
    font-size: 10px;
  }
  .generated-head strong {
    min-width: 92px;
    font-size: 13px;
  }
  .turn-label {
    min-width: min(280px, 92%);
    margin-bottom: 14px;
    padding: 11px 16px;
    font-size: clamp(17px, 5.4vw, 23px);
  }
  .turn-label::after { font-size: 10px; }
  .voice-orbit {
    width: 78px;
    height: 78px;
  }
  .waveform { margin-top: 18px; }
  .generated-player>p {
    max-width: 96%;
    margin: 18px 0 14px;
    font-size: clamp(21px, 6.2vw, 30px);
    line-height: 1.25;
  }
  .stage-progress {
    width: 82%;
    height: 5px;
  }
  .generated-player>#sequenceButton {
    max-width: 92%;
    font-size: 10px;
    line-height: 1.35;
  }
  .video-caption {
    font-size: 10px;
    padding: 9px 10px;
  }
}

@media (max-width: 1050px) {
  .daily-hero-panel, .daily-page-grid { grid-template-columns: 1fr; }
  .daily-flow { grid-template-columns: repeat(4, 1fr); }
  .daily-flow i { display: none; }
}

@media (max-width: 760px) {
  .global-mode-tabs { margin-top: -10px; }
  .global-mode-tabs button { min-height: 46px; font-size: 11px; }
  .tts-voice-panel { grid-template-columns: 1fr; align-items: stretch; }
  .tts-voice-panel button { width: 100%; }
  .daily-hero-panel { padding: 21px; }
  .daily-flow { grid-template-columns: 1fr 1fr; }
  .daily-page-grid { gap: 14px; }
  .daily-control-panel { padding: 18px; }
  .daily-date-browser>div:first-child { align-items: start; flex-direction: column; }
  .daily-date-browser small { text-align: left; }
  .daily-date-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 210px; }
  .daily-studio-top { padding: 21px 18px; flex-direction: column; }
  .daily-shadow-player { margin: 18px; min-height: 330px; padding: 22px 16px; }
  .daily-sentence .sentence-line { white-space: normal; }
  .daily-studio-controls { grid-template-columns: 1fr 1fr; }
  .daily-coach-grid { padding: 0 18px 22px; grid-template-columns: 1fr; }
}

/* App-wide readability pass: keep every tab legible on desktop and mobile. */
:root {
  --read-xs: clamp(10.5px, .72vw, 12px);
  --read-sm: clamp(12px, .86vw, 14px);
  --read-md: clamp(14px, 1vw, 16px);
  --read-lg: clamp(18px, 1.45vw, 24px);
  --tap-sm: 40px;
  --tap-md: 46px;
}

.eyebrow,
.kicker,
.content-browser-title span,
.content-browser label,
.source-meta,
.route-list small,
.workspace-header .kicker,
.sentence-toolbar,
.chunk-label,
.pronunciation-row>span,
.comparison-badge,
.level-grid article>span,
.level-grid small,
.shadow-top,
.script-toggle,
.daily-source-panel>span,
.daily-source-panel dt,
.daily-control-head span,
.daily-license-card>span,
.daily-pack-grid button span,
.daily-coach-grid span,
.daily-date-browser span,
.daily-date-browser small,
.daily-level-picker,
.daily-player-meta,
.feedback-legend,
.word-feedback small,
.sound-badge,
.sound-focus-head,
.sound-notation>span,
.sound-actions small,
.sound-drill li small,
.sound-drill li em,
.sound-drill-status,
.sound-nav button,
footer,
dialog label {
  font-size: var(--read-xs) !important;
  line-height: 1.45;
}

.runtime-banner strong,
.runtime-banner span,
.global-mode-tabs button,
.tts-voice-panel strong,
.tts-voice-panel p,
.tts-voice-panel label,
.tts-voice-panel select,
.tts-voice-panel button,
.content-mode-switch button,
.content-mode-switch p,
.content-browser-title strong,
.content-browser select,
.catalog-status,
.source-link,
.audio-panel p,
.no-source-audio strong,
.no-source-audio small,
.route-head>span,
.route-list strong,
.view-switch button,
.speed-button,
.pronunciation-row p,
.pronunciation-row button,
.sentence-navigation>button,
.example-card span,
.input-first-card strong,
.input-first-card p,
.mini-challenge>span,
.mini-challenge .coach-guide,
.mini-challenge blockquote,
.mini-challenge button,
.mini-challenge>small,
.feedback-copy>strong,
.feedback-copy p,
.feedback-copy small,
.word-feedback>span,
.coach-advice,
.compare-intro p,
.swap-note,
.video-caption,
.shadow-tip,
.daily-source-panel>p,
.daily-source-panel dd,
.daily-source-panel a,
.daily-refresh-status,
.daily-flow span,
.daily-date-list button span,
.daily-pack-grid small,
.daily-license-card p,
.daily-license-card dd,
.daily-license-card a,
.daily-studio-top p:not(.kicker),
.daily-translation,
.daily-rhythm,
.daily-studio-controls button,
.daily-coach-grid p,
dialog p,
dialog input,
.dialog-note {
  font-size: var(--read-sm) !important;
  line-height: 1.5;
}

.brand-mark,
.nav-item span,
.streak-icon,
.content-browser button,
.level-picker button,
.route-list button>span,
.icon-button,
.sound-button,
.score-orb,
.daily-play-orb,
.sound-actions button>span,
.sound-drill li>span {
  min-width: var(--tap-sm);
  min-height: var(--tap-sm);
}

.content-browser select,
.content-browser button,
.level-picker button,
.view-switch button,
.icon-button,
.speed-button,
.sound-button,
.sentence-navigation>button,
.mini-challenge button,
.sound-actions button,
.sound-auto,
.sound-nav button,
.shadow-controls button,
.daily-category-tabs button,
.daily-date-list button,
.daily-pack-grid button,
.daily-level-picker button,
.daily-studio-controls button,
.tts-voice-panel select,
.tts-voice-panel button,
dialog input,
.primary,
.add-button {
  min-height: var(--tap-md);
}

.workspace-header h2 {
  font-size: clamp(22px, 1.75vw, 30px);
  line-height: 1.22;
}

.view-switch {
  gap: 4px;
}

.view-switch button {
  padding: 10px 14px;
  font-weight: 800;
}

.sentence-en {
  font-size: clamp(28px, 3.05vw, 46px);
  line-height: 1.25;
}

.sentence-ko {
  font-size: var(--read-md);
  line-height: 1.55;
}

.sound-button {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.sentence-main {
  padding-left: 64px;
}

.chunk-box strong,
.transfer-panel h3,
.learning-coach strong,
.sound-notation strong,
.daily-control-head strong,
.daily-license-card strong,
.daily-pack-grid strong,
.daily-coach-grid strong {
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.28;
}

.chunk-box p,
.learning-coach p,
.example-card p {
  font-size: var(--read-sm);
}

.learning-coach article,
.daily-coach-grid article {
  min-height: 112px;
  padding: 16px;
}

.mini-challenge blockquote {
  padding: 12px 13px;
}

.score-orb {
  width: 56px;
  height: 56px;
}

.score-orb strong {
  font-size: 20px;
}

.feedback-copy,
.feedback-details {
  font-size: var(--read-sm);
}

.word-feedback>span {
  padding: 7px 9px;
}

.sound-sentence {
  max-width: 920px;
  font-size: clamp(30px, 3.55vw, 54px);
  line-height: 1.25;
}

.sound-notation {
  grid-template-columns: 100px minmax(150px, .72fr) 1fr;
}

.beat-track {
  min-height: 70px;
}

.beat-track span {
  min-width: 16px;
  height: 9px;
}

.beat-track span.strong {
  height: 24px;
}

.sound-actions button {
  min-height: 84px;
  grid-template-columns: 38px 1fr;
}

.sound-actions strong,
.sound-drill li strong {
  font-size: var(--read-md);
}

.sound-drill li {
  min-height: 68px;
  padding: 12px;
}

.compare-intro h3 {
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.2;
}

.level-grid article {
  min-height: 190px;
  padding: 24px;
}

.level-grid p {
  font-size: clamp(21px, 1.65vw, 28px);
  line-height: 1.4;
}

.swap-note {
  padding: 18px;
  gap: 16px;
}

.shadow-console>p {
  font-size: clamp(26px, 2.3vw, 40px);
  line-height: 1.28;
}

.shadow-controls {
  grid-template-columns: 48px 1fr 48px;
}

.shadow-controls .shadow-play {
  font-size: var(--read-sm);
}

.daily-hero-panel h2 {
  font-size: clamp(30px, 3.4vw, 54px);
}

.daily-category-tabs button {
  font-size: var(--read-sm) !important;
}

.daily-date-list button {
  min-height: 62px;
}

.daily-date-list button strong {
  font-size: var(--read-md);
}

.daily-studio-top h2 {
  font-size: clamp(30px, 3.15vw, 52px);
}

.daily-level-picker button {
  width: 42px;
  height: 42px;
  font-size: var(--read-sm);
}

.daily-shadow-player {
  min-height: clamp(430px, 45vw, 650px);
}

.daily-play-orb {
  width: clamp(74px, 6vw, 94px);
  height: clamp(74px, 6vw, 94px);
  font-size: clamp(21px, 1.7vw, 28px);
}

.daily-sentence {
  max-width: min(980px, 88%);
  font-size: clamp(30px, 4.1vw, 64px);
  line-height: 1.15;
}

.daily-studio-controls button {
  min-height: 54px;
}

.daily-player-meta {
  font-size: var(--read-sm) !important;
}

@media (max-width: 760px) {
  :root {
    --read-xs: 11px;
    --read-sm: 12px;
    --read-md: 14px;
    --tap-sm: 42px;
    --tap-md: 48px;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    gap: 14px;
  }

  .content-browser {
    grid-template-columns: 1fr;
  }

  .article-select-label,
  .content-browser button {
    grid-column: 1;
  }

  .content-browser button {
    width: 100%;
  }

  .source-heading h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.05;
  }

  .source-heading>div>p:last-child {
    font-size: var(--read-md);
  }

  .source-meta,
  .level-picker {
    gap: 8px;
  }

  .level-picker button {
    width: 42px;
    height: 42px;
  }

  .workspace-header h2 {
    font-size: clamp(23px, 6.5vw, 34px);
  }

  .view-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .sentence-main {
    padding: 24px 0 20px 58px;
  }

  .sentence-en {
    font-size: clamp(28px, 8.2vw, 42px);
  }

  .chunk-box {
    display: grid;
  }

  .pronunciation-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .pronunciation-row button {
    grid-column: 1;
  }

  .sentence-navigation {
    gap: 8px;
  }

  .sentence-navigation>button {
    min-width: 88px;
  }

  .sound-sentence {
    font-size: clamp(28px, 8.4vw, 44px);
  }

  .sound-notation {
    grid-template-columns: 1fr;
  }

  .sound-actions button {
    min-height: 76px;
  }

  .compare-intro h3 {
    font-size: clamp(25px, 7vw, 38px);
  }

  .level-grid p {
    font-size: clamp(22px, 6.2vw, 34px);
  }

  .swap-note {
    display: grid;
    justify-items: start;
  }

  .shadow-console>p {
    font-size: clamp(24px, 7vw, 38px);
  }

  .daily-category-tabs {
    gap: 6px;
  }

  .daily-date-list button {
    min-height: 64px;
  }

  .daily-shadow-player {
    min-height: min(620px, calc(100vh - 180px));
  }

  .daily-sentence {
    max-width: 96%;
    font-size: clamp(28px, 8.5vw, 44px);
    white-space: normal;
  }

  .daily-studio-controls button {
    min-height: 52px;
  }
}

/* Responsive containment guardrails: keep every learning panel inside its parent width. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell,
main,
.hero-grid,
.source-card,
.route-card,
.workspace-card,
.workspace-header,
.view-panel,
.shadow-layout,
.video-wrap,
.shadow-console,
.sound-lab,
.sound-focus,
.sound-drill,
.daily-page,
.daily-page-grid,
.daily-studio-panel,
.daily-shadow-player,
.generated-player,
.content-browser,
.tts-voice-panel {
  min-width: 0;
  max-width: 100%;
}

.source-heading > div,
.workspace-header > div,
.generated-player > p,
.sentence-en,
.sound-sentence,
.daily-sentence {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.video-wrap,
.generated-player,
.daily-shadow-player {
  overflow: hidden;
}

.generated-player {
  width: 100%;
}

@media (max-width: 1280px) {
  main {
    padding-left: clamp(20px, 3vw, 34px);
    padding-right: clamp(20px, 3vw, 34px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  }

  .content-browser {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .42fr) minmax(170px, .9fr) 40px;
  }

  .shadow-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-wrap {
    padding: clamp(16px, 2vw, 24px);
  }

  .generated-player {
    aspect-ratio: auto;
    min-height: clamp(430px, 58vw, 620px);
  }

  .generated-player > p {
    max-width: min(760px, 92%);
    font-size: clamp(22px, 2.6vw, 34px);
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: 19px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-card {
    display: block;
  }

  .route-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .route-list button {
    align-items: flex-start;
    min-height: 76px;
  }

  .route-list em {
    display: none;
  }

  .tts-voice-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .sidebar {
    padding: 24px 12px;
  }

  .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .brand > span:last-child,
  .nav-item strong,
  .nav-item:not(.active),
  .nav-item.active {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
  }

  .content-browser {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-browser-title,
  .article-select-label,
  .content-browser button {
    grid-column: 1;
  }

  .content-browser button {
    width: 100%;
  }

  .source-heading,
  .workspace-header {
    flex-direction: column;
    align-items: stretch;
  }

  .source-link {
    white-space: normal;
  }

  .route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .generated-head {
    flex-direction: column;
    align-items: stretch;
  }

  .generated-head span,
  .generated-head strong {
    max-width: 100%;
    width: 100%;
  }

  .generated-player {
    padding-top: 150px;
    min-height: clamp(520px, 78vw, 680px);
  }
}

/* Final responsive overrides — keep this section last. */
@media (min-width: 761px) {
  main { width: 100%; max-width: 1640px; margin-inline: auto; }
  .workspace-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(255, 254, 250, .94);
    backdrop-filter: blur(14px);
  }
  .sentence-navigation > button, .sound-nav button, .shadow-controls button { min-height: 44px; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  main { padding-inline: clamp(20px, 3vw, 32px); }
  .topbar { min-height: 112px; }
  #sentencesView, .view-panel.active#sentencesView {
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 18px; }
  body {
    background: radial-gradient(circle at 100% 0, rgba(203, 229, 107, .18), transparent 28rem), var(--paper);
    overscroll-behavior-y: contain;
  }
  .app-shell { min-height: 100svh; }
  main {
    width: 100%;
    padding: 0 12px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 22px);
  }
  .topbar {
    min-height: 0;
    padding: max(18px, env(safe-area-inset-top)) 2px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
  }
  .topbar .eyebrow { margin-bottom: 5px; color: var(--coral); font-size: 9px; }
  .topbar h1 {
    max-width: 250px;
    font-size: clamp(21px, 6vw, 27px);
    line-height: 1.18;
    letter-spacing: -.75px;
  }
  .top-actions { display: grid; justify-items: end; gap: 8px; }
  .daily-progress {
    min-width: 92px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 7px;
    border: 1px solid rgba(39, 65, 59, .08);
    border-radius: 14px;
    background: rgba(255, 254, 250, .82);
    box-shadow: 0 8px 24px rgba(42, 60, 54, .06);
    backdrop-filter: blur(10px);
    font-size: 9px;
  }
  .daily-progress strong { font-size: 10px; }
  .daily-progress .progress-track { height: 4px; }
  .add-button {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 10px;
    box-shadow: 0 7px 16px rgba(39, 65, 59, .13);
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    padding: 7px max(14px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(14px, env(safe-area-inset-right));
    display: block;
    border-top: 1px solid rgba(39, 65, 59, .1);
    background: rgba(255, 254, 250, .94);
    color: var(--green);
    box-shadow: 0 -12px 36px rgba(30, 48, 43, .11);
    backdrop-filter: blur(18px) saturate(1.35);
    z-index: 30;
  }
  .sidebar .brand, .sidebar-bottom { display: none; }
  .main-nav {
    width: min(410px, 100%);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .nav-item, .nav-item:not(.active), .nav-item.active {
    width: auto;
    min-width: 0;
    min-height: 58px;
    padding: 5px 3px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    border-radius: 14px;
    color: #89928e;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
  }
  .nav-item span {
    width: 32px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #74807b;
    font-size: 20px;
    line-height: 1;
  }
  .nav-item.active { color: var(--green); }
  .nav-item.active span {
    background: var(--lime);
    color: var(--green);
    box-shadow: 0 5px 12px rgba(112, 141, 48, .16);
  }
  .runtime-banner { margin: 0 0 12px; padding: 12px; border-radius: 14px; }
  .global-mode-tabs { margin: 0 0 14px; padding: 4px; border-radius: 14px; }
  .global-mode-tabs button { min-height: 48px; font-size: 11px; }
  .tts-voice-panel { margin: 0 0 14px; padding: 13px; gap: 11px; border-radius: 15px; }
  .tts-voice-panel select, .tts-voice-panel button { min-height: 46px; font-size: 11px; }
  .hero-grid { gap: 12px; }
  .source-card, .route-card, .workspace-card, .daily-studio-panel {
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(42, 60, 54, .07);
  }
  .source-card {
    padding: 16px;
    background: radial-gradient(circle at 100% 0, rgba(203, 229, 107, .22), transparent 46%), var(--card);
  }
  .content-browser { grid-template-columns: 1fr; gap: 10px; }
  .content-browser-title, .article-select-label, .content-browser button { grid-column: 1; }
  .content-browser-title strong { font-size: 15px; line-height: 1.35; }
  .content-browser label { font-size: 10px; }
  .content-browser select, .content-browser button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 12px;
  }
  .catalog-status { margin-block: 10px 14px; font-size: 10px; line-height: 1.45; }
  .source-meta { padding-top: 14px; }
  .source-heading { display: block; }
  .source-heading h2 { font-size: clamp(28px, 8vw, 38px); line-height: 1.08; }
  .source-heading > div > p:last-child { font-size: 12px; line-height: 1.55; }
  .source-link {
    min-height: 44px;
    margin-top: 13px;
    padding: 11px 14px;
    display: inline-block;
    border-radius: 12px;
    background: #edf4ea;
    text-decoration: none;
  }
  .audio-panel { border-radius: 15px; }
}

@media (max-width: 760px) {
  .workspace-card { margin-top: 12px; overflow: visible; }
  .workspace-header {
    position: sticky;
    top: 0;
    z-index: 12;
    padding: 16px 16px 12px;
    gap: 12px;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 254, 250, .94);
    box-shadow: 0 6px 20px rgba(42, 60, 54, .06);
    backdrop-filter: blur(16px);
  }
  .workspace-header h2 { font-size: clamp(20px, 5.8vw, 26px); line-height: 1.22; }
  .view-switch {
    width: calc(100% + 4px);
    margin-inline: -2px;
    padding: 4px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-radius: 13px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .view-switch::-webkit-scrollbar { display: none; }
  .view-switch button {
    flex: 1 0 78px;
    min-height: 40px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 10px;
    scroll-snap-align: start;
  }
  #sentencesView, .view-panel.active#sentencesView, .shadow-layout { grid-template-columns: 1fr; }
  .sentence-stage, .transfer-panel, .sound-focus, .sound-drill, .shadow-console { padding: 18px 16px; }
  .sentence-toolbar { align-items: center; font-size: 11px; }
  .icon-button, .speed-button { min-height: 40px; }
  .icon-button { width: 40px; }
  .sentence-main {
    min-height: 178px;
    padding: 25px 0 22px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .sound-button {
    top: 28px;
    width: 42px;
    height: 42px;
    box-shadow: 0 7px 18px rgba(112, 141, 48, .16);
  }
  .sentence-en { font-size: clamp(25px, 7.6vw, 35px); line-height: 1.32; }
  .sentence-ko { font-size: 13px; line-height: 1.5; }
  .chunk-box {
    padding: 16px;
    display: grid;
    border: 1px solid #dfe9d9;
    border-radius: 16px;
  }
  .chunk-box strong { font-size: 18px; }
  .usage-meter { display: none; }
  .pronunciation-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .pronunciation-row button {
    grid-column: 1;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: #edf4ea;
    text-align: center;
    text-decoration: none;
  }
  .sentence-navigation {
    position: sticky;
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 8px);
    z-index: 10;
    margin: 8px -6px -6px;
    padding: 8px;
    gap: 6px;
    border: 1px solid rgba(39, 65, 59, .09);
    border-radius: 15px;
    background: rgba(255, 254, 250, .94);
    box-shadow: 0 10px 28px rgba(30, 48, 43, .13);
    backdrop-filter: blur(14px);
  }
  .sentence-navigation > button {
    min-width: 76px;
    min-height: 46px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 10px;
  }
  .sentence-navigation > button.primary { min-width: 112px; }
  .sentence-dots { gap: 4px; }
  .transfer-panel { border-radius: 0 0 20px 20px; }
  .mini-challenge { padding: 16px; border-radius: 16px; }
  .mini-challenge button, #recordButton {
    min-height: 52px;
    border-radius: 13px;
    font-size: 12px;
  }
  .sound-actions button, .sound-auto, .sound-nav button, .shadow-controls button { min-height: 50px; }
  .sound-actions { grid-template-columns: 1fr; }
  .video-wrap { padding: 10px; }
  .generated-player {
    min-height: min(560px, calc(100svh - 170px));
    padding-inline: 14px;
    border-radius: 16px;
  }
  .shadow-console { min-height: 0; }
  footer { padding-bottom: 12px; }
  dialog {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    margin: auto;
    border-radius: 22px;
  }
  dialog form { padding: 22px 18px; }
  dialog input, dialog button { min-height: 48px; }
}

@media (max-width: 390px) {
  main { padding-inline: 9px; }
  .topbar { grid-template-columns: minmax(0, 1fr) 90px; }
  .topbar h1 { font-size: 20px; }
  .add-button { width: 90px; padding-inline: 6px; }
  .source-card, .sentence-stage, .transfer-panel, .sound-focus, .sound-drill, .shadow-console {
    padding-inline: 13px;
  }
  .sentence-en { font-size: 24px; }
  .sentence-navigation > button { min-width: 68px; padding-inline: 6px; }
  .sentence-navigation > button.primary { min-width: 102px; }
}

/* Compact date library and container-aware practice typography. */
.shadow-source-controls {
  margin: -6px 0 22px;
  padding: 12px;
  border: 1px solid #dfe6df;
  border-radius: 14px;
  background: #f4f7f2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.shadow-source-controls label {
  min-width: 0;
}

.shadow-source-controls label > span,
.shadow-level-picker > span {
  display: block;
  margin-bottom: 6px;
  color: #7e8a85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.shadow-source-controls select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid #d7dfd8;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.shadow-source-controls select:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--focus-ring);
}

.shadow-level-picker {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 5px;
}

.shadow-level-picker > span {
  grid-column: 1 / -1;
}

.shadow-level-picker button {
  width: 40px;
  height: 42px;
  border: 1px solid #d7dfd8;
  border-radius: 10px;
  background: white;
  color: #75807c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.shadow-level-picker button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
  box-shadow: 0 6px 14px rgba(39, 65, 59, .16);
}

.shadow-level-picker button:disabled,
.shadow-source-controls select:disabled {
  opacity: .5;
  cursor: wait;
}

.daily-date-list {
  max-height: 156px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  scrollbar-gutter: stable;
}

.daily-date-list button {
  min-height: 50px;
  padding: 6px 4px;
  display: grid;
  place-content: center;
  gap: 4px;
}

.daily-date-list button strong {
  margin: 0;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -.02em;
}

.daily-date-list button span {
  margin: 0;
  font-size: 10px !important;
  line-height: 1;
  letter-spacing: 0;
}

.daily-studio {
  container-type: inline-size;
}

.daily-shadow-player {
  min-height: clamp(390px, 48cqi, 560px);
  padding: clamp(24px, 4cqi, 42px);
}

.daily-play-orb {
  width: clamp(66px, 8cqi, 84px);
  height: clamp(66px, 8cqi, 84px);
}

.daily-sentence {
  width: min(100%, 28ch);
  max-width: 100%;
  margin-block: clamp(22px, 3.2cqi, 34px) 8px;
  font-size: clamp(28px, 5.4cqi, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.daily-sentence .sentence-line {
  white-space: normal;
  text-wrap: balance;
}

.daily-sentence mark {
  white-space: normal;
}

.daily-studio-controls {
  margin-top: clamp(20px, 3.2cqi, 30px);
}

@container (max-width: 720px) {
  .daily-studio-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shadow-source-controls {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .shadow-level-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shadow-level-picker button {
    width: 100%;
    min-height: 46px;
  }

  .daily-date-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .daily-shadow-player {
    min-height: clamp(420px, calc(100svh - 220px), 560px);
  }
}

/* Focus English: two priorities — today's lesson and sustainable momentum. */
:root {
  --paper: #f7f6fc;
  --ink: #211f2b;
  --muted: #747180;
  --card: #ffffff;
  --line: #e8e5f0;
  --green: #6d50df;
  --mint: #eeeaff;
  --lime: #9a7cf5;
  --coral: #ff8b7d;
  --yellow: #ffd96a;
  --shadow: 0 18px 48px rgba(67, 49, 126, .09);
  --focus-ring: 0 0 0 4px rgba(121, 91, 226, .2);
}

.app-shell {
  grid-template-columns: minmax(0, 1fr);
}

main {
  width: min(1740px, 100%);
  margin-inline: auto;
  padding-inline: clamp(22px, 3vw, 52px);
}

body {
  background:
    radial-gradient(circle at 85% 4%, rgba(145, 115, 241, .11), transparent 28rem),
    linear-gradient(180deg, #fbfaff 0, #f5f4fb 100%);
}

.sidebar {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(69, 52, 122, .04);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
}

.brand-mark {
  background: linear-gradient(145deg, #8f70f4, #6546d4);
  color: white;
  box-shadow: 0 10px 24px rgba(103, 71, 214, .24);
}

.brand-mark span {
  color: #ffd469;
}

.nav-item {
  color: #898593;
}

.nav-item:hover,
.nav-item.active {
  background: #f0ecff;
  color: var(--green);
}

.nav-item.active span {
  background: linear-gradient(145deg, #8e6ef1, #6748d7);
  color: white;
}

.streak-card {
  border-bottom-color: var(--line);
  background: #fff8ec;
  border-radius: 16px;
  padding: 14px;
}

.streak-card span,
.profile small {
  color: #8a8493;
}

.profile {
  color: var(--ink);
}

.avatar {
  background: linear-gradient(145deg, #ffd0c7, #ffac9c);
  color: #5b3fbf;
}

.topbar {
  min-height: 138px;
}

.topbar h1 {
  font-size: clamp(27px, 2.5vw, 40px);
  letter-spacing: -.045em;
}

.topbar h1 span {
  color: var(--green);
}

.topbar-subtitle {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar .eyebrow {
  color: #8d72e8;
  font-weight: 800;
}

.add-button,
.primary {
  background: linear-gradient(135deg, #795be4, #6545d7);
  box-shadow: 0 10px 24px rgba(101, 69, 215, .22);
}

.auth-button {
  min-height: 44px;
  padding: 5px 11px 5px 6px;
  border: 1px solid #e3dff0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #716c7b;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(71, 54, 127, .08);
}

.auth-button:hover,
.auth-button.signed-in {
  border-color: #cfc3f5;
  color: var(--green);
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eee9ff;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}

.auth-button.signed-in .auth-avatar {
  background: linear-gradient(145deg, #8d6df0, #6747d5);
  color: white;
}

.auth-dialog form {
  padding-bottom: 24px;
}

.auth-dialog label {
  margin-top: 16px;
}

.auth-dialog label + label {
  margin-top: 12px;
}

.auth-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.auth-actions .primary,
.auth-signout {
  min-height: 46px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.auth-actions .primary {
  width: 100%;
}

.auth-signout {
  padding-inline: 14px;
  border: 1px solid #eadedb;
  background: #fff7f5;
  color: #a25b51;
}

.auth-signout[hidden] {
  display: none;
}

.daily-progress .progress-track,
.route-line,
.weekly-goal > div {
  background: #e9e5f3;
}

.progress-track i,
.route-line i,
.weekly-goal i {
  background: linear-gradient(90deg, #9b7af2, #6848d8);
}

.global-mode-tabs,
.tts-voice-panel {
  border-color: var(--line);
  background: rgba(255, 255, 255, .82);
}

.global-mode-tabs button.active {
  background: linear-gradient(135deg, #7e61e8, #6546d5);
}

.source-card,
.route-card,
.workspace-card,
.daily-control-panel,
.daily-studio {
  border-color: var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.source-card {
  background:
    radial-gradient(circle at 96% 0, rgba(156, 125, 246, .2), transparent 30%),
    linear-gradient(145deg, #ffffff 0, #faf8ff 100%);
}

.content-browser {
  border-color: #e6e1f1;
  background: rgba(255, 255, 255, .82);
}

.source-pill,
.comparison-badge {
  background: #ece6ff;
  color: #6145ce;
}

.level-picker button.active,
.daily-level-picker button.active,
.shadow-level-picker button.active {
  background: linear-gradient(145deg, #7e60e7, #6242d0);
  border-color: #6242d0;
}

.audio-panel,
.chunk-box,
.shadow-tip {
  background: #f3f0fc;
}

.route-card {
  background: #fff;
}

.momentum-card {
  margin: -8px -8px 22px;
  padding: 20px;
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .2), transparent 36%),
    linear-gradient(145deg, #8a6cf0, #6848d8);
  color: white;
  box-shadow: 0 16px 34px rgba(103, 72, 216, .24);
}

.momentum-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.momentum-card .kicker {
  color: rgba(255, 255, 255, .7);
}

.momentum-card h2 {
  margin: 5px 0 0;
  font-size: clamp(19px, 1.6vw, 25px);
  letter-spacing: -.035em;
}

.xp-pill {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .17);
  font-size: 10px;
  font-weight: 800;
}

.motivation-copy {
  min-height: 36px;
  margin: 12px 0 15px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  line-height: 1.55;
}

.week-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.week-track span {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.week-track i {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 10px;
  font-style: normal;
}

.week-track span.active i {
  border-color: white;
  background: white;
  color: var(--green);
}

.week-track span.today i {
  box-shadow: 0 0 0 3px rgba(255, 217, 105, .44);
}

.week-track small {
  color: rgba(255, 255, 255, .68);
  font-size: 9px;
  font-weight: 700;
}

.weekly-goal {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  font-size: 10px;
}

.weekly-goal > div {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
}

.weekly-goal i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ffd969;
  transition: width .3s ease;
}

.route-list li.current button {
  background: #f0ecff;
}

.route-list .done button > span,
.route-list .current button > span {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.workspace-card {
  background: white;
}

.view-switch {
  background: #f0eef6;
}

.view-switch button.active {
  color: var(--green);
}

.generated-player,
.daily-shadow-player {
  background:
    radial-gradient(circle at 50% 36%, rgba(150, 118, 241, .24), transparent 28%),
    linear-gradient(145deg, #29233c, #171424);
}

.voice-orbit,
.daily-play-orb {
  background: linear-gradient(145deg, #a88cf7, #7b5de2);
  color: white;
}

@media (max-width: 1050px) {
  .route-card {
    display: block;
  }
}

@media (max-width: 760px) {
  main {
    padding: 0 12px 28px;
  }

  .topbar {
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .topbar-subtitle {
    max-width: 230px;
    font-size: 11px;
  }

  .add-button {
    min-width: 102px;
  }

  .top-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .daily-progress {
    display: none;
  }

  .auth-button {
    min-width: 42px;
    padding: 5px;
  }

  .auth-button > span:last-child {
    display: none;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .momentum-card {
    margin: -5px -5px 18px;
  }

  .route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
