@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  color-scheme: light;
  --paper: #eaf0ff;
  --panel: #ffffff;
  --panel-2: #f2f6ff;
  --ink: #0d1a3a;
  --ink-soft: #57628a;
  --line: #0d1a3a;
  --grape: #3358f4;
  --acid: #7dd3fc;
  --sun: #ffb84d;
  --punch: #ff6f91;
  --sky: #38bdf8;
  --mint: #2dd4bf;
  --danger: #ef4444;
  --on-dark: #f5f8ff;
  --on-light: #0d1a3a;
  --dot: rgba(13, 26, 58, .13);
  --radius: 16px;
  --radius-sm: 12px;
  --bw: 2px;
  --shadow-sm: 3px 3px 0 var(--line);
  --shadow: 5px 5px 0 var(--line);
  --shadow-lg: 9px 9px 0 var(--line);
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0a0f22;
    --panel: #121b38;
    --panel-2: #0e152c;
    --ink: #eef3ff;
    --ink-soft: #9aabd6;
    --line: #eef3ff;
    --on-dark: #0a0f22;
    --on-light: #0a0f22;
    --dot: rgba(238, 243, 255, .12);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a0f22;
  --panel: #121b38;
  --panel-2: #0e152c;
  --ink: #eef3ff;
  --ink-soft: #9aabd6;
  --line: #eef3ff;
  --on-dark: #0a0f22;
  --on-light: #0a0f22;
  --dot: rgba(238, 243, 255, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
svg { flex: none; }
::selection { background: var(--acid); color: #0d1a3a; }

h1, h2, h3, .page-title, .brand, .stat strong {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}

.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 26px; height: 26px; }

.shell { width: min(1180px, calc(100% - 34px)); margin-inline: auto; }
.main { min-height: calc(100vh - 210px); padding: 38px 0 84px; }
.muted, .section-subtitle { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--panel);
  border-bottom: var(--bw) solid var(--line);
}
.nav-inner { min-height: 68px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
  background: var(--acid); color: #0d1a3a; box-shadow: var(--shadow-sm);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: var(--bw) solid transparent; border-radius: var(--radius-sm);
  background: transparent; font-weight: 600; font-size: 14px; text-align: left; cursor: pointer;
}
.nav-link:hover { border-color: var(--line); background: var(--panel-2); }
.nav-link[aria-current="page"] { border-color: var(--line); background: var(--sun); color: #0d1a3a; box-shadow: var(--shadow-sm); }
.nav-menu-slot { display: contents; }
.menu-only { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink);
  padding: 10px 16px; cursor: pointer; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.btn:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.btn-primary { background: var(--grape); color: var(--on-dark); }
.btn-accent { background: var(--acid); color: #0d1a3a; }
.btn-danger { background: var(--punch); color: #2a0f18; }
.btn-ghost { box-shadow: none; border-color: transparent; background: transparent; }
.btn-ghost:hover { border-color: var(--line); background: var(--panel-2); transform: none; box-shadow: var(--shadow-sm); }
.btn-sm { padding: 7px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.nav-toggle { display: none; }

.card {
  background: var(--panel);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card-hover { transition: transform .14s ease, box-shadow .14s ease; }
.card-hover:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.card-flat { box-shadow: none; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.section h2, .page-title { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 26px; }
.page-kicker {
  display: inline-block; margin-bottom: 9px; padding: 3px 9px;
  border: var(--bw) solid var(--line); border-radius: 999px; background: var(--sky); color: #0d1a3a;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: var(--bw) solid var(--line); border-radius: 999px; background: var(--sun); color: #0d1a3a;
  padding: 7px 14px; box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}

.hero { padding: 46px 0 34px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 46px; }
.hero h1 { font-size: clamp(42px, 6.6vw, 74px); line-height: .96; letter-spacing: -.035em; margin: 22px 0 20px; }
.mark { position: relative; z-index: 0; white-space: nowrap; color: #0d1a3a; }
.mark::after {
  content: ""; position: absolute; inset: .02em -.12em .06em; z-index: -1;
  background: var(--acid); border: var(--bw) solid #0d1a3a; border-radius: 9px; transform: rotate(-1.4deg);
}
.hero .lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-soft); max-width: 54ch; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }

.hero-card { border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.1deg); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-bottom: var(--bw) solid var(--line); background: var(--sun); color: #0d1a3a; }
.code-head span { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0d1a3a; background: var(--panel); }
.dots i:nth-child(1) { background: var(--punch); }
.dots i:nth-child(2) { background: var(--acid); }
.dots i:nth-child(3) { background: var(--sky); }
.code-window { min-height: 300px; padding: 22px; font: 13px/1.85 var(--font-mono); white-space: pre-wrap; color: var(--ink); }
.code-window .k { color: var(--grape); font-weight: 600; }
.code-window .s { color: #0f9d78; }
.code-window .c { color: var(--ink-soft); }
:root[data-theme="dark"] .code-window .k, :root[data-theme="dark"] .code-window .s { color: var(--acid); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .code-window .k { color: var(--sky); }
  :root:not([data-theme="light"]) .code-window .s { color: var(--acid); }
}

.ticker { border-block: var(--bw) solid var(--line); background: var(--grape); color: var(--on-dark); overflow: hidden; padding: 11px 0; }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: ticker 26s linear infinite; }
.ticker span { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px;
  border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
  background: var(--sky); color: #0d1a3a; box-shadow: var(--shadow-sm);
}
.card:nth-child(2) .feature-icon { background: var(--punch); }
.card:nth-child(3) .feature-icon { background: var(--acid); }

.stat-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.stat-band div { padding: 24px; border-right: var(--bw) solid var(--line); }
.stat-band div:last-child { border-right: 0; }
.stat-band strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); line-height: 1; }
.stat-band span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--acid); color: #0d1a3a;
  box-shadow: var(--shadow-lg); padding: 34px;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #3c3a2a; max-width: 46ch; }

.paste-card { display: flex; flex-direction: column; min-height: 186px; }
.paste-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; font-size: 13px; color: var(--ink-soft); }
.paste-title { font-size: 19px; line-height: 1.25; margin: 0 0 9px; overflow-wrap: anywhere; }
.paste-preview { color: var(--ink-soft); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.paste-foot { margin-top: auto; padding-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.paste-foot span { display: inline-flex; align-items: center; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--panel-2);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--ink);
}

.form-shell { max-width: 860px; margin-inline: auto; }
.auth-shell { max-width: 460px; margin: 34px auto 0; }
.form-card { padding: clamp(22px, 4vw, 34px); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px;
  border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--ink); outline: none;
  transition: box-shadow .12s ease, background .12s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-soft); }
