:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --ink: #182033;
  --muted: #647084;
  --line: #d9deea;
  --panel: #ffffff;
  --accent: #4200bf;
  --accent-dark: #2d0084;
  --accent-soft: #eee7ff;
  --special-accent: #c9007f;
  --special-accent-dark: #8f075e;
  --good: #0b7566;
  --soft: #eef2f7;
  --code: #273044;
  --shadow: rgba(24, 32, 51, 0.06);
  --block-bg: linear-gradient(180deg, #fff, #fbfcff);
  --input-bg: #fff;
  --pre-bg: #111827;
  --pre-ink: #e7edf7;
  --tx-line: #d8ccf5;
  --tx-hover: #f8f5ff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11131a;
  --ink: #f2f5fb;
  --muted: #9aa5b8;
  --line: #303544;
  --panel: #181b24;
  --accent: #8f5cff;
  --accent-dark: #b89bff;
  --accent-soft: #20183a;
  --special-accent: #e31698;
  --special-accent-dark: #ff4db8;
  --good: #55d6bd;
  --soft: #222735;
  --code: #d8def0;
  --shadow: rgba(0, 0, 0, 0.28);
  --block-bg: linear-gradient(180deg, #1b1f2a, #171a22);
  --input-bg: #10131b;
  --pre-bg: #080a0f;
  --pre-ink: #e7edf7;
  --tx-line: #46316f;
  --tx-hover: #1b1730;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 48px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: block;
  color: inherit;
}

.brand-link:hover h1 {
  color: var(--accent);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow.small {
  margin-bottom: 2px;
  font-size: 11px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  padding: 10px 12px;
}

.api-form,
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.api-form input {
  width: min(360px, 34vw);
}

.theme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 76px;
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.theme-toggle:hover {
  background: var(--accent-soft);
}

.theme-toggle .sun,
.theme-toggle .moon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 0;
  text-align: center;
}

.theme-toggle .sun::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 -8px 0 -5px currentColor,
    0 8px 0 -5px currentColor,
    8px 0 0 -5px currentColor,
    -8px 0 0 -5px currentColor,
    6px 6px 0 -5px currentColor,
    -6px -6px 0 -5px currentColor,
    6px -6px 0 -5px currentColor,
    -6px 6px 0 -5px currentColor;
}

.theme-toggle .moon::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: -4px 3px 0 0 currentColor;
}

.theme-knob {
  position: absolute;
  z-index: 0;
  left: 4px;
  width: 32px;
  height: 30px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 160ms ease;
}

:root[data-theme="dark"] .theme-knob {
  transform: translateX(36px);
}

