:root {
  --bg-deep: #060a08;
  --glass-bg: rgba(18, 28, 22, 0.45);
  --glass-bg-strong: rgba(22, 36, 28, 0.55);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --text: #ecf8ee;
  --text-muted: #9fb5a4;
  --muted: #8aa898;
  --accent: #c8ff5a;
  --accent-soft: rgba(200, 255, 90, 0.18);
  --accent-glow: rgba(200, 255, 90, 0.35);
  --primary: #f5e6a8;
  --primary-mid: #e8d078;
  --primary-deep: #c4a035;
  --danger: #f87171;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --shadow-elevated: 0 24px 48px rgba(0, 0, 0, 0.45), 0 8px 16px rgba(0, 0, 0, 0.25);
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  min-height: 100%;
  line-height: 1.45;
  overflow-x: hidden;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 255, 90, 0.45) rgba(6, 10, 8, 0.52);
}

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

*::-webkit-scrollbar-track {
  background: rgba(6, 10, 8, 0.52);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 10, 0.45);
  background: linear-gradient(
    180deg,
    rgba(200, 255, 90, 0.64) 0%,
    rgba(153, 214, 62, 0.58) 100%
  );
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(212, 255, 122, 0.72) 0%,
    rgba(165, 232, 70, 0.66) 100%
  );
}

/* Soft color wash over the photo background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(200, 255, 90, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 50%, rgba(120, 200, 160, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(80, 140, 100, 0.08), transparent 45%);
}

.app-header,
.workspace,
.app-footer {
  position: relative;
  z-index: 1;
}

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

/* —— Liquid glass panels —— */
.glass-panel {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 42%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-elevated),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.glass-inset {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.2);
}

