:root {
  color-scheme: dark;
  --ink: #0d120c;
  --ink-2: #121a10;
  --ink-3: #182116;
  --panel: rgba(23, 31, 20, 0.88);
  --panel-solid: #171f14;
  --line: rgba(226, 239, 214, 0.12);
  --line-strong: rgba(226, 239, 214, 0.23);
  --text: #f1f5eb;
  --muted: #9da997;
  --lime: #c6fa4a;
  --lime-2: #a9de32;
  --cream: #f1e9cf;
  --orange: #ff9758;
  --pink: #ff6d7a;
  --blue: #7dd5ef;
  --radius: 18px;
  --radius-small: 11px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(198, 250, 74, 0.07), transparent 28rem),
    radial-gradient(circle at 94% 24%, rgba(255, 151, 88, 0.055), transparent 32rem),
    linear-gradient(180deg, #10160e, #0b100a 62%, #0d120c);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

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

.skip-link:focus {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 11, 0.82);
  backdrop-filter: blur(18px) saturate(135%);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 9px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.brand b { font-weight: 850; }
.brand i { color: var(--lime); font-style: normal; font-weight: 700; }

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 5px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 10px;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.main-nav a,
.nav-link {
  padding: 7px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.nav-link:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.wallet-cluster {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.network-pill,
.fixed-supply-pill,
.owner-only-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.network-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(198, 250, 74, 0.7);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: 0.5; }

.button-primary {
  color: #10150e;
  background: var(--lime);
  box-shadow: 0 8px 26px rgba(182, 236, 61, 0.13);
}

.button-primary:hover:not(:disabled) { background: #d4ff70; }

.button-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.button-ghost:hover:not(:disabled) { border-color: rgba(198, 250, 74, 0.45); }

.button-accent {
  color: var(--ink);
  background: var(--cream);
}

.button-large { min-height: 50px; padding: 12px 20px; }

.button-wallet {
  min-width: 96px;
  min-height: 38px;
  padding: 7px 13px;
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.button-wallet.connected { color: var(--lime); border-color: rgba(198, 250, 74, 0.25); }

.global-banner {
  position: relative;
  z-index: 70;
  padding: 8px 18px;
  color: #171d11;
  background: var(--cream);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.section-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  align-items: center;
  width: min(1320px, calc(100% - 40px));
  min-height: 670px;
  margin: 0 auto;
  gap: clamp(34px, 6vw, 92px);
  padding: 74px 0 58px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero-copy h1 span { color: var(--lime); }

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.trust-row span::before { content: "✓"; margin-right: 6px; color: var(--lime); }

.hero-terminal {
  position: relative;
  overflow: hidden;
  min-height: 492px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #131b11;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-2.5deg) rotateX(1deg);
}

.hero-terminal::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent 52%, rgba(198, 250, 74, 0.035));
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.terminal-top b { margin-right: auto; color: var(--text); font-size: 14px; letter-spacing: 0.03em; }
.terminal-top i { color: var(--lime); font-style: normal; }

.terminal-price { display: grid; grid-template-columns: 1fr auto; margin-top: 48px; }
.terminal-price small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.terminal-price strong { font-size: clamp(38px, 5vw, 62px); letter-spacing: -0.055em; }
.terminal-price em { align-self: center; padding: 6px 9px; color: var(--lime); background: rgba(198, 250, 74, 0.1); border-radius: 8px; font-size: 14px; font-style: normal; font-weight: 800; }

.hero-chart { width: calc(100% + 8px); height: 215px; margin: 14px -4px 0; overflow: visible; }
.chart-line { fill: none; stroke: var(--lime); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-fill { fill: url("#hero-fill"); }

.terminal-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 4px;
}

.terminal-actions span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
}

.terminal-actions i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.terminal-actions .lp-dot { background: var(--blue); }
.terminal-actions .farm-dot { background: var(--orange); }
.terminal-actions .harvest-dot { background: var(--cream); }

.protocol-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 100px;
  border-block: 1px solid var(--line);
}

.protocol-strip > div { padding: 24px clamp(12px, 3vw, 38px); border-right: 1px solid var(--line); }
.protocol-strip > div:last-child { border-right: 0; }
.protocol-strip span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.protocol-strip strong { font-size: clamp(18px, 2vw, 25px); letter-spacing: -0.03em; }

.home-farms { padding-bottom: 110px; }

.section-heading,
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading > a { color: var(--lime); font-size: 14px; font-weight: 800; }
.page-heading { padding-top: 72px; }
.page-heading.compact { padding-top: 54px; }
.page-heading p:not(.eyebrow) { max-width: 620px; margin: 14px 0 0; color: var(--muted); }

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

.farm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, hsla(var(--farm-hue), 50%, 30%, 0.08), rgba(255, 255, 255, 0.018)), var(--panel);
  transition: border-color 170ms ease, transform 170ms ease, background 170ms ease;
}

.farm-card::before {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: hsla(var(--farm-hue), 80%, 58%, 0.07);
  content: "";
  filter: blur(15px);
}

.farm-card:hover {
  z-index: 1;
  border-color: rgba(198, 250, 74, 0.28);
  background-color: rgba(27, 37, 23, 0.96);
  transform: translateY(-4px);
}

.farm-card-top { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }

.token-avatar {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: hsl(var(--farm-hue), 65%, 82%);
  border: 1px solid hsla(var(--farm-hue), 68%, 70%, 0.23);
  border-radius: 13px;
  background: hsla(var(--farm-hue), 62%, 46%, 0.14);
  font-size: 14px;
  font-weight: 900;
}

