@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans&family=Noto+Sans+JP&family=Noto+Sans+KR&family=Noto+Sans+SC&family=Noto+Sans+TC&family=Noto+Sans+Thai&display=swap");

:root {
  color-scheme: dark;
  --surface-primary: 5 8 9;
  --surface-overlay: 10 20 18;
  --surface-elevated: 16 51 46;
  --accent-primary: 92 255 202;
  --accent-secondary: 242 213 107;
  --accent-tertiary: 25 84 73;
  --text-primary: 247 255 247;
  --text-muted: 125 141 137;
  --text-inverse: 5 8 9;
  --border-subtle: 32 72 63;
  --border-strong: 92 255 202;
  --danger: 255 116 116;
}

html[data-theme="ethpapers-light"] {
  color-scheme: light;
  --surface-primary: 226 216 202;
  --surface-overlay: 235 226 211;
  --surface-elevated: 248 243 233;
  --accent-primary: 167 68 52;
  --accent-secondary: 75 64 54;
  --accent-tertiary: 217 204 182;
  --text-primary: 31 23 17;
  --text-muted: 75 64 54;
  --text-inverse: 248 243 233;
  --border-subtle: 59 49 37;
  --border-strong: 167 68 52;
  --danger: 167 68 52;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Share Tech Mono", "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC",
    "Noto Sans TC", "Noto Sans Thai", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: rgb(var(--text-primary));
  background: radial-gradient(55% 45% at 50% 0%, rgb(var(--accent-primary) / 0.12), transparent 66%),
    radial-gradient(120% 80% at 50% 100%, rgb(var(--accent-tertiary) / 0.32), transparent 72%),
    rgb(var(--surface-primary));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgb(28 74 63 / 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgb(28 74 63 / 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.24;
  mix-blend-mode: lighten;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgb(var(--accent-primary) / 0.11) 0px,
    rgb(var(--accent-primary) / 0.11) 2px,
    rgb(var(--surface-primary) / 0) 3px,
    rgb(var(--surface-primary) / 0) 6px
  );
  opacity: 0.07;
  mix-blend-mode: screen;
  animation: codecFlicker 4.8s ease-in-out infinite;
}

html[data-theme="ethpapers-light"] body {
  background:
    radial-gradient(52% 42% at 50% 0%, rgb(248 243 233 / 0.72), transparent 68%),
    linear-gradient(180deg, #d8c9b4 0%, #e9dfcf 16%, #f0e8dc 56%, #e2d2bd 100%);
}

html[data-theme="ethpapers-light"] body::before {
  background-image:
    linear-gradient(rgb(59 49 37 / 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgb(59 49 37 / 0.08) 1px, transparent 1px);
  opacity: 0.42;
  mix-blend-mode: multiply;
}

html[data-theme="ethpapers-light"] body::after {
  background: repeating-linear-gradient(
    to bottom,
    rgb(31 23 17 / 0.035) 0px,
    rgb(31 23 17 / 0.035) 1px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.34;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 16px;
  background: rgb(var(--surface-overlay) / 0.78);
  padding: 0.72rem 0.85rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.08rem 0;
}

.brand-mark:focus-visible {
  outline: 2px solid rgb(var(--border-strong) / 0.8);
  outline-offset: 4px;
  border-radius: 10px;
}

.brand-logo {
  display: block;
  width: clamp(88px, 11vw, 110px);
  aspect-ratio: 280 / 104;
  background: linear-gradient(
    135deg,
    rgb(var(--text-primary)) 0%,
    rgb(var(--accent-primary)) 62%,
    rgb(var(--accent-secondary)) 100%
  );
  -webkit-mask: url("/assets/tkn-wordmark.svg") center / contain no-repeat;
  mask: url("/assets/tkn-wordmark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgb(var(--accent-primary) / 0.12));
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.brand-mark:hover .brand-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px rgb(var(--accent-primary) / 0.18));
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.ethpapers-link {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: block;
  width: clamp(1.42rem, 2.2vw, 1.9rem);
  height: clamp(2rem, 3vw, 2.68rem);
  color: rgb(var(--text-muted));
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.ethpapers-link:hover {
  opacity: 0.88;
  transform: translate(-50%, -50%) translateY(-1px);
}

.ethpapers-link:focus-visible {
  outline: 2px solid rgb(var(--border-strong) / 0.8);
  outline-offset: 5px;
  border-radius: 8px;
}

.ethpapers-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.42;
  filter: grayscale(0.2) brightness(1.25) contrast(0.96);
  transition: filter 160ms ease, opacity 160ms ease;
}

.ethpapers-link:hover img,
.ethpapers-link:focus-visible img {
  opacity: 0.62;
  filter: grayscale(0.08) brightness(1.35) contrast(1.02);
}

html[data-theme="ethpapers-light"] .ethpapers-link img {
  opacity: 0.36;
  filter: grayscale(0.28) brightness(0.68) contrast(1.08) sepia(0.2) saturate(0.75);
}

html[data-theme="ethpapers-light"] .ethpapers-link:hover img,
html[data-theme="ethpapers-light"] .ethpapers-link:focus-visible img {
  opacity: 0.54;
  filter: grayscale(0.12) brightness(0.62) contrast(1.14) sepia(0.18) saturate(0.82);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.36rem;
  height: 2.36rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 999px;
  background: rgb(var(--surface-primary) / 0.62);
  color: rgb(var(--accent-primary));
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--border-strong) / 0.76);
  background: rgb(var(--accent-primary) / 0.1);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgb(var(--border-strong) / 0.8);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link {
  border-radius: 999px;
  border: 1px solid rgb(var(--border-subtle));
  background: rgb(var(--surface-primary) / 0.7);
  color: rgb(var(--text-muted));
  text-decoration: none;
  padding: 0.38rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link.active {
  border-color: rgb(var(--border-strong) / 0.5);
  color: rgb(var(--text-inverse));
  background: rgb(var(--accent-primary));
}

.hero {
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 16px;
  background: rgb(var(--surface-overlay) / 0.8);
  padding: 0.95rem 1rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  margin: 0;
  color: rgb(var(--accent-primary));
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.25;
}

.hero-kicker {
  margin: 0 0 0.38rem;
  color: rgb(var(--accent-secondary));
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.12;
  max-width: 16ch;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 220px);
  gap: 1rem;
  align-items: center;
}

.hero-copy-home {
  min-width: 0;
  padding-top: clamp(0.15rem, 0.8vw, 0.6rem);
}

.hero p {
  margin: 0.5rem 0 0;
  color: rgb(var(--text-muted));
  font-size: 0.75rem;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  margin-top: 0.78rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-subtle));
  padding: 0.62rem 1rem;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.cta-button:hover {
  transform: translateY(-1px);
}

.cta-button-primary {
  border-color: rgb(var(--border-strong));
  background: rgb(var(--accent-primary));
  color: rgb(var(--text-inverse));
}

.cta-button-secondary {
  background: rgb(var(--surface-primary) / 0.84);
  color: rgb(var(--text-primary));
}

.cta-button-secondary:hover {
  border-color: rgb(var(--border-strong) / 0.7);
  color: rgb(var(--accent-primary));
}

.install-card {
  display: grid;
  border-radius: 14px;
  border: 1px solid rgb(var(--border-strong) / 0.26);
  background: linear-gradient(
      180deg,
      rgb(var(--accent-primary) / 0.08),
      rgb(var(--accent-primary) / 0.02)
    ),
    rgb(var(--surface-primary) / 0.72);
  padding: 0.62rem;
}

.install-qr-link {
  display: block;
  width: min(100%, 196px);
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgb(var(--border-subtle));
  background: rgb(255 255 255 / 0.98);
  padding: 0.46rem;
}

.install-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero-copy {
  min-width: 0;
}

.faq-language-picker {
  display: grid;
  gap: 0.32rem;
  min-width: min(220px, 100%);
  color: rgb(var(--text-muted));
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-language-label {
  color: rgb(var(--text-muted));
}

.faq-language-select {
  width: 100%;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  background: rgb(var(--surface-primary) / 0.84);
  color: rgb(var(--text-primary));
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.58rem 0.72rem;
}

.faq-language-select:focus {
  outline: none;
  border-color: rgb(var(--border-strong));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.stat-card {
  border-radius: 12px;
  border: 1px solid rgb(var(--border-strong) / 0.2);
  background: rgb(var(--surface-overlay) / 0.78);
  padding: 0.68rem;
  min-width: 0;
}

.stat-label {
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  margin: 0.36rem 0 0;
  color: rgb(var(--accent-primary));
  font-size: clamp(0.98rem, 2.05vw, 1.65rem);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-strong) / 0.35);
  background: rgb(var(--accent-primary) / 0.1);
  color: rgb(var(--accent-primary));
  padding: 0.24rem 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--accent-primary));
  box-shadow: 0 0 10px rgb(var(--accent-primary) / 0.75);
  animation: pulse 1.6s ease-in-out infinite;
}

.status-line {
  min-height: 1.1em;
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.7rem;
  line-height: 1.34;
}

.status-line.error {
  color: rgb(var(--danger));
}

.panel {
  border-radius: 16px;
  border: 1px solid rgb(var(--border-subtle));
  background: rgb(var(--surface-overlay) / 0.8);
  padding: 0.92rem;
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.52rem;
}

.panel-head h2 {
  margin: 0;
  color: rgb(var(--accent-primary));
  font-size: 1.03rem;
  line-height: 1.2;
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.52rem;
}

.token-search {
  width: 100%;
  flex: 1 1 260px;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  background: rgb(var(--surface-primary) / 0.8);
  color: rgb(var(--text-primary));
  font: inherit;
  font-size: 0.73rem;
  padding: 0.5rem 0.64rem;
}

.token-search:focus {
  outline: none;
  border-color: rgb(var(--border-strong));
}

.token-sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  flex: 0 0 auto;
}

