﻿:root {
  --ink: #18201b;
  --muted: #627064;
  --paper: #f7f4ec;
  --panel: rgba(255, 252, 244, 0.93);
  --line: rgba(24, 32, 27, 0.14);
  --teal: #147d78;
  --coral: #d85b45;
  --leaf: #4f9b58;
  --gold: #c5902f;
  --violet: #6c5aa8;
  --shadow: 0 20px 55px rgba(24, 32, 27, 0.16);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  transition: grid-template-columns 220ms ease;
}

.app-shell.panel-collapsed {
  grid-template-columns: minmax(0, 1fr) 0;
}

.map-stage {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #ece5d7;
}

#wander-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #dfe7d8;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}
/* Critical Leaflet layout fallback for local file:// rendering. */
.leaflet-container {
  overflow: hidden;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  pointer-events: none;
}

.leaflet-control-container .leaflet-control {
  pointer-events: auto;
}

.leaflet-control-zoom {
  margin: 116px 0 0 24px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.11) !important;
}

.leaflet-control-zoom a {
  border: 0 !important;
  color: var(--ink) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #fffaf0;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  margin: 12px 14px;
  font-size: 0.92rem;
}

.map-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #fffaf0;
  border-radius: 50% 50% 50% 8px;
  background: var(--coral);
  box-shadow: 0 14px 28px rgba(24, 32, 27, 0.22);
  transform: rotate(-45deg);
}

.map-marker span {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fffaf0;
}

.marker-cafe {
  background: var(--coral);
}

.marker-bodegon {
  background: var(--gold);
}

.marker-murales {
  background: var(--violet);
}

.marker-info {
  background: var(--leaf);
}

.user-map-marker {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 125, 120, 0.18);
  border: 1px solid rgba(20, 125, 120, 0.28);
}

.user-map-marker span {
  width: 19px;
  height: 19px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(20, 125, 120, 0.35);
}
.top-bar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.map-tools {
  position: absolute;
  top: 96px;
  right: 24px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.map-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 720;
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.11);
  cursor: pointer;
}

.map-tool svg {
  width: 18px;
  height: 18px;
}

.map-tool.is-active {
  border-color: rgba(216, 91, 69, 0.5);
  background: rgba(216, 91, 69, 0.12);
}

.zoom-tools {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.11);
}

.zoom-tool {
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 820;
  line-height: 1;
}

.zoom-tool + .zoom-tool {
  border-left: 1px solid var(--line);
}

.zoom-tool:hover {
  background: rgba(20, 125, 120, 0.08);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 3.1rem);
  line-height: 1;
}

.round-button,
.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.11);
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.manual-location-hint {
  position: absolute;
  left: 50%;
  top: 154px;
  z-index: 4;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(216, 91, 69, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 780;
  text-align: center;
  transform: translateX(-50%);
}

.manual-location-hint[hidden] {
  display: none;
}

.location-readout {
  position: absolute;
  left: 24px;
  top: 160px;
  z-index: 2;
  display: grid;
  gap: 3px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.11);
  backdrop-filter: blur(16px);
}

.location-readout span,
.location-readout small {
  color: var(--muted);
  font-size: 0.74rem;
}

.location-readout strong {
  font-size: 0.9rem;
  line-height: 1.25;
}
.status-rail {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  max-width: 560px;
  gap: 10px;
  z-index: 2;
}

.metric {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.1);
}

.metric span,
.context-list span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.metric strong,
.context-list strong {
  display: block;
  margin-top: 3px;
  font-size: 0.95rem;
}

.companion-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: min(500px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.voice-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.voice-orb {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink);
}

.voice-orb span {
  width: 5px;
  border-radius: 999px;
  background: #fff8e6;
  animation: pulse 1.1s infinite ease-in-out;
}

.voice-orb span:nth-child(1) {
  height: 16px;
}

.voice-orb span:nth-child(2) {
  height: 25px;
  animation-delay: 0.14s;
}

.voice-orb span:nth-child(3) {
  height: 12px;
  animation-delay: 0.28s;
}


.voice-header > div:nth-child(2) {
  min-width: 0;
}

.panel-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
}

.panel-icon-button svg {
  width: 18px;
  height: 18px;
}

