*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

:root {
  --bg: #000000;
  --page-bg: #080808;
  --surface: #0a0a0a;
  --surface-raised: #101010;
  --surface-soft: #0d0d0d;
  --surface-overlay: rgba(0, 0, 0, 0.96);
  --surface-hover: #151515;
  --border: #262626;
  --border-subtle: #1a1a1a;
  --divider: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-secondary: #d0d0d0;
  --text-muted: #8e8e8e;
  --text-inverse: #050505;
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.92);
  --accent-border: rgba(255, 255, 255, 0.7);
  --accent-glow: rgba(255, 255, 255, 0.18);
  --danger: #ff6b7a;
  --danger-contrast: #fff8fa;
  --info: #6ea8ff;
  --green: #ffffff;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.34);
  --surface-gradient: linear-gradient(180deg, rgba(13, 13, 13, 0.985), rgba(9, 9, 9, 0.995));
  --surface-gradient-hover: linear-gradient(180deg, rgba(22, 22, 22, 0.99), rgba(14, 14, 14, 1));
  --surface-glass: linear-gradient(180deg, rgba(14, 14, 14, 0.97), rgba(8, 8, 8, 0.99));
  --overlay-scrim: rgba(0, 0, 0, 0.82);
  --modal-shadow: 0 28px 80px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.018);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 4px 12px rgba(0, 0, 0, 0.18);
  --control-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 6px 14px rgba(0, 0, 0, 0.22);
  --bg-tint-primary: transparent;
  --bg-tint-secondary: transparent;
  --page-bg-tint-primary: rgba(255, 255, 255, 0.028);
  --page-bg-tint-secondary: rgba(255, 255, 255, 0.014);
  --radius: 14px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --radius-control: 8px;
  --radius-control-tight: 6px;
  --radius-pill: 999px;
  --font-display: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 140ms;
  --duration-base: 220ms;
}

:root.theme-light {
  --bg: #f4f7f9;
  --page-bg: #f4f7f9;
  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --surface-soft: #f1f5f8;
  --surface-overlay: rgba(255, 255, 255, 0.96);
  --surface-hover: #eaf0f4;
  --border: #d8e1e8;
  --border-subtle: #e6edf2;
  --divider: rgba(15, 23, 42, 0.08);
  --text: #121a22;
  --text-secondary: #485665;
  --text-muted: #6d7b88;
  --text-inverse: #ffffff;
  --accent: #0f1419;
  --accent-dim: rgba(15, 20, 25, 0.94);
  --accent-border: rgba(15, 20, 25, 0.68);
  --accent-glow: rgba(15, 20, 25, 0.1);
  --danger: #e04a5f;
  --danger-contrast: #ffffff;
  --info: #3366dd;
  --green: #0f1419;
  --shadow-lg: 0 22px 52px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.07);
  --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 249, 251, 0.99));
  --surface-gradient-hover: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 244, 247, 1));
  --surface-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.985));
  --overlay-scrim: rgba(239, 244, 248, 0.68);
  --modal-shadow: 0 24px 64px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.92);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(15, 23, 42, 0.06);
  --control-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 12px 24px rgba(15, 23, 42, 0.08);
  --bg-tint-primary: rgba(15, 20, 25, 0.035);
  --bg-tint-secondary: rgba(15, 20, 25, 0.016);
  --page-bg-tint-primary: rgba(15, 20, 25, 0.035);
  --page-bg-tint-secondary: rgba(15, 20, 25, 0.016);
}

html, body {
  background: var(--page-bg);
  color: var(--text);
  font: 13px/1.55 var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 30%, transparent) color-mix(in srgb, var(--surface) 72%, transparent);
}

html.boot-pending body {
  overflow: hidden;
}

html.boot-pending .workspace-shell {
  display: none;
}

.boot-overlay {
  display: none;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

html.boot-pending .boot-overlay {
  display: flex;
}

.boot-overlay-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.boot-overlay-logo {
  width: min(360px, 72vw);
  height: min(164px, 32vw);
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.34));
  animation: launchdeck-logo-breathe 2.8s ease-in-out infinite;
}

.theme-light .boot-overlay-logo {
  filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.14));
}

.boot-overlay-title {
  font: 700 18px/1.2 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: -2px;
}

.boot-overlay-note {
  width: min(360px, calc(100% - 32px));
  max-width: 360px;
  min-height: calc(1.45em * 2);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  display: block;
  text-align: center;
  text-wrap: balance;
}

.boot-overlay-note-text {
  display: inline;
}

.boot-overlay-note-dots {
  display: none;
  position: relative;
  overflow: hidden;
  width: 3ch;
  min-width: 3ch;
  color: transparent;
  white-space: nowrap;
  text-align: left;
}

.boot-overlay-note-dots::before {
  content: "...";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1ch;
  overflow: hidden;
  color: var(--text-secondary);
}

.boot-overlay-note.is-animating .boot-overlay-note-dots {
  display: inline-block;
  vertical-align: baseline;
}

.boot-overlay-note.is-animating .boot-overlay-note-dots::before {
  animation: launchdeck-boot-dots 1.2s steps(3, end) infinite;
}

@keyframes launchdeck-logo-breathe {
  0%,
  100% {
    transform: scale(0.965);
    opacity: 0.9;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes launchdeck-boot-dots {
  0% {
    width: 1ch;
  }

  34% {
    width: 2ch;
  }

  67%,
  100% {
    width: 3ch;
  }
}

.launchdeck-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-scrim);
  backdrop-filter: blur(18px);
}

.launchdeck-auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-glass);
  box-shadow: var(--modal-shadow);
}

.launchdeck-auth-logo {
  width: 180px;
  height: auto;
  justify-self: center;
}

.launchdeck-auth-card h1 {
  margin: 0;
  font: 800 22px/1.1 var(--font-display);
  text-align: center;
}

.launchdeck-auth-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.launchdeck-auth-card label {
  display: grid;
  gap: 7px;
}

.launchdeck-auth-remember {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.launchdeck-auth-actions {
  display: flex;
  justify-content: flex-end;
}

.output-hidden #output-section {
  display: none !important;
}

.reports-hidden #reports-terminal-section {
  display: none !important;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 46%, transparent);
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.theme-light,
.theme-light * {
  scrollbar-color: color-mix(in srgb, var(--accent) 24%, transparent) rgba(15, 23, 42, 0.06);
}

.theme-light *::-webkit-scrollbar-track {
  background: transparent;
}

.theme-light *::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.theme-light *::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}

.shell {
  width: min(1120px, calc(100% - 16px));
  margin: 0 auto;
  padding: 12px 0 24px;
}

.workspace-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

h1 {
  font: 700 16px/1.3 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-secondary) 92%, var(--text) 8%);
  margin-bottom: 4px;
}

.muted { color: var(--text-muted); }
.small { font-size: 11px; }
.mono { font-family: var(--font-mono); }

.hero { margin-bottom: 10px; }

.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 1 532px;
  max-width: 532px;
  min-width: 0;
  align-self: flex-start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.launch-surface {
  padding: 10px 12px;
  height: auto;
  box-shadow: 0 0 0 1px var(--border);
}

.launch-surface-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.launch-surface-section + .launch-surface-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}

.launch-surface .stack,
.launch-surface .row {
  gap: 8px;
}

.launch-surface .section-head {
  margin-bottom: 0;
}

.launch-surface .mode-panel {
  margin-top: 4px;
}

.launch-surface-mode {
  gap: 0;
}

.launch-surface-mode > .mode-grid,
.launch-surface-mode > .mode-grid-three {
  margin-bottom: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.token-primary-row {
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.82fr);
}

.launch-surface-token > .stack {
  gap: 4px;
}


.wallet-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.launch-surface .wallet-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 4px;
}

.wallet-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wallet-inline-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding: 3px 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  margin-left: auto;
}

.wallet-preset-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.wallet-trigger-button {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  justify-self: start;
}

.wallet-trigger-button:hover {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-soft));
}

.wallet-trigger-button[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.wallet-trigger-summary {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.wallet-summary-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.wallet-summary-divider {
  font-size: 8px;
  color: var(--text-muted);
}

.wallet-balance-icon {
  width: 13px;
  height: 13px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.wallet-balance-icon-usd1 {
  border-radius: 50%;
}

.wallet-trigger-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.wallet-trigger-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translateY(-1px);
}

.wallet-trigger-button[aria-expanded="true"] .wallet-trigger-chevron {
  transform: rotate(180deg);
}

.wallet-dropdown {
  display: grid;
  gap: 8px;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(100%, 304px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-overlay);
  box-shadow: var(--shadow-lg);
  z-index: 25;
}

.wallet-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wallet-dropdown-title {
  font: 600 10px/1.4 var(--font-display);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wallet-refresh-button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wallet-refresh-button:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--text);
}

.wallet-refresh-button:disabled {
  cursor: wait;
}

.wallet-refresh-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform;
}

.wallet-refresh-button.is-refreshing .wallet-refresh-icon {
  animation: wallet-refresh-spin 0.8s linear infinite;
}

@keyframes wallet-refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wallet-dropdown-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.wallet-option-button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.wallet-option-button:not(.is-selected):hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.wallet-option-button:focus-visible {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.wallet-option-button.is-selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.wallet-option-button.is-selected:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.wallet-option-button.is-selected .wallet-option-name,
.wallet-option-button.is-selected .wallet-option-meta,
.wallet-option-button.is-selected .wallet-option-sol,
.wallet-option-button.is-selected .wallet-option-usd,
.wallet-option-button.is-selected * {
  color: var(--text-inverse);
}

.wallet-option-button.is-selected .wallet-option-copy {
  border-color: color-mix(in srgb, var(--text-inverse) 18%, transparent);
}

.wallet-option-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.wallet-option-name {
  font: 600 12px/1.2 var(--font-sans);
  color: var(--text);
}

.wallet-option-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font: 500 10px/1.3 var(--font-mono);
  color: var(--text-muted);
}

.wallet-option-meta-address {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-option-balances {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.wallet-option-sol {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.wallet-option-usd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.wallet-option-copy {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.wallet-option-copy:hover {
  border-color: var(--border);
  color: var(--text);
  background: color-mix(in srgb, var(--surface-hover) 88%, transparent);
}

.wallet-option-copy.is-copied {
  border-color: var(--accent-border);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  transform: scale(1.04);
}

.wallet-option-copy-icon {
  width: 11px;
  height: 11px;
  display: block;
  fill: currentColor;
}

.wallet-empty-state {
  padding: 10px;
  border: 1px dashed var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.wallet-preset-panel {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 5px 0 0;
  margin-right: 1px;
  border-right: 1px solid var(--divider);
}

.wallet-preset-panel .preset-chip-bar {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.wallet-preset-panel .preset-chip {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  min-height: 20px;
  font-size: 9px;
  border-radius: var(--radius-control-tight);
  letter-spacing: 0.04em;
}

.wallet-inline-controls .preset-chip.compact {
  min-width: 28px;
  padding: 2px 5px;
  min-height: 20px;
  font-size: 9px;
  border-radius: var(--radius-control-tight);
  letter-spacing: 0.04em;
}

#toggle-reports-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wallet-inline-controls .wallet-chip-button:not(.icon-chip-button) {
  padding-left: 7px;
  padding-right: 7px;
}

.sol-logo {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.inline-sol-logo {
  width: 13px;
  height: 13px;
}

.field-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wallet-box > select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-mono);
  font-size: 11px;
  background:
    linear-gradient(180deg, var(--surface-soft), var(--surface)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23848e9c' d='M1.1.6 5 4.4 8.9.6 10 1.7 5 6 .1 1.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 12px center;
  background-size: auto, 10px 6px;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 34px 9px 10px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.wallet-box > select:hover {
  border-color: var(--border);
}

.wallet-box > select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.wallet-box > select option {
  background: var(--surface);
  color: var(--text);
}

.preset-chip-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.top-preset-chip-bar {
  justify-content: flex-start;
}

.preset-chip {
  width: auto;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control-tight);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.preset-chip.compact {
  padding: 4px 9px;
}

.icon-chip-button {
  width: 24px;
  min-width: 24px;
  min-height: 22px;
  padding: 0;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

.icon-chip-glyph {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon-chip-glyph svg {
  width: 14px;
  height: 14px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon svg {
  stroke-width: 2.1;
}

.settings-icon svg {
  stroke-width: 1.8;
}

.wallet-chip-button {
  cursor: pointer;
}

#open-vamp-button,
#dev-buy-custom-deploy,
.mode-action-button,
.button.deploy {
  border-radius: 6px;
}

.preset-chip:hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.preset-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-inverse);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}

.preset-chip.active:hover {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
}

body.popout-mode {
  min-height: auto;
  background: transparent;
  overflow-x: hidden;
}

html.overlay-create-mode,
html.overlay-create-mode body {
  --create-overlay-stable-width: var(--launchdeck-create-overlay-width, 532px);
  --create-overlay-stable-height: var(--launchdeck-create-overlay-height, 717px);
  min-height: auto;
  background: var(--page-bg);
  overflow-x: hidden;
}

.popout-mode .shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.popout-mode .workspace-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--launchdeck-popout-workspace-gap, 12px);
}

.popout-mode .flow {
  flex: 0 0 var(--launchdeck-popout-form-width, 532px);
  width: var(--launchdeck-popout-form-width, 532px);
  max-width: var(--launchdeck-popout-form-width, 532px);
}

.popout-mode .reports-terminal {
  flex: 0 0 var(--launchdeck-popout-reports-width, 560px);
  width: var(--launchdeck-popout-reports-width, 560px);
  min-width: var(--launchdeck-popout-reports-width, 560px);
  max-width: var(--launchdeck-popout-reports-width, 560px);
}

.overlay-create-mode .shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popout-mode .launch-surface,
.popout-mode .output {
  padding: 10px 12px;
  border-radius: 0;
}

.overlay-create-mode .workspace-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 24px;
  background: var(--page-bg);
}

.overlay-create-mode .flow {
  flex: 0 1 var(--create-overlay-stable-width);
  max-width: var(--create-overlay-stable-width);
  min-height: var(--create-overlay-stable-height);
  background: var(--page-bg);
}

.overlay-create-mode .launch-surface,
.overlay-create-mode .output {
  border-radius: 20px;
}

.overlay-create-mode .launch-surface {
  min-height: var(--create-overlay-stable-height);
  box-sizing: border-box;
}

.overlay-create-mode #output-section,
.overlay-create-mode #toggle-output-button,
.overlay-create-mode #toggle-reports-button {
  display: none !important;
}

.overlay-create-mode #reports-terminal-section {
  display: none !important;
}

.overlay-create-mode #open-popout-button {
  display: none;
}

.overlay-create-mode #open-vamp-button {
  display: none;
}

.overlay-create-mode .boot-overlay {
  min-height: 100vh;
  width: 100%;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.overlay-create-mode .boot-overlay-brand {
  width: 100%;
  max-width: none;
  min-height: var(--create-overlay-stable-height);
  border-radius: 24px;
  border: 0;
  background: var(--surface-gradient);
  box-shadow: none;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay-create-mode .boot-overlay-logo {
  width: min(240px, 52vw);
  height: auto;
  max-height: 140px;
}

.popout-mode .launch-surface-section + .launch-surface-section {
  margin-top: 8px;
  padding-top: 8px;
}

.popout-mode #open-popout-button {
  display: none;
}


label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

label > span {
  display: block;
  font: 550 11px/1.4 var(--font-sans);
  color: color-mix(in srgb, var(--text-secondary) 94%, var(--text) 6%);
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-head-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.field-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.token-primary-row .field-head {
  min-height: 22px;
  align-items: flex-end;
}

.token-primary-row .field-head-actions {
  min-height: 22px;
  align-items: flex-end;
}

.description-disclosure {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-raised) 84%, transparent);
  overflow: hidden;
}

.description-disclosure.is-open {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.description-toggle {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.description-toggle:hover {
  background: color-mix(in srgb, var(--surface-hover) 56%, transparent);
}

.description-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font: 500 11px/1.4 var(--font-sans);
  color: var(--text);
}

.description-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1;
}

.description-toggle-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.description-toggle-chevron {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.description-disclosure.is-open .description-toggle-chevron {
  transform: rotate(180deg);
}

.description-panel-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--border-subtle);
}

.description-panel-field {
  gap: 6px;
}

.description-panel-field > span {
  font: 600 11px/1.4 var(--font-sans);
  color: var(--text);
}

.description-panel-field textarea {
  min-height: 96px;
}

.field-count {
  font: 600 10px/1.2 var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.field-mini-toggle {
  width: auto;
  min-width: 0;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-raised);
  color: var(--text-muted);
  font: 600 9px/1.4 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.15s;
}

.field-mini-toggle:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--text);
}

.field-mini-toggle.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.field-icon-toggle {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font: 700 8px/1 var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}

.name-preset-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 26px;
  margin-top: -2px;
}

.name-preset-button {
  width: auto;
  min-width: 0;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font: 700 10px/1.2 var(--font-display);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s var(--ease-standard);
}

.name-preset-button:hover:not(:disabled) {
  border-color: var(--accent-border);
  color: var(--text);
  background: var(--surface-hover);
}

.name-preset-button:disabled,
.name-preset-button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.name-preset-manage-button {
  min-width: 24px;
  padding-inline: 0;
  font-size: 13px;
}

.name-preset-modal .name-preset-editor-list {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
  scrollbar-gutter: stable;
}

.name-preset-modal .name-preset-editor-list::-webkit-scrollbar {
  width: 8px;
}

.name-preset-modal .name-preset-editor-list::-webkit-scrollbar-track {
  background: transparent;
}

.name-preset-modal .name-preset-editor-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 999px;
}

.name-preset-modal .name-preset-editor-list::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

.modal.name-preset-modal {
  --modal-max-w: 560px;
  --modal-max-h: min(860px, calc(100vh - 18px));
  --modal-fixed-h: min(860px, calc(100vh - 18px));
  padding-bottom: 0;
  overflow: hidden;
}

.name-preset-modal .name-preset-modal-header {
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.name-preset-modal .name-preset-modal-header h3 {
  font: 800 15px/1.2 var(--font-display);
  letter-spacing: 0.01em;
}

.name-preset-modal .name-preset-modal-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 18px 14px;
  overflow: hidden;
}

