/* ═══════════════════════════════════════════════
   Инф · 4-тоқсан — Shared Stylesheet v5.0
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+KR:wght@300;400;500&display=swap');

:root {
  --ink: #0d0d0d;
  --paper: #f5f0e8;
  --rust: #c0392b;
  --gold: #c9a84c;
  --steel: #2c3e50;
  --mist: #8a9ba8;
  --accent: #e74c3c;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Playfair Display', serif;
  --sans: 'Noto Sans KR', sans-serif;
  --editor-bg: #1a1f2e;
  --editor-line: #252b3b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ─────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--rust);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform 0.1s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--rust);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: transform 0.25s ease, width 0.2s, height 0.2s;
  transform: translate(-11px, -11px);
}

/* ── NAV ───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13,13,13,0.08);
}
.nav-logo {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  position: relative; padding-bottom: 3px; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--rust); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--rust); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── HERO (Index) ──────────────────────────────── */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 50%; height: 100%; background: var(--steel); z-index: 0;
}
.hero-left {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 6rem;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--rust);
  margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 900; line-height: 1.05; color: var(--ink);
  margin-bottom: 2rem; opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--rust); }
.hero-desc {
  font-size: 1rem; line-height: 1.7; color: #444;
  max-width: 400px; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1rem 2.5rem; background: var(--rust); color: white;
  text-decoration: none; font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase; transition: all 0.3s;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards; width: fit-content;
}
.hero-cta:hover { background: var(--ink); gap: 1.5rem; }
.hero-right {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 5rem 3rem;
}
.hero-visual { width: 100%; max-width: 380px; opacity: 0; animation: fadeIn 1.2s 0.8s forwards; }

/* ── DB SCHEMA VISUAL ──────────────────────────── */
.schema-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; padding: 1rem 1.5rem;
  margin-bottom: 1rem; font-family: var(--mono);
  color: white; position: relative;
}
.schema-card-title {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.schema-field {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
}
.schema-field:last-child { border-bottom: none; }
.field-type { color: var(--mist); font-size: 0.65rem; }
.ai-badge {
  position: absolute; top: -8px; right: 12px;
  background: var(--rust); color: white;
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.1em; padding: 2px 8px; text-transform: uppercase;
}
.connector-line {
  width: 2px; height: 20px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto 0 24px;
}

/* ── SECTIONS ──────────────────────────────────── */
section { padding: 7rem 6rem; max-width: 1400px; margin: 0 auto; }
.section-label {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--rust);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--rust); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.5rem; max-width: 700px;
}
.section-body {
  font-size: 1rem; line-height: 1.8; color: #444;
  max-width: 600px; margin-bottom: 4rem;
}

/* ── OBJECTIVES GRID ───────────────────────────── */
.objectives-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: var(--ink);
  border: 1.5px solid var(--ink); margin-top: 3rem;
}
.obj-card {
  background: var(--paper); padding: 2.5rem 2rem;
  position: relative; transition: background 0.3s; overflow: hidden;
}
.obj-card:hover { background: var(--ink); }
.obj-card:hover .obj-num,
.obj-card:hover .obj-title,
.obj-card:hover .obj-text { color: var(--paper); }
.obj-card:hover .obj-icon-bg { background: var(--rust); }
.obj-num {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.3em; color: var(--mist); margin-bottom: 1.5rem; transition: color 0.3s;
}
.obj-icon-bg {
  width: 44px; height: 44px; background: var(--steel);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: background 0.3s; font-size: 1.3rem;
}
.obj-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.8rem; line-height: 1.3; transition: color 0.3s;
}
.obj-text { font-size: 0.85rem; line-height: 1.6; color: #555; transition: color 0.3s; }

/* ── SPLIT LAYOUT ──────────────────────────────── */
.split-section { background: var(--steel); color: white; padding: 0; max-width: none; }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; max-width: 1400px; margin: 0 auto; }
.split-content { padding: 7rem 4rem 7rem 6rem; }
.split-content .section-label { color: var(--gold); }
.split-content .section-label::before { background: var(--gold); }
.split-content .section-title { color: white; }
.split-content .section-body { color: rgba(255,255,255,0.65); }
.split-visual { padding: 5rem 5rem 5rem 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }

/* ── STEPS ─────────────────────────────────────── */
.step-item {
  display: grid; grid-template-columns: 50px 1fr;
  gap: 1rem; padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s, background 0.3s; cursor: default;
}
.step-item:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.step-num {
  font-family: var(--mono); font-size: 1.8rem; font-weight: 500;
  color: var(--gold); opacity: 0.4; line-height: 1; padding-top: 4px;
}
.step-title { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.3rem; }
.step-desc { font-size: 0.8rem; line-height: 1.55; color: rgba(255,255,255,0.5); }

/* ── TOOLS GRID ────────────────────────────────── */
.tools-section { padding: 7rem 6rem; max-width: 1400px; margin: 0 auto; }
.tools-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.tool-card {
  padding: 2rem 1.5rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  position: relative; transition: all 0.3s; overflow: hidden;
}
.tool-card:nth-child(4n) { border-right: none; }
.tool-card:nth-last-child(-n+4) { border-bottom: none; }
.tool-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px; background: var(--rust); transition: width 0.4s ease;
}
.tool-card:hover { background: rgba(192,57,43,0.03); }
.tool-card:hover::after { width: 100%; }
.tool-icon { font-size: 2rem; margin-bottom: 1rem; }
.tool-name { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.5rem; }
.tool-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.tool-desc { font-size: 0.78rem; line-height: 1.6; color: #555; }

/* ── PRACTICE / LABS ───────────────────────────── */
.practice-section { background: var(--ink); color: var(--paper); padding: 7rem 6rem; max-width: none; }
.practice-inner { max-width: 1400px; margin: 0 auto; }
.practice-inner .section-label { color: var(--gold); }
.practice-inner .section-label::before { background: var(--gold); }
.practice-inner .section-title { color: var(--paper); }
.practice-inner .section-body { color: rgba(245,240,232,0.6); }
.labs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(255,255,255,0.08); }
.lab-card {
  background: var(--ink); padding: 2.5rem;
  border-left: 3px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.lab-card:hover { border-left-color: var(--gold); background: rgba(255,255,255,0.03); }
.lab-num { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--mist); margin-bottom: 0.5rem; }
.lab-tag {
  display: inline-block; padding: 3px 10px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem;
}
.lab-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--paper); margin-bottom: 0.8rem; line-height: 1.3; }
.lab-desc { font-size: 0.85rem; line-height: 1.65; color: rgba(245,240,232,0.55); margin-bottom: 1.5rem; }
.lab-tasks { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.lab-tasks li { font-family: var(--mono); font-size: 0.7rem; color: rgba(245,240,232,0.4); display: flex; align-items: flex-start; gap: 0.5rem; }
.lab-tasks li::before { content: '›'; color: var(--gold); flex-shrink: 0; }

/* ── ASSESSMENT ────────────────────────────────── */
.assess-section { padding: 7rem 6rem; max-width: 1400px; margin: 0 auto; }
.assess-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; margin-top: 3rem; }
.criteria-list { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--ink); }
.criterion {
  display: grid; grid-template-columns: 60px 1fr auto;
  align-items: center; padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(13,13,13,0.08); gap: 1.5rem; transition: background 0.2s;
}
.criterion:last-child { border-bottom: none; }
.criterion:hover { background: rgba(192,57,43,0.03); }
.criterion-pct { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; color: var(--rust); line-height: 1; }
.criterion-name { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.2rem; }
.criterion-detail { font-size: 0.75rem; color: var(--mist); }
.criterion-bar { width: 60px; height: 4px; background: rgba(13,13,13,0.1); border-radius: 2px; overflow: hidden; }
.criterion-fill { height: 100%; background: var(--rust); border-radius: 2px; }
.grade-table { border: 1.5px solid var(--ink); overflow: hidden; }
.grade-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem;
  padding: 1.2rem 1.5rem; align-items: center;
  border-bottom: 1px solid rgba(13,13,13,0.08);
  font-family: var(--mono); font-size: 0.8rem; transition: background 0.2s;
}
.grade-row:last-child { border-bottom: none; }
.grade-row:hover { background: rgba(192,57,43,0.03); }
.grade-letter { font-size: 1.3rem; font-weight: 500; width: 28px; text-align: center; }
.grade-A { color: #27ae60; }
.grade-B { color: #2980b9; }
.grade-C { color: var(--gold); }
.grade-D { color: #e67e22; }
.grade-F { color: var(--rust); }
.grade-range { color: var(--mist); font-size: 0.7rem; }
.grade-label { font-size: 0.7rem; color: #555; }

/* ── RESOURCES ─────────────────────────────────── */
.resources-section { background: var(--steel); color: white; padding: 6rem; max-width: none; }
.resources-inner { max-width: 1400px; margin: 0 auto; }
.resources-inner .section-label { color: var(--gold); }
.resources-inner .section-label::before { background: var(--gold); }
.resources-inner .section-title { color: white; }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.resource-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem; transition: all 0.3s; cursor: pointer; text-decoration: none;
}
.resource-card:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); transform: translateY(-4px); }
.resource-type { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.resource-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: white; margin-bottom: 0.5rem; line-height: 1.3; }
.resource-desc { font-size: 0.78rem; line-height: 1.55; color: rgba(255,255,255,0.45); }

/* ── FOOTER ────────────────────────────────────── */
footer {
  background: var(--ink); color: var(--paper); padding: 4rem 6rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(245,240,232,0.08);
}
.footer-logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; }
.footer-logo span { color: var(--rust); }
.footer-info { font-family: var(--mono); font-size: 0.65rem; color: rgba(245,240,232,0.3); letter-spacing: 0.1em; text-align: center; line-height: 1.8; }
.footer-meta { font-family: var(--mono); font-size: 0.65rem; color: rgba(245,240,232,0.3); text-align: right; line-height: 1.8; }