.companion-panel.is-hidden {
  display: none;
}

.companion-tab {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf0;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 780;
}

.companion-tab[hidden] {
  display: none;
}

.voice-mini {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(216, 91, 69, 0.18);
}
@keyframes pulse {
  50% {
    transform: scaleY(0.55);
  }
}

.companion-panel h2,
.control-section h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.companion-panel p {
  margin-bottom: 16px;
  color: #303930;
  font-size: 1.05rem;
  line-height: 1.5;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-actions button,
.secondary-action,
.traveler {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
}

.quick-actions button:hover,
.secondary-action:hover,
.traveler:hover,
.icon-button:hover,
.round-button:hover {
  border-color: rgba(20, 125, 120, 0.45);
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 380px;
  min-height: 100vh;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #fffcf4;
  overflow-y: auto;
  transition: transform 220ms ease;
}

.app-shell.panel-collapsed .control-panel {
  transform: translateX(100%);
}

.control-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.control-section.compact {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title .icon-button {
  width: 38px;
  height: 38px;
  box-shadow: none;
}

.side-panel-tab {
  position: fixed;
  top: 50%;
  right: 380px;
  z-index: 10;
  display: grid;
  min-width: 44px;
  min-height: 104px;
  place-items: center;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--ink);
  color: #fffaf0;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
  transform: translateY(-50%);
}

.side-panel-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.app-shell.panel-collapsed .side-panel-tab {
  right: 0;
}

.travelers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.traveler {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 8px;
  place-items: center;
  color: var(--muted);
}

.traveler span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #ece5d7;
  color: var(--ink);
  font-weight: 780;
}

.traveler.active {
  border-color: rgba(20, 125, 120, 0.45);
  color: var(--ink);
}

.traveler.active span {
  background: var(--teal);
  color: #fff;
}

.context-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.context-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cue-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cue-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
}

.cue-time {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(216, 91, 69, 0.12);
  color: #8b3628;
  font-size: 0.78rem;
  font-weight: 800;
}

.cue-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 780;
  text-align: left;
}

.cue-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 760;
}

.primary-action {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf0;
}

.secondary-action {
  background: transparent;
}

