/* ─── AnderCorp Academy — static port ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: 222 47% 5%;
  --fg: 0 0% 95%;
  --primary: 217 91% 60%;
  --primary-2: 234 89% 74%;
  --card: 222 40% 9%;
  --border: 222 30% 18%;
  --muted: 222 30% 14%;
  --muted-fg: 0 0% 64%;
  --accent: 222 30% 16%;
  --radius: .75rem;
  --sidebar-w: 280px;
}

html { scroll-behavior: smooth; }

body {
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ─── LAYOUT ─── */
.sidebar {
  width: var(--sidebar-w);
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto;
  background: hsl(var(--bg));
  border-right: 1px solid hsl(var(--border));
  padding: 1.75rem 1.25rem;
  z-index: 50;
  transition: transform .25s ease;
}
.main {
  margin-left: var(--sidebar-w);
  padding: 2.5rem 3rem 5rem;
  max-width: 1200px;
}
.mobile-topbar {
  display: none; align-items: center; gap: .75rem;
  padding-bottom: 1.5rem;
}
.mobile-topbar button {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  color: hsl(var(--fg)); border-radius: .5rem; padding: .5rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 1.5rem 1.25rem 4rem; }
  .mobile-topbar { display: flex; }
  .sidebar-backdrop.open {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45;
  }
}

/* ─── SIDEBAR ─── */
.brand { display: flex; gap: .75rem; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 1.5rem; }
.brand-icon {
  width: 42px; height: 42px; border-radius: .8rem; flex-shrink: 0;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-2)));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px hsla(217,91%,60%,.35);
}
.brand-icon svg { width: 23px; height: 23px; color: #fff; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }
.brand-name .ander { color: hsl(var(--primary)); }
.brand-sub { font-size: .75rem; color: hsl(var(--muted-fg)); margin-top: .2rem; }

.nav-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--muted-fg)); margin: 0 0 .65rem .65rem; font-weight: 600; }
.nav-list { display: flex; flex-direction: column; gap: .2rem; list-style: none; }
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .75rem; border-radius: .65rem;
  color: hsl(var(--muted-fg)); font-size: .9rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: hsl(var(--accent)); color: hsl(var(--fg)); }