.token-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 999px;
  background: rgb(var(--surface-primary) / 0.78);
  color: rgb(var(--text-muted));
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.52rem 0.72rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.token-sort-button:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--border-strong) / 0.55);
  color: rgb(var(--text-primary));
}

.token-sort-button.is-active {
  border-color: rgb(var(--border-strong));
  background: rgb(var(--accent-primary));
  color: rgb(var(--text-inverse));
}

.token-sort-button:focus-visible {
  outline: 2px solid rgb(var(--border-strong) / 0.9);
  outline-offset: 2px;
}

.sort-direction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sort-direction-icon svg {
  width: 14px;
  height: 14px;
}

.token-list,
.faq-list {
  display: grid;
  gap: 0.52rem;
}

.token-card,
.faq-item {
  border-radius: 12px;
  border: 1px solid rgb(var(--border-subtle));
  background: rgb(var(--surface-primary) / 0.74);
  padding: 0.66rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.token-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.token-logo,
.token-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgb(var(--border-strong) / 0.3);
  background: rgb(var(--surface-elevated) / 0.55);
  flex: 0 0 auto;
}

.token-logo {
  object-fit: cover;
}

.token-badge {
  color: rgb(var(--accent-primary));
  display: grid;
  place-items: center;
  font-size: 0.68rem;
}

