:root {
  --bg:       #f8fafc;
  --bg2:      #eef2f7;
  --surface:  #ffffff;
  --surface2: #f1f5f9;
  --border:   rgba(15, 23, 42, 0.08);
  --accent:   #6366f1;
  --accent2:  #8b5cf6;
  --accent3:  #06b6d4;
  --text:     #0f172a;
  --muted:    #64748b;
  --radius:   14px;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ─── NAV (matches main page) ─── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(135deg, #0f172a 30%, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-sign-in {
  padding: 9px 20px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); cursor: pointer;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}
.nav-sign-in:hover { color: var(--text); border-color: rgba(15, 23, 42, 0.2); }

.nav-cta {
  padding: 9px 20px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: opacity .2s, transform .15s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* ─── BURGER ─── */
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 101;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 65px; left: 0; right: 0; z-index: 98;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-size: 1rem; font-weight: 500; color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .m-cta {
  margin-top: 8px;
  padding: 13px 20px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: .95rem; font-weight: 600;
  text-align: center; cursor: pointer; border: none;
  font-family: 'Inter', sans-serif;
  transition: opacity .2s;
}
.mobile-menu .m-cta:hover { opacity: .88; }

@media (max-width: 700px) {
  nav.site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .burger { display: flex; }
  .container.container-wide { padding-left: 20px; padding-right: 20px; }
}

/* ─── CONTENT ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 48px 32px; }
/* Full-width variant so content aligns with the full-width nav (~1cm side padding) */
.container.container-wide { max-width: none; padding-left: 40px; padding-right: 40px; }

h1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; color: var(--text); }
h2 { font-size: 1.4rem; margin: 32px 0 12px; letter-spacing: -0.01em; color: var(--text); }
h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text); }
p  { margin-bottom: 12px; color: var(--text); }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; max-width: 720px; }

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

/* ─── COUNTRY FLAGS (scale with surrounding text) ─── */
.flag {
  height: 0.85em; width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  vertical-align: -0.12em;
  margin-right: 0.5em;
  flex-shrink: 0;
}
.flag-generic {
  color: var(--muted);
  box-shadow: none; border-radius: 0;
  height: 0.95em;
}

/* ─── HERO (marketplace home) ─── */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 44px 48px;
  margin-bottom: 8px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(99, 102, 241, 0.16), transparent 52%),
    radial-gradient(120% 130% at 100% 0%, rgba(6, 182, 212, 0.13), transparent 48%),
    radial-gradient(150% 150% at 100% 100%, rgba(139, 92, 246, 0.14), transparent 55%),
    var(--surface);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; white-space: normal;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent2);
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.18);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15; letter-spacing: -0.035em; margin-bottom: 16px;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #0f172a 35%, #4f46e5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  font-size: 1.1rem; color: var(--muted);
  max-width: 560px; margin-bottom: 30px;
}

/* ─── HERO SEARCH ─── */
.search { position: relative; max-width: 540px; margin-bottom: 34px; }
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search-input {
  width: 100%; padding: 14px 16px 14px 46px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; max-height: 360px; overflow-y: auto;
}
.search-result { display: block; padding: 10px 12px; border-radius: 9px; }
.search-result:hover, .search-result.active { background: var(--surface2); }
.search-result strong { display: block; color: var(--text); font-size: 0.92rem; font-weight: 600; }
.search-result span { font-size: 0.78rem; color: var(--muted); text-transform: capitalize; }
.search-empty { padding: 14px 12px; color: var(--muted); font-size: 0.88rem; }