.nav-item.active { background: hsl(var(--primary)); color: #fff; }

/* ─── SHARED PRIMITIVES ─── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.5rem; border-radius: .65rem;
  font-weight: 600; font-size: .875rem; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: hsl(var(--primary)); color: #fff; box-shadow: 0 4px 18px hsla(217,91%,60%,.25); }
.btn-primary:hover { background: hsl(217 91% 54%); }
.btn-outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--fg)); }
.btn-outline:hover { background: hsl(var(--accent)); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }

.badge-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: hsl(var(--fg));
}
.badge-pill svg { width: 13px; height: 13px; color: hsl(var(--primary)); }

.tag {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem .7rem; border-radius: 999px;
  background: hsl(var(--accent)); border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-fg));
}

.level-badge { font-size: .7rem; font-weight: 700; padding: .28rem .75rem; border-radius: 999px; text-transform: capitalize; }
.level-beginner { background: hsla(142,70%,45%,.15); color: hsl(142,70%,60%); border: 1px solid hsla(142,70%,45%,.3); }
.level-intermediate { background: hsla(38,92%,50%,.15); color: hsl(38,92%,62%); border: 1px solid hsla(38,92%,50%,.3); }
.level-advanced { background: hsla(340,80%,60%,.15); color: hsl(340,80%,72%); border: 1px solid hsla(340,80%,60%,.3); }

.diff-badge { font-size: .7rem; font-weight: 700; padding: .28rem .75rem; border-radius: 999px; text-transform: capitalize; }
.diff-beginner { background: hsla(142,70%,45%,.15); color: hsl(142,70%,60%); border: 1px solid hsla(142,70%,45%,.3); }
.diff-intermediate { background: hsla(217,91%,60%,.15); color: hsl(217,91%,70%); border: 1px solid hsla(217,91%,60%,.3); }
.diff-advanced { background: hsla(270,70%,60%,.15); color: hsl(270,70%,75%); border: 1px solid hsla(270,70%,60%,.3); }

.gradient-text {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary-2)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ─── PAGE HEADER / HERO ─── */
.page-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: hsl(var(--primary)); margin-bottom: .75rem; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.page-sub { margin-top: .6rem; color: hsl(var(--muted-fg)); max-width: 640px; font-size: 1rem; }

.hero-card {
  border: 1px solid hsl(var(--border)); border-radius: 1.5rem;
  padding: 3rem; position: relative; overflow: hidden;
  background: hsl(var(--card));
}
.hero-card::before {
  content: ''; position: absolute; top: -30%; left: -10%; width: 60%; height: 160%;
  background: radial-gradient(circle, hsla(217,91%,60%,.15), transparent 70%);
  pointer-events: none;
}
.hero-title { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; max-width: 720px; position: relative; }
.hero-desc { margin-top: 1.25rem; color: hsl(var(--muted-fg)); max-width: 620px; font-size: 1.05rem; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; position: relative; }

.banner {
  border-radius: 1.5rem; padding: 2.5rem 3rem;
  background: linear-gradient(115deg, hsl(217 85% 45%), hsl(234 75% 55%) 60%, hsl(217 85% 45%));
  position: relative; overflow: hidden; color: #fff;
}
.banner::after {
  content: ''; position: absolute; top: -40%; right: -10%; width: 320px; height: 320px; border-radius: 50%;
  background: hsla(255,255%,255%,.12);
}
.banner .page-eyebrow { color: hsla(255,255%,255%,.9); }
.banner .page-title { color: #fff; position: relative; }
.banner .page-sub { color: hsla(255,255%,255%,.85); position: relative; }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; margin-top: 2.25rem; }
.stat-card { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 1rem; padding: 1.4rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 46px; height: 46px; border-radius: .8rem; background: hsl(var(--accent)); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-number { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .8rem; color: hsl(var(--muted-fg)); margin-top: .15rem; }

/* ─── SECTIONS / GRIDS ─── */
.section { margin-top: 3.5rem; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { font-size: 1.6rem; font-weight: 800; }
.section-head p { color: hsl(var(--muted-fg)); margin-top: .4rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.hub-card {
  display: flex; flex-direction: column; gap: .6rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.1rem;
  padding: 1.6rem; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hub-card:hover { border-color: hsla(217,91%,60%,.4); transform: translateY(-2px); box-shadow: 0 14px 36px hsla(0,0%,0%,.35); }
.hub-card-icon { width: 42px; height: 42px; border-radius: .75rem; background: hsl(var(--accent)); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); }
.hub-card-icon svg { width: 21px; height: 21px; }
.hub-card h3 { font-size: 1.05rem; font-weight: 700; }
.hub-card p { font-size: .875rem; color: hsl(var(--muted-fg)); }
.hub-card .cta { font-size: .8rem; font-weight: 700; color: hsl(var(--primary)); margin-top: auto; }

.cta-band {
  margin-top: 3.5rem; border: 1px solid hsl(var(--border)); border-radius: 1.25rem;
  background: hsl(var(--card)); padding: 2.5rem; text-align: center;
}
.cta-band h2 { font-size: 1.4rem; font-weight: 800; }
.cta-band p { color: hsl(var(--muted-fg)); margin: .6rem 0 1.4rem; }

/* ─── SEARCH / FILTERS ─── */
.search-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.search-input-wrap { position: relative; flex: 1; min-width: 240px; }
.search-input-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: hsl(var(--muted-fg)); }
.search-input {
  width: 100%; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: .7rem; padding: .8rem 1rem .8rem 2.7rem; color: hsl(var(--fg)); font-size: .95rem;
}
.search-input::placeholder { color: hsl(var(--muted-fg)); }
.search-input:focus, select.search-input:focus { outline: none; border-color: hsl(var(--primary)); }
select.search-input { padding: .8rem 1rem; cursor: pointer; max-width: 220px; }

.filter-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.diff-tablist { display: flex; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: .8rem; padding: .3rem; gap: .25rem; margin-top: 1rem; }
.diff-tablist button {
  flex: 1; background: transparent; border: none; color: hsl(var(--muted-fg));
  padding: .65rem 0; border-radius: .6rem; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.diff-tablist button.active { background: hsl(var(--primary)); color: #fff; }

.chart-bars { display: none; align-items: flex-end; gap: 4px; height: 150px; margin-top: 1.5rem; padding: 0 .25rem; }
.filter-pill {
  border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--muted-fg));
  padding: .55rem 1.1rem; border-radius: .6rem; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-pill:hover { border-color: hsla(217,91%,60%,.4); color: hsl(var(--fg)); }
.filter-pill.active { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); }

/* ─── LESSON / SCENARIO CARDS ─── */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.lesson-card, .scenario-card {
  display: flex; flex-direction: column; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: 1.1rem; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.lesson-card:hover, .scenario-card:hover { border-color: hsla(217,91%,60%,.4); transform: translateY(-3px); box-shadow: 0 16px 40px hsla(0,0%,0%,.4); }
.lesson-cover { position: relative; height: 140px; background-size: cover; background-position: center; }
.lesson-cover .cat-overlay {
  position: absolute; left: .8rem; top: .8rem; font-size: .68rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
}
.lesson-body, .scenario-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.lesson-meta-row { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: hsl(var(--muted-fg)); }
.lesson-meta-row svg { width: 13px; height: 13px; }
.lesson-title, .scenario-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.lesson-desc, .scenario-desc { font-size: .85rem; color: hsl(var(--muted-fg)); line-height: 1.6; flex: 1; }
.scenario-top-border { height: 4px; background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary-2))); }
.scenario-meta { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: hsl(var(--muted-fg)); }
.scenario-ticker { font-weight: 700; color: hsl(var(--fg)); }

/* ─── DETAIL: LESSON ─── */
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: hsl(var(--muted-fg)); font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem; }
.back-link:hover { color: hsl(var(--fg)); }
.back-link svg { width: 16px; height: 16px; }