.token-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--panel-solid);
  object-fit: cover;
}

.token-avatar.large { width: 64px; height: 64px; border-radius: 18px; font-size: 18px; }
.farm-card-top h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.farm-card-top p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.farm-card-top p b { color: var(--text); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-active { color: var(--lime); border-color: rgba(198, 250, 74, 0.18); background: rgba(198, 250, 74, 0.045); }
.status-upcoming { color: var(--blue); }

.farm-card-price { display: grid; grid-template-columns: 1fr auto; margin-top: 34px; }
.farm-card-price span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.farm-card-price strong { margin-top: 3px; font-size: 27px; letter-spacing: -0.045em; }
.farm-card-price em { align-self: center; font-size: 13px; font-style: normal; font-weight: 800; }
.exact-price { position: relative; width: max-content; max-width: 100%; cursor: help; text-decoration: underline dotted rgba(198, 250, 74, 0.42); text-underline-offset: 4px; }
.exact-price::after {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: min(310px, 80vw);
  padding: 7px 9px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d140b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  content: "Exact: " attr(data-eth-price);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}
.exact-price:hover::after,
.exact-price:focus-visible::after { opacity: 1; transform: translateY(0); }
.farm-hero-price .exact-price::after { right: 0; left: auto; }
.opening-preview strong.exact-price { overflow: visible; }
.positive { color: var(--lime) !important; }
.negative { color: var(--pink) !important; }
.warning { color: var(--orange) !important; }

.farm-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 27px; border-block: 1px solid var(--line); }
.farm-card-metrics div { min-width: 0; padding: 13px 7px; border-right: 1px solid var(--line); }
.farm-card-metrics div:first-child { padding-left: 0; }
.farm-card-metrics div:last-child { padding-right: 0; border: 0; }
.farm-card-metrics span,
.farm-card-metrics b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.farm-card-metrics span { color: var(--muted); font-size: 12px; }
.farm-card-metrics b { margin-top: 3px; font-size: 13px; }

.farm-card-tokenomics { display: grid; gap: 7px; margin-top: 14px; }
.mini-allocation-bar,
.supply-allocation-bar,
.emission-stack { display: flex; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.06); }
.mini-allocation-bar { height: 4px; }
.mini-allocation-bar i:nth-child(1),
.supply-allocation-bar i:nth-child(1) { background: var(--lime); }
.mini-allocation-bar i:nth-child(2),
.supply-allocation-bar i:nth-child(2) { background: var(--orange); }
.mini-allocation-bar i:nth-child(3),
.supply-allocation-bar i:nth-child(3) { background: var(--blue); }
.farm-card-tokenomics p { display: flex; justify-content: space-between; gap: 9px; margin: 0; color: var(--muted); font-size: 12px; }
.farm-card-tokenomics b,
.farm-card-tokenomics strong { color: var(--text); font-size: 12px; text-align: right; }
.farm-card-tokenomics strong { color: var(--lime); }

.farm-card-policy { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; color: var(--muted); font-size: 12px; font-weight: 750; }
.farm-card-policy .lock { color: var(--lime); }
.farm-card-policy .unlock { color: var(--orange); }

.farm-progress { margin-top: auto; padding-top: 18px; }
.farm-progress > div { height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.07); border-radius: 99px; }
.farm-progress i { display: block; height: 100%; background: var(--lime); }
.farm-progress span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.awaiting-card {
  grid-column: 1 / -1;
  padding: 58px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.awaiting-card > span { font-size: 34px; }
.awaiting-card h3 { margin: 12px 0 5px; font-size: 22px; }
.awaiting-card p { max-width: 480px; margin: 0 auto 22px; color: var(--muted); }

.dual-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 110px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.018);
}

.dual-audience article { position: relative; min-height: 400px; padding: clamp(30px, 5vw, 70px); overflow: hidden; }
.dual-audience article + article { border-left: 1px solid var(--line); }
.audience-number { position: absolute; top: 20px; right: 28px; color: rgba(255, 255, 255, 0.08); font-size: 70px; font-weight: 900; letter-spacing: -0.08em; }
.dual-audience h2 { max-width: 490px; margin: 0; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.02; letter-spacing: -0.05em; }
.dual-audience article > p:not(.eyebrow) { max-width: 530px; color: var(--muted); }
.dual-audience a { display: inline-block; margin-top: 20px; color: var(--lime); font-weight: 800; }

