:root {
  --bg: #0b1220;
  --panel: rgba(16, 24, 40, 0.92);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

/* Stars/sun behind the map; MapLibre globe leaves outside-disc pixels clear */
#scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.globe-sky #scene-bg {
  opacity: 1;
}
#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent !important;
}
.maplibregl-canvas-container,
.maplibregl-canvas {
  background: transparent !important;
}

.topbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.brand-icon { font-size: 20px; line-height: 1; }
.brand h1 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand .sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.home-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 6px;
}
.home-link:hover { color: var(--accent); background: rgba(56, 189, 248, 0.1); }


.mode-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.mode-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.04em;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active {
  background: var(--accent);
  color: #0b1220;
}
body.theme-light .mode-tab.active { color: #fff; }


.auth-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.auth-box input {
  width: 110px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.auth-box .user-tag {
  font-size: 13px;
  color: var(--ok);
  font-weight: 500;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  font-family: inherit;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #0b1220; }
.btn-primary:hover:not(:disabled) { background: #7dd3fc; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--panel-border);
}
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--muted); }
.btn-danger { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(248, 113, 113, 0.28); }
.btn-sm { padding: 5px 10px; font-size: 11px; }

/* Left bubble dock */
.bubble-dock {
  position: absolute;
  top: 72px;
  left: 12px;
  z-index: 10;
  width: 118px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px 10px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble-dock .dock-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.bubble-dock .btn { width: 100%; }
.bubble-dock .dock-hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.35;
  text-align: center;
}

.panel {
  position: absolute;
  top: 68px;
  right: 12px;
  bottom: 12px;
  width: min(360px, calc(100vw - 24px));
  z-index: 10;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-header h2 { font-size: 14px; font-weight: 600; }
.panel-header .count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 16px;
}

.visit-list { display: flex; flex-direction: column; gap: 8px; }
.visit-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.visit-item:hover, .visit-item.active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}
.visit-item .city {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
}
.visit-flag {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  vertical-align: -4px;
  margin-right: 7px;
  background-repeat: no-repeat;
  /* Stretch full flag into the circle so tricolors / hoist patterns stay recognizable */
  background-size: 100% 100%;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}
.visit-item .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.visit-item .note {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 40px 12px;
}

.form-section {
  border-top: 1px solid var(--panel-border);
  padding: 12px 14px 14px;
  background: rgba(0, 0, 0, 0.18);
}
.form-section h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.form-row label {
  font-size: 11px;
  color: var(--muted);
}
.form-row input, .form-row textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 56px; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
.form-err {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
  margin-top: 6px;
}
.guest-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 14px;
  border-top: 1px solid var(--panel-border);
  line-height: 1.5;
}

.panel-toggle {
  display: none;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: var(--shadow);
  cursor: pointer;
  backdrop-filter: blur(10px);
}