.token-text {
  min-width: 0;
}

.token-title {
  margin: 0;
  color: rgb(var(--text-primary));
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-symbol {
  color: rgb(var(--accent-primary));
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
}

.token-speed-icon {
  display: inline-flex;
  color: rgb(var(--accent-primary));
}

.token-address {
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.3;
}

.token-metric {
  margin: 0;
  color: rgb(var(--accent-secondary));
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}

.token-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  flex: 0 0 auto;
}

.token-address-row {
  margin-top: 0.22rem;
  display: flex;
  align-items: flex-start;
  gap: 0.34rem;
  min-width: 0;
}

.token-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 999px;
  background: rgb(var(--surface-primary) / 0.8);
  color: rgb(var(--text-muted));
  padding: 0;
  cursor: pointer;
}

.token-copy-btn:hover {
  border-color: rgb(var(--border-strong) / 0.7);
  color: rgb(var(--accent-primary));
}

.token-copy-btn.copied {
  border-color: rgb(var(--border-strong));
  color: rgb(var(--accent-primary));
}

.token-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-subtle));
  background: rgb(var(--surface-primary) / 0.82);
  color: rgb(var(--text-muted));
  padding: 0;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.token-action-icon:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--border-strong) / 0.75);
  background: rgb(var(--accent-primary) / 0.08);
  color: rgb(var(--accent-primary));
}