.name-preset-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 90%, black 10%);
  border-radius: 9px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-raised) 92%, black 8%) 0%,
    color-mix(in srgb, var(--surface-raised) 78%, black 22%) 100%
  );
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--surface-raised) 60%, transparent) inset;
  transition: border-color 0.15s var(--ease-standard), transform 0.15s var(--ease-standard);
}

.name-preset-editor-row:hover {
  border-color: color-mix(in srgb, var(--accent-border) 65%, var(--border) 35%);
}

.name-preset-editor-card-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
  flex: 1 1 auto;
}

.name-preset-editor-card-main strong {
  color: var(--text);
  font: 800 13px/1.15 var(--font-display);
  letter-spacing: 0.01em;
}

.name-preset-editor-card-main span {
  color: var(--text-muted);
  font: 600 10px/1.25 var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-preset-editor-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.name-preset-icon-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease-standard), color 0.15s var(--ease-standard), border-color 0.15s var(--ease-standard);
}

.name-preset-icon-button:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.name-preset-icon-button.danger {
  color: color-mix(in srgb, var(--danger) 80%, var(--text-muted) 20%);
}

.name-preset-icon-button.danger:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}

.name-preset-add-panel {
  display: grid;
  gap: 9px;
  align-self: end;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 70%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 70%, black 30%);
}

.name-preset-add-panel h4 {
  margin: 0;
  text-align: center;
  color: var(--text);
  font: 800 13px/1.15 var(--font-display);
  letter-spacing: 0.01em;
}

.name-preset-add-panel label {
  gap: 4px;
}

.name-preset-add-panel label > span {
  text-align: center;
  font: 700 10px/1.15 var(--font-display);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.name-preset-add-panel input[type="text"] {
  min-height: 32px;
  padding-block: 6px;
  background: color-mix(in srgb, var(--surface-raised) 86%, black 14%);
}

.name-preset-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.name-preset-checkbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 0;
}

.name-preset-checkbox-row .setting-checkbox {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.name-preset-error {
  margin: 0;
}

.name-preset-form-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.name-preset-form-actions[data-name-preset-mode="add"] .name-preset-cancel-button,
.name-preset-form-actions[data-name-preset-mode="add"] .name-preset-update-button {
  display: none;
}

.name-preset-form-actions[data-name-preset-mode="edit"] .name-preset-add-button {
  display: none;
}

.name-preset-form-actions[data-name-preset-mode="edit"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
}

.name-preset-add-button,
.name-preset-cancel-button,
.name-preset-update-button {
  width: 100%;
  justify-content: center;
  min-height: 34px;
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font: 13px/1.4 var(--font-sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea { resize: vertical; }

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

input[disabled],
textarea[disabled],
select[disabled],
.locked-field input {
  background: var(--surface-raised);
  color: var(--text-muted);
  border-color: var(--border-subtle);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.checkbox {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.checkbox span { margin: 0; font-weight: 600; font-size: 12px; color: var(--text-secondary); }
.checkbox input { width: auto; margin: 0; accent-color: var(--accent); }

.tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0 3px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 3px;
  line-height: 1.4;
  white-space: nowrap;
  flex: 0 0 auto;
}

.section-tag {
  font-size: 7px;
  padding: 0 4px;
}

.tag.required,
.section-tag.required {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
}

.tag.optional,
.section-tag.optional {
  background: color-mix(in srgb, var(--info) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--info) 26%, transparent);
  color: var(--info);
}

.field-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: -2px;
}

.field-error {
  font-size: 10px;
  color: var(--danger);
  margin-top: -2px;
  min-height: 0;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

input.input-error,
textarea.input-error {
  border-color: color-mix(in srgb, var(--danger) 64%, transparent) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 14%, transparent) !important;
}

label.is-field-error {
  border-color: color-mix(in srgb, var(--danger) 36%, transparent);
}

.settings-route-grid label.is-field-error {
  border-radius: var(--radius-control-tight);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  outline: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  outline-offset: 3px;
}

.validation-errors {
  padding: 10px 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--danger) 13%, var(--surface) 87%),
    color-mix(in srgb, var(--danger) 8%, var(--surface-soft) 92%)
  );
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.validation-errors span {
  display: block;
  margin: 0;
  font-weight: 500;
}


.image-panel-wrap {
  display: grid;
  gap: 6px;
}

.image-panel-shell {
  width: fit-content;
  position: relative;
}

.image-panel {
  width: 96px;
  padding: 0;
  border: none;
  background: transparent;
}

.image-layout-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 17px;
  min-width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  background: rgba(9, 11, 13, 0.88);
  color: var(--text-secondary);
  font: 700 10px/1 var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
}

.image-layout-toggle::before,
.image-layout-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.image-layout-toggle::before {
  width: 7px;
  height: 1.25px;
}

.image-layout-toggle::after {
  width: 1.25px;
  height: 7px;
  opacity: 0;
}

.image-layout-toggle[aria-pressed="true"]::after {
  opacity: 1;
}

.image-layout-toggle:hover,
.image-layout-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(8, 18, 16, 0.94);
  transform: translateY(-1px);
}

.image-preview-wrap {
  border: 1px solid var(--border);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.image-panel:hover .image-preview-wrap,
.image-panel:focus-visible .image-preview-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.image-preview-wrap img { width: 100%; height: 100%; object-fit: cover; }

.image-panel-edit-button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(9, 11, 13, 0.88);
  color: var(--text-secondary);
  font: 700 0/1 var(--font-display);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

.image-panel-edit-button::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2v14h16M18 22V8H2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2v14h16M18 22V8H2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.image-panel-edit-button:hover,
.image-panel-edit-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.image-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 10px;
  text-align: center;
  color: var(--text-muted);
  padding: 8px;
}

.image-empty-title {
  font: 600 10px/1.2 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.image-empty-tag {
  margin-top: 1px;
}

.image-meta { min-width: 0; font-size: 12px; }

.deploy-status-bar {
  display: flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.launch-surface-token.is-image-compact > .stack {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 4px;
  align-items: start;
}

.launch-surface-token.is-image-compact .image-panel-wrap {
  grid-column: 1;
  grid-row: 1;
  width: 78px;
  gap: 0;
}

.launch-surface-token.is-image-compact .image-panel-shell {
  width: 78px;
}

.launch-surface-token.is-image-compact .image-panel {
  width: 78px;
  display: block;
}

.launch-surface-token.is-image-compact .image-meta {
  display: none;
}

.launch-surface-token.is-image-compact .token-primary-row {
  display: contents;
}

.launch-surface-token.is-image-compact .token-primary-row > label:first-child {
  grid-column: 2;
  grid-row: 1;
}

.launch-surface-token.is-image-compact .token-primary-row > label:last-child {
  grid-column: 3;
  grid-row: 1;
}

.launch-surface-token.is-image-compact > .stack > *:not(.image-panel-wrap):not(.token-primary-row) {
  grid-column: 1 / -1;
}

.launch-surface-token.has-j7-image-candidates:not(.is-image-compact) .image-panel,
.launch-surface-token.has-j7-image-candidates:not(.is-image-compact) .image-layout-toggle,
.launch-surface-token.has-j7-image-candidates:not(.is-image-compact) .image-panel-edit-button,
.launch-surface-token.has-j7-image-candidates:not(.is-image-compact) .image-meta {
  display: none;
}

.j7-image-candidates {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 2px 7px;
  scrollbar-width: thin;
}

.j7-image-library-button {
  width: auto;
  min-width: 88px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font: 700 10px/1.2 var(--font-display);
}

.j7-image-library-button:hover,
.j7-image-library-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.j7-image-candidate {
  position: relative;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.j7-image-candidate:hover {
  transform: translateY(-1px);
}

.j7-image-candidate.is-selected {
  border-color: rgba(45, 212, 191, 0.98);
  box-shadow:
    0 0 0 2px rgba(45, 212, 191, 0.52),
    0 0 18px rgba(45, 212, 191, 0.34);
}

.j7-image-candidate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.j7-image-candidate-actions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.j7-image-selected-mark {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(45, 212, 191, 0.94);
  color: #02110f;
  opacity: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.55);
}

.j7-image-candidate.is-selected .j7-image-selected-mark {
  opacity: 1;
}

.j7-image-selected-mark svg,
.j7-image-action svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.j7-image-action {
  position: absolute;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 120ms ease, background 120ms ease, transform 120ms ease;
}

.j7-image-candidate:hover .j7-image-action,
.j7-image-candidate:focus-within .j7-image-action {
  opacity: 1;
}

.j7-image-action:hover {
  background: rgba(0, 0, 0, 0.92);
  transform: scale(1.06);
}

.j7-image-action-crop {
  top: 5px;
  right: 5px;
}

.j7-image-action-save {
  right: 5px;
  bottom: 5px;
}

.j7-image-action-remove {
  left: 5px;
  bottom: 5px;
  color: #ff96a1;
}

.vamp-tweet-url-row {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  text-align: center;
}

.vamp-tweet-url-row input {
  text-align: center;
}

.vamp-check-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
}

.vamp-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.vamp-check-row input {
  width: 14px;
  height: 14px;
  accent-color: #6366f1;
}

.image-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.image-crop-modal {
  position: relative;
  width: auto;
  max-width: min(92vw, 720px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(58, 58, 58, 0.5);
  border-radius: 10px;
  background: rgba(42, 42, 42, 0.93);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  padding: 16px;
  overflow: hidden;
}

.image-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-crop-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.image-crop-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.image-crop-mode-toggle:hover,
.image-crop-mode-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.image-crop-mode-toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-crop-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.image-crop-canvas {
  position: relative;
  width: min(560px, calc(92vw - 32px));
  height: min(56vh, 377px);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgb(58, 58, 58);
  background: #000;
  cursor: crosshair;
  touch-action: none;
}

.image-crop-canvas.is-pan,
.image-crop-canvas.is-dragging {
  cursor: grab;
}

.image-crop-canvas.is-dragging {
  cursor: grabbing;
}

.image-crop-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  touch-action: none;
  transform-origin: center center;
}

.image-crop-selection {
  position: absolute;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.image-crop-pan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.image-crop-pan-box {
  width: 300px;
  height: 300px;
  max-width: 60%;
  max-height: 80%;
  border: 1px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.52);
}

.image-crop-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

.image-crop-actions button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  padding: 7px 12px;
}

.image-crop-save {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.image-crop-save:hover,
.image-crop-save:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.image-crop-save.is-danger {
  color: #ffb2ba;
}

.image-crop-error {
  color: var(--danger);
  font-size: 11px;
  min-height: 0;
}

.image-crop-error:empty {
  display: none;
}

.image-library-modal {
  --modal-max-w: var(--launchdeck-popout-form-width, 532px);
  --modal-max-h: min(538px, calc(100vh - 24px));
  overflow: hidden;
}

.image-library-body {
  gap: 10px;
  padding: 12px 20px 18px;
  min-height: 0;
  overflow: hidden;
}

.image-library-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
}

.image-library-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.image-library-search input {
  min-height: 29px;
  padding: 6px 10px 6px 32px;
  border-radius: 7px;
  font-size: 11px;
  background: rgba(7, 8, 14, 0.82);
}

.image-library-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
}

.image-library-upload-button {
  flex: 0 0 78px;
  width: 78px;
  min-width: 78px;
  min-height: 29px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 11px;
}

.image-library-section-label {
  margin: 3px 0 0;
  font: 700 9px/1.25 var(--font-sans);
  color: var(--text-secondary);
}

.image-library-categories {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 7px;
  margin-top: 2px;
  padding-bottom: 2px;
}

.image-category-dynamic {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 7px;
}

.image-category-chip {
  width: auto;
  min-width: 0;
  min-height: 21px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font: 700 10px/1.1 var(--font-display);
}

.image-category-chip:hover {
  border-color: #2c3540;
  color: var(--text);
}

.image-category-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.image-category-chip-new {
  border-style: dashed;
}

.image-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  gap: 8px;
  min-height: 0;
  align-content: start;
  justify-content: start;
}

.image-library-grid-shell {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px 10px;
  min-height: 336px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(4, 5, 11, 0.78);
}

.image-library-item {
  position: relative;
  width: 64px;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-raised);
  padding: 0;
  cursor: pointer;
  display: block;
}

.image-library-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

.image-library-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-library-item:hover,
.image-library-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
}

.image-library-card-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 3px;
  padding: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.image-library-card-action {
  width: 20px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(11, 14, 18, 0.84);
  color: #fff;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
}

.image-library-card-action svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-library-item:hover .image-library-card-actions,
.image-library-item:focus-within .image-library-card-actions {
  opacity: 1;
}

.image-library-favorite {
  position: absolute;
  left: 6px;
  top: 5px;
  color: #facc15;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

.image-library-item-meta {
  display: none;
}

.image-library-item-meta strong,
.image-library-item-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-library-item-meta strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.image-library-item-meta span {
  color: var(--text-muted);
  font-size: 10px;
}

.image-library-empty {
  min-height: 280px;
  display: grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-muted);
  border-radius: 10px;
}

.image-library-empty strong {
  color: var(--text-secondary);
  font-size: 13px;
}

.image-library-empty span {
  max-width: 320px;
  font-size: 11px;
}

.image-library-upload-tile {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--text-muted);
  background: transparent;
  width: 64px;
  min-height: 64px;
  aspect-ratio: 1;
}

.image-library-upload-tile span {
  font-size: 28px;
  line-height: 1;
}

.image-library-upload-tile small {
  display: none;
}

.image-library-upload-tile:hover {
  color: var(--text);
}

.image-item-menu {
  position: fixed;
  z-index: 1100;
  width: 180px;
  padding: 6px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.image-item-menu-button {
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.image-item-menu-button:hover {
  background: var(--surface-raised);
}

.image-item-menu-button.danger {
  color: var(--danger);
}

.image-details-modal {
  --modal-max-w: 420px;
}

.image-category-modal {
  --modal-max-w: 360px;
}

#image-details-modal {
  z-index: 1200;
}

#image-category-modal {
  z-index: 1300;
}

.image-category-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.image-details-new-category {
  width: auto;
  min-width: 78px;
}

.image-details-error {
  margin-top: 10px;
}

.image-tag-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}

.image-tag-add-button {
  width: 32px;
  height: 32px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.image-tag-add-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.image-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  min-height: 0;
}

.image-tag-chip {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 11px;
}

.image-tag-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.image-tag-chip-remove {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
}


.mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mode-grid-three {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mode-option,
.mode-action-button,
.mode-action-row .auto-sell-trigger {
  margin: 0;
  border: 1px solid var(--border);
  padding: 5px 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
  min-height: 30px;
  user-select: none;
  text-transform: none;
}

.mode-option {
  flex: 1 1 calc(33.333% - 6px);
  max-width: calc(33.333% - 4px);
}

#bonk-quote-asset-toggle {
  position: relative;
}

#bonk-quote-asset-toggle[data-quote-asset="sol"] {
  --quote-asset-color: #9945ff;
  --quote-asset-color-strong: #14f195;
  --quote-asset-contrast: #ffffff;
}

#bonk-quote-asset-toggle[data-quote-asset="usdc"] {
  --quote-asset-color: #2775ca;
  --quote-asset-color-strong: #4a96e4;
  --quote-asset-contrast: #ffffff;
}

#bonk-quote-asset-toggle[data-quote-asset="usd1"] {
  --quote-asset-color: #c7901b;
  --quote-asset-color-strong: #f5cb5c;
  --quote-asset-contrast: #2a1a05;
}

#bonk-quote-asset-toggle[data-quote-asset] {
  border-color: color-mix(in srgb, var(--quote-asset-color) 72%, transparent);
  background:
    linear-gradient(
      135deg,
      var(--quote-asset-color-strong) 0%,
      var(--quote-asset-color) 100%
    );
  color: var(--quote-asset-contrast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px color-mix(in srgb, var(--quote-asset-color) 18%, transparent),
    0 8px 18px color-mix(in srgb, var(--quote-asset-color) 22%, transparent);
}

#bonk-quote-asset-toggle[data-quote-asset]:hover {
  border-color: color-mix(in srgb, var(--quote-asset-color-strong) 82%, transparent);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--quote-asset-color-strong) 95%, white 5%) 0%,
      color-mix(in srgb, var(--quote-asset-color) 90%, black 10%) 100%
    );
  color: var(--quote-asset-contrast);
}

.bonk-quote-asset-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42),
    0 1px 3px rgba(0, 0, 0, 0.28);
}

#bonk-quote-asset-toggle .inline-sol-logo,
#bonk-quote-asset-toggle .wallet-balance-icon-usd1 {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.mode-option:hover,
.mode-action-button:hover,
.button.subtle.mode-action-button:hover,
.mode-action-row .auto-sell-trigger:hover,
.button.subtle.auto-sell-trigger:hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option:has(input:checked) {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-inverse);
}

.mode-option:has(input:checked):hover,
.mode-action-button.active:hover,
.mode-action-row .auto-sell-trigger.active:hover {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
}

.mode-option:has(input:checked) .tooltip-dot {
  border-color: var(--accent-border);
  color: var(--text-inverse);
  background: color-mix(in srgb, var(--accent) 86%, var(--surface) 14%);
}

.mode-option:has(input[name="mayhemMode"]:checked) {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--danger) 82%, var(--surface) 18%),
      color-mix(in srgb, var(--danger) 70%, black 30%)
    );
  border-color: color-mix(in srgb, var(--danger) 72%, transparent);
  color: var(--danger-contrast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px color-mix(in srgb, var(--danger) 20%, transparent);
}

.mode-option:has(input[name="mayhemMode"]:checked) .tooltip-dot {
  border-color: color-mix(in srgb, var(--danger-contrast) 26%, transparent);
  color: var(--danger-contrast);
  background: color-mix(in srgb, var(--danger-contrast) 18%, transparent);
}

.mode-option:has(input[name="mode"][value="bonkers"]:checked) {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--danger) 82%, var(--surface) 18%),
      color-mix(in srgb, var(--danger) 70%, black 30%)
    );
  border-color: color-mix(in srgb, var(--danger) 72%, transparent);
  color: var(--danger-contrast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px color-mix(in srgb, var(--danger) 20%, transparent);
}

.mode-option:has(input[name="mode"][value="bonkers"]:checked) .tooltip-dot {
  border-color: color-mix(in srgb, var(--danger-contrast) 26%, transparent);
  color: var(--danger-contrast);
  background: color-mix(in srgb, var(--danger-contrast) 18%, transparent);
}

