:root {
  --bg: #eef3f9;
  --paper: rgba(248, 251, 255, 0.9);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --ink: #112433;
  --muted: #5d6d7d;
  --line: rgba(17, 24, 39, 0.1);
  --panel-line: rgba(148, 163, 184, 0.2);
  --accent: #ff6b4a;
  --accent-deep: #dd4c2e;
  --accent-soft: rgba(255, 107, 74, 0.16);
  --lime: #d6e96a;
  --teal: #16343a;
  --teal-soft: rgba(22, 52, 58, 0.1);
  --gold: #f7bf5a;
  --blue-soft: rgba(56, 189, 248, 0.16);
  --indigo-soft: rgba(99, 102, 241, 0.16);
  --green-soft: rgba(34, 197, 94, 0.16);
  --gold-soft: rgba(250, 204, 21, 0.2);
  --slate-soft: rgba(22, 52, 58, 0.11);
  --liquid-blue: rgba(73, 167, 255, 0.22);
  --liquid-indigo: rgba(126, 112, 255, 0.18);
  --liquid-mint: rgba(57, 193, 142, 0.16);
  --liquid-warm: rgba(255, 134, 102, 0.18);
  --shadow-lg: 0 36px 86px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 22px 44px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

body.page-home {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 107, 74, 0.13), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(99, 102, 241, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f8fd 0%, #ebf1f7 100%);
}

body.page-player {
  background:
    radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.12), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(34, 197, 94, 0.1), transparent 24%),
    linear-gradient(180deg, #f5f8fc 0%, #edf2f8 100%);
}

.page-shell {
  width: 100%;
}

.home-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.home-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 26px 20px;
  background:
    radial-gradient(circle at top left, rgba(45, 123, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #1a2430 0%, #101923 100%);
  color: #f5f7fb;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 24px 0 46px rgba(15, 23, 42, 0.12);
}

.home-sidebar-top {
  display: grid;
  gap: 26px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.18);
}

.home-brand-mark .icon {
  width: 22px;
  height: 22px;
}

.home-brand-copy {
  display: grid;
  gap: 4px;
}

.home-brand-copy strong {
  font-size: 28px;
  font-weight: 800;
}

.home-brand-copy span {
  color: rgba(245, 247, 251, 0.7);
  font-size: 13px;
}

.home-sidebar-nav {
  display: grid;
  gap: 12px;
}

.home-nav-item,
.home-nav-link {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  color: rgba(245, 247, 251, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.home-nav-item:hover,
.home-nav-link:hover,
.home-nav-item.active {
  background: linear-gradient(135deg, #2d7bff, #1a62eb);
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
  box-shadow: 0 18px 28px rgba(27, 98, 235, 0.28);
}

.home-sidebar-bottom {
  display: grid;
  gap: 14px;
}

.home-user-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.home-user-card strong {
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

.home-user-card span {
  color: rgba(245, 247, 251, 0.68);
  font-size: 13px;
}

.home-logout {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.08);
}

.home-main {
  display: grid;
  gap: 22px;
  padding: 28px 28px 36px;
}

.home-hero-panel,
.home-overview-panel,
.home-series-panel,
.home-course-panel {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-md);
}

.home-hero-panel {
  padding: 34px;
}

.home-title {
  margin: 18px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.home-copy {
  max-width: 780px;
  margin: 0;
  color: #606572;
  font-size: 16px;
  line-height: 1.75;
}

.home-search {
  margin-top: 22px;
  max-width: 720px;
  background: #f6f8fc;
}

.home-overview-panel {
  padding: 24px 26px;
}

.home-kpi-grid {
  margin-top: 16px;
}

.home-series-panel,
.home-course-panel {
  padding: 24px;
}

.home-series-only-panel {
  width: 100%;
}

.home-panel-copy {
  margin: 6px 0 18px;
  color: #6a717d;
  line-height: 1.65;
}

.home-folder-groups {
  display: grid;
  gap: 18px;
}

body.page-home .folder-category-group {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(244, 248, 253, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.page-home .folder-category-head {
  align-items: center;
  padding: 0;
  margin-bottom: 14px;
}

body.page-home .folder-pill-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

body.page-home .pill {
  min-height: 0;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
}

body.page-home .pill.has-cover {
  padding-top: 14px;
}

body.page-home .pill-media {
  margin-bottom: 14px;
  max-width: none;
  border-radius: 16px;
}

body.page-home .pill-title {
  font-size: 18px;
  line-height: 1.4;
}

body.page-home .pill-meta {
  margin-top: 6px;
  font-size: 14px;
}

body.page-home .pill-copy {
  margin-top: 8px;
  font-size: 13px;
}

.player-page-shell {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.player-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.player-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: #eef3fb;
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
}

.player-header-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.player-header-kicker {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-header-user {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-all;
}

.player-header-role {
  color: #6b7280;
  font-size: 13px;
}

.player-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-header-actions .logout-btn {
  width: auto;
  margin-top: 0;
  min-width: 132px;
}

.admin-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.player-page-main {
  display: grid;
  gap: 20px;
}

.player-stage-panel {
  padding: 20px;
  border-radius: 28px;
}

.player-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.player-stage-title {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 46px);
}

.player-stage-copy {
  max-width: 920px;
}

.player-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
}

.player-stage-column {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.player-subtitle-rail {
  min-height: 100%;
}

.player-page-controls {
  padding: 18px;
  border-radius: 24px;
  background: rgba(245, 247, 251, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.player-inline-tools {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(240px, 0.8fr);
  gap: 14px;
}

.player-select-card,
.player-inline-note {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f7f9fc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.player-select-card span,
.player-inline-note strong {
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.player-select-card select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: white;
  padding: 0 14px;
}

.player-inline-note span {
  color: #6b7280;
  line-height: 1.6;
  font-size: 13px;
}

.player-timeline-list {
  max-height: min(72vh, 920px);
}

.player-support-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.player-goal-card {
  padding: 22px;
  border-radius: 26px;
}

.player-goal-title {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.player-goal-copy {
  margin: 10px 0 18px;
  color: #636b78;
  line-height: 1.7;
}

.player-tool-column {
  display: grid;
  gap: 20px;
}

.player-vocab-panel,
.player-exam-panel {
  padding: 22px;
}

@media (max-width: 1180px) {
  .home-shell {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: relative;
    min-height: auto;
    gap: 18px;
  }

  .player-study-layout,
  .player-support-grid,
  .player-inline-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-main,
  .player-page-shell {
    padding: 18px;
  }

  .player-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .player-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .home-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-nav-item,
  .home-nav-link {
    min-height: 50px;
    justify-content: center;
    font-size: 15px;
  }

  .home-title {
    font-size: 34px;
  }

  .home-main,
  .player-page-shell {
    padding: 14px;
  }

  .player-stage-head {
    flex-direction: column;
  }

  .player-page-header,
  .player-stage-panel,
  .home-hero-panel,
  .home-overview-panel,
  .home-series-panel,
  .home-course-panel {
    border-radius: 22px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 74, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(45, 123, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 90%);
}

body::after {
  content: "";
  position: fixed;
  inset: -10% -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, var(--liquid-warm), transparent 16%),
    radial-gradient(circle at 82% 14%, var(--liquid-blue), transparent 20%),
    radial-gradient(circle at 72% 78%, var(--liquid-indigo), transparent 18%),
    radial-gradient(circle at 18% 84%, var(--liquid-mint), transparent 18%);
  filter: blur(30px) saturate(120%);
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
  animation: liquidDrift 20s ease-in-out infinite alternate;
}

body.performance-lite::before,
body.performance-lite::after {
  display: none;
}

body.performance-lite .auth-orb,
body.performance-lite .liquid-blob,
body.performance-lite .liquid-card,
body.performance-lite .liquid-capsule {
  filter: none;
  animation: none !important;
}

body.performance-lite * {
  transition: none !important;
  animation: none !important;
}

body.performance-frozen {
  background-image: none !important;
  background: #f6f8fb !important;
}

body.performance-lite .panel,
body.performance-lite .practice-card,
body.performance-lite .timeline-item,
body.performance-lite .vocab-item,
body.performance-lite .deliberate-item,
body.performance-lite .course-card,
body.performance-lite .series-card,
body.performance-lite .hero-card {
  box-shadow: none !important;
}

.timeline-list,
.vocab-list,
.deliberate-library,
.deliberate-records,
.course-grid,
.series-grid {
  content-visibility: auto;
  contain-intrinsic-size: 900px 800px;
}

#app,
.page-shell,
.home-shell,
.shell,
.player-page-shell,
.auth-shell {
  position: relative;
  z-index: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

#app {
  width: 100%;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loading-card {
  display: grid;
  gap: 8px;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.loading-card span {
  font-weight: 500;
  color: #6b7280;
}

.auth-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.7;
}

.auth-orb-left {
  left: -60px;
  top: -40px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.36), transparent 70%);
}

.auth-orb-right {
  right: -60px;
  bottom: -40px;
  background: radial-gradient(circle, rgba(214, 233, 106, 0.44), transparent 70%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  border-radius: 36px;
  padding: 34px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.auth-title {
  margin: 18px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-label {
  display: grid;
  gap: 8px;
}

.auth-label span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-label input,
.auth-label select,
.auth-label textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  padding: 16px 18px;
  outline: 0;
}

.auth-label textarea {
  resize: vertical;
  min-height: 140px;
}

.status-text {
  min-height: 22px;
  margin: 0;
  color: #b45309;
  line-height: 1.6;
  font-size: 13px;
  font-weight: 700;
  white-space: pre-wrap;
}

.auth-submit {
  margin-top: 6px;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  font-weight: 800;
  box-shadow: 0 20px 36px rgba(255, 107, 74, 0.22);
}

.admin-entry-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
}

.auth-notice-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.auth-notice-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 23, 23, 0.06);
  box-shadow: var(--shadow-sm);
}

.auth-notice-card strong {
  font-size: 14px;
}

.auth-notice-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.94)),
    radial-gradient(circle at top left, rgba(255, 107, 74, 0.08), transparent 30%);
  box-shadow: var(--shadow-lg);
  padding: 34px;
  backdrop-filter: blur(18px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 233, 106, 0.48), rgba(214, 233, 106, 0));
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.brand-stack {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.brand-title {
  margin: 18px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.brand-copy {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.kpi-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.kpi-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hero-side {
  min-width: 320px;
  width: 320px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  align-content: start;
}

.pulse-card {
  border-radius: 30px;
  background: linear-gradient(145deg, #16343a, #1f454c);
  color: #f7f4ee;
  padding: 22px;
  box-shadow: 0 28px 60px rgba(22, 52, 58, 0.3);
}

.pulse-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.pulse-copy {
  margin: 12px 0 18px;
  color: rgba(247, 244, 238, 0.78);
  line-height: 1.65;
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-chip {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
}

.quick-chip strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247, 244, 238, 0.64);
}

.quick-chip span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(245, 248, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.hero-account-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

.hero-account-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workspace {
  min-width: 0;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.88));
  backdrop-filter: blur(18px);
  border-radius: 34px;
  box-shadow: var(--shadow-sm);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.03));
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.72;
  filter: blur(10px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}

.panel-stage::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.92), rgba(56, 189, 248, 0.12));
}

.panel-library::before {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.92), rgba(99, 102, 241, 0.12));
}

