/* ═══════════════════════════════════════════════
   WABI-SABI THEME
   Imperfect beauty · Natural materials · Quiet space
   ═══════════════════════════════════════════════ */
:root {
  --bg: #f4f0ea;
  --surface: #faf8f4;
  --surface2: #f0ece4;
  --surface3: #e6e0d6;
  --border: #d6cfc3;
  --border2: #c4bba8;
  --border-dark: #b0a690;
  --accent: #5c6b54;
  --accent-dim: rgba(92,107,84,0.08);
  --accent2: #8a7e6b;
  --accent3: #a0522d;
  --danger: #b5493a;
  --text: #3a3530;
  --text-soft: #5a5347;
  --text-dim: #8a8278;
  --text-on-accent: #faf8f4;
  --finance: #5c6b54;
  --scm: #7a6e5a;
  --platform: #6b5e6e;
  --done: #5c6b54;
  --progress: #b89f6a;
  --notstarted: #c4bba8;
  --titlebar-active: #5a5347;
  --titlebar-text: #faf8f4;
  --sidebar-w: 280px;
  --header-h: 50px;
  --raise: none;
  --sink: none;
  --btn: none;
  --shadow-sm: 0 1px 3px rgba(58,53,48,0.06);
  --shadow-md: 0 2px 8px rgba(58,53,48,0.08);
  --radius: 3px;
}

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,600&family=DM+Mono:wght@300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Source Serif 4', 'Georgia', serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
  flex-shrink: 0; z-index: 200;
  box-shadow: none;
}

.logo {
  font-family: 'Source Serif 4', serif;
  font-size: 16px; font-weight: 600;
  color: var(--text); white-space: nowrap;
  background: none; padding: 0; box-shadow: none; border: none;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; height: auto; letter-spacing: -0.01em;
}
.logo::before { content: "◯"; font-size: 12px; color: var(--accent); }
.logo span { color: var(--accent); font-weight: 300; }

.header-divider { width: 1px; height: 20px; background: var(--border); box-shadow: none; margin: 0 4px; }

.search-wrap { flex: 1; max-width: 340px; position: relative; }
.search-wrap input {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: none; padding: 7px 12px 7px 32px;
  font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 300;
  color: var(--text); outline: none; transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--text-dim); }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 13px; }

.header-stats { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.stat-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-soft);
  background: none; box-shadow: none; padding: 0;
  font-family: 'DM Mono', monospace; font-weight: 300;
}
.stat-pill strong { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 400; color: var(--text); }
.stat-pill .dot { width: 6px; height: 6px; border-radius: 50%; border: none; flex-shrink: 0; }
.dot-done { background: var(--done); }
.dot-prog { background: var(--progress); }
.dot-none { background: var(--notstarted); }

/* ── LAYOUT ── */
.layout { display: flex; flex: 1; overflow: hidden; padding: 0; gap: 0; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w); background: var(--surface);
  border: none; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0;
  overflow: hidden; box-shadow: none;
}
.sidebar::before {
  content: "Navigation"; display: block; background: none;
  color: var(--text-dim); font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400; padding: 14px 16px 8px;
  flex-shrink: 0; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.sidebar-section { padding: 8px 12px 4px; }
.sidebar-section-label {
  font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 4px; margin-bottom: 4px;
}

.sidebar-scroll { overflow-y: auto; flex: 1; padding: 4px 0 16px; }
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.mod-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; cursor: pointer; margin: 0;
  position: relative; font-size: 12.5px; color: var(--text-soft);
  font-family: 'Source Serif 4', serif;
  transition: background 0.15s, color 0.15s; border-radius: 0;
}
.mod-item:hover { background: var(--accent-dim); color: var(--text); }
.mod-item:hover .mod-name { color: var(--text); }
.mod-item.active { background: var(--accent-dim); color: var(--text); border-right: 2px solid var(--accent); }
.mod-item.active .mod-name { color: var(--text); }
.mod-item.active .mod-num { color: var(--accent); }

