@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --bg-code: #1a1a2e;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #9a9a9a;
  --border: #e5e5e3;
  --border-subtle: #f0f0ee;
  --accent: #8B5CF6;
  --accent-dim: rgba(139,92,246,0.10);
  --accent-blue: #3B82F6;
  --accent-green: #10B981;
  --accent-yellow: #F59E0B;
  --accent-red: #EF4444;
  --green-dim: rgba(16,185,129,0.10);
  --yellow-dim: rgba(245,158,11,0.10);
  --red-dim: rgba(239,68,68,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--nav-h) + 24px); }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }
p { color: var(--text-secondary); margin-top: 0.5rem; margin-bottom: 0.5rem; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7c3aed; }
code { font-family: var(--mono); font-size: 0.85em; padding: 0.15em 0.45em; border-radius: 4px; color: #1a1a1a; }
.cmd-inline code,
.pc2-body code,
pre code { color: #e2e8f0; background: transparent; padding: 0; }
ul, ol { padding-left: 1.25rem; color: var(--text-secondary); }
li { margin-bottom: 0.45rem; }

/* ---- Top Nav ---- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247,247,245,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 2rem;
}
.topnav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.topnav-logo img { height: 28px; width: auto; }
.topnav-logo span { font-weight: 700; font-size: 0.95rem; color: var(--text); letter-spacing: -0.01em; }
.topnav-links { display: flex; gap: 0.25rem; margin-left: auto; flex-wrap: wrap; }
.topnav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  padding: 0.4rem 0.7rem; border-radius: var(--radius-xs); transition: all var(--transition);
}
.topnav-links a:hover { color: var(--text); background: var(--border-subtle); }
.topnav-links a.active { color: var(--accent); background: var(--accent-dim); }
.hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 0.35rem 0.5rem; cursor: pointer; font-size: 1.25rem; color: var(--text); }

/* ---- Layout ---- */
.page-body { padding-top: var(--nav-h); }
.container { max-width: 900px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero .tagline { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.hero .philosophy { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-top: 0.75rem; }


/* ---- Name Input ---- */
.name-input-wrap { display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap; }
.name-input-wrap label { font-size: 0.85rem; color: var(--text-muted); }
.name-input-wrap input {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem; font-family: var(--font); font-size: 0.9rem; color: var(--text); width: 220px;
  transition: border-color var(--transition);
}
.name-input-wrap input:focus { outline: none; border-color: var(--accent); }
.name-saved-indicator { font-size: 0.8rem; color: var(--accent-green); font-weight: 500; opacity: 0; transition: opacity 0.3s; }
.name-saved-indicator.visible { opacity: 1; }
.name-input {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem; font-family: var(--font); font-size: 0.9rem; color: var(--text);
  transition: border-color var(--transition);
}
.name-input:focus { outline: none; border-color: var(--accent); }

/* ---- Quick Links Grid ---- */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin: 2rem 0; }
.quick-link {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.quick-link:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.quick-link .ql-icon { font-size: 1.25rem; line-height: 1; }
.quick-link .ql-icon-svg { filter: invert(44%) sepia(92%) saturate(456%) hue-rotate(231deg) brightness(101%) contrast(96%); }
.quick-link .ql-title { font-weight: 600; color: var(--text); font-size: 0.85rem; }
.quick-link .ql-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }

/* ---- Info Box ---- */
.info-box {
  background: var(--accent-dim); border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.info-box h3 { margin-top: 0; }
.info-box p { color: var(--text); margin: 0; font-size: 0.9rem; }
.info-box.warning { background: var(--yellow-dim); border-color: rgba(245,158,11,0.2); }
.info-box.success { background: var(--green-dim); border-color: rgba(16,185,129,0.2); }

/* ---- Accordion ---- */
.accordion { margin: 1.5rem 0; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--bg-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-header {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; cursor: pointer;
  transition: background var(--transition); user-select: none;
}
.accordion-header:hover { background: var(--border-subtle); }
.accordion-time {
  flex-shrink: 0; font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--accent); background: var(--accent-dim); padding: 0.3rem 0.65rem; border-radius: 999px;
}
.accordion-time.break { color: var(--text-muted); background: var(--border-subtle); }
.accordion-title { font-weight: 600; font-size: 0.95rem; flex: 1; }
.accordion-duration { font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono); flex-shrink: 0; }
.accordion-chevron { font-size: 0.8rem; color: var(--text-muted); transition: transform var(--transition); flex-shrink: 0; }
.accordion-item.open .accordion-chevron { transform: rotate(90deg); }
.accordion-body { display: none; padding: 1.75rem 1.5rem 1.5rem; border-top: 1px solid var(--border-subtle); }
.accordion-item.open .accordion-body { display: block; }

/* ---- Prompt Card ---- */
.prompt-card {
  background: var(--bg-code); border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  position: relative; margin: 0.75rem 0; font-family: var(--mono); font-size: 0.82rem;
  line-height: 1.65; color: #e2e8f0; word-break: break-word;
}
.prompt-card .prompt-text { white-space: pre-wrap; display: block; }
.prompt-card .copy-btn {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xs); padding: 0.3rem 0.55rem; color: rgba(255,255,255,0.5);
  font-size: 0.7rem; font-family: var(--font); cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 0.3rem;
}
.prompt-card .copy-btn:hover { color: #fff; background: rgba(255,255,255,0.15); }
.prompt-card .copy-btn.copied { color: var(--accent-green); border-color: var(--accent-green); }

/* ---- Difficulty Levels ---- */
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.level-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; border-top: 3px solid; }
.level-card.level-basic { border-top-color: var(--accent-green); }
.level-card.level-bonus { border-top-color: var(--accent-yellow); }
.level-card.level-advanced { border-top-color: var(--accent-red); }
.level-badge {
  display: inline-flex; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 0.2rem 0.5rem; border-radius: 999px;;
}
.level-badge.basic { background: var(--green-dim); color: var(--accent-green); }
.level-badge.bonus { background: var(--yellow-dim); color: var(--accent-yellow); }
.level-badge.advanced { background: var(--red-dim); color: var(--accent-red); }
.level-card h4 { font-size: 0.9rem; margin-bottom: 0.4rem; }
.level-card p, .level-card li { font-size: 0.85rem; }

/* ---- Download Card ---- */
.download-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.65rem; transition: all var(--transition);
}
.download-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.download-card .dl-icon { font-size: 1.25rem; flex-shrink: 0; }
.download-card .dl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.download-card .dl-name { font-weight: 600; font-size: 0.875rem; color: var(--text); }
.download-card .dl-desc { font-size: 0.78rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.download-card .dl-btn {
  padding: 0.35rem 0.75rem; background: var(--accent-dim); color: var(--accent); font-size: 0.75rem;
  font-weight: 500; border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius-xs);
  text-decoration: none; transition: all var(--transition); white-space: nowrap;
}
.download-card .dl-btn:hover { background: var(--accent); color: #fff; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 1rem; background: var(--accent-dim); color: var(--accent);
  font-size: 0.8rem; font-weight: 500; border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-sm); text-decoration: none; transition: all var(--transition);
  margin: 0.75rem 0.5rem 0.25rem 0;
}
.dl-btn:hover { background: var(--accent); color: #fff; }

/* ---- Decision Grid ---- */
.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1rem 0; }
.decision-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
}
.decision-card.highlighted { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.decision-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.decision-card p { font-size: 0.8rem; }
.decision-card .meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---- Table ---- */
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.85rem; }
th { text-align: left; padding: 0.75rem 1rem; background: var(--border-subtle); border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
tr:hover td { background: rgba(139,92,246,0.03); }

/* ---- Checklist ---- */
.checklist-item {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.5rem; transition: all var(--transition);
}
.checklist-item input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--accent-green); cursor: pointer; flex-shrink: 0; }
.checklist-item.checked { opacity: 0.5; background: var(--green-dim); }
.checklist-item label { font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; }

