/* ==========================================================================
   FLOWUPSCALE v2.1 — CLEAN PRO STUDIO UI
   Palette: Deep Black #0E0E0E | Surface #151515 | Graphite #1A1A1A
            Dynamic Orange #E3791D | Dynamic Green #004A2A
   Typography: Prompt (UI) + Sora (Numbers/Technical)
   ========================================================================== */
:root {
  --orange: #e3791d;
  --orange-hover: #f2882b;
  --orange-soft: rgba(227, 121, 29, 0.14);
  --orange-border: rgba(227, 121, 29, 0.55);
  --green: #004a2a;
  --green-2: #0c6b43;
  --emerald: #34d399;
  --black: #0e0e0e;
  --surface: #151515;
  --graphite: #1a1a1a;
  --input-bg: #101010;
  --line: rgba(245, 245, 245, 0.09);
  --line-med: rgba(245, 245, 245, 0.16);
  --text: #f5f5f5;
  --muted: #b0b0b0;
  --soft: #6e6e6e;
  --danger: #ef4444;
  --radius-sm: 4px;
  --radius-md: 8px;
}

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

[hidden] {
  display: none !important;
}

html, body {
  min-height: 100%;
  background-color: var(--black);
  color: var(--text);
  font-family: "Prompt", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(circle at 12% 4%, rgba(0, 74, 42, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(227, 121, 29, 0.10) 0%, transparent 34%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.top-signal-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--orange) 50%, var(--green) 100%);
}

.app-container {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 12px 14px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .app-container {
    padding: 16px 24px 22px;
    gap: 12px;
  }
}