.input:focus, .textarea:focus, .select:focus { background: var(--panel); box-shadow: var(--shadow-sm); }
.select { cursor: pointer; }
.textarea { min-height: 340px; resize: vertical; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; tab-size: 2; }
.textarea-sm { min-height: 120px; font-family: var(--font-body); font-size: 15px; }
.input[type="file"] { padding: 9px 12px; font-size: 13px; }
.input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 11px; border: 2px solid var(--line); border-radius: 9px; background: var(--sun); color: #0d1a3a; font-weight: 700; cursor: pointer; }
.help { font-size: 12px; color: var(--ink-soft); }
.checkbox { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.checkbox input { width: 19px; height: 19px; accent-color: var(--grape); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--line); }

.notice { padding: 12px 15px; border: var(--bw) solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); margin-bottom: 18px; font-weight: 500; }
.notice-error { background: var(--punch); color: #2a0f18; }
.notice-success { background: var(--mint); color: #0d2b1c; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { padding: 18px; border: var(--bw) solid var(--line); border-radius: var(--radius-sm); background: var(--panel); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 30px; line-height: 1.1; }
.stat span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); }

.tabs { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 9px 15px; border: var(--bw) solid var(--line); border-radius: 999px;
  background: var(--panel); cursor: pointer; font-weight: 700; font-size: 13px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tab:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.tab.active { background: var(--grape); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.table-wrap { overflow-x: auto; border: var(--bw) solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: middle; }
th { background: var(--sun); color: #0d1a3a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.avatar {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; overflow: hidden;
  border: var(--bw) solid var(--line); border-radius: var(--radius-sm); background: var(--sun); color: #0d1a3a;
  box-shadow: var(--shadow-sm); object-fit: cover;
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
}
.avatar-lg { width: 92px; height: 92px; border-radius: var(--radius); font-size: 36px; box-shadow: var(--shadow); }
.avatar-sm { width: 26px; height: 26px; border-radius: 9px; border-width: 2px; font-size: 12px; box-shadow: none; }
.user-line { display: flex; align-items: center; gap: 13px; }
.user-card-top { display: flex; align-items: center; gap: 14px; }
.user-card-top h3 { margin: 0; font-size: 17px; }

.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--ink);
  box-shadow: 2px 2px 0 var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.badge-icon { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.badge[data-badge="admin"] { background: var(--punch); color: #2a0f18; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge[data-badge="verified"] { background: var(--sky); color: #0c2530; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge[data-badge="legend"] { background: var(--sun); color: #2e2306; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge[data-badge="expert"] { background: var(--grape); color: #f5f8ff; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge[data-badge="pro"] { background: var(--acid); color: #23290a; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge[data-badge="popular"] { background: #ffb066; color: #34190a; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge[data-badge="prolific"] { background: var(--mint); color: #0d2b1c; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge[data-badge="github_user"] { background: #f5f8ff; color: #0d1a3a; border-color: #0d1a3a; box-shadow: 2px 2px 0 #0d1a3a; }
.badge-check { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 2px solid var(--line); border-radius: 50%; background: var(--sky); color: #0c2530; vertical-align: middle; }
.badge-check .badge-icon { width: 12px; height: 12px; }

.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px; }
.profile-main { display: flex; align-items: center; gap: 20px; }
.profile-name { margin: 0; font-size: clamp(24px, 4vw, 32px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.profile-stats strong { color: var(--ink); font-weight: 700; }

.paste-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.paste-main { min-width: 0; padding: 0; overflow: hidden; }
.paste-header { padding: 24px; border-bottom: var(--bw) solid var(--line); background: var(--panel-2); }
.paste-header h1 { margin: 6px 0 14px; font-size: clamp(25px, 3.6vw, 36px); line-height: 1.12; overflow-wrap: anywhere; }
.code-block {
  margin: 0; max-height: 70vh; overflow: auto; padding: 24px;
  background: var(--panel); color: var(--ink);
  font: 13.5px/1.75 var(--font-mono); white-space: pre; tab-size: 2;
}
.side-stack { display: grid; gap: 16px; }
.side-card { padding: 20px; }
.side-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.comment { padding: 16px 0; border-bottom: 2px dashed var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; font-size: 13px; }
.comment-body { color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.runner-output {
  min-height: 96px; max-height: 260px; overflow: auto; margin: 0; padding: 13px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2);
  font: 12px/1.65 var(--font-mono); white-space: pre-wrap; color: var(--ink);
}

.search-bar { display: flex; gap: 10px; width: min(560px, 100%); }
.search-bar .input { flex: 1; }
.search-panel { padding: 20px; margin-bottom: 24px; }
.search-form { display: grid; gap: 14px; }
.search-row { display: flex; gap: 10px; }
.search-row .input { flex: 1; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.filters .field { margin: 0; }
.search-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; color: var(--ink-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.chip:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--line); }
.chip.active { background: var(--grape); color: var(--on-dark); box-shadow: 2px 2px 0 var(--line); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.pagination span { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 46px 22px;
  border: var(--bw) dashed var(--line); border-radius: var(--radius); background: var(--panel-2); color: var(--ink-soft);
}
.empty strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); margin-bottom: 6px; }

.toast-wrap { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(340px, calc(100% - 40px)); }
.toast {
  padding: 13px 15px; border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); box-shadow: var(--shadow); font-weight: 600;
  animation: toast-in .16s ease-out;
}
.toast.error { background: var(--punch); color: #2a0f18; }
.toast.success { background: var(--mint); color: #0d2b1c; }
@keyframes toast-in { from { opacity: 0; transform: translate(6px, 6px); } }

.footer { border-top: var(--bw) solid var(--line); background: var(--panel); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 0; font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.skeleton { position: relative; overflow: hidden; min-height: 140px; background: var(--panel-2); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--dot), transparent); animation: shimmer 1.15s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Infinite scroll sentinel + spinner */
.load-sentinel { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--dot); border-top-color: var(--grape); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Activity timeline (profile page) */
.activity-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.activity-item { display: flex; gap: 12px; align-items: flex-start; }
.activity-dot { flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--radius-sm); border: var(--bw) solid var(--line); background: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.activity-dot .icon { width: 15px; height: 15px; }

/* Paste README block */
.readme-block { border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 18px 20px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.65; }
.readme-block h1, .readme-block h2, .readme-block h3 { margin: 0 0 10px; }
.readme-block p { margin: 0 0 12px; }
.readme-block ul, .readme-block ol { margin: 0 0 12px; padding-left: 22px; }
.readme-block pre { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; margin: 0 0 12px; }
.readme-block code { font-family: var(--font-mono); font-size: 13px; }
.readme-block blockquote { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--grape); color: var(--ink-soft); }
.readme-block a { color: var(--grape); text-decoration: underline; }
.readme-block hr { border: none; border-top: 2px solid var(--dot); margin: 16px 0; }

/* @mentions inside thread comments */
.mention { font-weight: 700; color: var(--grape); text-decoration: none; }
.mention:hover { text-decoration: underline; }

/* Badge progress bar */
.progress-track { height: 10px; border-radius: 999px; background: var(--panel-2); border: 2px solid var(--line); overflow: hidden; }
.progress-fill { height: 100%; background: var(--grape); border-radius: 999px; transition: width .4s ease; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 34px; }
  .hero-card { transform: none; max-width: 620px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paste-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 6px;
    margin: 0; padding: 14px 17px; background: var(--panel); border-bottom: var(--bw) solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links .menu-only { display: inline-flex; }
  .btn.nav-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1180px); }
  .main { padding: 26px 0 60px; }
  .nav-inner { min-height: 60px; gap: 10px; }
  .nav-actions .btn:not(.mobile-essential) { display: none; }
  .grid-2, .grid-3, .form-row, .stats, .filters, .side-stack { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .stat-band div { border-right: 0; border-bottom: var(--bw) solid var(--line); }
  .stat-band div:last-child { border-bottom: 0; }
  .hero h1 { font-size: 43px; }
  .code-window { min-height: 220px; font-size: 12px; padding: 17px; }
  .section-head, .page-head, .profile-head { flex-direction: column; align-items: flex-start; }
  .profile-main { align-items: flex-start; flex-direction: column; }
  .search-row { flex-direction: column; }
  .form-actions .btn { flex: 1; }
  .cta-band { padding: 26px; }
}