/* ---- Search ---- */
.search-wrap { position: relative; margin-bottom: 2rem; }
.search-wrap input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 1rem 0.7rem 2.5rem; font-family: var(--font); font-size: 0.9rem; color: var(--text);
  transition: border-color var(--transition);
}
.search-wrap input:focus { outline: none; border-color: var(--accent); }
.search-wrap::before { content: '🔍'; position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; }

/* ---- Glossary ---- */
.glossary-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem; margin-bottom: 0.5rem;
}
.glossary-card .gc-term { font-weight: 700; font-size: 0.95rem; font-family: var(--mono); color: var(--text); }
.glossary-card .gc-def { font-size: 0.85rem; color: var(--text-secondary); margin: 0.25rem 0; }

/* ---- Blockquote ---- */
blockquote {
  border-left: 3px solid var(--accent); padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--accent-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote p { color: var(--text); margin: 0; font-style: italic; font-size: 0.9rem; }

/* ---- Pre / Code Block ---- */
pre {
  background: var(--bg-code); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem;
  overflow-x: auto; margin: 1.25rem 0; font-family: var(--mono); font-size: 0.8rem;
  line-height: 1.6; color: #e2e8f0;
}

/* ---- Section spacing ---- */
section { margin-bottom: 3rem; }
section:last-of-type { margin-bottom: 0; }

/* ---- Section Divider ---- */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---- Inspiration / Scenario Cards ---- */
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.scenario-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; border-left: 3px solid; transition: box-shadow var(--transition);
}
.scenario-card:hover { box-shadow: var(--shadow); }
.scenario-card.cat-1 { border-left-color: var(--accent-blue); }
.scenario-card.cat-2 { border-left-color: var(--accent); }
.scenario-card.cat-3 { border-left-color: var(--accent-yellow); }
.scenario-card.cat-4 { border-left-color: var(--accent-green); }
.scenario-card.cat-5 { border-left-color: var(--accent-red); }
.scenario-card h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.scenario-card p { font-size: 0.8rem; margin: 0; }
.scenario-card .sc-meta { display: flex; gap: 0.5rem; margin-top: 0.5rem; align-items: center; }

