/* Lesson Glass Blue — study desk */
body.lecon-glass {
  --lc-night: #020617;
  --lc-glass-2: rgba(14, 116, 144, 0.28);
  --lc-stroke: rgba(125, 211, 252, 0.4);
  --lc-sky: #38bdf8;
  --lc-teal: #2dd4bf;
  --lc-ice: #e0f2fe;
  --accent: #38bdf8;
  --thai: #fb7185;
  --muted: #94a3b8;
  --text: #f8fafc;
  --border: var(--lc-stroke);
  --card: rgba(15, 23, 42, 0.55);
  --surface: #0f172a;
  --surface-2: #1e293b;
  --chip: rgba(255,255,255,0.08);
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.5);
  --grad: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%);
  background: var(--lc-night);
  color: var(--lc-ice);
  position: relative;
}
body.lecon-glass::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(56, 189, 248, 0.26), transparent 58%),
    radial-gradient(760px 480px at 95% 8%, rgba(45, 212, 191, 0.16), transparent 55%),
    linear-gradient(180deg, #020617 0%, #0c4a6e 42%, #020617 100%);
}
body.lecon-glass .container,
body.lecon-glass .wrap { position: relative; z-index: 1; }

body.lecon-glass .tm-hero {
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.22), transparent 42%, rgba(45, 212, 191, 0.12)) !important;
  border: 1px solid var(--lc-stroke);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.16);
  border-radius: 22px;
}
body.lecon-glass .tm-kicker { color: var(--lc-sky); }
body.lecon-glass .tm-lead { color: var(--muted); }
body.lecon-glass .ls-streak { margin: 0 0 10px; font-weight: 800; color: var(--lc-teal); font-size: 0.9rem; }