.panel-practice::before {
  background: linear-gradient(90deg, rgba(255, 107, 74, 0.92), rgba(255, 107, 74, 0.12));
}

.panel-vocab::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.92), rgba(34, 197, 94, 0.12));
}

.panel-exam::before {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.92), rgba(250, 204, 21, 0.12));
}

.library-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - 36px);
  min-height: 780px;
  position: sticky;
  top: 18px;
  overflow: auto;
  overscroll-behavior: auto;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
}

.section-title {
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
}

.library-section {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.library-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.folder-pills {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pill {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: left;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid var(--pill-border, var(--line));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--pill-surface, rgba(255, 255, 255, 0.86)));
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.04);
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
  min-height: 132px;
  align-content: start;
}

.pill::before {
  content: "";
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pill-accent, var(--teal)), var(--pill-soft, rgba(22, 52, 58, 0.18)));
}

.pill.has-cover::before {
  display: none;
}

.pill-media {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(22, 52, 58, 0.06);
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.pill-media-landscape {
  aspect-ratio: 16 / 9;
}

.pill-media-portrait {
  max-width: 168px;
  aspect-ratio: 3 / 4;
}

.pill-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pill-title {
  color: var(--pill-accent, var(--ink));
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.pill-meta {
  color: var(--pill-accent, var(--teal));
  font-size: 12px;
  font-weight: 800;
}

.pill-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: var(--pill-accent, rgba(255, 107, 74, 0.32));
  box-shadow: 0 16px 28px var(--pill-shadow, rgba(23, 23, 23, 0.08));
}

.pill.active {
  background: linear-gradient(135deg, var(--pill-soft, rgba(255, 107, 74, 0.14)), rgba(255, 255, 255, 0.96));
  border-color: var(--pill-accent, rgba(255, 107, 74, 0.32));
  color: var(--ink);
  box-shadow: 0 18px 30px var(--pill-shadow, rgba(23, 23, 23, 0.08));
}

.folder-featured-group,
.folder-category-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(246, 249, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.library-list-panel {
  gap: 0;
  min-height: 0;
}

.library-selection-panel {
  padding: 18px;
}

.course-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.course-summary strong {
  font-size: 14px;
  font-weight: 800;
}

.course-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.course-summary-stats {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.06);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.library-panel::-webkit-scrollbar,
.timeline-list::-webkit-scrollbar {
  width: 8px;
}

.library-panel::-webkit-scrollbar-thumb,
.timeline-list::-webkit-scrollbar-thumb {
  background: rgba(23, 23, 23, 0.1);
  border-radius: 999px;
}

.folder-block {
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 23, 23, 0.04);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.folder-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.folder-name {
  font-weight: 800;
  font-size: 14px;
}

.folder-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.folder-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.course-card {
  display: grid;
  gap: 14px;
  width: 100%;
  text-align: left;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid transparent;
  background: rgba(249, 247, 242, 0.7);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.course-card-body {
  display: grid;
  gap: 0;
}

.course-cover {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(22, 52, 58, 0.06);
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.course-cover-landscape {
  aspect-ratio: 16 / 9;
}

.course-cover-portrait {
  width: min(180px, 100%);
  aspect-ratio: 3 / 4;
}

.course-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 74, 0.26);
  box-shadow: 0 14px 28px rgba(27, 22, 17, 0.08);
}

.course-card.active {
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.12), rgba(255, 255, 255, 0.92));
  border-color: rgba(255, 107, 74, 0.34);
}

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

.course-main {
  min-width: 0;
  flex: 1;
}

.course-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.course-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.08);
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.course-kicker-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.course-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.course-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 107, 74, 0.16);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.course-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #415466;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.04);
}

