:root {
  color-scheme: light;
  --ink: #151512;
  --ink-soft: #272721;
  --paper: #f3f0e9;
  --paper-strong: #fffdf8;
  --muted: #716e66;
  --line: rgba(21, 21, 18, 0.14);
  --line-dark: rgba(255, 255, 255, 0.13);
  --gold: #b88342;
  --gold-light: #dfbd82;
  --coral: #d9503d;
  --teal: #26716d;
  --blue: #395d84;
  --shadow: 0 18px 45px rgba(14, 13, 10, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  width: 100%;
  height: 100%;
  background: var(--ink);
}

.topbar {
  position: relative;
  z-index: 40;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 18px;
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.topbar__brand,
.topbar__actions,
.topbar__brand > div,
.topbar__actions > * {
  min-width: 0;
}

.topbar__brand,
.topbar__actions {
  display: flex;
  align-items: center;
}

.topbar__brand {
  gap: 16px;
}

.bakery-logo {
  width: 92px;
  height: 58px;
  object-fit: contain;
}

.topbar__divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.18);
}

.eyebrow {
  margin: 0;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.topbar__actions {
  gap: 10px;
}

.coverage {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.coverage strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.icon-button,
.command-button {
  height: 38px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-button:hover,
.command-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.icon-button:active,
.command-button:active {
  transform: translateY(1px);
}

.icon-button {
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 5px;
}

.icon-button svg,
.command-button svg,
.search-field svg,
.switch-row svg,
.methodology-note svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.command-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
}

.command-button:hover {
  background: #edcd94;
  border-color: #edcd94;
}

.workspace {
  height: calc(100% - 76px);
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
}

.navigator {
  position: relative;
  z-index: 30;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.navigator__hook {
  flex: 0 0 auto;
  background: var(--ink-soft);
  color: #fff;
}

.navigator__photo {
  height: 96px;
  background-image: linear-gradient(90deg, rgba(18, 17, 14, 0.32), rgba(18, 17, 14, 0.04)), url("./assets/cierre-panaderia-chilena.jpeg");
  background-size: cover;
  background-position: center 49%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.navigator__hook-copy {
  padding: 17px 18px 18px;
}

.navigator__hook h2 {
  margin: 8px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
}

.navigator__hook p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.navigator__tools {
  flex: 0 0 auto;
  padding: 14px 14px 10px;
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.search-field {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid rgba(21, 21, 18, 0.17);
  border-radius: 5px;
  color: var(--muted);
}

.search-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 131, 66, 0.13);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  padding: 3px;
  background: #e8e3da;
  border-radius: 5px;
}

.filter-button,
.radius-button {
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #6e6a61;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.filter-button.is-active,
.radius-button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 21, 16, 0.12);
}

.list-summary {
  flex: 0 0 auto;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.confidence-key {
  display: flex;
  align-items: center;
  gap: 5px;
}

.confidence-key i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.company-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7c0b4 transparent;
}

.company-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 10px 12px 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.company-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.company-item.is-active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--coral);
}

.company-item__index {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 21, 18, 0.2);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.company-item strong,
.company-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-item strong {
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

.company-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.company-item__confidence {
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(21, 21, 18, 0.12);
}

.company-item__confidence.is-probable {
  background: #e49a38;
}

.signature-band {
  flex: 0 0 66px;
  display: grid;
  grid-template-columns: 70px 1px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 8px 15px;
  background: #dec79e;
  border-top: 1px solid rgba(21, 21, 18, 0.14);
}

.signature-band img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.signature-band span {
  width: 1px;
  height: 38px;
  background: rgba(21, 21, 18, 0.2);
}

.map-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #d7d2c8;
}

.map {
  position: absolute;
  inset: 0;
}

.map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(39, 34, 27, 0.12);
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.84);
  background: #262722;
  transition: opacity 350ms ease, visibility 350ms ease;
}

