:root {
  /* Netflix-inspired minimalist dark palette */
  --bg: #141414;
  --surface: #181818;
  --surface-elevated: #222222;
  --border: #2f2f2f;
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --accent: #e50914;
  --accent-hover: #b20710;
  --accent-soft: rgba(229, 9, 20, 0.14);
  --match-green: #46d369;
  --amber: #f59e0b;
  --cyan: #e5e5e5;
  --success: #46d369;
  --danger: #e50914;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.96) 0%, rgba(20, 20, 20, 0.88) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-select {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.76rem;
  font-family: inherit;
  cursor: pointer;
}

.status-pill {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  white-space: nowrap;
}

.status-pill.status-pro {
  border-color: rgba(70, 211, 105, 0.5);
  background: rgba(70, 211, 105, 0.12);
  color: var(--match-green);
}

/* AdSense Containers — visually separated from clickable map controls and buttons */
.ad-zone {
  margin: 20px 0;
  padding: 6px 0;
}

.ad-frame {
  margin: 0 auto;
  background: #101010;
  border: 1px dashed #333333;
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ad-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777777;
}

.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
}

.ad-sidebar {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
}

.ad-placeholder-body {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: #777777;
  background: #141414;
  border-radius: 4px;
  padding: 12px;
}

.ad-zone-sidebar {
  margin: 22px 0;
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-bottom: 44px;
  align-items: start;
}

.workspace-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-heading h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 68ch;
}

.meta-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

/* Forms & Controls */
.presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.preset-btn,
.chip-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.preset-btn:hover,
.chip-btn:hover,
.chip-btn.active {
  border-color: #ffffff;
  background: #2c2c2c;
  color: #ffffff;
}

.preset-btn-free {
  border-color: rgba(70, 211, 105, 0.55);
  background: rgba(70, 211, 105, 0.14);
  color: var(--match-green);
  font-weight: 700;
}

.preset-btn-free:hover {
  border-color: var(--match-green);
  background: rgba(70, 211, 105, 0.24);
  color: #ffffff;
}

.oobe-free-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(70, 211, 105, 0.18);
  color: var(--match-green);
  margin-bottom: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #0e0e0e;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}

.field-hint {
  font-size: 0.7rem;
  color: var(--match-green);
  line-height: 1.25;
}

.form-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.turnstile-box {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.turnstile-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #101010;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

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

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.btn-full {
  width: 100%;
  margin-top: 12px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #2b2b2b;
  border-color: #3d3d3d;
  color: #ffffff;
}

.btn-secondary:hover:not(:disabled) {
  background: #383838;
}

.btn-pro {
  background: #ffffff;
  color: #141414;
}

.btn-pro:hover:not(:disabled) {
  background: #e2e2e2;
}

/* Map Card */
.map-card {
  padding: 14px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.toggle-control,
.range-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.range-control input {
  width: 72px;
  accent-color: var(--accent);
}

/* Explicit height on #map so it never collapses to 0px */
#map,
.map-viewport {
  width: 100%;
  min-height: 440px;
  height: 480px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0a;
}

/* NASA GIBS VIIRS Black Marble blend mode */
.viirs-tile-layer {
  mix-blend-mode: screen;
}

.map-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-comp {
  background: #f59e0b;
  border: 1.5px solid #fef08a;
}

.dot-anchor {
  background: #0284c7;
  border: 1.5px solid #e0f2fe;
}

.dot-traffic {
  background: #e50914;
  border: 1.5px solid #fecaca;
}

.map-caption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Verdict Banner & Recommendations */
.verdict-banner {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: #121212;
}

.verdict-blue_ocean {
  border-left: 4px solid var(--match-green);
}

.verdict-crowded_hot {
  border-left: 4px solid var(--amber);
}

.verdict-emerging {
  border-left: 4px solid #ffffff;
}

.verdict-quiet {
  border-left: 4px solid #666666;
}

.verdict-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.verdict-top strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.verdict-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.verdict-summary {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.errc-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.errc-grid[hidden] {
  display: none;
}

.errc-cell {
  background: #181818;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
}

.errc-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--match-green);
  margin-bottom: 4px;
}

.errc-cell p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kpi-box,
.recommend-item {
  will-change: transform;
}

@media (max-width: 640px) {
  .errc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--match-green);
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.recommend-wrap,
.classification-wrap,
.poi-list-wrap {
  margin-top: 20px;
}

.classification-wrap h3,
.recommend-wrap h3,
.poi-list-wrap h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 0.96rem;
  font-weight: 700;
}

.classification-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.class-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #121212;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.class-pill:hover,
.class-pill.active {
  border-color: #ffffff;
  background: #282828;
}

.class-pill.is-gap {
  border-color: rgba(70, 211, 105, 0.45);
}

.class-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: #222222;
  color: var(--text-muted);
}

.class-pill.is-gap .class-count {
  background: rgba(70, 211, 105, 0.14);
  color: var(--match-green);
}

.recommend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recommend-item {
  background: #121212;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.recommend-item strong {
  font-size: 0.88rem;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.recommend-item p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.poi-list,
.history-list,
.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poi-item,
.history-item,
.tier-list li {
  background: #121212;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.tier-list li {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.tier-list span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.poi-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.poi-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poi-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.poi-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.poi-empty {
  color: var(--text-muted);
  font-size: 0.84rem;
  padding: 8px 0;
}

.history-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.coords-details {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  background: #121212;
}

.coords-details summary {
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.coords-inline {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.map-help-banner {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #121212;
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-help-banner strong {
  color: #ffffff;
}

/* Windows-OOBE Inspired Guided Onboarding Wizard */
.oobe-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: radial-gradient(circle at top center, rgba(229, 9, 20, 0.14), rgba(12, 12, 12, 0.94) 55%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.oobe-backdrop[hidden] {
  display: none;
}

.oobe-card {
  width: 100%;
  max-width: 680px;
  background: #181818;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

.oobe-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.oobe-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 14px;
}

.oobe-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: #2f2f2f;
  transition: background 0.2s ease;
}

.oobe-dot.active {
  background: var(--accent);
}

.oobe-step h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.oobe-desc {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.oobe-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.oobe-options-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oobe-tile {
  appearance: none;
  text-align: left;
  background: #121212;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  padding: 14px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.oobe-tile:hover {
  border-color: #888888;
  background: #202020;
}

.oobe-tile.selected {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.12);
}

.oobe-tile strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.oobe-tile small {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.oobe-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 640px) {
  .oobe-card {
    padding: 18px 14px;
  }

  .oobe-options,
  .oobe-options-3,
  .coords-inline {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.icon-close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-desc {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.account-summary strong {
  display: block;
  font-size: 0.86rem;
}

.paywall-notice {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.45);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.checkout-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-btn {
  text-decoration: none;
  text-align: center;
  margin-top: 0;
}

.google-btn {
  margin-top: 0;
  margin-bottom: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-bottom: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
}

.toast {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid #ffffff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-success {
  border-left-color: var(--success);
}

/* Responsive Breakpoints (375px mobile -> 1280px+ desktop) */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-sidebar {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .recommend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #map,
  .map-viewport {
    min-height: 440px;
    height: 440px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .form-grid,
  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-buttons {
    width: 100%;
  }

  .action-buttons .btn {
    flex: 1 1 auto;
  }
}
