:root {
  color-scheme: light;
  --bg: #fff8f1;
  --bg-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #1b140f;
  --muted: #74665a;
  --line: rgba(68, 43, 21, 0.12);
  --shadow: 0 24px 70px rgba(99, 45, 10, 0.14);
  --red: #e83f35;
  --orange: #f47416;
  --yellow: #f5b70a;
  --green: #2fbf71;
  --red-soft: rgba(232, 63, 53, 0.13);
  --orange-soft: rgba(244, 116, 22, 0.14);
  --yellow-soft: rgba(245, 183, 10, 0.18);
  --green-soft: rgba(47, 191, 113, 0.14);
  --bg-glow-yellow: rgba(245, 183, 10, 0.18);
  --bg-glow-red: rgba(232, 63, 53, 0.13);
  --bg-glow-orange: rgba(244, 116, 22, 0.14);
  --bg-grid: rgba(244, 116, 22, 0.08);
  --bg-speck: rgba(27, 20, 15, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-scale: 0.88;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090d;
  --bg-strong: #0d0f14;
  --surface: rgba(18, 19, 24, 0.84);
  --surface-strong: #15171d;
  --text: #f8f4ee;
  --muted: #aaa6a0;
  --line: rgba(255, 244, 232, 0.1);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --red-soft: rgba(232, 63, 53, 0.16);
  --orange-soft: rgba(244, 116, 22, 0.13);
  --yellow-soft: rgba(245, 183, 10, 0.14);
  --green-soft: rgba(47, 191, 113, 0.16);
  --bg-glow-yellow: rgba(245, 183, 10, 0.07);
  --bg-glow-red: rgba(232, 63, 53, 0.08);
  --bg-glow-orange: rgba(244, 116, 22, 0.05);
  --bg-grid: rgba(255, 244, 232, 0.035);
  --bg-speck: rgba(255, 244, 232, 0.07);
}

* {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  zoom: var(--ui-scale);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, var(--bg-glow-yellow), transparent 30rem),
    radial-gradient(circle at 88% 18%, var(--bg-glow-red), transparent 32rem),
    radial-gradient(circle at 50% 100%, var(--bg-glow-orange), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    radial-gradient(circle, var(--bg-speck) 1px, transparent 1.5px);
  background-position:
    center,
    center,
    0 0;
  background-size:
    76px 76px,
    76px 76px,
    30px 30px;
  mask-image: radial-gradient(circle at 50% 12%, black, transparent 72%);
  opacity: 0.28;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

:root:not([data-authenticated="true"]) .page-shell {
  display: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.auth-card {
  display: grid;
  width: min(320px, 100%);
  gap: 8px;
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.auth-card label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-card input {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.optional-label {
  color: var(--orange);
  font-size: 0.7rem;
}

.auth-agree {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.auth-agree input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.auth-agree a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-agree a:hover {
  color: var(--orange);
}

.public-legal-back {
  display: none;
  align-items: center;
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
}

.public-legal-back:hover {
  border-color: var(--orange);
  color: var(--orange);
}

html[data-public-legal="true"] .main-nav,
html[data-public-legal="true"] .header-actions,
html[data-public-legal="true"] .site-footer nav a[href="#docs"],
html[data-public-legal="true"] .site-footer nav a[href="#support"] {
  display: none;
}

html[data-public-legal="true"] .public-legal-back {
  display: inline-flex;
}

.auth-card .btn-full {
  min-height: 42px;
  margin-top: 2px;
}

.auth-captcha {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.auth-captcha.is-hidden,
.auth-captcha[hidden] {
  display: none !important;
}

.auth-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.auth-switch-link {
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--orange) 75%, var(--text));
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch-link:hover {
  color: var(--text);
}

.auth-status {
  min-height: 1.1em;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.auth-shell[data-auth-mode="login"] [data-auth-signup-only],
.auth-shell[data-auth-mode="signup"] [data-auth-login-only] {
  display: none;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  box-shadow: 0 14px 40px rgba(36, 20, 8, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.metrics,
.hero-actions,
.card-heading,
.split-actions,
.wallet-toolbar,
.preview-token,
.risk-row,
.range-card > div {
  display: flex;
  align-items: center;
}

.brand {
  grid-area: brand;
  gap: 10px;
  min-width: 0;
}

.brand > span {
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.main-nav {
  grid-area: nav;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  transition: 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--orange-soft);
  color: var(--text);
}

.header-actions {
  display: flex;
  grid-area: actions;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.network-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.native-network-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.network-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.network-trigger:hover,
.network-picker.is-open .network-trigger {
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.network-trigger strong {
  flex: 1;
  text-align: left;
}

.network-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--orange) 22%, var(--line));
}

.network-logo.is-bnb,
.network-logo.is-fourmeme,
.network-logo.is-flap,
.network-logo.is-robinhood,
.network-logo.is-pons,
.network-logo.is-raydium {
  background: #000;
  object-fit: cover;
}

.network-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.network-picker.is-open .network-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.ui-select.is-open .network-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.network-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  width: 100%;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.network-picker.is-open .network-menu {
  display: grid;
  gap: 4px;
}

.network-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.network-option:hover,
.network-option.is-active {
  background: var(--orange-soft);
}

.theme-toggle,
.header-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.header-logout:hover {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--surface));
}

.header-logout[hidden] {
  display: none;
}

.toggle-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--red));
}

[data-theme="dark"] .toggle-dot {
  background: var(--yellow);
  box-shadow: inset -6px -4px 0 var(--surface);
}

[data-theme="light"] .toggle-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange) 58%, var(--yellow));
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  color: #1b1008;
  box-shadow: 0 14px 32px rgba(244, 116, 22, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(244, 116, 22, 0.36);
}

.btn-outline {
  border: 1px solid color-mix(in srgb, var(--orange) 28%, var(--line));
  background: color-mix(in srgb, var(--surface-strong) 88%, #000);
  color: color-mix(in srgb, var(--orange) 42%, var(--text));
}

.btn-outline:hover {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line));
  background: color-mix(in srgb, var(--orange-soft) 70%, var(--surface-strong));
  color: var(--text);
}

.btn.is-connected {
  border-color: color-mix(in srgb, var(--orange) 60%, transparent);
  background: var(--yellow-soft);
  color: var(--text);
}