.bubble-dock {
  transition: transform 0.25s ease;
}
.bubble-dock .dock-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble-dock .dock-tab {
  display: none;
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  width: 22px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.bubble-dock.collapsed .dock-tab {
  right: -26px;
  width: 26px;
}
.panel-handle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 8px 12px 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.panel-handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}
.panel-handle-arrow {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.panel.open .panel-handle-arrow,
body.panel-open .panel-handle-arrow {
  transform: rotate(180deg);
}
.panel-toggle {
  display: none;
  align-items: center;
  gap: 6px;
}
.panel-toggle-arrow {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
}
body.panel-open .panel-toggle-arrow {
  transform: rotate(180deg);
}

/* Marker + permanent bubble */

.pin-scale {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(var(--bubble-scale, 1));
  transform-origin: bottom center;
  will-change: transform;
}
.pin-scale.bubble-compact .bubble-meta,
.pin-scale.bubble-compact .bubble-note,
.pin-scale.bubble-country .bubble-meta,
.pin-scale.bubble-country .bubble-note {
  display: none;
}
.pin-scale.bubble-country .visit-bubble {
  min-width: 64px;
  max-width: 120px;
}
.pin-scale.bubble-country .bubble-city {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pin-scale.bubble-compact .visit-bubble {
  min-width: 72px;
  max-width: 110px;
  border-radius: 9px;
}
.pin-scale.bubble-compact .bubble-city {
  font-size: 11px;
  font-weight: 700;
}
.pin-scale.bubble-compact .flag-badge {
  width: 18px;
  height: 18px;
}
.pin-scale.bubble-compact .bubble-inner {
  padding: 5px 7px;
  gap: 6px;
}

.pin-wrap {
  position: relative;
  width: 0;
  height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.visit-bubble {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 112px;
  max-width: 168px;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.18s, transform 0.18s;
}
.visit-bubble:hover {
  transform: translateX(-50%) translateY(-2px);
}
.visit-bubble.hidden-bubble {
  display: none;
}
.visit-bubble .flag-bg {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}
/* Soft light veil so text stays readable on any flag — not a second card */
.visit-bubble .bubble-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.42));
}
.visit-bubble .flag-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95), 0 2px 6px rgba(0,0,0,0.25);
  flex-shrink: 0;
  background-color: #e2e8f0;
}
.visit-bubble .bubble-text { min-width: 0; }
.visit-bubble .bubble-city {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

/* China mode: smaller bubbles, date on one line, no country label (handled in JS) */
body.map-china .visit-bubble {
  min-width: 88px;
  max-width: 132px;
}
body.map-china .visit-bubble .bubble-inner {
  gap: 7px;
  padding: 6px 8px 7px;
}
body.map-china .visit-bubble .flag-badge {
  width: 22px;
  height: 22px;
}
body.map-china .visit-bubble .bubble-city {
  font-size: 12px;
}
body.map-china .visit-bubble .bubble-meta {
  font-size: 10px;
  margin-top: 1px;
  white-space: nowrap;
}
body.map-china .visit-bubble .bubble-note {
  display: none; /* keep china overview clean; note still in list */
}

.visit-bubble .bubble-meta {
  font-size: 11px;
  color: #1e293b;
  margin-top: 2px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
}
.visit-bubble .bubble-meta-date {
  white-space: nowrap;
}
.visit-bubble .bubble-meta-country {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9.5em;
}
.visit-bubble .bubble-note {
  font-size: 11px;
  color: #334155;
  margin-top: 4px;
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}
.visit-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #e2e8f0;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateX(-50%) rotate(45deg);
  z-index: 0;
}

.pin-3d {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 30px;
  cursor: pointer;
  z-index: 1;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.45));
}
.pin-3d .pin-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, var(--pin-light), var(--pin-color) 55%, var(--pin-dark));
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.25), inset 2px 2px 3px rgba(255,255,255,0.35);
}
.pin-3d .pin-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
  z-index: 2;
}
.pin-3d .pin-point {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: linear-gradient(var(--pin-dark), #1e293b);
  border-radius: 0 0 2px 2px;
  opacity: 0.85;
}

.maplibregl-popup-content {
  background: #111827 !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid var(--panel-border);
  font-family: var(--font);
  min-width: 140px;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: #111827 !important;
}
.maplibregl-popup-close-button {
  color: var(--muted) !important;
  font-size: 16px;
}
.popup-title { font-weight: 600; font-size: 13px; }
.popup-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.popup-note { font-size: 12px; margin-top: 6px; line-height: 1.4; }

.maplibregl-ctrl-group {
  background: var(--panel) !important;
  border: 1px solid var(--panel-border) !important;
  box-shadow: var(--shadow) !important;
}
.maplibregl-ctrl-group button {
  background-color: transparent !important;
}
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in,
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out,
.maplibregl-ctrl button.maplibregl-ctrl-compass {
  filter: invert(0.9);
}

.toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }


/* Desktop: collapsible right panel */
@media (min-width: 721px) {
  .panel {
    transition: transform 0.25s ease;
  }
  .panel:not(.open) {
    transform: translateX(calc(100% + 24px));
    pointer-events: none;
  }
  .panel.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .panel-toggle {
    display: flex;
    left: auto;
    right: 12px;
    bottom: auto;
    top: 72px;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
  }
  body.panel-open .panel-toggle {
    right: calc(min(360px, 100vw - 24px) + 24px);
    bottom: auto;
    top: 72px;
  }
  .panel-toggle-arrow {
    display: inline-block;
    transform: rotate(-90deg);
  }
  body.panel-open .panel-toggle-arrow {
    transform: rotate(90deg);
  }
  .panel-handle {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    top: 8px;
    left: 8px;
    right: 8px;
  }
  .brand .sub { display: none; }

  .mode-tabs { order: 3; }
  .mode-tab { padding: 5px 12px; font-size: 11px; }
  .auth-box input { width: 90px; }
  .bubble-dock {
    top: auto;
    bottom: 72px;
    left: 8px;
    width: 108px;
    padding: 10px 8px;
  }
  .bubble-dock .dock-tab { display: block; }
  .bubble-dock.collapsed {
    transform: translateX(calc(-100% + 4px));
  }
  .bubble-dock.collapsed .dock-tab {
    /* peek tab stays visible at left edge */
  }
  .panel-handle { display: flex; }
  .panel-toggle {
    display: flex;
  }
  .panel {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 0;
    width: auto;
    max-height: 48vh;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(calc(100% - 48px));
    transition: transform 0.25s ease;
  }
  .panel.open { transform: translateY(0); max-height: 70vh; }
  .panel-toggle { display: flex; }
  body.panel-open .panel-toggle { bottom: calc(70vh + 8px); }
  .visit-bubble { min-width: 118px; max-width: 168px; }
  .visit-bubble .bubble-city { font-size: 13px; }
}


.owner-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.owner-line select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 3px 6px;
  outline: none;
  max-width: 140px;
}
.owner-line select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


.dock-divider {
  height: 1px;
  background: var(--panel-border);
  margin: 4px 0;
}
.theme-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.theme-btn {
  width: 100%;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}
.theme-btn.active {
  background: var(--accent);
  color: #0b1220;
  border-color: transparent;
  font-weight: 600;
}

/* Light theme */
body.theme-light {
  --bg: #e8eef5;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0284c7;
  --accent-2: #0891b2;
  --danger: #dc2626;
  --ok: #059669;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}
body.theme-light .auth-box .user-tag { color: var(--ok); }
body.theme-light .btn-primary { color: #fff; }
body.theme-light .theme-btn.active { color: #fff; }
body.theme-light .form-row input,
body.theme-light .form-row textarea,
body.theme-light .owner-line select {
  background: rgba(241, 245, 249, 0.95);
  color: var(--text);
}
body.theme-light .visit-item {
  background: rgba(15, 23, 42, 0.03);
}
body.theme-light .visit-item:hover,
body.theme-light .visit-item.active {
  background: rgba(2, 132, 199, 0.08);
}
body.theme-light .form-section {
  background: rgba(241, 245, 249, 0.65);
}
body.theme-light .maplibregl-popup-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12);
}
body.theme-light .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: #ffffff !important;
}
body.theme-light .maplibregl-popup-close-button { color: #64748b !important; }
body.theme-light .popup-meta { color: #64748b; }
body.theme-light .maplibregl-ctrl-group {
  background: var(--panel) !important;
}
body.theme-light .maplibregl-ctrl button.maplibregl-ctrl-zoom-in,
body.theme-light .maplibregl-ctrl button.maplibregl-ctrl-zoom-out,
body.theme-light .maplibregl-ctrl button.maplibregl-ctrl-compass {
  filter: none;
}
body.theme-light .toast {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}


body.theme-dark {
  background: #020617;
}
body.theme-light {
  background: #c7e0f5;
}
