:root {
  --canvas: #F7F5F3;
  --surface: #F3EDE9;
  --surface-alt: #E2DDD9;
  --text: #4B4743;
  --muted: #908D89;
  --accent: #1C1C29;
  --border: #E2DDD9;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--canvas); }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
main {
  flex: 1;
  /* flex 项目默认 min-width:auto 会被 pre 长行的 min-content 撑破，显式归零让内部滚动容器接管 */
  min-width: 0;
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 48px 120px;
}
section { scroll-margin-top: 40px; margin-bottom: 96px; }

/* ---------- sidebar ---------- */
.sidebar {
  width: 264px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}
.brand { margin-bottom: 36px; }
.brand .brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.brand .brand-name {
  font-size: 17px;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--surface-alt);
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--accent); font-weight: 650; background: var(--surface); }
.nav a.active .dot { background: var(--accent); }
.nav .nav-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--surface-alt);
  width: 18px;
}
.nav a.active .nav-num { color: var(--muted); }

/* ---------- 两级目录（全站统一：一级组 + 二级条目） ---------- */
.nav-group { margin-top: 2px; }
.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1px 0 4px 28px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.nav-sub a {
  font-size: 12.5px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav { overflow-y: auto; scrollbar-width: thin; }
/* 全站统一的紧凑侧边栏：两级目录条目较多时也能整屏放下 */
.sidebar { padding-top: 28px; padding-bottom: 28px; }
.brand { margin-bottom: 24px; }
/* 第三级：当前课时的小节；模块标签行 */
.nav-sub .nav-sub { margin-left: 10px; margin-bottom: 2px; border-left-color: var(--surface-alt); }
.nav-sub .nav-sub a { font-size: 12px; }
.nav-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 10px 2px;
  text-transform: uppercase;
}
.sidebar-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.progress-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.progress-track {
  height: 4px;
  background: var(--surface-alt);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- mobile topbar ---------- */
.topbar { display: none; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
h1 {
  font-size: 44px;
  font-weight: 780;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}
h2 {
  font-size: 28px;
  font-weight: 730;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}
h3 { font-size: 17px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.lede { font-size: 18px; line-height: 1.8; color: var(--text); max-width: 640px; }
p { margin-bottom: 14px; max-width: 680px; }
code, .mono {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent);
  white-space: nowrap;
}
a.inline-link { color: var(--accent); text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { margin-bottom: 88px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--canvas); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(28, 28, 41, 0.18); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.terminal {
  background: var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 640px;
  box-shadow: 0 12px 32px rgba(28, 28, 41, 0.14);
}
.terminal-head { display: flex; gap: 6px; margin-bottom: 12px; }
.terminal-head span { width: 10px; height: 10px; border-radius: 50%; background: rgba(247, 245, 243, 0.18); }
.terminal code {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: #F7F5F3;
  font-size: 13.5px;
  line-height: 2;
  white-space: pre;
  overflow-x: auto;
}
.terminal .prompt { color: rgba(247, 245, 243, 0.45); user-select: none; }
.terminal .comment { color: rgba(247, 245, 243, 0.4); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 40px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28, 28, 41, 0.07); }
.card .card-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.75; color: var(--text); margin-bottom: 0; }

/* ---------- turn flow stepper ---------- */
.flow {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  margin: 24px 0 16px;
}
.flow-list { border-right: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.flow-step .flow-idx {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step:hover { background: var(--surface-alt); color: var(--text); }
.flow-step.active { background: var(--accent); color: var(--canvas); }
.flow-step.active .flow-idx { background: rgba(247, 245, 243, 0.16); color: var(--canvas); }
.flow-detail { padding: 26px 28px; min-height: 240px; }
.flow-detail h3 { font-family: var(--mono); font-size: 15px; margin-bottom: 4px; }
.flow-detail .flow-kind {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 14px;
}
.flow-detail p { font-size: 14.5px; line-height: 1.8; }
.flow-nav { display: flex; gap: 8px; margin-top: 18px; }
.flow-nav button {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.flow-nav button:hover:not(:disabled) { background: var(--surface-alt); }
.flow-nav button:disabled { opacity: 0.35; cursor: default; }

/* ---------- roadmap ---------- */
.roadmap { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.step.done { border-color: var(--accent); }
.step.done .step-title { color: var(--muted); }
.step-head { display: flex; align-items: flex-start; gap: 14px; }
.step-check {
  appearance: none;
  width: 22px; height: 22px;
  border: 1.5px solid var(--muted);
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
  background: var(--canvas);
}
.step-check:checked { background: var(--accent); border-color: var(--accent); }
.step-check:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2.5px;
  width: 5px; height: 10px;
  border: solid var(--canvas);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.step-body { flex: 1; min-width: 0; }
.step-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.step-title { font-size: 17px; font-weight: 700; color: var(--accent); transition: color 0.2s ease; }
.step-goal { font-size: 14.5px; margin: 6px 0 0; }
.step-list { margin: 12px 0 0 0; padding-left: 0; list-style: none; }
.step-list li {
  font-size: 14px;
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.step-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
  max-width: 560px;
}
.cmd code {
  background: none;
  border: none;
  color: #F7F5F3;
  padding: 0;
  font-size: 13px;
  white-space: pre;
  overflow-x: auto;
}
.copy-btn {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(247, 245, 243, 0.55);
  background: rgba(247, 245, 243, 0.08);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.copy-btn:hover { color: #F7F5F3; background: rgba(247, 245, 243, 0.16); }

/* ---------- methodology ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.method {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.method .method-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.method h3 { font-size: 15.5px; margin-bottom: 6px; }
.method p { font-size: 13.5px; line-height: 1.75; margin: 0; color: var(--text); }

/* ---------- community ---------- */
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.channel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.channel:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28, 28, 41, 0.07); border-color: var(--muted); }
.channel .channel-name { font-weight: 700; color: var(--accent); font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.channel .channel-name .arrow { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: auto; }
.channel p { font-size: 13.5px; line-height: 1.7; margin: 0; }
.qr-row { display: flex; gap: 18px; margin: 8px 0 28px; flex-wrap: wrap; }
.qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  width: 180px;
}
.qr-card img { width: 140px; height: 140px; border-radius: 8px; display: block; margin: 0 auto 10px; }
.qr-card .qr-label { font-size: 13px; font-weight: 650; color: var(--accent); }
.qr-card .qr-sub { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.rhythm {
  background: var(--accent);
  color: var(--canvas);
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 8px;
}
.rhythm h3 { color: var(--canvas); margin-bottom: 12px; }
.rhythm ol { padding-left: 20px; }
.rhythm li { font-size: 14.5px; line-height: 1.9; color: rgba(247, 245, 243, 0.85); }
.rhythm code { background: rgba(247, 245, 243, 0.1); border-color: transparent; color: var(--canvas); }

/* ---------- resources ---------- */
.res-group { margin-top: 22px; }
.res-group h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--surface-alt); border-color: var(--muted); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- reveal animation (restrained) ---------- */
/* 只有 JS 就绪时才先隐藏元素；无 JS 时内容始终可见 */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
/* 移动端抽屉组件：默认隐藏，仅 ≤960px 生效 */
.nav-scrim { display: none; }
.sidebar-close { display: none; }
@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 48px rgba(28, 28, 41, 0.12);
  }
  .sidebar.open { transform: none; }
  /* 抽屉打开时的遮罩：点击空白处关闭 */
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(28, 28, 41, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  /* 抽屉内右上角的关闭按钮 */
  .sidebar-close {
    display: block;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
  }
  /* 行内 code 允许断行，避免长路径/长命令撑破版面（块级容器另行声明 pre，不受影响） */
  code { white-space: normal; overflow-wrap: anywhere; }
  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
  }
  .topbar .menu-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    width: 36px; height: 36px;
    font-size: 16px;
    cursor: pointer;
    color: var(--accent);
  }
  .topbar .topbar-title { font-weight: 700; color: var(--accent); font-size: 15px; }
  main { padding: 40px 22px 100px; }
  h1 { font-size: 32px; }
  .card-grid, .method-grid, .channel-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-list { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; }
}

/* ---------- deep-dive: interview Q&A ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--accent);
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.cta-band .cta-title { color: var(--canvas); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.cta-band .cta-sub { color: rgba(247, 245, 243, 0.65); font-size: 13.5px; margin: 0; }
.cta-band .btn-primary { background: var(--canvas); color: var(--accent); flex-shrink: 0; }

.qa-toolbar { display: flex; align-items: center; gap: 8px; margin: 18px 0 14px; }
.qa-tool-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.qa-tool-btn:hover { background: var(--surface-alt); }
.qa-count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: auto; }

details.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
details.qa[open] { border-color: var(--accent); }
details.qa summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary:hover .qa-q { color: var(--accent); }
.qa-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--canvas);
}
details.qa[open] .qa-num { background: var(--accent); color: var(--canvas); border-color: var(--accent); }
.qa-tag {
  font-size: 11px;
  border-radius: 999px;
  padding: 1.5px 9px;
  flex-shrink: 0;
  margin-top: 2.5px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--canvas);
}
.qa-tag.tag-trap { background: var(--accent); color: var(--canvas); border-color: var(--accent); }
.qa-q { font-size: 15px; font-weight: 650; color: var(--text); line-height: 1.6; flex: 1; transition: color 0.15s ease; }
.qa-chevron {
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 3px;
  transition: transform 0.2s ease;
}
details.qa[open] .qa-chevron { transform: rotate(90deg); }
.qa-answer {
  border-top: 1px solid var(--border);
  padding: 14px 18px 16px 46px;
  font-size: 14.5px;
  line-height: 1.85;
}
.qa-answer p { margin-bottom: 8px; max-width: none; }
.qa-answer p:last-child { margin-bottom: 0; }
.qa-answer ul { padding-left: 20px; margin: 6px 0; }
.qa-answer li { margin-bottom: 4px; }
.qa-hint { font-family: var(--mono); font-size: 11px; color: var(--muted); flex-shrink: 0; margin-top: 4px; }
details.qa[open] .qa-hint { display: none; }

.crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
@media (max-width: 960px) {
  .qa-answer { padding-left: 18px; }
}

/* ---------- glossary term dialog ---------- */
.term-link {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.term-link:hover { color: var(--accent); }

dialog.term-dialog {
  /* 全局 *{margin:0} 会盖掉 UA 的 margin:auto，显式还原以居中 */
  margin: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  max-width: 560px;
  width: calc(100% - 44px);
  background: var(--canvas);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(28, 28, 41, 0.18);
}
dialog.term-dialog::backdrop { background: rgba(28, 28, 41, 0.35); }
.term-dialog h3 { font-size: 18px; margin-bottom: 10px; padding-right: 40px; }
.term-dialog p { font-size: 14.5px; }
.term-dialog .term-lede { font-size: 15px; }
.term-metaphor { margin: 14px 0; }
.term-metaphor .term-metaphor-title { font-weight: 700; color: var(--accent); font-size: 14.5px; margin-bottom: 2px; }
.term-metaphor p { margin: 0; }
.term-more { color: var(--muted); font-size: 13.5px; margin-bottom: 0; }
.term-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.term-dialog-close:hover { background: var(--surface); }