@media (max-width: 980px) {
  .app-shell,
  .app-shell.panel-collapsed {
    grid-template-columns: 1fr;
  }

  .map-stage {
    height: 100vh;
    min-height: 100vh;
  }

  .control-panel {
    width: 100%;
    max-height: 100vh;
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .app-shell.panel-collapsed .control-panel {
    display: none;
  }

  .side-panel-tab,
  .app-shell.panel-collapsed .side-panel-tab {
    right: 0;
  }

  .manual-location-hint {
  position: absolute;
  left: 50%;
  top: 154px;
  z-index: 4;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(216, 91, 69, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 780;
  text-align: center;
  transform: translateX(-50%);
}

.manual-location-hint[hidden] {
  display: none;
}

.location-readout {
  position: absolute;
  left: 24px;
  top: 160px;
  z-index: 2;
  display: grid;
  gap: 3px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.11);
  backdrop-filter: blur(16px);
}

.location-readout span,
.location-readout small {
  color: var(--muted);
  font-size: 0.74rem;
}

.location-readout strong {
  font-size: 0.9rem;
  line-height: 1.25;
}
.status-rail {
    left: 16px;
    right: 16px;
    bottom: 164px;
    grid-template-columns: repeat(3, 1fr);
  }

  .companion-panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .companion-tab {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .map-stage {
    height: 100vh;
    min-height: 100vh;
  }

  .top-bar {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  h1 {
    font-size: 1.45rem;
  }

  .map-tools {
    top: 76px;
    left: 14px;
    right: 14px;
  }

  .map-tool {
    flex: 1;
    justify-content: center;
    padding: 0 10px;
  }

  .zoom-tools {
    flex: 0 0 auto;
  }

  .manual-location-hint {
  position: absolute;
  left: 50%;
  top: 154px;
  z-index: 4;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(216, 91, 69, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 780;
  text-align: center;
  transform: translateX(-50%);
}

.manual-location-hint[hidden] {
  display: none;
}

.location-readout {
  position: absolute;
  left: 24px;
  top: 160px;
  z-index: 2;
  display: grid;
  gap: 3px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.11);
  backdrop-filter: blur(16px);
}

.location-readout span,
.location-readout small {
  color: var(--muted);
  font-size: 0.74rem;
}

.location-readout strong {
  font-size: 0.9rem;
  line-height: 1.25;
}
.status-rail {
    display: none;
  }

  .companion-panel {
    padding: 16px;
  }

  .companion-panel p {
    font-size: 0.98rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .travelers {
    grid-template-columns: 1fr 1fr;
  }

  .control-panel {
    padding: 14px;
  }
}







.message-section {
  display: grid;
  gap: 14px;
}

.message-title {
  margin-bottom: 0;
}

.active-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fffaf0;
  font-size: 0.78rem;
  font-weight: 820;
}

.message-feed {
  display: grid;
  gap: 10px;
}

.active-message {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(20, 125, 120, 0.22);
  border-radius: 8px;
  background: rgba(20, 125, 120, 0.08);
}

.active-message.is-fresh {
  border-color: rgba(216, 91, 69, 0.42);
  background: rgba(216, 91, 69, 0.08);
}

.active-message-button {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.active-message-button strong {
  font-size: 0.92rem;
}

.active-message-button span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.dismiss-message {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.section-kicker {
  margin: 4px 0 -2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.companion-panel.is-popup {
  animation: panel-pop 180ms ease-out;
}

.companion-tab.has-unread .voice-mini {
  animation: unread-pulse 1.2s infinite ease-in-out;
}

@keyframes panel-pop {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes unread-pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(216, 91, 69, 0.08);
  }
}

.active-message.is-destination {
  border-color: rgba(197, 144, 47, 0.34);
  background: rgba(197, 144, 47, 0.09);
}

.active-message.is-destination.cafe {
  border-color: rgba(216, 91, 69, 0.34);
  background: rgba(216, 91, 69, 0.08);
}

.active-message.is-destination.murales {
  border-color: rgba(108, 90, 168, 0.32);
  background: rgba(108, 90, 168, 0.08);
}

.message-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fffaf0;
  font-size: 0.78rem;
  font-weight: 820;
}

.message-eta {
  display: inline-grid;
  min-width: 44px;
  min-height: 24px;
  margin-left: auto;
  place-items: center;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 820;
}

.empty-feed {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.leaflet-tile,
.leaflet-tile-container,
.leaflet-pane {
  backface-visibility: hidden;
}

.leaflet-tile {
  image-rendering: auto;
}


.guide-section {
  display: grid;
  gap: 14px;
}

.guide-title {
  margin-bottom: 0;
}

.switch-control {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ece5d7;
  transition: background 160ms ease;
}

.switch-control span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 4px 10px rgba(24, 32, 27, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.switch-control input:checked + span {
  background: var(--teal);
}

.switch-control input:checked + span::after {
  transform: translateX(20px);
}

.guide-settings {
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.tag-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.tag-input-row input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}

.tag-input-row button,
.suggested-tags button,
.interest-tag button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.tag-input-row button {
  padding: 0 12px;
  font-weight: 760;
}

.tag-list,
.suggested-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: rgba(20, 125, 120, 0.11);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 720;
}

.interest-tag button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  line-height: 1;
}

.suggested-tags button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.active-message.is-info {
  border-color: rgba(79, 155, 88, 0.34);
  background: rgba(79, 155, 88, 0.09);
}

.active-message.is-weather {
  border-color: rgba(20, 125, 120, 0.3);
  background: rgba(20, 125, 120, 0.08);
}

.guide-settings[hidden] {
  display: none;
}

.guide-title .icon-button {
  width: 38px;
  height: 38px;
  box-shadow: none;
}






.privacy-action {
  border-color: rgba(216, 91, 69, 0.32);
}

.privacy-action.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.active-message.is-real-poi {
  border-color: rgba(20, 125, 120, 0.34);
  background: rgba(20, 125, 120, 0.09);
}


.developer-panel {
  border-color: rgba(108, 90, 168, 0.28);
  background: rgba(108, 90, 168, 0.07);
}

.dev-badge {
  display: grid;
  min-width: 34px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--violet);
  color: #fffaf0;
  font-size: 0.72rem;
  font-weight: 820;
}

.developer-note {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.move-pad {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  grid-template-rows: repeat(3, 48px);
  justify-content: center;
  gap: 8px;
}

.move-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(108, 90, 168, 0.28);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 820;
}

.move-button:hover,
.move-button.is-active {
  background: rgba(108, 90, 168, 0.12);
  border-color: rgba(108, 90, 168, 0.52);
}

.move-nw { grid-column: 1; grid-row: 1; }
.move-up { grid-column: 2; grid-row: 1; }
.move-ne { grid-column: 3; grid-row: 1; }
.move-left { grid-column: 1; grid-row: 2; }
.move-right { grid-column: 3; grid-row: 2; }
.move-sw { grid-column: 1; grid-row: 3; }
.move-down { grid-column: 2; grid-row: 3; }
.move-se { grid-column: 3; grid-row: 3; }

.stop-button {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
}

.simulator-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.developer-side-panel {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  width: 340px;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fffcf4;
  box-shadow: var(--shadow);
  overflow-y: auto;
  transition: transform 220ms ease;
}

.developer-side-panel.dev-collapsed {
  transform: translateX(-100%);
}

.developer-side-panel .developer-panel {
  border-color: rgba(108, 90, 168, 0.28);
  background: rgba(108, 90, 168, 0.07);
}

.dev-panel-tab {
  position: fixed;
  top: 50%;
  left: 340px;
  z-index: 10;
  display: grid;
  min-width: 44px;
  min-height: 136px;
  place-items: center;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--violet);
  color: #fffaf0;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
  transform: translateY(-50%);
  transition: left 220ms ease;
}

.dev-panel-tab span {
  writing-mode: vertical-rl;
}

.developer-side-panel.dev-collapsed + .dev-panel-tab {
  left: 0;
}

@media (max-width: 980px) {
  .developer-side-panel {
    width: min(340px, calc(100vw - 44px));
  }

  .dev-panel-tab {
    left: min(340px, calc(100vw - 44px));
  }
}


/* Unified right-side panel tabs. */
.developer-side-panel {
  left: auto !important;
  right: 0 !important;
  width: 380px !important;
  border-right: 0 !important;
  border-left: 1px solid var(--line) !important;
  transform: translateX(0);
}

.developer-side-panel.dev-collapsed {
  transform: translateX(100%) !important;
}

.side-panel-tab,
.dev-panel-tab {
  left: auto !important;
  right: 0;
  min-width: 44px;
  transition: right 220ms ease, background 160ms ease;
}

.side-panel-tab {
  top: calc(50% - 62px);
  min-height: 112px;
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.dev-panel-tab {
  top: calc(50% + 72px);
  min-height: 146px;
  border-radius: 8px 0 0 8px;
  border-right: 0;
  background: var(--violet);
}

.dev-panel-tab span {
  transform: rotate(180deg);
}

.app-shell:not(.panel-collapsed) .side-panel-tab,
.app-shell:not(.panel-collapsed) .dev-panel-tab,
body.dev-panel-open .side-panel-tab,
body.dev-panel-open .dev-panel-tab {
  right: 380px;
}

.app-shell:not(.panel-collapsed) .side-panel-tab,
body.dev-panel-open .dev-panel-tab {
  filter: brightness(1.05);
}

body.dev-panel-open .developer-side-panel {
  transform: translateX(0) !important;
}

body.dev-panel-open .app-shell {
  grid-template-columns: minmax(0, 1fr) 0;
}

body.dev-panel-open .control-panel {
  transform: translateX(100%);
}

@media (max-width: 980px) {
  .developer-side-panel {
    width: min(380px, calc(100vw - 44px)) !important;
  }

  .app-shell:not(.panel-collapsed) .side-panel-tab,
  .app-shell:not(.panel-collapsed) .dev-panel-tab,
  body.dev-panel-open .side-panel-tab,
  body.dev-panel-open .dev-panel-tab {
    right: min(380px, calc(100vw - 44px));
  }
}

.route-tracker-section .developer-note {
  margin: 0 0 12px;
}

.route-tracker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.route-tracker-actions .secondary-action {
  min-height: 42px;
  padding: 0 10px;
}