.mod-status { width: 6px; height: 6px; border-radius: 50%; border: none; flex-shrink: 0; }
.status-done { background: var(--done); }
.status-progress { background: var(--progress); }
.status-none { background: var(--notstarted); }

.mod-num { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 300; color: var(--text-dim); min-width: 18px; }
.mod-name { font-size: 12px; color: var(--text-soft); line-height: 1.4; flex: 1; font-family: 'Source Serif 4', serif; }

.mod-locked { opacity: .35; cursor: default; }
.mod-locked:hover { background: transparent; color: var(--text-soft); }
.mod-locked:hover .mod-name, .mod-locked:hover .mod-num { color: initial; }
.lock-badge { font-size: 8px; background: none; color: var(--text-dim); padding: 1px 4px; border: 1px solid var(--border); border-radius: var(--radius); font-family: 'DM Mono', monospace; font-weight: 300; }

/* Category headers */
.sidebar-cat-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; margin-top: 4px; }
.cat-badge { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 400; letter-spacing: .08em; padding: 2px 8px; text-transform: uppercase; border: 1px solid; border-radius: var(--radius); }
.cat-finance-badge { border-color: var(--finance); color: var(--finance); background: rgba(92,107,84,0.06); }
.cat-scm-badge { border-color: var(--scm); color: var(--scm); background: rgba(122,110,90,0.06); }
.cat-platform-badge { border-color: var(--platform); color: var(--platform); background: rgba(107,94,110,0.06); }

/* ── MAIN CONTENT ── */
.main {
  flex: 1; overflow-y: auto; scroll-behavior: smooth;
  background: var(--bg); box-shadow: none; border: none;
  display: flex; flex-direction: column;
}
.main::-webkit-scrollbar { width: 4px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.main::-webkit-scrollbar-button { display: none; }

.main-titlebar {
  background: none; border-bottom: 1px solid var(--border);
  color: var(--text-dim); font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 300; padding: 8px 24px;
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  user-select: none; letter-spacing: 0.02em;
}
.main-titlebar-btns { margin-left: auto; display: flex; gap: 6px; }
.win-btn {
  width: auto; height: auto; background: none; box-shadow: none;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-dim); font-family: 'DM Mono', monospace;
  font-weight: 300; border: none; padding: 2px 4px; opacity: 0.5;
}
.win-btn:hover { opacity: 1; }

#mainContent { display: flex; flex-direction: column; }

/* ── MODULE HEADER ── */
.module-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.module-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.module-cat-badge { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 300; padding: 2px 8px; letter-spacing: .06em; border: 1px solid; border-radius: var(--radius); }
.module-id-badge { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 300; color: var(--text-dim); background: none; padding: 0; box-shadow: none; }
.module-title { font-family: 'Source Serif 4', serif; font-size: 28px; font-weight: 300; line-height: 1.2; color: var(--text); margin-bottom: 10px; text-shadow: none; letter-spacing: -0.01em; }
.module-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); font-family: 'DM Mono', monospace; font-weight: 300; }
.meta-item strong { color: var(--text-soft); font-weight: 400; }

/* Progress control */
.progress-control { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.progress-label { font-size: 11px; color: var(--text-dim); font-family: 'DM Mono', monospace; font-weight: 300; }
.status-btn {
  padding: 5px 14px; box-shadow: none; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-soft);
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 300;
  cursor: pointer; border-radius: var(--radius); transition: all 0.2s;
}
.status-btn:hover { background: var(--surface2); border-color: var(--border2); }
.status-btn:active { transform: none; }
.status-btn.active-done { background: rgba(92,107,84,0.1); border-color: var(--done); color: var(--done); }
.status-btn.active-progress { background: rgba(184,159,106,0.1); border-color: var(--progress); color: #8a7440; }

/* ── SECTION CARDS ── */
.section-card {
  background: var(--surface); box-shadow: var(--shadow-sm);
  margin-bottom: 8px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.section-card:hover { border-color: var(--border2); }

.section-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: none; border: none;
  cursor: pointer; text-align: left; color: var(--text);
  font-family: 'Source Serif 4', serif; font-size: 15px; font-weight: 400;
  transition: background 0.15s;
}
.section-toggle:hover { background: var(--accent-dim); }

.section-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; opacity: 0.7; }
.section-title-wrap { flex: 1; }
.section-title { font-family: 'Source Serif 4', serif; font-size: 14px; font-weight: 400; color: var(--text); }
.section-subtitle { font-size: 11px; color: var(--text-dim); margin-top: 2px; font-family: 'DM Mono', monospace; font-weight: 300; }
.chevron { color: var(--text-dim); font-size: 10px; transition: transform 0.2s; }
.section-card.open .chevron::after { content: " ▴"; }
.chevron::after { content: " ▾"; }