/* Search page (/marketplace/search): filter bar, result count, Load More. */
.search-filters .search { max-width: 640px; margin-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-count { color: var(--muted); font-size: 0.9rem; margin: 22px 0 16px; }
.search-empty-msg { color: var(--muted); margin: 28px 0; }
.load-more-wrap { display: flex; justify-content: center; margin: 32px 0 8px; }
.load-more { min-width: 200px; justify-content: center; }

/* FAQ accordion (marketplace home) — native <details>, no JS. */
.faq { max-width: 760px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); margin-bottom: 10px; padding: 0 18px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 0 16px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.faq-answer p { margin: 0; }

/* ─── HERO STATS ─── */
.stat-row { display: flex; gap: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 1.95rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label {
  font-size: 0.78rem; color: var(--muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ─── SECTION HEADINGS (home) ─── */
.section-head { margin: 42px 0 18px; }
.section-head h1, .section-head h2 { margin: 0; position: relative; padding-left: 14px; }
.section-head h1::before, .section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent2));
}

/* ─── PRACTICE-AREA CARDS ─── */
.practice-card { display: flex; align-items: center; gap: 14px; }
.practice-mono {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.30);
}
.practice-card .practice-body { min-width: 0; }
.practice-card h3 { margin: 0; text-transform: capitalize; }
.practice-card p { margin: 0; font-size: 0.85rem; }

@media (max-width: 700px) {
  .hero { padding: 36px 24px 32px; border-radius: 20px; }
  .hero-sub { font-size: 1rem; }
  .eyebrow { letter-spacing: 0.04em; }
  .stat-row { gap: 22px 32px; }
}

/* ─── MARKETPLACE LAYOUT (main + jurisdiction panel) ─── */
.marketplace-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.marketplace-layout .marketplace-main { grid-column: 1; grid-row: 1; min-width: 0; }
.marketplace-layout .jurisdiction-panel { grid-column: 2; grid-row: 1; }
.marketplace-main h2:first-child { margin-top: 0; }

.jurisdiction-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.jurisdiction-panel h2 { margin: 0 0 10px; font-size: 1.05rem; }

.jur-list { list-style: none; }
.jur-item { border-bottom: 1px solid var(--border); }
.jur-item:last-child { border-bottom: none; }
.jur-row { display: flex; align-items: stretch; }
.jur-link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; color: var(--text); font-weight: 500; font-size: 0.92rem;
}
.jur-link:hover { color: var(--accent); }
.jur-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jur-count { color: var(--muted); font-size: 0.78rem; font-weight: 500; flex-shrink: 0; }

.jur-toggle {
  background: none; border: none; cursor: pointer; padding: 0 6px;
  color: var(--muted); display: flex; align-items: center;
  transition: color 0.2s;
}
.jur-toggle:hover { color: var(--accent); }
.jur-toggle svg { transition: transform 0.2s; }
.jur-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

