/* The marketing page and the terminal share the same lavender and black. */
.home-hero { display: block; padding-block: clamp(24px,4vw,54px) 40px; }
.hero-copy {
  min-height: clamp(370px,51vw,520px);
  padding: clamp(27px,6vw,84px);
  border-radius: clamp(15px,2vw,26px);
  border: 0;
  box-shadow: none;
}
.hero-copy h1 {
  margin-block: 14px 24px;
  font-size: clamp(3.05rem,8vw,7.25rem);
  line-height: .89;
  letter-spacing: -.086em;
}
.hero-lookup { width: min(100%,550px); }
.hero-copy .home-quick { margin-top: 16px; }

#terminal {
  --rail: #0b0a0f;
  --panel: #101017;
  --line: #292631;
  --ink: #faf8ff;
  --muted: #b7afc3;
  --control: #18161f;
  background: #08080b;
  grid-template-columns: clamp(225px,19vw,274px) minmax(0,1fr);
}
#terminal .rail {
  top: 64px;
  height: calc(100dvh - 94px);
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-color: var(--line);
}
.rail-section { display: flex; flex-direction: column; min-height: 0; padding: 13px 11px 8px; }
.rail-section + .rail-section { border-top: 1px solid #3a3048; }
.rail-heading { min-height: 32px; flex: none; padding-inline: 2px; }
.rail-heading h2 { font-size: .91rem; color: #f5f0ff; font-weight: 670; letter-spacing: -.02em; }
.rail-heading small, .rail-feed-source { color: var(--muted); font: .66rem var(--mono); }
.rail-heading small { padding: 3px 5px; border: 1px solid #41384e; color: var(--pale); }
.rail-feed-source { margin: 7px 5px 0; white-space: nowrap; }
.rail-scroll { overflow: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #544469 transparent; }
.recent-token { flex: none; min-height: 44px; padding: 5px 6px; gap: 7px; }
.recent-token[aria-current] { background: #251c35; border-color: #554469; }
.recent-token:hover { background: #1d1727; border-color: #3d304b; }
.rail-token-id, .trending-change { display: grid; gap: 1px; min-width: 0; }
.recent-token > .rail-token-id { flex: 1; }
.recent-token > .trending-change { flex: none; }
.rail-token-id strong, .rail-token-id small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-token-id strong { font-size: .82rem; }
.rail-token-id small, .trending-change small { color: var(--muted); font-size: .69rem; }
.trending-rank { color: #a397b1; font: .62rem var(--mono); flex: none; }
.trending-change { text-align: right; min-width: 50px; font: .68rem var(--mono); }
.trending-change b { font-weight: 600; }
.rail .trending-token .avatar { flex: none; width: 27px; height: 27px; }
.rail .empty { margin: 0; padding: 8px 4px; }

#terminal main { padding: 15px clamp(12px,1.8vw,28px) 28px; }
#search { min-height: 48px; border: 1px solid #41344e; border-radius: 6px; background: #100d15; }
#search input { letter-spacing: .014em; }
#search button.primary { min-width: 90px; min-height: 35px; border-radius: 4px; }
#tools { gap: clamp(2px,.55vw,9px); margin-block: 8px 15px; }
#tools a { min-height: 38px; padding-inline: clamp(4px,.55vw,10px); }
#tools a[aria-current] { background: #1a1325; color: #e8deff; border-bottom-color: #b5a3ff; }
#workspace:focus-visible { outline-offset: -2px; }
.token-head {
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid #3a3047;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #151519;
}
.token-head .avatar.large {
  width: 54px; height: 54px; border-width: 2px; border-color: #8272ae; background: #281c39;
}
.token-title { gap: 12px; }
.token-title h1 { font-size: clamp(1.68rem,3.5vw,2.55rem); letter-spacing: -.075em; }
.token-title-row { flex-wrap: wrap; gap: 2px 8px; }
.ticker { color: #d2c5ed; font-weight: 550; }
.quote { min-width: max-content; text-align: right; }
.quote strong { font-size: clamp(1.38rem,2.7vw,2.15rem); line-height: 1; letter-spacing: -.07em; color: #f4ecff; }
.quote small { font: .74rem var(--mono); padding-top: 4px; }
.token-actions .control { min-height: 35px; }
.signin-control { color: var(--pale); border-color: #66548c; background: #231b34; }
.metrics { border-radius: 5px; background: #121017; }
.metrics div { min-width: 0; padding: 9px 12px; }
.metrics dt { color: #b9afc6; }
.metrics dd { font-size: clamp(1.08rem,1.7vw,1.56rem); color: var(--ink); overflow-wrap: anywhere; }
.metrics div:first-child dd { color: #ded4ff; }
.panel, .coin-details { border-radius: 5px; }
.panel header { min-height: 41px; }
.panel header h2 { font-size: .91rem; font-weight: 670; }
.scanner-grid { grid-template-columns: minmax(0,2.15fr) minmax(279px,1fr); gap: 10px; }
.chart-body { --chart-height: clamp(380px,calc(100dvh - 473px),575px); }
.price-panel { border-color: #433651; }
.chart-controls { background: #16101e; }
.candle-readout { padding-left: 9px; }
.risk-overview-panel { border-color: #433651; }
.risk-overview-panel header { background: #1a1323; }
.risk-overview-score strong { font-size: 2.45rem; line-height: 1.18; }
.risk-overview dl > div { padding-block: 5px; }
.risk-overview li { padding-block: 4px; }
.detail-tabs { background: #130f1a; }
.detail-tabs button.control[aria-pressed="true"]:not(.cell-button) { background: #20182c; }
.mint-facts { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 10px 12px; }
.mint-facts dt { color: var(--muted); font-size: .76rem; }
.mint-facts dd { font: 550 .84rem var(--mono); margin-top: 3px; }
.graph-stage, .graph-stage .map-legend, .graph-zoom { background: #0a070f; }
.page-title { border-bottom: 1px solid #433651; margin-bottom: 12px; }
.page-title h1 { color: var(--ink); font-size: clamp(1.6rem,3vw,2.35rem); }
.module-title { color: var(--pale); font-size: .8rem; font-weight: 640; }

@media (max-width: 1100px) {
  #terminal { grid-template-columns: 223px minmax(0,1fr); }
  .scanner-grid { grid-template-columns: minmax(0,1.65fr) minmax(245px,1fr); }
  #tools { gap: 2px; }
  #tools a { padding-inline: 5px; font-size: .75rem; }
}
@media (max-width: 915px) {
  #terminal .rail { position: static; height: auto; display: grid; grid-template: auto auto / minmax(0,1fr); border-bottom: 1px solid var(--line); }
  #terminal { display: block; }
  .rail-section { padding: 6px 10px 7px; }
  .rail-scroll { flex-direction: row; margin-top: 3px; gap: 5px; }
  .recent-token { width: 135px; min-height: 39px; border-color: #2b2335; }
  .trending-token { width: 151px; }
  .recent-token time, .rail-feed-source { display: none; }
  .scanner-grid { grid-template-columns: minmax(0,1fr); }
  #tools { flex-wrap: wrap; }
}
@media (max-width: 530px) {
  .home-hero { padding-block: 22px 30px; }
  .hero-copy { min-height: 330px; padding-inline: 24px; }
  .hero-copy h1 { font-size: clamp(2.65rem,11.2vw,3.85rem); }
  #terminal main { padding: 9px 8px 18px; }
  #search button.primary { min-width: 67px; }
  .token-head { padding: 10px 8px; min-height: 79px; }
  .token-head .avatar.large { width: 40px; height: 40px; }
  .token-title { gap: 6px; }
  .token-title h1 { font-size: 1.42rem; letter-spacing: -.055em; }
  .quote strong { font-size: 1.18rem; letter-spacing: -.04em; }
  .metrics div { padding: 7px 8px; }
  .metrics dd { font-size: 1.09rem; }
  .chart-body { --chart-height: 327px; }
  .chart-controls { gap: 2px; }
}