.section-body { display: none; padding: 16px 20px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.section-card.open .section-body { display: block; }

/* ── CONTENT ELEMENTS ── */
.intro-box {
  background: var(--surface2); border: none; border-left: 2px solid var(--border2);
  box-shadow: none; padding: 14px 18px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.75; color: var(--text);
  font-family: 'Source Serif 4', serif; border-radius: 0 var(--radius) var(--radius) 0;
}
.intro-box strong { color: var(--accent); font-weight: 600; }

.why-box {
  background: rgba(184,159,106,0.08); border: none; border-left: 2px solid var(--progress);
  padding: 14px 18px; margin: 12px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.why-box .why-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 400; color: var(--accent2); text-transform: uppercase; margin-bottom: 6px; letter-spacing: .1em; }
.why-box p { font-size: 13px; line-height: 1.75; color: var(--text); font-family: 'Source Serif 4', serif; }
.why-box p + p { margin-top: 8px; }

.obj-list { list-style: none; margin-top: 12px; }
.obj-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--text); font-family: 'Source Serif 4', serif; }
.obj-list li:last-child { border-bottom: none; }
.obj-num { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 300; color: var(--accent); min-width: 22px; padding-top: 2px; }

/* Process steps */
.step-list { margin-top: 12px; }
.step-item { display: flex; gap: 14px; margin-bottom: 14px; }
.step-connector { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-dot { width: 24px; height: 24px; background: var(--surface); border: 1px solid var(--border2); border-radius: 50%; box-shadow: none; display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 300; color: var(--accent); flex-shrink: 0; }
.step-line { width: 1px; flex: 1; min-height: 12px; background: var(--border); margin: 4px 0; }
.step-content { flex: 1; padding-top: 3px; }
.step-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; font-family: 'Source Serif 4', serif; }
.step-detail { font-size: 12.5px; color: var(--text-soft); line-height: 1.7; font-family: 'Source Serif 4', serif; }
.step-tip { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--accent); background: rgba(92,107,84,0.06); padding: 4px 10px; border: none; border-left: 2px solid var(--accent); font-family: 'DM Mono', monospace; font-weight: 300; border-radius: 0 var(--radius) var(--radius) 0; }