.ls-quick {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; align-items: center;
}
.ls-quick button, .ls-mode-btn {
  border: 1px solid var(--lc-stroke, #7dd3fc);
  background: rgba(255,255,255,0.06);
  color: var(--lc-ice, #e0f2fe);
  border-radius: 12px;
  padding: 8px 11px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.ls-quick button:hover, .ls-mode-btn:hover { border-color: var(--lc-sky, #38bdf8); }
.ls-audio-unlock {
  width: 100%; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px;
  border: 1px dashed var(--lc-sky, #38bdf8);
  background: rgba(14, 116, 144, 0.2);
  color: #fff; font-weight: 800; font-family: inherit; cursor: pointer;
}

.ls-micro-path {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 12px;
}
.ls-path-step {
  text-decoration: none; font-size: 0.75rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(255,255,255,0.05); color: #e0f2fe;
}
.ls-path-step.done { border-color: #4ade80; color: #86efac; }
.ls-path-step.active { background: rgba(14, 116, 144, 0.55); border-color: #38bdf8; }
.ls-path-arrow { color: #64748b; font-weight: 700; }

body.lecon-glass .lesson-integrate,
body.lecon-glass .lesson-session,
body.lecon-glass .word-card,
body.lecon-glass .ls-done {
  background: linear-gradient(155deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02) 40%, rgba(14, 116, 144, 0.22));
  border: 1px solid var(--lc-stroke);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  color: var(--lc-ice);
}
body.lecon-glass .lesson-integrate h2,
body.lecon-glass .tm-section-head h2 { color: #fff; }
body.lecon-glass .lesson-chip-row a,
body.lecon-glass .lesson-chip-row button {
  background: rgba(255,255,255,0.06);
  border-color: var(--lc-stroke);
  color: var(--lc-ice);
}
body.lecon-glass .lesson-chip-row a.is-active,
body.lecon-glass .lesson-chip-row [data-ls-dir].is-active,
body.lecon-glass .lesson-chip-row [data-ls-due].is-active,
body.lecon-glass .lesson-chip-row [data-ls-auto].is-active,
body.lecon-glass .lesson-chip-row [data-ls-view].is-active,
body.lecon-glass .lesson-chip-row [data-ls-listen].is-active,
body.lecon-glass .lesson-chip-row [data-ls-cloze].is-active,
body.lecon-glass .lesson-chip-row [data-ls-weak].is-active,
body.lecon-glass .lesson-chip-row [data-ls-adv].is-active {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.65), rgba(8, 145, 178, 0.5));
  border-color: var(--lc-sky);
  color: #fff;
}

.ls-picto-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ls-emoji { font-size: 2rem; }
.ls-picto-link { font-size: 0.78rem; font-weight: 700; color: var(--lc-sky, #38bdf8); text-decoration: none; }
.ls-classifier {
  display: block; margin-top: 6px; font-family: var(--font-thai);
  font-weight: 700; color: #fde68a; font-size: 0.9rem;
}
.ls-cloze { margin: 10px 0; text-align: center; }
.ls-cloze-input {
  width: min(100%, 260px); margin-top: 8px; padding: 10px;
  border-radius: 10px; border: 1px solid rgba(125,211,252,0.4);
  background: rgba(15,23,42,0.7); color: #fff; font: inherit; font-weight: 700; text-align: center;
}
body.lecon-glass .ls-prompt,
body.lecon-glass .ls-answer {
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--lc-stroke);
}
body.lecon-glass .ls-big.th { color: #fda4af; }
body.lecon-glass .ls-mini {
  background: rgba(255,255,255,0.08); border-color: var(--lc-stroke); color: #e0f2fe;
}
body.lecon-glass .grade-again { background: rgba(239,68,68,0.25); color: #fecaca; border-color: #f87171; }
body.lecon-glass .grade-good { background: rgba(59,130,246,0.25); color: #bfdbfe; border-color: #60a5fa; }
body.lecon-glass .grade-mastered { background: rgba(34,197,94,0.25); color: #bbf7d0; border-color: #4ade80; }

.ls-done-actions { margin-top: 14px; }
.ls-cta {
  display: inline-flex; align-items: center; text-decoration: none;
  border: 1px solid rgba(125,211,252,0.4); background: rgba(255,255,255,0.06);
  color: #e0f2fe; border-radius: 12px; padding: 10px 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.ls-cta.primary {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.7), rgba(8, 145, 178, 0.55));
  border-color: #38bdf8;
}

body.ls-duo .lesson-session::before {
  content: 'Duo · pass the phone · P1 / P2';
  display: block; text-align: center; font-size: 0.75rem; font-weight: 800;
  color: var(--lc-teal, #2dd4bf); padding: 0 0 8px;
}

body.lecon-glass .mobile-dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, #020617 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 2px solid color-mix(in srgb, #38bdf8 55%, transparent);
}
body.lecon-glass .mobile-dock a.dock-link,
body.lecon-glass .mobile-dock button {
  min-height: 56px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08); color: #e2e8f0; border-radius: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; font-size: 0.62rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; text-decoration: none; padding: 4px 2px;
}
body.lecon-glass .mobile-dock a.dock-link.primary {
  background: color-mix(in srgb, #0e7490 55%, transparent);
  border-color: #38bdf8;
}
body.lecon-glass .mobile-dock .dock-menu {
  background: linear-gradient(160deg, #fbbf24, #d97706);
  border-color: #f59e0b; color: #422006;
}
body.lecon-glass .dock-ico { font-size: 1.05rem; }
body.lecon-glass .dock-th { font-family: var(--font-thai); font-size: 0.68rem; font-weight: 700; }
body.lecon-glass .dock-lbl { font-size: 0.72em; opacity: 0.85; }
@media (max-width: 900px) {
  body.lecon-glass .mobile-dock { display: grid; }
  body.lecon-glass { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 901px) {
  body.lecon-glass .mobile-dock { display: none !important; }
}

.sc-menu-overlay, .dv-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 10050;
  background: rgba(2, 6, 23, 0.65); align-items: flex-end; justify-content: center; padding: 12px;
}
.sc-menu-overlay.open, .dv-menu-overlay.open { display: flex; }
.sc-menu-sheet, .dv-menu-sheet {
  width: min(420px, 100%); background: linear-gradient(160deg, #0c4a6e, #020617);
  border: 1px solid rgba(125,211,252,0.4); border-radius: 18px; padding: 14px; color: #f8fafc;
}
.sc-menu-grid, .dv-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-menu-grid a, .dv-menu-grid a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12); text-decoration: none; color: inherit; font-weight: 700;
  background: rgba(255,255,255,0.04);
}
.sc-menu-grid a .th, .dv-menu-grid a .th { font-family: var(--font-thai); color: #7dd3fc; }
.sc-menu-grid a .en, .dv-menu-grid a .en { font-size: 0.75rem; color: #94a3b8; }
.sc-menu-close, .dv-menu-close {
  width: 100%; margin-top: 12px; padding: 10px; border-radius: 10px;
  border: 1px solid rgba(125,211,252,0.35); background: rgba(14,116,144,0.35);
  color: #fff; font-weight: 800; cursor: pointer; font-family: inherit;
}

/* Hub glass extras */
.lh-daily-cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(56, 189, 248, 0.65);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.7), rgba(8, 145, 178, 0.55));
  color: #fff; border-radius: 16px; padding: 12px 16px;
  font: inherit; font-weight: 800; text-decoration: none;
}
.lh-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.lh-pack {
  display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--card); text-decoration: none; color: inherit;
}
.lh-pack strong { font-size: 0.9rem; }
.lh-pack em { font-style: normal; font-family: var(--font-thai); color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.lh-search {
  width: 100%; margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 600;
}
.lesson-card .stars { font-size: 0.75rem; color: #fbbf24; font-weight: 800; }