/* ---- Filter Tabs ---- */
.filter-group { margin-bottom: 2rem; }
.filter-group h3 { margin-top: 0; margin-bottom: 0.75rem; font-size: 0.95rem; }
.filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 1rem 0; }
.filter-tab {
  padding: 0.35rem 0.75rem; font-size: 0.8rem; font-weight: 500; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Variant J Certificate Card ---- */
.cert-card {
  border-radius: var(--radius); overflow: hidden; padding: 3rem 2.5rem;
  text-align: center; color: #fff; position: relative;
}
.cert-card.purple { background: radial-gradient(175% 171% at 28% 131%, #5b2fc2 0%, #7c5ab0 36%, #a07ec4 58%, #c9b0dc 75%, #d5cddf 100%); }
.cert-card.blue { background: radial-gradient(175% 171% at 28% 131%, #2563be 0%, #4e7aab 36%, #7da3c8 58%, #b8cfe8 75%, #c7d6e6 100%); }
.cert-card.green { background: radial-gradient(175% 171% at 28% 131%, #1a7a6a 0%, #3e8e7e 36%, #6aaa9e 58%, #9eccca 75%, #b8d6d1 100%); }
.cert-card .cert-logo { width: 120px; margin: 0 auto 1.5rem; display: block; filter: brightness(1.1); }
.cert-card .cert-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.24);
  padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.cert-card .cert-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 0.75rem;
}
.cert-card .cert-name {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: #fff;
  margin-bottom: 1rem; min-height: 2.5rem;
}
.cert-card .cert-text { font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.55; max-width: 440px; margin: 0 auto; }
.cert-card .cert-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem; color: rgba(255,255,255,0.65);
}

/* ---- LinkedIn Card (for sharing) ---- */
.linkedin-card {
  width: 100%; max-width: 600px; aspect-ratio: 1200/630; border-radius: var(--radius);
  overflow: hidden; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
  text-align: center; color: #fff; position: relative;
}
.linkedin-card .lc-logo { width: 80px; margin: 0 auto 1rem; filter: brightness(1.1); }
.linkedin-card .lc-headline { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.linkedin-card .lc-name { font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.linkedin-card .lc-date { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.75rem; }

/* ---- Prompt Wall ---- */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin: 2rem 0; }
.wall-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; position: relative;
}
.wall-card .wc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.wall-card .wc-name { font-weight: 600; font-size: 0.85rem; }
.wall-card .wc-cat {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--accent-dim); color: var(--accent);
}
.wall-card .wc-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.wall-card .wc-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; }
.wall-card .wc-copy {
  position: absolute; top: 0.6rem; right: 0.6rem; background: var(--border-subtle);
  border: none; border-radius: var(--radius-xs); padding: 0.25rem 0.45rem; cursor: pointer;
  font-size: 0.7rem; color: var(--text-muted); transition: all var(--transition);
}
.wall-card .wc-copy:hover { background: var(--accent-dim); color: var(--accent); }
.wall-card .wc-delete {
  background: none; border: none; cursor: pointer; padding: 0.1rem 0.3rem;
  font-size: 0.75rem; color: var(--text-muted); border-radius: var(--radius-xs);
  line-height: 1; transition: all var(--transition); margin-left: auto;
}
.wall-card .wc-delete:hover { color: var(--accent-red, #ef4444); background: rgba(239,68,68,.08); }
.wall-card .wc-confirm {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem;
  padding: 0.5rem 0.75rem; background: var(--bg-hover, rgba(0,0,0,.04));
  border-radius: var(--radius-xs); font-size: 0.8rem;
}
.wall-card .wc-confirm span { color: var(--text-secondary); flex: 1; }
.wall-card .wc-confirm-yes {
  background: var(--accent-red, #ef4444); color: #fff; border: none; cursor: pointer;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 600;
}
.wall-card .wc-confirm-no {
  background: var(--border); color: var(--text-secondary); border: none; cursor: pointer;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-xs); font-size: 0.75rem;
}

.wall-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 2.5rem; box-shadow: var(--shadow-sm);
}
.wall-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.wall-form input, .wall-form textarea, .wall-form select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem; font-family: var(--font); font-size: 0.875rem; color: var(--text);
  transition: border-color var(--transition); margin-bottom: 0.85rem;
}
.wall-form input:focus, .wall-form textarea:focus, .wall-form select:focus { outline: none; border-color: var(--accent); }
.wall-form textarea { min-height: 80px; resize: vertical; }
.wall-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn {
  padding: 0.55rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition); font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

/* ---- Page Header ---- */
.page-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: 0.35rem; }
.page-header .subtitle { font-size: 1rem; color: var(--text-muted); margin: 0; }
.page-header .time-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem;
  color: var(--accent); background: var(--accent-dim); padding: 0.3rem 0.65rem; border-radius: 999px; margin-bottom: 0.5rem;
}