.btn-ghost,
.btn-soft {
  border: 1px solid color-mix(in srgb, var(--orange) 34%, transparent);
  background: color-mix(in srgb, #1a120c 72%, var(--orange) 18%);
  color: #ffd7b0;
}

.btn-soft {
  min-height: 36px;
  padding-inline: 15px;
  font-size: 0.88rem;
}

.btn-ghost:hover,
.btn-soft:hover {
  border-color: color-mix(in srgb, var(--orange) 58%, transparent);
  background: color-mix(in srgb, #22160f 55%, var(--orange) 28%);
  color: #ffe7cc;
}

.btn.is-danger,
.post-launch-actions .btn.is-danger {
  border-color: color-mix(in srgb, #ff6b6b 55%, transparent);
  background: color-mix(in srgb, #1a1012 78%, #ff6b6b 14%);
  color: #ffc4c4;
}

.btn.is-danger:hover,
.post-launch-actions .btn.is-danger:hover {
  border-color: color-mix(in srgb, #ff6b6b 75%, transparent);
  background: color-mix(in srgb, #241416 60%, #ff6b6b 22%);
  color: #ffd6d6;
}

:root:not([data-theme="dark"]) .btn-outline {
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--orange) 8%);
  color: color-mix(in srgb, var(--orange) 35%, var(--text));
}

:root:not([data-theme="dark"]) .btn-ghost,
:root:not([data-theme="dark"]) .btn-soft {
  background: color-mix(in srgb, #fff4ea 70%, var(--orange) 18%);
  border-color: color-mix(in srgb, var(--orange) 32%, transparent);
  color: color-mix(in srgb, var(--orange) 55%, #5a2e0c);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transform: none;
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 88px 0 56px;
}

.hero-copy,
.hero-panel,
.form-card,
.review-card,
.risk-card,
.feature-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-copy {
  min-height: 480px;
  padding: 56px;
  border-radius: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 8px;
  flex: 0 0 32px;
  border-radius: 0;
  background:
    radial-gradient(circle at 4px 50%, var(--red) 0 4px, transparent 4.5px),
    radial-gradient(circle at 16px 50%, var(--orange) 0 4px, transparent 4.5px),
    radial-gradient(circle at 28px 50%, var(--yellow) 0 4px, transparent 4.5px);
  box-shadow: none;
  content: "";
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: var(--space-1);
  font-size: 1.12rem;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy p {
  max-width: 610px;
  font-size: 1.08rem;
}

.hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 38px;
}

.status-ring {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  align-self: flex-end;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--surface-strong) 55%, transparent 57%),
    conic-gradient(var(--red), var(--orange), var(--yellow) 73%, var(--line) 0);
}

.status-ring span,
.status-ring small {
  grid-area: 1 / 1;
}

.status-ring span {
  margin-top: -12px;
  font-size: 2rem;
  font-weight: 900;
}

.status-ring small {
  margin-top: 42px;
  color: var(--muted);
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 0;
}

.metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.metrics dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.metrics dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.workflow {
  padding-top: 18px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.step span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 900;
}

.step.is-active {
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft));
  color: var(--text);
}

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

.launch-form {
  display: grid;
  gap: 14px;
}

.form-card,
.review-card,
.risk-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.card-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-heading > div {
  flex: 1;
}

.card-heading p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #1b1008;
  font-size: 0.8rem;
  font-weight: 900;
}

.card-icon.red {
  background: var(--red);
}

.card-icon.orange {
  background: var(--orange);
}

.card-icon.yellow {
  background: var(--yellow);
}

.status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
}

label {
  display: grid;
  gap: var(--space-1);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--surface-strong);
  color: var(--text);
  padding: 0 14px;
}

select {
  appearance: none;
  padding-right: 42px;
  background-color: var(--surface-strong);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange) 50%),
    linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
}

select option,
select optgroup {
  min-height: 38px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 800;
}

select option:checked {
  background: color-mix(in srgb, var(--orange) 18%, var(--surface-strong));
  box-shadow: 0 0 0 100vmax var(--orange-soft) inset;
  color: var(--text);
}

select option:hover,
select option:focus {
  background: color-mix(in srgb, var(--orange) 14%, var(--surface-strong));
  color: var(--text);
}

textarea {
  min-height: 92px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.ui-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.ui-select.is-open {
  z-index: 60;
}

.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ui-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.ui-select-trigger strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-trigger .network-chevron {
  flex: 0 0 auto;
}

.ui-select.is-open .ui-select-trigger,
.ui-select-trigger:hover,
.ui-select-trigger:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
  outline: none;
}

.ui-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 60;
  display: none;
  max-height: min(260px, 50vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.ui-select.is-open .ui-select-menu {
  display: grid;
  gap: 4px;
}

.ui-select-option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
}

.ui-select-option:hover,
.ui-select-option:focus-visible {
  background: var(--orange-soft);
  color: var(--text);
  outline: none;
}

.ui-select-option.is-active {
  background: var(--orange-soft);
  color: var(--orange);
}

.ui-select-option:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tax-profile-header-control .ui-select-trigger {
  min-height: 42px;
  border-radius: 14px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.split-actions,
.wallet-toolbar,
.two-col,
.three-col {
  display: grid;
  gap: var(--space-2);
}

.split-actions {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 0;
  color: var(--text);
}

.toggle-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}

.toggle-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 52px;
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.toggle-button:hover {
  transform: translateY(-1px);
  background: var(--orange-soft);
}

.toggle-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-button strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.toggle-button:has(input:checked) {
  border-color: color-mix(in srgb, var(--orange) 60%, transparent);
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft));
}

.toggle-button:has(input:checked) strong {
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow));
  color: #1b1008;
}

.wallet-toolbar {
  grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.6fr) minmax(240px, 1fr);
}

.wallet-list {
  display: grid;
  gap: var(--space-2);
  margin-top: 0;
}

.bundle-balance-panel {
  display: grid;
  gap: var(--space-2);
  margin-top: 0;
}

.bundle-balance-list {
  display: grid;
  gap: 10px;
}

.bundle-balance-row {
  display: grid;
  grid-template-columns: 14px minmax(220px, 1fr) minmax(180px, auto) minmax(110px, auto);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.balance-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.bundle-balance-row.is-funded .balance-dot {
  background: #32d583;
  box-shadow: 0 0 0 4px rgba(50, 213, 131, 0.16);
}

.bundle-balance-row span,
.bundle-balance-row small,
.disperse-actions span {
  color: var(--muted);
}

.bundle-balance-row:not(.is-funded) span,
.bundle-balance-row:not(.is-funded) small {
  color: #ff8a7a;
}

.bundle-balance-row.is-funded span,
.bundle-balance-row.is-funded small {
  color: var(--green);
}

.bundle-balance-row small {
  text-align: right;
}

.wallet-identity,
.wallet-identity-edit {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wallet-identity code,
.wallet-identity-edit code {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.disperse-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-2);
  margin-top: 0;
}

.disperse-actions span {
  grid-column: 1 / -1;
  font-weight: 800;
}

.btn-funding-primary,
.btn-funding-secondary {
  min-height: 50px;
  justify-content: center;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 950;
}

.btn-funding-primary {
  border: 1px solid color-mix(in srgb, var(--yellow) 45%, var(--orange));
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow));
  color: #1b1008;
  box-shadow: 0 16px 38px rgba(244, 116, 22, 0.34);
}

.btn-funding-secondary {
  border: 1px solid color-mix(in srgb, var(--orange) 55%, var(--line));
  background: linear-gradient(135deg, var(--orange-soft), var(--yellow-soft));
  color: var(--text);
}

.payment-terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(8, 10, 14, 0.68);
  backdrop-filter: blur(12px);
}

.site-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(12px);
}

.site-modal-overlay.is-hidden,
.payment-terminal-overlay.is-hidden {
  display: none;
}

.site-modal {
  display: grid;
  gap: var(--space-3);
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line));
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.site-modal-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft));
}

.site-modal-topbar > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.site-modal-topbar h2,
.site-modal-topbar p {
  margin: 0;
}

.site-modal-topbar h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.site-modal-topbar p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-modal-body {
  display: grid;
  gap: 10px;
  padding: 4px var(--space-4) 0;
}

.site-modal-body p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}

.site-modal-body small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-all;
}

.site-modal-prompt {
  display: grid;
  gap: 8px;
}

.site-modal-prompt.is-hidden {
  display: none;
}

.site-modal-prompt span {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-modal-prompt input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 88%, #000);
  color: var(--text);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.site-modal-prompt input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.site-modal-trade {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.site-modal-trade.is-hidden {
  display: none;
}

.site-modal-trade-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  min-width: 0;
}

.site-modal-trade-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  min-width: 0;
  overflow: hidden;
}