/* ── TICKER ────────────────────────────────────── */
.timeline-strip { background: var(--rust); padding: 1.5rem 6rem; overflow: hidden; white-space: nowrap; }
.ticker-inner {
  display: inline-flex; gap: 4rem;
  animation: ticker 20s linear infinite;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.8);
}
.ticker-inner span { color: rgba(255,255,255,0.4); }

/* ── PAGE HERO (sub-pages) ─────────────────────── */
.page-hero { padding: 8rem 6rem 4rem; background: var(--steel); color: white; }
.page-hero-eyebrow { font-family: var(--mono); font-size: .65rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.page-hero-title { font-family: var(--serif); font-size: clamp(2.5rem,4vw,4rem); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 1rem; }
.page-hero-title em { color: var(--gold); font-style: italic; }
.page-hero-desc { color: rgba(255,255,255,.55); font-size: .95rem; line-height: 1.7; max-width: 600px; }

/* ── DIVIDER ───────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--ink), transparent); opacity: 0.12; margin: 0 6rem; }

/* ── CODE BLOCK ────────────────────────────────── */
.code-block {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--gold); padding: 1.5rem;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.7;
  color: rgba(255,255,255,0.7); margin-top: 2rem; overflow-x: auto;
}
.code-block .kw { color: #e74c3c; }
.code-block .fn { color: var(--gold); }
.code-block .str { color: #2ecc71; }
.code-block .cm { color: rgba(255,255,255,0.3); font-style: italic; }

/* ── SCROLL REVEAL ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.no-js { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════
   AI ASSISTANT WIDGET
   ═══════════════════════════════════════════════ */
.ai-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 1000;
  width: 60px; height: 60px;
  background: var(--rust); border: none; border-radius: 50%;
  cursor: none; box-shadow: 0 4px 20px rgba(192,57,43,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; font-size: 1.4rem;
  animation: fabPulse 3s ease-in-out infinite;
}
.ai-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(192,57,43,0.6); background: var(--ink); }
.ai-fab-tooltip {
  position: absolute; right: 72px; top: 50%;
  transform: translateY(-50%);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.ai-fab:hover .ai-fab-tooltip { opacity: 1; }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(192,57,43,0.4); }
  50% { box-shadow: 0 4px 32px rgba(192,57,43,0.7), 0 0 0 8px rgba(192,57,43,0.1); }
}

.ai-panel {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 1000;
  width: 400px; max-height: 580px;
  background: var(--editor-bg);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ai-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1; pointer-events: all;
}