.tag.ready {
  background: linear-gradient(180deg, rgba(214, 233, 106, 0.34), rgba(255, 255, 255, 0.9));
  border-color: rgba(163, 184, 24, 0.2);
  color: #536109;
}

.sidebar-footer {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.shortcut-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.shortcut {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.shortcut strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
}

.shortcut span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.user-panel {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(242, 246, 250, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.user-panel-logout {
  display: none;
}

.user-panel strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-email {
  margin-top: 8px;
  font-weight: 800;
  line-height: 1.6;
  word-break: break-all;
}

.user-role {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(22, 52, 58, 0.12);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.logout-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.14);
  font-weight: 800;
}

.hero-logout {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.main {
  display: grid;
  gap: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 20px;
  align-items: start;
}

.stage-panel {
  padding: 22px;
}

.stage-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 430px);
  gap: 20px;
  align-items: start;
}

.stage-player-column {
  min-width: 0;
}

.stage-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.stage-summary {
  min-width: 0;
  flex: 1;
}

.lesson-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.stage-title {
  margin: 14px 0 8px;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.stage-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 780px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.status-chip[data-tone="warm"] {
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.16), rgba(255, 255, 255, 0.94));
  color: var(--accent-deep);
  border-color: rgba(255, 107, 74, 0.22);
}

.status-chip[data-tone="cool"] {
  background: linear-gradient(180deg, rgba(22, 52, 58, 0.12), rgba(255, 255, 255, 0.94));
  color: var(--teal);
  border-color: rgba(22, 52, 58, 0.18);
}

.player-wrap {
  --player-aspect: 16 / 9;
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 34px;
  background:
    radial-gradient(circle at top center, rgba(255, 107, 74, 0.15), transparent 28%),
    linear-gradient(180deg, #221b18 0%, #0d0d0d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.player-wrap video,
.player-empty {
  display: block;
  width: 100%;
  aspect-ratio: var(--player-aspect);
}

.player-wrap video {
  background: transparent;
  object-fit: contain;
}

.player-wrap.is-portrait,
.player-wrap.is-square {
  margin-inline: auto;
}

.player-wrap.is-portrait {
  width: min(100%, 520px);
}

.player-wrap.is-square {
  width: min(100%, 680px);
}

.player-empty {
  display: grid;
  place-items: center;
  padding: 32px;
}

.empty-copy {
  max-width: 520px;
  text-align: center;
  color: rgba(255, 248, 240, 0.74);
}

.empty-copy strong {
  display: block;
  margin-top: 22px;
  margin-bottom: 10px;
  color: #fff4e9;
  font-size: 20px;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.overlay-subtitle {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(88%, 940px);
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(9, 9, 9, 0.62);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fef7ef;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.5;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.overlay-subtitle.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.player-controls {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(244, 249, 252, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.primary-btn.is-busy {
  opacity: 0.88;
  box-shadow: 0 12px 28px rgba(255, 107, 74, 0.2);
}

.series-quick-switch {
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(229, 244, 255, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.12);
}

.series-quick-switch.is-empty {
  background: linear-gradient(180deg, rgba(247, 244, 239, 0.92), rgba(255, 255, 255, 0.92));
  border-color: rgba(22, 52, 58, 0.08);
  box-shadow: 0 12px 22px rgba(22, 52, 58, 0.06);
}

.series-quick-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.series-quick-head strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--teal);
}

.series-quick-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.series-quick-list {
  display: grid;
  gap: 12px;
}

.series-quick-select-wrap {
  display: grid;
  gap: 8px;
}

.series-quick-select-wrap span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.series-quick-select-wrap select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.series-quick-current {
  display: grid;
}

.series-quick-item {
  display: grid;
  gap: 10px;
  min-height: 96px;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 255, 0.94));
  color: var(--ink);
  box-shadow: 0 14px 22px rgba(56, 189, 248, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.series-quick-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.series-quick-item:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.24);
}

.series-quick-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(255, 255, 255, 0.98));
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 14px 22px rgba(56, 189, 248, 0.12);
}

.series-quick-item.compact {
  min-height: 0;
}

