/* Stables overrides on top of the Mintlify layout. Colours stay Mintlify's. */
:root {
  --st-bg: #ffffff; --st-panel: #fafafa; --st-raise: #ffffff; --st-line: rgba(0,0,0,.08); --st-line2: rgba(0,0,0,.14);
  --st-text: #0e0f11; --st-sub: #6b6f76; --st-soft: rgba(0,0,0,.035); --st-brand: #0c8c5e; --st-brand-soft: rgba(12,140,94,.09);
  --st-red: #e5484d; --st-usdc: #2775ca; --st-shadow: 0 2px 3px rgba(0,0,0,.06), 0 16px 32px rgba(0,0,0,.10);
  --st-mark: url(/stables/img/mark.png); --st-wordmark: url(/stables/img/wordmark.png);
}
html.dark {
  --st-bg: #0b0c0e; --st-panel: #0f1012; --st-raise: #141518; --st-line: rgba(255,255,255,.08); --st-line2: rgba(255,255,255,.14);
  --st-text: #f2f3f5; --st-sub: #8b8f97; --st-soft: rgba(255,255,255,.035); --st-brand: #18e299; --st-brand-soft: rgba(24,226,153,.10);
  --st-shadow: 0 2px 3px rgba(0,0,0,.35), 0 16px 32px rgba(0,0,0,.55);
}

/* ---------- logos ---------- */
a:has(> svg[viewBox="0 0 104 24"]) > svg[viewBox="0 0 104 24"] { display: none !important; }
a:has(> svg[viewBox="0 0 104 24"])::before {
  content: ""; display: block; width: 90px; height: 25px; background: currentColor;
  -webkit-mask: var(--st-wordmark) left center / contain no-repeat; mask: var(--st-wordmark) left center / contain no-repeat;
}
header a:has(> svg[viewBox="0 0 104 24"]), footer a:has(> svg[viewBox="0 0 104 24"]) { color: var(--st-text); }

/* use-case cards: brand logo -> Stables wordmark */
div[class*="max-w-[282px]"] > svg:first-child { display: none !important; }
div[class*="max-w-[282px]"]::before {
  content: ""; display: block; width: 92px; height: 26px; margin-bottom: 0; background: #fff;
  -webkit-mask: var(--st-wordmark) left center / contain no-repeat; mask: var(--st-wordmark) left center / contain no-repeat;
}

/* highlights (testimonial) avatars -> $ mark */
figure div[aria-hidden="true"]:has(> svg) > svg { display: none !important; }
figure div[aria-hidden="true"]:has(> svg)::before {
  content: ""; width: 16px; height: 22px; background: var(--st-brand);
  -webkit-mask: var(--st-mark) center / contain no-repeat; mask: var(--st-mark) center / contain no-repeat;
}

/* hero "Start trading" (was Google sign-in): google glyph -> USDC coin */
a[href*="google/discovery"] > svg { display: none !important; }
a[href*="google/discovery"]::before {
  content: "$"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--st-usdc); color: #fff; font: 700 10px/1 inter, system-ui, sans-serif;
}

/* elements replaced by Stables overlays */
.st-hidden { visibility: hidden !important; }
.st-gone { display: none !important; }
.st-host { position: relative; }

/* ---------- hero feature grid (replaces customer logo grid) ---------- */
.st-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; z-index: 1; }
.st-grid > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); color: var(--st-text); font: 500 13px/1.2 inter, system-ui, sans-serif; text-align: center; padding: 12px; overflow: hidden; }
.st-grid > div:nth-child(4n) { border-right: 0; }
.st-grid > div:nth-last-child(-n+4) { border-bottom: 0; }
.st-grid .st-cell { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.st-grid .st-cell.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.st-grid svg { width: 22px; height: 22px; color: var(--st-brand); }
@media (max-width: 1023px) { .st-grid { grid-template-columns: repeat(2, 1fr); } .st-grid > div:nth-child(2n) { border-right: 0; } .st-grid > div:nth-child(4n+1), .st-grid > div:nth-child(4n+3) { border-right: 1px solid var(--st-line); } .st-grid > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--st-line); } .st-grid > div:nth-last-child(-n+2) { border-bottom: 0; } }

/* ---------- markets ticker (replaces docs activity) ---------- */
.st-ticker { position: relative; flex: 1; min-width: 6rem; overflow: hidden; margin-left: -1rem; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.st-ticker-track { display: flex; gap: 32px; width: max-content; animation: st-marquee 38s linear infinite; padding-left: 1rem; }
.st-ticker:hover .st-ticker-track { animation-play-state: paused; }
.st-ticker-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 500 13px/24px inter, system-ui, sans-serif; color: var(--st-sub); }
.st-ticker-item b { font: 500 12px/18px paperMono, ui-monospace, monospace; color: var(--st-brand); background: var(--st-brand-soft); padding: 1px 6px; border-radius: 3px; }
@keyframes st-marquee { to { transform: translateX(-50%); } }

/* ---------- feature visuals (replace Rive canvases) ---------- */
.st-fx { position: absolute; inset: 0; overflow: hidden; color: var(--st-text); font-family: inter, system-ui, sans-serif; pointer-events: none; }
.st-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-fx .st-c { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); }
.st-pill { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 14px; border-radius: 10px; border: 1px solid var(--st-line2); background: var(--st-raise); box-shadow: var(--st-shadow); font: 500 14px inter, system-ui, sans-serif; white-space: nowrap; }
.st-pill .st-go { width: 26px; height: 26px; border-radius: 7px; background: var(--st-brand); color: #04130d; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.st-caret { display: inline-block; width: 1.5px; height: 15px; background: var(--st-brand); margin-left: 1px; vertical-align: -2px; animation: st-blink 1s steps(1) infinite; }
@keyframes st-blink { 50% { opacity: 0; } }
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--st-brand-soft); color: var(--st-brand); font: 500 12px inter, system-ui, sans-serif; white-space: nowrap; }
.st-mono { font-family: paperMono, ui-monospace, monospace; }
.st-box { border: 1px solid var(--st-line2); border-radius: 10px; background: var(--st-raise); box-shadow: var(--st-shadow); }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid var(--st-line); transition: opacity .4s, transform .4s; }
.st-row:last-child { border-bottom: 0; }
.st-row .k { color: var(--st-sub); }
.st-check { width: 16px; height: 16px; border-radius: 50%; background: var(--st-brand); color: #04130d; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; transition: transform .35s cubic-bezier(.2,1.6,.4,1), opacity .3s; }
.st-bar { height: 8px; border-radius: 99px; background: var(--st-line); overflow: hidden; }
.st-bar > i { display: block; height: 100%; background: var(--st-brand); border-radius: 99px; transition: width .25s linear; }
.st-coin { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 12px inter, system-ui, sans-serif; color: #fff; flex-shrink: 0; }

/* ---------- curve chart (scale section) ---------- */
.st-curve { position: absolute; inset: 0; pointer-events: none; }
.st-curve canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-curve .st-ax { position: absolute; bottom: 14px; font: 500 12px/16px paperMono, ui-monospace, monospace; letter-spacing: .6px; text-transform: uppercase; color: var(--st-sub); }

/* ---------- floating CA pill ---------- */
.st-ca { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; border: 1px solid var(--st-line2); background: var(--st-raise); box-shadow: var(--st-shadow); font: 500 12px inter, system-ui, sans-serif; color: var(--st-text); max-width: calc(100vw - 32px); }
.st-ca code { font: 500 12px paperMono, ui-monospace, monospace; color: var(--st-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ca button { border: 0; border-radius: 7px; padding: 5px 10px; background: var(--st-text); color: var(--st-bg); font: 600 12px inter, system-ui, sans-serif; cursor: pointer; }

/* ======================= App / docs / wallet layer ======================= */
.st-layer { position: fixed; inset: 0; z-index: 1000; display: none; background: var(--st-bg); color: var(--st-text); font: 400 14px/1.5 inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.st-layer.open { display: flex; animation: st-in .22s ease; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }
.st-layer * { box-sizing: border-box; }
.st-layer button, .st-layer input, .st-layer textarea, .st-layer select { font: inherit; color: inherit; }
.st-layer a { color: var(--st-brand); text-decoration: none; }
.st-side { width: 232px; flex-shrink: 0; border-right: 1px solid var(--st-line); background: var(--st-panel); display: flex; flex-direction: column; padding: 16px 12px; gap: 18px; overflow-y: auto; }
.st-logo { display: block; width: 92px; height: 26px; margin: 2px 8px 4px; background: var(--st-text); -webkit-mask: var(--st-wordmark) left center / contain no-repeat; mask: var(--st-wordmark) left center / contain no-repeat; cursor: pointer; border: 0; padding: 0; }
.st-nav { display: flex; flex-direction: column; gap: 2px; }
.st-nav h6 { margin: 0; padding: 0 10px 6px; font: 600 10.5px inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--st-sub); opacity: .75; }
.st-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--st-sub); font-weight: 500; font-size: 13.5px; cursor: pointer; }
.st-nav button:hover { background: var(--st-soft); color: var(--st-text); }
.st-nav button.on { background: var(--st-brand-soft); color: var(--st-brand); font-weight: 600; }
.st-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-top { height: 56px; flex-shrink: 0; border-bottom: 1px solid var(--st-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; }
.st-top .st-search { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--st-line); border-radius: 8px; padding: 7px 10px; color: var(--st-sub); }
.st-top .st-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 13px; color: var(--st-text); }
.st-top-r { display: flex; align-items: center; gap: 8px; }
.st-peg { padding: 6px 10px; border: 1px solid var(--st-line); border-radius: 7px; font: 500 12px paperMono, ui-monospace, monospace; color: var(--st-sub); white-space: nowrap; }
.st-peg b { color: var(--st-brand); font-weight: 500; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--st-line2); background: var(--st-raise); color: var(--st-text); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .12s, opacity .12s; }
.st-btn:hover { background: var(--st-soft); }
.st-btn.pri { background: var(--st-text); color: var(--st-bg); border-color: transparent; }
.st-btn.pri:hover { opacity: .88; }
.st-btn.brand { background: var(--st-brand); color: #04130d; border-color: transparent; }
.st-btn.red { background: var(--st-red); color: #fff; border-color: transparent; }
.st-btn[disabled] { opacity: .45; cursor: not-allowed; }
.st-btn.wide { width: 100%; padding: 11px 14px; font-size: 14px; }
.st-x { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--st-line); background: none; color: var(--st-sub); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.st-x:hover { color: var(--st-text); background: var(--st-soft); }
.st-body { flex: 1; overflow-y: auto; padding: 28px clamp(16px, 3vw, 40px) 60px; }
.st-eyebrow { font-weight: 600; font-size: 12px; color: var(--st-brand); margin-bottom: 6px; }
.st-h1 { font-weight: 650; font-size: 26px; line-height: 1.2; letter-spacing: -.5px; margin: 0; }
.st-lead { color: var(--st-sub); margin: 6px 0 22px; font-size: 14.5px; }
.st-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.st-tabs button { padding: 6px 12px; border-radius: 7px; border: 0; background: none; color: var(--st-sub); font-weight: 500; font-size: 13px; cursor: pointer; }
.st-tabs button.on { background: var(--st-brand-soft); color: var(--st-brand); font-weight: 600; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.st-card { border: 1px solid var(--st-line); border-radius: 12px; padding: 14px; background: var(--st-soft); display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .12s, transform .12s; text-align: left; }
.st-card:hover { border-color: var(--st-line2); transform: translateY(-1px); }
.st-tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-tok img, .st-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--st-line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #04130d; }
.st-tok .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tok .s { font: 500 12px paperMono, ui-monospace, monospace; color: var(--st-sub); }
.st-meta { display: flex; justify-content: space-between; font: 500 12px paperMono, ui-monospace, monospace; color: var(--st-sub); }
.st-meta b { color: var(--st-text); font-weight: 500; }
.st-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--st-brand-soft); color: var(--st-brand); white-space: nowrap; }
.st-tag.amber { background: rgba(245,165,36,.12); color: #d18a0f; }
html.dark .st-tag.amber { color: #f5b84a; }
.st-empty { border: 1px dashed var(--st-line2); border-radius: 12px; padding: 48px 20px; text-align: center; color: var(--st-sub); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.st-empty .ic { width: 44px; height: 60px; background: var(--st-brand); -webkit-mask: var(--st-mark) center / contain no-repeat; mask: var(--st-mark) center / contain no-repeat; opacity: .9; }
.st-empty h3 { margin: 0; color: var(--st-text); font-size: 16px; font-weight: 600; }
.st-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.st-panel { border: 1px solid var(--st-line); border-radius: 12px; background: var(--st-panel); padding: 16px; }
.st-panel h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.st-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.st-field label { font-size: 12.5px; font-weight: 600; color: var(--st-text); display: flex; justify-content: space-between; }
.st-field label span { color: var(--st-sub); font-weight: 500; }
.st-input { width: 100%; border: 1px solid var(--st-line2); border-radius: 8px; background: var(--st-bg); padding: 9px 11px; outline: none; font-size: 14px; transition: border-color .12s, box-shadow .12s; }
.st-input:focus { border-color: var(--st-brand); box-shadow: 0 0 0 3px var(--st-brand-soft); }
textarea.st-input { resize: vertical; min-height: 76px; }
.st-input.bad { border-color: var(--st-red); }
.st-inrow { display: flex; align-items: center; border: 1px solid var(--st-line2); border-radius: 8px; background: var(--st-bg); overflow: hidden; }
.st-inrow:focus-within { border-color: var(--st-brand); box-shadow: 0 0 0 3px var(--st-brand-soft); }
.st-inrow input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 10px 11px; font: 500 16px paperMono, ui-monospace, monospace; }
.st-inrow .u { padding: 0 11px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--st-sub); }
.st-quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.st-quick button { border: 1px solid var(--st-line); background: none; border-radius: 6px; padding: 3px 9px; font: 500 12px paperMono, ui-monospace, monospace; color: var(--st-sub); cursor: pointer; }
.st-quick button:hover { color: var(--st-text); border-color: var(--st-line2); }
.st-drop { border: 1px dashed var(--st-line2); border-radius: 10px; display: flex; align-items: center; gap: 14px; padding: 12px; cursor: pointer; }
.st-drop:hover { border-color: var(--st-brand); }
.st-drop .pv { width: 64px; height: 64px; border-radius: 12px; background: var(--st-soft) center/cover; display: flex; align-items: center; justify-content: center; color: var(--st-sub); font-size: 22px; flex-shrink: 0; }
.st-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; }
.st-kv span:first-child { color: var(--st-sub); }
.st-kv span:last-child { font-family: paperMono, ui-monospace, monospace; font-size: 12.5px; text-align: right; }
.st-sep { height: 1px; background: var(--st-line); margin: 10px 0; }
.st-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--st-soft); border: 1px solid var(--st-line); border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.st-seg button { border: 0; background: none; padding: 7px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--st-sub); cursor: pointer; }
.st-seg button.on.buy { background: var(--st-brand); color: #04130d; }
.st-seg button.on.sell { background: var(--st-red); color: #fff; }
.st-chart { position: relative; height: 320px; border: 1px solid var(--st-line); border-radius: 12px; background: var(--st-panel); overflow: hidden; }
.st-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-chart .ov { position: absolute; left: 14px; top: 12px; font: 500 12px paperMono, ui-monospace, monospace; color: var(--st-sub); }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { text-align: left; font-weight: 500; color: var(--st-sub); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--st-line); }
.st-table td { padding: 9px 10px; border-bottom: 1px solid var(--st-line); font-family: paperMono, ui-monospace, monospace; font-size: 12.5px; }
.st-note { font-size: 12.5px; color: var(--st-sub); line-height: 1.5; }
.st-mb { margin-bottom: 16px; }
.st-flex { display: flex; align-items: center; gap: 10px; }
.st-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--st-line); border: 1px solid var(--st-line); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.st-stats > div { background: var(--st-panel); padding: 12px 14px; }
.st-stats .k { font-size: 12px; color: var(--st-sub); }
.st-stats .v { font: 500 16px paperMono, ui-monospace, monospace; margin-top: 2px; }
.st-links { display: flex; gap: 6px; flex-wrap: wrap; }
.st-links a { font-size: 12px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--st-line); color: var(--st-sub); }
.st-links a:hover { color: var(--st-text); }
.st-burger { display: none; }

/* docs */
.st-doc { max-width: 720px; }
.st-doc h1 { font-size: 30px; letter-spacing: -.6px; margin: 0 0 8px; font-weight: 650; line-height: 1.2; }
.st-doc h2 { font-size: 19px; margin: 30px 0 8px; font-weight: 600; letter-spacing: -.2px; }
.st-doc p, .st-doc li { color: var(--st-sub); font-size: 15px; line-height: 1.7; }
.st-doc p strong, .st-doc li strong { color: var(--st-text); font-weight: 600; }
.st-doc ul, .st-doc ol { padding-left: 20px; }
.st-doc code { font: 500 13px paperMono, ui-monospace, monospace; background: var(--st-soft); border: 1px solid var(--st-line); border-radius: 5px; padding: 1px 5px; color: var(--st-text); }
.st-doc .callout { border: 1px solid var(--st-line); background: var(--st-brand-soft); border-radius: 10px; padding: 12px 14px; margin: 16px 0; color: var(--st-text); font-size: 14px; }
.st-doc .callout.warn { background: rgba(229,72,77,.08); }
.st-doc table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.st-doc td, .st-doc th { text-align: left; border-bottom: 1px solid var(--st-line); padding: 8px 6px; font-size: 14px; }
.st-doc th { color: var(--st-sub); font-weight: 500; }
.st-doc .next { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.st-doc .next button { flex: 1; text-align: left; border: 1px solid var(--st-line); border-radius: 10px; background: none; padding: 12px 14px; cursor: pointer; color: var(--st-text); }
.st-doc .next button small { display: block; color: var(--st-sub); font-size: 12px; }
.st-doc .next button:last-child { text-align: right; }
.st-toc { width: 200px; flex-shrink: 0; padding: 28px 16px; border-left: 1px solid var(--st-line); font-size: 12.5px; color: var(--st-sub); }
.st-toc b { display: block; color: var(--st-text); font-weight: 600; margin-bottom: 10px; }
.st-toc button { display: block; border: 0; background: none; padding: 4px 0; color: var(--st-sub); cursor: pointer; text-align: left; font-size: 12.5px; }
.st-toc button:hover { color: var(--st-text); }

/* modal + toast */
.st-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); padding: 16px; }
.st-modal.open { display: flex; animation: st-in .18s ease; }
.st-dialog { width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--st-bg); color: var(--st-text); border: 1px solid var(--st-line2); border-radius: 14px; box-shadow: var(--st-shadow); padding: 18px; font: 400 14px/1.5 inter, system-ui, sans-serif; }
.st-dialog h3 { margin: 0; font-size: 16px; font-weight: 600; }
.st-wallets { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.st-wallets button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-soft); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--st-text); text-align: left; }
.st-wallets button:hover { border-color: var(--st-line2); }
.st-wallets img { width: 28px; height: 28px; border-radius: 7px; }
.st-wallets .d { margin-left: auto; font-size: 12px; color: var(--st-sub); font-weight: 500; }
.st-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.st-toast { background: var(--st-raise); color: var(--st-text); border: 1px solid var(--st-line2); border-radius: 10px; box-shadow: var(--st-shadow); padding: 11px 14px; font: 500 13px/1.45 inter, system-ui, sans-serif; display: flex; gap: 10px; align-items: flex-start; animation: st-in .2s ease; }
.st-toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-brand); margin-top: 6px; flex-shrink: 0; }
.st-toast.err i { background: var(--st-red); }

@media (max-width: 900px) {
  .st-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 3; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--st-shadow); }
  .st-layer.nav-open .st-side { transform: none; }
  .st-burger { display: inline-flex; }
  .st-grid2 { grid-template-columns: 1fr; }
  .st-toc, .st-peg { display: none; }
  .st-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .st-top { padding: 0 12px; }
}

/* keep app content readable on very wide screens */
.st-layer[data-st-app] .st-body { padding-left: max(clamp(16px, 3vw, 40px), calc((100% - 1180px) / 2)); padding-right: max(clamp(16px, 3vw, 40px), calc((100% - 1180px) / 2)); }
.st-layer[data-st-docs] .st-body { padding-left: max(clamp(16px, 3vw, 40px), calc((100% - 760px) / 2)); }
@media (max-width: 640px) {
  .st-top .st-search { display: none; }
  .st-top { justify-content: space-between; }
  .st-layer form [style*="repeat(3,1fr)"], .st-layer form [style*="1fr 160px"] { grid-template-columns: 1fr !important; }
  .st-ca code { max-width: 46vw; }
}

/* ---------- real logos ---------- */
.st-grid .st-logo-cell { flex-direction: row; gap: 10px; font: 600 16px/1 inter, system-ui, sans-serif; letter-spacing: -.2px; color: var(--st-text); }
.st-grid .st-logo-cell img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; }
figure div[aria-hidden="true"].st-logoav::before { -webkit-mask: none; mask: none; background: var(--st-logo) center / contain no-repeat; width: 28px; height: 28px; border-radius: 7px; }
.st-usdc { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
img.st-coin { object-fit: contain; background: none; }
.st-ticker-item b img { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; border-radius: 50%; }
a[href*="google/discovery"]::before { content: ""; background: url(/stables/logos/usdc.png) center / contain no-repeat; }

/* ======================= Launch page (Mintlify-style) ======================= */
.lx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 8px 0 28px; }
.lx-head h1 { position: relative; margin: 0; padding-left: 20px; font: 500 30px/1.18 inter, system-ui, sans-serif; letter-spacing: -.025em; color: var(--st-text); }
.lx-head h1::before { content: ""; position: absolute; left: 0; top: .2em; width: 2px; height: 1.05em; background: var(--st-brand); }
.lx-head h1 span { display: block; color: var(--st-sub); }
.lx-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.lx-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--st-line); border-radius: 4px; font: 500 12px/18px inter, system-ui, sans-serif; color: var(--st-sub); }
.lx-badges b { font: 500 12px/18px paperMono, ui-monospace, monospace; color: var(--st-brand); }

.lx { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.lx-form { border: 1px solid var(--st-line); border-radius: 10px; overflow: hidden; background: var(--st-bg); }
.lx-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.lx-row + .lx-row { border-top: 1px solid var(--st-line); }
.lx-k { padding: 22px 20px; font: 500 14px/20px inter, system-ui, sans-serif; color: var(--st-text); }
.lx-k small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; font-weight: 400; color: var(--st-sub); }
.lx-n { display: inline-block; min-width: 26px; font: 500 12px paperMono, ui-monospace, monospace; color: var(--st-brand); }
.lx-v { padding: 22px 22px 24px; border-left: 1px solid var(--st-line); min-width: 0; }

.lx-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lx-f > span:first-child { display: flex; justify-content: space-between; font: 500 12.5px/16px inter, system-ui, sans-serif; color: var(--st-sub); }
.lx-f em { font: 500 11.5px paperMono, ui-monospace, monospace; font-style: normal; opacity: .8; }
.lx-in { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--st-line2); border-radius: 6px; background: transparent; color: var(--st-text); font: 400 14px inter, system-ui, sans-serif; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.lx-in { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.lx-in::placeholder { color: var(--st-sub); opacity: .65; }
.lx-in:hover { border-color: color-mix(in srgb, var(--st-text) 22%, transparent); }
.lx-in:focus { border-color: var(--st-brand); box-shadow: 0 0 0 3px var(--st-brand-soft); }
.lx-in.bad { border-color: var(--st-red); }
.lx-in.st-mono { font: 500 14px paperMono, ui-monospace, monospace; letter-spacing: .02em; }

.lx-ident { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: end; }
.lx-fields { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.lx-img { width: 104px; height: 104px; border-radius: 12px; border: 1px dashed var(--st-line2); cursor: pointer; overflow: hidden; transition: border-color .12s, background .12s; }
.lx-img:hover, .lx-img:focus-visible { border-color: var(--st-brand); background: var(--st-brand-soft); outline: none; }
.lx-img.has { border-style: solid; }
.lx-img .pv { width: 100%; height: 100%; background: center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--st-sub); }
.lx-img .pv svg { width: 22px; height: 22px; }
.lx-pre { position: relative; display: block; }
.lx-pre i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 500 14px paperMono, ui-monospace, monospace; font-style: normal; color: var(--st-sub); pointer-events: none; }
.lx-pre .lx-in { padding-left: 24px; }
.lx-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--st-sub); }