.mode-grid:has(input[name="mayhemMode"]:checked) .mode-option:has(input[name="mode"]:checked) {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--danger) 82%, var(--surface) 18%),
      color-mix(in srgb, var(--danger) 70%, black 30%)
    );
  border-color: color-mix(in srgb, var(--danger) 72%, transparent);
  color: var(--danger-contrast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px color-mix(in srgb, var(--danger) 20%, transparent);
}

.mode-grid:has(input[name="mayhemMode"]:checked) .mode-option:has(input[name="mode"]:checked) .tooltip-dot {
  border-color: color-mix(in srgb, var(--danger-contrast) 26%, transparent);
  color: var(--danger-contrast);
  background: color-mix(in srgb, var(--danger-contrast) 18%, transparent);
}

.mode-option > span,
.buy-mode-option > span,
.recipient-share-box > span,
.tooltip-dot {
  display: inline-flex;
  margin: 0;
}

.mode-title {
  font: 600 9.5px/1.3 var(--font-mono);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
  color: inherit;
  text-transform: capitalize;
}

.tooltip-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 7px;
  font-weight: 700;
  flex: 0 0 12px;
  cursor: help;
  position: relative;
  overflow: visible;
  outline: none;
}

.tooltip-dot.inline {
  vertical-align: middle;
  margin-left: 3px;
}

.tooltip-dot::after,
.tooltip-button::after {
  content: "";
  position: absolute;
  top: 100%;
  display: none;
}

.tooltip-dot::after {
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 12px;
}

.tooltip-button {
  position: relative;
  overflow: visible;
}

.tooltip-button::after {
  right: -10px;
  width: calc(100% + 20px);
  height: 12px;
}

.tooltip-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, calc(100vw - 36px));
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-overlay);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.12s ease;
}

.tooltip-panel.is-wide,
.tooltip-panel.tooltip-panel-wide {
  width: min(320px, calc(100vw - 36px));
}

.tooltip-dot:hover::after,
.tooltip-dot:focus-visible::after,
.tooltip-dot:focus-within::after,
.tooltip-button:hover::after,
.tooltip-button:focus-visible::after,
.tooltip-button:focus-within::after {
  display: block;
}

.tooltip-dot:hover .tooltip-panel,
.tooltip-dot:focus-visible .tooltip-panel,
.tooltip-dot:focus-within .tooltip-panel,
.tooltip-button:hover .tooltip-panel,
.tooltip-button:focus-visible .tooltip-panel,
.tooltip-button:focus-within .tooltip-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.24s;
}

.tooltip-button .tooltip-panel {
  left: auto;
  right: 0;
  transform: none;
}

.tooltip-panel-body {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tooltip-panel-rich {
  display: grid;
  gap: 10px;
}

.tooltip-panel-item {
  display: grid;
  gap: 5px;
}

.tooltip-panel-item + .tooltip-panel-item {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tooltip-panel-head {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.tooltip-panel-head strong {
  font: 700 10px/1.2 var(--font-display);
  color: var(--text);
  letter-spacing: 0.02em;
}

.tooltip-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent);
  font: 700 8px/1 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tooltip-panel-foot {
  display: block;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  line-height: 1.45;
}

.tooltip-panel code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: 600 9px/1.3 var(--font-mono);
}

.mode-panel, .mode-subcard { margin-top: 2px; }

.launch-surface-mode .mode-grid > .mode-option,
.launch-surface-mode .mode-action-row > * {
  transform-origin: center top;
}

.launch-surface-mode.platform-switching .mode-grid > .mode-option:not([hidden]),
.launch-surface-mode.platform-switching .mode-action-row > :not([hidden]) {
  animation: launchdeck-platform-layout-settle 220ms var(--ease-standard);
}

.mode-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--divider);
}

.mode-subcard {
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

@keyframes launchdeck-platform-layout-settle {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.985);
    filter: saturate(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

.mode-action-row {
  --mode-action-button-width: calc((100% - 18px) / 4);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
}

.mode-action-button {
  min-width: 0;
  font: inherit;
  white-space: nowrap;
}

.mode-action-row > .button.mode-action-button,
.mode-action-row > .auto-sell-popover {
  width: var(--mode-action-button-width);
  max-width: var(--mode-action-button-width);
  flex: 0 0 var(--mode-action-button-width);
  min-width: 0;
}

.mode-action-button.active,
.button.subtle.mode-action-button.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}


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

.launchpad-option {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  user-select: none;
  text-align: center;
}

.launchpad-option-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.launchpad-mark-wrap {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
}

.launchpad-option:hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-hover);
}

.launchpad-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.launchpad-option:has(input:checked) {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent);
}

.launchpad-option:has(input:checked) .launchpad-mark-wrap {
  background: transparent;
}

.launchpad-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.launchpad-title {
  font: 600 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.03em;
  color: inherit;
}

.launchpad-mark {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}


.dev-buy-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dev-buy-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dev-buy-quick-title {
  font: 600 10px/1.3 var(--font-display);
  color: var(--text-secondary);
}

.dev-buy-change-presets {
  width: auto;
  min-width: 0;
  background: transparent;
  color: var(--text-muted);
  font: 500 11px/1.4 var(--font-sans);
  padding: 0;
}

.dev-buy-change-presets:hover {
  color: var(--text);
}

.dev-buy-quick-action-button {
  width: auto;
  min-width: 0;
  padding: 0;
  font: 500 11px/1.4 var(--font-sans);
}

.dev-buy-quick-action-button:hover {
  color: var(--text);
}

.dev-buy-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.dev-buy-quick-button {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: all 0.15s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.dev-buy-quick-button:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.07);
}

.dev-buy-quick-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dev-buy-quick-content-editing {
  width: 100%;
  gap: 0;
  justify-content: center;
}

.dev-buy-quick-value {
  display: block;
  width: auto;
  min-width: 0;
  text-align: left;
  font: 700 11px/1 var(--font-display);
  color: var(--text);
}

.dev-buy-quick-button-editing {
  cursor: text;
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 88%, var(--accent-dim) 12%);
  box-shadow: none;
}

.dev-buy-quick-editor-input {
  min-width: 0;
  max-width: 100%;
  width: 5ch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.dev-buy-quick-editor-input:focus {
  border: 0;
  box-shadow: none;
}

.dev-buy-quick-editor-input::placeholder {
  color: var(--text-muted);
}

.quick-buy-sol-logo {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.dev-buy-custom-wrap {
  display: grid;
  gap: 4px;
}

.dev-buy-custom-wrap .deploy-status-bar {
  width: 100%;
}

.dev-buy-custom-label {
  font: 500 10px/1.3 var(--font-sans);
  color: var(--text-secondary);
}

.dev-buy-custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.08fr;
  gap: 4px;
}

.dev-buy-custom-field {
  position: relative;
  gap: 0;
}

.dev-buy-custom-prefix {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font: 600 10px/1 var(--font-mono);
  color: var(--text-secondary);
  pointer-events: none;
}

.dev-buy-custom-prefix-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dev-buy-custom-field input {
  min-height: 34px;
  padding: 6px 10px 6px 34px;
  font-family: var(--font-mono);
}

.dev-buy-custom-deploy {
  height: 34px;
  min-height: 34px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 76%, #163028 24%),
    color-mix(in srgb, var(--accent) 62%, #0b1411 38%)
  );
}

.dev-buy-custom-deploy .inline-sol-logo,
.dev-buy-custom-field .inline-sol-logo {
  width: 12px;
  height: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.section-head h2 {
  margin-bottom: 0;
}

.runtime-indicator-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  position: relative;
  overflow: visible;
}

.runtime-indicator-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.runtime-indicator-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -12px;
  width: 36px;
  height: 14px;
  display: none;
}

.runtime-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
  cursor: help;
}

.runtime-indicator-dot.is-green {
  background: #28c76f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24), 0 0 10px rgba(40, 199, 111, 0.28);
}

.runtime-indicator-dot.is-yellow {
  background: #ffcc4d;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24), 0 0 10px rgba(255, 204, 77, 0.24);
}

.runtime-indicator-dot.is-blue {
  background: #4da3ff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24), 0 0 10px rgba(77, 163, 255, 0.24);
}

.runtime-indicator-dot.is-red {
  background: #ff5d5d;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24), 0 0 10px rgba(255, 93, 93, 0.24);
}

.runtime-indicator-dot.is-gray {
  background: #677381;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.runtime-indicator-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(420px, calc(100vw - 36px));
  max-height: min(420px, 60vh);
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 16, 22, 0.98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  scrollbar-width: thin;
  transition: opacity 0.12s ease;
}

.runtime-indicator-popover:hover::after,
.runtime-indicator-popover:focus-visible::after,
.runtime-indicator-popover:focus-within::after,
.runtime-indicator-popover:hover .runtime-indicator-tooltip,
.runtime-indicator-popover:focus-visible .runtime-indicator-tooltip,
.runtime-indicator-popover:focus-within .runtime-indicator-tooltip {
  display: block;
}

.runtime-indicator-popover:hover .runtime-indicator-tooltip,
.runtime-indicator-popover:focus-visible .runtime-indicator-tooltip,
.runtime-indicator-popover:focus-within .runtime-indicator-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.runtime-indicator-tooltip-title {
  display: block;
  font: 700 12px/1.35 var(--font-display);
  color: var(--text);
  margin-bottom: 10px;
}

.runtime-indicator-tooltip-empty {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.runtime-indicator-tooltip-section + .runtime-indicator-tooltip-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
}

.runtime-indicator-tooltip-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.runtime-indicator-tooltip-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.runtime-indicator-tooltip-row + .runtime-indicator-tooltip-row {
  margin-top: 8px;
}

.runtime-indicator-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 4px;
  background: #677381;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.runtime-indicator-tooltip-dot.is-green {
  background: #28c76f;
}

.runtime-indicator-tooltip-dot.is-yellow {
  background: #ffcc4d;
}

.runtime-indicator-tooltip-dot.is-blue {
  background: #4da3ff;
}

.runtime-indicator-tooltip-dot.is-red {
  background: #ff5d5d;
}

.runtime-indicator-tooltip-dot.is-gray {
  background: #677381;
}

.runtime-indicator-tooltip-copy {
  min-width: 0;
}

.runtime-indicator-tooltip-row-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.runtime-indicator-tooltip-row-detail {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.runtime-rpc-rate {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: help;
  white-space: nowrap;
}

.runtime-rpc-rate-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
  outline: none;
}

.runtime-rpc-rate-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -10px;
  width: calc(100% + 20px);
  height: 12px;
  display: none;
}

.runtime-rpc-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(340px, calc(100vw - 36px));
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 16, 22, 0.98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.12s ease;
}

.runtime-rpc-rate-popover:hover::after,
.runtime-rpc-rate-popover:focus-visible::after,
.runtime-rpc-rate-popover:focus-within::after {
  display: block;
}

.runtime-rpc-rate-popover:hover .runtime-rpc-tooltip,
.runtime-rpc-rate-popover:focus-visible .runtime-rpc-tooltip,
.runtime-rpc-rate-popover:focus-within .runtime-rpc-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.runtime-rpc-tooltip-title {
  display: block;
  font: 700 12px/1.35 var(--font-display);
  color: var(--text);
}

.runtime-rpc-tooltip-body {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.theme-light .runtime-rpc-rate {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
}

.theme-light .runtime-indicator-tooltip {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
}

.theme-light .runtime-rpc-tooltip {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
}

.theme-light .tooltip-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
}

.theme-light .tooltip-panel-item + .tooltip-panel-item,
.theme-light .tooltip-panel-foot {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.theme-light .tooltip-panel code {
  background: rgba(15, 23, 42, 0.06);
}

.runtime-rpc-rate.is-muted {
  opacity: 0.62;
}

.auto-sell-popover {
  position: relative;
  flex: 0 0 auto;
}

.mode-action-row .auto-sell-popover {
  display: flex;
  align-self: stretch;
}

.auto-sell-trigger {
  min-width: 0;
  font: inherit;
  height: 100%;
  min-height: 30px;
  white-space: nowrap;
}

.mode-action-row .auto-sell-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mode-action-button .mode-title,
.mode-action-row .auto-sell-trigger .mode-title {
  color: inherit;
}

.auto-sell-trigger.active,
.button.subtle.auto-sell-trigger.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.auto-sell-trigger.has-warning,
.button.subtle.auto-sell-trigger.has-warning {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--border));
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
  color: var(--danger);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 12%, transparent);
}

.auto-sell-trigger.has-warning:hover,
.button.subtle.auto-sell-trigger.has-warning:hover {
  border-color: color-mix(in srgb, var(--danger) 58%, var(--border));
  background: color-mix(in srgb, var(--danger) 18%, var(--surface));
  color: var(--danger);
}

.auto-sell-trigger.has-warning .mode-title,
.button.subtle.auto-sell-trigger.has-warning .mode-title {
  color: inherit;
}

.modal.auto-sell-modal {
  --modal-max-w: 420px;
  --modal-max-h: min(560px, calc(100vh - 24px));
  padding-bottom: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--surface-glass);
}

.auto-sell-modal-header {
  align-items: center;
  padding: 9px 12px;
}

.auto-sell-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}

.auto-sell-modal-body > .auto-sell-card + .auto-sell-card {
  margin-top: 0;
}

.auto-sell-card {
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: var(--surface-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.auto-sell-modal-card {
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.auto-sell-modal-card-head {
  gap: 10px;
}

.auto-sell-modal-card-title {
  align-items: center;
  gap: 0;
}

.auto-sell-modal-card-title strong {
  display: block;
  font: 700 11px/1.1 var(--font-display);
  letter-spacing: 0.02em;
  color: inherit;
}

.auto-sell-modal-card-title > div {
  display: contents;
}

.sniper-auto-sell-card {
  gap: 5px;
}

.auto-sell-sniper-wallet-list {
  display: grid;
  gap: 4px;
}

.auto-sell-sniper-empty {
  padding: 6px 7px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.25;
}

.auto-sell-sniper-wallet-row {
  display: grid;
  gap: 3px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.auto-sell-sniper-wallet-row.is-active {
  border-color: var(--accent-border);
  background: var(--surface-hover);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 5%, transparent);
}

.auto-sell-sniper-wallet-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.auto-sell-sniper-wallet-info {
  min-width: 0;
  display: grid;
  gap: 0;
}

.auto-sell-sniper-wallet-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.auto-sell-sniper-wallet-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 11px/1.15 var(--font-display);
  color: var(--text);
}

.auto-sell-sniper-wallet-pill {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface-hover);
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.15;
}

.auto-sell-sniper-wallet-buy-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-color: color-mix(in srgb, #22c55e 42%, var(--border) 58%);
  background: color-mix(in srgb, #22c55e 14%, var(--surface));
  color: #86efac;
}

.auto-sell-sniper-wallet-buy-icon {
  width: 10px;
  height: 10px;
}

.auto-sell-sniper-wallet-percent-pill {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--border) 58%);
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
  color: var(--danger);
}

.auto-sell-sniper-wallet-mode-pill {
  border-color: rgba(255, 255, 255, 0.07);
  background: var(--surface-hover);
  color: var(--text-secondary);
}

.auto-sell-sniper-wallet-meta {
  font-size: 8px;
  color: var(--text-muted);
}

.auto-sell-sniper-wallet-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auto-sell-sniper-wallet-toggle {
  width: auto !important;
  min-width: 0 !important;
  min-height: 20px !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  flex: 0 0 auto;
  font-size: 8px !important;
}

.auto-sell-sniper-percent-field {
  display: inline-flex;
  align-items: center;
  width: 38px;
  color: var(--text-secondary);
}

.auto-sell-sniper-percent-field input {
  width: 100%;
  min-height: 20px;
  padding: 0 12px 0 4px;
  font-size: 8px;
  box-sizing: border-box;
  border-radius: 6px;
}

.auto-sell-sniper-trigger-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 4px;
  width: 100%;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-segmented-button {
  min-width: 36px;
  padding: 2px 5px;
}

.auto-sell-sniper-block-inline {
  justify-self: end;
  min-width: 0;
  width: 100%;
}

