/* ============================================================
   GeoVisualizer — App shell, chrome & layout
   ============================================================ */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

::selection { background: var(--accent-soft-2); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: padding-box; }

/* ---------------- App grid ---------------- */
.app {
  display: grid;
  grid-template-rows: var(--topbar-h) auto 1fr var(--statusbar-h);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ============================================================
   TOOLSTRIP
   ============================================================ */
.toolstrip {
  grid-row: 2;
  display: flex;
  align-items: stretch;
  min-height: 54px;
  max-height: 58px;
  min-width: 0;          /* allow grid item to shrink to its track width */
  padding: 3px 8px;
  gap: 2px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 55;
  position: relative;
  overflow: hidden;
}
/* Bottom fade if pinned tools exceed the compact two-line area. */
.toolstrip::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background: linear-gradient(to bottom, transparent, var(--surface) 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.toolstrip.ts-has-overflow::after { opacity: 1; }
/* "+N" badge for tools clipped beyond the second row. */
.ts-overflow-badge {
  position: absolute;
  right: 6px;
  top: 5px;
  font-size: 9.5px; font-family: var(--font-mono);
  color: var(--text-3); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .2s;
  background: var(--surface); padding: 1px 3px; border-radius: 3px;
  z-index: 1;
}
.toolstrip.ts-has-overflow .ts-overflow-badge { opacity: 1; }
.ts-tools {
  display: flex;
  align-content: center;
  align-items: center;
  gap: 2px 3px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
}
.ts-tools::-webkit-scrollbar { display: none; }
.ts-spacer { width: 4px; flex-shrink: 0; }
.ts-sep {
  width: 1px; height: 18px;
  background: var(--border);
  margin: 1px 3px;
  flex-shrink: 0;
}
.ts-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 23px; min-width: 28px;
  max-width: 124px;
  padding: 2px 5px;
  border: none; background: none; cursor: pointer;
  border-radius: var(--r-sm);
  color: var(--text-2); flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ts-btn:hover { background: var(--surface-2); color: var(--text); }
.ts-btn:active { transform: scale(.92); }
.ts-btn.labeled { height: 23px; padding: 2px 6px; }
.ts-ico {
  width: 14px; height: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: none !important;   /* override colored category tile from .ico-* */
  color: inherit !important;
}
.ts-ico svg { width: 13px; height: 13px; }
.ts-lbl {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px; color: var(--text-3);
  white-space: nowrap; line-height: 1.2;
  font-family: var(--font-mono); letter-spacing: .02em;
}
.ts-cfg-btn {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: none; background: none; cursor: pointer;
  border-radius: var(--r-sm); color: var(--text-3); flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ts-cfg-btn:hover { background: var(--surface-2); color: var(--text-2); }
.ts-cfg-btn svg { width: 15px; height: 15px; }
.ts-empty {
  font-size: 11px; color: var(--text-3);
  font-family: var(--font-mono); padding: 0 6px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 60;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 11px; padding-right: 4px; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.brand-name b { font-weight: 600; color: var(--accent); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-top: 3px;
}

.topbar-divider { width: 1px; height: 26px; background: var(--border); }

.topbar-actions { display: flex; align-items: center; gap: var(--space-2); }
.topbar-spacer { flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 6px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform 0.08s var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-fg);
  box-shadow: 0 1px 2px rgba(31,111,235,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }

.btn-icon {
  width: 34px; height: 34px; padding: 0; justify-content: center;
  border-radius: var(--r-sm);
}

.btn-sm { padding: 5px 9px; font-size: 12px; }
.btn-sm svg { width: 14px; height: 14px; }

.kbd {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 5px; border-radius: 4px;
  background: var(--surface-3); color: var(--text-2);
  border: 1px solid var(--border);
}

/* ---------------- Dropdown menu ---------------- */
.menu-wrap { position: relative; }
.menu {
  position: fixed; top: 0; left: 0;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 7px;
  z-index: 80;
  transform-origin: top left;
  display: none;
}
.menu.right { left: auto; right: 0; transform-origin: top right; }
.menu.open { display: block; }
.menu-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); padding: 9px 10px 5px;
}
.menu-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: transparent; border: none; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: 13px;
  transition: background 0.12s var(--ease);
}
.menu-item:hover { background: var(--surface-2); }
.menu-ico {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.menu-ico svg { width: 16px; height: 16px; }
.menu-item .mt { font-weight: 500; }
.menu-item .md { font-size: 11.5px; color: var(--text-3); margin-top: 1px; line-height: 1.3; }

/* Tools menu sub-navigation tabs */
.tools-tabs {
  display: flex; flex-wrap: wrap; gap: 3px;
  padding: 6px 7px 9px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3px;
}
.tools-tab {
  padding: 3px 9px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent;
  color: var(--text-2); font-size: 11.5px; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.tools-tab:hover { background: var(--surface-2); color: var(--text); }
.tools-tab.active {
  background: var(--accent-soft); color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  font-weight: 500;
}
.tools-items { overflow-y: auto; max-height: 420px; }

/* tinted icon variants */
.ico-blue   { background: color-mix(in srgb, var(--c-blue) 14%, transparent);   color: var(--c-blue); }
.ico-green  { background: color-mix(in srgb, var(--c-green) 14%, transparent);  color: var(--c-green); }
.ico-amber  { background: color-mix(in srgb, var(--c-amber) 16%, transparent);  color: var(--c-amber); }
.ico-rose   { background: color-mix(in srgb, var(--c-rose) 14%, transparent);   color: var(--c-rose); }
.ico-violet { background: color-mix(in srgb, var(--c-violet) 14%, transparent); color: var(--c-violet); }
.ico-cyan   { background: color-mix(in srgb, var(--c-cyan) 14%, transparent);   color: var(--c-cyan); }

/* ============================================================
   WORKSPACE (sidebar + map)
   ============================================================ */
.workspace { grid-row: 3; display: flex; min-height: 0; position: relative; }

/* ---------------- Sidebar ---------------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  min-height: 0;
  transition: margin-left var(--dur) var(--ease);
  z-index: 40;
}
.sidebar.collapsed { margin-left: calc(-1 * var(--sidebar-w)); }

.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-head h2 {
  font-size: 12px; font-weight: 600; margin: 0;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-2);
}
.sidebar-head .count {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  background: var(--surface-2); padding: 2px 7px; border-radius: var(--r-full);
  border: 1px solid var(--border);
}
.sidebar-body { flex: 1; overflow-y: auto; padding: var(--space-3); min-height: 0; }

/* empty state */
.empty {
  text-align: center; padding: 40px 20px; color: var(--text-3);
}
.empty-art {
  width: 64px; height: 64px; margin: 0 auto var(--space-4);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-3);
}
.empty-art svg { width: 30px; height: 30px; }
.empty h3 { font-size: 14px; color: var(--text-2); margin: 0 0 6px; font-weight: 600; }
.empty p { font-size: 12.5px; margin: 0 0 var(--space-4); line-height: 1.5; }

/* layer card */
.layer-list { display: flex; flex-direction: column; gap: var(--space-2); }
.layer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.layer-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.layer-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.layer-card.dragging { opacity: 0.5; }
.layer-card.svc-card { border-left: 3px solid var(--border-strong); }
.layer-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
}
.layer-grip {
  color: var(--text-3); cursor: grab; display: grid; place-items: center;
  width: 16px; flex-shrink: 0;
}
.layer-grip:active { cursor: grabbing; }
.layer-swatch {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.layer-swatch.point { border-radius: 50%; }
.layer-swatch.point.square { border-radius: 2px; }
.layer-swatch.point.diamond { border-radius: 0; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.layer-swatch.point.triangle { border-radius: 0; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.layer-swatch.point.star { border-radius: 0; clip-path: polygon(50% 0%, 62% 33%, 98% 35%, 70% 57%, 79% 91%, 50% 71%, 21% 91%, 30% 57%, 2% 35%, 38% 33%); }
.layer-swatch.point.pin { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.layer-swatch.line { border-radius: 1px; height: 4px; }
/* Per-layer "loading data…" overlay — shown only while the card has .loading */
.layer-card { position: relative; }
.layer-loading-overlay { display: none; }
.layer-card.loading .layer-loading-overlay {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  position: absolute; inset: 0; z-index: 3; border-radius: var(--r);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px);
  font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0.1px;
}
.layer-spinner {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2.5px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: gv-layer-spin 0.7s linear infinite;
}
/* Thin indeterminate bar along the bottom edge of the card */
.layer-card.loading::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; z-index: 4;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: gv-load-bar 1.15s ease-in-out infinite;
}
@keyframes gv-layer-spin { to { transform: rotate(360deg); } }
@keyframes gv-load-bar { 0% { background-position: -45% 0; } 100% { background-position: 145% 0; } }
.layer-meta { flex: 1; min-width: 0; }
.layer-name {
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid transparent; border-radius: 4px; padding: 1px 3px; margin: -1px -3px;
  cursor: text;
}
.layer-name:focus { outline: none; border-color: var(--accent); background: var(--surface-inset); }
.layer-sub {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3);
  display: flex; gap: 4px 7px; margin-top: 2px; align-items: center; flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  padding: 1px 6px; border-radius: var(--r-full); cursor: pointer;
  font-size: 9.5px; line-height: 1.4;
}
.filter-chip:hover { background: var(--accent-soft-2); }
.filter-chip.selected {
  color: var(--c-green);
  background: color-mix(in srgb, var(--c-green) 12%, transparent);
  border-color: color-mix(in srgb, var(--c-green) 24%, transparent);
  cursor: default;
}
.layer-actions { display: flex; align-items: center; gap: 1px; }
.layer-act {
  width: 27px; height: 27px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: transparent; border: none; cursor: pointer; color: var(--text-3);
  transition: background 0.12s, color 0.12s;
}
.layer-act:hover { background: var(--surface-2); color: var(--text); }
.layer-act.on { color: var(--accent); }
.layer-act svg { width: 15px; height: 15px; }

/* opacity slider inline */
.layer-foot {
  display: flex; align-items: center; gap: 9px;
  padding: 0 11px 10px; 
}
.layer-foot .lbl { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); width: 34px; }

/* ============================================================
   MOBILE ACTIONS
   ============================================================ */
.mobile-toolbar { display: none; }

@media (max-width: 760px) {
  :root {
    --topbar-h: 52px;
    --statusbar-h: 32px;
    --mobile-toolbar-h: 66px;
  }

  .app { grid-template-rows: var(--topbar-h) auto 1fr var(--statusbar-h); }
  .toolstrip { display: none; }
  #ts-menu-item, #ts-menu-label { display: none; }
  #services-btn, #import-btn, #ts-cfg-btn { display: none; }

  .topbar {
    padding: 0 10px;
    gap: 8px;
  }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark, .brand-mark svg { width: 26px; height: 26px; }
  .brand-name { font-size: 14px; }
  .brand-tag { display: none; }
  .topbar-divider { display: none; }
  .topbar-actions {
    display: block;
    position: static;
  }
  .topbar-actions .menu-wrap > #tools-btn { display: none; }

  .topbar-right { gap: 2px; }
  .btn-icon { width: 34px; height: 34px; }

  .workspace { overflow: hidden; }
  .sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 340px);
    margin-left: 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(0);
    transition: transform var(--dur) var(--ease);
    border-right: 1px solid var(--border);
  }
  .sidebar.collapsed {
    margin-left: 0;
    transform: translateX(-102%);
  }
  .sidebar-head { padding: 12px 14px; }
  .sidebar-body {
    padding: 10px;
    padding-bottom: calc(var(--mobile-toolbar-h) + 12px);
  }
  .layer-row { padding: 10px; }
  .layer-actions { gap: 2px; }
  .layer-act { width: 32px; height: 32px; }

  .mobile-toolbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--statusbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--map-control-bg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }
  .mobile-act {
    min-width: 0;
    height: 48px;
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    color: var(--text-2);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 500;
    cursor: pointer;
  }
  .mobile-act svg { width: 18px; height: 18px; flex-shrink: 0; }
  .mobile-act.primary {
    background: var(--accent);
    color: var(--accent-fg);
    box-shadow: 0 1px 2px rgba(31,111,235,0.25);
  }
  .mobile-act:active { transform: translateY(0.5px); }

  .menu.open#tools-menu,
  .menu.open#import-menu {
    left: 10px !important;
    right: 10px;
    top: auto !important;
    bottom: calc(var(--statusbar-h) + var(--mobile-toolbar-h) + env(safe-area-inset-bottom, 0px) + 18px);
    width: auto;
    min-width: 0;
    border-radius: 14px;
  }
  .menu.open#tools-menu {
    max-height: min(62vh, 430px);
    overflow-y: auto;
  }
  .menu-item { padding: 10px; }
  .menu-ico { width: 34px; height: 34px; }

  .statusbar {
    padding: 0 10px;
    gap: 8px;
  }
  .status-group { gap: 10px; overflow: hidden; }
  .status-group .stat:first-child { display: none; }
  .taskmgr span:not(.task-dot) { display: none; }
  .proc-track { width: 44px; }

  .terminal {
    bottom: var(--statusbar-h);
    height: min(58vh, 360px);
  }
  .toast-wrap {
    left: 10px;
    right: 10px;
    top: calc(var(--topbar-h) + 10px);
  }
  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* range input */
