/* RepoCard web UI. Self-hosted fonts, no third-party requests. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('/fonts/inter-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #07080c;
  --bg-2: #0b0d13;
  --surface: #10131b;
  --surface-2: #161a24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef4;
  --muted: #959bad;
  --faint: #6b7184;
  --accent: #8ea6ff;
  --accent-2: #c48cff;
  --accent-3: #ff8cc6;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --gradient: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --bg-2: #f4f5f9;
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);
    --text: #0d1020;
    --muted: #586074;
    --faint: #7d8497;
    --accent: #4f6bff;
    --accent-2: #9b4dff;
    --accent-3: #e8459a;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 60px -24px rgba(15, 23, 42, 0.18);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ambient background */
.glow {
  position: fixed; inset: -20vh -10vw auto; height: 90vh; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 10%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%),
    radial-gradient(30% 40% at 55% 60%, color-mix(in srgb, var(--accent-3) 10%, transparent), transparent 70%);
  filter: blur(10px);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--gradient); display: grid; place-items: center; box-shadow: 0 6px 20px -6px var(--accent-2); }
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); background: var(--surface-2); }
.nav-links .gh { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); }
.nav-links .gh svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .nav-links a:not(.gh):not(.keep) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--text) 88%, var(--accent)); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: 13px; font-weight: 500; }
.eyebrow .dot { width: 18px; height: 18px; border-radius: 999px; background: var(--gradient); display: grid; place-items: center; }
.eyebrow .dot svg { width: 11px; height: 11px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; margin: 22px auto 0; max-width: 15ch; }
.hero h1 em, h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero p.lede { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 20px auto 0; }