.site-modal-trade-row.is-pending {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--line));
}

.site-modal-trade-row.is-running {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line));
  background: color-mix(in srgb, var(--orange-soft) 35%, var(--surface-strong));
}

.site-modal-trade-row.is-ok {
  border-color: color-mix(in srgb, #32d583 45%, var(--line));
}

.site-modal-trade-row.is-clickable {
  cursor: pointer;
}

.site-modal-trade-row.is-clickable:hover {
  border-color: color-mix(in srgb, var(--orange) 55%, #32d583);
  background: color-mix(in srgb, var(--orange-soft) 22%, var(--surface-strong));
}

.site-modal-trade-row.is-error {
  border-color: color-mix(in srgb, #ef4444 50%, var(--line));
}

.site-modal-trade-row strong {
  font-size: 0.92rem;
}

.site-modal-trade-row code,
.site-modal-trade-row small {
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}

.site-modal-trade-row .trade-status {
  font-weight: 800;
  font-size: 0.78rem;
}

.site-modal-trade-row.is-ok .trade-status {
  color: #6ee7a8;
}

.site-modal-trade-row.is-error .trade-status {
  color: #ff8a7a;
}

.site-modal-trade-row.is-running .trade-status {
  color: #ffd39a;
}

.site-modal-meter {
  display: grid;
  gap: 8px;
}

.site-modal-meter-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-strong) 80%, #000);
  border: 1px solid var(--line);
}

.site-modal-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 70%, #b45309), var(--orange));
  transition: width 220ms ease;
}

.site-modal-meter-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.wallet-buyer-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(180px, 1fr) minmax(100px, 0.45fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
}

.wallet-buyer-row .deployer-nickname-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.wallet-buyer-row .deployer-nickname-field small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-buyer-row code {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-buyer-row .wallet-balance {
  color: var(--orange);
  font-weight: 900;
}

.wallet-buyer-row .wallet-balance.is-checking {
  color: var(--muted);
}

.wallet-buyer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallet-buyer-actions .btn {
  min-height: 36px;
  padding: 0 12px;
}

.payment-terminal {
  width: min(840px, 100%);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line));
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.payment-terminal.is-disperse-layout {
  width: min(920px, 100%);
}

.terminal-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft));
}

.terminal-topbar h2,
.terminal-topbar p {
  margin: 0;
}

.terminal-topbar h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.terminal-topbar p {
  color: var(--muted);
  line-height: 1.35;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.terminal-dots span:nth-child(2) {
  background: var(--orange);
}

.terminal-dots span:nth-child(3) {
  background: var(--yellow);
}

.terminal-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.terminal-screen {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #080a0e;
  color: #f8fafc;
}

.terminal-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fbbf24;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.terminal-status .is-complete {
  color: #6ee7a8;
}

.terminal-output {
  display: grid;
  gap: 7px;
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%),
    #0c1017;
  background-size: 100% 28px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.terminal-output.is-hidden,
.disperse-flow.is-hidden {
  display: none;
}

.disperse-flow {
  display: grid;
  gap: 10px;
  overflow: visible;
  padding-right: 0;
}

.disperse-flow-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 82%, #000);
}

.disperse-flow-setup {
  gap: 8px;
}

.disperse-flow-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.disperse-flow-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.disperse-flow-kv span,
.disperse-flow-balance span,
.disperse-flow-status,
.disperse-flow-total-note,
.disperse-flow-wallets-head small {
  color: var(--muted);
  font-size: 0.8rem;
}

.disperse-flow-kv strong,
.disperse-flow-balance strong {
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.disperse-flow-kv strong[data-disperse-flow-total] {
  color: #ffd39a;
  font-size: 1rem;
}

.disperse-flow-wallets {
  display: grid;
  gap: 8px;
}

.disperse-flow-wallets-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.disperse-flow-buyers {
  display: grid;
  gap: 6px;
  max-height: none;
  overflow: visible;
}

.disperse-flow-buyer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--bg-strong) 70%, transparent);
  font-size: 0.82rem;
}

.disperse-flow-buyer.is-ready {
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
  background: var(--green-soft);
}

.disperse-flow-buyer.is-short {
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
  background: var(--red-soft);
}

.disperse-flow-buyer code {
  color: var(--muted);
  font-size: 0.72rem;
}

.disperse-flow-buyer-meta {
  display: grid;
  gap: 2px;
  text-align: right;
  font-weight: 700;
}

.disperse-flow-buyer.is-ready .disperse-flow-buyer-meta {
  color: var(--green);
}

.disperse-flow-buyer.is-short .disperse-flow-buyer-meta {
  color: #ff8a7a;
}

.disperse-flow-buyer-meta small {
  color: var(--muted);
  font-weight: 600;
}

.disperse-flow-deposit-top,
.disperse-flow-deposit-actions,
.disperse-flow-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.disperse-flow-deposit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.disperse-flow-deposit code {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line));
  background: color-mix(in srgb, var(--bg-strong) 80%, transparent);
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 0.84rem;
}

.disperse-flow-progress {
  display: grid;
  gap: 8px;
  padding: 2px 0 0;
}

.disperse-flow-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.disperse-flow-progress-head strong {
  color: var(--muted);
  font-size: 0.84rem;
}

.disperse-flow-meter {
  display: grid;
  gap: 6px;
}

.disperse-flow-meter-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-strong) 70%, #000);
}

.disperse-flow-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 70%, #b45309), var(--orange));
  transition: width 220ms ease, background 220ms ease;
}

.disperse-flow-meter-fill.is-complete {
  background: linear-gradient(90deg, color-mix(in srgb, var(--green) 70%, #15803d), var(--green));
}

.disperse-flow-meter-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.disperse-flow-meter-meta .is-complete,
.disperse-flow-progress-head strong.is-complete {
  color: var(--green);
}

.disperse-flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}

.disperse-flow-steps li {
  position: relative;
  margin: 0;
  padding: 6px 4px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.disperse-flow-steps li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 6px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--muted) 55%, var(--line));
  background: #0c1017;
  box-shadow: none;
  position: static;
  left: auto;
  top: auto;
  transform: none;
}

.disperse-flow-steps li.is-active {
  color: #ffd39a;
  background: transparent;
  border: 0;
}

.disperse-flow-steps li.is-active::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.disperse-flow-steps li.is-done {
  color: #6ee7a8;
  background: transparent;
  border: 0;
}

.disperse-flow-steps li.is-done::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: none;
}

.disperse-flow-steps li.is-error {
  color: #ff8a7a;
  background: transparent;
  border: 0;
}

.disperse-flow-steps li.is-error::before {
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 720px) {
  .disperse-flow-setup-grid,
  .disperse-flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .disperse-flow-steps li {
    text-align: left;
    padding-left: 18px;
  }

  .disperse-flow-steps li::before {
    position: absolute;
    left: 0;
    top: 8px;
    margin: 0;
  }
}

.terminal-line {
  color: #d7dde8;
  white-space: pre-wrap;
}

.terminal-line::before {
  content: "> ";
  color: #f97316;
}

.terminal-line.is-code::before {
  content: "";
}

.terminal-line.is-success {
  color: #86efac;
}

.terminal-line.is-error {
  color: #fca5a5;
}

.terminal-wallet-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.terminal-wallet-form label {
  color: #f8fafc;
}