:root[data-theme="dark"] .moon,
:root:not([data-theme="dark"]) .sun {
  color: var(--accent);
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.search-band {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.search-form input {
  flex: 1;
}

.status-line {
  color: var(--muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stats-grid article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid article {
  padding: 16px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stats-grid strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stats-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.list {
  display: grid;
}

.block-chain {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.block-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--block-bg);
  box-shadow: 0 10px 28px var(--shadow);
  overflow: hidden;
}

.block-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.block-main:hover {
  background: var(--accent-soft);
}

.block-number {
  display: grid;
  place-items: center;
  width: 50px;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.block-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.block-summary strong {
  font-size: 18px;
}

.block-summary span,
.block-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.block-stat {
  display: grid;
  justify-items: end;
}

.block-stat strong {
  font-size: 24px;
  line-height: 1;
}

.block-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px;
}

.block-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-radius: 6px;
  background: var(--soft);
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}

.block-meta b {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

code {
  color: var(--code);
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.tx-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.tx-tile {
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 10px;
  border: 1px solid #ecd2e3;
  border-radius: 8px;
  border-color: var(--tx-line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.tx-tile:hover {
  background: var(--tx-hover);
}

.tx-type {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
}

.tx-tile strong {
  font-size: 15px;
}

.tx-tile code,
.tx-memo {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tx-more,
.tx-empty,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.row {
  display: grid;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hash,
.muted {
  color: var(--muted);
}

.hash {
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--soft);
  color: var(--good);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.compact .row {
  font-size: 14px;
}

.details-panel {
  margin-top: 18px;
}

.assistant-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--special-accent);
  color: #fff;
  box-shadow: 0 14px 34px var(--shadow);
  font-weight: 900;
}

.assistant-launcher:hover {
  background: var(--special-accent-dark);
}

.assistant-active .assistant-launcher {
  display: none;
}

.assistant-page {
  min-height: calc(100vh - 190px);
}

.assistant-shell {
  display: grid;
  grid-template-rows: auto minmax(340px, 1fr) auto;
  min-height: calc(100vh - 190px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, transparent, var(--bg)),
    var(--panel);
}

.assistant-message {
  display: grid;
  gap: 5px;
  max-width: min(760px, 88%);
}

.assistant-message span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-message .message-bubble {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px 14px;
  line-height: 1.5;
}

.assistant-message .message-bubble > * + * {
  margin-top: 10px;
}

.assistant-message .message-bubble p {
  margin: 0;
}

.assistant-message .message-bubble h3,
.assistant-message .message-bubble h4,
.assistant-message .message-bubble h5 {
  margin: 0;
  line-height: 1.2;
}

.assistant-message .message-bubble h3 {
  font-size: 19px;
}

.assistant-message .message-bubble h4 {
  font-size: 16px;
}

.assistant-message .message-bubble h5 {
  font-size: 14px;
}

.assistant-message .message-bubble ul,
.assistant-message .message-bubble ol {
  margin: 0;
  padding-left: 22px;
}

.assistant-message .message-bubble li + li {
  margin-top: 6px;
}

.assistant-message .message-bubble strong {
  font-weight: 800;
}

.assistant-message .message-bubble em {
  color: var(--muted);
  font-style: italic;
}

.assistant-message .message-bubble code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  padding: 1px 5px;
  font-size: 0.92em;
}

.assistant-message.user {
  justify-self: end;
}

.assistant-message.user .message-bubble {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.assistant-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.assistant-form input {
  flex: 1;
}

.assistant-standalone main {
  width: min(980px, calc(100vw - 32px));
}

.assistant-home {
  min-height: calc(100vh - 98px);
  display: grid;
  place-items: center;
  padding-bottom: 80px;
}

.assistant-stage {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(840px, 100%);
}

.assistant-stage.has-conversation {
  align-self: stretch;
  align-content: center;
}

.assistant-prompt {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.assistant-stage.has-conversation .assistant-prompt,
.assistant-stage.has-conversation .assistant-suggestions {
  display: none;
}

.assistant-prompt h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.assistant-command {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 14px 34px var(--shadow);
  padding: 7px 8px;
}

.assistant-command input {
  border: 0;
  background: transparent;
  padding: 10px 4px;
}

.assistant-command input:focus {
  outline: 0;
}

.assistant-plus,
.assistant-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
}

.assistant-plus {
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  font-weight: 400;
}

.assistant-plus:hover {
  background: var(--soft);
}

.assistant-send {
  width: 56px;
  background: var(--special-accent);
}

.assistant-send:hover {
  background: var(--special-accent-dark);
}

.assistant-mode {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 0 8px;
}

.assistant-suggestions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.assistant-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 14px;
}

.assistant-suggestions button:hover {
  background: var(--accent-soft);
}

.assistant-messages.standalone {
  width: 100%;
  max-height: min(52vh, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.assistant-messages.standalone[hidden] {
  display: none;
}

.docs-page main {
  width: min(1180px, calc(100vw - 32px));
}

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.docs-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
}

.docs-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.docs-content {
  display: grid;
  gap: 16px;
}

.docs-hero,
.docs-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(18px, 3vw, 28px);
}

.docs-hero {
  background: var(--block-bg);
}

.docs-hero h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 10px;
}

.docs-hero p,
.docs-section p,
.docs-section li {
  color: var(--muted);
  line-height: 1.65;
}

.docs-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.docs-section p + ul,
.docs-section p + ol {
  margin-top: 14px;
}

.docs-section ul,
.docs-section ol {
  margin: 0;
  padding-left: 22px;
}

.docs-section li + li {
  margin-top: 8px;
}

.docs-section strong {
  color: var(--ink);
}

.docs-section.warning {
  border-color: var(--special-accent);
}

.docs-section.warning h2 {
  color: var(--special-accent);
}

.download-page main {
  width: min(1120px, calc(100vw - 32px));
}

.countdown-page main {
  width: min(1180px, calc(100vw - 32px));
}

.countdown-shell {
  display: grid;
  gap: 24px;
}

.countdown-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--block-bg);
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.countdown-hero h2 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  margin-bottom: 16px;
}

.countdown-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.countdown-display article {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(18px, 4vw, 34px);
  text-align: center;
}

.countdown-display strong {
  color: var(--accent);
  font-size: clamp(46px, 9vw, 92px);
  line-height: 0.95;
}

.countdown-display span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  padding: 16px 18px;
  text-align: center;
}

.countdown-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.countdown-info article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.countdown-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.countdown-info p,
.countdown-info li {
  color: var(--muted);
  line-height: 1.65;
}

.countdown-info p + ul {
  margin-top: 14px;
}

.countdown-info ul {
  margin: 0;
  padding-left: 22px;
}

.countdown-info li + li {
  margin-top: 8px;
}

.countdown-info strong {
  color: var(--ink);
}

.countdown-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}

.home-page main {
  width: min(1180px, calc(100vw - 32px));
}

.home-shell {
  display: grid;
  gap: 34px;
  padding-top: 12px;
}

.home-hero {
  display: grid;
  gap: 18px;
}

.home-hero-copy,
.launch-card,
.home-panel,
.home-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.home-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 440px;
  background: var(--block-bg);
  padding: clamp(34px, 6vw, 72px);
}

