:root {
  --bg: #050506;
  --bg-soft: #0b0b0d;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f5f5f2;
  --muted: #a4a4aa;
  --quiet: #6d6d76;
  --red: #e93232;
  --red-soft: rgba(233, 50, 50, 0.16);
  --silver: #d8d8d3;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(233, 50, 50, 0.075), transparent 560px),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.06), transparent 360px),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.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;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad { padding: 108px 0; position: relative; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 7, 8, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover { color: var(--text); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 10px;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 132px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    linear-gradient(90deg, var(--bg) 0 8%, transparent 35% 65%, var(--bg) 92%),
    linear-gradient(180deg, transparent 0 52%, var(--bg) 100%),
    url("../579f4f7f-7d0b-4bef-8466-6c98912e3d82.png") center / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow, .kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 24px var(--red);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(92px, 17vw, 190px);
  line-height: .78;
  letter-spacing: 0;
  color: #fafaf7;
  text-shadow: 0 0 60px rgba(233, 50, 50, .46), 0 10px 42px rgba(0,0,0,.46);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}

h3 {
  font-size: 28px;
  letter-spacing: 0;
}

.hero-subtitle {
  color: #f2f2ee;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.02;
  margin-bottom: 14px;
}

.hero-lead, .lead, .section-head p, .prose p, .community-main p, .public-good p, .paper-card p {
  color: #b9b9be;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--text);
  color: #050506;
}

.button.secondary {
  background: rgba(255,255,255,.045);
  color: var(--text);
}

.button.full { width: 100%; }

.hero-panel, .flow-card, .engine-card, .dashboard, .swap-panel, .community-main, .mini-card, .paper-card, .contact-form, .key-card, .link-card, .market-panel, .verify-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 22px 80px rgba(0,0,0,.22);
}

.hero-panel {
  justify-self: end;
  width: min(380px, 100%);
  padding: 18px;
  border-radius: 26px;
}

.hero-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hero-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.hero-panel p, .fineprint {
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.5;
}

.copy-mint {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(233, 50, 50, .11);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.split, .buy-grid, .contact-grid, .community-grid, .brian-grid, .market-grid, .verify-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.prose {
  max-width: 660px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head.compact {
  max-width: 820px;
}

.verify-section {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(233,50,50,.035), transparent);
}

.verify-grid {
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
}

.verify-panel {
  border-radius: 24px;
  padding: 26px;
}

.verify-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.verify-logo-row img {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 0 42px rgba(233,50,50,.18);
}

.verify-logo-row h3 {
  margin: 4px 0;
  font-size: 38px;
  line-height: 1;
}

.verify-logo-row span {
  color: var(--muted);
}

.token-info-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.token-info-list div,
.contract-box {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(0,0,0,.2);
  padding: 14px;
}

.token-info-list span,
.contract-box span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.token-info-list strong {
  color: var(--silver);
  font-size: 18px;
}

.contract-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 16px;
}

