:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --text: #151922;
  --muted: #566074;
  --line: #d9e0ea;
  --accent: #d95204;
  --accent-strong: #b84200;
  --accent-soft: #fff2e8;
  --accent-ink: #ffffff;
  --teal: #0f766e;
  --teal-soft: #e6f6f4;
  --warn: #b45309;
  --warn-soft: #fef5e7;
  --ok: #15803d;
  --ok-soft: #eaf9ef;
  --code-bg: #11151d;
  --code-fg: #e5ebf5;
  --code-border: #252c3b;
  --radius: 14px;
  --shadow: 0 14px 38px rgb(15 23 42 / 0.07);
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f14;
    --bg-alt: #11161e;
    --surface: #151b24;
    --surface-2: #1c2430;
    --text: #eef2f8;
    --muted: #9aa5b8;
    --line: #273142;
    --accent: #ff8c38;
    --accent-strong: #ffa65c;
    --accent-soft: rgb(255 140 56 / 0.14);
    --accent-ink: #170b02;
    --teal: #4fd1c5;
    --teal-soft: rgb(79 209 197 / 0.12);
    --warn: #fbbf24;
    --warn-soft: rgb(251 191 36 / 0.12);
    --ok: #4ade80;
    --ok-soft: rgb(74 222 128 / 0.12);
    --code-bg: #080b10;
    --code-fg: #e5ebf5;
    --code-border: #222a38;
    --shadow: 0 20px 44px rgb(0 0 0 / 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #0c0f14;
  --bg-alt: #11161e;
  --surface: #151b24;
  --surface-2: #1c2430;
  --text: #eef2f8;
  --muted: #9aa5b8;
  --line: #273142;
  --accent: #ff8c38;
  --accent-strong: #ffa65c;
  --accent-soft: rgb(255 140 56 / 0.14);
  --accent-ink: #170b02;
  --teal: #4fd1c5;
  --teal-soft: rgb(79 209 197 / 0.12);
  --warn: #fbbf24;
  --warn-soft: rgb(251 191 36 / 0.12);
  --ok: #4ade80;
  --ok-soft: rgb(74 222 128 / 0.12);
  --code-bg: #080b10;
  --code-fg: #e5ebf5;
  --code-border: #222a38;
  --shadow: 0 20px 44px rgb(0 0 0 / 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

code, pre, kbd, .mono {
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

code {
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

pre code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 13.5px;
  line-height: 1.6;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 24px), var(--max));
  margin-inline: auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.version-pill {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-right: auto;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 4px 2px;
}
.main-nav a:hover { color: var(--text); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
}
.session-pill input {
  width: 84px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-family: inherit;
  font-size: 13px;
}
.session-pill input:focus { outline: none; }

.progress-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
}

.icon-btn, .btn-mini {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover, .btn-mini:hover {
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(640px 300px at 15% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(560px 280px at 88% 12%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  gap: 32px;
  align-items: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.badge-ember {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.accent-text { color: var(--accent); }

.hero-lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* Quickstart card */
.quickstart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.quickstart-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.quickstart-title {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.quickstart-steps { display: grid; gap: 12px; }
.qs-label {
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 5px;
}
.qs-footnote {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.code-box {
  position: relative;
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  padding: 11px 74px 11px 14px;
  overflow-x: auto;
}
.code-box.compact { margin-top: 8px; }
.code-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; }

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgb(255 255 255 / 0.1);
  color: #f8fafc;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: rgb(255 255 255 / 0.18); }

/* Sections */
.section { padding: 56px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 26px;
  max-width: 72ch;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); }

/* Golden Rules */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rule-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.rule-card[data-tone="ember"] .rule-badge { background: var(--accent-soft); color: var(--accent); }
.rule-card[data-tone="teal"] .rule-badge { background: var(--teal-soft); color: var(--teal); }
.rule-card[data-tone="slate"] .rule-badge { background: var(--surface-2); color: var(--muted); }

.rule-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.rule-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.rule-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.dual-path-box {
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.dual-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.dual-row strong { display: block; color: var(--text); margin-bottom: 2px; }
.dual-cwd { color: var(--accent); font-weight: 700; }

/* Guided Track */
.track-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.track-sidebar {
  position: sticky;
  top: 78px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.track-progress-box { margin-bottom: 14px; }
.track-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.stage-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.stepper-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 13.5px;
}
.stepper-btn:hover { background: var(--surface-2); }
.stepper-btn.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  font-weight: 700;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  flex-shrink: 0;
}
.stepper-btn.is-done .step-num {
  background: var(--ok-soft);
  color: var(--ok);
}
.stepper-btn.is-active .step-num {
  background: var(--accent);
  color: var(--accent-ink);
}

.stage-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stage-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.stage-top h3 { margin: 4px 0; font-size: 22px; }
.stage-top p { margin: 0; color: var(--muted); }

.stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-goal {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 18px;
  font-size: 14.5px;
}

.variant-group { margin-bottom: 20px; }
.variant-group-label {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tab-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.stage-block { margin-bottom: 18px; }
.stage-block h4 { margin: 0 0 4px; font-size: 15.5px; }
.stage-block p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.variant-note { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

.callout {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14px;
  border: 1px solid var(--line);
}
.callout.warn {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}
.callout.info {
  background: var(--teal-soft);
  border-color: color-mix(in srgb, var(--teal) 35%, transparent);
}
.callout strong { display: block; margin-bottom: 4px; }

.stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.checkpoint { font-size: 13.5px; color: var(--muted); }

/* Simulator */
.sim-shell {
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sim-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #121722;
  border-bottom: 1px solid var(--code-border);
}
.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}
.status-chip {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  color: #cbd5e1;
}
.status-chip strong { color: #ff9e44; }

.sim-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #0e131c;
  border-bottom: 1px solid var(--code-border);
}
.preset-btn {
  background: #1a2230;
  color: #e2e8f0;
  border: 1px solid #2d384d;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  cursor: pointer;
}
.preset-btn:hover { border-color: #ff9e44; color: #ffffff; }

.sim-output {
  min-height: 290px;
  max-height: 440px;
  overflow-y: auto;
  padding: 16px;
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.58;
  display: grid;
  gap: 12px;
  align-content: start;
}

.sim-entry-cmd { color: #ff9e44; font-weight: 700; }
.sim-entry-out { white-space: pre-wrap; margin: 4px 0 0; color: #dbe5f3; }
.sim-entry-err { white-space: pre-wrap; margin: 4px 0 0; color: #fca5a5; }
.sim-plot-card {
  margin-top: 8px;
  background: #141b26;
  border: 1px solid #2b3549;
  border-radius: 10px;
  padding: 10px;
  max-width: 460px;
}

.sim-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #121722;
  border-top: 1px solid var(--code-border);
}
.sim-prompt { color: #ff9e44; font-weight: 800; font-family: monospace; }
.sim-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 13.5px;
}
.sim-input-row input:focus { outline: none; }

/* Builder */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.builder-controls, .builder-output-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.field-group { margin-bottom: 14px; }
.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}
.field-group select, .field-group input, .search-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.builder-toggles {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  cursor: pointer;
}

.builder-output-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}
.builder-output-top .copy-btn {
  position: static;
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.builder-cmd-pre {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  margin: 0 0 14px;
}
.builder-alerts { display: grid; gap: 8px; margin-bottom: 12px; }
.builder-alert {
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
}
.builder-breakdown {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Starter Kit */
.starter-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.starter-banner > div { flex: 1; min-width: 260px; }

.starter-explorer {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.starter-file-list {
  display: grid;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.starter-file-btn {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
}
.starter-file-btn:hover { background: var(--surface-2); }
.starter-file-btn.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  font-weight: 700;
}
.starter-file-btn span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.starter-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.starter-preview-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.starter-preview-head p { margin: 2px 0 0; font-size: 13px; }
.starter-preview-actions { display: flex; gap: 8px; align-items: center; }
.starter-preview-actions .copy-btn {
  position: static;
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.starter-code-pre {
  margin: 0;
  padding: 16px;
  background: var(--code-bg);
  color: var(--code-fg);
  max-height: 440px;
  overflow: auto;
}

/* Dictionary & Doctor */
.dict-toolbar, .doctor-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.dict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dict-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dict-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dict-name { font-size: 16px; font-weight: 750; color: var(--accent); }
.dict-syntax {
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 7px;
  overflow-x: auto;
}
.dict-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.dict-example { margin-top: auto; }

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.doctor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.doctor-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--warn);
}
.doctor-card p { margin: 0 0 6px; font-size: 13.5px; }
.doctor-fix {
  background: var(--ok-soft);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.muted { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-grid,
  .rules-grid,
  .track-layout,
  .builder-grid,
  .starter-explorer,
  .dict-grid,
  .doctor-grid {
    grid-template-columns: 1fr;
  }
  .track-sidebar { position: static; }
}