.lx-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.lx-icon { position: relative; display: block; }
.lx-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--st-sub); pointer-events: none; }
.lx-icon .lx-in { padding-left: 34px; font-size: 13.5px; }

.lx-amt { display: flex; align-items: center; height: 56px; border: 1px solid var(--st-line2); border-radius: 8px; transition: border-color .12s, box-shadow .12s; }
.lx-amt:focus-within { border-color: var(--st-brand); box-shadow: 0 0 0 3px var(--st-brand-soft); }
.lx-amt input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; outline: 0; background: none; color: var(--st-text); font: 500 22px paperMono, ui-monospace, monospace; }
.lx-amt input::placeholder { color: var(--st-sub); opacity: .5; }
.lx-amt span { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; padding: 6px 10px 6px 7px; border-radius: 999px; background: var(--st-soft); border: 1px solid var(--st-line); font: 600 13px inter, system-ui, sans-serif; color: var(--st-text); }
.lx-amt img { width: 20px; height: 20px; border-radius: 50%; }
.lx-seg { display: inline-flex; margin-top: 12px; border: 1px solid var(--st-line); border-radius: 6px; overflow: hidden; }
.lx-seg button { padding: 6px 14px; border: 0; border-right: 1px solid var(--st-line); background: none; color: var(--st-sub); font: 500 12px paperMono, ui-monospace, monospace; cursor: pointer; transition: background .12s, color .12s; }
.lx-seg button:last-child { border-right: 0; }
.lx-seg button:hover { color: var(--st-text); background: var(--st-soft); }
.lx-seg button.on { color: var(--st-brand); background: var(--st-brand-soft); }
.lx-recv { margin: 12px 0 0; font-size: 13px; color: var(--st-sub); }
.lx-recv b { color: var(--st-text); font: 500 13px paperMono, ui-monospace, monospace; }