.discover-view,
.create-view,
.farm-view,
.policy-view { min-height: calc(100vh - var(--header-height)); padding-bottom: 100px; }

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.search-field,
.select-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.search-field svg { width: 17px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-field input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; }
.search-field input::placeholder { color: #788373; }

.filter-pills,
.period-tabs,
.activity-filters {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.filter-pills button,
.period-tabs button,
.activity-filters button {
  padding: 7px 10px;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.filter-pills button.active,
.period-tabs button.active,
.activity-filters button.active { color: var(--ink); background: var(--lime); }

.select-field span { color: var(--muted); font-size: 12px; }
.select-field select { color: var(--text); border: 0; outline: 0; background: transparent; font-size: 14px; font-weight: 700; }
.select-field option { color: var(--text); background: var(--ink-2); }

.directory-summary { display: flex; justify-content: space-between; margin: 18px 1px; color: var(--muted); font-size: 12px; }
.farm-grid-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.empty-state { padding: 80px 20px; text-align: center; }
.empty-state > span { font-size: 36px; }
.empty-state h2 { margin: 10px 0 4px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
}

.wizard-card,
.studio-preview,
.market-card,
.action-console,
.mechanics-card,
.policy-card,
.policy-side > * {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.wizard-card { overflow: hidden; }

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 3px;
  color: #6f796a;
  font-size: 12px;
  font-weight: 800;
}

.stepper li::after { position: absolute; right: 8px; left: 8px; bottom: -1px; height: 2px; background: transparent; content: ""; }
.stepper b { display: inline-flex; justify-content: center; align-items: center; width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.stepper li.active { color: var(--text); }
.stepper li.active b { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.stepper li.active::after { background: var(--lime); }
.stepper li.complete { color: var(--lime); }
.stepper li.complete b { border-color: rgba(198, 250, 74, 0.28); }

.wizard-step {
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 0;
}

.wizard-step legend { display: block; width: 100%; padding: 0; font-size: clamp(25px, 3vw, 35px); font-weight: 850; letter-spacing: -0.045em; }
.wizard-step legend span { display: block; margin-bottom: 5px; color: var(--lime); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.step-intro { max-width: 700px; margin: 9px 0 28px; color: var(--muted); font-size: 14px; }

.wizard-step label,
.policy-card label,
.policy-side label { display: block; margin-top: 18px; }
.wizard-step label > span:first-child,
.policy-card label > span:first-child,
.policy-side label > span:first-child { display: block; margin-bottom: 7px; color: #c4ccbd; font-size: 13px; font-weight: 750; }
label span em { color: var(--muted); font-style: normal; font-weight: 500; }
.field-label { display: block; margin: 18px 0 7px; color: #c4ccbd; font-size: 13px; font-weight: 750; }
.field-label em { color: var(--muted); font-style: normal; font-weight: 500; }

input,
select {
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 8, 5, 0.4);
}

.wizard-step input:not([type="checkbox"]),
.policy-card input:not([type="checkbox"]),
.policy-side input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  outline: 0;
}

input:focus { border-color: rgba(198, 250, 74, 0.52); box-shadow: 0 0 0 3px rgba(198, 250, 74, 0.06); }
input:disabled { opacity: 0.45; cursor: not-allowed; }
label small { display: block; margin-top: 6px; color: #7f897a; font-size: 12px; }

.artwork-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(5, 8, 5, 0.28);
  transition: border-color 160ms ease, background 160ms ease;
}

.artwork-dropzone.is-dragging {
  border-color: var(--lime);
  background: rgba(198, 250, 74, 0.055);
}

.artwork-dropzone.is-uploading { border-style: solid; }
.artwork-prompt,
.artwork-result { display: flex; align-items: center; gap: 11px; min-width: 0; margin-right: auto; }
.artwork-prompt > i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--lime);
  border: 1px solid rgba(198, 250, 74, 0.22);
  border-radius: 12px;
  background: rgba(198, 250, 74, 0.055);
  font-size: 20px;
  font-style: normal;
  font-weight: 850;
}
.artwork-prompt span,
.artwork-prompt b,
.artwork-prompt small,
.artwork-result span,
.artwork-result b,
.artwork-result small { display: block; min-width: 0; }
.artwork-prompt b,
.artwork-result b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.artwork-prompt small,
.artwork-result small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.artwork-result img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 13px; background: var(--panel-solid); object-fit: cover; }
.artwork-dropzone .button { flex: 0 0 auto; min-height: 40px; padding: 9px 13px; }
.remove-artwork { padding: 7px 4px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.remove-artwork:hover { color: var(--pink); }
.artwork-status { min-height: 18px; margin: 6px 1px 0; color: var(--muted); font-size: 12px; }
.artwork-status.success { color: var(--lime); }
.artwork-status.error { color: var(--pink); }
.metadata-options { margin-top: 14px; }
.metadata-options summary { width: max-content; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; }
.metadata-options[open] summary { color: #c4ccbd; }
.metadata-options label { margin-top: 12px; }

.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid .span-two { grid-column: span 2; }

.address-input,
.unit-input { display: flex; }
.address-input input,
.unit-input input { min-width: 0; border-radius: 10px 0 0 10px !important; }
.address-input button,
.unit-input select,
.unit-input b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 82px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.unit-input select { outline: 0; }
.unit-input.suffix b { min-width: 48px; cursor: default; }

.quick-pairs { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.quick-pairs span { margin-right: 3px; color: var(--muted); font-size: 12px; }
.quick-pairs button,
.ratio-button {
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.quick-pairs button:hover,
.ratio-button:hover { color: var(--lime); border-color: rgba(198, 250, 74, 0.3); }
.quick-pairs button.active { color: var(--ink); border-color: var(--lime); background: var(--lime); }

.ratio-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -1px 0;
  padding: 10px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.ratio-guide > i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--lime);
  font-style: normal;
  font-weight: 900;
}

.ratio-guide span,
.ratio-guide b,
.ratio-guide small { display: block; }
.ratio-guide b { color: var(--text); font-size: 12px; }
.ratio-guide small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.ratio-first > i { color: var(--text); background: rgba(255, 151, 88, 0.18); }
.amount-field.auto-matched { border-color: rgba(198, 250, 74, 0.34); background: rgba(198, 250, 74, 0.035); }

#quote-detection.detected { color: var(--lime); }
#quote-detection.detection-error { color: var(--pink); }

.toggle-row,
.confirm-row,
.native-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.toggle-row input,
.confirm-row input,
.native-toggle input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--lime); }
.toggle-row span,
.confirm-row span { margin: 0 !important; }
.toggle-row b { display: block; font-size: 13px; }
.toggle-row small { margin: 2px 0 0; }

.opening-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.12);
}
.opening-preview div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); }
.opening-preview div:last-child { border: 0; }
.opening-preview span,
.opening-preview strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opening-preview span { color: var(--muted); font-size: 12px; }
.opening-preview strong { margin-top: 2px; font-size: 13px; }

.preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.preset-row button { padding: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.018); cursor: pointer; text-align: left; }
.preset-row button.active { color: var(--text); border-color: rgba(198, 250, 74, 0.32); background: rgba(198, 250, 74, 0.045); }
.preset-row b,
.preset-row small { display: block; }
.preset-row b { font-size: 12px; }
.preset-row small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.allocation-editor { margin: 22px 0 5px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.1); }
.allocation-editor label { display: grid; grid-template-columns: 160px 1fr; align-items: center; margin: 0 0 8px; }
.allocation-editor label > span { display: flex !important; align-items: center; gap: 7px; margin: 0 !important; }
.allocation-editor label > div { display: grid; grid-template-columns: 1fr 50px; align-items: center; }
.allocation-editor input { min-height: 40px !important; border-radius: 8px 0 0 8px !important; }
.allocation-editor label b { display: flex; justify-content: center; align-items: center; height: 40px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 8px 8px 0; font-size: 12px; }

.alloc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.alloc-dot.genesis { background: var(--lime); }
.alloc-dot.rewards { background: var(--orange); }
.alloc-dot.creator { background: var(--blue); }
.allocation-bar { display: flex; height: 5px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.05); }
.allocation-bar i:nth-child(1) { background: var(--lime); }
.allocation-bar i:nth-child(2) { background: var(--orange); }
.allocation-bar i:nth-child(3) { background: var(--blue); }
.allocation-editor > p { margin: 7px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.allocation-editor > p.valid { color: var(--lime); }
.allocation-editor > p.invalid { color: var(--pink); }
.allocation-auto-note { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: right; }
.allocation-editor input:disabled { color: var(--muted); background: rgba(255, 255, 255, 0.025); cursor: not-allowed; }

.mechanic-note,
.policy-warning { margin-top: 17px; padding: 13px; border-left: 2px solid var(--lime); border-radius: 0 9px 9px 0; background: rgba(198, 250, 74, 0.035); }
.mechanic-note b,
.policy-warning b { font-size: 12px; }
.mechanic-note p,
.policy-warning p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-step .confirm-row { margin-top: 9px; font-size: 12px; }

.launch-review { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.launch-review section { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, 0.1); }
.launch-review h3 { margin: 0 0 9px; color: var(--lime); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.review-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.045); font-size: 12px; }
.review-row:last-child { border: 0; }
.review-row span { color: var(--muted); }
.review-row b { text-align: right; }
.warning-row b { color: var(--orange); }
.review-error { grid-column: 1 / -1; padding: 15px; color: var(--pink); border: 1px solid rgba(255, 109, 122, 0.2); border-radius: 10px; }
.review-error p { margin: 4px 0 0; color: var(--muted); }

.transaction-plan { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.transaction-plan > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.transaction-plan ol { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding-left: 18px; font-size: 12px; }
.wallet-compatibility { margin: 10px 0 0; padding: 10px 12px; color: var(--muted); border: 1px solid rgba(255, 184, 77, 0.22); border-radius: 9px; background: rgba(255, 184, 77, 0.05); font-size: 12px; line-height: 1.5; }
.wallet-compatibility b { color: var(--orange); }
.form-status { min-height: 18px; margin: 10px 0 0; color: var(--lime); font-size: 12px; text-align: right; }

.studio-preview { position: sticky; top: calc(var(--header-height) + 16px); padding: 22px; }
.preview-token { display: flex; align-items: center; gap: 12px; margin-top: 19px; }
.preview-token > span { position: relative; display: flex; justify-content: center; align-items: center; flex: 0 0 50px; width: 50px; height: 50px; overflow: hidden; color: var(--ink); border-radius: 14px; background: var(--lime); font-weight: 900; }
.preview-token > span > img { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--panel-solid); object-fit: cover; }
.preview-token h2 { margin: 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.1; }
.preview-token p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; }
.preview-metrics div { padding: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-metrics div:nth-child(even) { border-right: 0; }
.preview-metrics div:nth-last-child(-n + 2) { border-bottom: 0; }
.preview-metrics span,
.preview-metrics b { display: block; }
.preview-metrics span { color: var(--muted); font-size: 12px; }
.preview-metrics b { margin-top: 2px; font-size: 13px; }

.preview-allocation { margin-top: 20px; }
.preview-allocation > span { color: var(--muted); font-size: 12px; }
.preview-allocation { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.preview-allocation > span { grid-column: 1 / -1; }
.donut { display: flex; justify-content: center; align-items: center; width: 88px; height: 88px; border-radius: 50%; background: conic-gradient(var(--lime) 0 var(--opening), var(--orange) var(--opening) var(--rewards), var(--blue) var(--rewards) 360deg); }
.donut::after { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: var(--panel-solid); content: ""; }
.donut b { position: relative; z-index: 1; font-size: 14px; text-align: center; }
.donut small { display: block; color: var(--muted); font-size: 12px; }
.preview-allocation ul { margin: 0; padding: 0; list-style: none; }
.preview-allocation li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding: 4px 0; color: var(--muted); font-size: 12px; }
.preview-allocation li b { color: var(--text); }

.preview-fee { margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); }
.preview-fee span,
.preview-fee b,
.preview-fee small { display: block; }
.preview-fee span { color: var(--muted); font-size: 12px; }
.preview-fee b { margin-top: 2px; color: var(--lime); font-size: 16px; }
.preview-fee small { margin-top: 5px; color: var(--muted); font-size: 12px; }

