:root {
  --color-bg: #FFFFFF;
  --color-surface: #FFF9F3;
  --color-surface-2: #F5F0EA;
  --color-border: #D4CEC6;
  --color-accent: #D3A163;
  --color-accent-dark: #B8844A;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6863;
  --color-text-muted: #9C9894;
  --color-success: #297948;
  --color-success-bg: #EAF5EE;
  --color-warning: #B87D1C;
  --color-warning-bg: #FEF6E4;
  --color-danger: #AF3D3D;
  --color-danger-bg: #FAEAEA;
  --color-info: #1B5FA8;
  --color-info-bg: #E8F0FB;
  --color-todo: #7C5C1A;
  --color-todo-bg: #FDF3DC;
  --color-todo-border: #E8C96A;
  --font-sans: 'Inter', 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --transition: 150ms ease;
}

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

html { scroll-behavior: smooth; font-size: 14px; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* sidebar + content wrapper */
.body-layout {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* ── TOP MENU BAR ────────────────────────────────────────────────────────── */

.top-menubar {
  background: var(--color-text);
  color: #fff;
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
}

.menubar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
  padding: 0 16px;
}

.menubar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 224px; /* match sidebar width so menu list starts aligned with content */
  flex-shrink: 0;
}

.menubar-logo {
  width: 28px; height: 28px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.menubar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.menubar-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 100%;
  flex: 1;
  gap: 0;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.menu-btn {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.menu-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }

.menu-item.active > .menu-btn {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: rgba(211,161,99,0.1);
}

/* Dropdown */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #222;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--color-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 300;
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.menu-item:hover .menu-dropdown { display: block; }

.menu-dropdown .nav-item {
  width: 100%;
  padding: 9px 16px;
  border-radius: 0;
  color: rgba(232,185,128,0.85);
  font-size: 0.82rem;
  background: transparent;
  border: none;
}

.menu-dropdown .nav-item:hover { background: rgba(255,255,255,0.07); color: rgb(255,220,170); }
.menu-dropdown .nav-item.active { background: rgba(211,161,99,0.18); color: var(--color-accent); border-left: 3px solid var(--color-accent); padding-left: 13px; }

.menu-chevron {
  font-size: 0.6rem;
  opacity: 0.55;
  margin-left: 3px;
  vertical-align: middle;
}

.menubar-version {
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 16px;
}

.menubar-version .meta-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
}

.menubar-version .meta-badge strong { color: var(--color-accent); }

.version-btn {
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition), border-color var(--transition);
}

.version-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */

.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--color-text);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 51px; /* height of top menu bar (48px + 3px border) */
  height: calc(100vh - 51px);
  overflow-y: auto;
  transition: width var(--transition);
  z-index: 90;
}

/* Sidebar groups — shown/hidden by active menu */
.sidebar-group { display: none; }
.sidebar-group.active { display: block; }

.sidebar.collapsed { width: 52px; }

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  cursor: pointer;
  margin: 12px 12px 0 auto;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.sidebar-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); margin: 12px auto 0 auto; }