.series-quick-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.08);
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.series-quick-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.series-quick-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.series-quick-badge.semantic {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.series-quick-badge.shadowing {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.series-quick-badge.pending {
  background: rgba(22, 52, 58, 0.08);
  color: var(--muted);
}

.series-quick-title {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 800;
  color: var(--ink);
}

.series-quick-empty {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.series-quick-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.mobile-stage-note {
  display: none;
}

.study-rail {
  min-width: 0;
  border-radius: 30px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(236, 249, 255, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 30px rgba(56, 189, 248, 0.08);
}

.study-rail-head {
  margin-bottom: 14px;
}

.study-rail-copy {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.lesson-test-toolbar {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.lesson-test-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lesson-test-btn.is-passed {
  border-color: rgba(16, 185, 129, 0.18);
  color: #047857;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.98));
}

.lesson-test-btn.is-active {
  border-color: rgba(255, 107, 74, 0.28);
  color: var(--accent-deep);
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.14), rgba(255, 255, 255, 0.98));
}

.lesson-test-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lesson-pass-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lesson-pass-badge.pending {
  background: linear-gradient(180deg, rgba(22, 52, 58, 0.1), rgba(255, 255, 255, 0.94));
  color: var(--muted);
}

.lesson-pass-badge.semantic {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(255, 255, 255, 0.94));
  color: #1d4ed8;
}

.lesson-pass-badge.shadowing {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(255, 255, 255, 0.94));
  color: #047857;
}

.lesson-test-popup {
  display: none;
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 107, 74, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 28px rgba(22, 52, 58, 0.08);
  backdrop-filter: blur(12px);
}

.lesson-test-popup.visible {
  display: grid;
  gap: 12px;
}

.lesson-test-summary {
  display: none;
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  background: linear-gradient(180deg, rgba(244, 253, 249, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 28px rgba(16, 185, 129, 0.08);
}

.lesson-test-summary.visible {
  display: grid;
  gap: 14px;
}

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

.lesson-test-summary-head strong {
  display: block;
  font-size: 15px;
  color: #047857;
}

.lesson-test-summary-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.lesson-test-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.lesson-test-summary-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.lesson-test-summary-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.lesson-test-summary-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.lesson-test-summary-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-shell {
  position: relative;
}

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

.lesson-test-popup-head strong {
  display: block;
  font-size: 14px;
  color: var(--teal);
}

.lesson-test-popup-head span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.lesson-test-close {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(22, 52, 58, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.lesson-test-state {
  display: grid;
  gap: 8px;
}

.lesson-test-state strong {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.lesson-test-state span {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.lesson-test-question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lesson-test-mode-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.12);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.lesson-test-mode-tag.distractor {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.lesson-test-time {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
}

.lesson-test-popup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lesson-test-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.lesson-test-action:hover {
  transform: translateY(-1px);
}

.lesson-test-action.primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  box-shadow: 0 14px 26px rgba(255, 107, 74, 0.22);
}

.lesson-test-action.secondary {
  border: 1px solid rgba(22, 52, 58, 0.14);
  background: linear-gradient(180deg, rgba(255, 246, 241, 0.98), rgba(255, 255, 255, 0.96));
  color: var(--accent-deep);
}

.lesson-test-action.ghost {
  border: 1px solid rgba(22, 52, 58, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--teal);
}

.lesson-test-mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 7;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(251, 247, 242, 0.94), rgba(255, 255, 255, 0.97));
  border: 1px solid rgba(255, 107, 74, 0.1);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lesson-test-mask.visible {
  display: grid;
}

.lesson-test-mask.peeking {
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.88), rgba(255, 255, 255, 0.92));
}

.lesson-test-mask-card {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(22, 52, 58, 0.08);
  box-shadow: 0 16px 28px rgba(22, 52, 58, 0.08);
}

.lesson-test-mask-card strong {
  font-size: 14px;
  color: var(--teal);
}

.lesson-test-mask-card span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.lesson-test-mask-card small {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.mono {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.progress-bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.08);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.control-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.control-cluster,
.speed-cluster {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.icon-btn,
.primary-btn,
.ghost-btn,
.mini-btn,
.toggle-btn,
.speed-btn {
  border-radius: 18px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.icon-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.mini-btn:hover,
.toggle-btn:hover,
.speed-btn:hover {
  transform: translateY(-1px);
}

.icon-btn {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(229, 238, 246, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.icon-btn svg,
.control-cluster > .primary-btn svg {
  width: 22px;
  height: 22px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  box-shadow: 0 20px 36px rgba(255, 107, 74, 0.28);
  font-weight: 800;
}

.ghost-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(239, 245, 250, 0.94));
  color: var(--teal);
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.ghost-btn {
  min-height: 50px;
  padding: 0 18px;
}

.mini-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 12px;
}

.control-cluster > .primary-btn {
  width: 72px;
  height: 72px;
  min-height: 72px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.toggle-btn {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(239, 245, 250, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.07);
}

.toggle-btn.active {
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.22), rgba(255, 250, 247, 0.98));
  color: var(--accent-deep);
  border-color: rgba(255, 107, 74, 0.28);
  box-shadow: 0 16px 28px rgba(255, 107, 74, 0.12);
}

.speed-btn {
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(239, 245, 250, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.speed-btn.active {
  background: linear-gradient(180deg, rgba(22, 52, 58, 0.18), rgba(240, 247, 248, 0.96));
  color: #123338;
  border-color: rgba(22, 52, 58, 0.24);
  box-shadow: 0 14px 24px rgba(22, 52, 58, 0.1);
}

.practice-panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.panel-stage .panel-head strong,
.panel-stage .section-title strong,
.study-rail .panel-head strong {
  background: var(--blue-soft);
  color: #0d6d90;
}

.panel-library .panel-head strong,
.panel-library .section-title strong {
  background: var(--indigo-soft);
  color: #4452c9;
}

.panel-practice .panel-head strong {
  background: rgba(255, 107, 74, 0.12);
  color: var(--accent-deep);
}

.panel-vocab .panel-head strong,
.panel-vocab .section-title strong {
  background: var(--green-soft);
  color: #177747;
}

.panel-exam .panel-head strong,
.panel-exam .section-title strong {
  background: var(--gold-soft);
  color: #8a5a00;
}

.timeline-list {
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.stage-timeline-list {
  max-height: 620px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.05);
  margin-bottom: 12px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.timeline-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 74, 0.2);
}

.timeline-item.active {
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.14), rgba(255, 255, 255, 0.96));
  border-color: rgba(255, 107, 74, 0.28);
  box-shadow: 0 14px 24px rgba(255, 107, 74, 0.08);
}

.time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 34px;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.08);
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.timeline-text {
  font-size: 15px;
  line-height: 1.7;
}

.timeline-word {
  cursor: pointer;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
}

.timeline-word:hover {
  background: rgba(14, 165, 233, 0.12);
  color: #0b7fb4;
}

.timeline-copy {
  display: grid;
  gap: 10px;
}

.stress-word {
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(255, 107, 74, 0.16);
  color: #b45309;
  font-weight: 800;
}

.weak-word {
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  font-weight: 700;
}

.timeline-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  border: 1px solid transparent;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.04);
}

.hint-chip.stress {
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.16), rgba(255, 255, 255, 0.94));
  border-color: rgba(255, 107, 74, 0.18);
  color: #b45309;
}

.hint-chip.weak {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.16), rgba(255, 255, 255, 0.94));
  border-color: rgba(100, 116, 139, 0.18);
  color: #475569;
}

.hint-chip.link {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(255, 255, 255, 0.94));
  border-color: rgba(14, 165, 233, 0.18);
  color: #0b7fb4;
}

.hint-chip.rhythm {
  background: linear-gradient(180deg, rgba(22, 52, 58, 0.14), rgba(255, 255, 255, 0.94));
  border-color: rgba(22, 52, 58, 0.16);
  color: #16343a;
}

.practice-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.library-stack {
  display: flex;
  flex: 0 0 auto;
  min-height: 0;
  flex-direction: column;
  overflow: visible;
}

.admin-card {
  border-radius: 24px;
  padding: 18px;
  background: rgba(22, 52, 58, 0.05);
  border: 1px solid rgba(22, 52, 58, 0.1);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #0f766e;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 13px;
  font-weight: 700;
}

.content-admin-panel {
  padding: 22px;
}

.content-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-admin-wide {
  grid-column: 1 / -1;
}

.content-admin-panel .practice-card > span {
  font-size: 24px;
  line-height: 1.2;
  word-break: break-word;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-file-picker input[type="file"] {
  padding: 12px 0 0;
}

.admin-file-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-batch-item {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 23, 23, 0.06);
  margin-top: 14px;
}

.admin-batch-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-batch-head strong {
  font-size: 14px;
  color: var(--muted);
}

.mini-ghost-btn {
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 107, 74, 0.08);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
}

.danger-btn {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.15);
}

.practice-card {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.practice-card strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.practice-card span {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  letter-spacing: -0.05em;
}

.practice-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

#recentStripSection,
#stageSection,
#librarySection,
#vocabSection,
#examSection {
  scroll-margin-top: 120px;
}

.recent-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.recent-strip-copy,
.recent-strip-stats {
  border-radius: 28px;
  border: 1px solid rgba(255, 107, 74, 0.16);
  background: linear-gradient(180deg, rgba(255, 244, 238, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.recent-strip-copy {
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.recent-strip-copy strong {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.recent-strip-copy span {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.recent-strip-stats {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.practice-card-compact {
  min-height: 0;
}

.practice-card-compact span {
  font-size: 30px;
}

.practice-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.section-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 14px;
  z-index: 6;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 20px rgba(15, 23, 42, 0.05);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.section-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.section-link-goal {
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.16), rgba(255, 248, 244, 0.96));
  border-color: rgba(255, 107, 74, 0.24);
  color: var(--accent-deep);
}

.section-link-stage {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(244, 251, 255, 0.96));
  border-color: rgba(56, 189, 248, 0.24);
  color: #0d6d90;
}

.section-link-library {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(246, 246, 255, 0.96));
  border-color: rgba(99, 102, 241, 0.24);
  color: #4452c9;
}

.section-link-vocab {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(245, 255, 248, 0.96));
  border-color: rgba(34, 197, 94, 0.24);
  color: #177747;
}

.section-link-exam {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.2), rgba(255, 251, 236, 0.96));
  border-color: rgba(250, 204, 21, 0.3);
  color: #8a5a00;
}

.section-link-recent {
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.14), rgba(255, 249, 245, 0.96));
  border-color: rgba(255, 107, 74, 0.22);
  color: var(--accent-deep);
}

.section-link-feedback {
  background: linear-gradient(180deg, rgba(22, 52, 58, 0.14), rgba(244, 248, 249, 0.96));
  border-color: rgba(22, 52, 58, 0.2);
  color: #244b52;
}

.section-link-typing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(45, 123, 255, 0.14), rgba(245, 249, 255, 0.96));
  border-color: rgba(45, 123, 255, 0.2);
  color: #1253cb;
}

