:root {
  color-scheme: dark;
  --bg: #001818;
  --surface: #062626;
  --surface2: #0a3030;
  --card: #0c3433;
  --line: rgba(232, 251, 247, .13);
  --line-strong: rgba(232, 251, 247, .24);
  --muted: #8fb2ad;
  --text: #e8fbf7;
  --lime: #84ff82;
  --lime-dim: #53c966;
  --cyan: #6df5ff;
  --danger: #ff8991;
  --warning: #ffd066;
  --raill-shadow: 0 24px 80px rgba(0, 9, 9, .28);
  --raill-font: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  --raill-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

html { background: #001818; }
body {
  min-width: 320px;
  background:
    linear-gradient(rgba(132,255,130,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132,255,130,.026) 1px, transparent 1px),
    radial-gradient(circle at 82% -6%, rgba(132,255,130,.10), transparent 31rem),
    #001818;
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--text);
  font-family: var(--raill-font);
  letter-spacing: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,24,24,.15), #001818 72%);
}
button, input, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
::selection { background: var(--lime); color: #001e1e; }

/* Navigation */
.topbar,
.topbar.sticky {
  position: sticky;
  top: 0;
  height: 76px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 30, 30, .88);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(130%);
}
.topbar.sticky { height: 68px; }
.nav-inner {
  width: min(1320px, calc(100% - 48px));
  transform: none !important;
}
.brand-and-nav { gap: 36px; }
.brand {
  width: auto;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img,
.topbar.sticky .brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transform: none;
  filter: none;
}
.brand-wordmark,
.footer-logo span {
  color: var(--text);
  font-family: var(--raill-font);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: .14em;
}
.segmented-nav {
  gap: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.segmented-nav a {
  position: relative;
  padding: 25px 0 24px;
  border-radius: 0;
  color: #91aaa7;
  font-size: 14px;
  font-weight: 600;
}
.segmented-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.segmented-nav a.active,
.segmented-nav a:hover {
  background: transparent;
  color: var(--text);
}
.segmented-nav a.active::after { transform: scaleX(1); }
.top-actions { gap: 12px; }
.network-status {
  height: 36px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232,251,247,.035);
  color: #bdd6d1;
  font-family: var(--raill-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}
.network-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(132,255,130,.10);
}
.wallet-button,
.wallet-button.disconnected {
  min-width: 118px;
  height: 42px;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--lime);
  border-radius: 9px;
  background: var(--lime);
  color: #001e1e;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
  transition: background 160ms ease, transform 160ms ease;
}
.wallet-button:hover { background: #a1ff9f; transform: translateY(-1px); }
.wallet-button .wallet-caret { display: none; }

/* Layout */
.app-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 34px auto 0;
}
.explore-view,
.analytics-view,
.profile-view { width: 100%; }
.token-view { width: min(1320px, 100%); }
.create-view { width: min(1120px, 100%); }
.token-view, .analytics-view, .create-view, .profile-view, .legal-view { padding-top: 0; }

/* Brand intro */
.raill-intro {
  position: relative;
  min-height: 356px;
  margin-bottom: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr);
  align-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(232,251,247,.035), transparent 47%),
    #032222;
  box-shadow: var(--raill-shadow);
}
.raill-intro::before,
.raill-intro::after {
  content: "";
  position: absolute;
  left: 0;
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), rgba(132,255,130,0));
  opacity: .58;
}
.raill-intro::before { top: 39px; }
.raill-intro::after { bottom: 39px; }
.raill-intro-copy {
  position: relative;
  z-index: 2;
  padding: 56px 32px 56px 60px;
}
.raill-intro h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-family: var(--raill-font);
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 650;
  line-height: .96;
  letter-spacing: -.055em;
}
.raill-intro p {
  max-width: 620px;
  margin: 26px 0 0;
  color: #a4c3be;
  font-size: 16px;
  line-height: 1.65;
}
.raill-intro-actions { display: flex; gap: 10px; margin-top: 34px; }
.raill-primary,
.raill-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.raill-primary { border: 1px solid var(--lime); background: var(--lime); color: #001e1e; }
.raill-primary:hover { background: #a1ff9f; }
.raill-secondary { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.raill-secondary:hover { border-color: rgba(232,251,247,.5); background: rgba(232,251,247,.05); }
.raill-intro-mark {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(132,255,130,.035)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(232,251,247,.035) 48px 49px);
}
.raill-intro-mark::before,
.raill-intro-mark::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 10px;
  right: -24%;
  border-top: 2px solid rgba(232,251,247,.38);
  border-bottom: 2px solid rgba(132,255,130,.55);
  transform: rotate(-17deg);
}
.raill-intro-mark::before { top: 31%; }
.raill-intro-mark::after { top: 64%; opacity: .35; }
.raill-intro-mark img {
  position: relative;
  z-index: 2;
  width: min(370px, 82%);
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.34));
}
.rail-pulse {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  right: 15%;
  top: 23%;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(109,245,255,.10), 0 0 24px var(--cyan);
}

/* Search and filters */
.explore-toolbar { gap: 10px; margin-bottom: 14px; }
.search-box {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(6,38,38,.86);
  box-shadow: none;
}
.search-box:focus-within { border-color: rgba(132,255,130,.62); box-shadow: 0 0 0 3px rgba(132,255,130,.08); }
.search-box input { color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: #759793; }
.search-box > .lucide { color: #8fb2ad; }
kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(232,251,247,.04);
  color: #799994;
  font-family: var(--raill-mono);
}
.outline-button,
.back-button,
.about-actions button,
.about-actions .button-link,
.profile-actions button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(232,251,247,.035);
  color: #cde4df;
  box-shadow: none;
}
.outline-button { height: 50px; padding: 0 18px; }
.outline-button:hover,
.back-button:hover,
.about-actions button:hover,
.about-actions .button-link:hover { border-color: var(--lime); color: var(--text); background: rgba(132,255,130,.055); }