.token-action-icon:focus-visible {
  outline: 2px solid rgb(var(--border-strong) / 0.9);
  outline-offset: 2px;
}

.token-action-icon svg {
  width: 15px;
  height: 15px;
}

.token-uniswap-icon {
  display: block;
  width: 15px;
  height: 15px;
}

.token-pagination {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pager-btn {
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 999px;
  background: rgb(var(--surface-primary) / 0.72);
  color: rgb(var(--text-primary));
  padding: 0.24rem 0.62rem;
  font: inherit;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-label {
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.69rem;
}

.token-sub {
  margin: 0.5rem 0 0;
  border-radius: 10px;
  border: 1px solid rgb(var(--border-subtle));
  background: rgb(var(--surface-elevated) / 0.18);
  padding: 0.46rem;
  color: rgb(var(--text-primary));
  font-size: 0.73rem;
  line-height: 1.36;
}

.footer-note {
  margin: 0.6rem 0 0;
  color: rgb(var(--text-muted));
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.faq-grid {
  display: grid;
  gap: 1.1rem;
}

.faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.faq-category-link {
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 999px;
  background: rgb(var(--surface-primary) / 0.72);
  color: rgb(var(--text-muted));
  padding: 0.4rem 0.66rem;
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: none;
}

.faq-category-link:hover,
.faq-category-link:focus-visible {
  border-color: rgb(var(--border-strong));
  color: rgb(var(--text-primary));
}

.faq-category {
  display: grid;
  gap: 0.52rem;
  scroll-margin-top: 1rem;
}

.faq-category-title {
  margin: 0;
  color: rgb(var(--text-primary));
  font-size: 1rem;
  line-height: 1.3;
}

.faq-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.faq-item {
  scroll-margin-top: 1rem;
}

.faq-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.faq-item h2,
.faq-item h3 {
  margin: 0;
  color: rgb(var(--accent-primary));
  font-size: 0.92rem;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.faq-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 999px;
  background: rgb(var(--surface-primary) / 0.8);
  color: rgb(var(--text-muted));
  padding: 0;
  cursor: pointer;
}

.faq-copy-link:hover,
.faq-copy-link:focus-visible {
  border-color: rgb(var(--border-strong) / 0.7);
  color: rgb(var(--accent-primary));
}

.faq-copy-link.copied {
  border-color: rgb(var(--border-strong));
  color: rgb(var(--accent-primary));
}

.faq-item p,
.faq-item li {
  margin: 0;
  color: rgb(var(--text-primary));
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.faq-answer {
  display: grid;
  gap: 0.38rem;
}

.faq-item p + p {
  margin-top: 0.38rem;
}

.faq-item ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.34rem;
}

.faq-inline-list {
  list-style: none;
  padding-left: 0;
}

.faq-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-strong) / 0.4);
  background: rgb(var(--accent-primary) / 0.1);
  color: rgb(var(--text-primary));
  padding: 0.18rem 0.5rem;
  font-size: 0.76rem;
  line-height: 1.3;
  vertical-align: middle;
}

.faq-chip-icon {
  color: rgb(var(--accent-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.faq-chip-icon-svg {
  width: 0.86rem;
  height: 0.86rem;
  display: block;
}

.faq-chip-label {
  letter-spacing: 0.01em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-chip-label-fair {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.73rem;
}

.link-inline {
  color: rgb(var(--accent-secondary));
  text-underline-offset: 2px;
}

.guide-article {
  display: grid;
  gap: 0.9rem;
}

.guide-hero h1 {
  max-width: 18ch;
  font-size: clamp(1.45rem, 4vw, 2.65rem);
  line-height: 1.04;
}

.guide-hero p:not(.hero-kicker) {
  max-width: 68ch;
}

.guide-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: clamp(0.8rem, 2vw, 1rem);
}

.guide-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0.34rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 12px;
  background: rgb(var(--surface-primary) / 0.74);
  padding: 0.78rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.guide-card:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--border-strong) / 0.7);
  background: rgb(var(--surface-elevated) / 0.34);
}