.lesson-detail-head { margin-bottom: 2rem; }
.lesson-detail-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lesson-detail-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.lesson-detail-summary { margin-top: .75rem; color: hsl(var(--muted-fg)); font-size: 1.05rem; max-width: 700px; }
.lesson-source-note { margin-top: 1rem; font-size: .8rem; color: hsl(var(--muted-fg)); font-style: italic; }

.prose { max-width: 720px; margin-top: 2rem; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .6rem; color: hsl(var(--primary)); }
.prose p { margin: .8rem 0; color: hsl(210 20% 88%); }
.prose ul { margin: .8rem 0 .8rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.prose li { color: hsl(210 20% 88%); }
.prose strong { color: hsl(var(--fg)); font-weight: 700; }
.prose em { color: hsl(var(--muted-fg)); }

/* ─── DETAIL: SCENARIO ─── */
.scenario-detail-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.scenario-detail-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; }
.scenario-detail-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .5rem; font-size: .88rem; color: hsl(var(--muted-fg)); }
.scenario-detail-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.scenario-detail-meta svg { width: 15px; height: 15px; }

.scenario-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.75rem; align-items: start; }
@media (max-width: 980px) { .scenario-layout { grid-template-columns: 1fr; } }

.context-card { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 1.25rem; padding: 1.75rem; }
.context-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: .9rem; }
.price-badge { display: inline-block; background: hsl(var(--primary)); color: #fff; font-weight: 700; font-size: .82rem; padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.25rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid hsl(var(--border)); padding-bottom: .9rem; margin-bottom: 1.1rem; }
.tab-btn {
  background: transparent; border: none; color: hsl(var(--muted-fg));
  font-size: .85rem; font-weight: 600; padding: .5rem .9rem; border-radius: .5rem; cursor: pointer;
}
.tab-btn:hover { color: hsl(var(--fg)); background: hsl(var(--accent)); }
.tab-btn.active { background: hsl(var(--primary)); color: #fff; }
.tab-panel { display: none; color: hsl(210 20% 88%); font-size: .95rem; line-height: 1.75; }
.tab-panel.active { display: block; }
.tab-panel ul { margin-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }

.predict-card { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 1.25rem; padding: 1.6rem; position: sticky; top: 1.5rem; }
.predict-card h2 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; }
.predict-card h2 svg { width: 18px; height: 18px; color: hsl(var(--primary)); }
.field-label { font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: hsl(var(--muted-fg)); text-transform: uppercase; margin: 1.25rem 0 .6rem; }
.field-label:first-of-type { margin-top: 0; }

.option-row { display: flex; flex-direction: column; gap: .5rem; }
.option-btn {
  display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left;
  border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .3); color: hsl(var(--fg));
  padding: .7rem .9rem; border-radius: .65rem; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.option-btn .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid hsl(var(--muted-fg)); flex-shrink: 0; transition: border-color .15s, background .15s; position: relative; }
.option-btn:hover { border-color: hsla(217,91%,60%,.5); }
.option-btn.selected { border-color: hsl(var(--primary)); background: hsla(217,91%,60%,.1); }
.option-btn.selected .dot { border-color: hsl(var(--primary)); background: hsl(var(--primary)); box-shadow: inset 0 0 0 3px hsl(var(--card)); }

.confidence-row { display: flex; gap: .5rem; }
.confidence-btn {
  flex: 1; border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .3); color: hsl(var(--fg));
  padding: .6rem 0; border-radius: .6rem; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s;
}
.confidence-btn.selected { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }
.confidence-hint { font-size: .75rem; color: hsl(var(--muted-fg)); margin-top: .5rem; }

.reasoning-input {
  width: 100%; min-height: 90px; margin-top: .6rem; background: hsl(var(--muted) / .3);
  border: 1px solid hsl(var(--border)); border-radius: .65rem; padding: .75rem .9rem;
  color: hsl(var(--fg)); font-family: inherit; font-size: .88rem; resize: vertical;
}
.reasoning-input::placeholder { color: hsl(var(--muted-fg)); }