.terminal-wallet-form input,
.terminal-wallet-form textarea {
  border-color: rgba(251, 191, 36, 0.28);
  background: #0c1017;
  color: #f8fafc;
}

.terminal-wallet-form textarea {
  min-height: 120px;
  resize: vertical;
}

.terminal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
}

.field-grid,
.settings-grid {
  display: grid;
  gap: var(--space-3);
}

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

.field-grid.four {
  /* Keep short rows grouped left instead of stretching two fields across the panel */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.paired-fields {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(min(160px, 100%), 1fr));
  gap: var(--space-3);
}

.tax-limits-grid > label {
  display: grid;
  grid-template-rows: auto auto minmax(1.15em, auto);
  align-content: start;
  gap: 8px;
}

.tax-limits-grid > label > input {
  margin: 0;
}

.tax-limits-grid .field-hint {
  display: block;
  min-height: 1.15em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.tax-limits-grid .field-hint-spacer {
  visibility: hidden;
}

.settings-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

.file-upload-field {
  display: grid;
  gap: var(--space-1);
}

.media-upload-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: start;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
}

.metadata-desc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
}

.metadata-description-field {
  min-width: 0;
}

.metadata-description-field textarea {
  min-height: 132px;
}

.metadata-identity-grid {
  min-width: 0;
}

.image-dropzone-field {
  flex: 0 0 132px;
  width: 132px;
  max-width: 132px;
}

.image-dropzone {
  --dropzone-accent: color-mix(in srgb, var(--line) 70%, #8a8a8a);
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--dropzone-accent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 92%, #000);
  box-shadow: none;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.image-dropzone-field:focus-within .image-dropzone,
.image-dropzone:hover {
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
  box-shadow: none;
  transform: translateY(-1px);
}

.image-dropzone.is-filled {
  padding: 0;
}

.image-dropzone-field input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.image-dropzone-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 8px;
  text-align: center;
  pointer-events: none;
}

.image-dropzone.is-filled .image-dropzone-empty {
  display: none;
}

.image-dropzone-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.image-dropzone-icon svg {
  width: 32px;
  height: 32px;
}

.image-dropzone-empty strong {
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.image-dropzone-empty small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.image-dropzone-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.image-dropzone-preview.is-hidden {
  display: none;
}

.image-dropzone-name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.image-dropzone-name.is-hidden {
  display: none;
}

@media (max-width: 720px) {
  .metadata-desc-row {
    grid-template-columns: 1fr;
  }

  .media-upload-grid {
    justify-self: start;
    justify-content: start;
    flex-wrap: wrap;
  }

  .metadata-description-field textarea {
    min-height: 92px;
  }
}

.file-upload-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.file-upload-field:focus-within .file-upload-control,
.file-upload-control:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.file-upload-field:not(.image-dropzone-field) input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 88%, #000);
  color: color-mix(in srgb, var(--orange) 42%, var(--text));
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.file-upload-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.file-upload-name.is-filled {
  color: var(--text);
}

.file-upload-field > small {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.terminal-wallet-form .file-upload-control {
  border-color: rgba(251, 191, 36, 0.28);
  background: #0c1017;
  color: #f8fafc;
}

.terminal-wallet-form .file-upload-btn {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.08);
  color: #f8fafc;
}

.terminal-wallet-form .file-upload-name {
  color: rgba(248, 250, 252, 0.72);
}

.wallet-batch-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(min(180px, 100%), max-content));
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.wallet-batch-tools small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.wallet-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(130px, 0.6fr) 34px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
}

.wallet-row button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 86%, var(--orange-soft));
  color: var(--text);
  cursor: pointer;
}

.wallet-row > button {
  width: 34px;
  height: 34px;
  border-color: color-mix(in srgb, var(--red) 24%, var(--line));
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--red-soft));
  color: var(--red);
  font-weight: 950;
}

.wallet-row-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wallet-row-meta span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.wallet-row-meta code {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.wallet-row-meta strong {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  color: var(--orange);
}

.bundle-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.managed-group-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.managed-group-field > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
}

.native-group-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.group-picker {
  position: relative;
  min-width: 0;
}

.group-edit-button {
  position: absolute;
  top: 6px;
  right: 42px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--orange) 38%, var(--line));
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.group-edit-button:hover {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft), var(--yellow-soft));
}

.group-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 82px 0 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 48%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.group-trigger .network-chevron {
  position: absolute;
  right: 18px;
}

.group-rename-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  grid-column: 1 / -1;
  align-items: center;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--orange) 36%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.group-picker.is-open .group-trigger {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.group-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  display: none;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--orange) 38%, var(--line));
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.group-picker.is-open .group-menu {
  display: grid;
}

.group-option {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.group-option:last-child {
  border-bottom: 0;
}

.group-option:hover,
.group-option.is-active {
  background: var(--orange-soft);
  color: var(--orange);
}

.range-card {
  display: grid;
  gap: var(--space-2);
  margin-top: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.range-card > div {
  justify-content: space-between;
}

.range-card input {
  padding: 0;
  accent-color: var(--orange);
}

.review-panel {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.review-card {
  background:
    linear-gradient(145deg, var(--red-soft), transparent 34%),
    linear-gradient(315deg, var(--yellow-soft), transparent 30%),
    var(--surface);
}

.preview-token {
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.preview-token small {
  display: block;
  color: var(--muted);
}

.token-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #fff7d0, transparent 28%),
    linear-gradient(135deg, var(--red), var(--orange), var(--yellow));
  box-shadow: 0 16px 32px rgba(244, 116, 22, 0.3);
}

.checklist {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.checklist .check-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
}

.checklist .is-complete {
  color: var(--text);
}

.checklist .is-complete .check-mark {
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.risk-card {
  box-shadow: none;
}

.risk-card h4 {
  margin-bottom: 16px;
}

.risk-row {
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.risk-row span {
  color: var(--muted);
}

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

.feature-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.compact-hero {
  grid-template-columns: 1fr 380px;
  padding: 58px 0 34px;
}

.compact-hero .hero-copy {
  min-height: auto;
}

.bot-console {
  padding-top: 14px;
}

.page-view {
  display: none !important;
  scroll-margin-top: 180px;
}

.page-view.is-active {
  display: block !important;
}

.page-view.is-active.standalone-page {
  display: grid !important;
}

.bot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.bot-summary {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.bot-card,
.flow-panel,
.standalone-page,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.bot-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
}

.bot-title,
.deployer-line,
.bot-flags,
.draft-list {
  display: grid;
  gap: var(--space-2);
}

.bot-title strong {
  font-size: 1.05rem;
}

.bot-title span,
.gas-line,
.deployer-line small,
.deployer-line code,
.bot-flags span {
  color: var(--muted);
}

.gas-line {
  margin: 0;
}

.next-launch {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.next-launch h2 {
  margin-bottom: 14px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.next-launch dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.next-launch div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.next-launch dt {
  color: var(--muted);
  font-weight: 800;
}

.next-launch dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.deployer-line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.deployer-line code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-flags {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.menu-grid {
  display: grid;
  gap: 8px;
}

.bot-menu {
  grid-template-columns: repeat(2, 1fr);
}

.menu-section-title {
  grid-column: 1 / -1;
  padding: 12px 4px 4px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-tile {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.menu-tile:hover {
  transform: translateY(-1px);
  background: var(--orange-soft);
}

.menu-tile.is-active {
  border-color: color-mix(in srgb, var(--orange) 60%, transparent);
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft));
}

.menu-tile.launch {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow));
  color: #1b1008;
}

.menu-tile.post {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--orange-soft), var(--yellow-soft));
}

.menu-tile.extras-link {
  grid-column: 1 / -1;
}

.menu-tile.danger {
  background: var(--red-soft);
}

.panel-stack {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  overflow: visible;
}

.flow-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-5);
  overflow: visible;
  transition: padding 160ms ease;
}

.panel-stack > .flow-panel:has(.ui-select.is-open),
.panel-stack > .flow-panel:has(.group-picker.is-open) {
  z-index: 50;
}

.wallet-selection-stack,
.wallet-selection-group,
.field-grid {
  overflow: visible;
}

.flow-panel.is-collapsed {
  gap: 0;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.flow-panel.is-collapsed > :not(.panel-heading) {
  display: none !important;
}

.panel-stack > .flow-panel > .panel-heading {
  cursor: pointer;
  user-select: none;
  border-radius: 16px;
  transition: background 160ms ease;
}

.panel-stack > .flow-panel > .panel-heading:hover {
  background: color-mix(in srgb, var(--orange-soft) 55%, transparent);
}

.panel-stack > .flow-panel > .panel-heading:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.panel-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.flow-panel.is-collapsed .panel-chevron {
  transform: rotate(-135deg) translate(-2px, -1px);
}

.flow-panel.is-collapsed .panel-heading p,
.flow-panel.is-collapsed .tax-profile-header-control,
.flow-panel.is-collapsed .donation-header-toggle {
  display: none;
}

.wallet-page-panel {
  margin-top: var(--space-3);
  box-shadow: none;
}

.wallet-selection-stack {
  display: grid;
  gap: var(--space-3);
}

.wallet-selection-group {
  display: grid;
  gap: var(--space-2);
}

.wallet-manager-notice {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--orange) 46%, var(--line));
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft), var(--yellow-soft));
}