.back-link { margin: 28px 0 20px; padding: 0; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; }
.back-link:hover { color: var(--lime); }

.farm-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, hsla(var(--farm-hue), 60%, 36%, 0.12), transparent 40%), var(--panel);
}

.farm-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.identity-line { display: flex; align-items: center; gap: 10px; }
.farm-identity h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.055em; }
.farm-identity p { margin: 3px 0 7px; color: var(--muted); font-size: 13px; }
.contract-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contract-links a,
.contract-links button { padding: 0; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 12px; }
.contract-links a:hover,
.contract-links button:hover { color: var(--lime); }
.farm-hero-price { flex: 0 0 auto; text-align: right; }
.farm-hero-price span,
.farm-hero-price strong,
.farm-hero-price em { display: block; }
.farm-hero-price span { color: var(--muted); font-size: 12px; }
.farm-hero-price strong { margin-top: 2px; font-size: clamp(26px, 4vw, 44px); letter-spacing: -0.045em; }
.farm-hero-price em { margin-top: 2px; font-size: 12px; font-style: normal; font-weight: 800; }

.detail-metrics { display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px 0; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.015); }
.detail-metrics div { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--line); }
.detail-metrics div:last-child { border: 0; }
.detail-metrics span,
.detail-metrics b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-metrics span { color: var(--muted); font-size: 12px; }
.detail-metrics b { margin-top: 3px; font-size: 12px; }

.farm-transparency { margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, rgba(198, 250, 74, 0.035), transparent 42%), rgba(255, 255, 255, 0.015); }
.transparency-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.transparency-heading span,
.farm-transparency article > span { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.transparency-heading h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: -0.025em; }
.transparency-heading p { max-width: 440px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.transparency-grid { display: grid; grid-template-columns: 1.25fr 0.9fr 1.15fr; }
.farm-transparency article { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); }
.farm-transparency article:last-child { border: 0; }
.supply-allocation-bar { height: 7px; margin: 15px 0 11px; }
.supply-split-card ul,
.emission-split-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.supply-split-card li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.supply-split-card li b,
.emission-split-card li b { color: var(--text); }
.creator-holding-card strong { display: block; margin-top: 10px; font-size: 35px; letter-spacing: -0.045em; }
.creator-holding-card p { margin: 1px 0 13px; color: var(--muted); font-size: 12px; }
.creator-holding-card a { display: block; color: var(--lime); font-size: 12px; font-weight: 800; }
.creator-holding-card small { display: block; margin-top: 5px; color: #747e6f; font-size: 12px; }
.emission-stack { height: 7px; margin: 15px 0 11px; }
.emission-stack i:nth-child(1) { background: var(--lime); }
.emission-stack i:nth-child(2) { background: var(--blue); }
.emission-stack i:nth-child(3) { background: var(--orange); }
.emission-split-card li { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.transparency-foot { display: flex; gap: 8px 20px; padding: 10px 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.transparency-foot span::before { margin-right: 6px; color: var(--lime); content: "✓"; }

.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 12px; }
.market-main { display: grid; gap: 12px; min-width: 0; }
.market-card { overflow: hidden; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 58px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.card-heading > div:first-child span,
.card-heading > div:first-child b { display: block; }
.card-heading > div:first-child span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.card-heading > div:first-child b { margin-top: 1px; font-size: 13px; }
.chart-wrap { position: relative; height: 430px; }
.market-canvas { display: block; width: 100%; height: 100%; }
.chart-loading,
.table-loading { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: inherit; color: var(--muted); font-size: 12px; }
.chart-loading { height: 100%; }
.chart-loading i,
.table-loading i { width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--lime); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chart-source { margin: 0; padding: 8px 14px; color: #707b6b; border-top: 1px solid var(--line); font-size: 12px; }
.chart-tooltip { position: absolute; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; width: 242px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(9, 13, 8, 0.96); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); pointer-events: none; font-size: 12px; }
.chart-tooltip b { grid-column: 1 / -1; margin-bottom: 4px; color: var(--text); }
.chart-tooltip span { color: var(--muted); }
.chart-tooltip small { grid-column: 1 / -1; margin-top: 6px; padding-top: 6px; color: var(--lime); border-top: 1px solid var(--line); font-size: 12px; }

.activity-table { min-height: 220px; }
.activity-row { display: grid; grid-template-columns: 72px minmax(130px, 1fr) 88px 62px 16px; align-items: center; gap: 9px; min-height: 44px; padding: 7px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); font-size: 12px; }
.activity-row:hover { background: rgba(255, 255, 255, 0.02); }
.activity-row > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row > span:not(.activity-kind),
.activity-row time { color: var(--muted); }
.activity-row > i { color: var(--muted); font-style: normal; }
.activity-kind { width: max-content; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font-weight: 850; }
.kind-buy,
.kind-stake,
.kind-harvest,
.kind-compound { color: var(--lime); background: rgba(198, 250, 74, 0.07); }
.kind-sell,
.kind-remove { color: var(--pink); background: rgba(255, 109, 122, 0.07); }
.kind-add { color: var(--blue); }
.activity-empty { padding: 55px 20px; color: var(--muted); text-align: center; }
.activity-empty span { font-size: 22px; }
.activity-empty p { margin: 6px 0 0; font-size: 12px; }

.mechanics-card { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.mechanics-card div { padding: 14px; border-right: 1px solid var(--line); }
.mechanics-card div:last-child { border: 0; }
.mechanics-card span,
.mechanics-card b { display: block; }
.mechanics-card span { color: var(--muted); font-size: 12px; }
.mechanics-card b { margin-top: 3px; font-size: 12px; }

.action-console { position: sticky; top: calc(var(--header-height) + 14px); overflow: hidden; }
.action-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border-bottom: 1px solid var(--line); }
.action-tabs button { padding: 9px; color: var(--muted); border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 850; }
.action-tabs button.active { color: var(--text); background: rgba(255, 255, 255, 0.055); }
.action-panel { padding: 16px; }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 15px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, 0.12); }
.side-toggle.three { grid-template-columns: repeat(3, 1fr); }
.side-toggle button { padding: 7px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 850; }
.side-toggle button.active { color: var(--ink); background: var(--lime); }