.auto-sell-sniper-wallet-config {
  display: grid;
  gap: 3px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auto-sell-sniper-mode-detail {
  display: grid;
  gap: 3px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-settings {
  justify-self: end;
  min-width: 0;
  gap: 3px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-block-grid {
  width: 100%;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-block-grid .auto-sell-trigger-chip {
  min-height: 16px;
  font-size: 7px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field {
  column-gap: 2px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field > span {
  font-size: 7px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field-threshold,
.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field-action {
  column-gap: 1px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field-threshold > span,
.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field-action > span {
  font-size: 6px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field-threshold .auto-sell-market-cap-input {
  width: 26px;
  padding: 3px 4px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field-timeout .auto-sell-market-cap-input {
  width: 40px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field-action .auto-sell-market-cap-select {
  width: 26px;
  padding: 3px 11px 3px 4px;
  background-position: 0 0, right 3px center;
  background-size: auto, 8px 5px;
}

.auto-sell-sniper-trigger-toolbar .auto-sell-inline-field .field-error {
  display: none;
}

.auto-sell-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.auto-sell-panel-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.auto-sell-card:has(.auto-sell-toggle input:checked) .auto-sell-panel-title {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.auto-sell-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.auto-sell-toggle:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.auto-sell-toggle:has(input:checked) span {
  color: var(--bg);
}

.auto-sell-toggle span {
  font: 700 9px/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auto-sell-settings {
  display: grid;
  gap: 4px;
  padding-top: 1px;
}

.auto-sell-setting-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.auto-sell-setting-row-stack {
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: stretch;
}

.auto-sell-setting-row-inline {
  grid-template-columns: 1fr;
  gap: 3px;
}

.auto-sell-setting-row-controls {
  grid-template-columns: 1fr;
  gap: 4px;
}

.auto-sell-setting-row-controls .auto-sell-setting-copy {
  display: none;
}

.auto-sell-setting-copy {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.auto-sell-slider-block {
  display: grid;
  gap: 4px;
}

.auto-sell-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.auto-sell-slider-head span {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
}

.auto-sell-slider-head strong {
  font-size: 9px;
  color: var(--text);
  font-family: var(--font-mono);
}

.auto-sell-setting-label {
  display: none;
}

.auto-sell-setting-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface-hover);
  color: var(--text-secondary);
  font: 700 8px/1 var(--font-mono);
  white-space: nowrap;
}

.auto-sell-setting-control {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
}

.auto-sell-trigger-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  width: 100%;
}

.auto-sell-trigger-toolbar-modes {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  justify-self: end;
  min-width: 0;
}

.auto-sell-trigger-toolbar-modes .auto-sell-setting-copy {
  display: none;
}

.auto-sell-trigger-toolbar-modes .auto-sell-trigger-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.auto-sell-trigger-toolbar-market {
  justify-self: end;
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 0;
}

.auto-sell-trigger-toolbar #auto-sell-time-settings,
.auto-sell-trigger-toolbar .auto-sell-market-cap-settings {
  width: auto;
  justify-self: end;
}

.auto-sell-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--accent-border);
  border-radius: var(--radius-pill);
  border: none;
  padding: 0;
  outline: none;
}

.auto-sell-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--accent-glow);
  cursor: pointer;
}

.auto-sell-slider:disabled {
  opacity: 0.45;
}

.auto-sell-slider-inline {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 52px;
  width: 100%;
  align-items: center;
  gap: 6px;
}

.auto-sell-slider-inline-label {
  width: 40px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  text-align: left;
}

.auto-sell-percent-inline-field {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  width: 52px;
  color: var(--text-secondary);
}

.auto-sell-percent-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.auto-sell-percent-suffix {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.auto-sell-percent-inline-input {
  width: 100%;
  min-height: 22px;
  padding: 0 16px 0 6px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-raised));
  color: var(--text);
  font: 500 9px/1.1 var(--font-body);
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.auto-sell-percent-inline-input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.auto-sell-percent-inline-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.auto-sell-percent-inline-input:disabled {
  opacity: 0.5;
}

.auto-sell-percent-inline-input::-webkit-outer-spin-button,
.auto-sell-percent-inline-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auto-sell-delay-inline-field {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  width: 52px;
}

.auto-sell-delay-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.auto-sell-delay-suffix {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.auto-sell-delay-inline-input {
  width: 100%;
  min-height: 22px;
  padding: 0 16px 0 6px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-raised));
  color: var(--text);
  font: 500 9px/1.1 var(--font-body);
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.auto-sell-delay-inline-input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.auto-sell-delay-inline-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.auto-sell-delay-inline-input:disabled {
  opacity: 0.5;
}

.auto-sell-delay-inline-input::-webkit-outer-spin-button,
.auto-sell-delay-inline-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auto-sell-trigger-block {
  display: grid;
  gap: 4px;
}

.auto-sell-trigger-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.auto-sell-segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 1px;
  justify-content: flex-start;
  align-items: center;
  justify-self: start;
  padding: 1px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.auto-sell-segmented-button {
  width: auto;
  min-width: 42px;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 4px;
}

.auto-sell-segmented-button.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-inverse);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}

.auto-sell-segmented-button.active .mode-title {
  color: var(--text-inverse);
}

.auto-sell-segmented-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.auto-sell-segmented-button .mode-title {
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.05em;
}

#auto-sell-time-settings,
.auto-sell-market-cap-settings {
  width: 100%;
  justify-self: stretch;
}

#auto-sell-time-settings {
  display: flex;
}

.auto-sell-market-cap-settings {
  display: grid;
  gap: 4px;
  padding: 3px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auto-sell-market-cap-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auto-sell-market-cap-summary-row {
  display: none;
}

.auto-sell-inline-settings {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(72px, 0.95fr);
  gap: 5px;
  align-items: start;
}

.auto-sell-trigger-toolbar .auto-sell-inline-settings {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.auto-sell-inline-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 5px;
  row-gap: 2px;
  min-width: 0;
}

.auto-sell-inline-field > span {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.auto-sell-trigger-toolbar .auto-sell-inline-field {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 4px;
  row-gap: 0;
}

.auto-sell-trigger-toolbar .auto-sell-inline-field-threshold .auto-sell-market-cap-input {
  width: 50px;
}

.auto-sell-trigger-toolbar .auto-sell-inline-field-timeout .auto-sell-market-cap-input {
  width: 47px;
}

.auto-sell-trigger-toolbar .auto-sell-inline-field-action .auto-sell-market-cap-select {
  width: 44px;
}

.auto-sell-inline-field > input,
.auto-sell-inline-field > select,
.auto-sell-inline-field > div {
  min-width: 0;
}

.auto-sell-inline-field .field-error {
  grid-column: 1 / -1;
}

.auto-sell-trigger-toolbar .auto-sell-inline-field .field-error {
  display: none;
}

.auto-sell-inline-field-timeout .auto-sell-market-cap-timeout-row {
  min-width: 0;
  position: relative;
}

.auto-sell-inline-field-timeout .auto-sell-market-cap-input {
  min-width: 0;
  padding-right: 14px;
  box-sizing: border-box;
}

.auto-sell-market-cap-field input,
.auto-sell-market-cap-field select {
  min-width: 0;
}

.auto-sell-market-cap-field span {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
}

.auto-sell-market-cap-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.auto-sell-tooltip-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  font-size: 6px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.auto-sell-market-cap-input {
  width: 100%;
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-raised));
  color: var(--text);
  font: 500 9px/1.15 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.auto-sell-market-cap-select {
  width: 100%;
  min-height: 22px;
  padding: 3px 13px 3px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, var(--surface-hover), var(--surface-raised)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238d9caf' d='M1.1.6 5 4.4 8.9.6 10 1.7 5 6 .1 1.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 4px center;
  background-size: auto, 9px 5px;
  color: var(--text);
  font: 500 9px/1.15 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color-scheme: dark;
}

.auto-sell-trigger-toolbar .auto-sell-market-cap-input,
.auto-sell-trigger-toolbar .auto-sell-market-cap-select {
  min-height: 20px;
  font-size: 8px;
}

.auto-sell-market-cap-input::placeholder {
  color: var(--text-muted);
}

.auto-sell-market-cap-input:hover,
.auto-sell-market-cap-select:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.auto-sell-market-cap-input:focus,
.auto-sell-market-cap-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.auto-sell-market-cap-input:disabled,
.auto-sell-market-cap-select:disabled {
  opacity: 0.5;
}

.auto-sell-market-cap-select option {
  background: var(--surface);
  color: var(--text);
}

.auto-sell-inline-warning {
  margin-top: 6px;
  width: 100%;
  padding: 4px 6px;
  font-size: 9px;
  line-height: 1.25;
  text-align: left;
}

.auto-sell-market-cap-input::-webkit-outer-spin-button,
.auto-sell-market-cap-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auto-sell-market-cap-timeout-row {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.auto-sell-market-cap-suffix {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
}

.auto-sell-helper-text {
  font-size: 9px;
  line-height: 1.25;
  color: var(--text-muted);
}

.auto-sell-trigger-chip {
  min-width: 0;
  width: auto;
  min-height: 18px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font: 600 8px/1 var(--font-display);
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.auto-sell-trigger-chip:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text);
}

.auto-sell-trigger-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.auto-sell-trigger-chip.active:hover {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
}

.auto-sell-trigger-chip:disabled {
  opacity: 0.45;
  cursor: default;
}

.auto-sell-block-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}

.auto-sell-block-grid .auto-sell-trigger-chip {
  width: 100%;
  min-width: 0;
  min-height: 18px;
  padding: 0;
  justify-content: center;
  font-size: 8px;
  line-height: 1.1;
  border-radius: 4px;
}

.auto-sell-help-text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.modal.sniper-modal {
  --modal-max-w: 500px;
  --modal-max-h: min(530px, calc(100vh - 24px));
  padding-bottom: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--surface-glass);
}

.modal.sniper-modal.is-expanded {
  --modal-fixed-h: min(530px, calc(100vh - 24px));
}

.sniper-modal-header {
  align-items: center;
  padding: 9px 12px;
}

.sniper-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px 0;
  gap: 8px;
  overflow: hidden;
}

.sniper-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.sniper-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.sniper-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.sniper-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.sniper-card-title strong {
  display: block;
  font: 700 12px/1.15 var(--font-display);
  color: var(--text);
  letter-spacing: -0.005em;
}

.sniper-card-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  border: 1px solid var(--border-subtle);
}

.sniper-enable-toggle {
  min-width: 44px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.sniper-wallets-section {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
  overflow: hidden;
}

.sniper-wallets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sniper-wallets-header-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1.2 var(--font-display);
  color: var(--text-secondary);
}

.sniper-wallets-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button.subtle.sniper-retry-button {
  width: auto;
  min-width: 62px;
  min-height: 20px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 9px !important;
  line-height: 1;
  letter-spacing: 0.02em;
}

.button.subtle.sniper-retry-button:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--text);
}

.button.subtle.sniper-retry-button.active {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-inverse);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
}

.button.subtle.sniper-retry-button.active:hover {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
}

.sniper-wallet-retry-row {
  display: flex;
  justify-content: flex-start;
}

.sniper-footer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font: 600 10px/1.1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--surface-soft) 96%, transparent);
}

.sniper-total-summary {
  font: 700 12px/1 var(--font-mono);
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.sniper-wallet-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  gap: 4px;
  scrollbar-gutter: stable;
}

.sniper-wallet-row {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.sniper-wallet-row.is-selected {
  border-color: var(--accent-border);
  background: var(--surface-hover);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 6%, transparent);
}

.sniper-wallet-row.is-disabled {
  opacity: 0.74;
}

.sniper-wallet-row.is-disabled .sniper-wallet-info {
  filter: none;
  opacity: 0.7;
}

.sniper-wallet-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.sniper-wallet-checkbox {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.sniper-wallet-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.sniper-wallet-name {
  flex: 0 0 auto;
  font: 600 10px/1.2 var(--font-display);
  color: var(--text);
}

.sniper-wallet-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 4px;
  font-size: 9px;
  color: var(--text-muted);
}

.sniper-wallet-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sniper-wallet-pill {
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface-hover);
  color: var(--text-secondary);
  font-size: 9px;
}

.sniper-wallet-balance {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(168, 85, 247, 0.34);
  background: linear-gradient(180deg, rgba(122, 53, 198, 0.34), rgba(76, 29, 149, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font: 600 10px/1 var(--font-mono);
  color: #f3e8ff;
}

.sniper-wallet-balance-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.sniper-wallet-config {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: start;
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sniper-wallet-config-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sniper-wallet-amount {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.sniper-wallet-amount-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sniper-wallet-amount-icon {
  position: absolute;
  left: 6px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.9;
}

.sniper-wallet-amount input {
  width: 64px;
  min-height: 20px;
  padding: 0 5px 0 20px;
  font-size: 8px;
  border-radius: 7px;
}

.sniper-wallet-trigger {
  display: grid;
  gap: 4px;
}

.sniper-wallet-sell {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sniper-wallet-sell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sniper-sell-toggle {
  min-width: 82px !important;
  min-height: 22px !important;
  padding: 0 9px !important;
  font-size: 9px !important;
}

.sniper-wallet-sell-percent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-secondary);
}

.sniper-wallet-sell-percent input {
  width: 50px;
  min-height: 22px;
  padding: 0 6px;
  font-size: 10px;
  border-radius: 7px;
}

.sniper-wallet-sell-mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sniper-wallet-sell-market {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sniper-wallet-sell-market-field {
  display: grid;
  gap: 3px;
}

.sniper-wallet-sell-market-field span {
  font-size: 9px;
  color: var(--text-secondary);
}

.sniper-wallet-sell-market-field input,
.sniper-wallet-sell-market-field select {
  min-height: 22px;
  padding: 0 7px;
  font-size: 10px;
  border-radius: 7px;
}

.sniper-wallet-trigger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.sniper-trigger-chip {
  min-width: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font: 600 7px/1.05 var(--font-display);
  letter-spacing: 0.02em;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
  position: relative;
  overflow: visible;
}

.sniper-trigger-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.sniper-trigger-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.sniper-trigger-chip.active:hover {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
}

.sniper-wallet-trigger-detail {
  display: grid;
  gap: 4px;
}

.sniper-wallet-block-grid {
  display: grid;
  grid-template-columns: repeat(19, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  justify-content: start;
}

.sniper-wallet-block-grid .sniper-trigger-chip {
  width: 100%;
  min-width: 0;
  min-height: 15px;
  height: 15px;
  padding: 0;
  border-radius: 3px;
  font-size: 7px;
  line-height: 1.1;
}

.sniper-wallet-delay {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.sniper-wallet-delay span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sniper-wallet-delay strong {
  font-size: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.sniper-delay-slider-block {
  gap: 4px;
}

.sniper-wallet-warning {
  font-size: 10px;
  color: var(--danger);
}

.sniper-modal-notice {
  margin-bottom: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.45;
}

.sniper-modal-notice.is-warning {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--danger);
}

.sniper-wallet-presets {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
  min-height: 22px;
  justify-content: flex-start;
}

.sniper-wallet-presets::-webkit-scrollbar {
  display: none;
}

.sniper-preset-button {
  width: 64px !important;
  min-width: 64px !important;
  min-height: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 7px !important;
  letter-spacing: 0.02em;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
}

.sniper-wallet-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}

.sniper-modal-error {
  min-height: 16px;
  padding-inline: 2px;
}

.fee-split-modal-error {
  min-height: 0;
  margin-top: 6px;
}

.fee-split-modal-error:not(:empty) {
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--danger) 52%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.fee-split-modal.bags-fee-split-modal .fee-split-modal-error:not(:empty) {
  margin-top: 5px;
  padding: 6px 7px;
  border-radius: 7px;
  font-size: 8.5px;
}

.sniper-modal .modal-footer {
  padding: 9px 12px;
}

.sniper-modal .modal-footer .button {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}

.vanity-modal {
  --modal-max-w: 420px;
  --modal-max-h: min(440px, calc(100vh - 24px));
}

.vanity-modal .modal-body {
  gap: 8px;
}

.vanity-modal .stack {
  gap: 8px;
}

.vanity-modal textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.vanity-derived-address {
  margin-top: 6px;
  padding: 5px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vamp-modal {
  --modal-max-w: var(--launchdeck-vamp-modal-width, 420px);
  display: block;
  overflow: hidden;
}

.vamp-modal-header {
  align-items: center;
  padding: 9px 12px;
}

.vamp-modal-body {
  padding: 8px 12px;
  display: block;
}

.vamp-modal-body .stack {
  gap: 5px;
}

.vamp-modal-body input {
  min-height: 30px;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.vamp-modal #vamp-status {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border-subtle) 78%);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-raised) 84%, var(--accent-dim) 16%),
      color-mix(in srgb, var(--surface) 90%, var(--accent-dim) 10%)
    );
}

.vamp-modal-footer {
  gap: 8px;
  padding: 9px 12px;
}

.vamp-modal-footer .button {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}

.popout-mode .modal-overlay,
.overlay-create-mode .modal-overlay {
  padding: 12px;
  align-items: center;
  justify-content: center;
}

.popout-mode .modal,
.overlay-create-mode .modal {
  --modal-max-h: calc(100vh - 24px);
}

.popout-mode .settings-modal {
  --modal-max-w: var(--launchdeck-settings-modal-popout-width, 500px);
  --modal-max-h: calc(100vh - 24px);
}

.popout-mode .vamp-modal {
  --modal-max-w: var(--launchdeck-vamp-modal-width, 420px);
}

.fee-split-modal {
  --modal-max-w: 500px;
  --modal-max-h: min(560px, calc(100vh - 24px));
}

.quote {
  font-size: 12px;
  padding: 7px 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}


.fee-split-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-width: 0;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text-secondary);
  font: 600 11px/1.4 var(--font-display);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.fee-split-action-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fee-split-pill:hover {
  border-color: #2c3540;
  color: var(--text);
}

.fee-split-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-inverse);
}

.fee-split-pill-icon { font-size: 12px; line-height: 1; }

.fee-split-pill-progress {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary) !important;
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.03em;
}

.mode-action-button:hover .fee-split-pill-progress,
#fee-split-pill:hover .fee-split-pill-progress {
  color: var(--text) !important;
}

.mode-action-button.active .fee-split-pill-progress,
.mode-action-row .auto-sell-trigger.active .fee-split-pill-progress,
#fee-split-pill.active .fee-split-pill-progress {
  color: var(--text-inverse) !important;
}

.fee-split-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 6px 8px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  border: 1px solid var(--border-subtle);
}

.fee-split-header strong { font-size: 11px; color: var(--text); font-weight: 700; }
.fee-split-header .muted { font-size: 9.5px; line-height: 1.3; }

.fee-split-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  min-width: 72px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.fee-split-total.invalid {
  background: rgba(246, 70, 93, 0.08);
  border-color: rgba(246, 70, 93, 0.20);
  color: var(--danger);
}

.fee-split-list {
  display: grid;
  gap: 5px;
  max-height: 38vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.fee-split-modal.compact-fee-split-modal .fee-split-list {
  min-height: 0;
}

.fee-split-modal.compact-fee-split-modal .fee-split-list.bags-fee-split-list-scrollable {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.bags-fee-split-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.bags-fee-split-card {
  display: grid;
  gap: 3px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--accent-border) 18%);
  border-radius: 9px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-raised) 88%, black 12%),
      color-mix(in srgb, var(--surface-soft) 94%, black 6%)
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.bags-fee-split-card-label {
  font: 600 8px/1.15 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bags-fee-split-card strong {
  font: 700 12px/1.02 var(--font-display);
  color: var(--text);
}

.bags-fee-split-card-copy strong {
  font-size: 9px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-secondary);
}

.bags-fee-split-card-copy {
  grid-column: 1 / -1;
}