.contract-box span {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.contract-box code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--silver);
  font-size: 14px;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.keys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.key-card {
  min-height: 230px;
  padding: 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.key-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.key-card span, .card-label {
  color: var(--quiet);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.key-card:hover, .link-card:hover, .mini-card:hover {
  border-color: rgba(233, 50, 50, .44);
  transform: translateY(-3px);
}

.brian-section, .buy-section {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent);
}

.brian-grid {
  grid-template-columns: 1.25fr .75fr;
}

.flow-card, .engine-card, .dashboard, .swap-panel, .community-main, .mini-card, .paper-card, .contact-form, .market-panel {
  border-radius: 22px;
  padding: 26px;
}

.flow-line {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.flow-line span {
  min-height: 82px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  font-weight: 800;
}

.flow-line span.accent {
  background: var(--red-soft);
  border-color: rgba(233, 50, 50, .45);
}

.flow-line i {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.engine-card {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  padding-top: 212px;
  background:
    radial-gradient(circle at 74% 0%, rgba(233, 50, 50, .16), transparent 230px),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.character {
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 24px 45px rgba(0,0,0,.38));
}

.brian-character {
  position: absolute;
  top: -18px;
  right: -12px;
  width: min(280px, 74%);
  opacity: .94;
}

.loop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loop-list span {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--silver);
  background: rgba(255,255,255,.035);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.market-section {
  background: linear-gradient(180deg, transparent, rgba(233, 50, 50, .035), transparent);
}

.market-grid {
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
}

.market-panel {
  justify-self: stretch;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.snapshot-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}

.snapshot-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.snapshot-card strong {
  display: block;
  color: var(--silver);
  font-size: 24px;
}

.status-pill {
  white-space: nowrap;
  padding: 10px 12px;
  border: 1px solid rgba(233, 50, 50, .4);
  border-radius: 999px;
  color: var(--silver);
  background: var(--red-soft);
  font-size: 13px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.metric-card strong {
  display: block;
  font-size: 32px;
}

.metric-card span, .metric-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card small {
  margin-top: 12px;
  color: var(--quiet);
}

.chart-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(0,0,0,.2);
}

#brian-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
}

.gecko-embed {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #050506;
}

.grid-lines line {
  stroke: rgba(255,255,255,.08);
}

.chart-area { fill: url(#chartArea); }

.chart-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  animation: drawLine 1.4s ease both;
}

#brian-chart circle {
  fill: var(--silver);
  stroke: var(--red);
  stroke-width: 3;
}

#brian-chart text {
  fill: var(--muted);
  font-size: 14px;
}

.swap-panel {
  max-width: 440px;
  justify-self: end;
}

.swap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.swap-row label {
  color: var(--muted);
}

.swap-row button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--quiet);
  background: rgba(255,255,255,.035);
}

.swap-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.swap-box span {
  color: var(--quiet);
}

.swap-box strong {
  font-size: 28px;
}

.swap-arrow {
  display: grid;
  place-items: center;
  height: 42px;
  color: var(--red);
  font-size: 22px;
}

.swap-status {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--quiet);
  font-size: 13px;
}

.swap-status span:nth-child(even) {
  color: var(--muted);
  text-align: right;
}

.community-grid {
  grid-template-columns: 1.15fr .85fr;
}

.community-main {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(90deg, rgba(5,5,6,.88) 0 42%, rgba(5,5,6,.55) 74%, rgba(5,5,6,.78)),
    linear-gradient(180deg, rgba(5,5,6,.08), rgba(5,5,6,.86)),
    url("../710278d6-1c3f-46d8-8729-6fa039b00c7a.png") center / cover no-repeat;
}

.girl-character {
  position: absolute;
  right: -62px;
  bottom: -190px;
  width: min(460px, 52%);
  opacity: .9;
}

