/* FightReg Documentation — Shared Styles
   Farben & Fonts direkt aus app.css / Design-System */

/* ── Self-hosted DM Sans (relativ zu /docs/ → ../public/assets/fonts/) ── */
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:400; src:url('../public/assets/fonts/DMSans-Regular.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:500; src:url('../public/assets/fonts/DMSans-Medium.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:600; src:url('../public/assets/fonts/DMSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:700; src:url('../public/assets/fonts/DMSans-Bold.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:800; src:url('../public/assets/fonts/DMSans-ExtraBold.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:italic; font-weight:400; src:url('../public/assets/fonts/DMSans-Italic.woff2') format('woff2'); }

:root {
  /* ── FightReg Dark Theme (exakt aus app.css) ── */
  --bg:        #0a0a19;
  --bg2:       #0c0c1e;
  --sidebar:   #0c0c1e;
  --card:      #13132a;
  --card-hover:#1a1a35;
  --border:    #2e2e52;
  --border-h:  #3a3a62;
  --text:      #f1faee;
  --muted:     #888;
  --label:     #a8dadc;
  --subtle:    #3a3a62;
  --code-bg:   #0e0e1e;

  /* Akzentfarbe: default red — exakt wie FightReg Standard */
  --accent:       #e63946;
  --accent-h:     #d62839;
  --accent-rgb:   230,57,70;
  --accent-bg:    rgba(230,57,70,0.12);
  --accent-border:rgba(230,57,70,0.35);

  --success:   #4ade80;
  --success-bg:rgba(74,222,128,0.1);
  --warning:   #e9c46a;
  --warning-bg:rgba(233,196,106,0.1);
  --info:      #a8dadc;
  --info-bg:   rgba(168,218,220,0.1);
  --danger:    #f87171;
  --danger-bg: rgba(248,113,113,0.1);

  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 2px 12px rgba(0,0,0,0.35);

  --sidebar-w: 256px;
  --header-h:  52px;
  --font:      'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:      'Courier New', Consolas, 'Lucida Console', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }
h5 {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--mono); font-size: 0.8rem; }
code {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2px 6px; color: var(--label);
}
pre {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  overflow-x: auto; margin: 12px 0; color: var(--label); line-height: 1.65;
}
pre code { background: none; border: none; padding: 0; color: inherit; }

/* ── Layout ──────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────── */
.sidebar {
  width: var(--sidebar-w); background: var(--sidebar);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100; display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--subtle) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--subtle); border-radius: 4px; }

.sidebar-logo {
  padding: 16px 18px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px;
}
.sidebar-logo .logo-mark {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  font-family: var(--font); font-weight: 800; font-size: 12px; color: #fff;
  flex-shrink: 0; letter-spacing: -0.02em;
}
.sidebar-logo .logo-text { font-family: var(--font); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; }
.sidebar-logo .logo-text span { color: var(--accent); }
.sidebar-logo .doc-badge {
  font-size: 0.62rem; font-weight: 700;
  background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent);
  padding: 1px 7px; border-radius: 20px; margin-left: auto;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.sidebar-search { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.sidebar-search .search-wrap { position: relative; }
.sidebar-search input {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 10px 6px 28px;
  color: var(--text); font-size: 0.8rem; font-family: var(--font); outline: none;
}
.sidebar-search input::placeholder { color: var(--muted); }
.sidebar-search input:focus { border-color: var(--accent); }
.sidebar-search .search-icon {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.85rem; pointer-events: none;
}

.sidebar-nav { padding: 6px 0; flex: 1; }
.nav-section-title {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); padding: 12px 18px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 18px;
  color: var(--muted); font-size: 0.82rem; font-weight: 400;
  cursor: pointer; border-left: 2px solid transparent;
  transition: all 0.15s; text-decoration: none;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.03); text-decoration: none; }
.nav-item.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-bg); font-weight: 500; }

.sidebar-footer { padding: 12px 18px; border-top: 1px solid var(--border); font-size: 0.73rem; color: var(--muted); }
.sidebar-footer a { color: var(--muted); }

/* ── Main ────────────────────────────── */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; }