.guide-card-kicker {
  color: rgb(var(--accent-secondary));
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-card-title {
  color: rgb(var(--accent-primary));
  font-size: clamp(0.98rem, 2vw, 1.25rem);
  line-height: 1.25;
}

.guide-card-summary {
  color: rgb(var(--text-muted));
  font-size: 0.78rem;
  line-height: 1.45;
}

.guide-card-date,
.guide-published-date {
  color: rgb(var(--text-muted));
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.guide-card-date {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgb(var(--border-subtle));
}

.guide-published-date {
  display: block;
  margin-top: 0.55rem;
}

.guide-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.45rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  overflow: hidden;
  background: rgb(var(--surface-primary) / 0.76);
}

.guide-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-body {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.65rem);
}

.guide-body p {
  margin: 0;
  color: rgb(var(--text-primary));
  font-size: clamp(0.86rem, 1.45vw, 1rem);
  line-height: 1.72;
}

.guide-body h2 {
  margin: 1.55rem 0 0.7rem;
  color: rgb(var(--accent-primary));
  font-size: clamp(1.12rem, 2.4vw, 1.5rem);
  line-height: 1.2;
}

.guide-body .guide-art + h2,
.guide-body h2:first-child {
  margin-top: 0;
}

.guide-body p + p {
  margin-top: 0.95rem;
}

.guide-body code {
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 0.35rem;
  background: rgb(var(--surface-primary) / 0.72);
  color: rgb(var(--accent-primary));
  font-size: 0.92em;
  padding: 0.08rem 0.28rem;
}

.guide-art {
  margin: 0 0 1.1rem;
  border: 1px solid rgb(var(--border-strong) / 0.34);
  border-radius: 16px;
  overflow: hidden;
  background: rgb(var(--surface-primary) / 0.82);
}

.guide-art + p {
  margin-top: 0;
}

.guide-body p + .guide-art {
  margin-top: 1.15rem;
}

.guide-art img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-art-link {
  display: block;
}

.guide-art-link:focus-visible {
  outline: 2px solid rgb(var(--accent-secondary));
  outline-offset: -4px;
}

.stats-band,
.panel,
.guide-body {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.claim-page-shell {
  max-width: 980px;
}

.claim-intake-layout {
  display: grid;
  gap: 1rem;
}

.claim-intake-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 4.6vw, 3.35rem);
  line-height: 1.02;
}

.claim-intake-hero .hero-subcopy {
  max-width: 42rem;
}

.request-form-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 1.8rem);
}

.request-form-hero .hero-head {
  display: grid;
  justify-content: stretch;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.request-form-hero .faq-language-picker {
  width: min(100%, 20rem);
}

.request-hero-art {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--border-strong) / 0.36);
  border-radius: 14px;
  background: rgb(var(--surface-primary) / 0.82);
}

.request-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .request-form-hero {
    grid-template-columns: 1fr;
  }
}

.claim-vault-panel {
  display: grid;
  gap: 0.85rem;
}

.claim-vault-address-box {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 12px;
  background: rgb(var(--surface-primary) / 0.62);
  padding: 0.72rem;
}

.claim-vault-address {
  color: rgb(var(--accent-primary));
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.claim-deposit-button {
  width: fit-content;
}

.claim-deposit-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.claim-intake-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.74rem;
  margin-top: 0;
}