.wallet-manager-notice span {
  color: var(--muted);
  line-height: 1.5;
}

.wallet-manager-notice .btn {
  width: max-content;
}

.is-hidden {
  display: none !important;
}

.standalone-page {
  gap: var(--space-3);
  align-content: start;
  margin-top: var(--space-3);
  padding: var(--space-5);
}

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: 0;
}

.panel-heading > div {
  flex: 1 1 220px;
}

.panel-heading > div,
.flow-panel,
.standalone-page,
.review-card,
.risk-card,
.profile-grid article,
.role-card,
.tax-profile-card,
.wallet-row,
.deployer-row {
  min-width: 0;
}

.panel-heading h2 {
  margin-bottom: var(--space-1);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.panel-heading p {
  margin-bottom: 0;
  line-height: 1.5;
}

.donation-header-toggle {
  min-width: min(220px, 100%);
  padding: 10px 12px;
}

.tax-profile-header-control {
  display: grid;
  grid-template-columns: minmax(0, 220px) 34px 34px;
  gap: var(--space-1);
  align-items: center;
  margin-left: auto;
  flex: 1 1 240px;
  max-width: 100%;
}

.tax-profile-header-control select {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
}

.tax-profile-header-control .ui-select {
  min-width: 0;
}

.donation-recipient-panel {
  margin-top: 0;
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--orange) 38%, var(--line));
  border-radius: 20px;
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft));
}

.chain-settings {
  display: grid;
  gap: var(--space-3);
  margin-top: 0;
}

.flap-settings {
  display: grid;
  gap: 14px;
}

.flap-settings-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flap-tax-rates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: calc(50% - 5px);
}

.flap-payment,
.flap-alloc {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.flap-payment-head,
.flap-alloc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.flap-payment-tabs {
  display: inline-flex;
  gap: 6px;
}

.flap-payment-tab {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.flap-payment-tab.is-active {
  border-color: color-mix(in srgb, var(--orange) 70%, var(--line));
  color: var(--text);
  background: color-mix(in srgb, var(--orange) 16%, transparent);
}

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

.flap-quote-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface-strong));
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.flap-quote-option img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #111;
}

.flap-quote-option.is-active {
  border-color: color-mix(in srgb, var(--orange) 80%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 45%, transparent);
  background: color-mix(in srgb, var(--orange) 14%, var(--surface-strong));
}

.flap-quote-option.is-soon {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.flap-quote-option small {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.flap-alloc-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.flap-alloc-status strong {
  color: var(--text);
}

.flap-alloc-status strong.is-bad {
  color: var(--red);
}

.flap-alloc-reset {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.flap-alloc-body {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

.flap-alloc-visual {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.flap-alloc-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#ff9a4a 0 10%, #f47416 10% 12%, #e85a2c 12% 16%, #d4352a 16% 100%);
  position: relative;
}

.flap-alloc-donut.is-invalid {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 55%, transparent);
}

.flap-alloc-donut::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--surface-strong);
}

.flap-alloc-donut span {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 750;
}

.flap-alloc.is-invalid .flap-alloc-donut span {
  color: var(--red);
}

.flap-alloc-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}

.flap-alloc-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flap-alloc-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.flap-alloc-controls {
  display: grid;
  gap: 8px;
}

.flap-alloc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(110px, 1.25fr) 64px 14px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.flap-alloc-row input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.flap-alloc.is-invalid .flap-alloc-row input[type="range"] {
  accent-color: var(--red);
}

.flap-alloc.is-invalid {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 18%, transparent);
}

.flap-alloc-num {
  min-height: 34px;
  min-width: 64px;
  width: 100%;
  text-align: right;
  padding-inline: 6px;
  box-sizing: border-box;
}