.sidebar-progress {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-progress .progress-track {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.sidebar-progress .progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.sidebar-progress-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.sidebar.collapsed .sidebar-progress { display: none; }

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-group { margin-bottom: 4px; }

.nav-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 185, 128, 0.5);
  padding: 10px 16px 4px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .nav-group-label { opacity: 0; height: 0; padding: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: rgb(232, 185, 128);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
}

.nav-item:hover { background: rgba(255,255,255,0.07); color: rgb(255, 220, 170); }

.nav-item.active {
  background: rgba(211,161,99,0.18);
  color: var(--color-accent);
  font-weight: 600;
  border-left: 3px solid var(--color-accent);
  padding-left: 11px;
}

.nav-icon { font-size: 1rem; flex-shrink: 0; }
.nav-text { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.nav-item-sub { padding-left: 22px; font-size: 0.79rem; opacity: 0.9; }
.nav-item-sub.active { padding-left: 19px; }

.sidebar.collapsed .nav-text { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px; }
.sidebar.collapsed .nav-item.active { border-left-width: 2px; padding-left: 9px; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar.collapsed .sidebar-footer { display: none; }

/* ── (header removed — replaced by top-menubar) ──────────────────────────── */

/* ── PROGRESS BAR ────────────────────────────────────────────────────────── */

.doc-progress-bar {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.progress-inner {
  display: flex; align-items: center; gap: 12px;
}

.progress-label { font-size: 0.75rem; color: var(--color-text-secondary); white-space: nowrap; }

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.progress-fill.complete { background: var(--color-success); }

.progress-count {
  font-size: 0.75rem; font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* ── MAIN CONTENT ────────────────────────────────────────────────────────── */

.content-area {
  flex: 1;
  min-width: 0;
  padding: 32px 0 64px;
  overflow-y: auto;
}

.view-section { display: none; }
.view-section.active { display: block; }

/* ── SECTION HEADER ──────────────────────────────────────────────────────── */

.section-header { margin-bottom: 28px; }

.section-title {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex; align-items: center; gap: 10px;
}

.section-title-icon { font-size: 1.4rem; }

.section-description {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  max-width: 720px;
  line-height: 1.7;
}

/* ── CARDS & PANELS ──────────────────────────────────────────────────────── */

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 8px;
}

.card-title-icon { opacity: 0.75; }

/* ── GRID LAYOUTS ────────────────────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── DIAGRAM CONTAINER ───────────────────────────────────────────────────── */

.diagram-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.diagram-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.diagram-title { font-size: 0.875rem; font-weight: 600; color: var(--color-text); }

.diagram-controls { display: flex; gap: 6px; }

.diagram-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}

.diagram-btn:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

.diagram-body {
  padding: 24px;
  min-height: 320px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-body .mermaid { width: 100%; }

/* ── DIAGRAM FULLSCREEN VIEWER ───────────────────────────────────────────── */
.diagram-fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  flex-direction: column;
}
.diagram-fs-overlay.open { display: flex; }
body.diagram-fs-lock { overflow: hidden; }

.diagram-fs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex: 0 0 auto;
}
.diagram-fs-title { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.diagram-fs-tools { display: flex; align-items: center; gap: 6px; }
.diagram-fs-hint {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  margin-right: 8px;
}

/* Scrollable canvas — the SVG is sized by an explicit pixel WIDTH (set in JS),
   NOT a CSS transform. Because width is a real layout dimension, the canvas's
   scroll area grows with zoom and every part of the diagram stays reachable via
   scroll/drag in both axes. The inner wrapper is inline-block so it centres when
   smaller than the viewport and simply overflows (scrolls) when larger. */
.diagram-fs-canvas {
  flex: 1 1 auto;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px) 0 0 / 24px 24px,
    #F8F7F5;
  text-align: center;
  padding: 32px;
  cursor: grab;
}
.diagram-fs-canvas.grabbing { cursor: grabbing; }
.diagram-fs-canvas svg {
  display: inline-block;
  vertical-align: top;
  margin: 0 auto;
}

/* ── INLINE TABS ─────────────────────────────────────────────────────────── */

.itab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}
.itab-btn {
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: 4px 4px 0 0;
  transition: color 0.15s, border-color 0.15s;
}
.itab-btn:hover { color: var(--color-text); }
.itab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.itab-panel { display: none; }
.itab-panel.active { display: block; }

/* ── TABLES ──────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

thead th {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
  line-height: 1.5;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--color-surface); }

/* ── BADGES ──────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-todo {
  background: var(--color-todo-bg);
  color: var(--color-todo);
  border: 1px solid var(--color-todo-border);
}

.badge-done { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }
.badge-neutral { background: var(--color-surface-2); color: var(--color-text-secondary); }

.placeholder-todo { font-size: 0.7rem; }

/* ── SERVICE PILLS ───────────────────────────────────────────────────────── */

.service-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 8px;
}

.service-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.8rem;
}