.ai-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  background: #141824;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.ai-panel-title-row { display: flex; align-items: center; gap: 0.7rem; }
.ai-panel-avatar {
  width: 30px; height: 30px;
  background: var(--rust); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.ai-panel-name { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; color: white; }
.ai-panel-status { font-family: var(--mono); font-size: 0.55rem; color: #27ae60; display: flex; align-items: center; gap: 0.3rem; }
.ai-panel-status::before { content: ''; width: 5px; height: 5px; background: #27ae60; border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
.ai-panel-close {
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: none; font-size: 1.1rem; line-height: 1;
  transition: color 0.2s; padding: 0.2rem;
}
.ai-panel-close:hover { color: white; }

.ai-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.ai-msg { display: flex; gap: 0.6rem; align-items: flex-start; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0; margin-top: 2px;
}
.ai-msg.bot .ai-msg-avatar { background: var(--rust); }
.ai-msg.user .ai-msg-avatar { background: var(--steel); }
.ai-msg-bubble {
  max-width: 80%; padding: 0.7rem 1rem;
  font-size: 0.8rem; line-height: 1.55;
  border-radius: 2px;
}
.ai-msg.bot .ai-msg-bubble { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.ai-msg.user .ai-msg-bubble { background: var(--rust); color: white; }

.ai-typing {
  display: flex; gap: 4px; align-items: center; padding: 0.4rem 0;
}
.ai-typing span {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; animation: typingDot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.ai-quick-btns {
  display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem;
}
.ai-quick-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.05em; padding: 0.35rem 0.7rem; cursor: none;
  transition: all 0.2s; border-radius: 2px;
}
.ai-quick-btn:hover { background: rgba(192,57,43,0.2); border-color: var(--rust); color: white; }

.ai-input-row {
  display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0; padding: 0.8rem;
  background: #141824;
}
.ai-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: white; font-family: var(--sans); font-size: 0.82rem;
  padding: 0.6rem 0.9rem; outline: none; transition: border-color 0.2s;
  border-radius: 2px 0 0 2px;
}
.ai-input:focus { border-color: var(--rust); }
.ai-input::placeholder { color: rgba(255,255,255,0.25); }
.ai-send-btn {
  background: var(--rust); border: none; color: white;
  padding: 0.6rem 1rem; cursor: none; font-size: 1rem;
  transition: background 0.2s; border-radius: 0 2px 2px 0;
  display: flex; align-items: center; justify-content: center;
}
.ai-send-btn:hover { background: var(--gold); }
.ai-send-btn:disabled { background: var(--steel); cursor: not-allowed; }

/* ── COMPILER page ─────────────────────────────── */
.compiler-wrap {
  display: grid; grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 160px); background: var(--editor-bg);
}
.sidebar { grid-row: 1 / 4; background: #141824; border-right: 1px solid #252b3b; padding: 1.5rem 0; overflow-y: auto; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-title { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: #4a5568; padding: 0 1.5rem; margin-bottom: 0.75rem; }
.db-table { padding: 0.5rem 1.5rem; cursor: pointer; transition: background 0.15s; border-left: 2px solid transparent; }
.db-table:hover, .db-table.active { background: rgba(201,168,76,0.08); border-left-color: var(--gold); }
.db-table-name { font-family: var(--mono); font-size: 0.75rem; color: var(--gold); margin-bottom: 0.25rem; }
.db-table-info { font-family: var(--mono); font-size: 0.6rem; color: #4a5568; }
.db-field { display: flex; gap: 0.5rem; padding: 0.2rem 1.5rem; font-family: var(--mono); font-size: 0.65rem; }
.db-field-name { color: #a8b2d8; }
.db-field-type { color: #4a5568; }
.db-field-pk { color: var(--gold); font-size: 0.55rem; padding: 0 3px; border: 1px solid var(--gold); border-radius: 2px; }
.db-field-fk { color: var(--rust); font-size: 0.55rem; padding: 0 3px; border: 1px solid var(--rust); border-radius: 2px; }
.snippet-btn { display: block; width: calc(100% - 3rem); margin: 0.25rem 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid #252b3b; color: #a8b2d8; font-family: var(--mono); font-size: 0.65rem; text-align: left; padding: 0.5rem 0.75rem; cursor: pointer; transition: all 0.15s; border-radius: 2px; }
.snippet-btn:hover { background: rgba(192,57,43,0.1); border-color: var(--rust); color: white; }
.snippet-label { color: #4a5568; display: block; font-size: 0.55rem; margin-bottom: 2px; }

/* ── MOBILE ─────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-left { padding: 3rem 2rem; }
  .hero-right { display: none; }
  section, .tools-section, .practice-section, .assess-section { padding: 4rem 2rem; }
  .objectives-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .labs-grid { grid-template-columns: 1fr; }
  .assess-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .split-inner { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 2rem; text-align: center; padding: 3rem 2rem; }
  .tools-header { grid-template-columns: 1fr; }
  .ai-panel { width: calc(100vw - 2rem); right: 1rem; }
}

/* ── FEEDBACK PAGE STYLES ──────────────────────────── */
/* MAIN LAYOUT */
.fb-wrap { max-width: 1200px; margin: 0 auto; padding: 4rem 6rem; display: grid; grid-template-columns: 1fr 400px; gap: 3rem; }

/* FORM CARD */
.fb-form-card { background: white; border: 1.5px solid rgba(13,13,13,0.08); }

.fb-section { padding: 2rem 2.5rem; border-bottom: 1px solid rgba(13,13,13,0.06); }
.fb-section:last-child { border-bottom: none; }
.fb-section-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rust); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.fb-section-label::before { content: ''; width: 20px; height: 1px; background: var(--rust); }

/* STAR RATING */
.star-group { display: flex; flex-direction: column; gap: 1rem; }
.star-row { display: flex; justify-content: space-between; align-items: center; }
.star-label { font-size: 0.85rem; color: #444; flex: 1; }
.stars { display: flex; gap: 0.3rem; }
.star { font-size: 1.5rem; cursor: pointer; transition: transform 0.1s; color: #ddd; user-select: none; }
.star.active { color: var(--gold); }
.star:hover { transform: scale(1.2); }

/* EMOJI MOOD */
.mood-row { display: flex; justify-content: space-between; }
.mood-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; cursor: pointer; padding: 0.8rem 1rem; border: 1.5px solid transparent; transition: all 0.2s; flex: 1; }
.mood-item:hover, .mood-item.selected { border-color: var(--gold); background: rgba(201,168,76,0.06); }
.mood-emoji { font-size: 2rem; }
.mood-text { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.mood-item.selected .mood-text { color: var(--gold); }

/* TEXTAREA */
.fb-textarea {
  width: 100%; padding: 1rem; border: 1.5px solid rgba(13,13,13,0.1);
  font-family: var(--sans); font-size: 0.85rem; line-height: 1.6;
  color: var(--ink); background: transparent; resize: vertical; min-height: 100px;
  transition: border-color 0.2s; outline: none;
}
.fb-textarea:focus { border-color: var(--rust); }
.fb-textarea::placeholder { color: var(--mist); }

/* CHECKBOX GRID */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.check-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid rgba(13,13,13,0.08); cursor: pointer; transition: all 0.2s; user-select: none; }
.check-item:hover { border-color: var(--rust); }
.check-item.checked { background: rgba(192,57,43,0.04); border-color: var(--rust); }
.check-box { width: 16px; height: 16px; border: 1.5px solid rgba(13,13,13,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; font-size: 0.7rem; }
.check-item.checked .check-box { background: var(--rust); border-color: var(--rust); color: white; }
.check-text { font-size: 0.78rem; color: #444; }

/* SUBMIT */
.fb-submit-row { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; padding: 2rem 2.5rem; background: rgba(13,13,13,0.02); }
.fb-submit-btn { padding: 1rem 3rem; background: var(--rust); color: white; border: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.fb-submit-btn:hover { background: var(--ink); }
.fb-submit-btn:disabled { background: var(--mist); cursor: not-allowed; }
.fb-counter { font-family: var(--mono); font-size: 0.62rem; color: var(--mist); }

/* SIDEBAR */
.fb-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.fb-stat-card { background: var(--ink); color: white; padding: 2rem; }
.fsc-label { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist); margin-bottom: 1rem; }
.fsc-big { font-family: var(--serif); font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 0.3rem; }
.fsc-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.fb-ai-card { background: var(--steel); padding: 2rem; }
.fac-head { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.fac-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.8rem; line-height: 1.3; }
.fac-desc { font-size: 0.78rem; line-height: 1.55; color: rgba(255,255,255,0.45); margin-bottom: 1.2rem; }

.fb-ask-btn { width: 100%; padding: 0.8rem; background: var(--gold); color: var(--ink); border: none; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.fb-ask-btn:hover { background: white; }

.ai-reflection-output { margin-top: 1rem; display: none; }
.ai-reflection-text { font-size: 0.78rem; line-height: 1.65; color: rgba(255,255,255,0.7); padding: 1rem; background: rgba(255,255,255,0.04); border-left: 2px solid var(--gold); }

.ai-thinking-sm { display: flex; gap: 4px; align-items: center; padding: 0.8rem; }
.ai-dot-sm { width:5px;height:5px;border-radius:50%;background:var(--gold);animation:aiP 1.2s infinite; }
.ai-dot-sm:nth-child(2){animation-delay:0.2s;}
.ai-dot-sm:nth-child(3){animation-delay:0.4s;}

/* TIPS CARD */
.fb-tips-card { border: 1.5px solid rgba(13,13,13,0.1); padding: 1.5rem; }
.ftc-head { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rust); margin-bottom: 1rem; }
.ftc-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.ftc-list li { font-size: 0.78rem; color: #555; display: flex; gap: 0.5rem; line-height: 1.5; }
.ftc-list li::before { content: '›'; color: var(--rust); flex-shrink: 0; }

/* SUCCESS STATE */
.fb-success { display: none; text-align: center; padding: 5rem 3rem; }
.fb-success-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.fb-success h2 { font-family: var(--serif); font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }
.fb-success p { font-size: 0.9rem; color: #555; line-height: 1.7; max-width: 400px; margin: 0 auto 2rem; }

/* PROGRESS BAR */
.fb-progress-wrap { padding: 1rem 2.5rem 0; }
.fb-progress-bar { height: 3px; background: rgba(13,13,13,0.08); position: relative; overflow: hidden; }
.fb-progress-fill { height: 100%; background: var(--rust); transition: width 0.4s ease; width: 0%; }
.fb-progress-label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--mist); margin-top: 0.4rem; }

/* SELF-EFFICACY TRACKER */
.se-track { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.se-dot { flex: 1; height: 4px; border-radius: 2px; background: rgba(13,13,13,0.1); transition: background 0.3s; }
.se-dot.filled { background: var(--rust); }


/* ANIMATIONS */

/* ── COMPILER PAGE STYLES ──────────────────────────── */
  /* COMPILER LAYOUT */
  .compiler-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: calc(100vh - 160px);
    background: var(--editor-bg);
  }

  /* SIDEBAR */
  .sidebar {
    grid-row: 1 / 4;
    background: #141824;
    border-right: 1px solid #252b3b;
    padding: 1.5rem 0;
    overflow-y: auto;
  }
  .sidebar-section { margin-bottom: 1.5rem; }
  .sidebar-title {
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: #4a5568; padding: 0 1.5rem; margin-bottom: 0.75rem;
  }
  .db-table {
    padding: 0.5rem 1.5rem; cursor: pointer; transition: background 0.15s;
    border-left: 2px solid transparent;
  }
  .db-table:hover, .db-table.active { background: rgba(201,168,76,0.08); border-left-color: var(--gold); }
  .db-table-name { font-family: var(--mono); font-size: 0.75rem; color: var(--gold); margin-bottom: 0.25rem; }
  .db-table-info { font-family: var(--mono); font-size: 0.6rem; color: #4a5568; }
  .db-field { display: flex; gap: 0.5rem; padding: 0.2rem 1.5rem; font-family: var(--mono); font-size: 0.65rem; }
  .db-field-name { color: #a8b2d8; }
  .db-field-type { color: #4a5568; }
  .db-field-pk { color: var(--gold); font-size: 0.55rem; padding: 0 3px; border: 1px solid var(--gold); border-radius: 2px; }
  .db-field-fk { color: var(--rust); font-size: 0.55rem; padding: 0 3px; border: 1px solid var(--rust); border-radius: 2px; }

  .snippet-btn {
    display: block; width: calc(100% - 3rem); margin: 0.25rem 1.5rem;
    background: rgba(255,255,255,0.03); border: 1px solid #252b3b;
    color: #a8b2d8; font-family: var(--mono); font-size: 0.65rem;
    text-align: left; padding: 0.5rem 0.75rem; cursor: pointer;
    transition: all 0.15s; border-radius: 2px;
  }
  .snippet-btn:hover { background: rgba(192,57,43,0.1); border-color: var(--rust); color: white; }
  .snippet-label { color: #4a5568; display: block; font-size: 0.55rem; margin-bottom: 2px; }

  /* EDITOR AREA */
  .editor-header {
    grid-column: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #141824;
    border-bottom: 1px solid #252b3b;
  }
  .editor-tabs { display: flex; gap: 0; }
  .editor-tab {
    font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 0.4rem 1rem;
    color: #4a5568; background: transparent; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
  }
  .editor-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
  .run-btn {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--rust); color: white; border: none; cursor: pointer;
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem; transition: background 0.2s;
  }
  .run-btn:hover { background: #a93226; }
  .run-btn:disabled { background: #4a5568; cursor: not-allowed; }
  .run-btn .kbd { background: rgba(255,255,255,0.15); padding: 1px 5px; border-radius: 2px; font-size: 0.55rem; }

  /* EDITOR */
  .editor-gutter {
    position: absolute; top: 0; left: 0; bottom: 0; width: 48px;
    background: #141824; border-right: 1px solid #252b3b;
    font-family: var(--mono); font-size: 0.7rem; color: #3a4156;
    padding-top: 1rem; text-align: right; padding-right: 10px;
    user-select: none; line-height: 1.6rem;
  }
  #sqlEditor {
    width: 100%; min-height: 260px; max-height: 320px;
    background: var(--editor-bg); color: #a8b2d8;
    border: none; outline: none; resize: vertical;
    font-family: var(--mono); font-size: 0.82rem; line-height: 1.6rem;
    padding: 1rem 1rem 1rem 64px;
    caret-color: var(--gold);
    tab-size: 2;
  }
  #sqlEditor::selection { background: rgba(201,168,76,0.2); }

  /* RESULT */
  .result-area { grid-column: 2; border-top: 1px solid #252b3b; }
  .result-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1.5rem; background: #141824; border-bottom: 1px solid #252b3b;
  }
  .result-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: #4a5568; }
  .result-meta { font-family: var(--mono); font-size: 0.65rem; color: #4a5568; }
  .result-meta.success { color: #27ae60; }
  .result-meta.error { color: var(--rust); }
  #resultContainer {
    padding: 1rem 1.5rem;
    min-height: 180px; max-height: 320px; overflow: auto;
    font-family: var(--mono); font-size: 0.75rem;
  }
  .result-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 140px; color: #3a4156; gap: 0.5rem;
  }
  .result-placeholder .ph-icon { font-size: 2rem; }
  .result-placeholder p { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .result-table { width: 100%; border-collapse: collapse; }
  .result-table th {
    text-align: left; padding: 0.4rem 0.75rem;
    background: #141824; color: var(--gold);
    font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    border-bottom: 1px solid #252b3b; white-space: nowrap;
  }
  .result-table td {
    padding: 0.4rem 0.75rem; color: #a8b2d8;
    border-bottom: 1px solid #1e2438; white-space: nowrap;
    font-size: 0.75rem;
  }
  .result-table tr:hover td { background: rgba(255,255,255,0.02); }
  .result-table td.null-val { color: #3a4156; font-style: italic; }
  .result-table td.num-val { color: #79c0ff; }
  .result-error {
    background: rgba(192,57,43,0.1); border: 1px solid rgba(192,57,43,0.3);
    border-radius: 2px; padding: 1rem; color: #e74c3c;
    font-size: 0.75rem; line-height: 1.6;
  }
  .result-success-msg {
    background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.3);
    border-radius: 2px; padding: 1rem; color: #27ae60;
    font-size: 0.75rem;
  }

  /* SCHEMA INFO PANEL */
  .sf-name { color: #a8b2d8; }
  .sf-type { color: #4a5568; }
  .sf-badge { font-size: 0.5rem; padding: 1px 4px; border-radius: 1px; }
  .sf-pk { background: rgba(201,168,76,0.2); color: var(--gold); border: 1px solid rgba(201,168,76,0.4); }
  .sf-fk { background: rgba(192,57,43,0.2); color: #e74c3c; border: 1px solid rgba(192,57,43,0.4); }
  .sf-nn { background: rgba(168,178,216,0.1); color: #4a5568; border: 1px solid #252b3b; }

/* ── LESSONS PAGE STYLES ──────────────────────────── */
  /* NAV */






  /* HERO */











  /* DB SCHEMA VISUAL */






  /* SECTIONS GENERAL */
  section {
    padding: 7rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
  }





  /* OBJECTIVES GRID */







  /* SPLIT LAYOUT */





  /* STEPS */






  /* AI TOOLS SECTION */











  /* PRACTICE SECTION */













  /* ASSESSMENT */

















  /* RESOURCES */




  .resource-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
  }

  .resource-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-4px);
  }

  .resource-type {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
  }

  .resource-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .resource-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.45);
  }

  /* FOOTER */





  /* DIVIDER */

  /* TIMELINE STRIP */




  /* ANIMATIONS */


  /* SCROLL ANIMATIONS */



  /* CODE BLOCK */


  /* MOBILE */

/* ── HOMEWORK PAGE STYLES ──────────────────────────── */
/* Progress bar */
.hw-progress {
  margin-bottom: 1.5rem;
}
.hw-prog-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.hw-prog-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.hw-prog-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--rust));
  border-radius: 2px;
  transition: width 1s ease;
}

/* Filter buttons */
.hw-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hw-btn {
  padding: 0.45rem 1.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.hw-btn:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.25);
}
.hw-btn.active {
  background: var(--rust);
  border-color: var(--rust);
  color: white;
}

/* Cards grid */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Individual card */
.hw-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid rgba(255,255,255,0.12);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s, background 0.25s;
  border-radius: 2px;
}
.hw-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.hw-card[data-status="done"] {
  border-left-color: #27ae60;
}
.hw-card[data-status="pending"] {
  border-left-color: var(--gold);
}
.hw-card[data-status="late"] {
  border-left-color: #e74c3c;
}
.hw-project {
  grid-column: span 2;
  border-left-color: var(--gold) !important;
  background: rgba(201,168,76,0.05) !important;
}

/* Card top row */
.hw-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hw-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* Status badge */
.hw-status-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}
.hw-done {
  background: rgba(39,174,96,0.15);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.3);
}
.hw-pending {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
}
.hw-late {
  background: rgba(231,76,60,0.12);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.25);
}

/* Card content */
.hw-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}
.hw-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

/* Tags */
.hw-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hw-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  border-radius: 2px;
}

/* Footer row */
.hw-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hw-deadline {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}
.hw-score {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
}

/* Submit area */
.hw-submit-area {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}
.hw-submitted {
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  background: rgba(39,174,96,0.05);
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(39,174,96,0.15);
}
.hw-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.55rem 0.8rem;
  outline: none;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.hw-input:focus {
  border-color: var(--gold);
}
.hw-input::placeholder {
  color: rgba(255,255,255,0.2);
}
.hw-submit-btn {
  padding: 0.55rem 1.1rem;
  background: var(--rust);
  color: white;
  border: none;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}
.hw-submit-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 900px) {
  .hw-grid { grid-template-columns: 1fr; }
  .hw-project { grid-column: span 1; }
}
  /* NAV */






  /* HERO */











  /* DB SCHEMA VISUAL */






  /* SECTIONS GENERAL */
  section {
    padding: 7rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
  }





  /* OBJECTIVES GRID */







  /* SPLIT LAYOUT */





  /* STEPS */






  /* AI TOOLS SECTION */











  /* PRACTICE SECTION */













  /* ASSESSMENT */

















  /* RESOURCES */




  .resource-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
  }

  .resource-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-4px);
  }

  .resource-type {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
  }

  .resource-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .resource-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.45);
  }

  /* FOOTER */





  /* DIVIDER */

  /* TIMELINE STRIP */




  /* ANIMATIONS */


  /* SCROLL ANIMATIONS */



  /* CODE BLOCK */


  /* MOBILE */