.fee-split-row {
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-raised) 90%, black 10%),
      color-mix(in srgb, var(--surface-soft) 94%, black 6%)
    );
  border-radius: 9px;
  padding: 7px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.fee-split-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.bags-fee-row-header {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tabs {
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tabs::-webkit-scrollbar { display: none; }

.fee-split-modal.compact-fee-split-modal .recipient-type-tab {
  min-width: 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-color: color-mix(in srgb, var(--border) 76%, transparent);
  box-shadow: none;
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tab.locked-tab {
  min-width: 0;
  width: auto;
  padding: 0 7px;
}

.fee-split-modal.compact-fee-split-modal .fee-split-row {
  padding: 5px 5px 4px;
  gap: 1px;
}

.fee-split-modal.compact-fee-split-modal .fee-split-row .fee-split-row-top {
  margin-bottom: 4px;
}

.recipient-type-tabs { display: inline-flex; gap: 3px; }

.recipient-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 2px;
  background: #000;
  overflow: hidden;
}

.recipient-platform-icon-image {
  width: 118%;
  height: 118%;
  object-fit: contain;
  display: block;
}

.recipient-platform-icon-wallet .recipient-platform-icon-image {
  filter: invert(1);
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tab:hover {
  background: #000;
  border-color: color-mix(in srgb, var(--accent-border) 50%, var(--border) 50%);
}

.recipient-type-tab {
  width: auto;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font: 600 11px/1.4 var(--font-display);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: all 0.15s;
  user-select: none;
}

.recipient-type-tab.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-inverse);
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tab.active {
  background: #000;
  border-color: var(--accent);
  color: var(--text-secondary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

.recipient-type-tab-label {
  display: inline-block;
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tab-label,
.fee-split-modal.bags-fee-split-modal .bags-fee-row-chip-label {
  display: none;
}

.recipient-type-tab.active:hover,
.recipient-type-tab.active *,
.recipient-type-tab.active:hover * {
  color: var(--text-inverse);
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tab.active:hover,
.fee-split-modal.compact-fee-split-modal .recipient-type-tab.active *,
.fee-split-modal.compact-fee-split-modal .recipient-type-tab.active:hover * {
  color: inherit;
}

.button.subtle {
  border: 1px solid var(--border);
  background: var(--surface-gradient);
  color: var(--text-secondary);
  font-size: 11px;
  box-shadow: var(--control-shadow);
}

.button.subtle:hover {
  border-color: color-mix(in srgb, var(--border) 72%, var(--accent-border) 28%);
  color: var(--text);
  background: var(--surface-gradient-hover);
}

.recipient-remove {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  user-select: none;
}

.recipient-remove-icon {
  width: 12px;
  height: 12px;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
}

.recipient-remove:hover { color: var(--danger); border-color: var(--danger); }

.fee-split-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 6px;
  align-items: center;
}

.recipient-target-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.fee-split-modal.compact-fee-split-modal .fee-split-row-main {
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 2px;
}

.fee-split-modal.compact-fee-split-modal .recipient-target-wrap {
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 100%;
}

.bags-fee-row-meta {
  display: none;
  margin-top: 0;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.bags-fee-split-row .bags-fee-row-meta {
  display: flex;
}

.bags-fee-row-chip,
.bags-fee-row-status {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1.2;
}

.bags-fee-row-chip {
  flex: 0 0 auto;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.bags-fee-row-status {
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bags-fee-row-copy {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.bags-fee-row-copy-icon {
  width: 10px;
  height: 10px;
  display: block;
  object-fit: contain;
}

.bags-fee-row-copy:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-raised) 78%, transparent);
}

.bags-fee-row-copy.is-copied {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  animation: bags-fee-row-copy-pop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bags-fee-row-copy.is-copied .bags-fee-row-copy-icon {
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 58%, transparent));
}

.theme-light .recipient-remove-icon,
.theme-light .bags-fee-row-copy-icon {
  filter: brightness(0);
}

.theme-light .bags-fee-row-copy.is-copied .bags-fee-row-copy-icon {
  filter: brightness(0) drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 58%, transparent));
}

.bags-fee-split-row[data-validation-state="checking"] .bags-fee-row-status {
  color: var(--info);
}

.bags-fee-split-row[data-validation-state="valid"] .bags-fee-row-status {
  flex: 0 1 auto;
  max-width: 100%;
  color: var(--text);
  font-size: 9px;
  font-weight: 600;
}

@keyframes bags-fee-row-copy-pop {
  0% {
    transform: scale(0.88);
    opacity: 0.7;
  }
  55% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.bags-fee-split-row[data-validation-state="invalid"] {
  border-color: color-mix(in srgb, var(--danger) 52%, var(--border) 48%);
}

.bags-fee-split-row[data-validation-state="invalid"] .bags-fee-row-status {
  color: var(--danger);
}

.recipient-target {
  font-size: 10px;
}

.fee-split-modal.compact-fee-split-modal .recipient-target,
.fee-split-modal.compact-fee-split-modal .recipient-share {
  height: 22px;
  min-height: 22px;
  padding: 0 5px;
  font-size: 8.5px;
  border-radius: 5px;
}

.fee-split-modal.compact-fee-split-modal .recipient-share {
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.fee-split-modal.compact-fee-split-modal .recipient-share::-webkit-outer-spin-button,
.fee-split-modal.compact-fee-split-modal .recipient-share::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.recipient-lock-toggle {
  width: auto;
  min-width: 40px;
  padding: 0 10px;
  height: 34px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-xs);
  background: var(--accent-dim);
  color: var(--text-inverse);
  font: 600 11px/1 var(--font-display);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.fee-split-modal.compact-fee-split-modal .recipient-lock-toggle {
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-size: 8.5px;
  border-radius: 7px;
}

.recipient-lock-toggle:hover {
  border-color: var(--accent);
  color: var(--text-inverse);
}

.recipient-lock-toggle.is-set {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.fee-split-row[data-target-locked="true"] {
  border-color: var(--accent-border);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-raised) 82%, var(--accent-dim) 18%),
      color-mix(in srgb, var(--surface-soft) 88%, var(--accent-dim) 12%)
    );
}

.fee-split-row.bags-fee-split-row[data-target-locked="true"] {
  border-color: color-mix(in srgb, var(--border) 86%, var(--accent-border) 14%);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-raised) 90%, black 10%),
      color-mix(in srgb, var(--surface-soft) 94%, black 6%)
    );
}

.fee-split-row[data-target-locked="true"] .recipient-target {
  border-color: var(--accent-border);
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-dim) 12%);
  color: var(--text-muted);
  opacity: 0.78;
}

.fee-split-row.bags-fee-split-row[data-target-locked="true"] .recipient-target {
  color: var(--text);
  opacity: 1;
  background: color-mix(in srgb, var(--surface) 86%, var(--accent-dim) 14%);
}

.recipient-type-tab:disabled,
.recipient-lock-toggle:disabled {
  cursor: default;
  opacity: 0.7;
}

.fee-split-modal.compact-fee-split-modal .recipient-type-tab:disabled,
.fee-split-modal.compact-fee-split-modal .recipient-type-tab:disabled .recipient-platform-icon,
.fee-split-modal.compact-fee-split-modal .recipient-type-tab:disabled .recipient-platform-icon-image {
  opacity: 1;
}

.recipient-share-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.recipient-share-box span { font-weight: 600; color: var(--text-muted); font-size: 11px; }

.fee-split-modal.compact-fee-split-modal .recipient-share-box {
  gap: 2px;
}

.fee-split-modal.compact-fee-split-modal .recipient-share-box span {
  font-size: 8px;
}

.recipient-slider {
  margin-top: 6px;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  border: none;
  padding: 0;
  outline: none;
}

.fee-split-modal.compact-fee-split-modal .recipient-slider {
  margin-top: 3px;
  height: 2px;
}

.recipient-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-glow);
}

.fee-split-modal.compact-fee-split-modal .recipient-slider::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
}

.fee-split-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}

.fee-split-modal.compact-fee-split-modal .fee-split-actions {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 4px;
  gap: 3px;
}

.fee-split-actions .button.subtle {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 4px 8px;
  font-size: 10.5px;
  border-radius: 7px;
}

.fee-split-modal.compact-fee-split-modal .fee-split-actions .button.subtle {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  justify-content: center;
  padding: 4px 5px;
  font-size: 8px;
  border-radius: 4px;
}

.fee-split-legend {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
  border: 1px solid var(--border-subtle);
}

.fee-split-modal.compact-fee-split-modal .fee-split-legend {
  gap: 5px;
  margin-top: 5px;
}

.fee-split-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--border) 86%, transparent);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.18);
}

.fee-split-modal.compact-fee-split-modal .fee-split-bar {
  height: 4px;
}

.fee-split-legend-list { display: flex; flex-wrap: wrap; gap: 4px; }

.fee-split-modal.compact-fee-split-modal .fee-split-legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 4px;
  width: 100%;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-size: 9px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.fee-split-modal.compact-fee-split-modal .legend-chip {
  width: 100%;
}

.fee-split-modal.compact-fee-split-modal {
  --modal-max-w: 380px;
  --modal-max-h: min(520px, calc(100vh - 24px));
  border-radius: 10px;
}

.fee-split-modal.compact-fee-split-modal .modal-header {
  padding: 9px 10px;
}

.fee-split-modal.compact-fee-split-modal .modal-body {
  padding: 9px 10px;
  gap: 7px;
}

.fee-split-modal.compact-fee-split-modal .modal-footer {
  padding: 9px 10px;
}

.fee-split-modal.compact-fee-split-modal .modal-footer .button {
  min-height: 28px;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 7px;
}

.fee-split-modal.compact-fee-split-modal .fee-split-header {
  margin: 0;
  padding: 5px 7px;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
}

.fee-split-modal.compact-fee-split-modal .fee-split-header strong {
  font-size: 10px;
  line-height: 1.1;
}

.fee-split-modal.compact-fee-split-modal .fee-split-header .muted {
  font-size: 8px;
  line-height: 1.15;
  margin-top: 1px;
}

.fee-split-modal.compact-fee-split-modal .fee-split-total {
  min-width: 68px;
  padding: 3px 6px;
  font-size: 9px;
  line-height: 1;
}

.fee-split-modal.compact-fee-split-modal .recipient-remove {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.legend-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }

.legend-chip-label,
.legend-chip-share {
  display: inline-block;
  white-space: nowrap;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}


button {
  font: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  user-select: none;
}

.button {
  padding: 9px 14px;
  font: 600 12.5px/1.4 var(--font-sans);
  letter-spacing: 0.015em;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-gradient);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--control-shadow);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
  width: 100%;
  user-select: none;
}

.button:hover {
  border-color: color-mix(in srgb, var(--border) 72%, var(--accent-border) 28%);
  background: var(--surface-gradient-hover);
  box-shadow: var(--control-shadow-hover);
}

.button.deploy {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 94%, var(--surface) 6%),
    color-mix(in srgb, var(--accent) 88%, var(--surface-soft) 12%)
  );
  color: var(--text-inverse);
  border-color: var(--accent-border);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
    0 8px 18px color-mix(in srgb, var(--accent) 8%, transparent);
}

.button.deploy:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 96%, var(--surface) 4%),
    color-mix(in srgb, var(--accent) 90%, var(--surface-soft) 10%)
  );
  border-color: var(--accent-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 10px 22px color-mix(in srgb, var(--accent) 10%, transparent);
}

.button.deploy:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}

.button[disabled] {
  opacity: 0.3;
  cursor: wait;
  pointer-events: none;
}


.output { margin-top: 0; }

.launch-surface-output {
  display: grid;
  gap: 6px;
}

.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.output-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.output-head-button {
  width: auto;
  min-width: 0;
  justify-content: center;
}

.output-dev-button {
  min-width: 0;
}

#toggle-output-button.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

#toggle-reports-button.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.output-status-chip {
  cursor: default;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.meta {
  margin: 4px 0 8px;
  font-size: 11px;
}

.console {
  margin: 0;
  min-height: 170px;
  max-height: 400px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  border-radius: var(--radius-sm);
  font: 11px/1.65 var(--font-mono);
}

.reports-terminal {
  flex: 0 1 560px;
  width: min(560px, calc(100vw - 24px));
  min-width: min(420px, calc(100vw - 24px));
  max-width: min(720px, calc(100vw - 24px));
  height: var(--reports-terminal-match-height, auto);
  max-height: var(--reports-terminal-match-height, none);
  padding: 10px 12px;
  align-self: stretch;
  position: sticky;
  top: 12px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.reports-terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.reports-terminal-head > :first-child {
  min-width: 0;
}

.reports-terminal-head .meta {
  margin: 0;
  overflow-wrap: anywhere;
}

.reports-terminal-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.reports-terminal-button-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}

.reports-terminal-chip {
  cursor: pointer;
  white-space: nowrap;
}

.reports-terminal-button-group .reports-terminal-chip {
  padding-left: 7px;
  padding-right: 7px;
}

.reports-terminal-chip-icon {
  min-width: 28px;
  padding: 4px 7px;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}

.reports-terminal-chip-danger {
  border-color: rgba(255, 93, 93, 0.24);
  color: #ff8b8b;
}

.reports-terminal-chip-danger:hover,
.reports-terminal-chip-danger:focus-visible {
  border-color: rgba(255, 93, 93, 0.38);
}

.reports-follow-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.reports-follow-summary.is-offline {
  border-color: rgba(255, 176, 32, 0.24);
  color: var(--text-primary);
}

.reports-follow-summary.is-active {
  color: var(--text-primary);
}

.reports-follow-summary.is-issues {
  border-color: rgba(255, 93, 93, 0.22);
}

.reports-terminal-body {
  --reports-terminal-list-width: 152px;
  display: grid;
  grid-template-columns: minmax(120px, var(--reports-terminal-list-width)) 12px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
}

.reports-terminal-body > * {
  min-width: 0;
  min-height: 0;
}

.reports-terminal.is-launches-view .reports-terminal-body {
  grid-template-columns: minmax(0, 1fr);
}

.reports-terminal.is-active-jobs-view .reports-terminal-body {
  grid-template-columns: minmax(0, 1fr);
}

.reports-terminal.is-active-logs-view .reports-terminal-body {
  grid-template-columns: minmax(0, 1fr);
}

.output-hidden .reports-terminal.is-active-logs-view .reports-terminal-body {
  min-height: 0;
}

.reports-terminal.is-launches-view .reports-terminal-list,
.reports-terminal.is-launches-view .reports-terminal-resize-handle,
.reports-terminal.is-active-jobs-view .reports-terminal-list,
.reports-terminal.is-active-jobs-view .reports-terminal-resize-handle,
.reports-terminal.is-active-logs-view .reports-terminal-list,
.reports-terminal.is-active-logs-view .reports-terminal-resize-handle {
  display: none;
}

.reports-terminal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 2px;
}