.compound-method-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 13px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, 0.12); }
.compound-method-toggle button { padding: 8px 5px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 850; }
.compound-method-toggle button.active { color: var(--ink); background: var(--lime); }
.auto-compound-card { padding: 13px; border: 1px solid rgba(198, 250, 74, 0.17); border-radius: 11px; background: rgba(198, 250, 74, 0.035); }
.auto-compound-card > span,
.auto-compound-card > strong,
.auto-compound-card > small { display: block; }
.auto-compound-card > span { color: var(--muted); font-size: 12px; }
.auto-compound-card > strong { margin-top: 2px; font-size: 24px; letter-spacing: -0.035em; }
.auto-compound-card > small { color: var(--lime); font-size: 12px; font-weight: 800; }
.auto-compound-card ol { display: grid; gap: 6px; margin: 13px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(198, 250, 74, 0.12); list-style: none; }
.auto-compound-card li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.auto-compound-card li i { display: inline-flex; justify-content: center; align-items: center; width: 18px; height: 18px; color: var(--lime); border: 1px solid rgba(198, 250, 74, 0.2); border-radius: 50%; font-size: 12px; font-style: normal; font-weight: 850; }
.auto-compound-quote b { line-height: 1.35; }

.amount-field { display: block; margin: 11px 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, 0.13); }
.amount-field > span { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.amount-field > span b { color: var(--muted); }
.amount-field > span button { padding: 0; color: var(--lime); border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.amount-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.amount-field input { width: 100%; min-width: 0; padding: 0; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 23px; font-weight: 700; letter-spacing: -0.035em; }
.amount-field > div strong { font-size: 12px; }
.amount-field small { margin: 4px 0 0; color: #747e6f; }
.native-toggle { margin: 10px 0 !important; padding: 9px !important; font-size: 12px; }

.quote-box { margin: 13px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.018); }
.quote-box span,
.quote-box b,
.quote-box small { display: block; }
.quote-box span { color: var(--muted); font-size: 12px; }
.quote-box b { margin-top: 4px; font-size: 16px; }
.quote-box small { margin-top: 4px; color: #747e6f; font-size: 12px; }
.inline-settings { display: flex; justify-content: flex-end; margin: 9px 0; }
.inline-settings label { color: var(--muted); font-size: 12px; }
.inline-settings select { margin-left: 4px; padding: 4px; font-size: 12px; }
.trade-settings { align-items: center; gap: 7px; }
.custom-slippage { display: grid; grid-template-columns: 64px auto; align-items: center; min-height: 34px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #11180f; }
.custom-slippage:focus-within { border-color: rgba(198, 250, 74, 0.58); box-shadow: 0 0 0 3px rgba(198, 250, 74, 0.07); }
.custom-slippage input { width: 64px; min-width: 0; padding: 6px 4px 6px 9px; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 12px; font-weight: 800; text-align: right; }
.custom-slippage b { padding-right: 9px; color: var(--lime); font-size: 12px; }
.slippage-summary { margin: -1px 0 9px; color: #747e6f; font-size: 12px; line-height: 1.4; text-align: right; }
.slippage-summary.warning { color: var(--orange); }
.action-submit { width: 100%; margin-top: 5px; }
.action-footnote { margin: 11px 0 0; color: #747e6f; font-size: 12px; line-height: 1.45; }
.ratio-button { display: block; margin: -4px auto; border-style: dashed; }
.harvest-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px; border: 1px solid rgba(198, 250, 74, 0.17); border-radius: 11px; background: rgba(198, 250, 74, 0.035); }
.harvest-card span,
.harvest-card strong,
.harvest-card small { display: block; }
.harvest-card span { color: var(--muted); font-size: 12px; }
.harvest-card strong { font-size: 17px; }
.harvest-card small { color: var(--lime); font-size: 12px; }
.harvest-card button { min-height: 34px; padding: 7px 10px; font-size: 12px; }

.policy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.policy-card { padding: clamp(22px, 4vw, 38px); }
.policy-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.policy-card-heading span { color: var(--muted); font-size: 12px; }
.policy-card-heading h2 { margin: 2px 0 0; font-size: 28px; letter-spacing: -0.045em; }
.policy-live { padding: 5px 8px; color: var(--lime) !important; border: 1px solid rgba(198, 250, 74, 0.2); border-radius: 7px; text-transform: uppercase; font-weight: 800; }
.policy-toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.policy-toggles .toggle-row { margin: 0; }
.policy-card > .button { margin-top: 22px; }
.policy-side { display: grid; gap: 12px; }
.policy-side > * { padding: 18px; }
.policy-side section > span,
.policy-side section > b,
.policy-side section > a { display: block; }
.policy-side section > span { color: var(--muted); font-size: 12px; }
.policy-side section > b { margin-top: 4px; font-size: 14px; }
.policy-side section > a { margin-top: 7px; color: var(--lime); font-size: 12px; }
.policy-side form label { margin: 0; }
.policy-side form button { width: 100%; margin-top: 10px; }
.policy-side form p { color: var(--muted); font-size: 12px; }
.hard-bounds ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.policy-gate { padding: 90px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.policy-gate > span { font-size: 32px; }
.policy-gate h2 { margin: 12px 0 4px; }
.policy-gate p { color: var(--muted); }
.policy-gate a { color: var(--lime); }

.how-dialog {
  width: min(650px, calc(100% - 28px));
  padding: clamp(24px, 5vw, 44px);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #151d12;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}
.how-dialog::backdrop { background: rgba(2, 4, 2, 0.72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 12px; right: 15px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 25px; }
.how-dialog h2 { margin: 0; font-size: clamp(30px, 5vw, 45px); line-height: 1; letter-spacing: -0.05em; }
.how-dialog ol { margin: 28px 0; padding: 0; list-style: none; }
.how-dialog li { display: grid; grid-template-columns: 65px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.how-dialog li b { color: var(--lime); font-size: 13px; }
.how-dialog li span { color: var(--muted); font-size: 12px; }
.dialog-fees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-fees div { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.dialog-fees span,
.dialog-fees b { display: block; }
.dialog-fees span { color: var(--muted); font-size: 12px; }
.dialog-fees b { margin-top: 2px; color: var(--lime); }
.dialog-fees p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.fine-print { margin: 22px 0 0; color: #6e7869; font-size: 12px; }

.toast-stack { position: fixed; z-index: 300; right: 14px; bottom: 14px; display: grid; width: min(370px, calc(100% - 28px)); gap: 8px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-left: 3px solid var(--lime); border-radius: 11px; background: rgba(19, 27, 17, 0.97); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: auto; transform: translateY(8px); transition: opacity 160ms, transform 160ms; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-error { border-left-color: var(--pink); }
.toast-warning { border-left-color: var(--orange); }
.toast-demo { border-left-color: var(--blue); }
.toast > div b,
.toast > div span { display: block; }
.toast > div b { font-size: 12px; }
.toast > div span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.toast > a { color: var(--lime); font-size: 12px; font-weight: 800; }
.toast > button { padding: 2px; color: var(--muted); border: 0; background: transparent; cursor: pointer; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
  padding: 35px clamp(20px, 4vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-brand { font-size: 15px; }
footer p { grid-column: 1; margin: 0; font-size: 12px; }
footer > div { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 15px; }
footer > div a,
footer > div button { padding: 0; color: var(--muted); border: 0; background: none; cursor: pointer; font-size: 12px; }
footer > div a:hover,
footer > div button:hover { color: var(--lime); }
footer small { grid-column: 1 / -1; margin-top: 12px; color: #596253; font-size: 12px; }

/* Native selects retain keyboard support while matching the Food Farm console. */
select {
  appearance: none;
  color-scheme: dark;
  background-color: #11180f;
  background-image: none;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

select:hover { border-color: rgba(198, 250, 74, 0.38); background-color: #151e12; }
select:focus { border-color: rgba(198, 250, 74, 0.58); box-shadow: 0 0 0 3px rgba(198, 250, 74, 0.07); }
select option { color: var(--text); background: #11180f; }

.select-field {
  position: relative;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.select-field::after,
.select-unit::after,
.select-inline::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--lime);
  border-bottom: 1.5px solid var(--lime);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.select-field::after { top: calc(50% - 5px); right: 15px; }
.select-unit,
.select-inline { position: relative; }
.select-unit::after { top: calc(50% - 5px); right: 15px; }
.select-inline::after { top: calc(50% - 5px); right: 12px; }

.select-field:hover { border-color: rgba(198, 250, 74, 0.3); background: rgba(198, 250, 74, 0.035); }
.select-field:focus-within { border-color: rgba(198, 250, 74, 0.52); box-shadow: 0 0 0 3px rgba(198, 250, 74, 0.06); }
.select-field select {
  min-height: 38px;
  padding: 7px 34px 7px 9px;
  border: 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

.unit-input select {
  min-width: 112px;
  padding: 0 36px 0 13px;
  background-color: rgba(255, 255, 255, 0.035);
  background-image: none;
}

.inline-settings select {
  min-height: 34px;
  margin-left: 7px;
  padding: 6px 34px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-color: #11180f;
  background-image: none;
}

@media (max-width: 1080px) {
  body { padding-bottom: 72px; }
  .site-header { grid-template-columns: 1fr auto; backdrop-filter: none; }
  .main-nav { position: fixed; right: 14px; bottom: 14px; left: 14px; z-index: 110; justify-content: space-around; padding: 6px; background: rgba(15, 21, 13, 0.94); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); backdrop-filter: blur(14px); }
  .hero-shell { grid-template-columns: 1fr; min-height: 0; padding-top: 60px; }
  .hero-copy { max-width: 800px; }
  .hero-terminal { min-height: 440px; transform: none; }
  .farm-grid,
  .farm-grid-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-layout,
  .market-layout,
  .policy-layout { grid-template-columns: 1fr; }
  .studio-preview,
  .action-console { position: static; }
  .studio-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .studio-preview > .eyebrow,
  .preview-token,
  .preview-fee { grid-column: 1 / -1; }
  .policy-side { grid-template-columns: repeat(3, 1fr); }
  footer { padding-bottom: 100px; }
}

@media (max-width: 760px) {
  :root { --header-height: 62px; }
  .site-header { padding: 8px 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand { font-size: 16px; }
  .network-pill { display: none; }
  .section-shell,
  .hero-shell,
  .protocol-strip { width: min(100% - 24px, 1240px); }
  .hero-shell { gap: 35px; padding: 48px 0 35px; }
  .hero-copy h1 { font-size: clamp(47px, 15vw, 70px); }
  .hero-lede { font-size: 15px; }
  .hero-actions .button { flex: 1 1 auto; }
  .trust-row { gap: 8px 14px; }
  .hero-terminal { min-height: 380px; padding: 17px; border-radius: 20px; }
  .terminal-price { margin-top: 32px; }
  .hero-chart { height: 170px; }
  .terminal-actions { grid-template-columns: 1fr 1fr; }
  .protocol-strip { grid-template-columns: 1fr 1fr; margin-bottom: 74px; }
  .protocol-strip > div { padding: 17px; border-bottom: 1px solid var(--line); }
  .protocol-strip > div:nth-child(even) { border-right: 0; }
  .protocol-strip > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .home-farms { padding-bottom: 74px; }
  .section-heading,
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading { padding-top: 42px; }
  .page-heading .button { width: 100%; }
  .farm-grid,
  .farm-grid-directory { grid-template-columns: 1fr; }
  .dual-audience { grid-template-columns: 1fr; margin-bottom: 74px; }
  .dual-audience article { min-height: 340px; padding: 35px 26px; }
  .dual-audience article + article { border-top: 1px solid var(--line); border-left: 0; }
  .directory-toolbar { grid-template-columns: 1fr; }
  .filter-pills { justify-content: space-between; }
  .select-field { justify-content: space-between; }
  .directory-summary span:last-child { display: none; }
  .studio-layout { margin-inline: -2px; }
  .stepper { padding: 0 11px; }
  .stepper li { justify-content: center; }
  .stepper li span { display: none; }
  .wizard-step { padding: 24px 17px; }
  .artwork-dropzone { align-items: stretch; flex-wrap: wrap; }
  .artwork-prompt,
  .artwork-result { flex: 1 1 calc(100% - 62px); }
  .artwork-dropzone .button { flex: 1 1 auto; }
  .remove-artwork { padding-inline: 10px; }
  .field-grid.two,
  .field-grid.three { grid-template-columns: 1fr; }
  .field-grid .span-two { grid-column: auto; }
  .preset-row { grid-template-columns: 1fr 1fr; }
  .allocation-editor label { grid-template-columns: 1fr; gap: 5px; }
  .opening-preview { grid-template-columns: 1fr; }
  .opening-preview div { border-right: 0; border-bottom: 1px solid var(--line); }
  .launch-review { grid-template-columns: 1fr; }
  .transaction-plan { grid-template-columns: 1fr; }
  .transaction-plan ol { display: grid; gap: 5px; }
  .wizard-nav { gap: 7px; }
  .wizard-nav .button { flex: 1; }
  .studio-preview { display: block; }
  .preview-token,
  .preview-metrics,
  .preview-allocation,
  .preview-fee { margin-top: 17px; }
  .farm-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
  .farm-hero-price { width: 100%; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
  .farm-identity { align-items: flex-start; }
  .farm-identity h1 { white-space: normal; }
  .identity-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .token-avatar.large { width: 50px; height: 50px; border-radius: 14px; }
  .detail-metrics { grid-template-columns: 1fr 1fr; }
  .detail-metrics div { border-bottom: 1px solid var(--line); }
  .detail-metrics div:nth-child(even) { border-right: 0; }
  .detail-metrics div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .transparency-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .transparency-heading p { text-align: left; }
  .transparency-grid { grid-template-columns: 1fr; }
  .farm-transparency article { border-right: 0; border-bottom: 1px solid var(--line); }
  .farm-transparency article:last-child { border-bottom: 0; }
  .transparency-foot { flex-direction: column; }
  .chart-wrap { height: 330px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .period-tabs { width: 100%; overflow-x: auto; }
  .period-tabs button { flex: 1 0 auto; }
  .activity-filters { align-self: stretch; }
  .activity-filters button { flex: 1; }
  .activity-row { grid-template-columns: 60px minmax(100px, 1fr) 56px 12px; }
  .activity-row > span:not(.activity-kind) { display: none; }
  .mechanics-card { grid-template-columns: 1fr 1fr; }
  .mechanics-card div { border-bottom: 1px solid var(--line); }
  .mechanics-card div:nth-child(even) { border-right: 0; }
  .mechanics-card div:nth-last-child(-n + 2) { border-bottom: 0; }
  .policy-toggles,
  .policy-side { grid-template-columns: 1fr; }
  .how-dialog { padding: 27px 20px; }
  .dialog-fees { grid-template-columns: 1fr; }
  .dialog-fees p { grid-column: auto; }
  footer { grid-template-columns: 1fr; }
  footer > div { grid-column: 1; grid-row: auto; }
}

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