/* Posting entries */
.posting-card { background: #2c2a26; border: none; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; font-family: 'DM Mono', monospace; }
.posting-event { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400; color: #c4b896; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.posting-entries { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.posting-line { display: flex; gap: 10px; align-items: baseline; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 300; }
.posting-dr { color: #8bb0c4; }
.posting-cr { color: #8bb896; padding-left: 16px; }
.posting-account { color: #e8e4dc; }
.posting-amount { color: #9a9488; margin-left: auto; font-size: 11px; }
.posting-why { background: #36332e; border-left: 2px solid #c4b896; padding: 10px 14px; font-size: 12px; color: #c4bfb4; line-height: 1.7; border-radius: 0 var(--radius) var(--radius) 0; }
.posting-why .why-title { font-size: 9px; font-family: 'DM Mono', monospace; color: #c4b896; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }

/* Config items */
.config-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.config-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface2); }
.config-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; font-family: 'Source Serif 4', serif; }
.config-path { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 300; color: var(--text-dim); background: var(--surface); padding: 2px 8px; border-radius: var(--radius); border: 1px solid var(--border); }
.config-body { padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.config-what { font-size: 13px; color: var(--text); line-height: 1.75; margin-bottom: 8px; font-family: 'Source Serif 4', serif; }
.config-impact { font-size: 12px; color: var(--accent); background: rgba(92,107,84,0.06); padding: 8px 12px; border: none; border-left: 2px solid var(--accent); font-family: 'DM Mono', monospace; font-weight: 300; border-radius: 0 var(--radius) var(--radius) 0; }
.config-impact::before { content: "→ "; font-weight: 400; }

/* Exercises */
.exercise-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.exercise-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.exercise-num { width: 24px; height: 24px; background: var(--accent); border-radius: 50%; box-shadow: none; display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 300; color: var(--text-on-accent); flex-shrink: 0; }
.exercise-title { font-size: 13px; font-weight: 600; color: var(--text); font-family: 'Source Serif 4', serif; }
.exercise-time { margin-left: auto; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 300; color: var(--text-dim); background: none; padding: 0; box-shadow: none; }
.exercise-desc { font-size: 13px; color: var(--text-soft); line-height: 1.7; margin-bottom: 10px; font-family: 'Source Serif 4', serif; }
.exercise-steps { margin-top: 8px; }
.exercise-step { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-soft); padding: 4px 0; font-family: 'Source Serif 4', serif; line-height: 1.5; }
.exercise-step::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.exercise-outcome { margin-top: 10px; padding: 10px 14px; background: rgba(92,107,84,0.06); border: none; border-left: 2px solid var(--accent); font-size: 12.5px; color: var(--accent); font-family: 'DM Mono', monospace; font-weight: 300; border-radius: 0 var(--radius) var(--radius) 0; }
.exercise-outcome::before { content: "Outcome: "; font-weight: 400; }

/* Assessment */
.assessment-q { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; padding: 16px 18px; margin-bottom: 10px; }
.q-header { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.q-num { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 400; color: var(--accent); min-width: 24px; }
.q-type { font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 300; padding: 2px 8px; background: var(--surface2); color: var(--text-dim); margin-left: auto; white-space: nowrap; border: 1px solid var(--border); border-radius: var(--radius); }
.q-text { font-size: 13px; color: var(--text); line-height: 1.7; font-family: 'Source Serif 4', serif; }
.q-hint { font-size: 12px; color: var(--text-dim); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-style: italic; font-family: 'Source Serif 4', serif; }

/* Notes */
.notes-area { width: 100%; min-height: 150px; background: var(--surface); box-shadow: none; padding: 14px; font-family: 'Source Serif 4', serif; font-size: 13px; color: var(--text); line-height: 1.8; resize: vertical; outline: none; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 12px; transition: border-color 0.2s; }
.notes-area::placeholder { color: var(--text-dim); }
.notes-area:focus { border-color: var(--accent); }
.notes-saved { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 300; color: var(--accent); margin-top: 4px; opacity: 0; transition: opacity .3s; }
.notes-saved.show { opacity: 1; }

/* Welcome screen */
.welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 40px; }
.welcome-icon { font-size: 40px; margin-bottom: 20px; opacity: 0.6; }
.welcome h2 { font-family: 'Source Serif 4', serif; font-size: 28px; font-weight: 300; margin-bottom: 12px; color: var(--text); text-shadow: none; letter-spacing: -0.01em; }
.welcome p { font-size: 14px; color: var(--text-soft); max-width: 440px; line-height: 1.8; font-family: 'Source Serif 4', serif; font-weight: 300; }
.welcome-stats { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.wstat { text-align: center; background: none; box-shadow: none; padding: 0; min-width: 70px; }
.wstat-num { font-family: 'Source Serif 4', serif; font-size: 32px; font-weight: 300; color: var(--text); }
.wstat-label { font-size: 10px; color: var(--text-dim); margin-top: 4px; font-family: 'DM Mono', monospace; font-weight: 300; letter-spacing: 0.05em; }

/* Phase badge */
.phase-notice { background: rgba(184,159,106,0.08); border: none; border-left: 2px solid var(--progress); padding: 10px 16px; font-size: 12px; color: var(--text-soft); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; font-family: 'Source Serif 4', serif; border-radius: 0 var(--radius) var(--radius) 0; }
.section-body { padding-top: 14px; }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 300; padding: 3px 8px; background: var(--surface2); color: var(--text-soft); box-shadow: none; border: 1px solid var(--border); border-radius: var(--radius); }

/* Prereq box */
.prereq-box { background: var(--surface2); border: none; border-left: 2px solid var(--border2); padding: 14px 18px; margin-top: 12px; border-radius: 0 var(--radius) var(--radius) 0; }
.prereq-box h4 { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--accent2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; font-weight: 400; }
.prereq-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); padding: 5px 0; line-height: 1.6; font-family: 'Source Serif 4', serif; }
.prereq-item::before { content: "·"; color: var(--accent); flex-shrink: 0; font-weight: bold; font-size: 18px; line-height: 1; }

/* Locked modules */
.locked-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40vh; text-align: center; color: var(--text-soft); }
.locked-state .lock-icon { font-size: 32px; margin-bottom: 16px; opacity: .3; }
.locked-state h3 { font-family: 'Source Serif 4', serif; font-size: 20px; font-weight: 300; margin-bottom: 8px; }
.locked-state p { font-size: 13px; color: var(--text-dim); font-family: 'Source Serif 4', serif; }

/* Exam badge */
.exam-badge { display:inline-flex;align-items:center;gap:5px;padding:4px 10px;font-size:11px;font-family:'DM Mono',monospace;font-weight:300;box-shadow:none;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius); }

/* Tabs */
.sbd-tab { padding: 6px 14px; box-shadow: none; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 300; cursor: pointer; letter-spacing: .02em; border-radius: var(--radius); transition: all 0.15s; }
.sbd-tab:hover { background: var(--surface2); border-color: var(--border2); }
.sbd-tab:active { transform: none; }
.sbd-tab.active-tab { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.phase-body { transition: none; }

/* Scrollbar global */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* Links */
a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--border2); text-underline-offset: 2px; }
a:visited { color: var(--accent2); }
a:hover { text-decoration-color: var(--accent); }