.flap-alloc-num::-webkit-outer-spin-button,
.flap-alloc-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.flap-alloc-num[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.flap-alloc.is-invalid .flap-alloc-num {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  color: color-mix(in srgb, var(--red) 45%, var(--text));
}

.flap-alloc-hint {
  margin: -2px 0 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.flap-alloc-hint.is-warn {
  color: color-mix(in srgb, var(--orange) 70%, var(--muted));
}

@media (max-width: 900px) {
  .flap-settings-row,
  .flap-quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flap-tax-rates {
    max-width: none;
  }

  .flap-alloc-body {
    grid-template-columns: 1fr;
  }
}

.panel-note,
.setting-note {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.panel-note[data-chain-scope="mev-warning"] {
  border-color: color-mix(in srgb, var(--yellow) 55%, var(--line));
  background: color-mix(in srgb, var(--yellow) 22%, var(--surface-strong));
  color: color-mix(in srgb, var(--yellow) 35%, var(--text));
}

.panel-note[data-chain-scope="mev-warning"] strong {
  color: color-mix(in srgb, var(--yellow) 70%, #fff6c8);
}

.panel-note[data-chain-scope="mev-warning"] span {
  color: color-mix(in srgb, var(--yellow) 40%, var(--text));
}

.panel-note span,
.setting-note span,
.setting-note small {
  color: var(--muted);
}

.setting-note strong {
  color: var(--orange);
}

.draft-list {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-4);
  margin-bottom: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.draft-list span {
  color: var(--muted);
}

.draft-list strong {
  color: var(--orange);
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.preflight-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

.preflight-card h3 {
  margin-bottom: 0;
}

.preflight-list {
  display: grid;
  gap: 10px;
}

.preflight-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.preflight-list span,
.preflight-list code,
.preflight-checks small {
  color: var(--muted);
}

.preflight-list strong,
.preflight-list code {
  text-align: right;
}

.preflight-alloc-detail {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  justify-content: stretch !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.preflight-alloc-detail span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.preflight-alloc-detail strong {
  color: var(--text);
  text-align: right;
}

.preflight-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preflight-checks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.preflight-checks li > span {
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.preflight-checks small {
  grid-column: 2;
}

.preflight-checks .is-complete {
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  background: var(--green-soft);
}

.preflight-checks .is-complete > span {
  border: 0;
  background: var(--green);
}

.preflight-checks .is-fail {
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  background: var(--red-soft);
}

.preflight-checks .is-fail > span {
  border: 0;
  background: var(--red);
}

.preflight-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-top: 0;
}

.slot-grid > .btn:only-child {
  grid-column: 1 / -1;
}

.slot-grid .btn.is-active-slot {
  border-color: color-mix(in srgb, var(--yellow) 58%, var(--orange));
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft), var(--yellow-soft));
  color: var(--text);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.tax-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-2);
  margin-top: 0;
}

.tax-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.tax-profile-card.is-active-slot .tax-profile-load {
  border-color: color-mix(in srgb, var(--yellow) 58%, var(--orange));
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft), var(--yellow-soft));
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.tax-profile-load {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.tax-profile-load strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 950;
}

.tax-profile-actions {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  gap: 8px;
}

.tax-profile-icon {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.tax-profile-save-icon::before {
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 2px;
  content: "";
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(255, 255, 255, 0.38);
}

.wallet-role-grid,
.extras-grid,
.extra-work-grid,
.post-launch-grid,
.profile-grid,
.admin-grid,
.review-grid {
  display: grid;
  gap: var(--space-3);
}

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

.admin-card {
  align-content: start;
}

.admin-menu-grid,
.admin-inline-form {
  display: grid;
  gap: 10px;
}

.admin-menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

[data-admin-panel] {
  display: none;
}

[data-admin-panel].is-active-admin-panel {
  display: grid;
}

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

.admin-menu-button {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.admin-menu-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line));
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft), var(--yellow-soft));
  box-shadow: 0 16px 30px rgba(255, 111, 44, 0.12);
}

.admin-menu-button.is-primary {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--line));
  background: linear-gradient(135deg, var(--orange-soft), var(--yellow-soft));
}

.admin-menu-button.is-danger {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), var(--orange-soft));
}

.admin-menu-button span {
  font-weight: 950;
}

.admin-menu-button small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-page-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.admin-section-title {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.admin-section-copy {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.admin-page-topbar [data-admin-panel-home] {
  border-color: color-mix(in srgb, var(--orange) 68%, var(--line));
  background: linear-gradient(135deg, var(--red-soft), var(--orange-soft), var(--yellow-soft));
  color: var(--text);
  box-shadow: 0 10px 24px rgba(244, 116, 22, 0.16);
}

.admin-page-topbar [data-admin-panel-home]:hover {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--red), var(--orange) 58%, var(--yellow));
  color: #1b1008;
}

.admin-card hr {
  width: 100%;
  margin: 18px 0 4px;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.wallet-role-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.role-card,
.extras-grid article,
.extra-work-grid article,
.post-launch-grid article,
.profile-grid article,
.admin-grid article {
  min-height: 116px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  color: var(--text);
}

.admin-log-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.admin-log-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.admin-log-row span,
.admin-log-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.admin-row-actions .btn {
  min-height: 34px;
}

.legal-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  color: var(--muted);
  line-height: 1.7;
}

.legal-card h3,
.docs-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.legal-card p,
.docs-card p {
  margin: 0;
}

.legal-card strong {
  color: var(--text);
  font-weight: 800;
}

.legal-card ul,
.docs-card ul,
.docs-card ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 8px;
}

.legal-card li,
.docs-card li {
  color: var(--muted);
}

.docs-stack {
  display: grid;
  gap: var(--space-3);
}

.docs-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  line-height: 1.6;
}

.docs-card.is-used {
  opacity: 0.72;
  border-color: color-mix(in srgb, var(--muted) 35%, var(--line));
}

.docs-card.is-used .tool-badge {
  background: color-mix(in srgb, var(--muted) 22%, transparent);
}

.docs-card strong {
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.role-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  align-content: stretch;
  text-align: left;
  cursor: pointer;
}

.role-card span,
.extras-grid p,
.extra-work-grid p,
.post-launch-grid p,
.profile-grid p,
.profile-card p,
.profile-drafts-card p {
  color: var(--muted);
  line-height: 1.55;
}

.role-card small {
  width: max-content;
  align-self: end;
  justify-self: start;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
}

.deployer-list {
  display: grid;
  gap: 10px;
}

.deployer-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 0.75fr) minmax(180px, 1fr) minmax(100px, 0.45fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
}

.deployer-row > input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}

.deployer-row .deployer-nickname-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.deployer-row .deployer-nickname-field small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deployer-nickname-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.deployer-nickname-view strong {
  color: var(--text);
  font-size: 0.95rem;
}

.deployer-edit-button {
  display: inline-grid;
  width: 28px;
  min-height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--orange) 44%, var(--line));
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
}

.deployer-edit-button:hover {
  background: color-mix(in srgb, var(--orange) 18%, transparent);
}

.deployer-nickname-editor {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.deployer-nickname-field.is-editing .deployer-nickname-view {
  display: none;
}

.deployer-nickname-field.is-editing .deployer-nickname-editor {
  display: grid;
}

.deployer-row .deployer-nickname-field input:not([type="hidden"]) {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.deployer-row code {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deployer-row span {
  color: var(--orange);
  font-weight: 900;
}

.deployer-row-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(54px, 1fr));
  gap: 8px;
  min-width: 0;
}

.deployer-row-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.deployer-row-actions [data-delete-deployer] {
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff8a7a;
}

.extras-grid,
.post-launch-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-3);
}