.predict-error { color: hsl(0 85% 65%); font-size: .8rem; margin-top: .75rem; display: none; }

/* ─── REVEAL ─── */
.reveal-card { border: 1px solid hsla(217,91%,60%,.35); background: hsl(var(--card)); border-radius: 1.25rem; padding: 1.75rem; margin-top: 1.5rem; }
.reveal-result { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.25rem; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 1.25rem; }
.reveal-result-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reveal-result-icon.correct { background: hsla(142,70%,45%,.15); color: hsl(142,70%,55%); }
.reveal-result-icon.incorrect { background: hsla(0,85%,60%,.15); color: hsl(0,85%,65%); }
.reveal-result-icon svg { width: 24px; height: 24px; }
.reveal-result-title { font-weight: 800; font-size: 1.05rem; }
.reveal-result-sub { font-size: .85rem; color: hsl(var(--muted-fg)); margin-top: .1rem; }

.price-compare { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.price-compare .item { }
.price-compare .item .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--muted-fg)); }
.price-compare .item .value { font-size: 1.3rem; font-weight: 800; margin-top: .15rem; }
.price-compare .value.up { color: hsl(142,70%,55%); }
.price-compare .value.down { color: hsl(0,85%,65%); }

.reveal-section { margin-top: 1.25rem; }
.reveal-section h3 { font-size: .95rem; font-weight: 800; margin-bottom: .5rem; }
.reveal-section p { font-size: .9rem; color: hsl(210 20% 88%); line-height: 1.7; }
.reveal-section ul { margin-left: 1.2rem; font-size: .9rem; color: hsl(210 20% 88%); line-height: 1.7; display: flex; flex-direction: column; gap: .35rem; }

/* ─── EMPTY STATES ─── */
.empty-state { text-align: center; padding: 4rem 2rem; border: 1px dashed hsl(var(--border)); border-radius: 1.25rem; margin-top: 1.5rem; }
.empty-state svg { width: 40px; height: 40px; color: hsl(var(--muted-fg)); margin: 0 auto 1rem; }
.empty-state p { color: hsl(var(--muted-fg)); font-size: .95rem; }
.empty-state .btn { margin-top: 1.25rem; }

.account-note {
  margin-top: 1.5rem; font-size: .8rem; color: hsl(var(--muted-fg));
  border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: .9rem 1.1rem;
  background: hsl(var(--card)); display: flex; gap: .6rem; align-items: flex-start;
}
.account-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem; color: hsl(var(--primary)); }

/* ─── PROGRESS PAGE ─── */
.history-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border: 1px solid hsl(var(--border)); border-radius: .8rem; background: hsl(var(--card));
}
.history-row + .history-row { margin-top: .6rem; }
.history-row .htitle { font-weight: 600; font-size: .9rem; }
.history-row .hmeta { font-size: .78rem; color: hsl(var(--muted-fg)); margin-top: .15rem; }
.history-result { font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; flex-shrink: 0; }
.history-result.correct { background: hsla(142,70%,45%,.15); color: hsl(142,70%,60%); }
.history-result.incorrect { background: hsla(0,85%,60%,.15); color: hsl(0,85%,65%); }

/* ─── MY LESSONS FORM ─── */
.lesson-form { display: none; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 1.25rem; padding: 1.75rem; margin-top: 1.5rem; }
.lesson-form.open { display: block; }
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-row label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-fg)); }
.form-row input, .form-row textarea, .form-row select {
  background: hsl(var(--muted) / .3); border: 1px solid hsl(var(--border)); border-radius: .6rem;
  padding: .7rem .9rem; color: hsl(var(--fg)); font-family: inherit; font-size: .9rem;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; gap: .75rem; margin-top: 1rem; }

.draft-card {
  border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 1rem;
  padding: 1.25rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem;
}
.draft-card .dtitle { font-weight: 700; }
.draft-card .dmeta { font-size: .78rem; color: hsl(var(--muted-fg)); margin-top: .2rem; }
.draft-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.icon-btn { background: hsl(var(--accent)); border: 1px solid hsl(var(--border)); color: hsl(var(--muted-fg)); border-radius: .5rem; padding: .45rem; cursor: pointer; display: flex; }
.icon-btn:hover { color: hsl(var(--fg)); }
.icon-btn svg { width: 15px; height: 15px; }

/* ─── FOOTER ─── */
.site-footer { margin-top: 4rem; padding-top: 1.75rem; border-top: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: hsl(var(--muted-fg)); }
.site-footer a { color: hsl(var(--muted-fg)); }
.site-footer a:hover { color: hsl(var(--fg)); }

/* ─── UTIL ─── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
