/* ============================================================
   Softrafing Velocidades — Design System (Light)
   NextCan Tráfico · Engineering UI
   Palette: White surfaces / Slate text / Softrafing Orange
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Colors — Light Theme */
  --bg-primary:    #F3F5F8;
  --bg-secondary:  #FFFFFF;
  --surface:       #FFFFFF;
  --surface-hover: #F1F5F9;
  --surface-alt:   #F8FAFC;
  --border:        #E4E8EE;
  --border-light:  #CBD5E1;

  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;

  --accent:         #F05A1A;
  --accent-hover:   #D94E14;
  --accent-dim:     #FFF1E8;
  --accent-glow:    rgba(240, 90, 26, 0.18);

  --success:        #16A34A;
  --success-dim:    #DCFCE7;
  --warning:        #D97706;
  --warning-dim:    #FEF3C7;
  --danger:         #DC2626;
  --danger-dim:     #FEE2E2;
  --info:           #2563EB;
  --info-dim:       #DBEAFE;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --fs-xs:    0.72rem;
  --fs-sm:    0.82rem;
  --fs-base:  0.9rem;
  --fs-md:    1rem;
  --fs-lg:    1.15rem;
  --fs-xl:    1.4rem;
  --fs-2xl:   1.8rem;
  --fs-3xl:   2.2rem;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  12px;
  --sp-lg:  16px;
  --sp-xl:  24px;
  --sp-2xl: 32px;
  --sp-3xl: 48px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-full: 9999px;

  /* Shadows — Light */
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg:   0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 4px var(--accent-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   150ms var(--ease-out);
  --t-normal: 250ms var(--ease-out);
  --t-slow:   400ms var(--ease-out);

  /* Safe areas */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--accent-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* ── Layout ────────────────────────────────────────────────── */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-xl);
  padding-top: calc(var(--sp-md) + var(--safe-top));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.app-header .logo-mark {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-header .logo-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.app-header .logo-text {
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.app-header .logo-text span {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--fs-xs);
  margin-top: 2px;
  letter-spacing: 0;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-footer {
  padding: var(--sp-md) var(--sp-xl);
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ── Split Layout ──────────────────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  flex: 1;
  overflow: hidden;
}

.split-panel {
  padding: var(--sp-xl);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.split-map {
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
  user-select: none;
  position: relative;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--border-light);
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  background: #FECACA;
}

.btn-success {
  background: var(--success-dim);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.2);
}

.btn-success:hover {
  background: #BBF7D0;
}

.btn-lg {
  padding: var(--sp-lg) var(--sp-2xl);
  font-size: var(--fs-md);
  border-radius: var(--r-lg);
}

.btn-sm {
  padding: 6px var(--sp-md);
  font-size: var(--fs-xs);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-md);
}

.btn-group {
  display: flex;
  gap: var(--sp-sm);
}

.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  transition: all var(--t-normal);
  box-shadow: var(--shadow-sm);
}

.card-hover:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
}

.card-title {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--sp-xs);
}

