/* ============================================================
   Flex Simulator mockup — visual language lifted from the existing
   Next.js app (src/app/globals.css + components.css).
   Bootstrap 5.3 is used for grid/offcanvas/modal mechanics only;
   we override the defaults heavily so the look matches Flex.
   ============================================================ */

:root {
  /* lifted verbatim from src/app/globals.css */
  --background: #FAFAFA;
  --foreground: #ffffff;
  --primary: #262626;
  --secondary: #616366;
  --tertiary: #303233;
  --heading: #222222;
  --neutral-500: #737373;
  --surface-invert: #181919;
  --blue: #1690d0;
  --text-blue: #1273a6;
  --blue-secondary: #a2d3ec;
  --blue-light: #e8f4fa;
  --grid-gray: #E5E7EB;
  --light-gray: #bdbec0;
  --light-gray-bg: #f6f6f7;
  --button-secondary: #EAEAEB;
  --button-hover-minimal: rgba(0, 0, 0, 0.10);

  /* Bootstrap variable overrides so default Bootstrap components inherit the look */
  --bs-body-bg: var(--background);
  --bs-body-color: var(--primary);
  --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-pill: 9999px;
  --bs-primary: var(--blue);
  --bs-primary-rgb: 22, 144, 208;
  --bs-link-color: var(--text-blue);
  --bs-link-hover-color: var(--blue);
  --bs-border-color: var(--light-gray);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sharp corners everywhere */
.btn, .card, .form-control, .form-select, .input-group-text,
.dropdown-menu, .modal-content, .offcanvas, .alert, .badge,
.list-group-item, .progress, .toast, .tooltip-inner, .popover {
  border-radius: 0 !important;
}

/* Typography */
h1, .h1 { font-size: 2.25rem; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; }
h2, .h2 { font-size: 1.5rem; font-weight: 600; color: var(--heading); }
h3, .h3 { font-size: 1.25rem; font-weight: 600; color: var(--heading); }
h4, .h4 { font-size: 1rem;    font-weight: 600; color: var(--heading); }
.text-secondary { color: var(--secondary) !important; }
.text-tertiary  { color: var(--tertiary); }
.text-primary-fx { color: var(--primary); }
.text-blue { color: var(--blue) !important; }
.text-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--secondary);
}

/* Buttons — flat, sharp, single accent */
.btn {
  font-weight: 600;
  border-radius: 0;
  padding: 0.625rem 1.25rem;
  border-width: 1px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-blue {
  background: var(--blue);
  color: var(--foreground);
  border: 1px solid var(--blue);
}
.btn-blue:hover, .btn-blue:focus {
  background: var(--text-blue);
  border-color: var(--text-blue);
  color: var(--foreground);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--foreground);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--button-hover-minimal); }

/* Outlined card pattern (matches the existing onboarding cards) */
.fx-card {
  background: var(--foreground);
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  padding: 1.5rem;
  transition: outline-color 200ms ease;
}
.fx-card.focusable:hover,
.fx-card.focusable.active {
  outline-color: var(--blue);
  cursor: pointer;
}

/* Form fields — line input pattern from components.css (.big-line-input) */
.fx-input-line {
  border: none;
  border-bottom: 1px solid var(--light-gray);
  background: transparent;
  padding: 0.5rem 0;
  width: 100%;
  font-size: 1rem;
  color: var(--primary);
  outline: none;
}
.fx-input-line:hover  { border-bottom-color: var(--blue); }
.fx-input-line:focus  { border-bottom: 2px solid var(--blue); padding-bottom: calc(0.5rem - 1px); }
.fx-input-line::placeholder { color: var(--secondary); }

.fx-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

/* Chip / popover-chip pattern from components.css */
.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--button-secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease;
}
.fx-chip:hover  { background: #dfdfe0; }
.fx-chip.active { background: var(--blue); color: var(--foreground); }

/* ============================================================
   App header — left logo, centered step indicator, right utilities
   Modeled on the existing sidebar+toolbar layout but flattened
   into a single top bar for the wizard flow.
   ============================================================ */
.fx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--foreground);
  border-bottom: 1px solid var(--light-gray);
  height: 60px;
}
.fx-header__logo img { height: 28px; display: block; }
.fx-header__right { display: flex; align-items: center; gap: 0.5rem; }

/* Step indicator — three steps Info → Build → Sim */
.fx-stepper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.fx-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.fx-step__num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-gray);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
}
.fx-step.active { color: var(--primary); }
.fx-step.active .fx-step__num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--foreground);
}
.fx-step.done .fx-step__num {
  background: var(--foreground);
  border-color: var(--blue);
  color: var(--blue);
}
.fx-step.done { color: var(--primary); cursor: pointer; }
.fx-step.upcoming { opacity: 0.55; pointer-events: none; }
.fx-step__divider {
  width: 24px;
  height: 1px;
  background: var(--light-gray);
}

/* Page-level shell */
.fx-page {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}
.fx-page__body { flex: 1; }
.fx-page__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--light-gray);
  background: var(--foreground);
}

/* Hero split (Step 1 — Fleet vs Public) */
.fx-hero {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px) 1fr;
  min-height: calc(100vh - 60px - 80px);
  background: var(--foreground);
}
.fx-hero__panel {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.fx-hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: opacity 600ms ease;
}
.fx-hero__panel.focused::after { opacity: 0; }
.fx-hero__panel-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.fx-hero__middle {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  background: var(--foreground);
}
.fx-hero__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.15;
}
.fx-hero__subtitle {
  color: var(--secondary);
  font-size: 0.95rem;
}
.fx-hero__choice {
  position: relative;
  padding: 1.5rem;
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: outline-color 200ms ease;
}
.fx-hero__choice:hover, .fx-hero__choice.active { outline-color: var(--blue); }
.fx-hero__choice-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tertiary);
}
.fx-hero__choice-desc {
  font-size: 0.875rem;
  color: var(--secondary);
}
.fx-hero__bolt {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #31beef;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.fx-hero__choice:hover .fx-hero__bolt,
.fx-hero__choice.active .fx-hero__bolt { opacity: 1; }
.fx-hero__connector {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--light-gray);
  transition: background 200ms ease;
}
.fx-hero__choice:hover .fx-hero__connector,
.fx-hero__choice.active .fx-hero__connector { background: var(--blue); }
.fx-hero__connector.left  { left: -40px; }
.fx-hero__connector.right { right: -40px; }

/* Form sections (Step 1 body when a choice has been made) */
.fx-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.fx-section + .fx-section { padding-top: 0; }
.fx-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.25rem;
}
.fx-section__hint {
  color: var(--secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.fx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
@media (max-width: 720px) {
  .fx-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   Build screen — 1:1 with the existing Next.js app
   Full-bleed canvas, floating top header, 338px left slide-in panel,
   CountInput +/− steppers in the Configuration panel.
   ============================================================ */

/* The whole build area is positioned relative to the viewport,
   not stacked under the header — header floats on top. */
.fx-build-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--foreground);
}

/* Floating top header — mirrors src/modules/layout/header */
.fx-bheader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 10;
  padding: 1.5rem;       /* p-6 in the original */
  pointer-events: none;  /* allow canvas click-through outside the inner card */
}
.fx-bheader__inner {
  background: var(--foreground);
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,0.06), 0 4px 6px 1px rgba(0,0,0,0.10);
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  pointer-events: auto;
}
.fx-bheader__left {
  display: flex; align-items: center; gap: 0.5rem; height: 100%;
}
.fx-bheader__right {
  display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 1rem; height: 100%;
}
.fx-bheader__logo {
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.fx-bheader__logo img { height: 40px; width: auto; display: block; }

.fx-sep {
  width: 1px; height: 40px; background: var(--light-gray); display: inline-block;
}

/* Nav items (Requirements / Configuration / Insights) */
.fx-bnav {
  display: flex; align-items: center; gap: 0.75rem;
}
.fx-bnav__item {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
}
.fx-bnav__item .material-symbols-outlined { font-size: 22px; }
.fx-bnav__item:hover { color: var(--blue); }
.fx-bnav__item.active { color: var(--blue); }
.fx-bnav__item.active::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--blue); margin-top: 2px;
}

/* Toolbar sections (UndoRedo / Zoom / Labels / Logo) */
.fx-btoolbar {
  display: flex; align-items: center; height: 100%;
}
.fx-btoolbar__section {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0 0.75rem;
  height: 100%;
}
.fx-btoolbar__section + .fx-btoolbar__section {
  border-left: 1px solid var(--grid-gray);
}
.fx-btoolbar__btn {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 0.375rem 0.5rem;
  background: transparent; border: 0;
  color: var(--primary); cursor: pointer;
  font-size: 0.625rem; font-weight: 600;
}
.fx-btoolbar__btn .material-symbols-outlined { font-size: 22px; }
.fx-btoolbar__btn:hover { color: var(--blue); }
.fx-btoolbar__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fx-btoolbar__btn:disabled:hover { color: var(--primary); }

/* Big "Run Simulation" pill (top-right) */
.fx-run-sim {
  background: var(--blue);
  color: var(--foreground);
  border: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
  height: 40px;
}
.fx-run-sim:hover { background: var(--text-blue); }
.fx-run-sim .material-symbols-outlined { font-size: 18px; }

/* Action icon buttons (Save / Share / Download / Menu) */
.fx-bactions { display: flex; align-items: center; gap: 0.25rem; }
.fx-baction {
  width: 40px; height: 40px;
  border-radius: 9999px;
  border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); cursor: pointer;
}
.fx-baction:hover { background: var(--button-hover-minimal); }
.fx-baction .material-symbols-outlined { font-size: 22px; }

/* Step indicator floating at the bottom-left of the screen
   (replaces the previous top-bar stepper for the wizard since the top is now
   the existing app's header). */
.fx-floating-stepper {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 9;
  background: var(--foreground);
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,0.06), 0 4px 6px 1px rgba(0,0,0,0.10);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 1.25rem;
}

/* Left slide-in panel — mirrors src/modules/layout/left-panel */
.fx-bpanel {
  position: fixed;
  top: 7rem;       /* top-28 in the original */
  bottom: 1.5rem;  /* bottom-6 */
  width: 338px;
  z-index: 15;
  background: var(--foreground);
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,0.06), 0 4px 6px 1px rgba(0,0,0,0.10);
  display: flex; flex-direction: column;
  transition: left 300ms ease-in-out;
  left: -338px;
}
.fx-bpanel.open { left: 1.5rem; }

.fx-bpanel__head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--button-secondary);
  display: flex; align-items: center; gap: 1rem;
}
.fx-bpanel__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--heading);
  line-height: 1.3;
}
.fx-bpanel__close {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: var(--button-secondary);
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.fx-bpanel__close:hover { background: var(--light-gray); }
.fx-bpanel__close .material-symbols-outlined { font-size: 16px; }
.fx-bpanel__body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Configuration / Requirements section blocks inside the panel */
.fx-bsection {
  padding: 1.5rem;
  background: var(--foreground);
  border-bottom: 1px solid #d4d4d4; /* neutral-300 in the original */
}
.fx-bsection:last-child { border-bottom: 0; }
.fx-bsection__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.fx-bsection__title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.4;
}
.fx-bsection__hint {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: var(--button-secondary);
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: help;
}

/* CountInput row — label + 120x48 stepper */
.fx-count-row {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0;
}
.fx-count-row__label {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tertiary);
  line-height: 1.4;
}
.fx-count {
  width: 120px; height: 48px;
  border-bottom: 1px solid var(--light-gray);
  display: flex; align-items: center; gap: 0.25rem;
  transition: border-color 120ms ease;
}
.fx-count:hover { border-bottom-color: var(--blue); }
.fx-count__btn {
  width: 28px; height: 28px;
  background: var(--button-secondary);
  border: 0;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}
.fx-count__btn:hover:not(:disabled) { background: var(--blue); color: var(--foreground); }
.fx-count__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fx-count__value {
  flex: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tertiary);
  line-height: 1.3;
}

.fx-revert-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  background: var(--button-secondary);
  border: 0;
  color: var(--tertiary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.fx-revert-btn:hover { background: var(--light-gray); }

/* Canvas takes the whole viewport */
.fx-bcanvas-wrap {
  position: absolute;
  inset: 0;
}
.fx-bcanvas-wrap canvas { display: block; }
.fx-bcanvas-grid {
  position: absolute;
  inset: 0;
  /* Isometric ground tiles: the lines run along the scene's two ground axes (±30° from
     horizontal — the projection the canvas sprites use; the parking-row step (-77, 45)
     and back-row step (280, 160) are both ~30° slopes). */
  background-image:
    repeating-linear-gradient(30deg, var(--grid-gray) 0, var(--grid-gray) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-30deg, var(--grid-gray) 0, var(--grid-gray) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
  opacity: 0.6;
}

/* Insights cards inside the left panel */
.fx-insight-card {
  padding: 1rem;
  border: 1px solid var(--light-gray);
  margin-bottom: 0.75rem;
}
.fx-insight-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.fx-insight-card__body { font-size: 0.8125rem; color: var(--secondary); }

/* ============================================================
   Sim page — stat cards, chart, insights
   ============================================================ */
.fx-sim {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
}
.fx-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) { .fx-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.fx-stat {
  background: var(--foreground);
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  padding: 1.25rem;
}
.fx-stat__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.fx-stat__value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.1;
}
.fx-stat__unit {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 400;
  margin-left: 0.25rem;
}
.fx-stat__sub {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--secondary);
}
.fx-stat__sub.up { color: #1c8a3d; }
.fx-stat__sub.down { color: #b21f2d; }

.fx-chart-card {
  background: var(--foreground);
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  padding: 1.5rem;
}
.fx-chart-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.fx-chart-card__title { font-size: 1.125rem; font-weight: 600; color: var(--heading); }
.fx-chart-card__legend { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--secondary); }
.fx-legend-dot {
  display: inline-block; width: 10px; height: 10px; margin-right: 0.375rem;
  vertical-align: middle;
}

.fx-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) { .fx-insights { grid-template-columns: 1fr; } }
.fx-insight {
  background: var(--foreground);
  outline: 1px solid var(--light-gray);
  outline-offset: -1px;
  padding: 1.25rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.fx-insight__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-light);
  color: var(--blue);
  flex-shrink: 0;
}
.fx-insight__icon .material-symbols-outlined { font-size: 22px; }
.fx-insight__title { font-weight: 600; color: var(--heading); margin-bottom: 0.25rem; }
.fx-insight__body { font-size: 0.875rem; color: var(--secondary); }

/* Read-only banner for /share */
.fx-share-banner {
  background: var(--blue-light);
  border-bottom: 1px solid var(--blue-secondary);
  color: var(--text-blue);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.fx-share-banner .material-symbols-outlined { font-size: 20px; }

/* Utility: hide elements completely (for read-only mode) */
.fx-hide { display: none !important; }

/* Toast / gnotify */
.fx-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  background: var(--surface-invert);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1080;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.fx-toast.show { opacity: 1; }
.fx-toast.success { border-left: 3px solid #31beef; }
.fx-toast.error   { border-left: 3px solid #c0392b; }
