/* ═══════════════════════════════════════════════════════════════
   RecapStudio Design System v3 — Premium SaaS Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand palette */
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #3b3b9a;
  --brand-800: #2e2e7a;
  --brand-900: #1e1e5a;

  /* Greys */
  --gray-50: #f8f9fc;
  --gray-100: #f1f3f8;
  --gray-200: #e2e6ef;
  --gray-300: #cdd2df;
  --gray-400: #9ca3b5;
  --gray-500: #6b7285;
  --gray-600: #4b5568;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #0b121e;

  /* Semantics */
  --success-50: #ecfdf5;
  --success-400: #34d399;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;

  --warning-50: #fffbeb;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;

  --error-50: #fef2f2;
  --error-400: #f87171;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;

  --info-50: #eff6ff;
  --info-500: #3b82f6;
  --info-600: #2563eb;

  /* Surfaces */
  --bg: var(--gray-50);
  --bg-gradient: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  --surface: #ffffff;
  --surface-2: var(--gray-100);
  --surface-3: var(--gray-200);
  --border: var(--gray-200);
  --border-light: var(--gray-100);
  --border-subtle: rgba(0,0,0,.04);

  /* Text */
  --text: var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-tertiary: var(--gray-400);

  /* Accent */
  --accent: var(--brand-600);
  --accent-hover: var(--brand-700);
  --accent-light: var(--brand-50);
  --accent-gradient: linear-gradient(135deg, var(--brand-500), var(--brand-600));

  /* Status */
  --danger: var(--error-500);
  --danger-bg: var(--error-50);
  --success: var(--success-500);
  --success-bg: var(--success-50);
  --warning: var(--warning-500);
  --warning-bg: var(--warning-50);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.07), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.04);
  --shadow-glow: 0 0 0 3px var(--accent-light);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Sizing */
  --max: 1200px;
  --max-narrow: 860px;
  --nav-height: 60px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Transition */
  --transition: .15s cubic-bezier(.4,0,.2,1);
  --transition-slow: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Base Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0; padding: 0;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; }