.service-pill .pill-name { font-weight: 600; }
.service-pill .pill-version { color: var(--color-text-muted); font-size: 0.72rem; }

/* ── RISK CARDS ──────────────────────────────────────────────────────────── */

.risk-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.risk-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
}

.risk-header:hover { background: var(--color-surface); }

.risk-severity {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.severity-critical { background: var(--color-danger-bg); color: var(--color-danger); }
.severity-high { background: #FEF0E4; color: #C4570A; }
.severity-medium { background: var(--color-warning-bg); color: var(--color-warning); }
.severity-low { background: var(--color-info-bg); color: var(--color-info); }

.risk-title { font-size: 0.875rem; font-weight: 600; flex: 1; }
.risk-chevron { color: var(--color-text-muted); font-size: 0.75rem; transition: transform var(--transition); }
.risk-card.open .risk-chevron { transform: rotate(180deg); }

.risk-body {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.83rem;
}

.risk-card.open .risk-body { display: block; }

.risk-detail-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-top: 12px; margin-bottom: 4px;
}

.risk-detail-label:first-child { margin-top: 0; }

/* ── CHECKLIST ───────────────────────────────────────────────────────────── */

.checklist { list-style: none; }

.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  line-height: 1.5;
}

.checklist li:last-child { border-bottom: none; }

.check-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.65rem;
  font-weight: 800;
}

.check-done { background: var(--color-success-bg); color: var(--color-success); }
.check-pending { background: var(--color-danger-bg); color: var(--color-danger); }
.check-partial { background: var(--color-warning-bg); color: var(--color-warning); }

.check-text { flex: 1; }
.check-text strong { font-weight: 600; }
.check-note { font-size: 0.78rem; color: var(--color-text-secondary); margin-top: 3px; }

/* ── SECURITY SCORE ──────────────────────────────────────────────────────── */

.security-score-card {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 32px;
}

.score-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 4px solid var(--color-warning);
  flex-shrink: 0;
}

.score-number { font-size: 2.5rem; font-weight: 800; color: var(--color-warning); line-height: 1; }
.score-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

.score-details { flex: 1; }
.score-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.score-description { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

.score-breakdown {
  display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap;
}

.score-item { text-align: center; }
.score-item-num { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.score-item-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.score-item.good .score-item-num { color: #5FCF87; }
.score-item.warn .score-item-num { color: #F5C842; }
.score-item.bad .score-item-num { color: #F47E7E; }

/* ── PIPELINE STEPS ──────────────────────────────────────────────────────── */

.pipeline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  margin: 16px 0;
}

.pipeline-step {
  display: flex; align-items: center; gap: 4px;
}

.pipeline-node {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.pipeline-node.trigger { background: var(--color-info-bg); border-color: #A0BCDE; color: var(--color-info); }
.pipeline-node.build { background: var(--color-warning-bg); border-color: #E8C96A; color: var(--color-warning); }
.pipeline-node.deploy { background: var(--color-success-bg); border-color: #A3CFBA; color: var(--color-success); }
.pipeline-node.post { background: var(--color-surface-2); border-color: var(--color-border); }

.pipeline-arrow { color: var(--color-text-muted); font-size: 1rem; }

/* ── UPGRADE TABLE ROWS ──────────────────────────────────────────────────── */

.effort-bar {
  display: flex; align-items: center; gap: 8px;
}

.effort-dots { display: flex; gap: 3px; }
.effort-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.effort-dot.filled { background: var(--color-accent); }
.effort-dot.filled.hard { background: var(--color-danger); }

/* ── CALLOUT BOXES ───────────────────────────────────────────────────────── */

.callout {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin: 16px 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.callout-warning { background: var(--color-warning-bg); border-color: var(--color-warning); }
.callout-danger { background: var(--color-danger-bg); border-color: var(--color-danger); }
.callout-info { background: var(--color-info-bg); border-color: var(--color-info); }
.callout-success { background: var(--color-success-bg); border-color: var(--color-success); }

.callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ── CODE / MONO ─────────────────────────────────────────────────────────── */

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--color-text);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }
