/* SIMD Launchpad: its own page, like ChatSIMD. Black, quiet, one white call to action. */
:root {
  --bg: #000;
  --inset: #121212;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: #9a9a9a;
  --faint: #6e6e6e;
  --accent: #fff;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-size: 14px; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
::selection { color: #000; background: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.chain { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.lpx-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px 24px; background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lpx-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.lpx-brand:hover { text-decoration: none; }
.lpx-brand img { width: 30px; height: 30px; border-radius: 8px; }
.lpx-brand span { color: var(--muted); font-weight: 500; }
.lpx-nav { display: flex; gap: 4px; margin-left: auto; }
.lpx-nav a { color: var(--muted); font-size: 13px; padding: 7px 10px; border-radius: 8px; }
.lpx-nav a:hover { color: var(--text); background: #111; text-decoration: none; }
.lpx-account { display: flex; align-items: center; }
.lpx-account a, .lpx-account span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--text); white-space: nowrap; }
.lpx-account a:hover { border-color: #fff; text-decoration: none; }
.lpx-main { max-width: 1240px; margin: 0 auto; padding: 24px 24px 60px; }
.lpx-foot { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; display: flex; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 12px; }
.lpx-foot a { color: var(--faint); }
.pf-kicker, .pf-ticker, .pf-label, .pf-chips, .pf-addr, .pf-coin-facts, .pf-stepdot, .pf-template i, .pf-prompt textarea { font-family: var(--mono); }

@media (max-width: 760px) {
  .lpx-top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .lpx-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .lpx-account { margin-left: auto; }
  .lpx-main { padding: 16px 16px 48px; }
  .lpx-foot { padding: 0 16px 32px; }
}

/* ---------- SIMD Launchpad (pump.fun-style board + 3-step creator) ---------- */
.pf { display: grid; gap: 18px; }
.pf-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 26px 22px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, #161616 0%, #000 60%); }
.pf-hero h2 { margin: 6px 0 10px; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.pf-hero h2 span { color: var(--muted); }
.pf-kicker { margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pf-lead { margin: 0; max-width: 60ch; color: #d6d6d6; line-height: 1.55; }
.pf-hero-side { display: grid; gap: 12px; justify-items: end; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pf-chips span { border: 1px solid var(--line); padding: 5px 9px; font-size: 12px; color: var(--muted); border-radius: 999px; white-space: nowrap; }
.pf-chips b { color: var(--text); }
.pf-cta { appearance: none; border: 1px solid #fff; background: #fff; color: #000; font: inherit; font-weight: 700; padding: 11px 18px; cursor: pointer; border-radius: 10px; transition: transform 0.08s ease, background 0.15s ease; }
.pf-cta:hover:not(:disabled) { background: #e6e6e6; }
.pf-cta:active:not(:disabled) { transform: translateY(1px); }
.pf-cta:disabled { opacity: 0.45; cursor: not-allowed; }
.pf-big { font-size: 17px; padding: 14px 26px; }
.pf-secondary, .pf-mini { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pf-secondary:hover, .pf-mini:hover { border-color: #fff; }
.pf-mini.pf-pay { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pf-mini.pf-pay:hover { background: var(--accent); color: #000; }
.pf-link { appearance: none; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pf-link:hover { color: var(--text); }
.pf-small { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pf-label { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pf-err { color: #ff8a8a; font-size: 13px; margin: 6px 0 0; }
.pf-empty { color: var(--muted); padding: 30px 0; text-align: center; grid-column: 1 / -1; }
.pf-disclaimer { margin: 0; color: var(--faint); font-size: 12px; }

/* board */
.pf-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pf-search { flex: 1 1 260px; background: var(--inset); border: 1px solid var(--line); color: var(--text); font: inherit; padding: 11px 14px; border-radius: 10px; }
.pf-search:focus { outline: none; border-color: #fff; }
.pf-tabs { display: flex; gap: 6px; }
.pf-tab { appearance: none; background: transparent; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 13px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.pf-tab.on { background: #fff; color: #000; border-color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pf-coin { border: 1px solid var(--line); background: #0a0a0a; border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; transition: border-color 0.15s ease, transform 0.15s ease; }
.pf-coin:hover { border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.pf-coin-top { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.pf-avatar { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center; background: #151515; font-weight: 700; font-size: 16px; }
.pf-coin-id { display: grid; gap: 1px; min-width: 0; }
.pf-coin-id b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-ticker { font-size: 13px; color: #d6d6d6; }
.pf-by { font-size: 12px; color: var(--faint); }
.pf-pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pf-pill.live { color: #6dffa8; border-color: rgba(109, 255, 168, 0.4); }
.pf-pill.failed { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.35); }
.pf-coin-desc { margin: 0; font-size: 13px; color: #cfcfcf; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-coin-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-coin-facts span { font-size: 11px; color: var(--muted); background: #141414; padding: 3px 7px; border-radius: 6px; }
.pf-coin-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; }
.pf-coin-links a { color: var(--muted); }
.pf-coin-links a:hover { color: var(--text); }
.pf-coin-links .pf-trade { color: #000; background: #fff; padding: 5px 10px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.pf-addr { color: var(--faint); }
.pf-yours { border: 1px solid #fff; border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.pf-how { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.pf-how h3 { margin: 0; font-size: 18px; }
.pf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-steps li { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
.pf-steps span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pf-faq { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.pf-faq summary { cursor: pointer; font-weight: 700; }
.pf-faq p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* creator */
.pf-creator { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 14px; background: #050505; }
.pf-creator-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-stepper { display: flex; gap: 6px; }
.pf-stepdot { appearance: none; background: transparent; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 12px; padding: 6px 10px 6px 6px; border-radius: 999px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.pf-stepdot span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #1a1a1a; font-size: 11px; }
.pf-stepdot.on { color: var(--text); border-color: #fff; }
.pf-stepdot.on span, .pf-stepdot.done span { background: #fff; color: #000; }
.pf-stepdot:disabled { cursor: default; opacity: 0.5; }
.pf-h { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.pf-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pf-template { appearance: none; text-align: left; font: inherit; color: var(--text); background: #0b0b0b; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; align-content: start; cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.pf-template:hover { border-color: rgba(255, 255, 255, 0.55); transform: translateY(-2px); }
.pf-template.on { border-color: #fff; background: #141414; }
.pf-ticon { font-size: 22px; line-height: 1; }
.pf-template span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pf-template i { font-style: normal; font-size: 11px; color: #6dffa8; }
.pf-form { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.pf-form .wide, .pf-fields .wide, .pf-adv-grid .wide { grid-column: 1 / -1; }
.pf-image { border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 14px; padding: 12px; display: grid; gap: 8px; justify-items: center; align-content: start; text-align: center; }
.pf-image img, .pf-image > span { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: #111; color: var(--muted); }
.pf-image small { color: var(--faint); font-size: 11px; }
.pf-image-btn { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.pf-image-btn:hover { border-color: #fff; }
.pf-fields, .pf-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.pf-form label { display: grid; gap: 6px; font-size: 13px; color: #d6d6d6; }
.pf-form label small { color: var(--faint); font-weight: 400; }
.pf-form input[type="text"], .pf-form input[type="url"], .pf-form input[type="number"], .pf-form select, .pf-form textarea, .pf-prompt textarea { background: var(--inset); border: 1px solid var(--line); color: var(--text); font: inherit; padding: 10px 12px; border-radius: 10px; width: 100%; box-sizing: border-box; }
.pf-form textarea { min-height: 84px; resize: vertical; }
.pf-form input:focus, .pf-form select:focus, .pf-form textarea:focus, .pf-prompt textarea:focus { outline: none; border-color: #fff; }
.pf-upper { text-transform: uppercase; }
.pf-socials, .pf-advanced, .pf-prompt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.pf-socials summary, .pf-advanced summary, .pf-prompt summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.pf-socials summary span, .pf-advanced summary span { color: var(--faint); font-weight: 400; font-size: 12px; margin-left: 6px; }
.pf-socials > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pf-adv-grid { margin-top: 12px; }
.pf-params { border-top: 1px solid var(--line); padding-top: 10px; }
.pf-params p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.pf-params > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pf-modes, .pf-mechs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pf-form .pf-mode, .pf-form .pf-mech { border: 1px solid var(--line); border-radius: 10px; padding: 10px; gap: 4px; cursor: pointer; }
.pf-form .pf-mode.on, .pf-form .pf-mech.on { border-color: #fff; background: #121212; }
.pf-mode input, .pf-mech input { display: none; }
.pf-mode span, .pf-mech span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.pf-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pf-review { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pf-review > div { display: grid; gap: 12px; align-content: start; }
.pf-preview .pf-coin { border-color: rgba(255, 255, 255, 0.4); }
.pf-summary, .pf-reqs, .pf-facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pf-summary li, .pf-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pf-summary li:last-child, .pf-reqs li:last-child, .pf-facts li:last-child { border-bottom: 0; }
.pf-summary span, .pf-facts span { color: var(--muted); }
.pf-summary b { text-align: right; font-weight: 600; }
.pf-facts i { font-style: normal; color: #ffcf7a; white-space: nowrap; }
.pf-facts i.ok { color: #6dffa8; }
.pf-reqs li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pf-tick { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.pf-reqs li.ok .pf-tick { background: #fff; color: #000; border-color: #fff; }
.pf-ready { border: 1px solid rgba(109, 255, 168, 0.45); color: #6dffa8; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.pf-issues { border: 1px solid rgba(255, 138, 138, 0.4); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pf-issues b { color: #ff8a8a; }
.pf-issues ul { margin: 8px 0 0; padding-left: 18px; color: #d6d6d6; display: grid; gap: 4px; }
.pf-prompt[open] { padding-bottom: 14px; }
.pf-prompt textarea { min-height: 200px; font-size: 12px; margin-top: 10px; }
.pf-prompt .pf-facts { margin-top: 10px; }
.pf-prompt .pf-secondary { margin-top: 10px; }

@media (max-width: 760px) {
  .pf-hero { grid-template-columns: 1fr; }
  .pf-hero h2 { font-size: 26px; }
  .pf-hero-side { justify-items: stretch; }
  .pf-chips { justify-content: flex-start; }
  .pf-big { width: 100%; }
  .pf-steps, .pf-review, .pf-form, .pf-fields, .pf-adv-grid, .pf-socials > div { grid-template-columns: 1fr; }
  .pf-image { max-width: 220px; justify-self: center; width: 100%; }
  .pf-creator { padding: 14px; }
}
.pf-notice { border: 1px solid rgba(255, 207, 122, 0.4); background: rgba(255, 207, 122, 0.05); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.pf-notice b { color: #ffcf7a; font-size: 13px; font-family: var(--mono); letter-spacing: 0.04em; }
.pf-notice p { margin: 0; color: #d6d6d6; font-size: 13px; line-height: 1.55; }
.lpx-account { gap: 6px; }
.lpx-account button { font: inherit; font-size: 12px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.lpx-account button:hover { color: var(--text); border-color: #fff; }
.pf-coin-desc, .pf-coin-id b { overflow-wrap: anywhere; }

/* Trade panel (buy / sell through Uniswap v4 with the SIMD fee) */
button.pf-trade { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.pf-trade-wrap[hidden] { display: none; }
.pf-trade-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.pf-trade-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.pf-trade-panel { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #0a0a0a; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.pf-trade-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.pf-trade-head img, .pf-trade-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center; background: #151515; font-weight: 700; }
.pf-trade-head div { display: grid; }
.pf-trade-head span { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.pf-trade-x { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.pf-trade-x:hover { color: var(--text); }
.pf-trade-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #141414; padding: 4px; border-radius: 12px; }
.pf-trade-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 9px; border-radius: 9px; cursor: pointer; }
.pf-trade-tabs button.on.buy { background: #6dffa8; color: #000; }
.pf-trade-tabs button.on.sell { background: #ff8a8a; color: #000; }
.pf-trade-in { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.pf-trade-in > div { display: flex; align-items: center; gap: 8px; background: var(--inset); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pf-trade-in > div:focus-within { border-color: #fff; }
.pf-trade-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 22px; font-weight: 600; }
.pf-trade-in b { color: var(--text); font-family: var(--mono); font-size: 13px; }
.pf-trade-in button, .pf-trade-quick button, .pf-trade-slip button { border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12px; border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.pf-trade-in button:hover, .pf-trade-quick button:hover:not(:disabled), .pf-trade-slip button:hover { color: var(--text); border-color: #fff; }
.pf-trade-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-trade-quick button:disabled { opacity: 0.4; cursor: default; }
.pf-trade-out { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 2px; }
.pf-trade-out span { color: var(--muted); font-size: 12px; }
.pf-trade-out b { font-size: 18px; text-align: right; }
.pf-trade-facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.pf-trade-facts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pf-trade-facts li:last-child { border-bottom: 0; }
.pf-trade-facts span { color: var(--muted); }
.pf-trade-slip { display: flex; gap: 4px; }
.pf-trade-slip button.on { background: #fff; color: #000; border-color: #fff; }
.pf-trade-note { margin: 0; color: var(--faint); font-size: 12px; }
.pf-trade-go { width: 100%; padding: 13px; font-size: 15px; }
.pf-trade-go.buy:not(:disabled) { background: #6dffa8; border-color: #6dffa8; }
.pf-trade-go.sell:not(:disabled) { background: #ff8a8a; border-color: #ff8a8a; }
.pf-trade-done { margin: 0; color: #6dffa8; font-size: 13px; }
.pf-trade-foot { margin: 0; color: var(--faint); font-size: 11px; }
.pf-trade-foot a { color: var(--faint); text-decoration: underline; }

/* Coin page: market on the left, trade + comments on the right (stacked on phones, trade first) */
.pf-coin.clickable { cursor: pointer; }
.pf-coinpage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pf-coinpage-main { display: grid; gap: 14px; min-width: 0; }
.pf-coinpage-side { display: grid; gap: 14px; position: sticky; top: 72px; }
.pf-coinpage-err { display: grid; gap: 12px; padding: 20px 0; }
.pf-coinpage-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.pf-avatar.big { width: 84px; height: 84px; border-radius: 18px; font-size: 26px; }
.pf-coinpage-head h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pf-coinpage-head h2 span { color: var(--muted); font-family: var(--mono); font-size: 16px; font-weight: 500; }
.pf-coinpage-head .pf-small { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pf-ca { margin-top: 8px; font: inherit; font-family: var(--mono); font-size: 12px; background: #111; color: #d6d6d6; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; cursor: pointer; }
.pf-ca span { color: var(--muted); margin-left: 6px; }
.pf-ca:hover { border-color: #fff; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.pf-stats span { color: var(--muted); font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.pf-stats b { font-size: 17px; }
.pf-chart { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #050505; height: 420px; display: grid; place-items: center; }
.pf-chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.pf-chart p { color: var(--muted); font-size: 14px; padding: 20px; text-align: center; }
.pf-coinpage-desc { margin: 0; color: #d6d6d6; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-trade-panel.inline { width: 100%; max-height: none; }
.pf-trade-soon { border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--muted); font-size: 14px; }
.pf-comments { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; background: #0a0a0a; }
.pf-comments h3 { margin: 0; font-size: 16px; }
.pf-comments h3 span { color: var(--muted); font-weight: 400; font-size: 13px; }
.pf-comment-form { display: grid; gap: 8px; }
.pf-comment-form textarea { background: var(--inset); border: 1px solid var(--line); color: var(--text); font: inherit; padding: 10px 12px; border-radius: 10px; resize: vertical; min-height: 60px; width: 100%; box-sizing: border-box; }
.pf-comment-form textarea:focus { outline: none; border-color: #fff; }
.pf-comment-form > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pf-comment-form .pf-cta { padding: 8px 16px; }
.pf-comment-login { display: block; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text); font-size: 14px; }
.pf-comment-login:hover { border-color: #fff; text-decoration: none; }
.pf-comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 520px; overflow: auto; }
.pf-comment-list li { border-top: 1px solid var(--line); padding-top: 10px; }
.pf-comment-list li:first-child { border-top: 0; padding-top: 0; }
.pf-comment-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pf-comment-head img, .pf-comment-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #1a1a1a; font-size: 11px; font-weight: 700; }
.pf-comment-head a { color: var(--text); font-weight: 600; }
.pf-comment-head time { color: var(--faint); font-size: 12px; margin-left: auto; font-family: var(--mono); }
.pf-comment-list p { margin: 6px 0 0 32px; font-size: 14px; color: #d6d6d6; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-comment-empty { color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .pf-coinpage { grid-template-columns: 1fr; }
  .pf-coinpage-side { position: static; order: -1; }
  .pf-coinpage-main { order: 0; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-chart { height: 340px; }
}

/* Contract address: copy button + Etherscan icon */
.pf-addr { display: inline-flex; align-items: center; gap: 6px; }
.pf-copy { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-family: var(--mono); font-size: 12px; color: #cfcfcf; background: #141414; border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; cursor: pointer; }
.pf-copy:hover { border-color: #fff; color: #fff; }
.pf-copy.copied { border-color: rgba(109, 255, 168, 0.6); color: #6dffa8; }
.pf-copy.copied svg { display: none; }
.pf-copy.copied::after { content: "Copied ✓"; }
.pf-copy.copy-failed::after { content: " (copy blocked)"; color: #ff8a8a; }
.pf-ethscan { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: #141414; }
.pf-ethscan:hover { border-color: #fff; }
.pf-ethscan img { width: 15px; height: 15px; display: block; }
.pf-ca { margin-top: 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; background: none; border: 0; padding: 0; cursor: default; }

/* Fees block in Advanced options */
.pf-fees { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: #080808; }
.pf-fees-title { margin: 0; font-weight: 700; font-size: 14px; }
.pf-fees-fixed { margin: 0; font-size: 13px; color: var(--muted); }
.pf-fees-fixed b { color: var(--text); }
.pf-fees .pf-params { border-top: 1px solid var(--line); padding-top: 10px; }
.pf-fee { gap: 4px !important; }
.pf-fee small { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.pf-fee-input { display: flex; align-items: center; background: var(--inset); border: 1px solid var(--line); border-radius: 10px; }
.pf-fee-input:focus-within { border-color: #fff; }
.pf-form .pf-fee-input input[type="number"] { border: 0; background: transparent; flex: 1; min-width: 0; }
.pf-fee-input i { font-style: normal; color: var(--muted); font-size: 12px; padding-right: 10px; white-space: nowrap; font-family: var(--mono); }
.pf-fee em { font-style: normal; color: var(--faint); font-size: 11px; }

/* Opening market cap presets */
.pf-caps { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf-caps legend { font-size: 13px; color: #d6d6d6; margin-bottom: 6px; padding: 0; }
.pf-caps legend small { color: var(--faint); }
.pf-caps > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-form .pf-cap { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; cursor: pointer; position: relative; background: #0b0b0b; }
.pf-form .pf-cap.on { border-color: #fff; background: #141414; }
.pf-cap input { position: absolute; opacity: 0; pointer-events: none; }
.pf-cap b { font-size: 14px; color: var(--text); }
.pf-cap-value { font-family: var(--mono); font-size: 13px; color: var(--text) !important; }
.pf-cap span { font-size: 12px; color: var(--muted); }
.pf-cap i { font-style: normal; font-size: 11px; color: #6dffa8; }
.pf-cap-note { margin: 0; font-size: 13px; color: var(--muted); }
.pf-cap-note b { color: var(--text); }
@media (max-width: 760px) { .pf-caps > div { grid-template-columns: 1fr; } }

/* ChatSIMD launch copilot: docked on the right on wide screens, a bottom sheet on phones */
#lp-copilot { position: fixed; z-index: 40; right: 16px; bottom: 16px; font-family: var(--sans); }
#lp-copilot .cp-fab { display: flex; align-items: center; gap: 8px; background: #fff; color: #000; border: 0; border-radius: 999px; padding: 8px 16px 8px 8px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(109, 255, 168, 0.35); }
#lp-copilot .cp-fab img { width: 32px; height: 32px; border-radius: 50%; }
#lp-copilot.open .cp-fab { display: none; }
#lp-copilot .cp-panel { display: none; }
#lp-copilot.open .cp-panel { display: flex; }
.cp-panel { flex-direction: column; width: 370px; height: min(680px, calc(100vh - 96px)); background: #070707; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.cp-head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(109, 255, 168, 0.08), transparent 60%); }
.cp-head img { width: 34px; height: 34px; border-radius: 50%; }
.cp-head div { display: grid; }
.cp-head b { font-size: 14px; }
.cp-head span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.cp-head span i { width: 7px; height: 7px; border-radius: 50%; background: #6dffa8; box-shadow: 0 0 8px #6dffa8; }
.cp-head button { background: none; border: 1px solid transparent; color: var(--muted); font-size: 18px; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.cp-head button:hover { color: var(--text); border-color: var(--line); }
.cp-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cp-msg { font-size: 14px; line-height: 1.5; max-width: 92%; overflow-wrap: anywhere; }
.cp-msg.user { align-self: flex-end; background: #1c1c1c; border-radius: 14px 14px 4px 14px; padding: 8px 12px; white-space: pre-wrap; }
.cp-msg.assistant { align-self: flex-start; color: #e6e6e6; }
.cp-msg.assistant b { color: #fff; }
.cp-msg.tip { border-left: 2px solid #6dffa8; padding-left: 10px; color: #cfcfcf; font-size: 13px; }
.cp-msg a { color: #6dffa8; }
.cp-typing { color: var(--muted) !important; font-style: italic; }
.cp-card { margin-top: 8px; border: 1px solid rgba(109, 255, 168, 0.35); border-radius: 12px; padding: 10px; display: grid; gap: 6px; background: #0d0d0d; }
.cp-card-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cp-card-top span { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.cp-card-top i { font-style: normal; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); margin-left: auto; }
.cp-card p { margin: 0; font-size: 13px; color: #cfcfcf; }
.cp-card .cp-card-meta { color: var(--muted); font-size: 12px; }
.cp-card button { background: #6dffa8; color: #000; border: 0; border-radius: 9px; padding: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.cp-card button:disabled { background: #1c1c1c; color: #6dffa8; cursor: default; }
.cp-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.cp-chips button { background: transparent; border: 1px solid var(--line); color: #d6d6d6; font: inherit; font-size: 12px; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.cp-chips button:hover { border-color: #fff; color: #fff; }
.cp-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.cp-form textarea { flex: 1; resize: none; background: var(--inset); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; border-radius: 12px; padding: 10px 12px; max-height: 120px; }
.cp-form textarea:focus { outline: none; border-color: #fff; }
.cp-form button { width: 40px; border: 0; border-radius: 12px; background: #fff; color: #000; font-size: 18px; font-weight: 700; cursor: pointer; }
.cp-form button:disabled { opacity: 0.4; }
/* make room for the docked panel on wide screens */
@media (min-width: 1101px) {
  body.copilot-open .lpx-main, body.copilot-open .lpx-foot { margin-right: 400px; margin-left: max(24px, calc((100vw - 400px - 1240px) / 2)); }
  body.copilot-open #lp-copilot { top: 66px; bottom: 16px; }
  body.copilot-open .cp-panel { height: 100%; }
}
@media (max-width: 1100px) {
  #lp-copilot.open { left: 8px; right: 8px; bottom: 8px; }
  .cp-panel { width: 100%; height: min(78vh, 640px); }
}

/* Hero background: the swarm's control-room panels, darkened on the text side */
.pf-hero { background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0.55) 100%), url("panels.webp") center / cover no-repeat, #000; }
@media (max-width: 760px) { .pf-hero { background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.92)), url("panels.webp") center / cover no-repeat, #000; } }
.pf-hero .pf-chips span { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(2px); }

/* Coins | Swarm Arena tabs */
.pf-maintabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-maintabs button { appearance: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); background: #0b0b0b; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.pf-maintabs button.on { color: #000; background: #fff; border-color: #fff; }
.pf-maintabs button.arena { border-color: var(--line); }
.pf-maintabs button.arena.on { background: #d9d9d4; border-color: #d9d9d4; color: #111; }
.pf-maintabs button span { font-family: var(--mono); font-size: 12px; font-weight: 500; opacity: 0.85; }

/* Swarm Arena */
@property --ar-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ar { display: grid; gap: 16px; }
.ar-banner { position: relative; border: 2px solid #d9d9d4; border-radius: 6px; padding: 0 18px 18px; background: #0a0a0a; display: grid; gap: 14px; }
.ar-banner::before { content: none; }
@keyframes ar-spin { to { --ar-angle: 360deg; } }
.ar-banner-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.ar-module { width: 48px; height: 48px; flex: none; }
.ar-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.ar-banner h3 { margin: 2px 0 0; font-size: 24px; letter-spacing: -0.01em; }
.ar-clock { text-align: right; display: grid; }
.ar-clock span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ar-clock b { font-family: var(--mono); font-size: 28px; letter-spacing: 0.06em; color: #3ddc6a; background: #000; border: 1px solid #2a2a2a; border-radius: 4px; padding: 4px 10px; margin-top: 4px; }
.ar-lead { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: #111; border: 1px solid #262626; border-radius: 6px; padding: 14px; }
.ar-lead-id { display: grid; gap: 3px; min-width: 0; }
.ar-lead-id b { font-size: 22px; overflow-wrap: anywhere; }
.ar-lead-id span { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.ar-lead-id p { margin: 4px 0 0; color: #d6d6d6; font-size: 14px; }
.ar-empty { margin: 0; color: #d6d6d6; }
.ar-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center; background: #151515; font-weight: 700; }
.ar-logo.big { width: 84px; height: 84px; border-radius: 18px; font-size: 24px; box-shadow: 0 0 40px rgba(255, 210, 92, 0.25); }
.ar-vote { appearance: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; color: #fff; background: #141414; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ar-vote:hover { border-color: #ff6b8b; text-decoration: none; }
.ar-vote.on { color: #ff6b8b; border-color: rgba(255, 107, 139, 0.6); background: rgba(255, 107, 139, 0.08); }
.ar-vote b { font-family: var(--mono); }
.ar-vote:disabled { opacity: 0.5; cursor: not-allowed; }
.ar-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ar-rules li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.ar-rules span { color: var(--muted); font-size: 13px; }
.ar-form-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ar-done { color: #6dffa8 !important; }
.ar-form { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; background: #050505; }
.ar-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ar-form-grid .wide { grid-column: 1 / -1; }
.ar-form label { display: grid; gap: 6px; font-size: 13px; color: #d6d6d6; }
.ar-form label small { color: var(--faint); }
.ar-form input, .ar-form select, .ar-form textarea { background: var(--inset); border: 1px solid var(--line); color: var(--text); font: inherit; padding: 10px 12px; border-radius: 10px; width: 100%; box-sizing: border-box; }
.ar-form input:focus, .ar-form select:focus, .ar-form textarea:focus { outline: none; border-color: #fff; }
.ar-form input[type="file"] { padding: 7px; }
.ar-logo-field span { display: flex; gap: 8px; align-items: center; }
.ar-logo-field img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.ar-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ar-list-head h3 { margin: 0; font-size: 18px; }
.ar-list-head h3 span { color: var(--muted); font-weight: 400; font-size: 14px; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ar-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; background: #0a0a0a; }
.ar-card-top { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; }
.ar-rank { font-family: var(--mono); color: #ffd25c; font-weight: 600; }
.ar-id { display: grid; min-width: 0; }
.ar-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-id span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.ar-id small { font-size: 12px; color: var(--faint); }
.ar-narr { margin: 0; font-size: 14px; color: #d6d6d6; overflow-wrap: anywhere; }
.ar-prompt { border-left: 2px solid rgba(109, 255, 168, 0.5); padding-left: 10px; }
.ar-prompt span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #6dffa8; }
.ar-prompt p { margin: 4px 0; font-size: 13px; color: #cfcfcf; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ar-prompt.open p { display: block; }
.ar-winners { display: grid; gap: 8px; }
.ar-win { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ar-win div { display: grid; }
.ar-win span { color: var(--muted); font-size: 12px; }
.ar-win a { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .ar-banner-head { grid-template-columns: auto 1fr; }
  .ar-clock { grid-column: 1 / -1; text-align: left; }
  .ar-lead { grid-template-columns: auto 1fr; }
  .ar-lead .ar-vote { grid-column: 1 / -1; justify-self: start; }
  .ar-rules, .ar-form-grid { grid-template-columns: 1fr; }
  .ar-grid { grid-template-columns: 1fr; }
}

/* "This token joins the SIMD Hackathon" */
.hk-entry { border: 1px solid rgba(255, 210, 92, 0.35); border-radius: 12px; padding: 10px 14px; background: rgba(255, 210, 92, 0.03); }
.hk-entry summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; list-style: none; }
.hk-entry summary::-webkit-details-marker { display: none; }
.hk-entry summary small { color: var(--faint); font-size: 12px; }
.hk-check { display: flex !important; align-items: center; gap: 8px; font-size: 14px; color: var(--text) !important; cursor: pointer; }
.hk-check input { width: 18px; height: 18px; accent-color: #ffd25c; }
.hk-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hk-entry-grid .wide { grid-column: 1 / -1; }
.hk-entry-grid label { display: grid; gap: 5px; font-size: 13px; color: #d6d6d6; }
.hk-entry-grid label small { color: var(--faint); }
.hk-entry-grid input, .hk-entry-grid select { background: var(--inset); border: 1px solid var(--line); color: var(--text); font: inherit; padding: 9px 11px; border-radius: 10px; width: 100%; box-sizing: border-box; }
.hk-entry-grid input:focus, .hk-entry-grid select:focus { outline: none; border-color: #fff; }
.hk-accept { display: flex !important; align-items: center; gap: 8px; }
.hk-accept input { width: 16px !important; height: 16px; accent-color: #ffd25c; }
.hk-accept a { color: #ffd25c; }
.hk-badge { display: inline-block; font-size: 11px; font-weight: 600; color: #ffd25c; border: 1px solid rgba(255, 210, 92, 0.45); background: rgba(255, 210, 92, 0.08); border-radius: 999px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; }
.pf-coin-facts .hk-badge { margin-left: 0; }

/* Swarm Pick on the main board */
.ar-pick { position: relative; border: 2px solid #d9d9d4; border-radius: 6px; padding: 0 16px 16px; display: grid; gap: 14px; background: #0a0a0a; }
.ar-pick::before { content: none; }
.ar-pick-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.ar-pick-head b { font-size: 18px; }
.ar-pick-votes { display: grid; justify-items: center; padding: 6px 14px; border-radius: 4px; border: 1px solid #2a2a2a; background: #000; }
.ar-pick-votes b { font-family: var(--mono); font-size: 24px; color: #3ddc6a; }
.ar-pick-votes span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.ar-pick-go { justify-self: start; }
@media (max-width: 760px) {
  .hk-entry-grid { grid-template-columns: 1fr; }
  .ar-pick-head { grid-template-columns: auto 1fr; }
  .ar-pick-head .ar-clock { grid-column: 1 / -1; text-align: left; }
  .ar-pick .ar-lead { grid-template-columns: auto 1fr; }
}

/* Copilot: language picker, attachments, English tip */
.cp-head-lang { grid-template-columns: auto 1fr auto auto auto !important; }
.cp-lang { background: #111; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 12px; padding: 4px 6px; max-width: 96px; }
.cp-clip { width: 40px; border: 1px solid var(--line) !important; background: transparent !important; color: var(--muted) !important; font-size: 16px !important; border-radius: 12px; cursor: pointer; }
.cp-clip:hover { border-color: #fff !important; }
.cp-attach { display: flex; gap: 6px; padding: 0 10px 8px; flex-wrap: wrap; }
.cp-attach span { position: relative; }
.cp-attach img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.cp-attach button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.cp-msg-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.cp-msg-imgs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.cp-tip-en { margin: 0; padding: 0 12px 8px; font-size: 12px; color: #ffcf7a; }

/* Page translator */
.lpx-lang { background: #111; color: var(--text); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; padding: 6px 10px; margin-left: 4px; }
.lpx-langnote { max-width: 1240px; margin: 14px auto 0; padding: 10px 14px; border: 1px solid rgba(255, 207, 122, 0.45); background: rgba(255, 207, 122, 0.06); border-radius: 12px; color: #f0e6cf; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lpx-langnote[hidden] { display: none; }
.lpx-langnote button { background: #ffcf7a; color: #000; border: 0; border-radius: 8px; padding: 5px 10px; font: inherit; font-weight: 700; cursor: pointer; }
/* hide Google's own top bar */
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }
@media (max-width: 760px) { .lpx-langnote { margin: 10px 16px 0; } }

/* Launch page: a coin the swarm is still building */
.pf-build { display: grid; gap: 16px; max-width: 760px; }
.pf-build-clock { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--inset); }
.pf-build-clock > div:not(.pf-build-bar) { display: grid; gap: 4px; }
.pf-build-clock span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pf-build-clock b { font-family: var(--mono); font-size: 28px; font-weight: 600; }
.pf-build-clock #pf-build-left { color: var(--accent); }
.pf-build-clock .pf-small { grid-column: 1 / -1; margin: 0; }
.pf-build-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pf-build-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 1s linear; }
.pf-build-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pf-build-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.pf-build-steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -6px; width: 2px; background: var(--line); }
.pf-build-steps li.done:not(:last-child)::before { background: var(--accent); }
.pf-build-steps li div { display: grid; gap: 2px; }
.pf-build-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--faint); }
.pf-build-steps li.done .pf-build-dot { border-color: var(--accent); background: var(--accent); color: #000; font-weight: 700; }
.pf-build-steps li.working .pf-build-dot { border-color: var(--accent); color: var(--accent); animation: pf-pulse 1.4s ease-in-out infinite; }
.pf-build-steps li.failed .pf-build-dot { border-color: #f87171; color: #f87171; }
.pf-build-steps li.waiting b { color: var(--muted); font-weight: 500; }
@keyframes pf-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); } }
.pf-build-failed { padding: 16px; border: 1px solid #7f1d1d; border-radius: 14px; background: color-mix(in srgb, #f87171 8%, transparent); }
.pf-build-failed p { margin: 6px 0 0; color: var(--muted); }
.pf-liveflash { padding: 12px 14px; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 560px) { .pf-build-clock b { font-size: 22px; } }

/* Swarm Arena as a control-panel module: grey faceplate strip with screws */
.ar-plate { margin: 0 -18px; display: flex; justify-content: space-between; gap: 12px; padding: 7px 26px; background: #d9d9d4; color: #111; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; position: relative; }
.ar-pick .ar-plate { margin: 0 -16px; }
.ar-plate::before, .ar-plate::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #111; }
.ar-plate::before { left: 9px; }
.ar-plate::after { right: 9px; }
.ar-led { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #3ddc6a; vertical-align: 1px; }

/* Coin page: on-chain trades and price chart */
.pf-chart.onchain { display: grid; gap: 6px; padding: 12px; min-height: 0; }
.pf-pricechart { width: 100%; height: 220px; display: block; }
.pf-pricechart .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pf-pricechart .area { stroke: none; opacity: 0.12; }
.pf-pricechart.up .line { stroke: #6dffa8; } .pf-pricechart.up .area { fill: #6dffa8; }
.pf-pricechart.down .line { stroke: #ff6b6b; } .pf-pricechart.down .area { fill: #ff6b6b; }
.pf-pricechart circle.buy { fill: #6dffa8; } .pf-pricechart circle.sell { fill: #ff6b6b; }
.pf-pricechart-note { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.pf-trades-box { display: grid; gap: 8px; }
.pf-trades-box .pf-label span { text-transform: none; letter-spacing: 0; margin-left: 6px; }
#pf-trades { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.pf-trades { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.pf-trades th { position: sticky; top: 0; background: #0d0d0d; text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pf-trades td { padding: 7px 10px; border-bottom: 1px solid #161616; white-space: nowrap; }
.pf-trades td small { display: block; color: var(--faint); font-size: 11px; }
.pf-trades tr.buy td:first-child b { color: #6dffa8; }
.pf-trades tr.sell td:first-child b { color: #ff6b6b; }
.pf-trades a { color: var(--text); text-decoration: none; }
.pf-trades a:hover { text-decoration: underline; }
#pf-trades .pf-small { padding: 12px; margin: 0; }

/* Creator earnings: up to 3 wallets sharing 0.5% of every trade */
.pf-earn { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); }
.pf-earn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pf-earn-head span { color: var(--muted); font-size: 12.5px; }
.pf-earn-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.pf-earn-row > input { font-family: var(--mono); font-size: 13px; }
.pf-earn-pct { display: flex; align-items: center; gap: 4px; }
.pf-earn-pct[hidden] { display: none; }
.pf-earn-pct input { width: 70px; text-align: right; }
.pf-earn-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pf-earn .pf-small { margin: 0; }

/* Coin page: creator earnings */
.pf-earnbox { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.pf-earnbox .pf-label span { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.pf-earn-wallets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-earn-wallets li { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.pf-earn-wallets a { color: var(--text); }
.pf-earn-mine { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--inset); }
.pf-earn-mine span { color: var(--muted); font-size: 12px; }
.pf-earn-mine b { font-family: var(--mono); font-size: 16px; }
.pf-earnbox .pf-earn { border: 0; padding: 0; background: none; }

/* Board: $SIMD, the home token */
.pf-home { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); cursor: pointer; }
.pf-home:hover { border-color: #555; }
.pf-home-id { display: grid; gap: 2px; min-width: 0; }
.pf-home-id b span { color: var(--muted); font-weight: 500; }
.pf-home-id small { color: var(--muted); font-size: 12px; }
.pf-home-stats { display: flex; gap: 16px; }
.pf-home-stats span { display: grid; text-align: right; }
.pf-home-stats small { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pf-home-stats b { font-family: var(--mono); font-size: 14px; }
@media (max-width: 640px) { .pf-home { grid-template-columns: auto 1fr; } .pf-home-stats { grid-column: 1 / -1; justify-content: flex-start; } .pf-home .pf-trade { grid-column: 1 / -1; } .pf-home-stats span { text-align: left; } }

/* Live room on coin pages: chat, who is online, SIMD's messages */
.pf-build { max-width: 1100px; }
.pf-build-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.pf-room { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--inset); }
.pf-room-head { display: flex; justify-content: space-between; align-items: center; }
.pf-online { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.pf-online i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc6a; box-shadow: 0 0 8px #3ddc6a; animation: pf-blink 2s ease-in-out infinite; }
@keyframes pf-blink { 50% { opacity: .35; } }
.pf-room-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 10px; max-height: 380px; overflow-y: auto; }
.pf-room-list li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.pf-room-list img { width: 28px; height: 28px; border-radius: 50%; }
.pf-room-list b { font-size: 13px; margin-right: 6px; }
.pf-room-list time { font-size: 11px; color: var(--faint); }
.pf-room-list p { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.pf-room-list li.simd div { border-left: 2px solid var(--accent); padding-left: 8px; }
.pf-room-list li.simd b { color: var(--accent); }
.pf-room-form { display: flex; gap: 8px; }
.pf-room-form input { flex: 1; min-width: 0; background: #000; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 9px 10px; font: inherit; }
@media (max-width: 860px) { .pf-build-cols { grid-template-columns: 1fr; } }

/* Animated decorations (public/decor.js) */
.decor-layer { position: absolute; z-index: 5; pointer-events: none; height: 0; }
.decor-item { position: absolute; }
.decor-item video { display: block; width: 100%; height: auto; mix-blend-mode: lighten; }
.decor-item.editing { pointer-events: auto; cursor: move; outline: 1px dashed rgba(109, 255, 168, .8); touch-action: none; }
.decor-item.editing em { position: absolute; left: 4px; top: 4px; font: 11px var(--mono); font-style: normal; color: #000; background: var(--accent); padding: 1px 6px; border-radius: 4px; }
.decor-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: nwse-resize; }
.decor-bar { position: fixed; left: 12px; bottom: 12px; z-index: 50; display: grid; gap: 6px; width: 320px; padding: 10px; border: 1px solid var(--accent); border-radius: 10px; background: rgba(0,0,0,.92); font-size: 12px; color: #ddd; }
.decor-bar button { justify-self: start; background: #fff; color: #000; border: 0; border-radius: 6px; padding: 4px 10px; font: 600 12px Inter, sans-serif; cursor: pointer; }
.decor-bar textarea { height: 110px; background: #000; color: var(--accent); border: 1px solid #333; border-radius: 6px; font: 11px var(--mono); }

.decor-item.following { transition: top .9s ease; }
.decor-zzz { position: absolute; display: block; width: 30%; height: 40%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.decor-item.sleeping .decor-zzz { opacity: 1; }
.decor-zzz i { position: absolute; left: 0; bottom: 0; font: 800 22px Inter, sans-serif; font-style: normal; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.5); opacity: 0; }
.decor-item.sleeping .decor-zzz i { animation: decor-z 3s ease-in infinite; }
.decor-zzz i:nth-child(2) { animation-delay: 1s !important; font-size: 28px; }
.decor-zzz i:nth-child(3) { animation-delay: 2s !important; font-size: 36px; }
@keyframes decor-z { 0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(40px, -70px) rotate(12deg); opacity: 0; } }
.decor-item.sleeping video { animation: decor-breathe 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes decor-breathe { 50% { transform: scaleY(1.018); } }
.pf-build-steps li.decor-host .pf-build-dot { visibility: hidden; }
.pf-build-steps li.recheck .pf-build-dot { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 400; }
.pf-build-steps li.recheck b { color: var(--muted); font-weight: 500; }

/* Board sorting and market caps */
.pf-sorts { flex-wrap: wrap; }
.pf-coin-mc { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pf-coin-mc b { color: var(--text); }
.pf-coin-mc .up { color: #6dffa8; }
.pf-coin-mc .down { color: #ff6b6b; }
.pf-warn { margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(255, 210, 92, .45); border-radius: 10px; color: #ffd25c; font-size: 13px; }

/* Trade panel: wallet picker and IMD guidance */
.pf-wallets { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #000; }
.pf-wallets p { margin: 0; font-size: 13px; color: var(--muted); }
.pf-wallets button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--inset); color: var(--text); font: 600 14px Inter, sans-serif; cursor: pointer; text-align: left; }
.pf-wallets button:hover { border-color: #fff; }
.pf-wallets img { width: 24px; height: 24px; border-radius: 6px; }
.pf-trade-imd { margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 210, 92, .45); border-radius: 10px; color: #ffd25c; font-size: 13px; }
.pf-trade-imd a { color: #fff; font-weight: 600; }
.pf-trade-switch { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }

/* Chains: Ethereum and Robinhood Chain */
.pf-chains { border: 0; padding: 0; margin: 0; }
.pf-chains legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pf-chains > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.pf-chain { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 10px 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 12px; cursor: pointer; }
.pf-chain input { display: none; }
.pf-chain img { grid-row: span 2; }
.pf-chain span { font-size: 12px; color: var(--muted); }
.pf-chain.on { border-color: #6dffa8; background: rgba(109, 255, 168, .06); }
.pf-chain-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(204, 255, 0, .12); color: #ccff00; font-size: 11.5px; }
.pf-trade-rh { display: grid; gap: 10px; text-align: left; }
.pf-trade-rh p { margin: 0; font-size: 13px; color: var(--muted); }
.pf-chain.soon { opacity: .5; cursor: not-allowed; }
.pf-txns i { font-style: normal; }
.pf-txns .up { color: #6dffa8; }
.pf-txns .down { color: #ff6b6b; }