code, pre { font-family: var(--font-mono); font-size: .925em; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0; }
.subtle, .text-secondary { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.text-tertiary { color: var(--text-tertiary); font-size: 13px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ── Layout ──────────────────────────────────────────────── */
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 28px 0 60px; }
.shell-narrow { width: min(var(--max-narrow), calc(100% - 48px)); margin: 0 auto; padding: 28px 0 60px; }
.shell-wide { width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 60px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-xs { gap: 6px; }
.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid.cols-5 { grid-template-columns: 1fr; } }

.space-y > * + * { margin-top: 16px; }
.space-y-xs > * + * { margin-top: 8px; }
.space-y-sm > * + * { margin-top: 12px; }

/* ── Top Navigation ──────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; gap: 16px; align-items: center;
  justify-content: space-between;
  padding: 0 24px; height: var(--nav-height);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 16px;
  text-decoration: none !important; flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff; font-weight: 800; font-size: 15px;
}
.topnav {
  display: flex; gap: 2px; flex-wrap: wrap;
}
.topnav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: all var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}
.topnav a:hover, .topnav a.active { background: var(--surface-2); color: var(--text); }
.topnav a.active { color: var(--accent); font-weight: 600; }
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }

@media (max-width: 768px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: var(--nav-height); padding: 8px 16px; gap: 6px; }
  .topnav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; gap: 0; }
  .topnav a { font-size: 13px; padding: 6px 10px; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  width: min(var(--max), calc(100% - 48px)); margin: 0 auto;
  padding: 24px 0 32px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-tertiary); font-size: 13px;
  border-top: 1px solid var(--border-light);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--gray-300); }
.card-interactive { cursor: pointer; }
.card-interactive:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card-flat { box-shadow: none; border-color: var(--border-light); }
.card-highlight { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── Panels ──────────────────────────────────────────────── */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  padding: 36px 0;
  display: grid; gap: 14px;
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-card {
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.stat-card .label { color: var(--text-secondary); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-card .value { margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1; color: var(--text); }
.stat-card .change { margin-top: 4px; font-size: 13px; }
.stat-card .change.up { color: var(--success); }
.stat-card .change.down { color: var(--danger); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1;
  cursor: pointer; text-decoration: none !important;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

.btn-primary {
  background: var(--accent-gradient); color: #fff; border: none;
}
.btn-primary:hover { box-shadow: var(--shadow-md); filter: brightness(1.08); }

.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--gray-300); }

.btn-ghost {
  background: transparent; color: var(--text-secondary); border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger {
  background: var(--error-50); color: var(--error-600); border-color: transparent;
}
.btn-danger:hover { background: var(--error-50); color: var(--error-700); border-color: var(--error-500); }

.btn-success {
  background: var(--success-50); color: var(--success-600); border-color: transparent;
}
.btn-success:hover { color: var(--success-700); border-color: var(--success-500); }

.btn-soft {
  background: var(--accent-light); color: var(--accent); border: none;
}
.btn-soft:hover { filter: brightness(.95); }

.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Form Elements ───────────────────────────────────────── */
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  padding: 10px 14px; font: inherit; font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.input-error { border-color: var(--error-500); }
.input-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7285' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: grid; gap: 6px; }
.help { margin-top: 6px; font-size: 12px; color: var(--text-tertiary); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; line-height: 1.5;
  display: flex; align-items: center; gap: 10px;
}
.alert.success { border-color: var(--success-500); background: var(--success-50); color: var(--success-700); }
.alert.error { border-color: var(--error-500); background: var(--error-50); color: var(--error-700); }
.alert.warning { border-color: var(--warning-500); background: var(--warning-50); color: var(--warning-700); }
.alert.info { border-color: var(--info-500); background: var(--info-50); color: var(--info-600); }
.alert-dismiss { margin-left: auto; cursor: pointer; opacity: .6; }
.alert-dismiss:hover { opacity: 1; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.2;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary);
}
.badge.success { border-color: var(--success-500); background: var(--success-50); color: var(--success-700); }
.badge.primary { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.badge.warning { border-color: var(--warning-500); background: var(--warning-50); color: var(--warning-700); }
.badge.error { border-color: var(--error-500); background: var(--error-50); color: var(--error-700); }
.badge.neutral { border-color: var(--gray-300); background: var(--gray-100); color: var(--gray-600); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.badge-dot.success { background: var(--success-500); }
.badge-dot.primary { background: var(--accent); }
.badge-dot.warning { background: var(--warning-500); }
.badge-dot.error { background: var(--error-500); }
.badge-dot.neutral { background: var(--gray-400); }
.badge i { font-size: 11px; }

/* ── Pill filter tags ────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary);
  text-decoration: none !important;
  transition: all var(--transition);
}
.pill:hover { border-color: var(--gray-300); background: var(--surface-2); }
.pill.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
a.pill { cursor: pointer; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: middle; }
table th { background: var(--gray-50); font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--gray-50); }
table td .btn { margin: -2px 0; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; overflow-x: auto;
}
.tab {
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap; text-decoration: none !important;
  display: flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab i { font-size: 14px; }

/* ── List Items ──────────────────────────────────────────── */
.list { display: grid; gap: 10px; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-light);
  transition: border-color var(--transition);
}
.list-item:hover { border-color: var(--border); }
.list-item .primary { font-weight: 600; }
.list-item .secondary { font-size: 13px; color: var(--text-secondary); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 24px; text-align: center; gap: 12px;
}
.empty-state .icon { font-size: 40px; color: var(--text-tertiary); opacity: .5; }
.empty-state h3 { color: var(--text); }
.empty-state p { color: var(--text-secondary); max-width: 420px; font-size: 14px; line-height: 1.6; }

/* ── Guide Panel (sticky sidebar) ────────────────────────── */
.guide-panel {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px; display: grid; gap: 14px;
}
.guide-panel h4 {
  color: var(--text); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.guide-panel h4 i { color: var(--accent); font-size: 15px; }
.guide-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.guide-item:last-child { border-bottom: none; }
.guide-item .guide-label { color: var(--text-secondary); }
.guide-item .guide-value { font-weight: 600; color: var(--text); }

/* ── Stickied guide panel on create pages ────────────────── */
.guide-sticky { position: sticky; top: calc(var(--nav-height) + 24px); }

/* ── Plan Cards ──────────────────────────────────────────── */
.plan-card {
  padding: 28px; border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 14px; text-align: center;
  position: relative; transition: all var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-light) 100%);
}
.plan-card .plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 18px; border-radius: 999px;
  background: var(--accent-gradient); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.plan-card .plan-name { font-size: 16px; font-weight: 700; }
.plan-card .plan-price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.plan-card .plan-price span { font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.plan-card .plan-features { text-align: left; }
.plan-card .plan-features li {
  padding: 6px 0; font-size: 14px; color: var(--text-secondary);
  list-style: none; display: flex; gap: 8px; align-items: flex-start;
}
.plan-card .plan-features li i { color: var(--success); font-weight: 700; font-size: 14px; margin-top: 2px; }

/* ── Progress Bar ────────────────────────────────────────── */
.progress { width: 100%; height: 6px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: var(--accent-gradient); transition: width .6s ease; }

/* ── Step number badges ──────────────────────────────────── */
.step-number {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-light); color: var(--accent);
  font-weight: 700; font-size: 14px;
}
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { display: flex; gap: 14px; }

/* ── Filter Row ──────────────────────────────────────────── */
.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.filter-btn {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); text-decoration: none !important;
}
.filter-btn:hover { border-color: var(--gray-300); background: var(--surface-2); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ── Toolbar ─────────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.toolbar-left { display: flex; align-items: center; gap: 12px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }

/* ── Kicker ──────────────────────────────────────────────── */
.kicker {
  text-transform: uppercase; font-size: 11px; letter-spacing: .08em;
  color: var(--text-tertiary); font-weight: 700;
}

/* ── Status Indicators ───────────────────────────────────── */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.draft { background: var(--gray-400); }

/* ── Theme-aware spacers & helpers ───────────────────────── */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.p-0 { padding: 0; } .p-4 { padding: 16px; } .p-6 { padding: 24px; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none; } .block { display: block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-word { word-break: break-word; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-sm); }
.border { border: 1px solid var(--border); }
.border-0 { border: none; }
.bg-surface { background: var(--surface); }
.text-accent { color: var(--accent); }

.row { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
details.card, details.panel { cursor: pointer; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; outline: none; }
details summary::-webkit-details-marker { display: none; }

/* ── Print ───────────────────────────────────────────────── */
@media print { .topbar, .footer, .btn { display: none; } body { background: #fff; color: #000; } }

/* ── Custom scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }