/* SPDX-License-Identifier: MIT */

:root {
  --bg-base:      #050714;
  --bg-elev:      #0c1024;
  --bg-card:      #11152e;
  --border:       #1f2547;
  --border-strong:#2d3563;
  --fg:           #e9ecff;
  --fg-muted:     #8e95c5;
  --fg-dim:       #5b6193;
  --accent:       #38bdf8;
  --accent-2:     #7dd3fc;
  --accent-deep:  #2563eb;
  --usdfc-tone:   #34d399;
  --ok:           #4ade80;
  --warn:         #fbbf24;
  --err:          #f87171;
  --grad-fil:     linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --grad-usdfc:   linear-gradient(135deg, #34d399 0%, #059669 100%);
  --grad-hero:    linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #6366f1 100%);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-base); color: var(--fg);
  font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px, rgba(56,189,248,.15), transparent 60%),
    radial-gradient(ellipse 800px 400px at 80% 30%, rgba(99,102,241,.10), transparent 60%),
    var(--bg-base);
}
code, .mono { font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; }

/* ─── Nav ─────────────────────────────────────────────────────── */
.nav {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--fg-muted); text-decoration: none; transition: color 120ms ease; }
.nav-links a:hover { color: var(--fg); }

main { max-width: 1080px; margin: 0 auto; padding: 16px 24px 64px; }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 40px 0 28px; }
.hero-tags {
  display: inline-flex; gap: 8px; margin-bottom: 22px;
  flex-wrap: wrap; justify-content: center;
}
.chain-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 8px;
  background: rgba(0, 144, 255, .08);
  border: 1px solid rgba(0, 144, 255, .22);
  color: #7dd3fc;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.chain-tag svg { flex-shrink: 0; }
.chain-tag.soon {
  padding: 6px 12px;
  background: rgba(251, 191, 36, .07);
  border-color: rgba(251, 191, 36, .25);
  color: #fcd34d;
}
.chain-tag.soon .soon-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, .6);
  animation: soon-pulse 2.4s ease-in-out infinite;
}
@keyframes soon-pulse {
  0%, 100% { opacity: 0.4 } 50% { opacity: 1 }
}
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 16px; }
.hero h1 .grad {
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p { max-width: 560px; margin: 0 auto; color: var(--fg-muted); font-size: 17px; line-height: 1.55; }

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 200px at 0% 0%, rgba(56,189,248,.05), transparent 50%);
}
.card > * { position: relative; }
.card-title {
  font-size: 13px; font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 16px;
}

/* ─── Two-panel grid ──────────────────────────────────────────── */
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .grid-two { grid-template-columns: 1fr } }

.asset-card .card-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 6px;
}
.asset-card .asset-mark {
  width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0;
  align-self: center;
}
.asset-card .asset-mark.fil   { background: var(--grad-fil); box-shadow: 0 0 12px rgba(56,189,248,.45); }
.asset-card .asset-mark.usdfc { background: var(--grad-usdfc); box-shadow: 0 0 12px rgba(52,211,153,.45); }
.asset-card h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.asset-card .asset-amount { margin-left: auto; color: var(--fg-muted); font-size: 13px; }
.asset-card .asset-amount strong { color: var(--fg); font-family: ui-monospace, monospace; font-size: 16px; }
.asset-card .card-help { margin: 0 0 16px; color: var(--fg-muted); font-size: 13px; line-height: 1.55; }
.asset-card .card-help code { background: rgba(255,255,255,.04); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; color: var(--accent-2); }
/* Stretch both panels to the same height so buttons line up */
.grid-two .asset-card { display: flex; flex-direction: column; }
.grid-two .asset-card form { margin-top: auto; }

.form-stack { display: flex; flex-direction: column; gap: 10px; }
label.fieldlabel { font-size: 13px; color: var(--fg-muted); }
.fieldhint { margin: -2px 0 0; color: var(--fg-dim); font-size: 12px; line-height: 1.5; }
.fieldhint code { background: rgba(255,255,255,.04); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
input[type="text"] {
  width: 100%; padding: 14px 16px; font: inherit;
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: 0.01em;
  background: rgba(0,0,0,.25); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: 12px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input[type="text"]::placeholder { color: var(--fg-dim); }
input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.15); }

/* Single shared captcha section above the panels */
.captcha-section {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 200ms ease, background 200ms ease;
}
.captcha-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.captcha-label { color: var(--fg-muted); font-size: 13px; }
#captcha-mount { min-height: 65px; min-width: 300px; }
.captcha-section.solved {
  background: rgba(74,222,128,.05);
  border-color: rgba(74,222,128,.25);
}
.captcha-section.solved .captcha-label::before {
  content: '✓ '; color: var(--ok); margin-right: 4px; font-weight: 600;
}
.captcha-section.solved .captcha-label { color: var(--ok); }

button.primary {
  padding: 14px 16px; font: inherit; font-weight: 600; font-size: 15px;
  color: #fff; border: none; border-radius: 12px; cursor: pointer;
  transition: transform 100ms ease, box-shadow 200ms ease, opacity 200ms ease;
}
button.primary:hover:not(:disabled) { transform: translateY(-1px); }
button.primary:disabled { opacity: .55; cursor: not-allowed; }
.fil-btn   { background: var(--grad-fil);   box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.fil-btn:hover:not(:disabled)   { box-shadow: 0 6px 20px rgba(37,99,235,.5); }
.usdfc-btn { background: var(--grad-usdfc); box-shadow: 0 4px 14px rgba(5,150,105,.35); }
.usdfc-btn:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(5,150,105,.5); }

/* ─── Status strip ────────────────────────────────────────────── */
.status-strip {
  display: flex; align-items: center; gap: 24px;
  margin-top: 16px; padding: 18px 24px;
}
.status-stack { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.status-line { display: grid; grid-template-columns: 130px 100px 1fr; align-items: center; gap: 12px; }
.status-label { font-size: 13px; color: var(--fg-muted); }
.status-amount { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 600; color: var(--fg); text-align: right; }
.status-link { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; align-self: center; }
.status-link:hover { text-decoration: underline; }
.meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.meter > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  width: 0%; transition: width 600ms cubic-bezier(.2, .8, .2, 1);
}
.meter.warn > div { background: linear-gradient(90deg, var(--warn), #fb923c); }
.meter.err  > div { background: linear-gradient(90deg, var(--err),  #ec4899); }

/* ─── Recent drips feed ───────────────────────────────────────── */
.feed { margin-top: 16px; }
.feed table { width: 100%; border-collapse: collapse; font-size: 14px; }
.feed thead th {
  text-align: left; font-size: 12px; font-weight: 500;
  color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.feed tbody td {
  padding: 12px; border-bottom: 1px solid var(--border);
  font-family: ui-monospace, 'SF Mono', monospace; color: var(--fg); font-size: 13px;
  white-space: nowrap;
}
.feed tbody tr:hover td { background: rgba(255,255,255,.02); }
.feed tbody td.muted { color: var(--fg-muted); font-family: 'Inter var','Inter',sans-serif; }
.feed tbody td a { color: var(--accent); text-decoration: none; }
.feed tbody td a:hover { text-decoration: underline; }
.feed .empty { padding: 32px; text-align: center; color: var(--fg-muted); font-size: 14px; }
.feed .asset-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-family: 'Inter var','Inter',sans-serif; }
.feed .asset-tag.fil   { background: rgba(56,189,248,.14); color: var(--accent-2); }
.feed .asset-tag.usdfc { background: rgba(52,211,153,.14); color: var(--usdfc-tone); }

/* ─── Contact card ────────────────────────────────────────────── */
.contact-card { margin-top: 16px; }
.contact-text { color: var(--fg-muted); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr } }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.contact-item .slack-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.08));
}
.contact-meta { display: flex; flex-direction: column; gap: 2px; }
.contact-meta strong { font-weight: 600; color: var(--fg); font-size: 14px; }
.contact-meta span { color: var(--fg-muted); font-size: 12px; line-height: 1.45; }
.contact-meta code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  max-width: 1080px; margin: 32px auto 0;
  padding: 24px; color: var(--fg-muted); font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--fg-muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
@media (max-width: 600px) { .footer-meta { align-items: flex-start; text-align: left; } }
.footer-dispenser { font-family: ui-monospace, monospace; font-size: 12px; }

/* ─── Modal ───────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 7, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: fadein 180ms ease-out;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.modal-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 32px;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; color: var(--fg-muted);
  border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: 22px; line-height: 1;
  transition: color 120ms ease, border-color 120ms ease, opacity 120ms ease;
}
.modal-close:hover:not(:disabled) { color: var(--fg); border-color: var(--border-strong); }
.modal-close:disabled { opacity: .4; cursor: not-allowed; }
.modal-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(56,189,248,.10);
  border: 1px solid rgba(56,189,248,.25);
}
.modal-icon.success { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.3); }
.modal-icon.error   { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.3); }
.modal-icon svg { width: 28px; height: 28px; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(56,189,248,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.modal-title { margin: 0 0 8px; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.modal-text  { margin: 0 0 20px; text-align: center; color: var(--fg-muted); font-size: 14px; line-height: 1.5; }
.modal-details {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  margin: 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.modal-details dt { color: var(--fg-muted); }
.modal-details dd { margin: 0; color: var(--fg); word-break: break-all; }
.modal-details .mono { font-family: ui-monospace, monospace; font-size: 12px; }
.modal-details a { color: var(--accent); text-decoration: none; }
.modal-details a:hover { text-decoration: underline; }
.modal-details dd.ok  { color: var(--ok);  }
.modal-details dd.err { color: var(--err); }

/* ─── Status page ─────────────────────────────────────────────── */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.stat-box { padding: 18px 20px; background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%); border: 1px solid var(--border); border-radius: 14px; }
.stat-box .v { font-family: ui-monospace, monospace; font-size: 22px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.stat-box .l { font-size: 12px; color: var(--fg-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-box .v small { font-size: 13px; color: var(--fg-muted); margin-left: 4px; font-family: 'Inter var','Inter',sans-serif; font-weight: 500; }

/* ─── Address converter (tools card) ───────────────────────────── */
.tools-card { margin-top: 16px; }
.card-subtle { color: var(--fg-dim); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; }
.converter { display: flex; gap: 8px; }
.converter input { flex: 1; }
.converter button.ghost {
  padding: 14px 18px; font: inherit; font-weight: 600; font-size: 14px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: 12px;
  cursor: pointer; white-space: nowrap;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.converter button.ghost:hover:not(:disabled) {
  border-color: var(--accent); background: rgba(56,189,248,.06); color: var(--accent-2);
}
.converter-output {
  display: block;
  margin-top: 10px; min-height: 20px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 13px; color: var(--fg);
  word-break: break-all;
}
.converter-output .lbl { color: var(--fg-muted); margin-right: 8px; }
.converter-output .copy {
  margin-left: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgba(56,189,248,.12); color: var(--accent-2);
  font-size: 11px; cursor: pointer; border: none;
  font-family: 'Inter var','Inter',sans-serif; font-weight: 500;
}
.converter-output .err { color: var(--err); }
.tools-help { margin: 12px 0 0; color: var(--fg-dim); font-size: 12px; line-height: 1.55; }
.tools-help code { background: rgba(255,255,255,.04); padding: 1px 5px; border-radius: 4px; font-size: 11px; color: var(--fg-muted); }

/* ─── Input hints (small helper below input) ──────────────────── */
.input-hint {
  margin: 0; padding: 0;
  color: var(--fg-dim);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.input-hint code {
  background: rgba(255,255,255,.04);
  padding: 1px 5px; border-radius: 4px;
  font-size: 11px;
  color: var(--fg-muted);
}

/* ─── DataCap nav item: greyed out + hover tooltip ─────────────── */
.nav-soon {
  color: var(--fg-dim) !important;
  cursor: not-allowed;
  position: relative;
  pointer-events: auto;
  opacity: 0.6;
}
.nav-soon::before {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--accent-2);
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}
.nav-soon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Cleaner logo: just the Filecoin coin + wordmark ──────────── */
.logo .logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  position: relative;
}
.logo .logo-coin {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0090FF 60%, #0078d4 100%);
  position: relative;
  box-shadow: 0 0 8px rgba(0, 144, 255, 0.35);
}
.logo .logo-coin::before, .logo .logo-coin::after {
  content: ''; position: absolute;
  background: #fff;
  border-radius: 1px;
}
.logo .logo-coin::before {
  /* upper crossbar */
  left: 5px; right: 5px;
  top: 7.5px; height: 1.6px;
}
.logo .logo-coin::after {
  /* lower crossbar */
  left: 4px; right: 5px;
  top: 12.5px; height: 1.6px;
}
.logo .logo-string {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 1.5px; height: 5px;
  background: linear-gradient(180deg, #7dd3fc, #0090FF);
  transform: translateX(-50%);
  border-radius: 1px;
}
.logo .logo-word {
  font-weight: 700; letter-spacing: -0.015em;
  background: linear-gradient(180deg, #e9ecff 0%, #a8b1d8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── Top strip (above the nav) ───────────────────────────────── */
.top-strip {
  display: flex; justify-content: center;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 144, 255, 0.04);
}
.top-strip .chain-tag {
  background: transparent; border: none;
  padding: 0;
  margin: 0;
}

/* API access card — same card chrome, with a monospace code block. */
.api-card { margin-top: 16px; }
.api-snippet,
.code-block,
.json-block,
.header-block {
  margin: 10px 0 18px;
  padding: 14px 16px 14px 24px;
  background: #02030c;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg);
  position: relative;
}
.api-snippet { border-left: 3px solid var(--accent); }

/* Shell command: cyan left rail, $ prompt prefix on the first line */
.code-block {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.code-block::before {
  content: "shell";
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
.code-block code::before {
  content: "$ ";
  color: var(--fg-dim);
  user-select: none;
}

/* JSON body: violet left rail, json label */
.json-block {
  border-left: 3px solid #a78bfa;
  padding-left: 16px;
}
.json-block::before {
  content: "json";
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

/* HTTP header line: subtle amber rail, header label */
.header-block {
  border-left: 3px solid #fbbf24;
  padding-left: 16px;
}
.header-block::before {
  content: "http header";
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
.api-snippet code,
.code-block code,
.json-block code,
.header-block code { background: transparent; padding: 0; color: inherit; white-space: pre; }

.api-snippet .sn-cmd,  .code-block .sn-cmd,  .json-block .sn-cmd,  .header-block .sn-cmd  { color: var(--fg); font-weight: 600; }
.api-snippet .sn-flag, .code-block .sn-flag, .json-block .sn-flag, .header-block .sn-flag { color: var(--fg-dim); }
.api-snippet .sn-url,  .code-block .sn-url,  .json-block .sn-url,  .header-block .sn-url  { color: var(--accent-2); }
.api-snippet .sn-str,  .code-block .sn-str,  .json-block .sn-str,  .header-block .sn-str  { color: var(--fg); }
.api-snippet .sn-tok,  .code-block .sn-tok,  .json-block .sn-tok,  .header-block .sn-tok  { color: var(--fg-dim); font-style: italic; border-bottom: 1px dotted var(--border-strong); }
.api-snippet .sn-cont, .code-block .sn-cont, .json-block .sn-cont, .header-block .sn-cont { color: var(--fg-dim); opacity: 0.5; }
.json-block .sn-key { color: var(--accent-2); }
.api-actions { margin-top: 0; }
.api-actions a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dashed var(--border-strong); }
.api-actions a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* API docs page — reuses .card + .api-snippet from elsewhere; adds
   list, table, and inline-code styles specific to the docs page. */
.api-doc-card { margin-top: 32px; }
.api-doc-card:first-of-type { margin-top: 24px; }
.api-doc-card .card-title .card-subtle { color: var(--fg-dim); font-weight: 500; font-size: 13px; margin-left: 6px; }
.api-list {
  margin: 0 0 0 18px;
  padding: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.7;
}
.api-list li { margin: 0; }
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 0;
  font-size: 13.5px;
}
.api-table th,
.api-table td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--fg-muted);
  vertical-align: top;
}
.api-table th {
  font-weight: 600;
  color: var(--fg);
  border-bottom-color: var(--border-strong);
}
.api-table td:first-child,
.api-table th:first-child { padding-left: 0; }
.api-table td:last-child,
.api-table th:last-child  { padding-right: 0; }
.api-table tr:last-child td { border-bottom: none; }
.api-table code {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--fg);
}
.api-table a { color: var(--accent-2); text-decoration: none; }
.api-table a:hover { color: var(--accent); }
.api-doc-card .contact-text code {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--fg);
}
.api-doc-card .contact-text a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-strong);
}
.api-doc-card .contact-text a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* API page hero meta chips. */
.api-hero .api-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  justify-content: center;
}
.api-hero .api-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.api-hero .api-chip-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10.5px;
  color: var(--fg-dim);
  font-weight: 600;
}
.api-hero .api-chip code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--accent-2);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}