/* ── Metric Cards ──────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-md);
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  text-align: center;
}

.metric-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-value.accent {
  color: var(--accent);
}

.metric-unit {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-left: var(--sp-xs);
}

/* ── Status Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-success { background: var(--success-dim); color: var(--success); }
.badge-success .badge-dot { background: var(--success); }

.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-warning .badge-dot { background: var(--warning); }

.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-danger .badge-dot { background: var(--danger); }

.badge-info { background: var(--info-dim); color: var(--info); }
.badge-info .badge-dot { background: var(--info); }

.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-accent .badge-dot { background: var(--accent); }

/* ── Tables ────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  padding: var(--sp-md);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: var(--sp-md);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: background var(--t-fast);
}

.data-table tbody tr:hover {
  background: var(--surface-alt);
}

.data-table tbody tr.active,
.data-table tbody tr.highlighted {
  background: var(--accent-dim);
}

/* ── Form Elements ─────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-sm);
}

.form-input {
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition: all var(--t-fast);
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  background: var(--surface-alt);
  border: 2px dashed var(--border-light);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}

.file-input-wrapper:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-input-wrapper .file-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.file-input-wrapper .file-label strong {
  color: var(--accent);
  font-weight: 700;
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-header .section-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}

/* ── Status Bar ────────────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  padding: var(--sp-sm) var(--sp-xl);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  overflow-x: auto;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--text-secondary);
}

.status-item .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-item.active .status-dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-item.warning .status-dot { background: var(--warning); }
.status-item.error .status-dot   { background: var(--danger); }

/* ── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl);
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--t-normal);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-md);
  color: var(--text-primary);
}

.modal-body {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-xl);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: var(--sp-sm);
  justify-content: flex-end;
}

/* ── Toasts ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--sp-xl) + var(--safe-bottom));
  right: var(--sp-xl);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s var(--ease-out);
  max-width: 360px;
}

.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-warning { border-left: 3px solid var(--warning); }
.toast.toast-error   { border-left: 3px solid var(--danger); }

/* ── Utility Classes ───────────────────────────────────────── */
.mono    { font-family: var(--font-mono); }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }

.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent    { color: var(--accent); }
.text-success   { color: var(--success); }
.text-warning   { color: var(--warning); }
.text-danger    { color: var(--danger); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm     { gap: var(--sp-sm); }
.gap-md     { gap: var(--sp-md); }
.gap-lg     { gap: var(--sp-lg); }
.gap-xl     { gap: var(--sp-xl); }

.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }

.w-full { width: 100%; }
.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;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes recording-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50%      { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
}

@keyframes toast-in {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.animate-fade-in  { animation: fade-in 0.4s var(--ease-out); }
.animate-slide-up { animation: slide-up 0.5s var(--ease-out); }

/* ── Recording State ───────────────────────────────────────── */
.recording-indicator {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 6px 14px;
  background: var(--danger-dim);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--danger);
}

.recording-indicator .rec-dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.recording-indicator.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.recording-indicator.active .rec-dot {
  background: var(--accent);
  animation: recording-pulse 1.5s ease-in-out infinite;
}

/* ── Leaflet Overrides ─────────────────────────────────────── */
.leaflet-container {
  background: var(--surface-alt) !important;
  font-family: var(--font-sans) !important;
}

.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--surface-alt) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-tip {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-content {
  font-family: var(--font-mono) !important;
  font-size: var(--fs-xs) !important;
  margin: var(--sp-md) !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--text-secondary) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: var(--accent) !important;
}

/* ── Color Strip for Segments ──────────────────────────────── */
.segment-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3xl);
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--sp-lg);
  opacity: 0.4;
}

.empty-state h3 {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--sp-sm);
}

.empty-state p {
  font-size: var(--fs-sm);
  max-width: 300px;
}

/* ── Legend ────────────────────────────────────────────────── */
.legend {
  position: absolute;
  bottom: var(--sp-xl);
  left: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-lg);
  z-index: 1000;
  font-size: var(--fs-xs);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
}

.legend-title {
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 3px 0;
  cursor: pointer;
  transition: opacity var(--t-fast);
}

.legend-item:hover {
  opacity: 0.7;
}

.legend-line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --sp-xl: 16px;
    --sp-2xl: 22px;
    --sp-3xl: 32px;
  }

  .app-header {
    padding: var(--sp-sm) var(--sp-lg);
    padding-top: calc(var(--sp-sm) + var(--safe-top));
  }

  .app-header .logo-mark {
    height: 34px;
  }

  .app-header .logo-text {
    font-size: var(--fs-sm);
  }

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

  .btn-group {
    flex-wrap: wrap;
  }

  .btn {
    padding: var(--sp-sm) var(--sp-md);
  }

  .toast-container {
    left: var(--sp-sm);
    right: var(--sp-sm);
    bottom: calc(var(--sp-sm) + var(--safe-bottom));
  }

  .toast {
    max-width: none;
  }
}