.lx-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 20px; border-top: 1px solid var(--st-line); background: var(--st-soft); }
.lx-foot p { margin: 0; font-size: 12.5px; color: var(--st-sub); }
.lx-btn { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; height: 36px; padding: 0 12px 0 16px; border: 0; border-radius: 4px; background: var(--st-text); color: var(--st-bg); font: 500 14px inter, system-ui, sans-serif; cursor: pointer; transition: opacity .12s; }
.lx-btn:hover { opacity: .86; }
.lx-btn svg { opacity: .6; transition: transform .15s; }
.lx-btn:hover svg { transform: translateX(2px); }
.lx-btn[disabled] { opacity: .5; cursor: default; }

.lx-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 16px; }
.lx-card { border: 1px solid var(--st-line); border-radius: 10px; padding: 16px; background: var(--st-bg); }
.lx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lx-card-h .st-avatar, .lx-card-h img { border-radius: 10px; }
.lx-card-d { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--st-sub); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-spark { display: block; width: 100%; height: 70px; margin: 14px 0 12px; }
.lx-card-s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--st-line); padding-top: 12px; }
.lx-card-s div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lx-card-s span { font-size: 11.5px; color: var(--st-sub); }
.lx-card-s b { font: 500 13px paperMono, ui-monospace, monospace; color: var(--st-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-sum { border: 1px solid var(--st-line); border-radius: 10px; overflow: hidden; }
.lx-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 13px; }
.lx-r + .lx-r { border-top: 1px solid var(--st-line); }
.lx-r span { color: var(--st-sub); }
.lx-r b { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px paperMono, ui-monospace, monospace; color: var(--st-text); }
.lx-r b img { width: 15px; height: 15px; border-radius: 50%; }
.lx-r b i { font-style: normal; color: var(--st-sub); }
.lx-r.total { background: var(--st-soft); }
.lx-r.total span { color: var(--st-text); font-weight: 500; }

@media (max-width: 1080px) { .lx { grid-template-columns: 1fr; } .lx-side { position: static; } }
@media (max-width: 720px) {
  .lx-row { grid-template-columns: 1fr; }
  .lx-k { padding: 18px 16px 0; }
  .lx-v { border-left: 0; padding: 14px 16px 20px; }
  .lx-ident { grid-template-columns: 1fr; }
  .lx-fields, .lx-links { grid-template-columns: 1fr; }
  .lx-foot { flex-direction: column; align-items: stretch; }
  .lx-btn { justify-content: center; height: 42px; }
  .lx-head h1 { font-size: 26px; }
}
.st-layer .lx-btn { color: var(--st-bg); font: 500 14px inter, system-ui, sans-serif; }
.st-layer .lx-seg button { font: 500 12px paperMono, ui-monospace, monospace; }
.lx-card-s b { font-size: 12px; }
/* fields respond to the row's own width, not the viewport */
.lx-v { container-type: inline-size; }
@container (max-width: 560px) { .lx-fields { grid-template-columns: 1fr; } .lx-ident { align-items: start; } }
@container (max-width: 640px) { .lx-links { grid-template-columns: 1fr; } }
@media (max-width: 1360px) { .lx-row { grid-template-columns: 172px minmax(0, 1fr); } .lx { grid-template-columns: minmax(0, 1fr) 290px; } }
@media (max-width: 1080px) { .lx { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .lx-row { grid-template-columns: 1fr; } }