/* Panels */
.graduated-panel,
.explore-panel,
.panel,
.about-card,
.create-workspace,
.profile-card,
.legal-document,
.legal-toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6,38,38,.90);
  box-shadow: none;
}
.graduated-panel {
  position: relative;
  padding: 26px;
  margin-bottom: 18px;
  border-color: rgba(132,255,130,.22);
  background: linear-gradient(105deg, rgba(132,255,130,.055), transparent 42%), rgba(6,38,38,.94);
}
.explore-panel { padding: 26px; }
.section-heading { margin-bottom: 22px; }
.title-row { gap: 11px; }
.title-row h1,
.analytics-heading h1,
.create-workspace h1,
.legal-hero h1 {
  color: var(--text);
  font-family: var(--raill-font);
  font-weight: 650;
  letter-spacing: -.03em;
}
.title-row h1 { font-size: 27px; }
.section-heading p { color: #8fb2ad; font-size: 14px; line-height: 1.55; }
.count-pill,
.count-pill.neutral {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(232,251,247,.035);
  color: #99bbb5;
  font-family: var(--raill-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.graduated-panel .count-pill { border-color: rgba(132,255,130,.25); color: var(--lime); }
.explore-header { gap: 24px; align-items: flex-start; }
.explore-filters { gap: 8px; }
.filter-group,
.mode-tabs,
.profile-tabs,
.chart-times {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,24,24,.72);
}
.filter-group button,
.mode-tabs button,
.profile-tabs button,
.chart-times button {
  border-radius: 5px;
  color: #7fa09b;
  font-family: var(--raill-font);
  font-size: 11px;
  font-weight: 650;
}
.filter-group button.active,
.mode-tabs button.active,
.profile-tabs button.active,
.chart-times button.active,
.filter-group button:hover {
  background: rgba(232,251,247,.09);
  color: var(--text);
}
.feed-state {
  min-height: 180px;
  border: 1px dashed rgba(232,251,247,.17);
  border-radius: 8px;
  background: rgba(0,24,24,.36);
  color: #88aaa5;
}
.feed-state h2 { color: var(--text); font-family: var(--raill-font); font-size: 15px; font-weight: 650; letter-spacing: 0; }
.feed-state p { max-width: 520px; color: #82a39f; font-size: 13px; line-height: 1.55; }
.feed-state button { border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; color: var(--text); }

/* Token cards */
.token-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.token-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #082b2b;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.token-card:hover,
.token-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(132,255,130,.46);
  background: #0b3231;
}
.token-image { border-radius: 7px; background: #001e1e; }
.token-image img { filter: saturate(.92); }
.badge {
  top: 9px;
  left: 9px;
  padding: 5px 7px;
  border: 1px solid rgba(232,251,247,.17);
  border-radius: 5px;
  background: rgba(0,30,30,.82);
  color: var(--text);
  font-family: var(--raill-mono);
  font-size: 9px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.token-name { margin: 12px 0 2px; color: var(--text); font-family: var(--raill-font); font-size: 15px; font-weight: 650; }
.token-ticker,
.token-meta { color: #749691; font-family: var(--raill-mono); }
.market-cap { color: var(--text); font-family: var(--raill-mono); font-size: 17px; }
.market-cap small { color: #6f918c; font-family: var(--raill-font); font-weight: 500; }
.progress-track { background: rgba(232,251,247,.10); }
.progress-track i { background: var(--lime); }
.progress-row > span { color: #82a39f; font-family: var(--raill-mono); }

/* Token detail / trading */
.back-button { margin-bottom: 12px; }
.about-card { min-height: 0; padding: 22px; }
.about-card h2,
.creator-tools h2,
.chat-title h2,
.activity-panel h2 { font-family: var(--raill-font); letter-spacing: -.02em; }
.about-copy p { color: #99b7b2; line-height: 1.65; }
.market-layout { gap: 12px; }
.trade-column,
.chart-column,
.chat-column { border: 1px solid var(--line); border-radius: 12px; background: #062626; box-shadow: none; }
.token-identity img { border: 1px solid var(--line); border-radius: 9px; }
.token-identity h1 { font-family: var(--raill-font); font-weight: 650; letter-spacing: -.02em; }
.token-identity p { font-family: var(--raill-mono); color: #799b96; }
.amount-box,
.limit-target,
.orders-list,
.chat-scroll {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(0,24,24,.58);
}
.amount-box input,
.target-input input { color: var(--text); font-family: var(--raill-font); }
.asset-pill,
.max-pill {
  border-radius: 6px;
  background: rgba(232,251,247,.08);
  color: #cce3de;
}
.percent-row button,
.slippage-control > button,
.chart-controls > button,
.advanced-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(232,251,247,.035);
  color: #a4c2bd;
}
.percent-row button:hover,
.slippage-control > button:hover { border-color: rgba(132,255,130,.5); color: var(--text); }
.trade-submit,
.launch-submit,
.primary,
.primary-modal-button,
.chat-gate {
  border: 1px solid var(--lime);
  border-radius: 8px;
  background: var(--lime);
  color: #001e1e;
  font-family: var(--raill-font);
  font-weight: 750;
  box-shadow: none;
}
.trade-submit:disabled,
.launch-submit:disabled,
.chat-gate:disabled {
  border-color: var(--line);
  background: rgba(232,251,247,.055);
  color: #64837e;
}
.metric-strip { border: 1px solid var(--line); border-radius: 10px; background: #062626; }
.metric-strip > div { background: transparent; border-color: var(--line); }
.metric-strip span { color: #759691; font-family: var(--raill-font); }
.metric-strip strong { color: var(--text); font-family: var(--raill-mono); }
.chart-column { background: #032222; }
.chart-head > div:first-child > strong { color: var(--text); font-family: var(--raill-font); font-weight: 600; letter-spacing: -.04em; }
.chart-head > div:first-child > p,
.chart-head > div:first-child > p time { color: var(--lime); }
.market-chart { border: 1px solid rgba(232,251,247,.08); border-radius: 8px; background: #001b1b; box-shadow: none; }
.chart-legend { color: #7e9f9a; }
.chat-message { border-color: var(--line); background: transparent; }
.chat-message:hover { background: rgba(232,251,247,.035) !important; }
.chat-message b { font-family: var(--raill-font); }
.chat-message p { color: #abc5c0; }
.activity-panel { border: 1px solid var(--line); border-radius: 12px; background: #062626; }
.trade-row,
.holder-row { border-color: var(--line); }

/* Creator rewards */
.creator-tools { margin-top: 12px; }
.creator-tools-head { border-color: var(--line); }
.creator-tools-head > span { border: 1px solid rgba(132,255,130,.25); border-radius: 5px; background: rgba(132,255,130,.06); color: var(--lime); }
.creator-fee-grid article { border-color: var(--line); background: rgba(0,24,24,.45); }
.creator-fee-grid span,
.creator-fee-grid small { color: #7f9f9a; }
.creator-fee-grid strong { color: var(--text); font-family: var(--raill-mono); }

/* Analytics */
.analytics-hero { padding: 36px; background: linear-gradient(115deg, rgba(132,255,130,.055), transparent 43%), #062626; }
.analytics-heading h1 { font-size: 39px; }
.analytics-heading p,
.analytics-note,
.bar-card > p { color: #8eada8; }
.analytics-heading small { color: var(--lime); font-family: var(--raill-mono); }
.analytics-metrics { border-color: var(--line); }
.analytics-metrics article { border-color: var(--line); background: rgba(0,24,24,.38); }
.analytics-metrics span { color: #7d9d98; }
.analytics-metrics strong { color: var(--text); font-family: var(--raill-mono); }
.analytics-charts { gap: 12px; }
.bar-card { padding: 24px; }
.bar-card h2 { font-family: var(--raill-font); font-weight: 650; }
.bar-card > div > strong { color: var(--lime); font-family: var(--raill-mono); }
.bar-chart { border-color: var(--line); background: #001e1e; }

/* Create */
.create-workspace { grid-template-columns: minmax(0, 1fr) 360px; overflow: hidden; }
.create-workspace form { padding: 38px; }
.create-workspace h1 { margin-bottom: 30px; font-size: 36px; }
.create-workspace label { color: #b7cfca; font-size: 13px; font-weight: 650; }
.create-workspace label > small,
.field-feedback,
#developer-buy-help { color: #789994; font-weight: 500; }
.create-workspace input,
.create-workspace textarea,
.edit-profile-modal input,
.edit-profile-modal textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #001e1e;
  color: var(--text);
  box-shadow: none;
}
.create-workspace input:focus,
.create-workspace textarea:focus,
.edit-profile-modal input:focus,
.edit-profile-modal textarea:focus { border-color: rgba(132,255,130,.58); box-shadow: 0 0 0 3px rgba(132,255,130,.07); }
.upload-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,24,24,.48);
  color: var(--text);
}
.upload-button:hover { border-color: rgba(132,255,130,.48); }
.upload-thumb { border-radius: 6px; background: rgba(132,255,130,.07); color: var(--lime); }
.usdc-field { border: 1px solid var(--line); border-radius: 8px; background: #001e1e; }
.usdc-field input { border: 0; }
.launch-total { border-color: var(--line); background: rgba(132,255,130,.045); }
.token-preview { border-left: 1px solid var(--line); background: #001e1e; }
.preview-card { border: 1px solid var(--line); border-radius: 10px; background: #082b2b; box-shadow: none; }
.preview-image { border-radius: 7px; background: #001818; }
.preview-card h2 { font-family: var(--raill-font); }

/* Profile */
.profile-card { padding: 30px; }
.profile-avatar { border: 1px solid var(--line); border-radius: 10px; background: #001e1e; }
.profile-id h1 { font-family: var(--raill-font); font-weight: 650; }
.profile-id p,
.profile-copy { color: #7d9d98; font-family: var(--raill-mono); }
.profile-metrics article { border-color: var(--line); background: rgba(0,24,24,.45); }
.profile-metrics strong { font-family: var(--raill-mono); }
.profile-empty { border-color: var(--line); background: #001e1e; }
.profile-empty h3 { font-family: var(--raill-font); }

/* Footer */
.site-footer {
  width: min(1320px, calc(100% - 48px));
  margin: 92px auto 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #032222;
  box-shadow: none;
}
.footer-main { gap: 52px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; }
.footer-logo img { width: 38px; height: 38px; object-fit: contain; }
.footer-logo span { font-size: 18px; }
.footer-about p,
.footer-risk p,
.footer-column a,
.footer-bottom { color: #819f9a; }
.footer-column h3,
.footer-risk h3 { color: #d6ebe7; font-family: var(--raill-font); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a:hover,
.footer-bottom a:hover { color: var(--lime); }
.footer-bottom { border-color: var(--line); font-family: var(--raill-mono); font-size: 11px; }

/* Dialogs / feedback */
.modal-backdrop { background: rgba(0,12,12,.82); backdrop-filter: blur(10px); }
.launch-modal,
.edit-profile-modal,
.success-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #062626;
  box-shadow: 0 30px 100px rgba(0,0,0,.48);
}
.launch-art { background: #001e1e; }
.launch-raill-logo { object-fit: contain; filter: none; }
.launch-pixel-orbit { display: none; }
.launch-modal h2,
.edit-profile-modal h2,
.success-card h1 { font-family: var(--raill-font); }
.launch-summary div { border-color: var(--line); background: rgba(0,24,24,.45); }
.toast { border: 1px solid var(--line-strong); border-radius: 8px; background: #0a3030; box-shadow: 0 14px 42px rgba(0,0,0,.32); }

/* Legal */
.legal-hero { border-color: var(--line); background: linear-gradient(115deg, rgba(132,255,130,.05), transparent 45%), #062626; }
.legal-kicker,
.legal-date { color: var(--lime); font-family: var(--raill-mono); }
.legal-summary,
.legal-section p,
.legal-section li { color: #9ab7b2; }
.legal-section { border-color: var(--line); }
.legal-section > span { color: #668782; font-family: var(--raill-mono); }

/* Responsive */
@media (max-width: 1100px) {
  .token-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .raill-intro { grid-template-columns: 1fr 340px; }
  .raill-intro-copy { padding-left: 42px; }
  .create-workspace { grid-template-columns: minmax(0,1fr) 320px; }
}
@media (max-width: 820px) {
  body { background-size: 36px 36px, 36px 36px, auto, auto; }
  .topbar, .topbar.sticky { height: 64px; }
  .nav-inner { width: calc(100% - 24px); }
  .brand-and-nav { gap: 18px; }
  .brand img, .topbar.sticky .brand img { width: 36px; height: 36px; }
  .brand-wordmark { font-size: 16px; }
  .segmented-nav { gap: 13px; }
  .segmented-nav a { padding: 22px 0 20px; font-size: 12px; }
  .network-status { display: none; }
  .wallet-button, .wallet-button.disconnected { min-width: 94px; height: 38px; padding: 0 12px; }
  .app-shell { width: calc(100% - 24px); margin-top: 18px; }
  .raill-intro { min-height: 0; grid-template-columns: 1fr; }
  .raill-intro-copy { padding: 38px 24px 28px; }
  .raill-intro h1 { font-size: clamp(42px, 13vw, 64px); }
  .raill-intro p { margin-top: 20px; font-size: 14px; }
  .raill-intro-actions { margin-top: 26px; }
  .raill-intro-mark { min-height: 260px; border-top: 1px solid var(--line); }
  .raill-intro-mark img { width: min(280px, 72%); }
  .explore-toolbar { align-items: stretch; }
  .search-box { min-width: 0; }
  .outline-button { padding: 0 14px; }
  .graduated-panel, .explore-panel { padding: 18px; }
  .explore-header { display: block; }
  .explore-filters { margin-top: 16px; overflow-x: auto; padding-bottom: 3px; }
  .filter-group { flex: 0 0 auto; }
  .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .create-workspace { display: block; }
  .create-workspace form { padding: 24px 18px; }
  .token-preview { border-top: 1px solid var(--line); border-left: 0; }
  .site-footer { width: calc(100% - 24px); margin-top: 54px; padding: 24px 20px; }
  .footer-main { gap: 30px; }
}
@media (max-width: 520px) {
  .brand-wordmark { display: none; }
  .segmented-nav { gap: 10px; }
  .segmented-nav a { font-size: 11px; }
  .wallet-button, .wallet-button.disconnected { min-width: 84px; font-size: 12px; }
  .raill-intro-copy { padding: 32px 20px 26px; }
  .raill-intro h1 { font-size: 43px; }
  .raill-intro-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .raill-primary, .raill-secondary { padding: 0 12px; }
  .raill-intro-mark { min-height: 218px; }
  .explore-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .search-box kbd { display: none; }
  .token-grid { grid-template-columns: 1fr; }
  .token-card { display: grid; grid-template-columns: 96px minmax(0,1fr); column-gap: 12px; align-items: start; }
  .token-image { grid-row: 1 / span 6; height: 96px; padding-bottom: 0; }
  .token-name { margin-top: 3px; }
  .token-card .progress-row, .token-card .token-meta { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-about, .footer-risk { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Final specificity normalization: remove inherited pixel/game chrome. */
html body .nav-inner {
  width: min(1320px, calc(100% - 48px));
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html body .topbar.sticky .nav-inner { width: min(1320px, calc(100% - 48px)); height: 100%; padding: 0; border-radius: 0; transform: none; }
html body .segmented-nav { box-shadow: none; }
html body .segmented-nav a,
html body .wallet-button,
html body .outline-button,
html body .filter-group button,
html body .mode-tabs button,
html body .profile-tabs button,
html body .chart-times button,
html body .title-row h1,
html body .feed-state h2,
html body .token-name,
html body .analytics-heading h1,
html body .create-workspace h1,
html body .launch-submit,
html body .trade-submit,
html body .chat-gate,
html body .footer-column h3,
html body .footer-risk h3 {
  font-family: var(--raill-font) !important;
  letter-spacing: normal;
  text-shadow: none;
}
html body .segmented-nav a { text-transform: none; }
html body .wallet-button,
html body .outline-button,
html body .launch-submit,
html body .trade-submit,
html body .chat-gate { text-transform: none; }
html body .token-ticker,
html body .token-meta,
html body .market-cap,
html body .count-pill,
html body .network-status,
html body kbd,
html body code,
html body .footer-bottom,
html body .analytics-heading small,
html body .metric-strip strong {
  font-family: var(--raill-mono) !important;
}
html body .topbar.sticky { border-radius: 0; }
@media (max-width: 820px) {
  html body .nav-inner,
  html body .topbar.sticky .nav-inner { width: calc(100% - 24px); }
}

/* Create surface hard reset — remove copied pixel/space styling. */
html body .create-view > .back-button {
  padding: 0 12px !important;
  height: 38px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #abc5c0 !important;
  box-shadow: none !important;
}
html body .create-workspace {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 340px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #062626 !important;
  box-shadow: var(--raill-shadow) !important;
}
html body .create-workspace::before,
html body .create-workspace::after,
html body #launch-form::before,
html body #launch-form::after,
html body .token-preview::before,
html body .token-preview::after,
html body .preview-card::before,
html body .preview-card::after { display: none !important; content: none !important; }
html body .create-workspace form {
  padding: 42px !important;
  background: #062626 !important;
}
html body .create-workspace h1 {
  margin: 0 0 32px !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-size: 38px !important;
  font-weight: 650 !important;
  line-height: 1.05 !important;
}
html body .create-workspace h1::after { display: none !important; }
html body .create-workspace label {
  margin: 0 0 20px !important;
  color: #c5dcd7 !important;
  font-family: var(--raill-font) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html body .create-workspace label > small {
  display: inline !important;
  margin-left: 4px !important;
  color: #71938e !important;
  font-family: var(--raill-font) !important;
  font-size: 11px !important;
  text-transform: none !important;
}
html body .create-workspace input,
html body .create-workspace textarea {
  width: 100% !important;
  margin-top: 8px !important;
  padding: 13px 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: #001e1e !important;
  color: var(--text) !important;
  font-family: var(--raill-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html body .create-workspace textarea { min-height: 116px !important; resize: vertical !important; }
html body .create-workspace input::placeholder,
html body .create-workspace textarea::placeholder { color: #5d7d78 !important; }
html body .create-workspace input.invalid,
html body .create-workspace textarea.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255,137,145,.08) !important; }
html body .create-workspace input.valid { border-color: rgba(132,255,130,.42) !important; }
html body .field-feedback {
  display: block !important;
  margin: 6px 0 0 !important;
  color: #6f918c !important;
  font-family: var(--raill-font) !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
html body .field-feedback.error { color: var(--danger) !important; }
html body .form-row { gap: 16px !important; }
html body .upload-button {
  min-height: 64px !important;
  margin-top: 8px !important;
  padding: 9px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
html body .upload-button:hover { border-color: rgba(132,255,130,.5) !important; background: rgba(132,255,130,.025) !important; }
html body .upload-button b { font-family: var(--raill-font) !important; font-size: 13px !important; }
html body .upload-thumb {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(132,255,130,.18) !important;
  border-radius: 6px !important;
  background: rgba(132,255,130,.06) !important;
  color: var(--lime) !important;
  box-shadow: none !important;
}
html body .usdc-field {
  margin-top: 8px !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
html body .usdc-field input { margin: 0 !important; border: 0 !important; background: transparent !important; }
html body .usdc-field b { color: #bcd4cf !important; font-family: var(--raill-font) !important; }
html body #developer-max {
  height: 28px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(132,255,130,.26) !important;
  border-radius: 5px !important;
  background: rgba(132,255,130,.07) !important;
  color: var(--lime) !important;
  font-family: var(--raill-font) !important;
  font-size: 10px !important;
}
html body .advanced-button {
  min-height: 44px !important;
  margin: 6px 0 18px !important;
  padding: 0 13px !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #9ab8b3 !important;
  font-family: var(--raill-font) !important;
  font-size: 12px !important;
  box-shadow: none !important;
}
html body .launch-total {
  margin: 0 0 14px !important;
  padding: 14px 0 !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
  color: #86a7a2 !important;
}
html body .launch-total b { color: #b9d1cc !important; font-family: var(--raill-mono) !important; font-size: 10px !important; }
html body .launch-submit {
  min-height: 52px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}
html body .launch-submit:disabled {
  border-color: var(--line) !important;
  background: rgba(232,251,247,.06) !important;
  color: #63827d !important;
  opacity: 1 !important;
}
html body .token-preview {
  padding: 34px 24px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  border-left: 1px solid var(--line) !important;
  background: #001e1e !important;
}
html body .preview-card {
  position: sticky !important;
  top: 96px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: #082b2b !important;
  box-shadow: none !important;
}
html body .preview-image {
  aspect-ratio: 1 !important;
  height: auto !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: #001818 !important;
  color: #6f918c !important;
}
html body .preview-card h2 {
  margin: 16px 0 2px !important;
  color: var(--text) !important;
  font-family: var(--raill-font) !important;
  font-size: 23px !important;
  font-weight: 650 !important;
  letter-spacing: -.02em !important;
}
html body #preview-ticker { color: var(--lime) !important; font-family: var(--raill-mono) !important; }
html body .preview-description { min-height: 44px !important; color: #829f9a !important; font-family: var(--raill-font) !important; font-size: 12px !important; line-height: 1.5 !important; }
html body .preview-card dl { border-top: 1px solid var(--line) !important; }
html body .preview-card dl > div { padding: 12px 0 !important; border-color: var(--line) !important; }
html body .preview-card dt { color: #72938e !important; font-family: var(--raill-font) !important; font-size: 11px !important; }
html body .preview-card dd { color: #c8dfda !important; font-family: var(--raill-font) !important; font-size: 12px !important; text-align: right !important; }
@media (max-width: 820px) {
  html body .create-workspace { display: block !important; }
  html body .create-workspace form { padding: 26px 18px !important; }
  html body .token-preview { border-top: 1px solid var(--line) !important; border-left: 0 !important; }
  html body .preview-card { position: static !important; }
}

/* Remove inherited decorative pseudo-elements from the Arcane presentation layer. */
html body .brand::before,
html body .brand::after,
html body .upload-button::before,
html body .upload-button::after,
html body .analytics-hero::before,
html body .analytics-hero::after,
html body .bar-card::before,
html body .bar-card::after,
html body .analytics-charts::before,
html body .analytics-charts::after { display: none !important; content: none !important; }

/* Analytics surface hard reset. */
html body .analytics-hero {
  padding: 36px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: linear-gradient(115deg, rgba(132,255,130,.05), transparent 44%), #062626 !important;
  box-shadow: none !important;
}
html body .analytics-heading {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
html body .analytics-heading > div:first-child { min-width: 0 !important; }
html body .analytics-heading h1 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-size: 38px !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  text-shadow: none !important;
}
html body .analytics-heading h1::after { display: none !important; }
html body .analytics-heading p {
  margin: 10px 0 0 !important;
  color: #91aea9 !important;
  font-family: var(--raill-font) !important;
  font-size: 14px !important;
}
html body .analytics-heading small {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(132,255,130,.20) !important;
  border-radius: 6px !important;
  background: rgba(132,255,130,.055) !important;
  color: var(--lime) !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}
html body .analytics-metrics {
  margin-top: 30px !important;
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: #001e1e !important;
}
html body .analytics-metrics article {
  min-height: 146px !important;
  padding: 24px !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .analytics-metrics article:last-child { border-right: 0 !important; }
html body .analytics-metrics span,
html body .analytics-metrics p {
  color: #789994 !important;
  font-family: var(--raill-font) !important;
  font-size: 12px !important;
}
html body .analytics-metrics strong {
  margin: 24px 0 18px !important;
  color: var(--text) !important;
  font-family: var(--raill-mono) !important;
  font-size: 31px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}
html body .analytics-note {
  margin: 20px 0 0 !important;
  color: #779793 !important;
  font-family: var(--raill-font) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html body .analytics-charts {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 12px !important;
}
html body .bar-card {
  padding: 24px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #062626 !important;
  box-shadow: none !important;
}
html body .bar-card > div:first-child { display: flex !important; align-items: center !important; justify-content: space-between !important; }
html body .bar-card h2 {
  margin: 0 !important;
  color: var(--text) !important;
  font-family: var(--raill-font) !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  letter-spacing: -.02em !important;
  text-shadow: none !important;
}
html body .bar-card > div > strong { color: var(--lime) !important; font-family: var(--raill-mono) !important; }
html body .bar-card > p { margin: 8px 0 18px !important; color: #819f9a !important; font-family: var(--raill-font) !important; font-size: 12px !important; }
html body .bar-chart {
  height: 280px !important;
  padding: 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
@media (max-width: 820px) {
  html body .analytics-hero { padding: 24px 18px !important; }
  html body .analytics-heading { display: block !important; }
  html body .analytics-heading small { margin-top: 16px !important; }
  html body .analytics-metrics { grid-template-columns: 1fr !important; }
  html body .analytics-metrics article { min-height: 112px !important; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  html body .analytics-metrics article:last-child { border-bottom: 0 !important; }
  html body .analytics-charts { grid-template-columns: 1fr !important; }
}

/* Defeat higher-specificity legacy chart panel skin. */
html body .analytics-charts > .panel.bar-card {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #062626 !important;
  box-shadow: none !important;
}
html body .analytics-metrics article:nth-child(1),
html body .analytics-metrics article:nth-child(2),
html body .analytics-metrics article:nth-child(3) { background: transparent !important; box-shadow: none !important; }
html body .analytics-metrics article::before { background: linear-gradient(90deg, var(--lime), transparent) !important; opacity: .45 !important; }

/* Profile surface hard reset. */
html body .profile-card.panel,
html body .profile-content.panel {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #062626 !important;
  box-shadow: none !important;
}
html body .profile-card::before,
html body .profile-card::after,
html body .profile-content::before,
html body .profile-content::after,
html body .profile-avatar::before,
html body .profile-avatar::after { display: none !important; content: none !important; }
html body .profile-card { padding: 30px !important; }
html body .profile-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 0 0 24px !important;
  border-bottom: 1px solid var(--line) !important;
}
html body .profile-id { gap: 14px !important; }
html body .profile-avatar {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  color: #91b2ac !important;
  box-shadow: none !important;
}
html body .profile-avatar .lucide { width: 20px !important; height: 20px !important; }
html body .profile-id h1 {
  margin: 0 !important;
  color: var(--text) !important;
  font-family: var(--raill-font) !important;
  font-size: 28px !important;
  font-weight: 650 !important;
  letter-spacing: -.025em !important;
  text-shadow: none !important;
}
html body .profile-id p {
  margin: 5px 0 0 !important;
  color: var(--lime) !important;
  font-family: var(--raill-mono) !important;
  font-size: 10px !important;
}
html body .profile-actions { display: flex !important; gap: 8px !important; }
html body .profile-actions button {
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #abc5c0 !important;
  font-family: var(--raill-font) !important;
  font-size: 11px !important;
  box-shadow: none !important;
  transform: none !important;
}
html body .profile-actions button:hover { border-color: rgba(132,255,130,.45) !important; color: var(--text) !important; transform: none !important; }
html body .profile-actions .danger { border-color: rgba(255,137,145,.25) !important; background: rgba(255,137,145,.035) !important; color: #ffabb1 !important; }
html body .profile-metrics {
  margin: 24px 0 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: #001e1e !important;
}
html body .profile-metrics article,
html body .profile-metrics article:nth-child(2),
html body .profile-metrics article:nth-child(3),
html body .profile-metrics article:nth-child(3n+2),
html body .profile-metrics article:nth-child(3n) {
  min-height: 126px !important;
  padding: 22px !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .profile-metrics article:nth-child(3n) { border-right: 0 !important; }
html body .profile-metrics article:nth-child(n+4) { border-bottom: 0 !important; }
html body .profile-metrics article::before { width: 44px !important; height: 2px !important; background: linear-gradient(90deg,var(--lime),transparent) !important; opacity: .4 !important; }
html body .profile-metrics span,
html body .profile-metrics p { color: #769792 !important; font-family: var(--raill-font) !important; font-size: 11px !important; }
html body .profile-metrics strong,
html body .profile-metrics article:nth-child(3) strong,
html body .profile-metrics article:nth-child(6) strong {
  margin: 18px 0 12px !important;
  color: var(--text) !important;
  font-family: var(--raill-mono) !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}
html body .usdc-dot {
  width: 10px !important;
  height: 10px !important;
  border: 2px solid var(--lime) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .profile-tabs {
  width: fit-content !important;
  margin-top: 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
html body .profile-tabs button { border-radius: 5px !important; background: transparent !important; color: #789994 !important; box-shadow: none !important; }
html body .profile-tabs button.active { background: rgba(232,251,247,.09) !important; color: var(--text) !important; box-shadow: none !important; }
html body .profile-content {
  min-height: 180px !important;
  margin-top: 12px !important;
  padding: 24px !important;
}
html body .profile-empty {
  min-height: 142px !important;
  display: grid !important;
  place-content: center !important;
  border: 1px dashed var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  text-align: center !important;
}
html body .profile-empty h3 { color: var(--text) !important; font-family: var(--raill-font) !important; text-shadow: none !important; }
html body .profile-empty p { color: #779793 !important; font-family: var(--raill-font) !important; }
html body .profile-empty button { border: 1px solid var(--line-strong) !important; border-radius: 7px !important; background: transparent !important; color: var(--text) !important; }
html body, html body a, html body button { cursor: auto; }
html body a, html body button, html body [role="button"] { cursor: pointer !important; }
html body input, html body textarea { cursor: text !important; }
html body canvas, html body .market-chart { cursor: crosshair !important; }
@media (max-width: 820px) {
  html body .profile-head { display: block !important; }
  html body .profile-actions { margin-top: 18px !important; overflow-x: auto !important; }
  html body .profile-metrics { grid-template-columns: 1fr 1fr !important; }
  html body .profile-metrics article,
  html body .profile-metrics article:nth-child(3n) { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  html body .profile-metrics article:nth-child(2n) { border-right: 0 !important; }
  html body .profile-metrics article:nth-child(n+5) { border-bottom: 0 !important; }
}
@media (max-width: 520px) {
  html body .profile-card { padding: 20px !important; }
  html body .profile-metrics { grid-template-columns: 1fr !important; }
  html body .profile-metrics article,
  html body .profile-metrics article:nth-child(n) { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  html body .profile-metrics article:last-child { border-bottom: 0 !important; }
}

/* Token, trading, chart and chat surfaces. */
html body .token-view .panel,
html body .token-view .about-card,
html body .token-view .trade-column,
html body .token-view .chart-column,
html body .token-view .chat-column,
html body .token-view .activity-panel,
html body .token-view .creator-tools {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #062626 !important;
  box-shadow: none !important;
}
html body .token-view .panel::before,
html body .token-view .panel::after,
html body .token-view .about-card::before,
html body .token-view .about-card::after,
html body .token-identity::before,
html body .token-identity::after,
html body .chat-title::before,
html body .chat-title::after { display: none !important; content: none !important; }
html body .token-view > .back-button {
  height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #abc5c0 !important;
  box-shadow: none !important;
}
html body .token-view .about-card {
  min-height: 0 !important;
  padding: 20px 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 24px !important;
  align-items: end !important;
}
html body .token-view .about-card h2 {
  margin: 0 0 8px !important;
  color: var(--text) !important;
  font-family: var(--raill-font) !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  text-shadow: none !important;
}
html body .token-view .about-copy p { margin: 0 !important; color: #8eada8 !important; font-size: 13px !important; }
html body .token-view .about-actions { gap: 7px !important; }
html body .token-view .about-actions button,
html body .token-view .about-actions .button-link {
  min-height: 36px !important;
  padding: 0 11px !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #a8c3be !important;
  font-family: var(--raill-font) !important;
  font-size: 11px !important;
  box-shadow: none !important;
}
html body .market-layout { gap: 10px !important; align-items: stretch !important; }
html body .token-view .trade-column,
html body .token-view .chat-column { padding: 16px !important; }
html body .token-view .chart-column { padding: 0 !important; overflow: hidden !important; }
html body .token-identity { margin-bottom: 14px !important; }
html body .token-identity img {
  width: 54px !important;
  height: 54px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
html body .token-identity h1 { color: var(--text) !important; font-size: 21px !important; font-weight: 650 !important; text-shadow: none !important; }
html body .token-identity p { color: #789994 !important; font-family: var(--raill-mono) !important; font-size: 10px !important; }
html body .token-view .mode-tabs {
  margin-bottom: 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
html body .token-view .mode-tabs button { border-radius: 5px !important; background: transparent !important; color: #789994 !important; box-shadow: none !important; }
html body .token-view .mode-tabs button.active { background: rgba(232,251,247,.09) !important; color: var(--text) !important; }
html body .amount-box,
html body .limit-target,
html body .orders-list {
  padding: 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
html body .amount-box > span,
html body .amount-box small { color: #73948f !important; font-family: var(--raill-font) !important; }
html body .amount-box input {
  color: var(--text) !important;
  font-family: var(--raill-font) !important;
  font-size: 38px !important;
  font-weight: 550 !important;
  text-shadow: none !important;
}
html body .asset-pill,
html body .max-pill {
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  background: rgba(232,251,247,.065) !important;
  color: #c4dcd7 !important;
  box-shadow: none !important;
}
html body .swap-button {
  border: 4px solid #062626 !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  color: #abc5c0 !important;
  box-shadow: 0 0 0 1px var(--line) !important;
}
html body .percent-row { gap: 7px !important; }
html body .percent-row button,
html body .slippage-control > button {
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #8facA7 !important;
  box-shadow: none !important;
}
html body .trade-submit {
  min-height: 52px !important;
  border-radius: 8px !important;
  background: var(--lime) !important;
  color: #001e1e !important;
  box-shadow: none !important;
}
html body .trade-submit:disabled { border-color: var(--line) !important; background: rgba(232,251,247,.055) !important; color: #63827d !important; }
html body .metric-strip {
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: #062626 !important;
}
html body .metric-strip > div { border-color: var(--line) !important; background: transparent !important; }
html body .metric-strip span { color: #789994 !important; font-family: var(--raill-font) !important; }
html body .metric-strip strong { color: var(--text) !important; font-family: var(--raill-mono) !important; text-shadow: none !important; }
html body .chart-head {
  padding: 12px 16px 8px !important;
  border-bottom: 0 !important;
  background: #062626 !important;
}
html body .chart-head > div:first-child > strong { color: var(--text) !important; font-family: var(--raill-font) !important; text-shadow: none !important; }
html body .chart-controls > button,
html body .chart-times {
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
html body .chart-times button { border-radius: 4px !important; color: #789994 !important; background: transparent !important; }
html body .chart-times button.active { background: rgba(232,251,247,.09) !important; color: var(--text) !important; }
html body .market-chart {
  margin: 0 12px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
  box-shadow: none !important;
}
html body .chat-title { padding-bottom: 12px !important; border-bottom: 1px solid var(--line) !important; }
html body .chat-title h2 { color: var(--text) !important; font-family: var(--raill-font) !important; font-weight: 650 !important; text-shadow: none !important; }
html body .chat-title p { color: #789994 !important; font-family: var(--raill-font) !important; }
html body .chat-scroll { border: 0 !important; border-radius: 0 !important; background: transparent !important; }
html body .chat-empty h3 { color: var(--text) !important; font-family: var(--raill-font) !important; text-shadow: none !important; }
html body .chat-empty p { color: #789994 !important; }
html body .chat-composer {
  padding: 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #001e1e !important;
}
html body .chat-composer textarea { background: transparent !important; color: var(--text) !important; font-family: var(--raill-font) !important; }
html body .chat-gate { border-radius: 7px !important; }
html body .activity-panel { padding: 0 !important; overflow: hidden !important; }
html body .activity-tabs { padding: 12px !important; border-bottom: 1px solid var(--line) !important; background: #062626 !important; }
html body .activity-tabs button { border: 0 !important; border-radius: 6px !important; background: transparent !important; color: #789994 !important; box-shadow: none !important; }
html body .activity-tabs button.active { background: rgba(232,251,247,.09) !important; color: var(--text) !important; }
html body .trade-list,
html body .holder-list { background: #001e1e !important; }
html body .activity-panel .feed-state { margin: 14px !important; }
html body .creator-tools { padding: 22px !important; }

/* Product typography: keep actions and navigation crisp; reserve mono for live numbers. */
html body .token-view button,
html body .token-view input,
html body .token-view textarea,
html body .token-view select,
html body .token-view .activity-tabs,
html body .token-view .chat-gate,
html body .token-view .trade-empty,
html body .token-view .holder-empty {
  font-family: var(--raill-font) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}
html body .token-view button:disabled {
  cursor: not-allowed !important;
}
html body .token-view .trade-list code,
html body .token-view .holder-list code,
html body .token-view .metric-strip strong,
html body .token-view .amount-field input {
  font-family: var(--raill-mono) !important;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 820px) {
  html body .token-view .about-card { grid-template-columns: 1fr !important; }
  html body .market-layout { grid-template-columns: 1fr !important; }
  html body .token-view .trade-column,
  html body .token-view .chart-column,
  html body .token-view .chat-column { height: auto !important; }
  html body .market-chart { height: 360px !important; }
}

/* RAILL visual pass — compact, tactile, pixel-signal UI */
:root {
  --raill-ink: #001313;
  --raill-panel: rgba(4, 36, 36, .92);
  --raill-panel-deep: #031e21;
  --raill-border: rgba(160, 255, 192, .16);
  --raill-border-hot: rgba(132, 255, 130, .42);
  --raill-grid: rgba(132, 255, 130, .045);
}

html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(90deg, transparent 0 23px, var(--raill-grid) 24px, transparent 25px),
    linear-gradient(0deg, transparent 0 23px, var(--raill-grid) 24px, transparent 25px),
    radial-gradient(circle at 78% -12%, rgba(132,255,130,.14), transparent 28rem),
    radial-gradient(circle at 8% 38%, rgba(109,245,255,.06), transparent 24rem),
    #001818;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.018) 4px 5px);
  mix-blend-mode: screen;
}

.topbar,
.topbar.sticky {
  background: rgba(0, 22, 23, .84);
  border-bottom-color: rgba(160,255,192,.14);
}
.nav-inner { position: relative; }
.nav-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 152px;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: .45;
}
.brand-wordmark { letter-spacing: .18em; }
.brand img { image-rendering: pixelated; }
.network-status { border-radius: 6px; background: rgba(109,245,255,.035); }
.wallet-button,
.wallet-button.disconnected { border-radius: 6px; box-shadow: 3px 3px 0 rgba(0,0,0,.18); }
.wallet-button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0,0,0,.18); }

.app-shell { margin-top: 28px; }
.raill-intro {
  min-height: 332px;
  border-color: var(--raill-border);
  background:
    linear-gradient(104deg, rgba(132,255,130,.08), transparent 34%),
    linear-gradient(90deg, rgba(3,31,32,.98), rgba(5,45,44,.92));
  box-shadow: 12px 12px 0 rgba(0,0,0,.12), var(--raill-shadow);
}
.raill-intro::before,
.raill-intro::after { width: 52%; opacity: .72; }
.raill-intro-copy { padding-left: clamp(34px, 5vw, 72px); }
.raill-intro h1 {
  max-width: 680px;
  font-size: clamp(46px, 5vw, 76px);
  letter-spacing: -.065em;
  line-height: .94;
  text-wrap: balance;
}
.raill-intro p { max-width: 560px; color: #a8c8c3; }
.raill-intro-actions { gap: 10px; }
.raill-primary,
.raill-secondary,
.outline-button { border-radius: 6px; }
.raill-primary { box-shadow: 3px 3px 0 rgba(0,0,0,.2); }
.raill-secondary { background: rgba(232,251,247,.035); }
.raill-intro-mark {
  min-height: 332px;
  background:
    linear-gradient(135deg, transparent 49%, rgba(132,255,130,.11) 50%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(109,245,255,.08) 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, rgba(132,255,130,.10), transparent 16rem);
  background-size: 100% 100%, 100% 100%, auto;
}
.raill-intro-mark img { width: min(440px, 82%); opacity: .94; filter: drop-shadow(0 0 24px rgba(132,255,130,.15)); image-rendering: auto; }
.raill-intro-mark::before,
.raill-intro-mark::after { width: 72%; height: 2px; background: linear-gradient(90deg, transparent, rgba(132,255,130,.56), transparent); }

.explore-toolbar { margin-bottom: 16px; }
.search-box { border-radius: 6px; background: rgba(3,31,32,.88); border-color: var(--raill-border); }
.search-box:focus-within { border-color: var(--raill-border-hot); box-shadow: 0 0 0 3px rgba(132,255,130,.06); }
.search-box input::placeholder { color: #668680; }
.explore-panel,
.graduated-panel {
  border-color: var(--raill-border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(5,39,39,.95), rgba(3,28,31,.96));
  box-shadow: 8px 8px 0 rgba(0,0,0,.09);
}
.graduated-panel { padding-bottom: 20px; }
.section-heading h1 { letter-spacing: -.035em; }
.section-heading p { max-width: 700px; }
.explore-filters { align-items: center; }
.filter-group { border-radius: 6px; background: rgba(0,19,19,.48); }
.filter-group button { border-radius: 4px; }
.filter-group button.active { box-shadow: inset 0 -2px 0 var(--lime); }
.count-pill { border-radius: 4px; font-family: var(--raill-mono); font-variant-numeric: tabular-nums; }

.feed-state {
  position: relative;
  min-height: 190px;
  border-color: rgba(160,255,192,.14);
  background:
    linear-gradient(135deg, rgba(132,255,130,.035), transparent 38%),
    #031e25;
  overflow: hidden;
}
.feed-state::before,
.feed-state::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(132,255,130,.24);
  opacity: .6;
}
.feed-state::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.feed-state::after { right: 18px; bottom: 18px; border-left: 0; border-top: 0; }
.feed-state span {
  width: 10px;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 1px;
  background: var(--lime);
  box-shadow: 16px 0 var(--cyan), 0 16px rgba(132,255,130,.35), 16px 16px rgba(109,245,255,.35);
  transform: rotate(45deg);
}
.feed-state h2 { letter-spacing: -.02em; }
.feed-state p { color: #8eada8; }
.feed-state button { border-radius: 5px; }
.token-grid { gap: 16px; }
.token-card { border-radius: 7px; border-color: var(--raill-border); background: linear-gradient(160deg, #0a3432, #062827); box-shadow: 4px 4px 0 rgba(0,0,0,.12); }
.token-card:hover { border-color: var(--raill-border-hot); transform: translateY(-2px); box-shadow: 6px 8px 0 rgba(0,0,0,.14), 0 0 22px rgba(132,255,130,.06); }
.token-card .token-image { border-radius: 4px; overflow: hidden; background: #001b1c; }
.token-card .token-image img { image-rendering: auto; }
.market-cap,
.metric-strip strong,
.token-meta { font-variant-numeric: tabular-nums; }

.site-footer { border-color: var(--raill-border); border-radius: 10px; background: linear-gradient(180deg, rgba(3,31,32,.96), rgba(1,22,24,.98)); box-shadow: 8px 8px 0 rgba(0,0,0,.08); }
.footer-logo img { image-rendering: pixelated; }
.footer-bottom a { color: var(--lime); }

@media (max-width: 820px) {
  .app-shell { width: min(100% - 24px, 1320px); margin-top: 16px; }
  .raill-intro { box-shadow: 4px 5px 0 rgba(0,0,0,.12); }
  .raill-intro-copy { padding: 30px 24px 26px; }
  .raill-intro h1 { font-size: clamp(42px, 12vw, 62px); }
  .raill-intro-mark { min-height: 240px; }
  .raill-intro-mark img { width: min(300px, 76%); }
  .explore-panel, .graduated-panel { box-shadow: 4px 5px 0 rgba(0,0,0,.1); }
  .section-heading p { font-size: 13px; }
  .feed-state { min-height: 156px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Factory provenance and copyable token address */
.about-copy { min-width: 0; }
.about-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--lime);
  font-family: var(--raill-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--lime);
  background: rgba(132,255,130,.22);
  box-shadow: 0 0 0 3px rgba(132,255,130,.06);
}
.contract-copy-row {
  width: min(100%, 710px);
  min-width: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--raill-border);
  border-radius: 6px;
  background: rgba(0,19,19,.48);
}
.contract-copy-row > span {
  color: #789b96;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contract-copy-row code {
  min-width: 0;
  overflow: hidden;
  color: #dff7f2;
  font-family: var(--raill-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}
.contract-copy-row button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--lime) !important;
  border-radius: 4px !important;
  background: var(--lime) !important;
  color: #001b1b !important;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(0,0,0,.18) !important;
}
.contract-copy-row button:hover { background: #a1ff9f !important; transform: translateY(-1px); }
.contract-copy-row button svg { width: 14px; height: 14px; }
@media (max-width: 620px) {
  .contract-copy-row { grid-template-columns: 1fr auto; }
  .contract-copy-row > span { grid-column: 1 / -1; }
  .contract-copy-row code { font-size: 10px; }
  .contract-copy-row button span { display: none; }
  .contract-copy-row button { width: 36px; padding: 0; }
}

/* Trading workstation refinement */
@media (min-width: 1181px) {
  html body .market-layout {
    grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.35fr) minmax(280px, .68fr) !important;
    gap: 12px !important;
  }
  html body .token-view .trade-column,
  html body .token-view .chart-column,
  html body .token-view .chat-column {
    height: 720px !important;
  }
}
html body .token-view .chart-column {
  position: relative;
  border-color: rgba(132,255,130,.19) !important;
  background: linear-gradient(180deg,#062626,#031f21) !important;
}
html body .metric-strip {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
}
html body .metric-strip > div { min-width: 0 !important; padding: 11px 14px !important; }
html body .metric-strip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .chart-head { min-height: 60px; align-items: center !important; }
html body .chart-head > div:first-child > strong { font-family: var(--raill-mono) !important; font-size: 18px !important; }
html body .chart-head > div:first-child > p { margin-top: 3px !important; color: #78a19a !important; font-size: 10px !important; }
html body .chart-controls { gap: 7px !important; }
html body .chart-controls > button { min-height: 32px !important; }
html body .chart-times button { min-height: 28px !important; font-size: 10px !important; }
html body .chart-legend { min-height: 28px; padding: 0 16px 8px !important; color: #75958f !important; }
html body .market-chart {
  height: 592px !important;
  position: relative !important;
  overflow: hidden !important;
  background:
    linear-gradient(rgba(132,255,130,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(132,255,130,.025) 1px,transparent 1px),
    #001b1d !important;
  background-size: 52px 52px,52px 52px,auto !important;
}
html body .market-chart::after { display: none !important; content: none !important; }
html body .market-chart canvas { position: relative; z-index: 2; image-rendering: auto !important; }
.chart-empty-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(132,255,130,.20);
  border-radius: 6px;
  background: rgba(0,22,23,.90);
  box-shadow: 4px 4px 0 rgba(0,0,0,.14);
  pointer-events: none;
}
.chart-empty-state[hidden] { display: none !important; }
.chart-empty-state strong { display: block; color: #dff7f2; font-size: 12px; }
.chart-empty-state p { margin: 4px 0 0; color: #789994; font-size: 10px; line-height: 1.45; }
.chart-empty-pulse { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 3px; border-radius: 1px; background: var(--lime); box-shadow: 0 0 0 4px rgba(132,255,130,.08); animation: raill-chart-pulse 1.6s steps(2,end) infinite; }
@keyframes raill-chart-pulse { 50% { opacity: .38; } }
html body .token-view .chat-column { background: linear-gradient(180deg,#062626,#042222) !important; }
html body .chat-empty { min-height: 0 !important; flex: 1; }

/* Creator buy input: one compact, aligned monetary control. */
html body .create-workspace .usdc-field {
  min-height: 54px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto auto !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 5px 7px 5px 14px !important;
}
html body .create-workspace .usdc-field input {
  min-width: 0 !important;
  height: 40px !important;
  padding: 0 !important;
  font-family: var(--raill-mono) !important;
  font-size: 16px !important;
  font-variant-numeric: tabular-nums;
}
html body .create-workspace .usdc-field b {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}
html body .create-workspace #developer-max { height: 36px !important; min-width: 46px !important; }
html body #developer-buy-help { display: block !important; margin: 7px 0 0 3px !important; color: #71938e !important; }

/* Launch confirmation dialog: compact RAILL identity, never cropped. */
html body .launch-modal {
  width: min(470px,calc(100% - 28px)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(132,255,130,.22) !important;
  border-radius: 10px !important;
  clip-path: none !important;
  background: #042424 !important;
  box-shadow: 0 28px 90px rgba(0,8,8,.74) !important;
}
html body .launch-modal::before,
html body .launch-modal-body::before { display: none !important; content: none !important; }
html body .launch-art {
  min-height: 112px !important;
  height: 112px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--line) !important;
  background:
    linear-gradient(90deg,transparent 49%,rgba(132,255,130,.14) 50%,transparent 51%),
    linear-gradient(0deg,transparent 49%,rgba(109,245,255,.08) 50%,transparent 51%),
    #001e1e !important;
}
html body .launch-raill-logo {
  width: 86px !important;
  height: 86px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 16px rgba(132,255,130,.12)) !important;
  transform: none !important;
}
html body .launch-modal-body { padding: 22px 24px 24px !important; }
html body .launch-modal-body h2 { color: var(--text) !important; font-size: 20px !important; }
html body .launch-modal-body > p { color: #88a7a2 !important; line-height: 1.5 !important; }
html body .launch-modal dl { border-color: var(--line) !important; }
html body .launch-modal dl div { padding: 8px 0 !important; }
html body .launch-modal dt { color: #789994 !important; }
html body .launch-modal dd { color: #dff7f2 !important; }
html body .launch-modal-actions button { height: 44px !important; border-radius: 7px !important; }
html body .launch-modal-actions .primary { background: var(--lime) !important; color: #001e1e !important; }

@media (max-width: 1180px) and (min-width: 821px) {
  html body .market-layout { grid-template-columns: minmax(340px,.82fr) minmax(500px,1.18fr) !important; }
  html body .token-view .chat-column { grid-column: 1 / -1 !important; height: 360px !important; }
}
@media (max-width: 820px) {
  html body .market-chart { height: 390px !important; }
  .chart-empty-state { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  html body .metric-strip { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html body .create-workspace .usdc-field { grid-template-columns: minmax(0,1fr) auto auto !important; }
}
html body .create-workspace .usdc-field > b,
html body .create-workspace .usdc-field > button {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}
html body .create-workspace .usdc-field > b { width: auto !important; }
html body .create-workspace .usdc-field > input { grid-column: 1 !important; }
html body .create-workspace .usdc-field > b { grid-column: 2 !important; }
html body .create-workspace .usdc-field > button { grid-column: 3 !important; }