.recent-lesson-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recent-lesson-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 74, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 243, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 20px rgba(255, 107, 74, 0.07);
  text-align: left;
}

.recent-lesson-order {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(22, 52, 58, 0.08);
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.recent-lesson-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recent-lesson-copy strong {
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-lesson-copy small {
  color: var(--muted);
  line-height: 1.5;
}

.recent-lesson-training {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.recent-lesson-training-pending {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.recent-lesson-action {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.recent-empty {
  margin-top: 2px;
}

.goal-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 18px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.goal-summary,
.goal-progress-card {
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 247, 243, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.goal-summary {
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.goal-summary strong {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.goal-summary span {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.goal-progress-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.goal-progress-top,
.goal-progress-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.goal-progress-top strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.goal-progress-top span {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
}

.goal-progress-bar {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.08);
}

.goal-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 22px rgba(255, 107, 74, 0.26);
}

.goal-progress-bottom span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.goal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.goal-actions > * {
  flex: 1 1 160px;
}

.goal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.study-rail-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.folder-category-group {
  gap: 14px;
}

.folder-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 52, 58, 0.08), rgba(22, 52, 58, 0.04));
  border: 1px solid rgba(22, 52, 58, 0.08);
}

.folder-category-head strong {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.folder-category-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.folder-category-head-featured {
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.1), rgba(255, 107, 74, 0.05));
  border-color: rgba(255, 107, 74, 0.12);
}

.folder-category-head-featured strong {
  color: var(--accent-deep);
}

.folder-pill-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.folder-pill-grid-featured {
  grid-template-columns: minmax(240px, 320px);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.word-panel,
.vocab-panel {
  padding: 22px;
}

.panel-stage {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(180deg, rgba(236, 249, 255, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%);
}

.panel-library {
  border-color: rgba(99, 102, 241, 0.22);
  background:
    linear-gradient(180deg, rgba(241, 243, 255, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 34%);
}

.panel-practice {
  border-color: rgba(255, 107, 74, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 245, 240, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top right, rgba(255, 107, 74, 0.14), transparent 32%);
}

.panel-vocab {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    linear-gradient(180deg, rgba(240, 252, 244, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 34%);
}

.panel-exam {
  border-color: rgba(250, 204, 21, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 250, 233, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.14), transparent 34%);
}

.word-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.word-search-row input {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  outline: 0;
  color: var(--ink);
}

.word-chip-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.word-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 52, 58, 0.12), rgba(245, 248, 250, 0.96));
  border: 1px solid rgba(22, 52, 58, 0.16);
  color: var(--teal);
  font-weight: 800;
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.05);
}

.word-chip.muted {
  color: var(--muted);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.94));
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.2);
}

.lookup-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 107, 74, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 107, 74, 0.14);
}

.lookup-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.lookup-card > span,
.lookup-definition,
.lookup-meaning {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.72;
}

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

.lookup-head span {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lookup-audios,
.lookup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lookup-phonetics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lookup-phonetics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 23, 23, 0.06);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.lookup-meaning {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
}

.lookup-example {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.lookup-example strong,
.lookup-example span,
.lookup-example small {
  display: block;
}

.lookup-example strong {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.lookup-example span,
.lookup-example small {
  line-height: 1.7;
}

.lookup-example small {
  margin-top: 8px;
  color: var(--muted);
}

.word-popup {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.word-popup.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.word-popup-body {
  width: 100%;
}

.lookup-popup-shell {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 252, 246, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 48px rgba(22, 52, 58, 0.2);
  backdrop-filter: blur(18px);
}

.lookup-popup-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.lookup-popup-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.lookup-popup-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lookup-toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.lookup-language-toggle {
  display: inline-flex;
  gap: 8px;
}

.lookup-language-toggle .mini-btn.active {
  background: rgba(255, 107, 74, 0.14);
  border-color: rgba(255, 107, 74, 0.22);
  color: var(--accent-deep);
}

.study-rail-actions .mini-btn {
  background: linear-gradient(180deg, rgba(255, 107, 74, 0.14), rgba(255, 255, 255, 0.98));
  border-color: rgba(255, 107, 74, 0.18);
  color: var(--accent-deep);
}

.lookup-popup-copy {
  margin-top: 14px;
}

.lookup-popup-copy small,
.lookup-popup-status {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.lookup-popup-status {
  margin-top: 14px;
}

.vocab-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vocab-stat span {
  font-size: 28px;
}

.vocab-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.compact-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-card {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.panel-vocab .compact-card {
  border-color: rgba(34, 197, 94, 0.12);
  background: linear-gradient(180deg, rgba(244, 253, 246, 0.98), rgba(255, 255, 255, 0.95));
}

.panel-exam .compact-card {
  border-color: rgba(250, 204, 21, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 240, 0.98), rgba(255, 255, 255, 0.95));
}

.compact-card-standalone {
  margin-top: 18px;
}

.compact-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  text-align: left;
  background: transparent;
  border: 0;
}

.compact-toggle span,
.compact-toggle small {
  display: block;
}

.compact-toggle span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.compact-toggle small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.compact-toggle::after {
  content: "展开";
  flex: none;
  min-width: 46px;
  text-align: center;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.compact-toggle.active {
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(255, 255, 255, 0.96));
}

.panel-vocab .compact-toggle.active {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.96));
}

.panel-exam .compact-toggle.active {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.compact-toggle.active::after {
  content: "收起";
  color: var(--accent-deep);
}

.compact-panel {
  display: none;
  padding: 0 18px 18px;
}

.compact-panel.expanded {
  display: block;
}

.vocab-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.vocab-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(34, 197, 94, 0.12);
  content-visibility: auto;
  contain-intrinsic-size: 140px;
}

.vocab-item.due {
  background: linear-gradient(145deg, rgba(255, 107, 74, 0.08), rgba(255, 255, 255, 0.94));
  border-color: rgba(255, 107, 74, 0.16);
}

.vocab-item.exam-ready {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.14), rgba(255, 255, 255, 0.96));
  border-color: rgba(250, 204, 21, 0.24);
}

.vocab-item strong {
  display: block;
  font-size: 16px;
}

.vocab-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.65;
}

.vocab-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.vocab-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.08);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.vocab-badge.exam {
  background: rgba(250, 204, 21, 0.22);
  color: #8a5a00;
}

.vocab-badge.passed {
  background: rgba(34, 197, 94, 0.18);
  color: #177747;
}

.manual-vocab-form {
  display: none;
  margin-top: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.manual-vocab-form.expanded {
  display: block;
}

.manual-vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manual-vocab-wide {
  grid-column: 1 / -1;
}

.manual-vocab-rows-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #1f2937;
}

.manual-vocab-rows {
  display: grid;
  gap: 10px;
}

.manual-vocab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.manual-vocab-row input {
  width: 100%;
}

.vocab-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.vocab-page-info {
  display: grid;
  gap: 2px;
  font-weight: 700;
  color: #1f2937;
}

.vocab-page-info small {
  font-weight: 500;
  color: #6b7280;
}

.vocab-page-actions {
  display: flex;
  gap: 8px;
}

.manual-vocab-actions {
  margin-top: 16px;
}

.deliberate-kpis {
  margin-top: 16px;
}

.deliberate-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 220px) auto;
  gap: 12px;
  margin-top: 0;
  align-items: end;
}

.deliberate-bulk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.deliberate-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deliberate-bulk-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #374151;
}

.deliberate-bulk-count input {
  width: 84px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.deliberate-search,
.deliberate-tag-select {
  min-width: 0;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 23, 23, 0.08);
  font-weight: 700;
  color: var(--teal);
}