.reports-terminal-resize-handle {
  position: relative;
  align-self: stretch;
  width: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.reports-terminal-resize-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.reports-terminal-resize-handle:hover::before,
.reports-terminal-resize-handle:focus-visible::before,
.reports-terminal-resize-handle.is-active::before,
.reports-terminal.is-resizing .reports-terminal-resize-handle::before {
  background: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.reports-terminal.is-resizing,
.reports-terminal.is-resizing * {
  cursor: ew-resize !important;
  user-select: none;
}

.reports-terminal-item {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.reports-terminal-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.reports-terminal-item.active {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.reports-terminal-item.active:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.reports-terminal-item.active .reports-terminal-item-title,
.reports-terminal-item.active .reports-terminal-item-meta {
  color: var(--text-inverse);
}

.reports-terminal-item.active:hover .reports-terminal-item-title,
.reports-terminal-item.active:hover .reports-terminal-item-meta {
  color: var(--text-inverse);
}

.reports-terminal-item.active *,
.reports-terminal-item.active:hover * {
  color: var(--text-inverse);
}

.reports-terminal-item-title {
  display: block;
  font: 600 10px/1.4 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reports-terminal-item-meta {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.reports-terminal-empty {
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
}

.reports-console {
  min-height: 0;
  max-height: none;
  height: 100%;
  width: 100%;
  overflow-wrap: anywhere;
  background: var(--surface-soft);
}

.reports-terminal-output {
  min-height: 0;
  max-height: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
}

.output-hidden .reports-terminal.is-active-logs-view {
  height: var(--reports-terminal-match-height, auto);
}

.output-hidden .reports-terminal.is-active-logs-view .reports-terminal-output {
  min-height: 0;
  max-height: none;
}

.reports-terminal-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 10px 0;
}

.reports-terminal-tabs-spacer {
  flex: 1 1 auto;
}

.reports-terminal-tab {
  width: auto;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-secondary);
  font: 600 10px/1.4 var(--font-display);
}

.reports-terminal-tab.active {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.reports-terminal-tab.active:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.reports-terminal-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  padding: 5px;
  font-size: 13px;
  line-height: 1;
}

.reports-terminal-content {
  padding: 10px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.reports-launches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.reports-active-jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reports-active-jobs-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reports-active-jobs-heading strong {
  font: 700 11px/1.4 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.reports-active-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.reports-launch-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.9), rgba(8, 11, 16, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.reports-launch-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.reports-launch-card-image,
.reports-launch-card-image-fallback {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.reports-launch-card-image {
  display: block;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.reports-launch-card-image-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.06em;
}

.reports-launch-card-title {
  display: block;
  font: 600 12px/1.35 var(--font-body);
  color: var(--text);
}

.reports-launch-card-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.reports-launch-card-section {
  display: grid;
  gap: 6px;
}

.reports-launch-card-chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reports-launch-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font: 600 10px/1 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reports-launch-card-ca {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.reports-launch-card-ca:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.reports-launch-card-ca-label {
  font: 600 10px/1 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.reports-launch-card-ca-value {
  font: 10px/1.4 var(--font-mono);
  color: var(--text);
  overflow-wrap: anywhere;
}

.reports-launch-card-label {
  font: 600 10px/1.3 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.reports-launch-card-copy {
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
}

.reports-launch-card-detail-list {
  display: grid;
  gap: 6px;
}

.reports-launch-card-detail-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.reports-launch-card-detail-key {
  font: 600 10px/1.3 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.reports-launch-card-detail-value {
  font-size: 10px;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
}

.reports-launch-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.reports-launch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.reports-active-job-card {
  gap: 10px;
}

.reports-active-job-meta-grid {
  display: grid;
  gap: 6px;
}

.reports-active-job-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reports-active-job-action-list {
  display: grid;
  gap: 6px;
}

.reports-active-job-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.reports-active-job-action-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reports-active-job-action-copy strong {
  font: 600 11px/1.35 var(--font-body);
  color: var(--text);
}

.reports-active-job-action-copy span {
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.reports-active-job-action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.reports-active-job-action-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.reports-active-job-action-meta-pill strong {
  font: 600 9px/1.2 var(--font-body);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reports-active-job-action-meta-pill span {
  font: 600 10px/1.25 var(--font-mono);
  color: var(--text);
}

.reports-panel-stack {
  display: grid;
  gap: 10px;
}

.reports-active-logs-tabs {
  justify-content: flex-end;
}

.reports-active-logs-list {
  display: grid;
  gap: 4px;
}

.reports-active-log-entry {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 14, 0.72);
}

.reports-active-log-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.reports-active-log-time,
.reports-active-log-source,
.reports-active-log-message,
.reports-active-log-context-summary {
  font-size: 11px;
  line-height: 1.35;
}

.reports-active-log-time {
  color: var(--text-secondary);
  white-space: nowrap;
}

.reports-active-log-source {
  color: var(--text);
  white-space: nowrap;
}

.reports-active-log-message {
  color: var(--text);
  flex: 1 1 320px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-active-log-context-summary {
  color: var(--text-secondary);
  flex: 1 1 260px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-active-log-details {
  display: grid;
  gap: 4px;
}

.reports-active-log-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.3;
  user-select: none;
}

.reports-active-log-details[open] summary {
  color: var(--text);
}

.reports-active-log-context {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 10px/1.45 var(--font-mono);
}

.reports-panel-section {
  display: grid;
  gap: 8px;
}

.reports-panel-title {
  font: 700 11px/1.4 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.reports-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.reports-metric-card {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(14, 18, 24, 0.88);
}

.reports-metric-card.is-primary {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-subtle) 55%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 14%, rgba(14, 18, 24, 0.94) 86%),
    rgba(14, 18, 24, 0.9)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}

.reports-metric-card.is-primary .reports-metric-label {
  color: color-mix(in srgb, var(--accent) 55%, var(--text-muted) 45%);
}

.reports-metric-card.is-primary .reports-metric-value {
  color: color-mix(in srgb, var(--accent) 86%, #f4fff9 14%);
}

.reports-metric-card.is-muted {
  background: rgba(12, 15, 20, 0.7);
  border-color: rgba(255, 255, 255, 0.05);
}

.reports-metric-card.is-muted .reports-metric-label {
  color: var(--text-secondary);
}

.reports-metric-card.is-muted .reports-metric-value {
  color: color-mix(in srgb, var(--text) 78%, var(--text-secondary) 22%);
}

.reports-metric-label {
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reports-metric-value {
  font: 600 12px/1.3 var(--font-mono);
  color: var(--text);
  overflow-wrap: anywhere;
}

.reports-metric-note {
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.reports-panel-note {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.reports-action-list {
  display: grid;
  gap: 8px;
}

.reports-action-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(14, 18, 24, 0.88);
}

.reports-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.reports-action-head strong {
  display: block;
  font: 600 12px/1.35 var(--font-display);
  color: var(--text);
}

.reports-action-subtitle {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.reports-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font: 600 10px/1.3 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reports-state-badge.is-good {
  border-color: rgba(20, 195, 142, 0.28);
  background: rgba(20, 195, 142, 0.12);
  color: #6cf0bf;
}

.reports-state-badge.is-warn {
  border-color: rgba(255, 176, 32, 0.28);
  background: rgba(255, 176, 32, 0.12);
  color: #ffd27a;
}

.reports-state-badge.is-bad {
  border-color: rgba(246, 70, 93, 0.28);
  background: rgba(246, 70, 93, 0.12);
  color: #ff8b9b;
}

.reports-callout {
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.reports-callout.is-bad {
  border-color: rgba(246, 70, 93, 0.24);
  background: rgba(246, 70, 93, 0.08);
  color: #ffb6c0;
}

.launchdeck-host-banner {
  margin: 0 18px;
}

.sniper-host-banner {
  margin-top: 12px;
}

.reports-inline-link {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}

.reports-inline-link:hover {
  text-decoration: underline;
}

.reports-action-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reports-copy-hash {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 600 11px/1.4 var(--font-mono);
  cursor: pointer;
}

.reports-copy-hash:hover {
  text-decoration: underline;
}

.reports-copy-hash.is-copied {
  color: var(--text);
  text-decoration: none;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 7, 10, 0.80);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: min(var(--modal-max-w, 440px), calc(100vw - 32px));
  max-width: min(var(--modal-max-w, 440px), calc(100vw - 32px));
  height: var(--modal-fixed-h, auto);
  max-height: var(--modal-max-h, calc(100vh - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  box-shadow: var(--modal-shadow);
}

.settings-modal {
  --modal-max-w: 560px;
  --modal-max-h: calc(100vh - 24px);
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
}

.benchmarks-popout-modal {
  --modal-max-w: 640px;
  --modal-max-h: calc(100vh - 24px);
  overflow: hidden;
}

.benchmarks-popout-modal .modal-header {
  padding: 10px 12px;
}

.benchmarks-popout-modal .settings-modal-subtitle {
  display: none;
}

.benchmarks-popout-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.98), rgba(7, 10, 15, 0.98));
}

.benchmarks-popout-body .reports-panel-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  column-count: unset;
  column-gap: unset;
}

.benchmarks-popout-body .reports-panel-section {
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(12, 17, 23, 0.88);
  display: grid;
  width: 100%;
  margin: 0;
  break-inside: avoid;
}

.benchmarks-popout-body .reports-panel-section-launch-speed {
  grid-column: 1 / -1;
  padding: 10px 12px;
}

.benchmarks-popout-body .reports-panel-title {
  font-size: 10px;
  line-height: 1.3;
}

.benchmarks-popout-body .reports-panel-note {
  display: none;
}

.benchmarks-popout-body .reports-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 6px;
}

.benchmarks-popout-body .reports-metric-grid-launch-speed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.benchmarks-popout-body .reports-metric-card {
  gap: 3px;
  padding: 6px 8px;
}

.benchmarks-popout-body .reports-panel-section-launch-speed .reports-metric-card {
  gap: 4px;
  padding: 10px 12px;
}

.benchmarks-popout-body .reports-metric-label {
  font-size: 9px;
}

.benchmarks-popout-body .reports-metric-value {
  font-size: 11px;
  line-height: 1.2;
}

.benchmarks-popout-body .reports-panel-section-launch-speed .reports-metric-label {
  font-size: 10px;
}

.benchmarks-popout-body .reports-panel-section-launch-speed .reports-metric-value {
  font-size: 17px;
  line-height: 1.1;
}

.benchmarks-popout-body .reports-panel-section-launch-speed .reports-metric-note {
  display: block;
  font-size: 9px;
  line-height: 1.3;
}

.benchmarks-popout-body .reports-metric-note {
  display: none;
}

.benchmarks-popout-body .reports-action-list {
  gap: 6px;
}

.benchmarks-popout-body .reports-action-card {
  gap: 5px;
  padding: 8px;
}

.benchmarks-popout-body .reports-action-head {
  gap: 6px;
}

.benchmarks-popout-body .reports-action-head strong {
  font-size: 11px;
}

.benchmarks-popout-body .reports-action-subtitle {
  display: none;
}

.benchmarks-popout-body .reports-state-badge {
  padding: 3px 7px;
  font-size: 9px;
}

@media (max-width: 720px) {
  .benchmarks-popout-body .reports-panel-stack {
    grid-template-columns: 1fr;
  }

  .benchmarks-popout-body .reports-metric-grid-launch-speed {
    grid-template-columns: 1fr;
  }
}

.settings-modal-header {
  padding: 10px 12px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 0.98));
}

.settings-modal-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.settings-modal-subtitle {
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-muted);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header > :first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.modal-header h3 {
  font: 700 13px/1.25 var(--font-display);
  letter-spacing: -0.005em;
  color: var(--text);
}

.modal-close {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  pointer-events: none;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--border) 84%, var(--accent-border) 16%);
  background: color-mix(in srgb, var(--surface-hover) 70%, transparent);
}

.modal-close-icon {
  display: none;
}

.modal-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fee-split-modal .modal-body,
.vanity-modal .modal-body,
.image-details-modal .modal-body,
.image-category-modal .modal-body {
  gap: 8px;
}

.settings-modal-body {
  gap: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0.96), rgba(10, 14, 20, 0.98));
}

.settings-modal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.settings-modal-sidebar {
  display: grid;
  gap: 10px;
}

.settings-modal-sidebar {
  position: static;
}

.settings-section {
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.settings-section h4 {
  font: 700 11px/1.4 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.settings-preset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%),
    var(--surface-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.settings-preset-copy {
  display: grid;
  gap: 4px;
}

.settings-preset-label {
  font: 600 10px/1.4 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.settings-preset-chip-bar {
  gap: 6px;
}

.settings-preset-chip-bar .preset-chip {
  border-radius: 999px;
}

.settings-preset-chip-bar .preset-chip.active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 8px 16px color-mix(in srgb, var(--accent) 8%, transparent);
}

.settings-preset-chip-bar .preset-chip.active,
.settings-preset-chip-bar .preset-chip.active .mode-title {
  color: var(--text-inverse);
}

.preset-edit-toggle {
  width: auto;
  min-width: 48px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preset-edit-toggle.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-inverse);
}

.settings-main-panel {
  gap: 8px;
  padding: 9px;
}

.settings-loading .settings-main-panel,
.settings-loading .settings-modal-sidebar {
  opacity: 0.58;
}

.settings-loading .settings-main-panel {
  pointer-events: none;
}

.settings-modal:not(.settings-loading) label.is-disabled,
.settings-modal:not(.settings-loading) .settings-inline-toggle.is-disabled {
  opacity: 0.9;
}

.settings-modal:not(.settings-loading) .button[disabled] {
  opacity: 0.82;
  cursor: default;
}

.settings-modal:not(.settings-loading) input[disabled],
.settings-modal:not(.settings-loading) textarea[disabled],
.settings-modal:not(.settings-loading) select[disabled] {
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  border-color: var(--border-subtle);
}

.settings-main-panel-toolbar {
  border-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-main-panel-body {
  display: grid;
  gap: 9px;
}

.settings-row-group {
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-row-group:first-child {
  padding-top: 0;
  border-top: none;
}

.settings-row-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.settings-row-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.settings-row-title-line h4 {
  display: none;
}

.settings-row-title-line .settings-section-copy {
  min-width: 0;
  margin: 0;
}

.settings-row-header .settings-section-pill {
  order: -1;
  flex: 0 0 auto;
}

.settings-section-modern {
  padding: 9px 10px;
  border-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(17, 21, 28, 0.98), rgba(10, 14, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 22px rgba(0, 0, 0, 0.14);
}

.settings-sidebar-section {
  gap: 8px;
}

.settings-section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.settings-section-title-row h4 {
  display: none;
}

.settings-section-copy {
  font-size: 9px;
  line-height: 1.25;
  color: var(--text-muted);
}

.settings-section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  font: 700 9px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-grid {
  display: grid;
  gap: 6px;
}

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

.settings-grid-four {
  grid-template-columns:
    minmax(74px, 0.9fr)
    repeat(2, minmax(58px, 0.72fr))
    minmax(176px, 1.04fr);
}

.settings-grid-five {
  grid-template-columns:
    minmax(74px, 0.9fr)
    repeat(3, minmax(58px, 0.72fr))
    minmax(156px, 0.98fr);
}

.settings-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.settings-route-stack {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  margin: 0;
}

.settings-route-grid {
  width: 100%;
  max-width: 100%;
  gap: 6px;
  justify-content: stretch;
  justify-items: stretch;
}

.settings-route-grid label {
  display: grid;
  grid-template-rows: minmax(12px, auto) 26px minmax(11px, 1fr);
  gap: 4px;
  min-width: 0;
  align-content: start;
}

.settings-fee-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.settings-input-prefix {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

.settings-fee-field .inline-sol-logo {
  width: 14px;
  height: 14px;
}

.settings-route-grid label > span:first-child,
.settings-route-grid label > .field-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 12px;
  font-size: 9px;
  line-height: 1.2;
  color: var(--text-secondary);
}

.settings-route-grid input,
.settings-route-grid select {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 5px 6px;
  font-size: 10px;
  background: rgba(5, 7, 10, 0.88);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.settings-grid-creation-compact {
  grid-template-columns:
    minmax(88px, 1.08fr)
    minmax(72px, 0.5fr)
    minmax(64px, 0.68fr)
    minmax(64px, 0.68fr)
    auto
    minmax(68px, 0.68fr);
}

.settings-grid-trade-compact {
  grid-template-columns:
    minmax(84px, 0.96fr)
    minmax(72px, 0.48fr)
    minmax(56px, 0.52fr)
    minmax(64px, 0.62fr)
    minmax(64px, 0.62fr)
    auto
    minmax(68px, 0.68fr);
}

.settings-fee-input-wrap input {
  padding-left: 27px;
}

.settings-region-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: stretch;
}

.settings-region-card {
  display: grid;
  align-content: start;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  white-space: normal;
}

.settings-region-card-shared {
  border-color: color-mix(in srgb, var(--accent) 16%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.settings-region-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.settings-region-card-head strong {
  font: 600 9px/1.2 var(--font-body);
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}

.settings-region-effective {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font: 700 9px/1 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.settings-region-meta {
  font-size: 8px;
  line-height: 1.25;
  color: var(--text-muted);
  white-space: normal;
  overflow-wrap: anywhere;
}

.settings-region-meta-separator {
  display: inline-block;
  margin: 0 4px;
  opacity: 0.48;
}

.settings-region-note,
.settings-sidebar-note {
  font-size: 9px;
  line-height: 1.3;
  color: var(--text-muted);
}

.settings-sidebar-note {
  padding: 7px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.settings-route-grid .field-error,
.settings-route-meta .field-error {
  min-height: 11px;
}

.settings-route-meta {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(0, 72px);
  gap: 6px;
  align-items: end;
  align-content: start;
  justify-content: center;
  min-width: 0;
}

.settings-route-grid > .settings-route-meta {
  grid-column: -2 / -1;
}

.settings-mev-mode-field {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: minmax(12px, auto) 26px minmax(11px, 1fr);
  column-gap: 3px;
  gap: 4px;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.settings-mev-mode-field-compact {
  min-width: 72px;
  max-width: none;
}

.settings-mev-mode-field:hover,
.settings-mev-mode-field:focus-within {
  z-index: 140;
}

.settings-mev-label {
  grid-column: 1 / -1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-self: start;
  width: max-content;
  min-width: 0;
  color: var(--text-secondary);
  cursor: help;
}

.settings-mev-label-text {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.settings-mev-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--text-muted) 28%);
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--text-muted);
  font: 700 8px/1 var(--font-display);
  flex: 0 0 auto;
}

.settings-mev-label .tooltip-panel {
  left: 0;
  right: auto;
  transform: none;
}

.settings-mev-label:hover .settings-mev-tooltip-icon,
.settings-mev-label:focus-visible .settings-mev-tooltip-icon,
.settings-mev-label:focus-within .settings-mev-tooltip-icon {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--text);
}

.settings-mev-tooltip-panel {
  position: relative;
  z-index: 141;
}

.settings-mev-tooltip-panel {
  display: block;
  position: absolute;
  width: min(420px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid #262b31;
  background: #0b0b0c !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
  opacity: 1;
  z-index: 160;
  isolation: isolate;
}

.settings-mev-tooltip-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b0b0c;
  z-index: 0;
}

.settings-mev-tooltip-panel .tooltip-panel-body,
.settings-mev-tooltip-panel .tooltip-panel-item,
.settings-mev-tooltip-panel .tooltip-panel-foot {
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.55;
}

.settings-mev-tooltip-panel .tooltip-panel-head strong,
.settings-mev-tooltip-panel .tooltip-panel-item strong,
.settings-mev-tooltip-panel .tooltip-panel-badge {
  color: var(--text);
  position: relative;
  z-index: 1;
}

.settings-mev-tooltip-panel .tooltip-panel-head strong {
  font-size: 12px;
}

.settings-mev-tooltip-panel .tooltip-panel-badge {
  font-size: 9px;
  padding: 3px 7px;
}

.theme-light .settings-mev-tooltip-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.96);
}

.theme-light .settings-mev-tooltip-panel::before {
  background: #ffffff;
}

.theme-light .settings-mev-tooltip-icon {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.42);
}

.settings-mev-mode-field select {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  padding-left: 6px;
  padding-right: 20px;
  font-size: 10px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%238d9caf' d='M0.9 0.8 4 3.8 7.1 0.8 8 1.7 4 5 0 1.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 8px 5px;
}

.settings-auto-fee-button {
  width: auto;
  min-width: 54px;
  justify-content: center;
  align-self: start;
  margin-top: 16px;
  min-height: 24px;
  padding: 2px 5px;
  font-size: 8px;
}

.settings-auto-fee-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.settings-auto-fee-cap {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(12px, auto) 24px minmax(11px, 1fr);
  align-items: start;
  gap: 4px;
  min-width: 0;
  max-width: 70px;
}

.settings-route-grid > .settings-auto-fee-button,
.settings-route-grid > .settings-auto-fee-cap,
.settings-route-grid > .settings-mev-mode-field {
  align-self: start;
}

.settings-auto-fee-cap input {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  background: rgba(5, 7, 10, 0.88);
  border-color: rgba(255, 255, 255, 0.06);
  padding: 4px 5px 4px 27px;
  font-size: 9px;
  text-align: left;
}

.settings-auto-fee-cap .field-error {
  grid-column: auto;
}

.settings-inline-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.settings-inline-toggle {
  min-height: 38px;
  align-self: center;
}

.settings-inline-field {
  min-width: 0;
}

.settings-auto-sell-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

label.is-disabled,
.settings-inline-toggle.is-disabled {
  opacity: 0.55;
}

label.is-disabled input,
label.is-disabled select,
label.is-disabled textarea {
  pointer-events: none;
}

.modal-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.modal-preview-row:last-child { border-bottom: none; }

.modal-preview-label {
  font: 600 10px/1.4 var(--font-display);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 90px;
}

.modal-preview-value {
  font-size: 11.5px;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  font-family: var(--font-mono);
}

.modal-preview-value.secondary { color: var(--text-secondary); }
.modal-preview-value.green { color: var(--green); }

.modal-token-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-token-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  object-fit: cover;
  flex: 0 0 auto;
}

.modal-token-img-empty {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.modal-token-info { min-width: 0; }

.modal-token-name {
  font: 700 15px/1.2 var(--font-display);
  color: var(--text);
}

.modal-token-ticker {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
}

.modal-footer .button {
  width: 100%;
  min-height: 30px;
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}

.settings-modal-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-content: space-between;
  justify-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(13, 17, 24, 0.92), rgba(10, 14, 20, 0.98));
}

.settings-modal-footer .button {
  min-width: 0;
  width: 100%;
  font-size: 11.5px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 8px;
}

.settings-modal-footer .button.deploy {
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 12%, transparent);
}

.modal-warning {
  padding: 10px 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--danger) 13%, var(--surface) 87%),
    color-mix(in srgb, var(--danger) 8%, var(--surface-soft) 92%)
  );
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 11px;
  font-weight: 550;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-provider-warning {
  margin-top: 6px;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.25;
  text-align: left;
}

.settings-route-stack > .settings-provider-warning {
  margin-top: 0;
}


.theme-light h1,
.theme-light .modal-header h3 {
  color: var(--text);
}

.theme-light .launch-surface-section + .launch-surface-section {
  border-top-color: var(--divider);
}

.theme-light .mode-divider {
  background: var(--divider);
}

.theme-light .wallet-inline-controls,
.theme-light .wallet-trigger-button,
.theme-light .wallet-dropdown,
.theme-light .wallet-option-button,
.theme-light .preset-chip,
.theme-light .button:not(.deploy),
.theme-light .mode-option,
.theme-light .mode-action-button,
.theme-light .mode-action-row .auto-sell-trigger,
.theme-light .launchpad-option,
.theme-light .description-toggle,
.theme-light .image-library-grid-shell,
.theme-light .image-library-item,
.theme-light .image-item-menu,
.theme-light .settings-section,
.theme-light .settings-section-modern,
.theme-light .dev-buy-quick-button-editing {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-light .wallet-inline-controls {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(15, 23, 42, 0.05);
}

.theme-light .wallet-trigger-button[aria-expanded="true"] {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent);
}

.theme-light .wallet-dropdown,
.theme-light .modal,
.theme-light .image-item-menu {
  background: var(--surface-overlay);
  box-shadow: var(--shadow-lg);
}

.theme-light .wallet-refresh-button {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.theme-light .wallet-refresh-button:hover {
  border-color: var(--border);
}

.theme-light .preset-chip:hover,
.theme-light .button:not(.deploy):hover,
.theme-light .mode-option:hover,
.theme-light .mode-action-button:hover,
.theme-light .button.subtle.mode-action-button:hover,
.theme-light .mode-action-row .auto-sell-trigger:hover,
.theme-light .button.subtle.auto-sell-trigger:hover,
.theme-light .launchpad-option:hover,
.theme-light .wallet-option-button:not(.is-selected):hover,
.theme-light .description-toggle:hover {
  background: linear-gradient(180deg, var(--surface), var(--surface-hover));
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.theme-light .deploy-status-bar {
  background: rgba(15, 23, 42, 0.035);
  border-color: rgba(15, 23, 42, 0.08);
}

.theme-light .button.subtle,
.theme-light .button {
  color: var(--text);
}

.theme-light .reports-terminal-item {
  background: #ffffff;
  border-color: var(--border);
}

.theme-light .reports-terminal-item.active,
.theme-light .reports-terminal-item.active:hover,
.theme-light .reports-terminal-item.active .reports-terminal-item-title,
.theme-light .reports-terminal-item.active .reports-terminal-item-meta,
.theme-light .reports-terminal-item.active:hover .reports-terminal-item-title,
.theme-light .reports-terminal-item.active:hover .reports-terminal-item-meta,
.theme-light .reports-terminal-item.active *,
.theme-light .reports-terminal-item.active:hover * {
  color: var(--text);
}

.theme-light .reports-terminal-item:hover {
  border-color: color-mix(in srgb, var(--border) 84%, var(--accent-border) 16%);
}

.theme-light .reports-terminal-resize-handle::before {
  background: rgba(15, 23, 42, 0.18);
}

.theme-light .reports-terminal-resize-handle:hover::before,
.theme-light .reports-terminal-resize-handle:focus-visible::before,
.theme-light .reports-terminal-resize-handle.is-active::before,
.theme-light .reports-terminal.is-resizing .reports-terminal-resize-handle::before {
  background: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-light .wallet-inline-controls .wallet-chip-button:not(.icon-chip-button),
.theme-light .wallet-inline-controls .preset-chip.compact,
.theme-light .dev-buy-change-presets,
.theme-light .dev-buy-quick-action-button {
  color: var(--text);
}

.theme-light .wallet-inline-controls .wallet-chip-button:not(.icon-chip-button):hover,
.theme-light .wallet-inline-controls .preset-chip.compact:hover,
.theme-light .dev-buy-change-presets:hover,
.theme-light .dev-buy-quick-action-button:hover {
  color: var(--text);
}

.theme-light #toggle-theme-button {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  color: var(--text);
  box-shadow: var(--control-shadow);
}

.theme-light #toggle-theme-button.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--text-inverse);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent);
}

.theme-light #toggle-theme-button.active:hover {
  border-color: var(--text);
  background: var(--text);
}

.theme-light .preset-chip.active,
.theme-light .image-category-chip.active,
.theme-light .auto-sell-trigger-chip.active,
.theme-light .mode-option:has(input:checked),
.theme-light .launchpad-option:has(input:checked),
.theme-light .button.subtle.active,
.theme-light .mode-action-button.active,
.theme-light .mode-action-row .auto-sell-trigger.active,
.theme-light #toggle-output-button.active,
.theme-light #toggle-reports-button.active,
.theme-light #toggle-theme-button.active {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-inverse);
  text-shadow: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-light .preset-chip.active:hover,
.theme-light .image-category-chip.active:hover,
.theme-light .auto-sell-trigger-chip.active:hover,
.theme-light .mode-option:has(input:checked):hover,
.theme-light .launchpad-option:has(input:checked):hover,
.theme-light .button.subtle.active:hover,
.theme-light .mode-action-button.active:hover,
.theme-light .mode-action-row .auto-sell-trigger.active:hover,
.theme-light #toggle-output-button.active:hover,
.theme-light #toggle-reports-button.active:hover,
.theme-light #toggle-theme-button.active:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-inverse);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-light .mode-option:has(input:checked) .mode-title,
.theme-light .launchpad-option:has(input:checked) .launchpad-title,
.theme-light .mode-action-button.active .mode-title,
.theme-light .mode-action-button.active .fee-split-pill-progress,
.theme-light .mode-action-row .auto-sell-trigger.active .mode-title,
.theme-light .preset-chip.active .mode-title,
.theme-light .settings-preset-chip-bar .preset-chip.active,
.theme-light .settings-preset-chip-bar .preset-chip.active .mode-title,
.theme-light .preset-edit-toggle.active {
  color: var(--text-inverse);
}

.theme-light .settings-preset-chip-bar .preset-chip.active:hover,
.theme-light .settings-preset-chip-bar .preset-chip.active:hover .mode-title,
.theme-light .settings-preset-chip-bar .preset-chip.active:hover * {
  color: var(--text-inverse);
}

.theme-light .wallet-inline-controls .preset-chip.compact.active,
.theme-light .wallet-inline-controls .preset-chip.compact.active:hover,
.theme-light .wallet-inline-controls .preset-chip.compact.active *,
.theme-light .wallet-inline-controls .preset-chip.compact.active:hover * {
  color: var(--text-inverse);
}

.theme-light .settings-preset-toolbar {
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 9%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 250, 244, 0.985));
}

.theme-light .settings-modal-header,
.theme-light .settings-modal-body,
.theme-light .settings-modal-footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
}

.theme-light .settings-section-modern {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 24px rgba(15, 23, 42, 0.04);
}

.theme-light .settings-route-stack,
.theme-light .settings-region-card,
.theme-light .settings-sidebar-note,
.theme-light .settings-checkbox-row {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-light .settings-route-grid label {
  background: transparent;
  border: none;
  box-shadow: none;
}

.theme-light .settings-mev-mode-field,
.theme-light .settings-auto-fee-cap {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.theme-light .settings-route-grid input,
.theme-light .settings-route-grid select,
.theme-light .settings-auto-fee-cap input {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.theme-light .settings-route-grid input:hover,
.theme-light .settings-route-grid select:hover,
.theme-light .settings-auto-fee-cap input:hover {
  border-color: rgba(15, 23, 42, 0.28);
}

.theme-light .settings-route-grid input:focus,
.theme-light .settings-route-grid select:focus,
.theme-light .settings-auto-fee-cap input:focus {
  border-color: rgba(0, 143, 122, 0.55);
}

.theme-light .settings-section-title-row h4,
.theme-light .settings-region-card-head strong {
  color: var(--text);
}

.theme-light .auto-sell-modal {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-lg);
}

.popout-mode .auto-sell-modal {
  --modal-max-w: 420px;
  --modal-max-h: min(620px, calc(100vh - 24px));
}

.theme-light .auto-sell-modal-header h3,
.theme-light .auto-sell-panel-title {
  color: var(--text);
}

.theme-light .auto-sell-card,
.theme-light .auto-sell-market-cap-settings {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.theme-light .auto-sell-toggle {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.theme-light .auto-sell-panel-title {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-secondary);
}

.theme-light .auto-sell-toggle:has(input:checked),
.theme-light .auto-sell-toggle:has(input:checked) span {
  color: var(--text-inverse);
}

.theme-light .auto-sell-card:has(.auto-sell-toggle input:checked) .auto-sell-panel-title {
  color: var(--text-inverse);
}

.theme-light .auto-sell-tooltip-dot {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
}

.theme-light .auto-sell-market-cap-input,
.theme-light .auto-sell-market-cap-select {
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color-scheme: light;
}

.theme-light .auto-sell-market-cap-select {
  background:
    linear-gradient(180deg, #ffffff, #f8fafc),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236d7b88' d='M1.1.6 5 4.4 8.9.6 10 1.7 5 6 .1 1.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 4px center;
  background-size: auto, 9px 5px;
}

.theme-light .modal.sniper-modal {
  border-color: var(--border);
  background: var(--surface-overlay);
  box-shadow: var(--shadow-lg);
}

.theme-light .sniper-modal-header,
.theme-light .sniper-modal .modal-footer,
.theme-light .sniper-footer-summary {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.98));
}

.theme-light .sniper-card {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 252, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 26px rgba(15, 23, 42, 0.06);
}

.theme-light .sniper-card-icon {
  border-color: rgba(148, 163, 184, 0.2);
  background: color-mix(in srgb, var(--surface-raised) 90%, var(--accent-dim) 10%);
}

.theme-light .sniper-wallet-row,
.theme-light .sniper-wallet-empty,
.theme-light .sniper-modal-notice {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.theme-light .sniper-modal-notice.is-warning {
  border-color: color-mix(in srgb, var(--danger) 24%, transparent);
  background: color-mix(in srgb, var(--danger) 8%, white 92%);
}

.theme-light .fee-split-row,
.theme-light .quote {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.theme-light .fee-split-pill.active,
.theme-light .fee-split-total,
.theme-light .recipient-type-tab.active,
.theme-light .recipient-type-tab.active:hover,
.theme-light .recipient-type-tab.active *,
.theme-light .recipient-type-tab.active:hover *,
.theme-light .recipient-lock-toggle,
.theme-light .recipient-lock-toggle.is-set {
  color: var(--text-inverse);
}

.theme-light .console,
.theme-light input,
.theme-light select,
.theme-light textarea,
.theme-light .image-preview-wrap {
  background: #ffffff;
}

.theme-light .image-layout-toggle {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--text);
}

.theme-light .console {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.theme-light .dev-buy-quick-button {
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 10%, white 90%),
    color-mix(in srgb, var(--accent) 6%, var(--surface-soft) 94%)
  );
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px color-mix(in srgb, var(--accent) 6%, transparent);
}

.theme-light .dev-buy-quick-button:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 15%, white 85%),
    color-mix(in srgb, var(--accent) 10%, #e9f6ea 90%)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 18px color-mix(in srgb, var(--accent) 10%, transparent);
}

.theme-light .dev-buy-quick-button-editing {
  border-color: #d8e0e8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.theme-light .dev-buy-quick-value,
.theme-light .image-library-item-menu-trigger {
  color: var(--text);
}

.theme-light .quick-buy-sol-logo {
  filter: none;
}

.theme-light .image-library-item-menu-trigger {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid var(--border);
}

.theme-light .dev-buy-quick-button-editing {
  color: var(--text);
}

.theme-light .dev-buy-quick-editor-input {
  color: var(--text);
}


html,
body {
  background:
    radial-gradient(circle at top center, var(--page-bg-tint-primary), transparent 36%),
    radial-gradient(circle at top right, var(--page-bg-tint-secondary), transparent 28%),
    var(--page-bg);
}

body {
  color: var(--text);
}

.card,
.boot-overlay-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 96%, white 4%),
    var(--surface)
  );
  box-shadow: var(--shadow-md);
}