/* ---- Manual sections ---- */
.manual-section { margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border-subtle); }
.manual-section:last-of-type { border-bottom: none; }

/* ---- TOC Card ---- */
.toc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 2.5rem; }
.toc-card h3 { margin-top: 0; margin-bottom: 0.85rem; }
.toc-card ol { margin: 0; padding-left: 1.5rem; }
.toc-card li { margin-bottom: 0.45rem; }
.toc-card a { font-size: 0.9rem; }

/* ---- Deep Dive Link ---- */
.deep-dive {
  display: flex; flex-direction: column; gap: 0.5rem; margin: 2rem 0 1.5rem; padding: 1rem 1.25rem;
  background: var(--border-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.deep-dive h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0; }
.deep-dive a { font-size: 0.85rem; padding: 0.2rem 0; }
.deep-dive a::before { content: '→ '; color: var(--accent); }

/* ---- Menu Grid ---- */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1rem 0; }
.menu-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; transition: all var(--transition);
}
.menu-card:hover { border-color: var(--accent); }
.menu-card .mc-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.25rem; }
.menu-card .mc-time { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }
.menu-card .mc-desc { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; margin-top: 4rem;
}
.site-footer img { height: 24px; margin-bottom: 0.5rem; }
.site-footer p { font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0; }
.site-footer a { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .levels-grid { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topnav-links { display: none; }
  .topnav-links.open { display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0.25rem; z-index: 99; }
  .hamburger { display: block; margin-left: auto; }
  .container, .container-wide { padding: 1.5rem 1rem 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .decision-grid { grid-template-columns: 1fr; }
  .cert-card { padding: 2rem 1.5rem; }
  .cert-card .cert-name { font-size: 1.5rem; }
  .wall-form .form-row { grid-template-columns: 1fr; }
  .name-input-wrap { flex-direction: column; }
  .name-input-wrap input { width: 100%; }
}
@media (max-width: 480px) {
  .quick-links { grid-template-columns: 1fr; }
}

/* ---- Filter Group (override for tighter contexts) ---- */
.filter-group h3 { font-size: 0.85rem; font-weight: 600; }

/* ---- Manual Sections ---- */
.manual-section { padding-top: 1.25rem; }

/* ---- Smooth entrance animation ---- */
.accordion-body { animation: fadeSlideIn 200ms ease; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Prompt Card v2 (progressive disclosure) ---- */
.prompt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.25rem 0; }
.prompt-card-v2 {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; position: relative; transition: box-shadow var(--transition);
}
.prompt-card-v2:hover { box-shadow: var(--shadow); }
.prompt-card-v2 .pc2-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.prompt-card-v2 .pc2-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.prompt-card-v2 .pc2-desc { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.prompt-card-v2 .pc2-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.prompt-card-v2 .pc2-actions button {
  background: var(--bg-code); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-xs);
  padding: 0.28rem 0.7rem; font-size: 0.73rem; font-weight: 500; cursor: pointer;
  color: #a0aec0; transition: all var(--transition); font-family: var(--font);
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
}
.prompt-card-v2 .pc2-actions button:hover { color: #e2e8f0; background: #1e1e3a; border-color: rgba(255,255,255,0.22); }
.prompt-card-v2 .pc2-actions button.copied { color: #68d391 !important; border-color: rgba(104,211,145,0.3) !important; }
.prompt-card-v2 .pc2-actions .dl-btn-inline {
  padding: 0.28rem 0.7rem; font-size: 0.73rem; font-weight: 500;
  background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-xs); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font);
  transition: all var(--transition);
}
.prompt-card-v2 .pc2-actions .dl-btn-inline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.prompt-card-v2 .pc2-body {
  background: var(--bg-code); border-radius: var(--radius-xs); padding: 0.75rem 0.85rem;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: #e2e8f0;
  white-space: pre-wrap; word-break: break-word;
  max-height: 80px; overflow: hidden; position: relative; transition: max-height 0.3s ease;
}
.prompt-card-v2 .pc2-body::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 32px;
  background: linear-gradient(transparent, var(--bg-code)); pointer-events: none;
  transition: opacity 0.3s;
}
.prompt-card-v2.expanded .pc2-body { max-height: 2000px; }
.prompt-card-v2.expanded .pc2-body::after { opacity: 0; }
.prompt-card-v2 .pc2-toggle {
  display: block; width: 100%; text-align: center; padding: 0.4rem 0; margin-top: 0.5rem;
  font-size: 0.75rem; font-weight: 500; color: var(--accent); cursor: pointer;
  background: none; border: 1px solid var(--border-subtle); border-radius: var(--radius-xs);
  transition: all var(--transition); font-family: var(--font);
}
.prompt-card-v2 .pc2-toggle:hover { background: var(--accent-dim); border-color: var(--accent); }
.prompt-card-v2.full-width { grid-column: 1 / -1; }

/* ---- Compact inline command ---- */
.cmd-inline {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem;
  background: var(--bg-code); border-radius: var(--radius-xs); font-family: var(--mono);
  font-size: 0.8rem; color: #e2e8f0; margin: 0.75rem 0;
}
.cmd-inline .copy-btn {
  background: transparent; border: none;
  border-radius: var(--radius-xs); padding: 0.15rem 0.4rem; color: rgba(255,255,255,0.4);
  font-size: 0.65rem; cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.cmd-inline .copy-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ---- Mini-TOC (floating sidebar on homepage) ---- */
.mini-toc {
  position: fixed; top: calc(var(--nav-h) + 24px); right: 1.5rem;
  width: 200px; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto;
  z-index: 50; display: none;
}
.mini-toc ol { list-style: none; padding: 0; margin: 0; }
.mini-toc li {
  font-size: 0.72rem; line-height: 1.4; margin-bottom: 0.15rem;
}
.mini-toc a {
  display: block; padding: 0.3rem 0.6rem; color: var(--text-muted); border-radius: var(--radius-xs);
  text-decoration: none; transition: all var(--transition); border-left: 2px solid transparent;
}
.mini-toc a:hover { color: var(--accent); background: var(--border-subtle); border-left-color: var(--accent); }
@media (min-width: 1400px) {
  .mini-toc { display: block; }
}

/* ---- FAB wrapper (back-to-top + download) ---- */
.fab-wrap {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 91;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ---- Back-to-Top ---- */
.back-to-top {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.18s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--bg-hover, rgba(0,0,0,0.06)); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0; margin-bottom: 1rem;
  font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .bc-sep { color: var(--border); }
.breadcrumb .bc-current { color: var(--text-secondary); font-weight: 500; }
.breadcrumb .bc-back {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem;
  background: var(--accent-dim); color: var(--accent); border-radius: 999px; font-size: 0.72rem;
  font-weight: 500; margin-left: 0.5rem; text-decoration: none; transition: all var(--transition);
}
.breadcrumb .bc-back:hover { background: var(--accent); color: #fff; }

/* ---- Toast ---- */
.toast-container {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 9999; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.toast {
  background: var(--text); color: #fff; padding: 0.6rem 1.25rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500; font-family: var(--font); box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* ---- Footer CTA (upsell) ---- */
.site-footer-cta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 2rem 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.footer-cta-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.5rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; text-align: center; transition: all var(--transition);
}
.footer-cta-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.footer-cta-card .fc-icon { font-size: 1.5rem; }
.footer-cta-card .fc-title { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.footer-cta-card .fc-desc { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* ---- Nav scrolled state ---- */
.topnav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.08); }


/* ---- Glossary Tooltip ---- */
.glossary-term { border-bottom: 1px dotted var(--text-muted); cursor: help; position: relative; }
.glossary-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem; font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4;
  box-shadow: var(--shadow); white-space: normal; width: max-content; max-width: 280px;
  z-index: 200; pointer-events: none; opacity: 0; transition: opacity 0.15s;
  font-family: var(--font);
}
.glossary-term:hover .glossary-tip { opacity: 1; }

/* ---- Live Bar (facilitator sync) ---- */
.live-bar {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 95;
  background: var(--accent); color: #fff; padding: 0.4rem 2rem;
  display: none; align-items: center; justify-content: center; gap: 0.75rem;
  font-size: 0.8rem; font-weight: 500; font-family: var(--font);
}
.live-bar.visible { display: flex; }
.live-bar.paused { background: var(--accent-yellow); color: var(--text); }
.live-bar .lb-jump {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xs); padding: 0.2rem 0.6rem; font-size: 0.72rem; cursor: pointer;
  color: #fff; transition: all var(--transition); font-family: var(--font);
}
.live-bar .lb-jump:hover { background: rgba(255,255,255,0.35); }
body.has-live-bar .page-body { padding-top: calc(var(--nav-h) + 36px); }
html.has-live-bar { scroll-padding-top: calc(var(--nav-h) + 36px + 24px); }

.accordion-item.live { border-left: 3px solid var(--accent); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { border-left-color: var(--accent); } 50% { border-left-color: rgba(139,92,246,0.3); } }
.accordion-item.live .live-badge {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--accent); color: #fff; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.accordion-item.live.paused .live-badge { background: var(--accent-yellow); color: var(--text); }

/* ---- Creation Card (gallery) ---- */
.creation-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; transition: box-shadow var(--transition);
}
.creation-card:hover { box-shadow: var(--shadow); }
.creation-card .cc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.creation-card .cc-name { font-weight: 600; font-size: 0.85rem; }
.creation-card .cc-desc { font-size: 0.82rem; color: var(--text-secondary); margin: 0.25rem 0 0.5rem; }
.creation-card .cc-visit {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem;
  background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 500; text-decoration: none;
  transition: all var(--transition);
}
.creation-card .cc-visit:hover { background: var(--accent); color: #fff; }

/* ---- Tab Toggle (prompt wall) ---- */
.tab-toggle { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; padding: 0.25rem; background: var(--border-subtle); border-radius: var(--radius-sm); }
.tab-toggle button {
  flex: 1; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 500; border: none;
  border-radius: var(--radius-xs); cursor: pointer; background: transparent; color: var(--text-muted);
  transition: all var(--transition); font-family: var(--font);
}
.tab-toggle button.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---- View Transitions ---- */
::view-transition-old(root) { animation: fadeOut 200ms ease-out; }
::view-transition-new(root) { animation: fadeIn 200ms ease-in; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- SVG Icon animations ---- */
.icon-animated { opacity: 0; transform: scale(0.85); transition: opacity 0.4s ease, transform 0.4s ease; }
.icon-animated.visible { opacity: 1; transform: scale(1); }
.section-icon { width: 24px; height: 24px; vertical-align: middle; margin-right: 0.35rem; }
.ql-icon-svg { width: 28px; height: 28px; }

/* ---- Admin Panel ---- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.admin-block-card {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1rem; cursor: pointer; transition: all var(--transition); text-align: center;
}
.admin-block-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.admin-block-card.active { border-color: var(--accent); background: var(--accent-dim); }
.admin-block-card .ab-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.admin-block-card .ab-title { font-size: 0.8rem; font-weight: 600; margin-top: 0.25rem; }
.admin-block-card .ab-time { font-size: 0.7rem; color: var(--text-muted); font-family: var(--mono); }
.admin-controls { display: flex; gap: 0.75rem; justify-content: center; align-items: center; margin: 1.5rem 0; flex-wrap: wrap; }

/* ---- Generator Table ---- */
.gen-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.82rem; }
.gen-table th { text-align: left; padding: 0.6rem 0.75rem; background: var(--border-subtle); font-weight: 600; }
.gen-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-subtle); }
.gen-table tr:hover td { background: rgba(139,92,246,0.03); }
.gen-status { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; }
.gen-status.pending { background: var(--yellow-dim); color: var(--accent-yellow); }
.gen-status.done { background: var(--green-dim); color: var(--accent-green); }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 3rem 2rem;
  text-align: center; cursor: pointer; transition: all var(--transition); margin-bottom: 1.5rem;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone.dragover { border-color: var(--accent); background: var(--accent-dim); }

/* ---- Password Gate ---- */
.password-gate {
  max-width: 400px; margin: 4rem auto; text-align: center; padding: 2rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.password-gate input {
  width: 100%; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.9rem; margin: 1rem 0; text-align: center;
}
.password-gate input:focus { outline: none; border-color: var(--accent); }

/* ---- Responsive additions ---- */
@media (max-width: 900px) {
  .prompt-grid { grid-template-columns: 1fr; }
  .site-footer-cta { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .live-bar { padding: 0.35rem 1rem; font-size: 0.75rem; }
}

/* ---- Exercise level sections (native <details>) ---- */
.exercise-levels { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }

.basic-section,
.bonus-section,
.advanced-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.basic-section > summary,
.bonus-section > summary,
.advanced-section > summary {
  border-radius: var(--radius) var(--radius) 0 0;
}

.basic-section[open] > .details-body,
.bonus-section[open] > .details-body,
.advanced-section[open] > .details-body {
  border-radius: 0 0 var(--radius) var(--radius);
}
.basic-section { border-left: 3px solid var(--accent-green); }
.bonus-section { border-left: 3px solid var(--accent-yellow); }
.advanced-section { border-left: 3px solid var(--accent-red); }

.basic-section > summary,
.bonus-section > summary,
.advanced-section > summary {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.25rem; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  color: var(--text); list-style: none; user-select: none;
  transition: background var(--transition);
}
.basic-section > summary:hover,
.bonus-section > summary:hover,
.advanced-section > summary:hover { background: var(--border-subtle); }
.basic-section > summary::-webkit-details-marker,
.bonus-section > summary::-webkit-details-marker,
.advanced-section > summary::-webkit-details-marker { display: none; }

.basic-section > summary .level-badge,
.bonus-section > summary .level-badge,
.advanced-section > summary .level-badge { flex-shrink: 0; margin-bottom: 0; }

.basic-section > summary::after,
.bonus-section > summary::after,
.advanced-section > summary::after {
  content: '›'; margin-left: auto; font-size: 1rem; color: var(--text-muted);
  transition: transform var(--transition); flex-shrink: 0;
}
.basic-section[open] > summary::after,
.bonus-section[open] > summary::after,
.advanced-section[open] > summary::after { transform: rotate(90deg); }

.basic-section > .details-body,
.bonus-section > .details-body,
.advanced-section > .details-body {
  padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--border-subtle);
  animation: fadeSlideIn 200ms ease;
}
.basic-section > .details-body p,
.bonus-section > .details-body p,
.advanced-section > .details-body p { font-size: 0.85rem; }
.basic-section > .details-body li,
.bonus-section > .details-body li,
.advanced-section > .details-body li { font-size: 0.85rem; margin-bottom: 0.4rem; }
.basic-section > .details-body ul,
.bonus-section > .details-body ul,
.advanced-section > .details-body ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

/* ---- Numbered steps ---- */
.exercise-steps { counter-reset: step; margin: 0.75rem 0; padding: 0; list-style: none; }
.exercise-steps li {
  counter-increment: step; position: relative;
  padding: 0.55rem 0 0.55rem 2.25rem; font-size: 0.88rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.exercise-steps li:last-child { border-bottom: none; }
.exercise-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.45rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent); font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Agent Highlight Card ---- */
.agent-highlight-card {
  display: flex; align-items: flex-start; gap: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #6366f1);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin: 0.75rem 0;
}
.ahc-left { flex: 1; min-width: 0; }
.ahc-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; padding-top: 0.25rem; }
.ahc-right .btn, .ahc-right .copy-btn { width: 100%; text-align: center; justify-content: center; white-space: nowrap; }
.ahc-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent, #6366f1);
  background: color-mix(in srgb, var(--accent, #6366f1) 10%, transparent);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 0.5rem;
}
.ahc-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.ahc-desc { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.75rem; line-height: 1.5; }
.ahc-modes { margin: 0; padding-left: 1.1rem; }
.ahc-modes li { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.2rem; }
@media (max-width: 600px) {
  .agent-highlight-card { flex-direction: column; }
  .ahc-right { width: 100%; }
  .ahc-right .btn { width: 100%; text-align: center; }
}

/* ---- Reference blocks (collapsible) ---- */
.ref-block {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); margin-bottom: 0.6rem; overflow: hidden;
}
.ref-block > summary {
  padding: 0.85rem 1.1rem; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.9rem; color: var(--text); user-select: none;
  transition: background var(--transition);
}
.ref-block > summary::-webkit-details-marker { display: none; }
.ref-block > summary::after {
  content: '›'; font-size: 1.1rem; color: var(--text-muted);
  transition: transform 0.2s; flex-shrink: 0;
}
.ref-block[open] > summary::after { transform: rotate(90deg); }
.ref-block > summary:hover { background: var(--bg-hover, rgba(139,92,246,0.04)); }
.ref-block-body { padding: 0 1.1rem 1.1rem; }
.ref-block-body table { margin: 0; }
.ref-block-body .glossary-card { margin-bottom: 0; }
@media (max-width: 600px) {
  .ref-block-body > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ---- FAB: Stáhnout vše ---- */
.fab-export {
  display: flex; align-items: center; gap: 0.45rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  height: 40px;
  font-size: 0.82rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; box-shadow: 0 2px 10px rgba(139,92,246,0.35);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  white-space: nowrap; flex-shrink: 0;
}
.fab-export:hover { background: #7c3aed; box-shadow: 0 4px 16px rgba(139,92,246,0.5); transform: translateY(-2px); }
.fab-export:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.fab-export .fab-icon { font-size: 0.9rem; }
@media (max-width: 768px) {
  .fab-wrap { bottom: 1.25rem; right: 1.25rem; }
  .fab-export { padding: 0 0.75rem; }
  .fab-export .fab-label { display: none; }
  .fab-export .fab-icon { font-size: 1rem; }
  .back-to-top { width: 36px; height: 36px; font-size: 1rem; }
}

/* ---- Print ---- */
@media print {
  .topnav, .hamburger, .copy-btn, .wc-copy, .dl-btn, .dl-btn-inline, .btn, .back-to-top, .fab-export, .fab-wrap, .mini-toc, .live-bar, .toast-container, .breadcrumb { display: none !important; }
  .accordion-body { display: block !important; }
  .page-body { padding-top: 0; }
  body { background: #fff; }
}