/* ── Topbar ──────────────────────────── */
.topbar {
  height: var(--header-h); background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 32px; gap: 10px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.topbar-breadcrumb .sep { color: var(--subtle); }
.topbar-breadcrumb .current { color: var(--text); font-weight: 500; }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.topbar-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 5px 11px; color: var(--muted); font-size: 0.78rem; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: all 0.15s; font-weight: 500;
}
.topbar-btn:hover { color: var(--text); border-color: var(--border-h); }
.topbar-btn.pdf-btn {
  background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent);
}
.topbar-btn.pdf-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Content ─────────────────────────── */
.content { padding: 36px 44px 80px; max-width: 940px; width: 100%; }

/* ── Sections ────────────────────────── */
.section { margin-bottom: 52px; scroll-margin-top: 68px; }
.section-header {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-header h2 { flex: 1; }
.section-icon {
  width: 34px; height: 34px; background: var(--accent-bg);
  border: 1px solid var(--accent-border); border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--accent); flex-shrink: 0; font-size: 1rem;
}

.subsection { margin-bottom: 28px; }
.subsection h3 { margin-bottom: 10px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.subsection h3::before {
  content: ''; display: inline-block; width: 3px; height: 16px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}

/* ── Cards ───────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 10px; }

/* ── Callouts ────────────────────────── */
.callout {
  border-radius: var(--radius-sm); padding: 12px 15px; margin: 12px 0;
  display: flex; gap: 9px; font-size: 0.85rem; border-left: 3px solid; line-height: 1.5;
}
.callout-icon { flex-shrink: 0; margin-top: 1px; }
.callout.info    { background: var(--info-bg);    border-color: var(--info);    color: var(--label); }
.callout.warning { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }
.callout.success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.callout.danger  { background: var(--danger-bg);  border-color: var(--danger);  color: var(--danger); }

/* ── Tables ──────────────────────────── */
.table-wrap { overflow-x: auto; margin: 10px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg2); }
th { text-align: left; padding: 9px 13px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 9px 13px; font-size: 0.83rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
td code { font-size: 0.76rem; }

/* ── Badges ──────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 20px; font-size: 0.69rem; font-weight: 700; letter-spacing: 0.04em; }
.badge-get    { background: rgba(74,222,128,0.12);  color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.badge-post   { background: rgba(168,218,220,0.12); color: #a8dadc; border: 1px solid rgba(168,218,220,0.3); }
.badge-put    { background: rgba(233,196,106,0.12); color: #e9c46a; border: 1px solid rgba(233,196,106,0.3); }
.badge-patch  { background: rgba(198,168,218,0.12); color: #c6a8da; border: 1px solid rgba(198,168,218,0.3); }
.badge-delete { background: rgba(230,57,70,0.12);   color: #e63946; border: 1px solid rgba(230,57,70,0.3); }

/* ── Role chips ──────────────────────── */
.role-chip { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700; margin: 2px; letter-spacing: 0.03em; }
.role-super_admin { background: rgba(230,57,70,0.15);  color: #e63946; }
.role-admin       { background: rgba(230,57,70,0.1);   color: #f48c95; }
.role-trainer     { background: rgba(168,218,220,0.12);color: #a8dadc; }
.role-staff       { background: rgba(198,168,218,0.12);color: #c6a8da; }
.role-billing     { background: rgba(74,222,128,0.12); color: #4ade80; }
.role-athlete     { background: rgba(233,196,106,0.12);color: #e9c46a; }
.role-spectator   { background: rgba(136,136,136,0.15);color: #888; }

/* ── Steps ───────────────────────────── */
.steps { counter-reset: step-counter; list-style: none; }
.steps li { counter-increment: step-counter; display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.steps li::before {
  content: counter(step-counter); display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; min-width: 24px; background: var(--accent); color: #fff;
  border-radius: 50%; font-weight: 700; font-size: 0.75rem; margin-top: 2px;
}

/* ── Grids ───────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

/* ── Feature cards ───────────────────── */
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color 0.15s; }
.feature-card:hover { border-color: var(--border-h); }
.feature-card h4 { margin-bottom: 5px; font-size: 0.9rem; }
.feature-card p { font-size: 0.81rem; color: var(--muted); line-height: 1.5; }
.feature-card .fc-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--accent-bg); border: 1px solid var(--accent-border); display: grid; place-items: center; color: var(--accent); margin-bottom: 9px; font-size: 0.9rem; }

/* ── Collapsible ─────────────────────── */
.collapsible-header { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 11px 15px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 2px; user-select: none; transition: background 0.15s; }
.collapsible-header:hover { background: var(--card-hover); }
.collapsible-header h3 { flex: 1; font-size: 0.88rem; }
.collapsible-header h3::before { display: none; }
.collapsible-chevron { color: var(--muted); transition: transform 0.2s; font-size: 0.7rem; }
.collapsible-header.open .collapsible-chevron { transform: rotate(90deg); }
.collapsible-body { background: var(--bg2); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 14px 16px; margin-bottom: 6px; display: none; }
.collapsible-body.open { display: block; }

/* ── Hero ────────────────────────────── */
.doc-hero { padding: 36px 0 28px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.doc-hero .hero-eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 7px; }
.doc-hero h1 { margin-bottom: 9px; color: var(--text); }
.doc-hero p { color: var(--muted); max-width: 600px; font-size: 0.9rem; }
.doc-hero .hero-meta { margin-top: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.doc-hero .meta-chip { display: flex; align-items: center; gap: 4px; font-size: 0.74rem; color: var(--muted); background: var(--card); border: 1px solid var(--border); padding: 3px 9px; border-radius: 20px; font-weight: 500; }

/* ── TOC ─────────────────────────────── */
.toc { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 18px 0 28px; }
.toc h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 9px; }
.toc ol { padding-left: 16px; }
.toc li { font-size: 0.82rem; margin-bottom: 3px; }
.toc li a { color: var(--muted); }
.toc li a:hover { color: var(--text); }

/* ── DB Table Cards ──────────────────── */
.db-table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; overflow: hidden; }
.db-table-header { display: flex; align-items: center; gap: 9px; padding: 9px 13px; background: var(--bg2); border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.db-table-header:hover { background: var(--card); }
.db-table-name { font-family: var(--mono); font-size: 0.82rem; color: var(--label); flex: 1; }
.db-table-meta { font-size: 0.72rem; color: var(--muted); }
.db-table-body { display: none; padding: 10px 13px; font-size: 0.82rem; color: var(--muted); }
.db-table-body.open { display: block; }

/* ── Version bar ─────────────────────── */
.version-bar { height: 2px; background: var(--accent); }

/* ── Tag / Pill ──────────────────────── */
.tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.tag-new  { background: var(--success-bg); border-color: rgba(74,222,128,0.3);  color: var(--success); }
.tag-beta { background: var(--info-bg);    border-color: rgba(168,218,220,0.3); color: var(--info); }
.tag-wip  { background: var(--warning-bg); border-color: rgba(233,196,106,0.3); color: var(--warning); }

/* ── Scrollbar ───────────────────────── */
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-thumb { background: var(--subtle); border-radius: 3px; }

/* ── Responsive ──────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 256px; transition: transform 0.25s; }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 22px 18px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
}

/* ── Print / PDF ─────────────────────── */
@media print {
  .sidebar, .topbar, .topbar-actions { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  h1 { font-size: 20pt !important; }
  h2 { font-size: 14pt !important; page-break-after: avoid; }
  h3 { font-size: 11pt !important; page-break-after: avoid; }
  .section { page-break-inside: avoid; }
  .section-header { border-color: #ccc !important; }
  .card, .feature-card, .toc { border: 1px solid #ddd !important; background: #fafafa !important; color: #000 !important; }
  .callout { border: 1px solid #ccc !important; background: #f5f5f5 !important; color: #333 !important; }
  pre { background: #f5f5f5 !important; color: #222 !important; border: 1px solid #ddd !important; font-size: 8.5pt; }
  code { background: #f0f0f0 !important; color: #333 !important; border: 1px solid #ddd !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .version-bar { display: none !important; }
  .badge, .role-chip, .tag { border: 1px solid #ccc !important; background: #eee !important; color: #333 !important; }
  table { border-collapse: collapse !important; }
  th { background: #eee !important; color: #000 !important; border: 1px solid #ccc !important; }
  td { border: 1px solid #ddd !important; color: #000 !important; }
  tr:hover td { background: transparent !important; }
  .steps li::before { background: #333 !important; color: #fff !important; }
  .toc { border-left: 3px solid #333 !important; }
  .subsection h3::before { background: #333 !important; }
  .section-icon { display: none !important; }
  .db-table-body { display: block !important; }
  .collapsible-body { display: block !important; }
  .doc-hero { border-color: #ccc !important; }
  .doc-hero h1, .doc-hero p { color: #000 !important; }
  .doc-hero .hero-eyebrow { color: #333 !important; }
}

/* ── Accent color variants (matching app.css exactly) ── */
:root, [data-accent="red"]     { --accent:#e63946; --accent-h:#d62839; --accent-rgb:230,57,70;   --accent-bg:rgba(230,57,70,.12);   --accent-border:rgba(230,57,70,.35); }
[data-accent="blue"]           { --accent:#2563eb; --accent-h:#1d4ed8; --accent-rgb:37,99,235;   --accent-bg:rgba(37,99,235,.12);   --accent-border:rgba(37,99,235,.35); }
[data-accent="orange"]         { --accent:#ea580c; --accent-h:#c2410c; --accent-rgb:234,88,12;   --accent-bg:rgba(234,88,12,.12);   --accent-border:rgba(234,88,12,.35); }
[data-accent="teal"]           { --accent:#0d9488; --accent-h:#0f766e; --accent-rgb:13,148,136;  --accent-bg:rgba(13,148,136,.12);  --accent-border:rgba(13,148,136,.35); }
[data-accent="violet"]         { --accent:#7c3aed; --accent-h:#6d28d9; --accent-rgb:124,58,237;  --accent-bg:rgba(124,58,237,.12);  --accent-border:rgba(124,58,237,.35); }
[data-accent="emerald"]        { --accent:#059669; --accent-h:#047857; --accent-rgb:5,150,105;   --accent-bg:rgba(5,150,105,.12);   --accent-border:rgba(5,150,105,.35); }
[data-accent="amber"]          { --accent:#d97706; --accent-h:#b45309; --accent-rgb:217,119,6;   --accent-bg:rgba(217,119,6,.12);   --accent-border:rgba(217,119,6,.35); }
[data-accent="cyan"]           { --accent:#0891b2; --accent-h:#0e7490; --accent-rgb:8,145,178;   --accent-bg:rgba(8,145,178,.12);   --accent-border:rgba(8,145,178,.35); }

/* ── Font size steps ── */
html.fs-sm { font-size: 13px; }
html.fs-md { font-size: 14px; }
html.fs-lg { font-size: 16px; }
html.fs-xl { font-size: 18px; }

/* ── Light Theme ─────────────────────── */
[data-theme="light"] {
  --bg:        #f5f5f7;
  --bg2:       #ffffff;
  --sidebar:   #ffffff;
  --card:      #ffffff;
  --card-hover:#f8f8fa;
  --border:    rgba(0,0,0,0.1);
  --border-h:  rgba(0,0,0,0.18);
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --label:     #2563eb;
  --subtle:    rgba(0,0,0,0.15);
  --code-bg:   #f1f5f9;
  --shadow:    0 2px 12px rgba(0,0,0,0.1);
}
[data-theme="light"] .version-bar { opacity: 1; }
[data-theme="light"] pre  { color: #1e293b; }
[data-theme="light"] code { color: #0369a1; }
[data-theme="light"] thead { background: #f1f5f9; }
[data-theme="light"] tr:hover td { background: rgba(0,0,0,0.02); }
[data-theme="light"] .sidebar { border-right-color: rgba(0,0,0,0.1); }
[data-theme="light"] .topbar { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .nav-item:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .db-table-header:hover { background: #f8f8fa; }

/* ── PDF Modal ───────────────────────── */
.pdf-modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.pdf-modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 32px; max-width: 420px; width: 90%;
  box-shadow: var(--shadow);
}
.pdf-modal h3 { margin-bottom: 8px; font-size: 1.05rem; }
.pdf-modal p  { font-size: .85rem; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }
.pdf-modal-btns { display: flex; gap: 8px; justify-content: flex-end; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 14px;
  color: var(--muted); font-size: .82rem; font-family: var(--font);
  cursor: pointer; font-weight: 500; transition: all .15s;
}
.btn-ghost:hover { border-color: var(--border-h); color: var(--text); }
.btn-primary {
  background: var(--accent); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 7px 16px;
  color: #fff; font-size: .82rem; font-family: var(--font);
  cursor: pointer; font-weight: 600; transition: all .15s;
}
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