/* Dialogs */
.win-dialog { background: var(--surface); box-shadow: var(--shadow-md); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; max-width: 480px; margin: 14px 0; }
.win-dialog-title { background: var(--surface2); color: var(--text); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400; padding: 8px 14px; display: flex; align-items: center; gap: 6px; letter-spacing: 0.02em; border-bottom: 1px solid var(--border); }
.win-dialog-body { padding: 16px 18px; font-family: 'Source Serif 4', serif; font-size: 13px; line-height: 1.75; color: var(--text); }

/* Inline code */
code, pre { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 300; background: #2c2a26; color: #e8e4dc; padding: 2px 6px; border-radius: 2px; }
pre { display: block; padding: 12px 16px; overflow-x: auto; border-radius: var(--radius); }

/* Sidebar nav buttons */
#sidebarScroll > div > button { box-shadow: none !important; border-radius: var(--radius) !important; border: 1px solid var(--border) !important; font-family: 'DM Mono', monospace !important; font-weight: 300 !important; background: var(--surface) !important; transition: all 0.15s !important; }
#sidebarScroll > div > button:hover { filter: none !important; background: var(--surface2) !important; border-color: var(--border2) !important; }
#sidebarScroll > div > button:active { box-shadow: none !important; }

/* Dashboard button */
#dashBtn { box-shadow: none !important; border-radius: var(--radius) !important; border: 1px solid var(--border) !important; background: var(--surface) !important; color: var(--text-soft) !important; font-family: 'DM Mono', monospace !important; font-size: 11px !important; font-weight: 300 !important; padding: 5px 14px !important; transition: all 0.15s !important; }
#dashBtn:hover { background: var(--surface2) !important; border-color: var(--border2) !important; }
#dashBtn:active { box-shadow: none !important; }