.jur-cats { list-style: none; display: none; padding: 0 0 8px 14px; }
.jur-cats.open { display: block; }
.jur-cats li a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 2px; font-size: 0.85rem; color: var(--muted);
}
.jur-cats li a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .marketplace-layout { grid-template-columns: 1fr; gap: 24px; }
  .marketplace-layout .marketplace-main,
  .marketplace-layout .jurisdiction-panel { grid-column: 1; grid-row: auto; }
  .jurisdiction-panel { position: static; max-height: none; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card h3 a { color: var(--text); }
.card .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Unified skill card (macro _skill_card.html) — identical on every page. */
.skill-card { display: flex; flex-direction: column; height: 100%; position: relative; }
/* The title's link is "stretched" to cover the whole card, so a click anywhere
   opens the skill — except on elements raised above it (the author link). */
.skill-card-link { color: var(--text); }
.skill-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.skill-card-link:hover { color: var(--accent); }
.skill-card-top {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 10px;
}
.skill-card-top .flag { width: 18px; height: 13px; }
.skill-card-country { font-weight: 600; color: var(--text); }
.skill-card-sep { opacity: 0.5; }
.skill-card-practice { text-transform: capitalize; }
.skill-card h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.skill-card-excerpt {
  font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5; flex: 1 1 auto;
}
.skill-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.skill-card-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Author link sits above the stretched title link so it's independently
   clickable (-> the author page) rather than opening the skill. */
a.skill-card-author { position: relative; z-index: 2; text-decoration: none; color: inherit; }
a.skill-card-author:hover .skill-card-author-name { color: var(--accent); text-decoration: underline; }
.skill-card-avatar {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--surface2);
}
.skill-card-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.skill-card-author-name {
  font-size: 0.8rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.skill-card-date { font-size: 0.75rem; color: var(--muted); flex-shrink: 0; }

/* Skill page tabs (Overview / Content) + Download button on the right. */
.tabs-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; border-bottom: 1px solid var(--border); margin: 28px 0 20px;
}
.tabs { display: flex; gap: 4px; }
.tabs-download { margin-bottom: 8px; flex-shrink: 0; }
.tab {
  appearance: none; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--muted);
  padding: 10px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-badge {
  display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--surface2); color: var(--muted);
  font-size: 0.72rem; line-height: 18px; text-align: center;
}
.tab-panel[hidden] { display: none; }
.content-intro { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

/* File tree in the Content tab. */
.filetree-group { margin-bottom: 18px; }
.filetree-dir {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.filetree-dir::before { content: "📁"; }
.filetree { list-style: none; margin: 0; padding: 0 0 0 6px; }
.filetree li { margin: 0; }
.filetree a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 6px; color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.filetree a:hover { border-color: rgba(99,102,241,0.5); background: var(--surface2); }
.filetree-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.filetree-name::before { content: "📄"; }
.filetree-size { color: var(--muted); font-size: 0.78rem; flex-shrink: 0; }
.resource-text {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; overflow: auto; font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap;
}

/* Practice page: per-jurisdiction group headings. */
.cap { text-transform: capitalize; }
.practice-jur-head { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.practice-jur-head a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.practice-jur-count {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: var(--surface2); padding: 2px 10px; border-radius: 999px;
}

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--surface2); color: var(--muted);
  font-size: 0.75rem; margin-right: 6px; margin-top: 6px;
}

.skill-meta {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  padding: 16px 20px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.88rem; margin-bottom: 32px;
}
.skill-meta b { color: var(--text); font-weight: 600; }
.skill-meta span { color: var(--muted); }

.body-md {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 32px; margin: 16px 0 32px;
  /* Match the full width of the .skill-meta block above; break long unbroken
     tokens (URLs, JSON blobs) so prose never spills past the card edge. */
  overflow-wrap: break-word;
}
.body-md h1 { font-size: 1.6rem; }
.body-md h2 { font-size: 1.25rem; }
.body-md h3 { font-size: 1.05rem; }
.body-md p, .body-md li { color: var(--text); }
.body-md ul, .body-md ol { margin: 8px 0 12px 24px; }
.body-md code {
  background: var(--bg2); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
  color: var(--text);
  overflow-wrap: anywhere; word-break: break-word;
}
.body-md pre code { overflow-wrap: normal; word-break: normal; }
.body-md pre {
  background: var(--bg2); padding: 14px 16px; border-radius: 8px;
  overflow-x: auto; margin: 12px 0;
}
.body-md pre code { background: transparent; padding: 0; }
.body-md blockquote {
  border-left: 3px solid var(--accent); padding-left: 14px;
  color: var(--muted); margin: 12px 0;
}
.body-md table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.body-md table th,
.body-md table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.body-md table th {
  background: var(--bg2);
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.body-md table tr:last-child td { border-bottom: none; }
.body-md table tr:hover td { background: rgba(99, 102, 241, 0.04); }
.body-md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.body-md a:hover { color: var(--accent2); }
.body-md hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.body-md img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: 0.92rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--surface2); border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; color: #fff;
}
.btn.primary:hover { opacity: 0.92; color: #fff; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px; text-align: center; color: var(--muted); font-size: 0.85rem;
}
footer a { color: var(--accent); }
footer a:hover { color: var(--accent2); }

.empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; color: var(--muted);
}

code {
  background: var(--bg2); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
  color: var(--text);
}