/* ==================== COMPACT PRO TOPBAR (54px) ==================== */
.app-topbar {
  min-height: 54px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

@media (max-width: 780px) {
  .app-topbar {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .segmented-tabs {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.app-name {
  font-family: "Sora", "Prompt", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.app-name span {
  color: var(--orange);
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
  justify-self: center;
}

.seg-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  height: 32px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  white-space: nowrap;
}

.seg-tab:hover {
  color: var(--text);
}

.seg-tab.active {
  background: #23170e;
  color: var(--text);
  border-color: var(--orange-border);
  font-weight: 600;
}

.seg-count {
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--orange);
  color: #0e0e0e;
  line-height: 1.3;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.gpu-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 30px;
  padding: 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.gpu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 7px var(--emerald);
  flex-shrink: 0;
}

.gpu-dot.fallback {
  background: #fbbf24;
  box-shadow: 0 0 7px #fbbf24;
}

.eyebrow {
  font-family: "Sora", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==================== SETTINGS BAR ==================== */
.panel-section {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.panel-section.active {
  display: flex;
}

.settings-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.95fr 0.75fr;
  gap: 10px;
}

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

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 0.72rem;
  color: var(--soft);
  font-weight: 500;
}

.dw-select, .dw-input {
  height: 34px;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid #2e2e2e;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.16s ease;
}

.dw-input {
  font-family: "Sora", "Prompt", sans-serif;
  font-weight: 600;
}

.dw-select:hover, .dw-select:focus,
.dw-input:hover, .dw-input:focus {
  border-color: var(--orange);
}

.video-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.vid-ram-hint {
  font-family: "Sora", "Prompt", sans-serif;
  font-size: 0.73rem;
  color: var(--muted);
  margin-left: auto;
}

.vid-seek-slider {
  width: 130px;
  accent-color: var(--orange);
  cursor: pointer;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #323232;
  background: var(--graphite);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-compact {
  height: 30px;
  padding: 0 11px;
  font-size: 0.78rem;
}

.btn-xs {
  height: 26px;
  padding: 0 9px;
  font-size: 0.73rem;
}

.btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.btn-outline-orange {
  background: rgba(227, 121, 29, 0.12);
  border-color: var(--orange-border);
  color: var(--orange);
  font-weight: 600;
}

.btn-outline-orange:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

.btn-danger-outline {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.btn-danger-outline:hover:not(:disabled) {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.16);
  color: #ffffff;
}

.btn-pulse {
  box-shadow: 0 0 0 1px var(--orange), 0 0 14px rgba(227, 121, 29, 0.35);
}

/* ==================== WORKSPACE & STAGE (FULL-WIDTH PREVIEW + BOTTOM QUEUE) ==================== */
.workspace-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-card, .queue-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-topbar {
  background: var(--graphite);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-actions, .stage-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.roi-size-switch {
  display: inline-flex;
  background: var(--input-bg);
  border: 1px solid #2d2d2d;
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.roi-sz-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  height: 24px;
  padding: 0 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.roi-sz-btn:hover {
  color: var(--text);
}

.roi-sz-btn.active {
  background: #2b1d12;
  color: var(--orange);
}

.compare-viewport {
  position: relative;
  min-height: 340px;
  max-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #101010;
  background-image:
    linear-gradient(45deg, #171717 25%, transparent 25%),
    linear-gradient(-45deg, #171717 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #171717 75%),
    linear-gradient(-45deg, transparent 75%, #171717 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  overflow: hidden;
  user-select: none;
}

.empty-dropzone {
  width: calc(100% - 28px);
  min-height: 310px;
  margin: 14px;
  border: 1.5px dashed rgba(227, 121, 29, 0.38);
  border-radius: var(--radius-md);
  background: rgba(14, 14, 14, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 18px;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.empty-dropzone:hover, .empty-dropzone.drag-over {
  border-color: var(--orange);
  background: rgba(227, 121, 29, 0.08);
}

.drop-icon {
  width: 44px;
  height: 44px;
  opacity: 0.9;
}

.drop-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.drop-hint {
  font-size: 0.76rem;
  color: var(--soft);
}

/* ==================== STATE A: ROI REGION SELECTOR ==================== */
.roi-select-wrap {
  width: 100%;
  min-height: 340px;
  max-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px;
}

.roi-stage-inner {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-source-canvas {
  display: block;
  max-width: 100%;
  max-height: 432px;
  width: auto;
  height: auto;
  pointer-events: none;
}

.roi-selector-box {
  position: absolute;
  left: 35%;
  top: 35%;
  width: 24%;
  height: 24%;
  border: 1.5px dashed rgba(227, 121, 29, 0.95);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.44);
  cursor: grab;
  z-index: 5;
}

.roi-selector-box:active {
  cursor: grabbing;
}

.roi-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--orange);
  border-style: solid;
  pointer-events: none;
}

.roi-corner.tl { top: -2px; left: -2px; border-width: 2.5px 0 0 2.5px; }
.roi-corner.tr { top: -2px; right: -2px; border-width: 2.5px 2.5px 0 0; }
.roi-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 2.5px 2.5px; }
.roi-corner.br { bottom: -2px; right: -2px; border-width: 0 2.5px 2.5px 0; }

.roi-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.roi-crosshair::before,
.roi-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(227, 121, 29, 0.85);
}

.roi-crosshair::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.roi-crosshair::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.roi-box-badge {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid var(--orange-border);
  color: var(--orange);
  font-family: "Sora", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.2;
}

.roi-hint-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 14, 14, 0.86);
  border: 1px solid var(--line-med);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 99px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 8;
}

/* ==================== STATE B: PIXEL-LOCKED SPLIT COMPARE ==================== */
.compare-scroll-box {
  width: 100%;
  min-height: 340px;
  max-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 0;
}

.compare-scroll-box.zoom-2x {
  display: block;
}

.compare-stage-inner {
  position: relative;
  display: inline-block;
  line-height: 0;
  touch-action: none;
  cursor: ew-resize;
  vertical-align: top;
}

.compare-layer-canvas {
  display: block;
  max-width: 100%;
  max-height: 454px;
  width: auto;
  height: auto;
}

.compare-scroll-box.zoom-2x .compare-layer-canvas {
  max-width: none;
  max-height: none;
}

.compare-before-layer {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  clip-path: inset(0 calc(100% - var(--split-pct, 50%)) 0 0);
  pointer-events: none;
}

.split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pct, 50%);
  transform: translateX(-50%);
  width: 2px;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.split-handle {
  position: absolute;
  top: 50%;
  left: var(--split-pct, 50%);
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #0e0e0e;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.compare-tag {
  position: absolute;
  top: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: "Sora", "Prompt", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  background: rgba(14, 14, 14, 0.84);
  border: 1px solid var(--line-med);
  color: var(--text);
  pointer-events: none;
  line-height: 1.3;
}

.compare-tag.left { left: 10px; }
.compare-tag.right { right: 10px; border-color: var(--orange-border); color: var(--orange); }

/* ==================== PROGRESS BAR ==================== */
.ai-progress-panel {
  background: #121212;
  border-top: 1px solid var(--line);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--muted);
}

.progress-pct {
  font-family: "Sora", sans-serif;
  color: var(--orange);
  font-weight: 700;
}

.ai-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: #222222;
  overflow: hidden;
}

.ai-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-2), var(--orange));
  transition: width 0.14s ease;
}