.profile-layout {
  display: grid;
  gap: 16px;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.extras-grid article,
.extra-work-grid article,
.post-launch-grid article,
.profile-grid article {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.profile-card,
.profile-drafts-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.profile-card-body {
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1 1 auto;
  min-width: 0;
}

.profile-card-body > p,
.profile-drafts-card > .profile-card-body > p,
.profile-grid article > p {
  min-height: 0;
  margin: 0;
}

.profile-card-body label,
.profile-password-card label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-card-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.profile-grid article {
  padding: 18px;
}

.profile-grid .btn,
.profile-card .btn {
  align-self: stretch;
}

.extras-grid article.is-disabled-extra {
  opacity: 0.48;
  filter: grayscale(0.75);
}

.extras-grid article.is-disabled-extra .btn,
.extras-grid article.is-disabled-extra button {
  cursor: not-allowed;
}

.extras-grid h3,
.extra-work-grid h3,
.post-launch-grid h3,
.profile-grid h3,
.profile-card h3,
.profile-drafts-card h3 {
  margin: 0 0 0;
}

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

.back-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  margin-bottom: 0;
  color: var(--orange);
  font-weight: 900;
}

.empty-state.compact {
  min-height: 96px;
  padding: var(--space-3);
  text-align: center;
}

.bundle-balance-list .empty-state.compact {
  min-height: 72px;
  padding: var(--space-3);
}

.post-launch-empty {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 28px;
  text-align: left;
}

.post-launch-empty h3,
.post-launch-empty p {
  margin: 0;
}

.post-launch-empty p,
.post-launch-empty small {
  color: var(--muted);
  line-height: 1.6;
}

.deployed-token-menu {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.profile-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.profile-status span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-status strong {
  justify-self: end;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.profile-action-state {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.profile-drafts-card {
  margin-top: 0;
}

.profile-draft-list {
  display: grid;
  gap: 10px;
}

.profile-draft-list .empty-state.compact {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
}

.profile-draft-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 10px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.profile-draft-row > .network-logo {
  width: 28px;
  height: 28px;
  box-shadow: none;
}

.profile-draft-row-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-draft-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--orange) 48%, var(--line));
  background: var(--orange-soft);
}

.profile-draft-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-draft-delete {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.profile-draft-delete svg {
  width: 16px;
  height: 16px;
}

.profile-draft-delete:hover {
  color: var(--red, #e35d5d);
  border-color: color-mix(in srgb, var(--red, #e35d5d) 40%, var(--line));
  background: color-mix(in srgb, var(--red, #e35d5d) 12%, transparent);
}

.tool-badge {
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
}

.tool-badge.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
}

.tool-badge.network-badge .network-logo {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

.tool-badge.post {
  background: var(--yellow-soft);
  color: color-mix(in srgb, var(--orange) 72%, var(--text));
}

.site-banner {
  overflow: hidden;
  margin: 10px 0 16px;
  border: 1px solid color-mix(in srgb, var(--orange) 36%, var(--line));
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-soft), var(--orange-soft), var(--yellow-soft));
}

.site-banner-track {
  width: max-content;
  padding: 9px 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
  animation: banner-scroll 24s linear infinite;
}

@keyframes banner-scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.updates-list {
  display: grid;
  gap: 12px;
}

.news-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.news-row h3,
.news-row p {
  margin: 0;
}

.news-row p,
.news-row small {
  color: var(--muted);
}

.news-type {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.news-type.is-bug-fix {
  background: var(--red-soft);
  color: var(--red);
}

.news-type.is-new {
  background: var(--yellow-soft);
  color: color-mix(in srgb, var(--orange) 74%, var(--text));
}

.post-launch-list {
  display: grid;
  gap: var(--space-3);
}

.post-launch-list .card-heading {
  justify-content: space-between;
  gap: 12px;
}

.post-launch-list h3 small {
  color: var(--orange);
  font-weight: 900;
}

.post-launch-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: grid;
  gap: 10px;
}

.post-launch-card.is-clickable:hover,
.post-launch-card.is-clickable:focus-visible {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line));
  outline: none;
  transform: translateY(-1px);
}

.post-launch-card .card-heading {
  align-items: center;
}

.post-launch-card-time {
  color: var(--muted);
  font-weight: 600;
}

.post-launch-card h3 {
  margin: 0;
}

.post-launch-card-ca {
  margin: 0;
}

.post-launch-card-ca code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-launch-detail {
  display: grid;
  gap: var(--space-4);
}

.post-launch-detail-heading {
  align-items: center;
}

.post-launch-detail-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-launch-detail-grid .post-launch-chart-card,
.post-launch-detail-grid .post-launch-wallets-card {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
}

.post-launch-wallets-card .docs-card,
.post-launch-wallets-card {
  min-width: 0;
}

.post-launch-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.post-launch-link-row .btn {
  min-height: 34px;
  padding-inline: 14px;
  font-size: 0.84rem;
  font-weight: 700;
}

.post-launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.post-launch-actions .btn,
.post-launch-actions .post-launch-action {
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--text));
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--text) 4%);
  color: var(--text);
  box-shadow: none;
}

.post-launch-actions .post-launch-action:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--line) 55%, var(--text));
  background: color-mix(in srgb, var(--surface-strong) 80%, var(--text) 8%);
  color: var(--text);
}