input,
select,
textarea,
.console,
.image-preview-wrap {
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--bg) 28%);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

input:hover,
select:hover,
textarea:hover,
.console:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft) 12%);
}

input:focus,
select:focus,
textarea:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.wallet-trigger-button,
.wallet-option-button,
.preset-chip,
.mode-option,
.mode-action-button,
.mode-action-row .auto-sell-trigger,
.launchpad-option,
.auto-sell-trigger-chip,
.image-category-chip,
.button:not(.deploy),
.dev-buy-change-presets,
.dev-buy-quick-action-button {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 96%, white 4%),
    color-mix(in srgb, var(--surface-soft) 94%, black 6%)
  );
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: var(--control-shadow);
  transition:
    transform var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease,
    box-shadow var(--duration-base) ease;
}

.wallet-trigger-button:hover,
.wallet-option-button:hover,
.preset-chip:hover,
.mode-option:hover,
.mode-action-button:hover,
.button.subtle.mode-action-button:hover,
.mode-action-row .auto-sell-trigger:hover,
.button.subtle.auto-sell-trigger:hover,
.launchpad-option:hover,
.auto-sell-trigger-chip:hover:not(:disabled),
.image-category-chip:hover,
.button:not(.deploy):hover,
.dev-buy-change-presets:hover,
.dev-buy-quick-action-button:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--border) 84%, var(--accent-border) 16%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-hover) 88%, var(--surface) 12%),
    color-mix(in srgb, var(--surface-soft) 94%, black 6%)
  );
  color: var(--text);
  box-shadow: var(--control-shadow-hover);
}

.dev-buy-change-presets,
.dev-buy-quick-action-button,
.dev-buy-change-presets:hover,
.dev-buy-quick-action-button:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.preset-chip.active,
.image-category-chip.active,
.auto-sell-trigger-chip.active,
.mode-option:has(input:checked),
.launchpad-option:has(input:checked),
.button.subtle.active,
.mode-action-button.active,
.mode-action-row .auto-sell-trigger.active,
#toggle-output-button.active,
#toggle-reports-button.active {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.preset-chip.active:hover,
.image-category-chip.active:hover,
.auto-sell-trigger-chip.active:hover,
.mode-option:has(input:checked):hover,
.launchpad-option:has(input:checked):hover,
.button.subtle.active:hover,
.mode-action-button.active:hover,
.mode-action-row .auto-sell-trigger.active:hover,
#toggle-output-button.active:hover,
#toggle-reports-button.active:hover {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.mode-option:has(input:checked) .mode-title,
.launchpad-option:has(input:checked) .launchpad-title,
.mode-action-button.active .mode-title,
.mode-action-button.active .fee-split-pill-progress,
.mode-action-row .auto-sell-trigger.active .mode-title {
  color: var(--text-inverse);
}

.mode-option:has(input:checked) .tooltip-dot {
  border-color: color-mix(in srgb, var(--text-inverse) 18%, transparent);
  color: var(--text-inverse);
}

.mode-option:has(input[name="mayhemMode"]:checked),
.mode-option:has(input[name="mode"][value="bonkers"]:checked),
.mode-grid:has(input[name="mayhemMode"]:checked) .mode-option:has(input[name="mode"]:checked) {
  border-color: color-mix(in srgb, var(--danger) 78%, var(--border) 22%);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--danger) 84%, var(--surface) 16%),
      color-mix(in srgb, var(--danger) 72%, black 28%)
    );
  color: var(--danger-contrast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px color-mix(in srgb, var(--danger) 26%, transparent);
}

.mode-option:has(input[name="mayhemMode"]:checked) .mode-title,
.mode-option:has(input[name="mode"][value="bonkers"]:checked) .mode-title,
.mode-grid:has(input[name="mayhemMode"]:checked) .mode-option:has(input[name="mode"]:checked) .mode-title,
.mode-option:has(input[name="mayhemMode"]:checked) .tooltip-dot,
.mode-option:has(input[name="mode"][value="bonkers"]:checked) .tooltip-dot,
.mode-grid:has(input[name="mayhemMode"]:checked) .mode-option:has(input[name="mode"]:checked) .tooltip-dot {
  color: var(--danger-contrast);
}

.mode-option:has(input[name="mayhemMode"]:checked) .tooltip-dot,
.mode-option:has(input[name="mode"][value="bonkers"]:checked) .tooltip-dot,
.mode-grid:has(input[name="mayhemMode"]:checked) .mode-option:has(input[name="mode"]:checked) .tooltip-dot {
  border-color: color-mix(in srgb, var(--danger-contrast) 28%, transparent);
  background: color-mix(in srgb, var(--danger-contrast) 18%, transparent);
}

.button {
  background: var(--surface-gradient);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--control-shadow);
}

.button:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--border) 72%, var(--accent-border) 28%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-hover) 88%, var(--surface) 12%),
    color-mix(in srgb, var(--surface-soft) 94%, black 6%)
  );
  box-shadow: var(--control-shadow-hover);
}

.button.deploy {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
    0 8px 16px color-mix(in srgb, var(--accent) 8%, transparent);
}