.map-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.map-loading p {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.loading-mark {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.map-context,
.map-controls,
.map-legend,
.tour-controller {
  position: absolute;
  z-index: 12;
  box-shadow: var(--shadow);
}

.map-context {
  top: 18px;
  left: 18px;
  min-width: 208px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 14px;
  color: #fff;
  background: rgba(21, 21, 18, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
}

.map-context strong {
  display: block;
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.icon-button--light {
  color: #fff;
}

.map-controls {
  top: 18px;
  right: 18px;
  width: 250px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(21, 21, 18, 0.13);
  border-radius: 6px;
}

.map-shell.has-detail .map-controls {
  top: auto;
  right: auto;
  bottom: 72px;
  left: 18px;
}

.switch-row,
.radius-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.switch-row {
  position: relative;
  min-height: 31px;
  cursor: pointer;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.switch-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 34px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #c8c3ba;
  transition: background 150ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease;
}

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

.switch-row input:checked + .switch::after {
  transform: translateX(15px);
}

.radius-control {
  padding-top: 9px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.segmented-control--compact {
  width: 145px;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
}

.map-legend {
  left: 18px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 11px;
  color: #57554e;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(21, 21, 18, 0.12);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--confirmed { background: var(--gold); }
.legend-dot--probable { background: #e49a38; box-shadow: inset 0 0 0 2px #fff; }
.legend-dot--competitor { background: var(--teal); }

.detail-panel {
  position: absolute;
  z-index: 25;
  top: 0;
  right: 0;
  width: min(458px, 44vw);
  height: 100%;
  color: var(--ink);
  background: var(--paper-strong);
  border: 0;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(16, 14, 10, 0.2);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
  overflow-y: auto;
}

.detail-panel.is-open {
  transform: translateX(0);
}

.detail-panel__close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.detail-panel__close:hover,
.methodology-dialog .icon-button:hover,
.tour-controller .icon-button:hover {
  background: #fff;
  border-color: rgba(21, 21, 18, 0.3);
}

.detail-hero {
  padding: 28px 62px 22px 26px;
  color: #fff;
  background: var(--ink-soft);
  border-bottom: 4px solid var(--gold);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge--ai {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.badge svg {
  width: 13px;
  height: 13px;
}

.detail-hero h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.detail-hero__meta {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  line-height: 1.45;
}

.detail-hero__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.detail-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.detail-link svg {
  width: 14px;
  height: 14px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ebe6dc;
  border-bottom: 1px solid var(--line);
}

.metric {
  min-width: 0;
  padding: 14px 10px 13px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric small {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.metric small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 22px 0;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.detail-tab {
  height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--coral);
}

.detail-body {
  padding: 23px 25px 28px;
}

.analysis-thesis {
  margin: 0 0 25px;
  padding-left: 15px;
  border-left: 2px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.42;
}

.analysis-section {
  margin-top: 22px;
}

.analysis-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 10px;
  text-transform: uppercase;
}

.analysis-section h3 svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.analysis-section--risks h3 svg {
  color: var(--coral);
}

.analysis-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-section li {
  position: relative;
  padding: 10px 0 10px 18px;
  color: #44423d;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}

.analysis-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.action-band {
  margin-top: 24px;
  padding: 16px 17px 17px;
  color: #fff;
  background: var(--teal);
  border-radius: 5px;
}

.action-band p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.evidence-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-row:first-child {
  padding-top: 0;
}

.evidence-row span,
.evidence-row strong,
.evidence-row small {
  display: block;
}

.evidence-row span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-row strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.evidence-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--blue);
  border: 1px solid rgba(57, 93, 132, 0.25);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.source-link svg {
  width: 12px;
  height: 12px;
}

.guardrail {
  margin: 22px 0 0;
  color: #817e75;
  font-size: 9px;
  line-height: 1.45;
}

.tour-controller {
  left: 50%;
  bottom: 22px;
  width: min(540px, calc(100% - 40px));
  min-height: 66px;
  display: none;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateX(-50%);
}

.tour-controller.is-open {
  display: grid;
}

.map-shell.has-detail .tour-controller {
  left: 18px;
  width: min(300px, calc(100% - min(458px, 44vw) - 36px));
  transform: none;
}

.map-shell.has-detail .tour-controller strong {
  display: none;
}

.map-shell.tour-active .map-controls,
.map-shell.tour-active .map-legend {
  display: none;
}

.tour-controller p {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.tour-controller strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.tour-controller .icon-button {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(21, 21, 18, 0.03);
}

.tour-controller__actions {
  display: flex;
  gap: 6px;
}

.tour-controller .icon-button--accent {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.methodology-dialog {
  width: min(680px, calc(100vw - 34px));
  max-height: min(760px, calc(100vh - 34px));
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid rgba(21, 21, 18, 0.2);
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.methodology-dialog::backdrop {
  background: rgba(12, 12, 10, 0.64);
  backdrop-filter: blur(4px);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 25px 21px;
  color: #fff;
  background: var(--ink-soft);
  border-bottom: 3px solid var(--gold);
}

.dialog-heading h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0;
}

.methodology-dialog .icon-button {
  flex: 0 0 auto;
}

.methodology-sources {
  padding: 5px 25px 8px;
}

.methodology-source {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.methodology-source__index {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.methodology-source strong,
.methodology-source small {
  display: block;
}

.methodology-source strong {
  font-size: 12px;
}

.methodology-source small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.methodology-source a {
  color: var(--blue);
}

.methodology-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 25px 24px;
  padding: 14px;
  color: #fff;
  background: var(--teal);
  border-radius: 5px;
}

.methodology-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.methodology-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.maplibregl-ctrl-bottom-right {
  right: 11px;
  bottom: 13px;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 18px rgba(16, 14, 10, 0.18);
}

.maplibregl-popup-content {
  padding: 12px 13px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.competitor-popup strong,
.competitor-popup span {
  display: block;
}

.competitor-popup strong {
  font-size: 12px;
}

.competitor-popup span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.mobile-only {
  display: none;
}

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 292px minmax(0, 1fr); }
  .navigator__hook h2 { font-size: 24px; }
  .detail-panel { width: min(425px, 52vw); }
  .map-controls { width: 226px; }
  .coverage span { display: none; }
}

@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 10px 0 8px;
  }

  .bakery-logo {
    width: 71px;
    height: 48px;
  }

  .topbar__divider,
  .topbar__brand .eyebrow,
  .coverage,
  .command-button span {
    display: none;
  }

  .topbar__brand { gap: 8px; }
  .topbar h1 { font-size: 15px; }
  .topbar__actions { gap: 6px; }
  .command-button { width: 38px; padding: 0; justify-content: center; }
  .mobile-only { display: inline-flex; }

  .workspace {
    position: relative;
    height: calc(100% - 64px);
    display: block;
  }

  .map-shell {
    position: absolute;
    inset: 0;
  }

  .navigator {
    position: absolute;
    z-index: 35;
    inset: auto 0 0;
    height: min(62vh, 560px);
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 42px rgba(16, 14, 10, 0.26);
    transform: translateY(103%);
    transition: transform 240ms ease;
  }

  .navigator.is-open { transform: translateY(0); }
  .navigator__hook { display: none; }
  .signature-band { display: none; }

  .map-context {
    top: 10px;
    left: 10px;
    min-width: 190px;
  }

  .map-controls {
    top: auto;
    right: 10px;
    bottom: 58px;
    width: 222px;
  }

  .map-shell.has-detail .map-controls {
    display: none;
  }

  .map-legend { display: none; }

  .detail-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(76vh, 680px);
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 48px rgba(16, 14, 10, 0.24);
    transform: translateY(103%);
  }

  .detail-panel.is-open { transform: translateY(0); }
  .detail-hero h2 { font-size: 28px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .tour-controller {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    transform: none;
  }

  .map-shell.has-detail .tour-controller {
    top: auto;
    right: 10px;
    bottom: calc(min(76vh, 680px) + 10px);
    left: 10px;
    width: auto;
  }

  .map-shell.tour-active .map-context {
    display: none;
  }

  .tour-controller strong { font-size: 12px; }
  .maplibregl-ctrl-bottom-right { display: none; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .navigator__photo { height: 72px; }
  .navigator__hook-copy { padding: 13px 17px 14px; }
  .navigator__hook h2 { margin: 6px 0 4px; font-size: 22px; }
  .signature-band { flex-basis: 56px; }
  .company-item { min-height: 55px; padding-top: 7px; padding-bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