.claim-intake-form label {
  display: grid;
  gap: 0.38rem;
  color: rgb(var(--text-muted));
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.claim-intake-form input,
.claim-intake-form textarea {
  width: 100%;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  background: rgb(var(--surface-primary) / 0.78);
  color: rgb(var(--text-primary));
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0;
  padding: 0.64rem 0.72rem;
  text-transform: none;
}

.claim-intake-form input:focus,
.claim-intake-form textarea:focus {
  outline: none;
  border-color: rgb(var(--border-strong));
}

.claim-intake-form textarea {
  min-height: 96px;
  resize: vertical;
}

.claim-form-wide,
.claim-logo-preview,
.claim-submit-button,
.claim-intake-form .status-line {
  grid-column: 1 / -1;
}

.claim-logo-preview {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 12px;
  background: rgb(var(--surface-primary) / 0.62);
  padding: 0.68rem;
}

.claim-logo-preview[hidden] {
  display: none;
}

.claim-logo-preview img {
  width: 54px;
  height: 54px;
  border: 1px solid rgb(var(--border-strong) / 0.3);
  border-radius: 14px;
  object-fit: cover;
}

.claim-logo-preview p {
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.72rem;
}

.claim-submit-button {
  width: fit-content;
}

.guide-art-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-art-diagram {
  border-color: rgb(var(--border-strong) / 0.48);
}

.token-requirement {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  border-left: 2px solid rgb(var(--accent-primary));
  padding: 0.35rem 0.75rem;
}

.token-requirement strong {
  flex: 0 0 auto;
  font-size: 0.76rem;
}

.token-requirement span {
  color: rgb(var(--text-muted));
  font-size: 0.76rem;
}

.request-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.request-option {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  content-visibility: visible;
  contain: none;
  color: rgb(var(--text-primary));
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.request-option-media {
  aspect-ratio: 16 / 9;
  margin: -0.15rem -0.15rem 0.2rem;
  overflow: hidden;
  border: 1px solid rgb(var(--border-strong) / 0.32);
  border-radius: 10px;
  background: rgb(var(--surface-primary) / 0.82);
}

.request-option-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.request-option:hover .request-option-media img,
.request-option:focus-visible .request-option-media img {
  transform: scale(1.015);
}

.request-option:hover,
.request-option:focus-visible {
  border-color: rgb(var(--accent-primary));
  transform: translateY(-2px);
}

.request-option p { color: rgb(var(--text-muted)); }
.request-option > span { color: rgb(var(--accent-primary)); font-size: 0.78rem; }

@media (max-width: 680px) {
  .request-options { grid-template-columns: 1fr; }
  .token-requirement { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
}

.intake-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 14px;
  background: rgb(var(--border-subtle));
  list-style: none;
}

.intake-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.15rem 0.65rem;
  background: rgb(var(--surface-primary));
  padding: 0.85rem;
}

.intake-steps li > span {
  grid-row: 1 / 3;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--accent-primary) / 0.13);
  color: rgb(var(--accent-primary));
  font-size: 0.72rem;
}

.intake-steps strong { font-size: 0.82rem; }
.intake-steps small,
.panel-helper,
.claim-intake-form label small {
  color: rgb(var(--text-muted));
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.panel-helper { margin-top: 0.3rem; }

.guide-art-phone {
  max-width: 500px;
  margin-right: auto;
  margin-left: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.75;
  }
}