/* Repo input */
.repo-form { margin: 36px auto 0; max-width: 720px; }
.input-shell {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.input-shell::before { content: ''; position: absolute; inset: -1px; border-radius: 19px; padding: 1px; background: var(--gradient); opacity: 0; transition: opacity .2s; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.input-shell:focus-within::before { opacity: 1; }
.input-shell > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.input-shell input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 17px; }
.input-shell input::placeholder { color: var(--faint); }
.input-shell .btn { height: 48px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
@media (max-width: 560px) { .input-shell { flex-wrap: wrap; padding: 8px; } .input-shell > svg { display: none; } .input-shell input { padding-left: 10px; } .input-shell .btn { width: 100%; } }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; color: var(--faint); font-size: 13px; align-items: center; }
.chip { border: 1px solid var(--border); background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
.form-error { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 22px; }

/* Studio (results) */
.studio { margin-block: 24px 40px; scroll-margin-top: 84px; }
.studio[hidden] { display: none; }
.studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.studio-head h2 { font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.studio-head h2 a { text-decoration: none; }
.studio-head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.studio-head p { color: var(--muted); margin: 6px 0 0; max-width: 70ch; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); vertical-align: middle; }
.badge.ai { color: var(--text); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); }
.badge svg { width: 12px; height: 12px; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .studio-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.preview-frame { padding: 14px; }
.preview { position: relative; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, filter .25s ease; }
.preview.loading img { opacity: .45; filter: blur(2px) saturate(.8); }
.preview .spinner { position: absolute; inset: 0; display: none; place-items: center; }
.preview.loading .spinner { display: grid; }
.spinner span { width: 34px; height: 34px; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--text) 18%, transparent); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(100deg, var(--bg-2) 30%, var(--surface-2) 50%, var(--bg-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.actions .spacer { flex: 1; }

.concepts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 720px) { .concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.concept { position: relative; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; overflow: hidden; text-align: left; transition: border-color .15s, transform .15s; }
.concept:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.concept[aria-pressed='true'] { border-color: transparent; box-shadow: 0 0 0 2px var(--accent); }
.concept .thumb { aspect-ratio: 2 / 1; background: var(--bg-2); }
.concept .thumb img { width: 100%; height: 100%; object-fit: cover; }
.concept .meta { padding: 9px 11px 10px; font-size: 12.5px; }
.concept .meta strong { display: block; font-weight: 600; text-transform: capitalize; }
.concept .meta span { color: var(--faint); text-transform: capitalize; }

.side { display: flex; flex-direction: column; gap: 16px; }
.side .panel { padding: 18px; }
.side h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; justify-content: space-between; }
.side p.rationale { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.field { display: grid; gap: 6px; margin-top: 14px; }
.field label, .field .label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field select, .field input[type='text'] { height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-2); padding: 0 10px; outline: 0; font-size: 14px; }
.field select:focus, .field input[type='text']:focus { border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.swatch { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border-strong); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.swatch::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 38%; height: 38%; border-radius: 999px; background: var(--sw-accent); }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.toggles { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.color-input { display: flex; align-items: center; gap: 8px; }
.color-input input[type='color'] { width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: none; cursor: pointer; }

.steps { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.steps li b { color: var(--text); font-weight: 600; }
.note { font-size: 13px; color: var(--faint); margin-top: 12px; }
.note a { color: var(--muted); }

/* Sections */
section.block { padding: 96px 0 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.center { text-align: center; margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; }
.feature .icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; }
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); aspect-ratio: 2 / 1; transition: transform .2s, border-color .2s; }
.gallery a:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.card { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card h3 .tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .btn { align-self: flex-start; margin-top: 6px; }

pre.code { position: relative; margin: 0; padding: 14px 16px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); overflow-x: auto; font: 13px/1.6 var(--mono); color: var(--text); }
pre.code .c { color: var(--faint); }
pre.code .k { color: var(--accent); }
pre.code .s { color: var(--ok); }
.copy-btn { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
pre.code:hover .copy-btn, .copy-btn:focus { opacity: 1; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; width: fit-content; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

.cta { margin-top: 96px; padding: 56px 32px; text-align: center; border-radius: 22px; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%); pointer-events: none; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; position: relative; }
.cta p { color: var(--muted); position: relative; margin: 12px auto 24px; max-width: 520px; }
.cta .btn { position: relative; }

footer { margin-top: 96px; border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Grid and flex children may shrink below their content (long code lines scroll inside <pre>). */
.features > *, .split > *, .gallery > *, .studio-grid > *, .concepts > *, .repo-grid > *, .docs > *, .card, .panel { min-width: 0; }

/* Utilities (the CSP disallows inline style attributes) */
.hero-tight { padding-bottom: 8px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.glow-dim { opacity: .5; }
.mt-28 { margin-top: 28px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: all .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Bulk */
.bulk-controls { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: center; margin-top: 16px; }
.segmented { display: inline-flex; padding: 3px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 7px; cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 28px 0 16px; }
.bulk-bar .summary { color: var(--muted); font-size: 14px; }
.bulk-bar .summary b { color: var(--text); }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; width: 220px; }
.progress span { display: block; height: 100%; width: 0; background: var(--gradient); transition: width .2s; }
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.repo-card { overflow: hidden; display: flex; flex-direction: column; }
.repo-card .thumb { aspect-ratio: 2 / 1; background: var(--bg-2); position: relative; }
.repo-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.repo-card .thumb .err { position: absolute; inset: 0; display: grid; place-items: center; color: var(--danger); font-size: 13px; }
.repo-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.repo-card .title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.repo-card .title a { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-card .title .stars { color: var(--faint); font-size: 13px; white-space: nowrap; }
.repo-card .desc { color: var(--muted); font-size: 13px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.repo-card .btns { display: flex; gap: 8px; margin-top: auto; }
.repo-card .btns .btn { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 48px 0 0; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs aside { display: none; } }
.docs aside { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.docs aside a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.docs aside a:hover { color: var(--text); background: var(--surface); }
.docs aside .group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.prose { max-width: 780px; min-width: 0; }
.prose p code, .prose li code { overflow-wrap: anywhere; }
.prose h1 { font-size: 44px; font-weight: 800; }
.prose h2 { font-size: 28px; font-weight: 800; margin: 56px 0 12px; padding-top: 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); }
.prose p strong, .prose li strong { color: var(--text); }
.prose a { color: var(--text); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.prose pre.code { margin: 14px 0; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); background: var(--bg-2); }
td { color: var(--muted); }
td code { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.callout { border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); border-radius: 12px; padding: 14px 16px; margin: 16px 0; color: var(--muted); font-size: 15px; }
.callout strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