.checkbox-chip input {
  width: 16px;
  height: 16px;
}

.deliberate-actions {
  flex-wrap: wrap;
}

.selected-chip-list,
.deliberate-library,
.deliberate-records {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.selected-chip-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.selected-chip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.92));
  text-align: left;
}

.selected-chip span {
  font-weight: 800;
  color: var(--ink);
}

.selected-chip small {
  color: var(--muted);
  line-height: 1.55;
}

.deliberate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.deliberate-item.selected {
  border-color: rgba(20, 184, 166, 0.22);
  background: linear-gradient(145deg, rgba(239, 252, 250, 0.96), rgba(255, 255, 255, 0.92));
}

.deliberate-item-main strong {
  display: block;
  font-size: 17px;
}

.deliberate-item-main p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.deliberate-item-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.mini-btn.active {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.22);
  color: #0f8f67;
}

.mini-btn.danger {
  color: #c2413b;
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(255, 245, 245, 0.88);
}

.vocab-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vocab-mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.08);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.vocab-mini-chip.listening {
  background: rgba(255, 107, 74, 0.12);
  color: var(--accent-deep);
}

.vocab-mini-chip.practiced {
  background: rgba(16, 185, 129, 0.16);
  color: #0f766e;
}

.vocab-mini-chip.passed {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.deliberate-item.practiced {
  border-color: rgba(16, 185, 129, 0.3);
}

.practice-record-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(34, 197, 94, 0.1);
}

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

.practice-record-head strong {
  font-size: 16px;
  line-height: 1.35;
}

.practice-record-card p,
.practice-record-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.68;
}

.practice-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.deliberate-card {
  width: min(92vw, 820px);
}

.deliberate-focus-card,
.deliberate-summary-card,
.deliberate-essay-card {
  display: grid;
  gap: 16px;
}

.deliberate-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.deliberate-focus {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(59, 130, 246, 0.14);
}

.deliberate-focus strong,
.deliberate-focus p {
  display: block;
}

.deliberate-focus strong {
  font-size: 14px;
  color: var(--muted);
}

.deliberate-focus p {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

.deliberate-answer input {
  font-size: 17px;
}

.deliberate-answer--correct input {
  border-color: rgba(46, 184, 120, 0.52);
  box-shadow: 0 0 0 5px rgba(46, 184, 120, 0.12);
  background: rgba(246, 255, 250, 0.98);
}

.deliberate-answer--retry input {
  border-color: rgba(255, 122, 81, 0.52);
  box-shadow: 0 0 0 5px rgba(255, 122, 81, 0.12);
  background: rgba(255, 249, 247, 0.98);
}

.deliberate-feedback-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 248, 244, 0.94));
  box-shadow: 0 18px 34px rgba(24, 36, 53, 0.12);
  animation: deliberateFeedbackPop 240ms ease;
}

.deliberate-feedback-card--correct {
  border-color: rgba(46, 184, 120, 0.24);
  background: linear-gradient(145deg, rgba(240, 255, 246, 0.98), rgba(255, 251, 241, 0.94));
}

.deliberate-feedback-card--retry {
  border-color: rgba(110, 142, 255, 0.24);
  background: linear-gradient(145deg, rgba(245, 248, 255, 0.98), rgba(255, 248, 244, 0.94));
}

.deliberate-feedback-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 10px 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.deliberate-feedback-figure {
  width: 100%;
  max-width: 132px;
  height: auto;
  display: block;
}

.deliberate-feedback-copy strong,
.deliberate-feedback-copy p {
  display: block;
}

.deliberate-feedback-copy strong {
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}

.deliberate-feedback-copy p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.deliberate-feedback-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

@keyframes deliberateFeedbackPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.deliberate-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deliberate-summary-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.deliberate-summary-grid strong,
.deliberate-summary-grid span {
  display: block;
}

.deliberate-summary-grid strong {
  font-size: 13px;
  color: var(--muted);
}

.deliberate-summary-grid span {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
}

.deliberate-essay-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.deliberate-essay-body {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 23, 23, 0.06);
  line-height: 1.9;
  color: var(--ink);
}

.overlay-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.overlay-shell.visible {
  display: grid;
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 45;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(22, 52, 58, 0.12);
  background: linear-gradient(135deg, rgba(22, 52, 58, 0.94), rgba(38, 82, 91, 0.96));
  color: #f7f4ee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 34px rgba(22, 52, 58, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(8px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  max-height: min(88vh, 860px);
  overflow: auto;
  margin: auto;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 252, 246, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}

.overlay-copy {
  margin: -2px 0 18px;
  color: var(--muted);
  line-height: 1.78;
}

.method-card {
  width: min(92vw, 680px);
}

.tour-card {
  width: min(92vw, 720px);
}

.tour-progress {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tour-progress-copy {
  margin: 6px 0 0;
}

.tour-progress-track {
  margin: 12px 0 22px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 52, 58, 0.08);
  overflow: hidden;
}

.tour-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  transition: width 180ms ease;
}

.tour-card-copy {
  display: grid;
  gap: 12px;
}

.tour-card-copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.tour-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.tour-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}

.tour-actions,
.feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 22px;
}

.feedback-card {
  width: min(92vw, 720px);
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-submit {
  margin-top: 0;
}

.method-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: var(--ink);
  line-height: 1.8;
}

.review-card {
  width: min(92vw, 880px);
}

.review-word-card {
  display: grid;
  gap: 16px;
}