@keyframes codecFlicker {
  0% {
    opacity: 0.08;
    transform: translateY(0);
  }
  10% {
    opacity: 0.04;
  }
  18% {
    opacity: 0.14;
  }
  32% {
    opacity: 0.06;
    transform: translateY(-0.5px);
  }
  47% {
    opacity: 0.15;
  }
  63% {
    opacity: 0.07;
    transform: translateY(0.5px);
  }
  81% {
    opacity: 0.12;
  }
  100% {
    opacity: 0.09;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .faq-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .intake-steps {
    grid-template-columns: 1fr;
  }

  .claim-intake-form {
    grid-template-columns: 1fr;
  }

  .claim-intake-form > * {
    grid-column: 1;
  }

  .page-shell {
    width: min(1120px, 96vw);
    padding-top: 0.85rem;
  }

  .site-header,
  .hero,
  .panel {
    border-radius: 12px;
  }

  .panel-head {
    align-items: center;
  }

  .hero-head {
    flex-direction: column;
  }

  .hero-home-grid {
    grid-template-columns: 1fr;
  }

  .faq-language-picker {
    width: 100%;
  }

  .brand-logo {
    width: clamp(82px, 22vw, 96px);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }

  .install-qr-link {
    width: min(100%, 188px);
  }

  .guide-body {
    padding: 0.9rem;
  }

  .guide-index {
    grid-template-columns: 1fr;
  }

  .panel-controls {
    align-items: stretch;
  }

  .token-sort-controls {
    width: 100%;
  }

  .token-sort-button {
    flex: 1 1 0;
  }

  .token-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .token-actions {
    justify-content: flex-start;
  }

  .token-metric {
    text-align: left;
    white-space: normal;
  }

  .stat-label {
    letter-spacing: 0.1em;
  }
}

/* Home direction: creator-first landing with a denser market surface. */
.page-shell {
  width: min(1180px, 94vw);
  padding-top: 1.6rem;
}

.site-header {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: clamp(1.6rem, 3.4vw, 2.8rem);
}

.brand-logo {
  width: clamp(122px, 13vw, 168px);
}

.nav-link {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0.7rem;
}

.nav-link.active {
  border-color: rgb(var(--border-strong));
  background: transparent;
  color: rgb(var(--accent-primary));
}

.nav-link-cta {
  margin-left: 0.45rem;
  border: 1px solid rgb(var(--border-strong) / 0.72);
  border-radius: 12px;
  color: rgb(var(--accent-primary));
  padding: 0.68rem 1rem;
}

.hero {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.hero-home-grid {
  grid-template-columns: minmax(600px, 1.15fr) minmax(420px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  color: rgb(var(--text-muted));
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  letter-spacing: 0.32em;
}

.hero-home h1 {
  max-width: 22ch;
  font-size: 3.6rem;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgb(var(--accent-primary) / 0.13);
}

.hero .hero-subcopy {
  max-width: 26rem;
  margin-top: clamp(1.1rem, 2vw, 1.45rem);
  color: rgb(var(--text-primary));
  font-size: clamp(1.12rem, 2.05vw, 1.48rem);
  line-height: 1.28;
}

.hero-actions {
  gap: 1rem;
  margin-top: 1.45rem;
}

.cta-button {
  min-height: 46px;
  min-width: min(100%, 210px);
  border-radius: 12px;
  padding: 0.75rem 1.18rem;
  letter-spacing: 0.16em;
}

.install-mini {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  width: min(100%, 238px);
  margin-top: 0.95rem;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  background: rgb(var(--surface-primary) / 0.72);
  color: rgb(var(--text-muted));
  font: inherit;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  padding: 0.56rem 0.72rem;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.install-mini span:first-child {
  color: rgb(var(--accent-primary));
}

.install-mini span:last-child {
  grid-column: 1 / -1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.token-builder-preview {
  position: relative;
  display: grid;
  gap: 1rem;
  border: 1px solid rgb(var(--border-strong) / 0.42);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(var(--accent-primary) / 0.055), transparent 45%),
    rgb(var(--surface-overlay) / 0.76);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.34);
  padding: clamp(1rem, 2.2vw, 1.45rem);
  overflow: hidden;
}

.token-builder-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--accent-primary) / 0.09), transparent);
  opacity: 0.42;
}

.builder-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(var(--accent-primary));
  text-transform: uppercase;
  letter-spacing: 0.32em;
}

.builder-head p {
  margin: 0;
  color: rgb(var(--accent-primary));
  font-size: 0.92rem;
}

.builder-grid {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
}

.builder-logo {
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border: 1px dashed rgb(var(--border-strong) / 0.7);
  border-radius: 999px;
  color: rgb(var(--accent-primary));
  font-size: 2.4rem;
  background: rgb(var(--accent-primary) / 0.04);
}

.builder-fields {
  display: grid;
  gap: 0.9rem;
}

.builder-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  background: rgb(var(--surface-primary) / 0.74);
  color: rgb(var(--text-muted));
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
}

.builder-segment {
  position: relative;
  display: grid;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  overflow: hidden;
  background: rgb(var(--surface-primary) / 0.62);
}

.builder-segment span {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: rgb(var(--text-muted));
  border-right: 1px solid rgb(var(--border-subtle));
}

.builder-segment span:last-child {
  border-right: 0;
}

.builder-segment .active {
  background: rgb(var(--accent-primary));
  color: rgb(var(--text-inverse));
}

.builder-segment-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-segment-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-label {
  margin: -0.25rem 0 -0.65rem;
  color: rgb(var(--text-muted));
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.builder-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 1px solid rgb(var(--border-strong) / 0.42);
  border-radius: 10px;
  background: rgb(var(--accent-tertiary) / 0.32);
  color: rgb(var(--accent-primary));
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.75rem 1rem;
}

.builder-submit span:last-child {
  color: rgb(var(--accent-secondary));
}