/* ── QUIZ PAGE STYLES ──────────────────────────── */
  /* NAV */






  /* HERO */











  /* DB SCHEMA VISUAL */






  /* SECTIONS GENERAL */
  section {
    padding: 7rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
  }





  /* OBJECTIVES GRID */







  /* SPLIT LAYOUT */





  /* STEPS */






  /* AI TOOLS SECTION */











  /* PRACTICE SECTION */













  /* ASSESSMENT */

















  /* RESOURCES */




  .resource-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
  }

  .resource-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-4px);
  }

  .resource-type {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
  }

  .resource-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .resource-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.45);
  }

  /* FOOTER */





  /* DIVIDER */

  /* TIMELINE STRIP */




  /* ANIMATIONS */


  /* SCROLL ANIMATIONS */



  /* CODE BLOCK */


  /* MOBILE */

/* ── LESSONS PAGE STYLES ──────────────────────────── */
lay: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .resource-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
  }

  .resource-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-4px);
  }

  .resource-type {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
  }

  .resource-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .resource-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.45);
  }

  /* FOOTER */
  footer {
    background: var(--ink);
    color: var(--paper);
    padding: 4rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(245,240,232,0.08);
  }

  .footer-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 900;
  }

  .footer-logo span { color: var(--rust); }

  .footer-info {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(245,240,232,0.3);
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.8;
  }

  .footer-meta {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(245,240,232,0.3);
    text-align: right;
    line-height: 1.8;
  }

  /* DIVIDER */
  .divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ink), transparent);
    opacity: 0.12;
    margin: 0 6rem;
    width: calc(100% - 12rem);
  }

  /* TIMELINE STRIP */
  .timeline-strip {
    background: var(--rust);
    padding: 1.5rem 6rem;
    overflow: hidden;
    white-space: nowrap;
  }

  .ticker-inner {
    display: inline-flex;
    gap: 4rem;
    animation: ticker 20s linear infinite;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
  }

  .ticker-inner span { color: rgba(255,255,255,0.4); }

  @keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* SCROLL ANIMATIONS */
  .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }

  /* CODE BLOCK */
  .code-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid var(--gold);
    padding: 1.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-top: 2rem;
    overflow-x: auto;
  }

  .code-block .kw { color: #e74c3c; }
  .code-block .fn { color: var(--gold); }
  .code-block .str { color: #2ecc71; }
  .code-block .cm { color: rgba(255,255,255,0.3); font-style: italic; }

  /* MOBILE */
  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero::before { display: none; }
    .hero-left { padding: 3rem 2rem; }
    .hero-right { display: none; }
    section, .tools-section, .practice-section, .assess-section { padding: 4rem 2rem; }
    .objectives-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .labs-grid { grid-template-columns: 1fr; }
    .assess-grid { grid-template-columns: 1fr; }
    .resources-grid { grid-template-columns: 1fr; }
    .split-inner { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 2rem; text-align: center; padding: 3rem 2rem; }
    .tools-header { grid-template-columns: 1fr; }
  }

.nav-links a.active{color:var(--rust)}.nav-links a.active::after{width:100%}
.page-hero{padding:8rem 6rem 4rem;background:var(--steel);color:white}
.page-hero-eyebrow{font-family:var(--mono);font-size:.65rem;letter-spacing:.35em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.page-hero-title{font-family:var(--serif);font-size:clamp(2.5rem,4vw,4rem);font-weight:900;color:white;line-height:1.1;margin-bottom:1rem}
.page-hero-title em{color:var(--gold);font-style:italic}
.page-hero-desc{color:rgba(255,255,255,.55);font-size:.95rem;line-height:1.7;max-width:600px}



/* ── QUIZ PAGE STYLES ──────────────────────────── */
lay: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .resource-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
  }

  .resource-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-4px);
  }

  .resource-type {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
  }

  .resource-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .resource-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.45);
  }

  /* FOOTER */
  footer {
    background: var(--ink);
    color: var(--paper);
    padding: 4rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(245,240,232,0.08);
  }

  .footer-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 900;
  }

  .footer-logo span { color: var(--rust); }

  .footer-info {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(245,240,232,0.3);
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.8;
  }

  .footer-meta {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(245,240,232,0.3);
    text-align: right;
    line-height: 1.8;
  }

  /* DIVIDER */
  .divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ink), transparent);
    opacity: 0.12;
    margin: 0 6rem;
    width: calc(100% - 12rem);
  }

  /* TIMELINE STRIP */
  .timeline-strip {
    background: var(--rust);
    padding: 1.5rem 6rem;
    overflow: hidden;
    white-space: nowrap;
  }

  .ticker-inner {
    display: inline-flex;
    gap: 4rem;
    animation: ticker 20s linear infinite;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
  }

  .ticker-inner span { color: rgba(255,255,255,0.4); }

  @keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* SCROLL ANIMATIONS */
  .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }

  /* CODE BLOCK */
  .code-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid var(--gold);
    padding: 1.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-top: 2rem;
    overflow-x: auto;
  }

  .code-block .kw { color: #e74c3c; }
  .code-block .fn { color: var(--gold); }
  .code-block .str { color: #2ecc71; }
  .code-block .cm { color: rgba(255,255,255,0.3); font-style: italic; }

  /* MOBILE */
  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero::before { display: none; }
    .hero-left { padding: 3rem 2rem; }
    .hero-right { display: none; }
    section, .tools-section, .practice-section, .assess-section { padding: 4rem 2rem; }
    .objectives-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .labs-grid { grid-template-columns: 1fr; }
    .assess-grid { grid-template-columns: 1fr; }
    .resources-grid { grid-template-columns: 1fr; }
    .split-inner { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 2rem; text-align: center; padding: 3rem 2rem; }
    .tools-header { grid-template-columns: 1fr; }
  }

.nav-links a.active{color:var(--rust)}.nav-links a.active::after{width:100%}
.page-hero{padding:8rem 6rem 4rem;background:var(--steel);color:white}
.page-hero-eyebrow{font-family:var(--mono);font-size:.65rem;letter-spacing:.35em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.page-hero-title{font-family:var(--serif);font-size:clamp(2.5rem,4vw,4rem);font-weight:900;color:white;line-height:1.1;margin-bottom:1rem}
.page-hero-title em{color:var(--gold);font-style:italic}
.page-hero-desc{color:rgba(255,255,255,.55);font-size:.95rem;line-height:1.7;max-width:600px}



/* ── LESSONS PAGE STYLES ──────────────────────────── */
.lesson-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ltab {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(13,13,13,0.12);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.ltab:hover { border-color: var(--rust); color: var(--rust); }
.ltab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.lesson-list { display: flex; flex-direction: column; gap: 0; }

.lesson-week-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1.5rem 0 0.6rem;
  border-bottom: 1px solid rgba(13,13,13,0.07);
  margin-bottom: 0;
}

.lesson-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(13,13,13,0.06);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.lesson-row:hover { background: rgba(192,57,43,0.03); }
.lesson-row.open { background: rgba(13,13,13,0.03); }

.lesson-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.lesson-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  width: fit-content;
}
.lesson-badge.done { background: rgba(39,174,96,0.12); color: #27ae60; border: 1px solid rgba(39,174,96,0.25); }
.lesson-badge.upcoming { background: rgba(201,168,76,0.1); color: var(--gold); border: 1px solid rgba(201,168,76,0.2); }
.lesson-badge.progress { background: rgba(41,128,185,0.12); color: #2980b9; border: 1px solid rgba(41,128,185,0.2); }

.lesson-week-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--mist);
}

.lesson-main { flex: 1; }
.lesson-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.lesson-sub {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.5;
}

.lesson-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.l-icon { font-size: 1rem; opacity: 0.6; cursor: default; }
.l-icon:hover { opacity: 1; }
.l-duration {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--mist);
  letter-spacing: 0.05em;
}
.l-arrow {
  font-size: 1.3rem;
  color: var(--mist);
  transition: transform 0.3s, color 0.2s;
  line-height: 1;
}
.lesson-row.open .l-arrow { transform: rotate(90deg); color: var(--rust); }