.button.deploy:hover {
  transform: none;
  background: color-mix(in srgb, var(--accent) 94%, var(--surface) 6%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 10px 18px color-mix(in srgb, var(--accent) 10%, transparent);
}

.button.deploy:active,
.button:active,
.preset-chip:active,
.launchpad-option:active,
.mode-option:active,
.mode-action-button:active,
.auto-sell-trigger-chip:active,
.image-category-chip:active,
.modal-close:active {
  transform: translateY(0);
}

.field-error,
.modal-warning {
  text-wrap: pretty;
}

.modal-overlay {
  background: var(--overlay-scrim);
  backdrop-filter: blur(14px) saturate(1.02);
  animation: launchdeck-modal-overlay-in var(--duration-base) var(--ease-standard);
}

.modal {
  background: var(--surface-glass);
  border-color: color-mix(in srgb, var(--border) 88%, var(--accent-border) 12%);
  box-shadow: var(--modal-shadow);
  animation: launchdeck-modal-panel-in var(--duration-base) var(--ease-standard);
  transform-origin: center center;
}

.modal-header,
.modal-footer {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-raised) 94%, transparent),
      color-mix(in srgb, var(--surface) 96%, transparent)
    );
}

.settings-modal-header {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%),
    var(--surface-gradient);
}

.settings-modal-body,
.settings-modal-footer {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 97%, transparent),
      color-mix(in srgb, var(--surface-soft) 98%, transparent)
    );
}

.modal-header h3,
.modal-token-name,
.modal-preview-value,
.image-item-menu-button {
  color: var(--text);
}


.reports-terminal {
  background: var(--surface-gradient);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.reports-terminal-output,
.reports-launch-card,
.reports-active-log-entry,
.reports-panel-section,
.reports-metric-card,
.reports-action-card,
.reports-callout,
.benchmarks-popout-body .reports-panel-section {
  background: var(--surface-raised);
  border-color: var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.reports-terminal-output {
  background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%);
}

.reports-panel-section {
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.reports-metric-card {
  background: var(--surface-soft);
}

.reports-terminal-item,
.reports-terminal-tab {
  background: color-mix(in srgb, var(--surface) 76%, var(--bg) 24%);
  border-color: var(--border-subtle);
}

.reports-terminal-item:hover,
.reports-terminal-tab:hover {
  background: color-mix(in srgb, var(--surface-hover) 72%, var(--surface) 28%);
  border-color: var(--border);
}

.reports-active-log-context {
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--surface-soft) 76%, var(--bg) 24%);
}

.reports-metric-card.is-primary {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border-subtle) 66%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 10%, var(--surface-raised) 90%),
    color-mix(in srgb, var(--accent) 4%, var(--surface) 96%)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.reports-metric-card.is-muted {
  background: color-mix(in srgb, var(--surface-soft) 74%, var(--surface) 26%);
  border-color: var(--border-subtle);
}

.reports-state-badge {
  background: color-mix(in srgb, var(--surface-hover) 70%, var(--surface) 30%);
  border-color: var(--border-subtle);
}

.reports-callout.is-bad {
  color: color-mix(in srgb, var(--danger) 72%, var(--text) 28%);
}

.benchmarks-popout-body {
  background: var(--surface-gradient);
}

.theme-light .reports-terminal,
.theme-light .reports-terminal-output,
.theme-light .reports-launch-card,
.theme-light .reports-active-log-entry,
.theme-light .reports-panel-section,
.theme-light .reports-metric-card,
.theme-light .reports-action-card,
.theme-light .reports-callout,
.theme-light .benchmarks-popout-body,
.theme-light .benchmarks-popout-body .reports-panel-section {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.theme-light .reports-terminal-item,
.theme-light .reports-terminal-tab {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border-color: var(--border);
  color: var(--text);
}

.theme-light .reports-terminal-item:hover,
.theme-light .reports-terminal-tab:hover {
  background: linear-gradient(180deg, var(--surface), var(--surface-hover));
  border-color: color-mix(in srgb, var(--border) 84%, var(--accent-border) 16%);
}

.theme-light .reports-active-log-context {
  background: rgba(15, 23, 42, 0.035);
  border-color: rgba(15, 23, 42, 0.08);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.preset-chip:focus-visible,
.button:focus-visible,
.modal-close:focus-visible,
.image-category-chip:focus-visible,
.auto-sell-trigger-chip:focus-visible,
.mode-option:has(input:focus-visible),
.launchpad-option:has(input:focus-visible) {
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent),
    var(--control-shadow-hover);
}

@keyframes launchdeck-modal-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes launchdeck-modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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


@media (max-width: 680px) {
  .modal-overlay {
    padding: 10px;
  }

  .settings-modal {
    --modal-max-w: 520px;
    --modal-max-h: calc(100vh - 20px);
    border-radius: 10px;
  }

  .settings-modal-header {
    padding: 8px 10px 7px;
  }

  .settings-modal-subtitle {
    font-size: 9px;
    line-height: 1.25;
  }

  .settings-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 8px 10px;
    gap: 6px;
  }

  .settings-modal-layout {
    gap: 6px;
  }

  .settings-section,
  .settings-section-modern,
  .settings-preset-toolbar,
  .settings-main-panel {
    padding: 7px 8px;
    border-radius: 9px;
  }

  .settings-main-panel-body,
  .settings-row-group,
  .settings-modal-sidebar {
    gap: 6px;
  }

  .settings-row-group {
    padding-top: 7px;
  }

  .settings-section h4,
  .settings-row-title-line h4,
  .settings-section-title-row h4 {
    font-size: 10px;
  }

  .settings-section-copy,
  .settings-region-meta,
  .settings-sidebar-note {
    font-size: 10px;
    line-height: 1.35;
  }

  .settings-grid,
  .settings-grid-three,
  .settings-grid-four,
  .settings-grid-five,
  .settings-grid-six,
  .settings-route-grid,
  .settings-inline-panel,
  .settings-auto-sell-inline {
    gap: 6px;
  }

  .settings-route-grid label,
  .settings-grid label {
    gap: 4px;
  }

  .settings-route-grid input,
  .settings-route-grid select,
  .settings-grid input,
  .settings-grid select,
  .settings-grid textarea {
    font-size: 9px;
    padding: 4px 5px;
  }

  .settings-fee-input-wrap input {
    padding-left: 27px;
  }

  .settings-preset-chip-bar {
    gap: 4px;
  }

  .settings-preset-chip-bar .preset-chip {
    padding: 6px 8px;
    font-size: 10px;
  }

  .settings-modal-footer {
    padding: 8px 10px 10px;
    gap: 6px;
  }

  .settings-modal-footer .button {
    min-height: 34px;
  }

  .workspace-shell {
    display: block;
  }

  .flow {
    max-width: none;
  }

  .popout-mode .workspace-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--launchdeck-popout-workspace-gap, 12px);
  }

  .popout-mode .flow {
    flex: 0 0 var(--launchdeck-popout-form-width, 532px);
    width: var(--launchdeck-popout-form-width, 532px);
    max-width: var(--launchdeck-popout-form-width, 532px);
  }

  .popout-mode .settings-modal {
    --modal-max-w: var(--launchdeck-settings-modal-popout-width, 500px);
    --modal-max-h: calc(100vh - 24px);
  }

  .popout-mode .settings-modal-body {
    padding: 7px 8px;
  }

  .popout-mode .settings-section,
  .popout-mode .settings-section-modern,
  .popout-mode .settings-preset-toolbar,
  .popout-mode .settings-main-panel {
    padding: 6px 7px;
  }

  .row.two,
  .row.three,
  .launchpad-grid,
  .dev-buy-quick-grid,
  .dev-buy-custom-grid,
  .settings-grid-three,
  .settings-grid-six,
  .settings-inline-panel,
  .settings-auto-sell-inline,
  .image-panel,
  .fee-split-row-main,
  .sniper-wallet-config {
    grid-template-columns: 1fr;
  }

  .settings-grid-four {
    grid-template-columns:
      96px
      86px
      86px
      121px;
  }

  .settings-grid-five {
    grid-template-columns:
      90px
      74px
      74px
      44px
      110px;
  }

  .mode-grid {
    gap: 6px;
  }

  .mode-option {
    max-width: none;
    flex-basis: calc(50% - 6px);
  }

  .settings-route-meta {
    grid-template-columns: minmax(112px, 1fr) 44px minmax(62px, 1fr);
    align-items: end;
    gap: 4px;
  }

  .settings-route-grid > .settings-route-meta {
    grid-column: auto;
  }

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

  .settings-auto-fee-cap {
    width: 100%;
    grid-template-columns: 1fr;
    margin-left: 0;
    max-width: 72px;
  }

  .settings-auto-fee-cap input {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .settings-route-grid {
    gap: 6px;
    align-items: end;
    justify-content: start;
  }

  .settings-route-grid label > span:first-child,
  .settings-route-grid label > .field-label-with-icon {
    font-size: 8px;
  }

  .settings-route-grid input,
  .settings-route-grid select {
    height: 24px;
    min-height: 24px;
    font-size: 9px;
    padding: 4px 5px;
  }

  .settings-route-grid select {
    padding-right: 16px;
  }

  .settings-auto-fee-button {
    min-width: 42px;
    height: 24px;
    min-height: 24px;
    padding: 2px 4px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .settings-auto-fee-cap input {
    height: 24px;
    min-height: 24px;
    font-size: 9px;
    padding: 4px 5px 4px 26px;
  }

  .settings-input-prefix {
    left: 8px;
    width: 14px;
    height: 14px;
  }

  .settings-fee-field .inline-sol-logo {
    width: 11px;
    height: 11px;
  }

  .settings-fee-input-wrap input {
    padding-left: 26px;
    padding-right: 6px;
  }

  .mode-action-row {
    --mode-action-button-width: calc((100% - 6px) / 2);
    flex-wrap: wrap;
    justify-content: center;
  }

  .popout-mode .row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overlay-create-mode .row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popout-mode .row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overlay-create-mode .row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .popout-mode .token-primary-row {
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.82fr);
  }

  .overlay-create-mode .token-primary-row {
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.82fr);
  }

  .popout-mode .launchpad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overlay-create-mode .launchpad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .popout-mode .dev-buy-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overlay-create-mode .dev-buy-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .popout-mode .dev-buy-custom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.08fr;
  }

  .overlay-create-mode .dev-buy-custom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.08fr;
  }

  .popout-mode .mode-option {
    max-width: calc(33.333% - 4px);
    flex-basis: calc(33.333% - 6px);
  }

  .overlay-create-mode .mode-option {
    max-width: calc(33.333% - 4px);
    flex-basis: calc(33.333% - 6px);
  }

  .popout-mode .mode-action-row {
    --mode-action-button-width: calc((100% - 18px) / 4);
    flex-wrap: nowrap;
    justify-content: center;
  }

  .overlay-create-mode .mode-action-row {
    --mode-action-button-width: calc((100% - 18px) / 4);
    flex-wrap: nowrap;
    justify-content: center;
  }

  .launch-surface-token.is-image-compact > .stack {
    grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
  }

  .popout-mode .launch-surface-token.is-image-compact > .stack {
    grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
  }

  .popout-mode .launch-surface-token.is-image-compact .token-primary-row > label:first-child {
    grid-column: 2;
    grid-row: 1;
  }

  .popout-mode .launch-surface-token.is-image-compact .token-primary-row > label:last-child {
    grid-column: 3;
    grid-row: 1;
  }

  .popout-mode .output-head {
    flex-direction: row;
    align-items: center;
  }

  .popout-mode .output-head-actions {
    flex-wrap: nowrap;
  }

  .popout-mode .reports-terminal {
    flex: 0 0 var(--launchdeck-popout-reports-width, 560px);
    width: var(--launchdeck-popout-reports-width, 560px);
    min-width: var(--launchdeck-popout-reports-width, 560px);
    max-width: var(--launchdeck-popout-reports-width, 560px);
    position: sticky;
    top: 12px;
    margin-top: 0;
  }

  .popout-mode .reports-terminal-resize-handle {
    display: block;
  }

  .popout-mode .reports-terminal-body {
    grid-template-columns: minmax(120px, var(--reports-terminal-list-width)) 12px minmax(0, 1fr);
    min-height: 420px;
  }

  .popout-mode .reports-terminal-list,
  .popout-mode .reports-console {
    max-height: 520px;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .launch-surface-platform .section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .launch-surface-platform .section-head h2 {
    min-width: 0;
  }

  .launch-surface-platform .runtime-indicator-row {
    flex: 0 0 auto;
  }

  .output-head {
    flex-direction: column;
    align-items: stretch;
  }

  .output-head-actions {
    flex-wrap: wrap;
  }

  .reports-terminal {
    width: 100%;
    max-width: none;
    min-width: 0;
    position: static;
    margin-top: 12px;
  }

  .reports-terminal-resize-handle {
    display: none;
  }

  .reports-terminal-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .reports-terminal-list,
  .reports-console {
    max-height: 280px;
  }

  .settings-modal-layout {
    grid-template-columns: 1fr;
  }

  .settings-modal-sidebar {
    position: static;
  }

  .settings-preset-toolbar,
  .settings-row-header,
  .settings-section-title-row,
  .settings-region-card-head,
  .sniper-card-head-actions,
  .sniper-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .sniper-card-head-actions {
    justify-content: space-between;
  }

  .sniper-wallet-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sniper-wallet-balance {
    grid-column: 2;
  }

  .sniper-wallet-trigger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sniper-wallet-block-grid {
    display: grid;
    grid-template-columns: repeat(19, minmax(0, 1fr));
  }

  .sniper-trigger-chip {
    width: 100%;
    justify-content: center;
  }

  .sniper-wallet-block-grid .sniper-trigger-chip {
    width: 100%;
  }

  .sniper-wallet-delay {
    grid-template-columns: 1fr;
  }

  .auto-sell-modal {
    --modal-max-w: 420px;
    --modal-max-h: min(540px, calc(100vh - 20px));
  }

  .auto-sell-setting-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auto-sell-trigger-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .auto-sell-inline-settings {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auto-sell-inline-field {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .auto-sell-sniper-wallet-main {
    grid-template-columns: 1fr;
  }

  .auto-sell-sniper-wallet-head-actions {
    justify-content: space-between;
  }

  .auto-sell-sniper-market-grid {
    grid-template-columns: 1fr;
  }
}

.popout-mode .sniper-footer-summary {
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  font-size: 10px;
  line-height: 1.15;
}

.popout-mode .sniper-total-summary {
  font-size: 12px;
  line-height: 1;
}

.popout-mode .sniper-card-head,
.popout-mode .sniper-card-head-actions {
  flex-direction: row;
  align-items: center;
}

.popout-mode .sniper-card-head {
  justify-content: space-between;
  gap: 8px;
}

.popout-mode .sniper-card-title {
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.popout-mode .sniper-card-title > div {
  min-width: 0;
}

.popout-mode .sniper-enable-toggle {
  min-width: 34px;
  min-height: 20px;
  padding: 3px 8px;
  flex: 0 0 auto;
}

.popout-mode .sniper-enable-toggle span {
  font-size: 9px;
  letter-spacing: 0.05em;
}

.popout-mode .sniper-wallets-header {
  justify-content: space-between;
  gap: 8px;
}

.popout-mode .sniper-wallets-summary {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.popout-mode .sniper-wallet-main {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.popout-mode .sniper-wallet-balance {
  grid-column: auto;
}

.popout-mode .sniper-wallet-trigger-grid:not(.sniper-wallet-block-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.popout-mode .modal.sniper-modal,
.overlay-create-mode .modal.sniper-modal {
  --modal-max-w: min(500px, calc(100vw - 24px));
  --modal-max-h: min(530px, calc(100vh - 24px));
}

.popout-mode .modal.sniper-modal.is-expanded,
.overlay-create-mode .modal.sniper-modal.is-expanded {
  --modal-fixed-h: min(530px, calc(100vh - 24px));
}

.popout-mode .sniper-card-head,
.overlay-create-mode .sniper-card-head,
.popout-mode .sniper-card-head-actions,
.overlay-create-mode .sniper-card-head-actions {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}

.popout-mode .sniper-wallet-main,
.overlay-create-mode .sniper-wallet-main {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.popout-mode .sniper-wallet-balance,
.overlay-create-mode .sniper-wallet-balance {
  grid-column: auto;
}

.popout-mode .sniper-wallet-trigger-grid:not(.sniper-wallet-block-grid),
.overlay-create-mode .sniper-wallet-trigger-grid:not(.sniper-wallet-block-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 680px) {
  .settings-preset-toolbar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .settings-preset-copy {
    min-width: 0;
    flex: 1 1 100%;
  }

  .settings-preset-chip-bar {
    display: flex;
    flex-wrap: wrap;
  }

  .preset-edit-toggle,
  .settings-section-pill {
    align-self: flex-start;
  }

  .settings-row-header,
  .settings-section-title-row {
    align-items: flex-start;
  }

  .settings-row-header {
    flex-direction: row;
    justify-content: flex-start;
  }

  .settings-route-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    justify-content: stretch;
  }

  .settings-route-meta {
    grid-template-columns: minmax(112px, 1fr) 46px minmax(75px, 1fr);
    gap: 4px;
    align-items: end;
  }

  .settings-auto-fee-button {
    width: auto;
    min-width: 46px;
    justify-self: center;
    align-self: end;
    justify-content: center;
  }
}

.popout-mode .settings-preset-toolbar {
  flex-wrap: wrap;
  align-items: flex-start;
}

.popout-mode .settings-preset-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.popout-mode .settings-preset-chip-bar {
  display: flex;
  flex-wrap: wrap;
}

.popout-mode .settings-route-grid {
  width: 100%;
  margin: 0;
  justify-content: stretch;
}

.popout-mode .settings-grid-four,
.popout-mode .settings-grid-five {
  grid-template-columns: unset;
}

.popout-mode .settings-grid-four {
  grid-template-columns:
    96px
    86px
    86px
    121px;
}

.popout-mode .settings-grid-five {
  grid-template-columns:
    90px
    74px
    74px
    44px
    110px;
}

.popout-mode .settings-route-grid > .settings-route-meta {
  grid-column: auto;
}

.popout-mode .settings-route-meta {
  grid-template-columns: 44px minmax(62px, 1fr);
  align-items: end;
}

.popout-mode .settings-region-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-deploy-toast-host {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 2147483647;
  width: calc(100vw - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.post-deploy-toast {
  width: max-content;
  max-width: min(92vw, 520px);
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 12px;
  background: #080808;
  color: #fafafa;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font: inherit;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-8px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.post-deploy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.post-deploy-toast.is-clickable {
  cursor: pointer;
}

.post-deploy-toast-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  object-fit: contain;
}

.post-deploy-toast-copy {
  min-width: 0;
  color: #fafafa;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  text-align: left;
}