.stats-band {
  margin: 1.35rem 0 1rem;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  border: 1px solid rgb(var(--border-strong) / 0.35);
  border-radius: 14px;
  background: rgb(var(--surface-overlay) / 0.68);
  overflow: hidden;
}

.stat-card {
  border: 0;
  border-right: 1px solid rgb(var(--border-subtle));
  border-radius: 0;
  background: transparent;
  padding: 1rem 1.25rem;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-value {
  color: rgb(var(--accent-primary));
  font-size: clamp(1.15rem, 2.2vw, 1.72rem);
}

.panel {
  border-color: rgb(var(--border-strong) / 0.34);
  background: rgb(var(--surface-overlay) / 0.7);
  padding: 1rem 1.25rem 1.1rem;
}

.panel-head {
  margin-bottom: 0.85rem;
}

.panel-head p,
.panel-head h2 {
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.token-table-head {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(110px, 0.7fr) minmax(76px, 76px);
  gap: 1rem;
  border-bottom: 1px solid rgb(var(--border-subtle));
  color: rgb(var(--text-muted));
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  padding: 0.35rem 0.65rem 0.85rem;
  text-transform: uppercase;
}

.token-list {
  gap: 0;
}

.token-card {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(110px, 0.7fr) minmax(76px, 76px);
  align-items: center;
  gap: 1rem;
  border-width: 0 0 1px;
  border-color: rgb(var(--border-subtle));
  border-radius: 0;
  background: transparent;
  padding: 0.78rem 0.65rem;
}

.token-card:hover {
  background: rgb(var(--accent-primary) / 0.04);
}

.token-top,
.token-main,
.token-actions {
  display: contents;
}

.token-identity {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.token-logo,
.token-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.token-title {
  font-size: 0.88rem;
}

.token-address-row {
  margin-top: 0.12rem;
}

.token-address {
  max-width: 260px;
}

.token-wld {
  color: rgb(var(--accent-primary));
  font-size: 0.88rem;
  white-space: nowrap;
}

.token-date {
  color: rgb(var(--text-muted));
  font-size: 0.78rem;
}

.token-metric {
  justify-self: start;
}

.token-actions-group {
  display: inline-flex;
  justify-content: flex-start;
  gap: 0.55rem;
}

@media (max-width: 900px) {
  .ethpapers-link {
    display: none;
  }

  .hero-home-grid {
    grid-template-columns: 1fr;
  }

  .hero-home h1 {
    max-width: 15ch;
    font-size: 3rem;
  }

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

  .token-table-head {
    display: none;
  }

  .token-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.75rem;
  }

  .token-identity {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100%, 430px);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.85rem;
    overflow: hidden;
  }

  .site-header {
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 86px;
  }

  .nav-links {
    width: 100%;
    flex-basis: 100%;
    gap: 0.28rem 0.42rem;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav-link:not(.nav-link-cta) {
    display: inline-flex;
  }

  .nav-link {
    flex: 0 0 auto;
    padding: 0.42rem 0.5rem;
    font-size: 0.62rem;
  }

  .ethpapers-link,
  .theme-toggle {
    flex: 0 0 auto;
  }

  .ethpapers-link {
    top: 1.05rem;
    width: 1.18rem;
    height: 1.65rem;
  }

  .nav-link-cta {
    display: inline-flex;
    margin-left: 0;
    border-radius: 10px;
    padding: 0.5rem 0.72rem;
  }

  .hero-home h1 {
    max-width: 100%;
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-button,
  .install-mini {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .token-builder-preview {
    max-width: 100%;
    padding: 1rem;
  }

  .builder-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .builder-logo {
    width: 86px;
  }

  .builder-input {
    min-width: 0;
  }

  .builder-input span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .builder-segment span {
    font-size: 0.72rem;
  }

  .builder-submit {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

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

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid rgb(var(--border-subtle));
  }

  .panel-controls {
    align-items: stretch;
  }

  .token-sort-controls {
    width: 100%;
  }

  .token-card {
    grid-template-columns: 1fr auto;
    border: 1px solid rgb(var(--border-subtle));
    border-radius: 12px;
    background: rgb(var(--surface-primary) / 0.58);
    margin-bottom: 0.6rem;
    padding: 0.8rem;
  }

  .token-address {
    max-width: 240px;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
  }

  .token-actions-group {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