.review-audio-actions,
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-reveal,
.review-context {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.review-reveal strong,
.review-context strong,
.review-reveal span,
.review-context span {
  display: block;
}

.review-reveal strong,
.review-context strong {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.review-reveal span,
.review-context span {
  line-height: 1.72;
}

.waveform-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.waveform-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.waveform-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.waveform-card canvas {
  display: block;
  width: 100%;
  height: 120px;
  border-radius: 16px;
  background: #f8f2e7;
}

.timeline-translation {
  display: block;
  padding-left: 14px;
  border-left: 3px solid rgba(34, 88, 200, 0.16);
  color: #2258c8;
  font-size: 13px;
  line-height: 1.75;
}

.empty-block,
.error-block,
.loading-block {
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border: 1px dashed rgba(23, 23, 23, 0.12);
}

.retry-btn {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(22, 52, 58, 0.92);
  color: #fff8ee;
  box-shadow: 0 24px 40px rgba(22, 52, 58, 0.28);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
}

@media (max-width: 1200px) {
  .hero-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-side {
    width: 100%;
    min-width: 0;
  }

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

  .recent-strip,
  .goal-strip,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .section-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .section-link {
    flex: 0 0 auto;
  }

  .stage-study-grid {
    grid-template-columns: 1fr;
  }

  .study-rail {
    padding: 16px;
  }

  .stage-timeline-list {
    max-height: 360px;
  }

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

  .library-panel,
  .practice-panel {
    position: static;
    height: auto;
    min-height: 0;
  }

  .library-panel {
    min-height: auto;
    overflow: visible;
  }

  .waveform-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .auth-notice-board {
    grid-template-columns: 1fr;
  }

  .tour-progress {
    flex-direction: column;
    align-items: stretch;
  }

  .deliberate-feedback-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .deliberate-feedback-visual {
    min-height: 96px;
  }
}

@media (max-width: 980px) {
  .shell {
    padding: 16px;
  }

  .hero {
    order: 2;
  }

  .workspace {
    order: 1;
  }

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

  .auth-card {
    padding: 24px;
    border-radius: 28px;
  }

  .auth-title {
    font-size: clamp(30px, 11vw, 42px);
  }

  .hero {
    padding: 22px;
    border-radius: 28px;
  }

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

  .hero-account {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logout {
    width: 100%;
  }

  .user-panel-logout {
    display: block;
  }

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

  .goal-progress-top,
  .goal-progress-bottom,
  .goal-actions,
  .word-search-row,
  .lookup-head,
  .review-audio-actions,
  .review-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-actions > *,
  .word-search-row > *,
  .lookup-actions > *,
  .vocab-actions > *,
  .review-actions > * {
    width: 100%;
  }

  .goal-form-grid,
  .vocab-kpis,
  .practice-card-grid,
  .recent-strip-stats {
    grid-template-columns: 1fr;
  }

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

  .shortcut-list {
    grid-template-columns: 1fr;
  }

  .folder-pills {
    grid-template-columns: 1fr;
  }

  .folder-pill-grid {
    grid-template-columns: 1fr;
  }

  .course-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel,
  .player-wrap,
  .library-panel,
  .stage-panel,
  .study-rail,
  .practice-panel {
    border-radius: 26px;
  }

  .stage-panel {
    padding: 16px;
  }

  .course-row,
  .stage-top,
  .control-row,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .stage-top {
    gap: 12px;
    margin-bottom: 12px;
  }

  .stage-summary {
    width: 100%;
  }

  .lesson-badge {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .stage-title {
    margin: 10px 0 0;
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.12;
  }

  .stage-copy {
    display: none;
  }

  .status-chip {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .stage-study-grid {
    gap: 14px;
  }

  .player-wrap {
    border-radius: 24px;
  }

  .player-controls {
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 23, 23, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  }

  .progress-row {
    gap: 10px;
  }

  .mono {
    font-size: 14px;
  }

  .progress-bar {
    height: 14px;
  }

  .control-row {
    gap: 12px;
    width: 100%;
  }

  .control-cluster {
    width: 100%;
    gap: 8px;
  }

  .control-cluster > .toggle-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  .speed-cluster {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .speed-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 0;
    display: inline-grid;
    place-items: center;
  }

  .icon-btn {
    width: 48px;
    height: 48px;
  }

  .control-cluster > .primary-btn {
    width: 64px;
    height: 64px;
    min-height: 64px;
  }

  .mobile-stage-note {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 107, 74, 0.08), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(255, 107, 74, 0.14);
  }

  .mobile-stage-note strong {
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-stage-note span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }

  .study-rail {
    position: relative;
    overflow: hidden;
    padding: 16px 14px 12px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 247, 239, 0.96) 0%, rgba(245, 231, 219, 0.98) 72%, rgba(223, 204, 190, 0.98) 100%);
    border: 1px solid rgba(180, 120, 91, 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 16px 32px rgba(86, 58, 41, 0.08);
  }

  .study-rail::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 108px;
    background: linear-gradient(180deg, rgba(92, 66, 50, 0) 0%, rgba(92, 66, 50, 0.76) 54%, rgba(76, 54, 41, 0.92) 100%);
    pointer-events: none;
    z-index: 2;
  }

  .study-rail-head {
    margin-bottom: 10px;
  }

  .study-rail-copy {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.7;
  }

  .course-open {
    align-self: flex-start;
  }

  .course-list,
  .timeline-list {
    max-height: 420px;
    overscroll-behavior: auto;
  }

  .stage-timeline-list {
    max-height: min(56vh, 520px);
    min-height: 320px;
    padding-right: 2px;
    padding-bottom: 92px;
  }

  .timeline-item {
    gap: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: rgba(255, 251, 247, 0.9);
    border-color: rgba(180, 120, 91, 0.08);
  }

  .timeline-item.active {
    background: linear-gradient(145deg, rgba(255, 223, 210, 0.94), rgba(255, 243, 236, 0.98));
    border-color: rgba(255, 107, 74, 0.34);
    box-shadow: 0 14px 24px rgba(183, 104, 74, 0.12);
  }

  .time-pill {
    min-width: 74px;
    height: 30px;
    font-size: 11px;
    background: rgba(90, 105, 116, 0.12);
    color: #31424a;
  }

  .timeline-text {
    font-size: 16px;
    line-height: 1.65;
  }

  .timeline-copy {
    gap: 8px;
  }

  .hint-chip {
    padding: 7px 9px;
    font-size: 11px;
  }

  .content-grid {
    gap: 16px;
  }

  .library-panel,
  .practice-panel {
    padding: 18px;
  }

  .library-stack {
    min-height: 0;
    overflow: visible;
  }

  .library-filter-panel,
  .library-list-panel {
    padding: 14px;
    border-radius: 20px;
  }

  .course-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .folder-block {
    padding: 12px;
    border-radius: 20px;
  }

  .sidebar-footer {
    display: none;
  }

  .practice-card span {
    font-size: 30px;
  }

  .overlay-subtitle {
    bottom: 14px;
    width: calc(100% - 18px);
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .stage-panel {
    padding: 10px;
  }

  .stage-top {
    gap: 6px;
    margin-bottom: 6px;
  }

  .lesson-badge {
    display: none;
  }

  .stage-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.18;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .status-chip,
  .mobile-stage-note,
  .study-rail-copy {
    display: none;
  }

  .player-wrap {
    border-radius: 22px;
  }

  .player-wrap.is-portrait {
    width: min(100%, 420px);
  }

  .player-wrap.is-square {
    width: min(100%, 94vw);
  }

  .player-controls {
    margin-top: 6px;
    padding: 8px;
    gap: 6px;
    border-radius: 22px;
    overflow: hidden;
  }

  .progress-row {
    gap: 4px;
  }

  .mono {
    font-size: 11px;
  }

  .progress-bar {
    height: 9px;
  }

  .control-row {
    gap: 6px;
  }

  .control-cluster {
    display: grid;
    grid-template-columns: 40px 52px 40px minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 4px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .control-cluster > .primary-btn {
    width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: 15px;
  }

  .toggle-btn {
    min-width: 0;
    min-height: 40px;
    padding: 0 6px;
    border-radius: 13px;
    font-size: 10px;
    white-space: nowrap;
  }

  .speed-cluster {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .speed-btn {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 4px;
    border-radius: 12px;
    font-size: 11px;
    flex: none;
  }

  .study-rail {
    position: relative;
    overflow: hidden;
    padding: 10px 10px 8px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(250, 241, 232, 0.98) 0%, rgba(240, 226, 214, 0.98) 68%, rgba(213, 193, 179, 0.98) 100%);
  }

  .study-rail::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 122px;
    background: linear-gradient(180deg, rgba(85, 61, 46, 0) 0%, rgba(85, 61, 46, 0.8) 50%, rgba(67, 47, 36, 0.94) 100%);
    pointer-events: none;
    z-index: 2;
  }

  .study-rail .panel-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
  }

  .study-rail-head {
    margin-bottom: 4px;
  }

  .panel-head strong {
    font-size: 14px;
  }

  .panel-head span {
    font-size: 10px;
  }

  .study-rail .panel-head span {
    margin-left: auto;
    text-align: right;
  }

  .stage-timeline-list {
    max-height: min(50vh, 410px);
    min-height: 250px;
    padding-bottom: 112px;
    overscroll-behavior: auto;
  }

  .library-panel {
    padding: 14px;
  }

  .course-list {
    max-height: none;
    overflow: visible;
  }

  .folder-pills {
    gap: 10px;
  }

  .folder-featured-group,
  .folder-category-group {
    padding: 12px;
    border-radius: 20px;
  }

  .folder-category-head {
    padding: 10px 12px;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .folder-pill-grid-featured {
    grid-template-columns: 1fr;
  }

  .pill {
    padding: 14px;
    border-radius: 18px;
    min-height: 120px;
  }

  .folder-block {
    padding: 10px;
  }

  .timeline-item {
    padding: 10px;
    gap: 7px;
    border-radius: 16px;
    background: rgba(255, 250, 246, 0.94);
    border-color: rgba(156, 112, 84, 0.1);
  }

  .scroll-top-btn {
    right: 16px;
    bottom: 18px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 12px;
  }

  .timeline-item.active {
    background: linear-gradient(145deg, rgba(255, 225, 214, 0.96), rgba(255, 242, 236, 0.98));
    border-color: rgba(255, 107, 74, 0.34);
  }

  .timeline-item.compact-passive {
    padding: 8px 10px;
    gap: 6px;
    margin-bottom: 8px;
  }

  .timeline-item.compact-passive .time-pill {
    min-width: 62px;
    height: 24px;
    font-size: 10px;
  }

  .timeline-item.compact-passive .timeline-copy {
    gap: 4px;
  }

  .timeline-text {
    font-size: 14px;
    line-height: 1.52;
  }

  .timeline-item.compact-passive .timeline-text {
    line-height: 1.38;
  }

  .timeline-item.compact-passive .timeline-hints {
    display: none;
  }

  .recent-lesson-item {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .recent-lesson-action {
    grid-column: 2 / span 1;
  }

  .lesson-test-summary-head {
    flex-direction: column;
  }

  .hint-chip {
    padding: 5px 7px;
    font-size: 10px;
  }

  .recent-strip,
  .goal-strip {
    margin-top: 18px;
  }

  .goal-summary,
  .goal-progress-card,
  .word-panel,
  .vocab-panel,
  .overlay-card {
    border-radius: 22px;
  }

  .lookup-card,
  .vocab-item,
  .waveform-card {
    border-radius: 18px;
  }

  .lookup-head {
    gap: 10px;
  }

  .study-rail-actions {
    gap: 6px;
  }

  .mini-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .word-popup {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 18px;
    width: auto !important;
  }

  .lookup-popup-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .lookup-popup-head strong {
    font-size: 18px;
  }

  .timeline-translation {
    padding-left: 10px;
    font-size: 12px;
  }

  .lesson-test-popup {
    padding: 12px;
    border-radius: 18px;
  }

  .lesson-test-popup-head {
    gap: 8px;
  }

  .lesson-test-popup-head strong {
    font-size: 13px;
  }

  .lesson-test-popup-actions {
    gap: 8px;
  }

  .lesson-test-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

.series-quick-item {
    min-height: 104px;
  }
}

.vocab-page {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(82, 157, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(122, 226, 180, 0.14), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #fffaf5 100%);
}

.vocab-page-shell {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.vocab-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vocab-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(29, 52, 84, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #20364a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 45, 61, 0.06);
}

.vocab-page-user {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #385066;
}

.vocab-page-user span {
  font-weight: 700;
}

.vocab-page-user small {
  color: #748398;
}

.vocab-page-hero {
  padding: 28px 30px;
  border-radius: 32px;
  border: 1px solid rgba(49, 74, 105, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(31, 45, 61, 0.08);
}

.vocab-page-title {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.vocab-page-copy {
  max-width: 900px;
  margin: 0;
  color: #607487;
  font-size: 16px;
  line-height: 1.75;
}

.vocab-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.vocab-page-tools {
  margin-top: 0;
}

.vocab-validation-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vocab-validation-text {
  min-height: 20px;
  margin: 0;
  color: #6a7d8f;
}

.vocab-validation-text[data-state="success"] {
  color: #1d7a57;
}

.vocab-validation-text[data-state="error"] {
  color: #bb3f2f;
}

.tools-grid-lite {
  gap: 18px;
}

.tool-link-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 20px 22px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.tool-link-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  opacity: 0.95;
}

.tool-link-panel-vocab {
  border-color: rgba(65, 184, 131, 0.22);
  background: linear-gradient(180deg, rgba(242, 251, 246, 0.98), rgba(255, 255, 255, 0.96));
}

.tool-link-panel-vocab::before {
  background: linear-gradient(90deg, #2fb96f, #8addb0);
}

.tool-link-panel-practice {
  border-color: rgba(64, 132, 255, 0.18);
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.tool-link-panel-practice::before {
  background: linear-gradient(90deg, #3181ff, #73b1ff);
}

.tool-link-summary {
  margin: 0;
  color: #5f6d7c;
  line-height: 1.72;
  font-size: 15px;
}

.panel-copy {
  margin: 0;
  color: #607487;
  line-height: 1.78;
}

.tool-link-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-link-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #355066;
  font-size: 13px;
  font-weight: 700;
}

.tool-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

@keyframes liquidDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.8%, -1.2%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1.5%, 2%, 0) scale(0.98);
  }
}

@media (max-width: 900px) {
  .vocab-page {
    padding: 18px;
  }

  .vocab-page-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .vocab-page-user {
    justify-items: start;
  }

  .vocab-page-hero {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .vocab-drawer-panel {
    width: 100%;
  }

  .vocab-drawer-toggle {
    right: 14px;
    bottom: 84px;
  }
}

.vocab-drawer-toggle {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 32;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vocab-drawer-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.vocab-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.vocab-drawer.open {
  display: block;
}

.vocab-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
}

.vocab-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(960px, 92vw);
  height: 100%;
  background: #f7f7fb;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -30px 0 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  padding: 22px 24px 18px;
  overflow: hidden;
}

.vocab-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vocab-drawer-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.vocab-drawer-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.vocab-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}

.vocab-drawer-meta {
  margin-left: auto;
  font-size: 13px;
  color: #64748b;
}

.vocab-drawer-table {
  flex: 1;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.vocab-drawer-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vocab-drawer-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
  text-align: left;
  padding: 12px 10px;
  font-size: 12px;
  color: #475569;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.vocab-drawer-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  vertical-align: top;
}

.vocab-drawer-table tbody tr {
  height: 44px;
}

.vocab-drawer-table tbody td,
.vocab-drawer-table tbody strong,
.vocab-drawer-table tbody span {
  font-size: 13px;
}

.vocab-chip-inline {
  margin-left: 8px;
}

.vocab-drawer-table .vocab-tag-row {
  gap: 6px;
  margin-top: 0;
}

.vocab-drawer-table .vocab-mini-chip {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.vocab-drawer-table .mini-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.review-feedback-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.review-feedback-card--correct {
  border-color: rgba(46, 184, 120, 0.24);
  background: linear-gradient(145deg, rgba(240, 255, 246, 0.98), rgba(255, 251, 241, 0.94));
}

.review-feedback-card--retry {
  border-color: rgba(255, 122, 81, 0.24);
  background: linear-gradient(145deg, rgba(255, 248, 244, 0.98), rgba(245, 248, 255, 0.94));
}

.review-feedback-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.review-feedback-copy strong {
  font-size: 20px;
}

.review-feedback-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.review-feedback-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.vocab-drawer-table .empty-block {
  text-align: center;
  padding: 28px 10px;
  color: #64748b;
}

.vocab-table-row.selected {
  background: rgba(255, 165, 80, 0.12);
}

.vocab-table-sub {
  font-size: 12px;
  color: #94a3b8;
}

.vocab-table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vocab-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.deliberate-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.deliberate-selector p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
}

.compact-card-flat {
  padding: 14px;
}