.lesson-expand {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.lesson-row.open .lesson-expand { max-height: 400px; }
.lesson-expand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid rgba(13,13,13,0.06);
  margin-top: 0.5rem;
}
.le-col { display: flex; flex-direction: column; gap: 0.3rem; }
.le-head {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.4rem;
}
.le-list { list-style: none; }
.le-list li {
  font-size: 0.78rem;
  color: #555;
  padding: 0.15rem 0;
  padding-left: 0.8rem;
  position: relative;
}
.le-list li::before { content: '›'; position: absolute; left: 0; color: var(--rust); }
.le-code {
  font-family: var(--mono);
  font-size: 0.68rem;
  background: rgba(13,13,13,0.05);
  border: 1px solid rgba(13,13,13,0.08);
  padding: 0.5rem 0.8rem;
  color: #444;
  border-left: 2px solid var(--gold);
}

@media (max-width: 900px) {
  .lesson-row { grid-template-columns: 1fr; }
  .lesson-expand-inner { grid-template-columns: 1fr; }
}

/* ── QUIZ PAGE STYLES ──────────────────────────── */
.quiz-selector {
  padding: 4rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}
.quiz-selector .section-label { color: var(--rust); }

.level-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.level-card {
  background: var(--paper);
  border: 1.5px solid rgba(13,13,13,0.1);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  border-radius: 2px;
}
.level-card:hover { border-color: var(--rust); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.level-card.active-level { border-color: var(--rust); background: rgba(192,57,43,0.03); }

.lc-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--mist);
  margin-bottom: 0.8rem;
}
.lc-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.lc-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.lc-desc { font-size: 0.8rem; color: #666; line-height: 1.5; margin-bottom: 1rem; }
.lc-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.new-badge { background: rgba(192,57,43,0.1); color: var(--rust); border: 1px solid rgba(192,57,43,0.2); }
.done-badge { background: rgba(39,174,96,0.1); color: #27ae60; border: 1px solid rgba(39,174,96,0.2); }
.lock-badge { background: rgba(138,155,168,0.1); color: var(--mist); border: 1px solid rgba(138,155,168,0.2); }

/* Quiz selection cards */
.quiz-sel-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.quiz-sel-card {
  background: white;
  border: 1.5px solid rgba(13,13,13,0.08);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.quiz-sel-card:hover, .quiz-sel-card.active-quiz-sel {
  border-color: var(--rust);
  background: rgba(192,57,43,0.02);
}
.qsc-num { font-family: var(--mono); font-size: 0.57rem; color: var(--mist); letter-spacing: 0.2em; margin-bottom: 0.4rem; }
.qsc-title { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.qsc-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.qsc-badge {
  font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.15rem 0.5rem;
  border-radius: 2px; background: rgba(13,13,13,0.05); color: #666;
}

/* Quiz intro */
.quiz-intro-box {
  background: var(--steel); color: white;
  padding: 2.5rem; margin-top: 2rem; border-radius: 2px;
}
.qi-header {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  margin-bottom: 1.5rem; color: white;
}
.qi-stats { display: flex; gap: 2rem; margin-bottom: 1.5rem; }
.qi-stat {
  font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
}
.qi-stat strong { display: block; font-size: 1.2rem; color: var(--gold); font-weight: 500; }
.qi-rules { list-style: none; margin-bottom: 2rem; }
.qi-rules li {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  padding: 0.3rem 0; padding-left: 1rem; position: relative;
}
.qi-rules li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }
.quiz-start-btn {
  padding: 0.9rem 2.5rem; background: var(--rust); color: white;
  border: none; font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  border-radius: 2px; transition: background 0.2s;
}
.quiz-start-btn:hover { background: var(--gold); color: var(--ink); }

/* Active quiz area */
.quiz-area { padding: 4rem 6rem; max-width: 900px; margin: 0 auto; }
.quiz-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13,13,13,0.08);
}
.qtb-left { font-family: var(--mono); font-size: 0.65rem; color: var(--mist); }
.qtb-timer {
  font-family: var(--mono); font-size: 1.1rem; font-weight: 500;
  color: var(--rust); letter-spacing: 0.05em;
}

.q-progress-bar {
  height: 3px; background: rgba(13,13,13,0.08);
  border-radius: 2px; margin-bottom: 2.5rem; overflow: hidden;
}
.q-progress-fill {
  height: 100%; background: var(--rust);
  border-radius: 2px; transition: width 0.4s ease;
}

.quiz-question-box { margin-bottom: 2rem; }
.qq-text {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  color: var(--ink); line-height: 1.4; margin-bottom: 2rem;
}
.qq-options { display: flex; flex-direction: column; gap: 0.7rem; }
.qq-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem;
  border: 1.5px solid rgba(13,13,13,0.1);
  cursor: pointer; transition: all 0.2s; border-radius: 2px;
  background: white;
}
.qq-option:hover { border-color: var(--rust); background: rgba(192,57,43,0.02); }
.qq-option.qrb-correct { border-color: #27ae60; background: rgba(39,174,96,0.06); }
.qq-option.qrb-wrong { border-color: #e74c3c; background: rgba(231,76,60,0.06); }
.opt-letter {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(13,13,13,0.06); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500; flex-shrink: 0;
}
.qrb-icon { font-size: 1rem; flex-shrink: 0; }

.qq-feedback {
  padding: 1rem 1.3rem; border-radius: 2px;
  font-size: 0.85rem; line-height: 1.55; margin-top: 1rem;
  display: none;
}
.qq-feedback.show { display: block; }
.qq-feedback.correct { background: rgba(39,174,96,0.1); color: #1a6b3a; border-left: 3px solid #27ae60; }
.qq-feedback.wrong { background: rgba(231,76,60,0.08); color: #8b2020; border-left: 3px solid #e74c3c; }

.quiz-nav { display: flex; justify-content: space-between; margin-top: 2rem; }
.qnav-btn {
  padding: 0.75rem 2rem; border: 1.5px solid rgba(13,13,13,0.15);
  background: transparent; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  border-radius: 2px; transition: all 0.2s; color: var(--ink);
}
.qnav-btn:hover { border-color: var(--ink); }
.qnav-next { background: var(--rust); color: white; border-color: var(--rust); }
.qnav-next:hover { background: var(--ink); border-color: var(--ink); }

/* Results */
.quiz-result-box { text-align: center; padding: 4rem 6rem; max-width: 700px; margin: 0 auto; }
.qr-score-ring {
  width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid var(--rust); display: flex; flex-direction: column;
  align-items: center; justify-content: center; margin: 0 auto 2rem;
}
.qr-score-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 900; color: var(--rust); }
.qr-score-label { font-family: var(--mono); font-size: 0.55rem; color: var(--mist); letter-spacing: 0.2em; }
.qr-verdict { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.qr-stats { display: flex; justify-content: center; gap: 3rem; margin: 2rem 0; }
.qr-stat-item { text-align: center; }
.qr-stat-item strong { display: block; font-family: var(--mono); font-size: 1.5rem; color: var(--ink); }
.qr-stat-item span { font-size: 0.75rem; color: var(--mist); }
.qr-breakdown { text-align: left; margin-top: 2rem; }
.qrb-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(13,13,13,0.06);
  font-size: 0.82rem;
}
.qrb-q { flex: 1; color: #444; }

@media (max-width: 900px) {
  .quiz-selector, .quiz-area, .quiz-result-box { padding: 3rem 1.5rem; }
  .level-cards-grid { grid-template-columns: 1fr; }
  .quiz-sel-cards { grid-template-columns: 1fr; }
  .qi-stats { flex-wrap: wrap; gap: 1rem; }
  .qr-stats { gap: 1.5rem; }
}

/* ── COMPILER PAGE EXTRA STYLES ──────────────────────────── */
/* EDITOR AREA */
  .editor-header {
    grid-column: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #141824;
    border-bottom: 1px solid #252b3b;
  }
  .editor-tabs { display: flex; gap: 0; }
  .editor-tab {
    font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 0.4rem 1rem;
    color: #4a5568; background: transparent; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
  }
  .editor-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
  .run-btn {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--rust); color: white; border: none; cursor: pointer;
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem; transition: background 0.2s;
  }
  .run-btn:hover { background: #a93226; }
  .run-btn:disabled { background: #4a5568; cursor: not-allowed; }
  .run-btn .kbd { background: rgba(255,255,255,0.15); padding: 1px 5px; border-radius: 2px; font-size: 0.55rem; }

  /* EDITOR */
  .editor-body { grid-column: 2; position: relative; min-height: 260px; }
  .editor-gutter {
    position: absolute; top: 0; left: 0; bottom: 0; width: 48px;
    background: #141824; border-right: 1px solid #252b3b;
    font-family: var(--mono); font-size: 0.7rem; color: #3a4156;
    padding-top: 1rem; text-align: right; padding-right: 10px;
    user-select: none; line-height: 1.6rem;
  }
  #sqlEditor {
    width: 100%; min-height: 260px; max-height: 320px;
    background: var(--editor-bg); color: #a8b2d8;
    border: none; outline: none; resize: vertical;
    font-family: var(--mono); font-size: 0.82rem; line-height: 1.6rem;
    padding: 1rem 1rem 1rem 64px;
    caret-color: var(--gold);
    tab-size: 2;
  }
  #sqlEditor::selection { background: rgba(201,168,76,0.2); }

  /* RESULT */
  .result-area { grid-column: 2; border-top: 1px solid #252b3b; }
  .result-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1.5rem; background: #141824; border-bottom: 1px solid #252b3b;
  }
  .result-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: #4a5568; }
  .result-meta { font-family: var(--mono); font-size: 0.65rem; color: #4a5568; }
  .result-meta.success { color: #27ae60; }
  .result-meta.error { color: var(--rust); }
  #resultContainer {
    padding: 1rem 1.5rem;
    min-height: 180px; max-height: 320px; overflow: auto;
    font-family: var(--mono); font-size: 0.75rem;
  }
  .result-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 140px; color: #3a4156; gap: 0.5rem;
  }
  .result-placeholder .ph-icon { font-size: 2rem; }
  .result-placeholder p { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .result-table { width: 100%; border-collapse: collapse; }
  .result-table th {
    text-align: left; padding: 0.4rem 0.75rem;
    background: #141824; color: var(--gold);
    font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    border-bottom: 1px solid #252b3b; white-space: nowrap;
  }
  .result-table td {
    padding: 0.4rem 0.75rem; color: #a8b2d8;
    border-bottom: 1px solid #1e2438; white-space: nowrap;
    font-size: 0.75rem;
  }
  .result-table tr:hover td { background: rgba(255,255,255,0.02); }
  .result-table td.null-val { color: #3a4156; font-style: italic; }
  .result-table td.num-val { color: #79c0ff; }
  .result-error {
    background: rgba(192,57,43,0.1); border: 1px solid rgba(192,57,43,0.3);
    border-radius: 2px; padding: 1rem; color: #e74c3c;
    font-size: 0.75rem; line-height: 1.6;
  }
  .result-success-msg {
    background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.3);
    border-radius: 2px; padding: 1rem; color: #27ae60;
    font-size: 0.75rem;
  }

  /* SCHEMA INFO PANEL */
  .schema-panel {
    background: #12151f; padding: 2rem 6rem; border-top: 1px solid #252b3b;
  }
  .schema-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
  .schema-card-viz {
    background: #141824; border: 1px solid #252b3b; border-radius: 2px; overflow: hidden;
  }
  .schema-card-header {
    padding: 0.75rem 1rem; background: rgba(201,168,76,0.08);
    border-bottom: 1px solid #252b3b;
    font-family: var(--mono); font-size: 0.7rem; color: var(--gold);
    display: flex; justify-content: space-between; align-items: center;
  }
  .schema-card-rows { font-size: 0.55rem; color: #4a5568; }
  .schema-field-row {
    display: grid; grid-template-columns: 1fr auto auto;
    padding: 0.35rem 1rem; border-bottom: 1px solid #1e2438;
    font-family: var(--mono); font-size: 0.65rem;
    align-items: center; gap: 0.5rem;
  }
  .schema-field-row:last-child { border-bottom: none; }
  .sf-name { color: #a8b2d8; }
  .sf-type { color: #4a5568; }
  .sf-badge { font-size: 0.5rem; padding: 1px 4px; border-radius: 1px; }
  .sf-pk { background: rgba(201,168,76,0.2); color: var(--gold); border: 1px solid rgba(201,168,76,0.4); }
  .sf-fk { background: rgba(192,57,43,0.2); color: #e74c3c; border: 1px solid rgba(192,57,43,0.4); }
  .sf-nn { background: rgba(168,178,216,0.1); color: #4a5568; border: 1px solid #252b3b; }

  .schema-section-title { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: #4a5568; }

  footer { background: var(--steel); color: white; display: flex; align-items: center; justify-content: space-between; padding: 3rem 6rem; margin-top: 0; }
  .footer-logo { font-family: var(--serif); font-size: 1.8rem; font-weight: 900; color: white; }
  .footer-logo span { color: var(--rust); }
  .footer-info { font-size: 0.75rem; line-height: 1.8; color: rgba(255,255,255,0.4); text-align: center; }
  .footer-meta { font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.3); text-align: right; line-height: 1.8; }

/* ── MISSING UTILITY CLASSES ──────────────────────────── */
.step-info {}
.criterion-info {}

/* AI panel inside compiler */
.ai-mode-btn {
  padding: 0.35rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.ai-mode-btn:hover, .ai-mode-btn.active {
  background: rgba(192,57,43,0.2);
  border-color: var(--rust);
  color: white;
}
.ai-dot {
  width: 6px; height: 6px;
  background: #27ae60;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s ease-in-out infinite;
  margin-right: 0.3rem;
}
.ai-response {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  padding: 1.2rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--gold);
}
.ai-thinking {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.editor-body {
  grid-column: 2;
  position: relative;
}

/* ── CURSOR OVERRIDE FOR INTERACTIVE ELEMENTS ── */
.mood-item, .star, .check-item, .fb-submit-btn, .fb-ask-btn, button { cursor: pointer !important; }
.fb-textarea { cursor: text !important; }

/* ══════════════════════════════════════════════════
   КМЖ БӨЛІМІ стилдері
══════════════════════════════════════════════════ */
.kmj-header {
  text-align: center;
  padding: 3rem 0 2.5rem;
}
.kmj-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.kmj-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--star);
  margin: 0 0 0.7rem;
  line-height: 1.15;
}
.kmj-title em { color: var(--gold); font-style: normal; }
.kmj-desc {
  font-size: 0.88rem;
  color: var(--mist);
  margin: 0;
}
.kmj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 1rem;
}
.kmj-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.kmj-card:hover { border-color: rgba(255,215,0,0.3); transform: translateY(-2px); }
.kmj-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}
.kmj-num {
  font-size: 0.72rem;
  font-weight: 900;
  font-family: var(--mono);
  background: linear-gradient(135deg, var(--gold), #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 3.2rem;
  flex-shrink: 0;
}
.kmj-card-info { flex: 1; min-width: 0; }
.kmj-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--star);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.kmj-card-sub {
  font-size: 0.7rem;
  color: var(--mist);
  font-family: var(--mono);
}
.kmj-arrow {
  font-size: 1.2rem;
  color: var(--mist);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.kmj-card.open .kmj-arrow { transform: rotate(90deg); color: var(--gold); }
.kmj-body {
  display: none;
  padding: 0 1.3rem 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.kmj-card.open .kmj-body { display: block; }
.kmj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.kmj-col-head {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.kmj-col-content { display: flex; flex-direction: column; gap: 0.4rem; }
.kmj-goal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 2px solid rgba(255,215,0,0.25);
}
.kmj-step {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.kmj-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.kmj-item-code {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gold);
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin: 0.3rem 0;
  word-break: break-all;
}
.kmj-desc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.kmj-badge-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  color: var(--mist);
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .kmj-grid { grid-template-columns: 1fr; }
  .kmj-row { grid-template-columns: 1fr; }
}

/* ══ ТАПСЫРМАЛАР жаңа стилдері ══ */
.hw-tasks { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.8rem; }
.hw-task {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.hw-task:hover { border-color: rgba(255,215,0,0.25); }
.hw-task.open { border-color: rgba(255,215,0,0.4); }
.hw-task-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.03);
}
.hw-task.open .hw-task-head { background: rgba(255,215,0,0.06); }
.hw-task-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hw-task-label {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.hw-task-arrow {
  font-size: 1rem;
  color: var(--mist);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.hw-task.open .hw-task-arrow { transform: rotate(90deg); color: var(--gold); }
.hw-task-body {
  display: none;
  padding: 0.8rem 0.9rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hw-task.open .hw-task-body { display: block; }
.hw-descriptor {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(255,215,0,0.06);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}
.hw-code {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gold);
  background: rgba(0,0,0,0.35);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin: 0.4rem 0;
  word-break: break-all;
  line-height: 1.5;
}

/* ══ КІТАПХАНА expand стилдері ══ */
.lib-expand-body { display: none; }
.lib-card.open .lib-expand-body { display: block; }
.lib-expand-arrow {
  font-size: 1rem;
  color: var(--mist);
  transition: transform 0.2s;
  display: inline-block;
  margin-left: 0.3rem;
}
.lib-card.open .lib-expand-arrow { transform: rotate(90deg); color: var(--gold); }
.lib-card { cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