.app-header {
  padding: 16px clamp(16px, 3vw, 28px) 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 var(--glass-highlight);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand h1 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.brand h1 .script {
  font-family: "Pacifico", cursive;
  font-size: clamp(22px, 2.6vw, 26px);
  color: var(--accent);
  margin-left: 8px;
  text-shadow: 0 0 20px var(--accent-glow);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* —— Main row: shrink-wrapped grid (rails stay next to preview, centered) —— */
.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(12px, 1.8vw, 22px);
  padding-bottom: 28px;
  align-items: stretch;
  box-sizing: border-box;
}

@media (min-width: 1081px) {
  .workspace {
    grid-template-columns: minmax(170px, 192px) minmax(0, 1fr) minmax(208px, 232px);
    column-gap: 8px;
    row-gap: 0;
    width: min(100%, 1180px);
    max-width: calc(100vw - 24px);
    margin-inline: auto;
    align-items: start;
    justify-items: stretch;
    overflow: visible;
  }

  .overlay-rail {
    margin-top: clamp(28px, 6vh, 64px);
  }

  .controls-rail {
    margin-top: clamp(18px, 3.5vh, 38px);
    margin-left: 0;
  }
}

.overlay-rail,
.controls-rail {
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-heading {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rail-sub {
  margin: -4px 0 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.overlay-pills {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overlay-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 20px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  border-radius: calc(var(--radius-md) + 2px);
  border: 1px solid var(--glass-border-soft);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.overlay-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.overlay-pill.is-active {
  border-color: rgba(200, 255, 90, 0.45);
  background: linear-gradient(
    145deg,
    rgba(200, 255, 90, 0.14) 0%,
    rgba(200, 255, 90, 0.04) 100%
  );
  box-shadow:
    0 0 0 1px rgba(200, 255, 90, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(200, 255, 90, 0.08);
}

.overlay-pill__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* —— Center: handheld / console preview —— */
.stage-center {
  padding: clamp(12px, 2vw, 20px) clamp(2px, 0.5vw, 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-width: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stage-console {
  width: min(488px, 100%);
  max-width: 100%;
  padding: 12px 14px 14px;
  border-radius: 22px 22px 26px 26px;
  background: linear-gradient(
    165deg,
    rgba(48, 54, 50, 0.96) 0%,
    rgba(26, 30, 28, 0.98) 42%,
    rgba(14, 16, 15, 1) 100%
  );
  border: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -10px 20px rgba(0, 0, 0, 0.42),
    0 5px 0 rgba(0, 0, 0, 0.22),
    0 16px 36px rgba(0, 0, 0, 0.48);
  position: relative;
}

.stage-console__accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 12px;
}

.stage-console__led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #d4ff7a 0%, #6a9c2e 45%, #1a2218 100%);
  box-shadow:
    0 0 8px rgba(182, 255, 59, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.55);
  opacity: 0.9;
}

.stage-console__speaker {
  width: min(100px, 40%);
  height: 9px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    #060807 0px,
    #060807 2px,
    #1a201e 2px,
    #1a201e 4px
  );
  opacity: 0.88;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65);
}

.stage-console__bezel {
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, #030403 0%, #0c0e0d 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -6px 14px rgba(0, 0, 0, 0.65);
}

.stage-console__bezel canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #060806;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* —— Right controls —— */
.controls-rail .field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls-rail label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.inline {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.token-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.token-input-wrap input {
  width: 100%;
  padding-right: 40px;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.token-stepper {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.token-stepper__btn {
  width: 18px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0;
  font-size: 8px;
  line-height: 1;
  color: rgba(236, 248, 238, 0.88);
  cursor: pointer;
  background: rgba(8, 12, 10, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.token-stepper__btn:hover {
  border-color: rgba(200, 255, 90, 0.45);
  color: rgba(200, 255, 90, 0.95);
}

.token-stepper__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

input:focus {
  border-color: rgba(200, 255, 90, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Custom glass dropdown (Taco background) —— */
.glass-select {
  position: relative;
  width: 100%;
}

.glass-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(200, 255, 90, 0.32);
  background: linear-gradient(
    165deg,
    rgba(10, 16, 12, 0.96) 0%,
    rgba(16, 26, 20, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(200, 255, 90, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.glass-select__trigger:hover {
  border-color: rgba(200, 255, 90, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(200, 255, 90, 0.12),
    0 0 24px rgba(200, 255, 90, 0.12);
}

.glass-select.is-open .glass-select__trigger {
  border-color: rgba(200, 255, 90, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px var(--accent-soft),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.glass-select__trigger:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px var(--accent-soft);
}

.glass-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glass-select__chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  opacity: 0.9;
}

.glass-select.is-open .glass-select__chevron {
  transform: rotate(225deg) translateY(-2px);
}

.glass-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(26, 36, 30, 0.99) 0%,
    rgba(14, 22, 18, 0.99) 45%,
    rgba(10, 14, 12, 1) 100%
  );
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-height: min(240px, 50vh);
  overflow-y: auto;
}

.glass-select.is-open-up .glass-select__list {
  top: auto;
  bottom: calc(100% + 8px);
}

.glass-select__list[hidden] {
  display: none !important;
}

.glass-select__option {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.glass-select__option:hover,
.glass-select__option:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.glass-select__option.is-selected {
  background: linear-gradient(
    135deg,
    rgba(42, 58, 44, 0.98) 0%,
    rgba(28, 44, 32, 0.98) 100%
  );
  border-color: rgba(200, 255, 90, 0.45);
  color: #f6ffec;
  box-shadow:
    inset 0 1px 0 rgba(200, 255, 90, 0.15),
    0 0 0 1px rgba(200, 255, 90, 0.08);
}

.glass-select__option.is-selected:hover {
  background: linear-gradient(
    135deg,
    rgba(52, 72, 52, 0.99) 0%,
    rgba(34, 52, 40, 0.99) 100%
  );
}

.btn {
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #1a1f14;
  border-color: rgba(196, 160, 53, 0.5);
  background: linear-gradient(
    165deg,
    #fff9e0 0%,
    var(--primary) 35%,
    var(--primary-mid) 70%,
    var(--primary-deep) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 16px rgba(232, 208, 120, 0.25);
}

.btn-download {
  width: 100%;
  max-width: min(360px, 100%);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
}

.status {
  margin-top: 10px;
  min-height: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.status.status--hidden {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* —— Footer —— */
.app-footer {
  padding: 0 clamp(16px, 3vw, 28px) 24px;
}

.footer-bar {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.socials {
  display: flex;
  gap: 18px;
}

.social img {
  width: 24px;
  height: 24px;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social:hover img {
  opacity: 1;
  transform: scale(1.06);
}

/* —— Responsive: stack with preview prominence —— */
@media (max-width: 1080px) {
  .app-header {
    padding: 10px 12px 0;
  }

  .header-bar {
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }

  .workspace {
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 14px));
    max-width: 100%;
    gap: 14px;
    padding: 12px 12px max(20px, env(safe-area-inset-bottom, 0px));
    margin-inline: auto;
    overflow-x: clip;
  }

  .stage-center {
    order: -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 8px 12px;
  }

  .stage-console {
    width: min(440px, 100%);
    padding: 10px 11px 11px;
    border-radius: 20px 20px 24px 24px;
  }

  .stage-console__bezel {
    padding: 8px;
  }

  .overlay-rail,
  .controls-rail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 15px 14px;
    border-radius: var(--radius-lg);
  }

  .overlay-rail {
    margin-top: 0;
  }

  .rail-heading {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .rail-sub {
    font-size: 12px;
    margin: 0 0 6px;
  }

  .overlay-pills {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .overlay-pill {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    align-items: flex-start;
    text-align: left;
    -webkit-tap-highlight-color: rgba(200, 255, 90, 0.12);
  }

  .overlay-pill__title {
    width: auto;
    text-align: left;
    font-size: 15px;
  }

  .btn {
    -webkit-tap-highlight-color: rgba(200, 255, 90, 0.12);
  }

  .glass-select__trigger {
    -webkit-tap-highlight-color: rgba(200, 255, 90, 0.12);
    min-height: 46px;
  }

  .controls-rail .field {
    gap: 10px;
  }

  .controls-rail input {
    min-height: 46px;
    padding: 11px 13px;
  }

  .app-footer {
    padding: 0 12px max(16px, env(safe-area-inset-bottom, 0px));
  }

  .footer-bar {
    padding: 12px 15px;
    border-radius: var(--radius-md);
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .brand {
    gap: 10px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand h1 .script {
    font-size: 20px;
    margin-left: 6px;
  }

  .status {
    font-size: 12px;
    padding: 10px 12px;
  }

  .overlay-rail,
  .controls-rail {
    padding: 12px 12px;
    gap: 8px;
  }

  .rail-sub {
    margin: 0 0 4px;
  }

  .overlay-pills {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .overlay-pills::-webkit-scrollbar {
    display: none;
  }

  .overlay-pill {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .overlay-pill__title {
    white-space: nowrap;
    font-size: 14px;
  }

  .inline {
    flex-direction: row;
    gap: 8px;
  }

  .inline .btn {
    width: auto;
    min-width: 84px;
  }

  .token-stepper {
    right: 6px;
  }

  .controls-rail .field {
    gap: 8px;
  }

  .controls-rail input {
    min-height: 42px;
    padding: 10px 12px;
  }

  .btn {
    padding: 10px 14px;
  }

  .glass-select__list {
    max-height: min(200px, 40vh);
  }
}

@media (max-width: 520px) {
  .workspace {
    gap: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .btn-download {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .inline {
    flex-direction: column;
  }

  .inline .btn {
    width: 100%;
  }

  .token-stepper {
    right: 8px;
  }
}