.community-main .kicker,
.community-main h2,
.community-main p {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.community-main h2 {
  max-width: 720px;
}

.stack {
  display: grid;
  gap: 14px;
}

.mini-card {
  min-height: 132px;
}

.mini-card p {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.mini-card span {
  color: var(--muted);
}

.public-good {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(233, 50, 50, .055), transparent);
}

.narrow {
  max-width: 900px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.link-card {
  min-height: 134px;
  padding: 22px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: attr(data-initial);
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(255,255,255,.055);
  font-size: 54px;
  font-weight: 900;
}

.link-card.todo {
  border-style: dashed;
  opacity: .72;
}

.link-card span {
  display: block;
  font-size: 22px;
  font-weight: 850;
  margin-bottom: 8px;
}

.link-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.paper-card {
  background:
    linear-gradient(90deg, rgba(233,50,50,.13), rgba(255,255,255,.035)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.paper-card p {
  max-width: 760px;
}

.contact-grid {
  grid-template-columns: .9fr 1.1fr;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus, .contact-form textarea:focus, .button:focus-visible, .copy-mint:focus-visible, .menu-button:focus-visible, a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 46px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}

.footer strong {
  color: var(--text);
}

.footer p {
  max-width: 620px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.visitor-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.visitor-counter span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--quiet);
  font-size: 12px;
}

.visitor-counter strong {
  color: var(--muted);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .58s ease, transform .58s ease, border-color .2s ease, transform .2s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drawLine {
  from { stroke-dashoffset: 1200; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 920px) {
  .section-pad { padding: 82px 0; }
  .hero-grid, .split, .buy-grid, .contact-grid, .community-grid, .brian-grid, .market-grid, .verify-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel, .swap-panel {
    justify-self: stretch;
    max-width: none;
  }
  .keys-grid, .metrics, .token-info-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-line {
    grid-template-columns: 1fr;
  }
  .flow-line i {
    width: 1px;
    height: 20px;
    justify-self: center;
    background: linear-gradient(180deg, transparent, var(--red), transparent);
  }

  .engine-card {
    padding-top: 190px;
  }

  .brian-character {
    width: 260px;
  }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 7, 8, .96);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 12px;
    border-radius: 10px;
  }
  .site-nav a:hover {
    background: var(--panel);
  }
  .hero {
    padding-top: 116px;
  }
  h1 {
    font-size: clamp(86px, 34vw, 140px);
  }
  h2 {
    font-size: clamp(36px, 13vw, 54px);
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-panel {
    padding: 12px;
  }
  .hero-panel div {
    align-items: stretch;
    flex-direction: column;
  }
  .verify-logo-row {
    align-items: flex-start;
  }
  .contract-box {
    grid-template-columns: 1fr;
  }
  .contract-box .copy-mint,
  .verify-actions .button {
    width: 100%;
  }
  .keys-grid, .metrics, .links-grid, .snapshot-grid, .token-info-list {
    grid-template-columns: 1fr;
  }
  .dashboard-head {
    flex-direction: column;
  }
  .status-pill {
    white-space: normal;
  }
  .community-main {
    min-height: 520px;
    padding-top: 170px;
    background:
      linear-gradient(180deg, rgba(5,5,6,.22), rgba(5,5,6,.92)),
      url("../710278d6-1c3f-46d8-8729-6fa039b00c7a.png") center / cover no-repeat;
  }
  .girl-character {
    top: -14px;
    right: -82px;
    bottom: auto;
    width: 330px;
    opacity: .86;
  }
  .swap-status {
    grid-template-columns: 1fr;
  }
  .swap-status span:nth-child(even) {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: start;
  }
}


.download-section {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.024), transparent);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.download-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 22px 80px rgba(0,0,0,.22);
}

.download-preview {
  display: grid;
  place-items: center;
  min-height: 176px;
  margin-bottom: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  overflow: hidden;
}

.download-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.logo-preview img,
.pack-preview img {
  width: min(180px, 70%);
}

.banner-preview img {
  width: 100%;
}

.download-card h3 {
  margin-bottom: 10px;
}

.download-card p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.5;
}

.size-list {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.size-list summary {
  cursor: pointer;
  font-weight: 800;
}

.size-list a {
  display: inline-flex;
  margin: 10px 8px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--silver);
}

@media (max-width: 920px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card p {
    min-height: 0;
  }
}

.mail-section {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.024), transparent);
}

.mail-shell {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
  box-shadow: 0 22px 80px rgba(0,0,0,.22);
  padding: 26px;
}

.mail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.mail-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.mail-folders,
.mail-list-wrap,
.mail-preview,
.mail-compose {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}

.mail-folders {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.mail-folders button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.mail-folders button.active,
.mail-folders button:hover {
  border-color: rgba(233, 50, 50, .36);
  background: var(--red-soft);
  color: var(--text);
}

.mail-list-wrap {
  overflow: hidden;
}

.mail-list-head,
.mail-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr .85fr;
  gap: 12px;
  align-items: center;
}

.mail-list-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.mail-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
}

.mail-row:hover {
  background: rgba(255,255,255,.035);
  color: var(--text);
}

.mail-row strong,
.mail-row span,
.mail-row time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-preview {
  padding: 18px;
  min-height: 260px;
}

.mail-preview h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

#mail-preview-meta,
#mail-preview-body,
.mail-empty {
  color: var(--muted);
  line-height: 1.55;
}

.mail-empty {
  margin: 0;
  padding: 18px;
}

.mail-compose {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
}

.mail-compose label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.mail-compose input,
.mail-compose textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  padding: 13px 14px;
  resize: vertical;
}

.mail-compose input:focus,
.mail-compose textarea:focus,
.mail-folders button:focus-visible,
.mail-row:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .mail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .mail-shell {
    padding: 16px;
  }

  .mail-list-head,
  .mail-row {
    grid-template-columns: 1fr;
  }
}