input[type="range"].rng {
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 999px; background: var(--surface-3);
  flex: 1; cursor: pointer; outline: none;
}
input[type="range"].rng::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
input[type="range"].rng::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface); cursor: pointer;
}

/* ============================================================
   Guided Tour
   ============================================================ */
#tour-overlay {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: all;
}
#tour-overlay svg { display: block; }

#tour-card {
  position: fixed; z-index: 9001;
  width: 340px;
  max-width: calc(100vw - 20px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  pointer-events: all;
  animation: tour-card-in 0.18s ease;
}
@media (max-width: 760px) {
  #tour-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 18px 16px 14px;
  }
}
@keyframes tour-card-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tour-meta {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-3); text-transform: uppercase; margin-bottom: 8px;
}
.tour-meta-sep { font-weight: 400; }
.tour-title {
  font-size: 15px; font-weight: 700; color: var(--text-1);
  margin: 0 0 8px;
}
.tour-body {
  font-size: 13px; line-height: 1.55; color: var(--text-2);
  margin: 0 0 14px;
}
.tour-dots {
  display: flex; gap: 5px; margin-bottom: 14px;
}
.tour-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-strong, #ccc); transition: background 0.15s;
}
.tour-dot.active { background: var(--accent); width: 18px; border-radius: 3px; }
.tour-nav {
  display: flex; align-items: center; gap: 6px;
}

/* ── Cookie consent banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px color-mix(in srgb, #000 12%, transparent);
  padding: 10px 20px;
  animation: cookieSlideUp 0.22s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ── App loader ─────────────────────────────────────────────────── */
#gv-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
#gv-loader.gv-loader-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gv-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 28px 36px;
  width: min(340px, 90vw);
  text-align: center;
}
.gv-loader-logo {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 6px;
  animation: gvl-float 2.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--accent) 35%, transparent));
}
@keyframes gvl-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.04); }
}
.gv-loader-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.25px;
  color: var(--text);
  line-height: 1.2;
}
.gv-loader-tag {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gv-loader-track {
  width: 180px;
  height: 3px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 4px;
}
.gv-loader-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  width: 0%;
  transition: width 0.55s var(--ease);
}
.gv-loader-status {
  font-size: 12px;
  color: var(--text-3);
  min-height: 17px;
  transition: opacity 0.25s;
}
/* responsive — no changes needed on mobile since it's already centered */
@media (max-width: 480px) {
  .gv-loader-name { font-size: 18px; }
  .gv-loader-track { width: 150px; }
}