/* ==================== FULL-WIDTH BOTTOM QUEUE ==================== */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  min-height: 76px;
  max-height: 250px;
  overflow-y: auto;
}

.queue-empty {
  margin: auto;
  padding: 16px 14px;
  text-align: center;
  color: var(--soft);
  font-size: 0.8rem;
}

.queue-item {
  background: var(--graphite);
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(180px, 2.2fr) minmax(160px, 1.35fr) minmax(110px, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

@media (max-width: 720px) {
  .queue-item {
    grid-template-columns: 1fr auto;
    row-gap: 4px;
  }
  .queue-item .q-meta,
  .queue-item .q-status {
    grid-column: 1 / 2;
  }
  .queue-item .q-item-actions {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
  }
}

.queue-item:hover, .queue-item.selected {
  border-color: var(--orange);
}

.q-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-meta {
  font-family: "Sora", "Prompt", sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.q-meta strong {
  color: var(--orange);
}

.q-status {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.q-status.pending { color: var(--soft); }
.q-status.running { color: var(--orange); }
.q-status.done { color: var(--emerald); }
.q-status.error { color: #f87171; }

.q-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-remove-item {
  width: 26px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--soft);
  font-size: 0.76rem;
}

.btn-remove-item:hover:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.queue-footer-actions {
  border-top: 1px solid var(--line);
  padding: 9px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* ==================== DOWNLOAD TAB ==================== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-card.featured {
  border-color: var(--orange);
}

.dl-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: "Sora", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-border);
}

.dl-tag-green {
  background: rgba(12, 107, 67, 0.2);
  border-color: #0c6b43;
  color: var(--emerald);
}

.dl-heading {
  font-size: 1.08rem;
  font-weight: 700;
}

.dl-desc {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.55;
}

.dl-list {
  font-size: 0.79rem;
  color: var(--text);
  padding-left: 18px;
  line-height: 1.7;
}

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

.dl-actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dl-size {
  font-family: "Sora", sans-serif;
  font-size: 0.73rem;
  color: var(--soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.compare-table th, .compare-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  color: var(--muted);
  font-weight: 600;
  background: var(--graphite);
}

/* ==================== FOOTER ==================== */
.brand-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.74rem;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.footer-mini-logo {
  width: 18px;
  height: 18px;
}

.wordmark {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.wordmark span {
  color: var(--orange);
}

.dw-link {
  font-family: "Sora", "Prompt", sans-serif;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}

.dw-link:hover {
  text-decoration: underline;
}

.credit-muted {
  color: var(--soft);
  font-family: "Sora", "Prompt", sans-serif;
}

.credit-muted a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.credit-muted a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ==================== MODAL & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: #1c1c1c;
  border: 1px solid var(--orange);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 300;
  max-width: min(92vw, 520px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