.coin-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 18px 36px var(--shadow);
}

.home-hero-copy h2 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  margin-bottom: 24px;
}

.home-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.home-actions,
.mini-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-link,
.mini-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 11px 14px;
}

.primary-link:hover,
.mini-actions a:hover {
  background: var(--accent-dark);
}

.launch-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: 24px;
  padding: 30px;
}

.launch-card:hover {
  border-color: var(--accent);
}

.launch-card h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.launch-date {
  color: var(--muted);
}

.countdown-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 12px;
}

.countdown-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.home-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-countdown span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
}

.home-countdown strong {
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.home-countdown em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-stats article,
.home-panel {
  padding: clamp(22px, 3vw, 30px);
}

.home-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.home-stats strong {
  display: block;
  font-size: 20px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.home-panel h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.home-panel p,
.timeline-list span,
.home-footer {
  color: var(--muted);
  line-height: 1.65;
}

.home-panel p + p {
  margin-top: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 18px;
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.timeline-list {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.timeline-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.timeline-list strong {
  color: var(--accent);
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 2px 34px;
  font-size: 14px;
}

.download-shell {
  display: grid;
  gap: 18px;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--block-bg);
  padding: clamp(22px, 4vw, 36px);
}

.download-hero h2 {
  max-width: 740px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  margin-bottom: 14px;
}

.download-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.release-badge {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.release-badge span,
.release-badge small {
  color: var(--muted);
  font-weight: 700;
}

.release-badge strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.download-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 18px 36px var(--shadow);
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.download-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.download-card p,
.download-meta span,
.release-panel p,
.release-panel li {
  color: var(--muted);
  line-height: 1.55;
}

.download-meta {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  overflow-wrap: anywhere;
}

.download-meta span:first-child {
  color: var(--code);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
}

.locked-download {
  cursor: not-allowed;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.locked-download:hover {
  background: var(--soft);
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.release-panel h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.release-panel ul {
  margin: 0;
  padding-left: 22px;
}

.release-panel li + li {
  margin-top: 8px;
}

.block-detail-panel {
  margin-bottom: 18px;
}

.detail-hero,
.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.address-line {
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  padding: 9px 12px;
}

.ghost-button:hover {
  background: var(--accent-soft);
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.detail-stat,
.field-box {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--block-bg);
  padding: 12px;
}

.detail-stat span,
.field-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-stat strong {
  display: block;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.detail-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.field-box code,
.field-box a {
  color: var(--code);
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.field-box a:hover {
  color: var(--accent);
}

.detail-tx-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-tx {
  display: grid;
  gap: 10px;
  border: 1px solid var(--tx-line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.detail-tx-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-tx-top strong {
  font-size: 18px;
}

.tx-address-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tx-address-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
  overflow-wrap: anywhere;
}

.tx-address-grid b {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.tx-address-grid a {
  color: var(--code);
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.tx-address-grid a:hover {
  color: var(--accent);
}

.tx-note {
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 13px;
  padding-left: 10px;
}

pre {
  margin: 0;
  max-height: 460px;
  overflow: auto;
  padding: 16px;
  background: var(--pre-bg);
  color: var(--pre-ink);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .topbar,
  .top-actions,
  .api-form,
  .theme-control,
  .search-form,
  .row-main {
    align-items: stretch;
    flex-direction: column;
  }

  .api-form input {
    width: 100%;
  }

  .theme-control {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    padding-left: 0;
  }

  .theme-toggle {
    width: 100%;
  }

  .assistant-launcher {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .assistant-head,
  .assistant-form {
    flex-direction: column;
    align-items: stretch;
  }

  .assistant-command {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    border-radius: 18px;
  }

  .assistant-mode {
    display: none;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-hero,
  .download-grid,
  .release-panel,
  .countdown-display,
  .countdown-info,
  .home-grid,
  .feature-grid,
  .launch-card {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    min-height: auto;
    padding: 28px;
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-badge {
    justify-items: stretch;
  }

  .stats-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .block-main,
  .block-meta,
  .detail-stats-grid,
  .field-grid,
  .tx-address-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .detail-section-head,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .block-stat {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .home-stats,
  .home-countdown {
    grid-template-columns: 1fr;
  }

  .timeline-list div {
    grid-template-columns: 1fr;
  }
}