.post-launch-actions .post-launch-action.is-caution {
  border-color: color-mix(in srgb, var(--line) 70%, #c4b5a0);
  background: color-mix(in srgb, var(--surface-strong) 94%, #9a8570 6%);
  color: color-mix(in srgb, var(--text) 92%, #e8dcc8);
}

.post-launch-actions .post-launch-action.is-caution:hover {
  border-color: color-mix(in srgb, #c4b5a0 55%, var(--line));
  background: color-mix(in srgb, var(--surface-strong) 86%, #9a8570 12%);
}

.post-launch-actions .post-launch-action.is-busy {
  opacity: 0.72;
  cursor: progress;
}

:root:not([data-theme="dark"]) .post-launch-actions .post-launch-action {
  background: color-mix(in srgb, var(--surface-strong) 96%, #1b140f 4%);
  border-color: color-mix(in srgb, var(--line) 80%, #1b140f);
  color: var(--text);
}

:root:not([data-theme="dark"]) .post-launch-actions .post-launch-action.is-caution {
  background: color-mix(in srgb, #fff8f1 88%, #8a7358 12%);
  border-color: color-mix(in srgb, #8a7358 28%, var(--line));
  color: #4a3b2c;
}

.post-launch-bulk-bar .btn {
  min-height: 38px;
}

.post-launch-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.post-launch-stat-row > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.post-launch-stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.post-launch-stat-row strong {
  font-size: 1rem;
}

.post-launch-flap-tax-rates {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.post-launch-flap-tax-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.post-launch-flap-tax-grid > div,
.post-launch-flap-tax-meta > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.post-launch-flap-tax-grid span,
.post-launch-flap-tax-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-launch-flap-tax-grid strong,
.post-launch-flap-tax-meta strong {
  font-size: 0.95rem;
}

.post-launch-flap-tax-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.post-launch-flap-tax-meta code {
  font-size: 0.78rem;
  word-break: break-all;
}

.post-launch-chart-frame {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  background: #0b0e11;
}

.post-launch-chart-frame iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.post-launch-wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 8px;
  align-items: start;
}

.post-launch-wallet-list-pane,
.post-launch-trade-panel {
  min-width: 0;
}

.post-launch-trade-panel {
  position: sticky;
  top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.post-launch-trade-panel > * {
  min-width: 0;
  max-width: 100%;
}

.post-launch-trade-hint,
.post-launch-trade-panel [data-pl-wallet-log],
.post-launch-actions + [data-pl-action-log],
[data-pl-action-log],
[data-pl-wallet-log] {
  display: block;
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.post-launch-trade-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.post-launch-trade-modes .btn.is-active {
  border-color: color-mix(in srgb, var(--orange) 62%, transparent);
  background: color-mix(in srgb, #22160f 45%, var(--orange) 34%);
  color: #ffe7cc;
}

.post-launch-trade-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.post-launch-trade-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.post-launch-trade-field input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-strong) 80%, transparent);
  color: var(--text);
  font-weight: 700;
}

.post-launch-trade-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.post-launch-trade-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-launch-trade-presets .btn {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 0.8rem;
}

.post-launch-trade-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.post-launch-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}

.post-launch-bulk-select-all {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.post-launch-bulk-select-all input[type="checkbox"],
.post-launch-wallet-select input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-strong) 82%, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  display: grid;
  place-items: center;
}

.post-launch-bulk-select-all input[type="checkbox"]::after,
.post-launch-wallet-select input[type="checkbox"]::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -1px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) scale(0.6);
  opacity: 0;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    border-color 0.12s ease;
}

.post-launch-bulk-select-all input[type="checkbox"]:hover,
.post-launch-wallet-select input[type="checkbox"]:hover {
  border-color: color-mix(in srgb, var(--orange) 58%, var(--line));
  background: color-mix(in srgb, var(--orange-soft) 40%, var(--bg-strong));
}

.post-launch-bulk-select-all input[type="checkbox"]:focus-visible,
.post-launch-wallet-select input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--orange) 62%, transparent);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.post-launch-bulk-select-all input[type="checkbox"]:checked,
.post-launch-wallet-select input[type="checkbox"]:checked {
  border-color: color-mix(in srgb, var(--orange) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, #b45309 35%, var(--orange)), var(--orange));
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.post-launch-bulk-select-all input[type="checkbox"]:checked::after,
.post-launch-wallet-select input[type="checkbox"]:checked::after {
  border-left-color: #1a100a;
  border-bottom-color: #1a100a;
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.post-launch-wallets {
  display: grid;
  gap: 10px;
}

.post-launch-wallet-row {
  display: grid;
  grid-template-columns: 28px 72px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.post-launch-wallet-select {
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.post-launch-wallet-row.is-missing-key {
  border-color: color-mix(in srgb, #ef4444 42%, var(--line));
}

.post-launch-missing-key {
  display: block;
  margin-top: 4px;
  color: #ff8a7a;
  font-size: 0.78rem;
  font-weight: 700;
}

.post-launch-wallet-row.is-selected {
  border-color: color-mix(in srgb, var(--orange) 50%, var(--line));
  background: color-mix(in srgb, var(--orange-soft) 45%, var(--surface-strong));
}

.post-launch-wallet-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.post-launch-wallet-bals {
  display: grid;
  gap: 2px;
  font-size: 0.85rem;
  text-align: right;
}

.post-launch-wallet-bals small {
  color: var(--muted);
}

@media (max-width: 980px) {
  .post-launch-wallet-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-launch-trade-panel {
    position: static;
  }

  .post-launch-wallet-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .post-launch-wallet-bals {
    grid-column: 2;
    text-align: left;
  }
}

.site-modal-progress {
  max-height: min(52vh, 420px);
  overflow: auto;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 82%, #000);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
  display: grid;
  gap: 8px;
}

.site-modal-progress.is-plain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  display: block;
}

.launch-progress-step {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.launch-progress-step.is-live {
  border-color: color-mix(in srgb, var(--accent, #f59e0b) 45%, var(--line));
}

.launch-progress-step.is-done {
  border-color: color-mix(in srgb, #22c55e 35%, var(--line));
}

.launch-progress-step.is-fail {
  border-color: color-mix(in srgb, #ef4444 40%, var(--line));
}

.launch-progress-icon {
  font-size: 0.95rem;
  line-height: 1.35;
}

.launch-progress-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.launch-progress-title {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.launch-progress-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.launch-progress-links a {
  color: var(--accent, #f59e0b);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.launch-progress-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .post-launch-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-launch-wallet-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }
}

.subsection-title {
  margin: var(--space-4) 0 var(--space-2);
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
}

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

.review-card.compact {
  display: grid;
  gap: var(--space-3);
  box-shadow: none;
}

.review-card.compact > h3,
.review-card.compact > p {
  margin: 0;
}

.review-card.compact > .eyebrow {
  margin-bottom: 2px;
}

.review-card.compact > .checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 4px 0 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
}

.review-toggle {
  margin: 0;
}

.review-toggle.toggle-button {
  min-height: 50px;
  padding: 12px 14px;
}

.review-card.compact > .review-toggle {
  justify-self: stretch;
}

.review-card.compact > .split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.review-card.compact > small {
  display: block;
  text-align: center;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .wallet-batch-tools,
  .deployer-row,
  .wallet-row,
  .wallet-buyer-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .field-grid.four,
  .field-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployer-row > input[type="radio"] {
    justify-self: start;
  }

  .deployer-row-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bundle-balance-row {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .bundle-balance-row small {
    text-align: left;
  }

  .flow-panel,
  .standalone-page {
    padding: var(--space-4);
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .workspace-grid,
  .admin-grid,
  .bot-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 10px 12px;
    border-radius: 24px;
    padding: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .header-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .network-trigger {
    max-width: min(200px, 52vw);
  }

  .network-trigger strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .network-menu {
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
  }

  .page-view {
    scroll-margin-top: 140px;
  }

  .profile-grid,
  .profile-cards,
  .extras-grid,
  .post-launch-grid,
  .extra-work-grid,
  .preflight-grid,
  .draft-list,
  .wallet-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-cards .profile-password-card {
    grid-column: 1 / -1;
  }

  .hero {
    padding-top: 42px;
  }

  .review-panel,
  .bot-summary {
    position: static;
  }

  .panel-heading h2 {
    font-size: clamp(1.25rem, 4vw, 1.8rem);
  }

  .tax-profile-header-control,
  .donation-header-toggle {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
    padding: 12px 0 28px;
  }

  .site-header {
    top: 8px;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .main-nav a {
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .network-trigger {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.82rem;
    max-width: min(160px, 46vw);
  }

  .theme-toggle,
  .header-logout {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .hero-copy,
  .form-card,
  .review-card,
  .risk-card,
  .flow-panel,
  .standalone-page,
  .bot-card {
    padding: var(--space-3);
    border-radius: 22px;
  }

  .auth-card {
    width: min(360px, 100%);
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .auth-card h1 {
    font-size: 1.35rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.6rem);
  }

  .stepper,
  .two-col,
  .three-col,
  .field-grid,
  .field-grid.four,
  .field-grid.two-col,
  .field-grid.three-col,
  .paired-fields,
  .settings-grid,
  .tax-profile-grid,
  .bot-menu,
  .draft-list,
  .wallet-role-grid,
  .extras-grid,
  .extra-work-grid,
  .post-launch-grid,
  .profile-grid,
  .profile-cards,
  .admin-grid,
  .preflight-grid,
  .deployed-token-menu,
  .review-grid,
  .deployer-row,
  .split-actions,
  .wallet-toolbar,
  .bundle-manager-toolbar,
  .wallet-batch-tools,
  .admin-inline-form,
  .bundle-balance-row,
  .terminal-topbar,
  .wallet-row,
  .disperse-actions,
  .review-card.compact > .split-actions,
  .deployer-row-actions {
    grid-template-columns: 1fr;
  }

  .review-card.compact > .checklist {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    gap: var(--space-2);
    margin-bottom: 0;
  }

  .panel-heading > .card-icon {
    width: 42px;
    height: 42px;
  }

  .tax-profile-header-control {
    width: 100%;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
  }

  .donation-header-toggle {
    width: 100%;
    min-width: 0;
  }

  .split-actions .btn,
  .disperse-actions .btn,
  .extras-grid .btn,
  .extra-work-grid .btn,
  .profile-grid .btn,
  .auth-card .btn,
  .wallet-toolbar .btn,
  .preflight-actions .btn,
  .deployer-row-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .site-footer nav {
    gap: 10px 14px;
  }

  .payment-terminal-overlay {
    padding: 8px;
    align-items: stretch;
  }

  .payment-terminal {
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .terminal-actions,
  .terminal-status,
  .preflight-actions {
    flex-direction: column;
  }

  .header-actions {
    gap: 8px;
  }

  .ui-select-trigger,
  input,
  select,
  textarea,
  .btn {
    min-height: 44px;
  }

  .group-trigger {
    min-height: 46px;
    padding-right: 72px;
  }

  .page-view {
    scroll-margin-top: 120px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 12px);
  }

  .brand > span {
    display: none;
  }

  .network-trigger strong {
    max-width: 72px;
  }

  .flow-panel,
  .standalone-page {
    padding: 14px;
  }

  .auth-logo {
    width: 52px;
    height: 52px;
  }
}
