@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");

:root {
  --ink: #20204c;
  --muted: #73728c;
  --blue: #4338ed;
  --purple: #8757ee;
  --pink: #e857cf;
  --line: #e8e6f2;
  --paper: #faf9fd;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 70px #28205d12, 0 2px 8px #28205d06;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font:
    14px/1.5 "DM Sans",
    sans-serif;
  color: var(--ink);
  background: #efedf5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
textarea,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #8270f7;
  outline-offset: 4px;
}
button:hover,
a:hover {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 3000;
  top: -60px;
  left: 20px;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
#explorer {
  position: relative;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
}
#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #e8e8f1;
}
.map-display-status {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.map-display-status p { margin: 0; }
.map-display-status button {
  margin-top: 6px;
  padding: 8px 12px;
  color: var(--blue);
  font-weight: 600;
}
.service-hours {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding: 20px 24px;
  border: 1px solid #ded6f1;
  border-radius: 22px;
  color: var(--ink);
  background: #faf9fdf5;
  box-shadow: var(--shadow);
  text-align: left;
}
.service-hours-icon { color: var(--purple); font-size: 26px; line-height: 1.2; }
.service-hours strong { font-size: 16px; font-weight: 650; }
.service-hours p { margin: 5px 0; }
.service-hours small { display: block; margin-top: 9px; color: var(--muted); line-height: 1.5; }
#service-hours-next { color: #68439c; font-weight: 550; }
#service-hours-retry { margin-top: 10px; padding: 8px 0; color: var(--purple); }
body[data-service-closed="true"] .inspiration,
body[data-service-closed="true"] .keyboard-hint { display: none; }
body[data-service-closed="true"] button:disabled { cursor: not-allowed; }
body[data-service-closed="true"] .submit-button { opacity: .4; box-shadow: none; }
#export[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
body[data-service-closed="true"]:has(#feature-dialog[open]) .search-hub > #service-hours { display: flex; }
body[data-service-closed="true"] #auth-submit { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .service-hours { padding: 16px; gap: 10px; border-radius: 18px; font-size: 13px; }
  .service-hours strong { font-size: 15px; }
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-tile-pane {
  filter: saturate(0.38) brightness(1.055) hue-rotate(7deg);
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: #ffffffe0 !important;
  max-width: 90vw;
}
.leaflet-bottom {
  bottom: 45px !important;
}
.map-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 62% 88% at 50% 46%,
      #faf9fefc 9%,
      #faf9fef0 38%,
      #f7f6fb88 74%,
      #edebf62e 100%
    ),
    linear-gradient(#f8f7fdc9, transparent 28%, transparent 80%, #f8f7fd9c);
  transition: opacity 1.2s var(--ease);
  opacity: 1;
}
body[data-view="results"] .map-atmosphere {
  opacity: 0.09;
}
body[data-view="processing"] .map-atmosphere {
  opacity: 1;
}
.topbar {
  position: absolute;
  inset: 0 0 auto;
  height: 88px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 12;
  background: linear-gradient(#faf9fdef, #faf9fd00);
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 143px;
  height: auto;
}
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: #ffffff9c;
  border: 1px solid #ffffffd9;
  border-radius: 40px;
  padding: 5px;
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 14px #24204904;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 12px;
  color: #66637b;
}
.nav-item.active {
  background: white;
  box-shadow: 0 2px 8px #34306c0b;
  color: var(--ink);
}
.nav-item .icon {
  width: 15px;
  height: 15px;
}
.territory-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 11px;
  border: 1px solid #ffffffc9;
  border-radius: 30px;
  background: #ffffffaa;
  backdrop-filter: blur(12px);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d61d7;
  box-shadow: 0 0 0 4px #8864da0b;
  display: inline-block;
  flex-shrink: 0;
}
.pill-separator {
  height: 12px;
  width: 1px;
  background: #dcd8e9;
}
.preview-label {
  color: var(--muted);
}
.search-hub {
  position: absolute;
  z-index: 10;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(780px, calc(100% - 48px));
  transition:
    top 1s var(--ease),
    transform 1s var(--ease),
    width 1s var(--ease);
}
.hero {
  text-align: center;
  margin-bottom: 30px;
  transition:
    opacity 0.3s,
    transform 0.6s;
  transform: translateY(0);
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  line-height: 1.7;
  margin: 0;
  color: #74708c;
}
.hero .eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #74708d;
}
.tiny-spark {
  font-size: 22px;
  color: var(--purple);
}
h1 {
  font:
    650 clamp(44px, 4.5vw, 66px) / 1.08 "Manrope",
    sans-serif;
  letter-spacing: -3.3px;
  margin: 18px 0 20px;
}
h1 span {
  background: linear-gradient(105deg, #5041dc 12%, #9a57e0 60%, #de62d3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 14px;
  line-height: 1.8;
  color: #7d7890;
  margin: 0;
}
.search-frame {
  position: relative;
  background: #ffffffed;
  border: 1px solid #fff;
  border-radius: 23px;
  box-shadow:
    0 0 0 1px #c7b9ef5c,
    0 8px 20px #7460b40b,
    0 24px 70px #7045bc14;
  backdrop-filter: blur(24px);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.search-frame:focus-within {
  box-shadow:
    0 0 0 2px #a38bec66,
    0 12px 50px #7866bf22;
}
.search-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, #7f76f250, transparent 40%, #e7a2df85);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.3;
}
#search-form {
  display: flex;
  align-items: center;
  padding: 21px 20px 10px;
  gap: 16px;
}
.search-spark {
  width: 25px;
  height: 25px;
  color: #7a53e7;
  align-self: flex-start;
  margin-top: 5px;
}
textarea {
  resize: none;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none !important;
  font-size: 15px;
  line-height: 1.65;
  height: 53px;
  padding: 2px 0;
  color: #29244c;
}
textarea::placeholder {
  color: #9290a4;
}
.submit-button {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, #b466eb 0%, #6145ec 68%, #413ee1);
  box-shadow: 0 4px 12px #6952c333;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.submit-button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #6952c34d;
}
.submit-button .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}
.search-meta {
  padding: 0 23px 14px 61px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #9691a6;
}
.keyboard-hint {
  white-space: nowrap;
}
kbd {
  font: inherit;
  padding: 1px 4px;
  border: 1px solid #e9e5f0;
  border-radius: 4px;
  margin-right: 3px;
}
.inspiration {
  margin: 26px 2px 0;
}
.inspiration-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8a849e;
}
.inspiration-heading button {
  font-size: 11px;
  letter-spacing: 0;
  color: #7c6ca4;
  padding: 0;
}
.featured-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.example-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid #ffffffef;
  background: #ffffff8c;
  border-radius: 14px;
  padding: 16px 17px;
  min-height: 97px;
  box-shadow: 0 3px 20px #68579905;
  transition:
    transform 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.example-card:hover {
  transform: translateY(-4px);
  background: white;
  border-color: #cec0ec;
}
.example-card .example-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  color: #9c83d4;
}
.example-card .icon {
  width: 18px;
  height: 18px;
}
.example-card strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.example-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
}
.examples-note {
  text-align: center;
  font-size: 10px;
  color: #9c97ac;
  margin: 15px 0 0;
}
.process {
  margin-top: 25px;
  background: #ffffffc9;
  border: 1px solid #ffffff;
  border-radius: 20px;
  padding: 23px 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: enter 0.5s var(--ease);
}
.process-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.process-heading h2 {
  font:
    600 18px/1.4 "Manrope",
    sans-serif;
  letter-spacing: -0.4px;
  margin: 3px 0;
}
.process-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.process-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #9561e4;
  flex-shrink: 0;
}
.process-mark i {
  position: absolute;
  inset: 0;
  border: 1px solid #d8c5ef;
  border-right-color: #a86de8;
  border-radius: 16px;
  animation: orbit 7s linear infinite;
}
.process-mark i:nth-child(2) {
  inset: 6px;
  border-color: #e6d8f6;
  border-top-color: #de8ad9;
  animation-direction: reverse;
  animation-duration: 5s;
}
#process-time {
  margin-left: auto;
  font-size: 11px;
  color: #9c96ad;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.process-steps {
  list-style: none;
  padding: 17px 0 0;
  margin: 0;
}
.process-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 11px 0;
  color: #aba5bb;
}
.step-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #e6e0ee;
  border-radius: 50%;
  font-size: 9px;
  background: #faf8fd;
  flex-shrink: 0;
  z-index: 1;
}
.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 38px;
  height: 27px;
  width: 1px;
  background: #e9e3f0;
}
.process-steps strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.process-steps small {
  font-size: 10px;
  color: #a29aaa;
}
.step-state {
  margin-left: auto;
  font-size: 10px;
}
.process-steps li[data-status="active"] {
  color: #5e43c8;
}
.process-steps li[data-status="active"] .step-dot {
  color: transparent;
  border-color: #b9a1e2;
  border-top-color: #6742d8;
  animation: orbit 1.8s linear infinite;
  box-shadow: 0 0 0 5px #a97ee509;
}
.process-steps li[data-status="done"] {
  color: #5d5375;
}
.process-steps li[data-status="done"] .step-dot {
  background: #eee8fb;
  border-color: #eee8fb;
  color: #7352cb;
}
.process-detail {
  margin: 15px 0 0;
  padding-top: 15px;
  border-top: 1px solid #efeaf5;
  font-size: 11px;
  color: #8b819d;
  min-height: 34px;
}
.submit-spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 1.5px solid #ffffff55;
  border-top-color: white;
  border-radius: 50%;
  animation: orbit 1s linear infinite;
}
body[data-view="processing"] .submit-button .icon {
  display: none;
}
body[data-view="processing"] .submit-spinner {
  display: block;
}
body[data-view="processing"] .hero,
body[data-view="processing"] .inspiration {
  display: none;
}
body[data-view="processing"] .search-hub {
  top: 48%;
  width: min(690px, calc(100% - 48px));
}
body[data-view="processing"] .results-panel {
  opacity: 0;
  pointer-events: none;
}
body[data-view="processing"] .results-toggle {
  visibility: hidden;
}
body[data-view="results"] .hero,
body[data-view="results"] .inspiration {
  display: none;
}
body[data-view="results"] .search-hub {
  top: 91px;
  transform: translate(-50%, 0);
  width: min(720px, calc(100% - 96px));
}
body[data-view="results"] .search-frame {
  border-radius: 19px;
  background: #ffffffee;
}
body[data-view="results"] #search-form {
  padding: 12px 15px 4px;
  gap: 12px;
}
body[data-view="results"] textarea {
  height: 38px;
  max-height: 80px;
  font-size: 13px;
  line-height: 1.5;
}
body[data-view="results"] .search-meta {
  padding: 0 16px 10px 48px;
  font-size: 9px;
}
body[data-view="results"] .search-spark {
  width: 21px;
  height: 21px;
}
body[data-view="results"] .submit-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
body[data-view="results"] .topbar {
  background: linear-gradient(#faf9fdf7, #faf9fd00);
}
.message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: start;
  gap: 10px;
  margin: 12px 0 0;
  background: #fffdf5ef;
  border: 1px solid #e8dfc6;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 8px 28px #25204c0b;
}
.message-text { max-height: 136px; overflow: auto; overflow-wrap: anywhere; }
.message .message-dismiss { width: 32px; height: 32px; color: inherit; opacity: .7; }
.message .message-dismiss:hover { opacity: 1; background: #b08a3312; }
.message .message-dismiss:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }
.message.error {
  background: #fff5f7f5;
  border-color: #e7c5cd;
  color: #984b60;
}
body[data-view="results"] .message {
  margin-left: auto;
  max-width: 100%;
}
.results-panel {
  position: absolute;
  z-index: 8;
  left: 26px;
  top: 108px;
  bottom: 110px;
  width: 350px;
  display: flex;
  flex-direction: column;
  border: 1px solid #ffffffdd;
  background: #fbfafff2;
  border-radius: 21px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: panel-in 0.7s var(--ease);
  transition: opacity 0.3s;
}
.results-head {
  padding: 21px 22px 15px;
  flex-shrink: 0;
}
.results-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.results-eyebrow .eyebrow {
  font-size: 9px;
}
.results-eyebrow .icon-button {
  width: 25px;
  height: 25px;
  color: #9a92a9;
}
.results-head h2 {
  font:
    650 30px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -1px;
  margin: 6px 0 8px;
}
.results-head h2 span {
  font:
    450 13px "DM Sans",
    sans-serif;
  letter-spacing: 0;
  color: #8d839d;
}
.results-head p {
  font-size: 11px;
  margin: 0;
  color: #877c96;
}
.result-actions {
  display: flex;
  gap: 6px;
  margin: 17px 0 10px;
}
.result-actions button,
.result-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e6e0f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
  background: #fff;
}
.result-actions .icon {
  width: 13px;
  height: 13px;
}
.result-actions button:first-child {
  background: #ede6fb;
  color: #7551c3;
  border-color: #e9def8;
}
.result-actions #trace-open {
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 5px 0;
  font-size: 10px;
}
.criteria {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-height: 76px;
  overflow: auto;
}
.criterion {
  font-size: 10px;
  line-height: 1.4;
  background: #f0edf7;
  border: 1px solid #e9e3f1;
  padding: 4px 7px;
  border-radius: 5px;
  color: #87769a;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.warning-notice {
  color: #96773d;
  font-size: 10px;
  text-align: left;
  padding: 9px 0 0;
}
.feature-list {
  overflow: auto;
  min-height: 0;
  flex: 1;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #d4c9e7 transparent;
  overscroll-behavior: contain;
}
.feature {
  display: block;
  text-align: left;
  width: 100%;
  padding: 17px 22px;
  background: #ffffff6b;
  border-bottom: 1px solid #eeebf4;
  transition: background 0.2s;
}
.feature:hover,
.feature.selected {
  background: #f1ebfb;
  color: var(--ink);
}
.feature.selected {
  box-shadow: inset 3px 0 #9964dd;
}
.feature-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.feature-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #e7ddf2;
  border-radius: 7px;
  font-size: 9px;
  color: #9a79c9;
  background: #faf7ff;
}
.feature h3 {
  font-weight: 550;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.feature-arrow {
  color: #a99cbb;
  font-size: 15px;
}
.feature-type {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #a99bb9;
  text-transform: uppercase;
}
.feature-summary {
  margin: 9px 0 0 34px;
  font-size: 11px;
  color: #94879f;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #90859f;
  background: #fcfbff;
}
.pagination span {
  margin-right: auto;
}
.pagination button {
  width: 30px;
  height: 27px;
  background: white;
  border: 1px solid #e5ddee;
  border-radius: 7px;
  color: #7a648f;
  font-size: 15px;
}
.empty-state {
  padding: 32px 24px;
  text-align: center;
  color: #8c7d9d;
  font-size: 13px;
  line-height: 1.8;
}
.results-toggle {
  position: absolute;
  z-index: 9;
  bottom: 66px;
  left: 26px;
  display: flex;
  gap: 7px;
}
.results-toggle button {
  border: 1px solid #fff;
  background: #fffffff0;
  padding: 10px 14px;
  border-radius: 11px;
  box-shadow: 0 4px 20px #30204f12;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
}
.results-toggle .icon {
  width: 15px;
  height: 15px;
}
#new-search span {
  font-size: 16px;
  margin-left: 3px;
}
#selection-state {
  display: block !important;
  color: #a27b39;
  font-size: 10px;
  margin-top: 6px;
}
#selection-state[hidden] {
  display: none !important;
}
.map-tools {
  display: flex;
  flex-direction: column;
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 4px;
  background: #ffffffdb;
  box-shadow: 0 4px 20px #4639660a;
  backdrop-filter: blur(16px);
}
.map-tools > span {
  height: 1px;
  margin: 2px 5px;
  background: #eae6f0;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
  color: #7c7094;
}
.icon-button:hover {
  background: #eee8f8;
}
.map-tools .icon-button {
  font-size: 21px;
}
.map-tools .icon {
  width: 18px;
  height: 18px;
}
.map-bottom {
  position: absolute;
  z-index: 4;
  bottom: 74px;
  left: 40px;
  right: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  pointer-events: none;
}
.map-location {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #766e88;
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.map-location .icon {
  width: 15px;
  height: 15px;
}
.map-location #coordinates {
  padding-left: 15px;
  border-left: 1px solid #c9c3d3;
  color: #9690a2;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.map-selection {
  background: #fffffff2;
  border: 1px solid white;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 10px;
  color: #8a7b99;
  box-shadow: 0 4px 18px #29204c0c;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 520px;
}
.selection-dot {
  width: 6px;
  height: 6px;
  background: #c06bde;
  border-radius: 50%;
  flex-shrink: 0;
}
body[data-view="results"] .map-location {
  display: none;
}
body[data-view="results"] .map-bottom {
  justify-content: flex-end;
  left: 410px;
  bottom: 76px;
}
.statusbar {
  position: absolute;
  z-index: 11;
  inset: auto 0 0;
  height: 43px;
  background: #faf9fce8;
  border-top: 1px solid #ffffff;
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 33px;
  color: #8a819b;
  font-size: 10px;
}
.statusbar button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.statusbar .icon {
  width: 14px;
  height: 14px;
  color: #a38abf;
}
.footer-separator {
  color: #c9bfd5;
  padding: 0 3px;
}
.experimental {
  font-size: 7px;
  letter-spacing: 1px;
  border: 1px solid #ddd5e8;
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: 4px;
  color: #a397b2;
}
dialog {
  color: var(--ink);
  padding: 0;
  border: 1px solid #fff;
  box-shadow: -20px 0 90px #21133517;
  background: #fcfbff;
}
dialog::backdrop {
  background: #24203b20;
  backdrop-filter: blur(4px);
}
.drawer {
  position: fixed;
  inset: 14px 14px 14px auto;
  margin: 0;
  width: min(550px, calc(100% - 28px));
  max-width: none;
  height: calc(100dvh - 28px);
  max-height: none;
  border-radius: 22px;
  overflow: hidden;
}
.drawer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-in 0.35s var(--ease);
}
.dialog-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 29px 28px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font:
    600 25px/1.25 "Manrope",
    sans-serif;
  letter-spacing: -0.8px;
  margin: 8px 0 0;
}
.dialog-heading .eyebrow {
  font-size: 8px;
}
.dialog-body {
  padding: 24px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  flex: 1;
}
.dialog-intro {
  font-size: 12px;
  color: #8a7f9a;
  line-height: 1.8;
  margin: 0 0 22px;
}
.coverage-banner {
  padding: 12px 14px;
  background: #f0eafa;
  border: 1px solid #e8def6;
  border-radius: 10px;
  font-size: 11px;
  color: #84679f;
  margin: 0 0 18px;
}
.coverage-banner.synthetic {
  background: #fff2d9;
  color: #8e682e;
}
.catalog-search-label {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
  color: #8a7d9b;
}
#catalog-filter {
  width: 100%;
  background: white;
  border: 1px solid #ded4ed;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 22px;
  font-size: 12px;
}
.catalog-layer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.catalog-layer h3,
.source h3 {
  font-size: 14px;
  margin: 0 0 7px;
  font-weight: 550;
}
.catalog-layer p,
.source p {
  font-size: 11px;
  color: #8b7f98;
  margin: 7px 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.catalog-layer button {
  font-size: 10px;
  border: 1px solid #ded3ec;
  background: #f4effb;
  border-radius: 7px;
  padding: 6px 8px;
  margin: 5px 5px 0 0;
  color: #82609f;
}
.catalog-layer details {
  margin-top: 15px;
}
.catalog-layer summary,
.technical summary {
  font-size: 11px;
  color: #7f609d;
  cursor: pointer;
}
.catalog-fields {
  font-size: 10px;
  line-height: 1.6;
}
.catalog-fields dt {
  font-weight: 600;
  margin-top: 12px;
}
.catalog-fields dd {
  margin: 4px 0;
  color: #94879f;
}
.examples {
  display: grid;
  gap: 12px;
}
.examples .example-card {
  background: white;
  min-height: auto;
  padding: 18px;
}
.examples .example-card:hover {
  transform: translateX(-3px);
}
.examples .example-top {
  margin-bottom: 6px;
}
.trace-question {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 15px;
  color: #665579;
}
.timing {
  font-size: 10px;
  color: #9988ab;
}
.dialog-body h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 25px 0 12px;
}
#applied-rule,
.assumptions {
  font-size: 12px;
  line-height: 1.8;
  color: #887598;
}
.warnings p {
  font-size: 11px;
  line-height: 1.7;
  background: #faf1dc;
  color: #937940;
  padding: 12px;
  border-radius: 9px;
}
.source {
  border: 1px solid #e9e1f1;
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0;
}
.source h3 {
  margin: 0 0 7px;
  font-size: 12px;
}
.source a {
  font-size: 11px;
  color: var(--blue);
}
pre {
  font:
    10px/1.7 ui-monospace,
    monospace;
  background: #f1edf7;
  border-radius: 10px;
  padding: 16px;
  overflow: auto;
  max-height: 360px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.technical {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.object-map-note {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #8a7b9c;
  background: #f2ecfa;
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 20px;
}
.object-map-note .icon {
  width: 16px;
  height: 16px;
}
.attributes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 20px;
  margin: 0;
  font-size: 12px;
}
.attributes dt,
.attributes dd {
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #eee7f4;
  overflow-wrap: anywhere;
}
.attributes dt {
  color: #9a88a8;
}
.attributes dd {
  text-align: right;
  color: #695778;
}
.feature-detail details {
  margin-top: 22px;
  font-size: 12px;
}
.feature-detail summary {
  cursor: pointer;
  color: #7c5b9c;
}
.feature-detail details p {
  font-size: 11px;
  color: #9883a9;
  line-height: 1.7;
}
.engine-explanation {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.engine-explanation p,
#service-status,
#budget,
#source-count {
  font-size: 12px;
  color: #8a779b;
  line-height: 1.8;
}
.leaflet-interactive {
  transition:
    fill-opacity 0.2s,
    stroke 0.2s;
}
.leaflet-interactive:focus {
  outline: none;
  stroke: #4d26b7;
  stroke-width: 3;
}
.leaflet-tooltip {
  font:
    11px "DM Sans",
    sans-serif;
  border: 1px solid #e2d3ef !important;
  color: #705581;
  background: #fff !important;
  box-shadow: 0 3px 15px #31204c19 !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (min-width: 1600px) {
  .search-hub {
    width: 820px;
  }
  .hero {
    margin-bottom: 36px;
  }
  h1 {
    font-size: 72px;
  }
  .featured-examples {
    gap: 13px;
  }
  .results-panel {
    width: 370px;
    left: 34px;
  }
}
@media (max-width: 1200px) {
  body[data-view="results"] .search-hub {
    left: auto;
    right: 26px;
    transform: none;
    width: calc(100% - 420px);
    top: 95px;
  }
  .results-panel {
    width: 330px;
  }
  .results-head {
    padding: 18px;
  }
  .feature {
    padding: 16px 18px;
  }
  .map-bottom {
    right: 26px;
  }
  body[data-view="results"] .map-bottom {
    left: 380px;
  }
  .main-nav {
    left: 48%;
  }
  .topbar {
    padding: 0 26px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 74px;
    padding: 0 20px;
  }
  .brand img {
    width: 125px;
  }
  .main-nav {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 12px;
    background: transparent;
    border: none;
    padding: 0;
  }
  .nav-item {
    padding: 8px 10px;
  }
  .nav-item.active {
    display: none;
  }
  .nav-item .icon {
    display: none;
  }
  .territory-pill {
    padding: 8px 10px;
    font-size: 10px;
  }
  .pill-separator,
  .preview-label {
    display: none;
  }
  .search-hub {
    width: calc(100% - 36px);
    top: 46%;
  }
  .hero {
    margin-bottom: 27px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: 49px;
    letter-spacing: -2.6px;
    margin: 14px 0 18px;
  }
  .hero p {
    font-size: 12px;
  }
  #search-form {
    padding: 17px 14px 7px;
    gap: 10px;
  }
  textarea {
    font-size: 13px;
    height: 65px;
  }
  .search-spark {
    width: 21px;
    height: 21px;
  }
  .submit-button {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
  .search-meta {
    padding: 0 15px 12px 45px;
    font-size: 9px;
  }
  .keyboard-hint {
    display: none;
  }
  .featured-examples {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .featured-examples .example-card:nth-child(3) {
    display: none;
  }
  .example-card {
    min-height: 94px;
    padding: 13px;
  }
  .example-card strong {
    font-size: 11px;
  }
  .inspiration {
    margin-top: 20px;
  }
  .inspiration-heading {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .inspiration-heading button {
    font-size: 10px;
  }
  .examples-note {
    font-size: 9px;
  }
  .map-location {
    font-size: 8px;
  }
  .map-location #coordinates {
    display: none;
  }
  .map-bottom {
    left: 20px;
    bottom: 70px;
    right: 65px;
  }
  .statusbar {
    padding: 0 15px;
    height: 42px;
  }
  .statusbar button {
    font-size: 9px;
    gap: 6px;
  }
  .experimental,
  #coverage-short,
  .footer-separator {
    display: none;
  }
  .engine-trigger {
    font-size: 0 !important;
  }
  .engine-trigger .live-dot {
    display: none;
  }
  .statusbar .engine-trigger::after {
    content: "Lokimo Intelligence";
    font-size: 9px;
  }
  body[data-view="processing"] .search-hub {
    width: calc(100% - 36px);
    top: 48%;
  }
  .process {
    padding: 20px 18px;
    margin-top: 18px;
  }
  .process-heading h2 {
    font-size: 16px;
  }
  .process-mark {
    width: 40px;
    height: 40px;
  }
  .process-heading {
    gap: 12px;
  }
  .process-steps {
    padding-top: 12px;
  }
  body[data-view="results"] .search-hub {
    top: 78px;
    left: 18px;
    right: 18px;
    width: auto;
    transform: none;
  }
  body[data-view="results"] textarea {
    height: 40px;
    font-size: 12px;
  }
  body[data-view="results"] .search-meta {
    font-size: 8px;
  }
  .results-panel {
    left: 10px;
    right: 10px;
    width: auto;
    top: auto;
    bottom: 100px;
    height: 42dvh;
    border-radius: 19px;
    z-index: 7;
  }
  .results-head {
    padding: 13px 17px 9px;
  }
  .results-head h2 {
    font-size: 23px;
    margin: 2px 0 6px;
  }
  .results-eyebrow .eyebrow {
    font-size: 8px;
  }
  .result-actions {
    margin: 10px 0 7px;
  }
  .criteria {
    max-height: 27px;
  }
  .warning-notice {
    padding-top: 5px;
  }
  .feature {
    padding: 12px 17px;
  }
  .results-toggle {
    left: 14px;
    bottom: 54px;
  }
  .results-toggle button {
    padding: 9px 12px;
    font-size: 10px;
  }
  body[data-view="results"] .map-bottom {
    bottom: 48px;
    left: auto;
    right: 13px;
    width: 37%;
    justify-content: flex-end;
  }
  .map-selection {
    padding: 5px 8px;
    font-size: 8px;
    line-height: 1.4;
    text-align: right;
  }
  .map-selection .selection-dot {
    display: none;
  }
  .pagination {
    padding: 7px 17px;
    font-size: 9px;
  }
  .drawer {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .dialog-heading {
    padding: 22px;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .dialog-body {
    padding: 22px;
  }
  .message { font-size: 11px; }
  .message-text { max-height: 76px; }
  .leaflet-bottom {
    bottom: 97px !important;
  }
  body[data-view="welcome"] .leaflet-bottom {
    bottom: 43px !important;
  }
}
@media (max-height: 740px) and (min-width: 761px) {
  h1 {
    font-size: 49px;
  }
  .hero {
    margin-bottom: 22px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .search-hub {
    top: 48%;
    width: 700px;
  }
  .inspiration {
    margin-top: 17px;
  }
  .example-card {
    min-height: 78px;
    padding: 12px;
  }
  .example-card .example-top {
    margin-bottom: 6px;
  }
  .examples-note {
    margin-top: 10px;
  }
  .process {
    padding: 18px 24px;
    margin-top: 18px;
  }
  .process-steps li {
    padding: 8px 0;
  }
}
@media (max-height: 680px) and (max-width: 760px) {
  h1 {
    font-size: 39px;
  }
  .hero p {
    display: none;
  }
  .hero {
    margin-bottom: 20px;
  }
  .inspiration {
    margin-top: 15px;
  }
  .example-card {
    min-height: 68px;
  }
  .example-top {
    display: none !important;
  }
  .search-hub {
    top: 47%;
  }
  .process {
    padding: 15px;
    margin-top: 12px;
  }
  .process-steps li {
    padding: 7px 0;
  }
  .process-detail {
    margin-top: 9px;
    padding-top: 10px;
  }
  .process-heading h2 {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .process-steps li[data-status="active"] .step-dot {
    color: #7352cb;
  }
  .process-mark i {
    transform: rotate(20deg);
  }
}
/* Keep the selected geometry readable while its non-modal sheet is open. */
.feature-drawer {
  z-index: 30;
}
.feature-drawer::backdrop {
  background: transparent;
  backdrop-filter: none;
}
body[data-view="results"] .search-frame:focus-within textarea {
  height: 76px;
}
.feature-summary {
  color: #7d6d8c;
}
.criteria .criterion {
  color: #7d678f;
}
.search-meta {
  color: #82788f;
}
@media (max-width: 760px) {
  .feature-drawer {
    inset: auto 8px 8px;
    height: 65dvh;
  }
  .attributes dt {
    color: #887297;
  }
}

/* Geometry of the search dock is animated by the FLIP transition in experience.js. */
.search-hub {
  transition: none;
}

body:has(#feature-dialog[open]) .results-panel {
  visibility: hidden;
}
@media (max-width: 760px) {
  .leaflet-bottom {
    bottom: 43px !important;
  }
  body[data-view="results"] .map-bottom {
    top: 170px;
    bottom: auto;
    left: 18px;
    right: 70px;
    width: auto;
    justify-content: flex-start;
  }
  .map-selection {
    text-align: left;
    font-size: 10px;
    padding: 7px 10px;
  }
  .search-hub:focus-within ~ .map-bottom .map-selection {
    opacity: 0;
  }
  .statusbar .engine-trigger {
    font-size: 9px !important;
  }
  .statusbar .engine-trigger::after {
    content: none;
  }
}
/* Saved map searches and the evidence for the active selection. */
.search-stack {
  position: absolute;
  right: 26px;
  top: 194px;
  z-index: 9;
  width: 282px;
  border: 1px solid #fff;
  border-radius: 17px;
  background: #fcfafff2;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  max-height: calc(100dvh - 310px);
  overflow: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.search-stack > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 17px;
  cursor: pointer;
  font-size: 12px;
  color: #76628e;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fcfafff5;
  backdrop-filter: blur(20px);
}
.search-stack > summary::-webkit-details-marker {
  display: none;
}
.search-stack > summary .icon {
  width: 16px;
  height: 16px;
}
.search-stack > summary strong {
  font-weight: 550;
}
.search-stack #stack-count {
  margin-left: auto;
  font-size: 10px;
  color: #a594b7;
}
.stack-chevron {
  font-size: 16px;
  transition: transform 0.2s;
}
.search-stack[open] .stack-chevron {
  transform: rotate(180deg);
}
.stack-content {
  padding: 0 12px 12px;
}
.stack-notice {
  font-size: 9px;
  color: #9b8ba9;
  padding: 0 5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.stack-row {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 7px;
  margin: 5px 0;
  background: #fff9;
}
.stack-row.active {
  border-color: color-mix(in srgb, var(--search-color) 25%, white);
  background: color-mix(in srgb, var(--search-color) 5%, white);
}
.stack-row input {
  appearance: none;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--search-color);
  border-radius: 5px;
  margin: 0;
  cursor: pointer;
  background: transparent;
}
.stack-row input:checked {
  background: var(--search-color);
  box-shadow: inset 0 0 0 3px white;
}
.stack-activate {
  min-width: 0;
  flex: 1;
  text-align: left;
  padding: 0;
}
.stack-activate strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: var(--ink);
}
.stack-question {
  display: block;
  font-size: 10px;
  color: #8a789a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.7;
}
.stack-activate small {
  display: block;
  font-size: 9px;
  color: #9c87ae;
  margin-top: 4px;
}
.stack-remove {
  align-self: center;
  color: #ae9cba;
  font-size: 18px;
  width: 24px;
  height: 29px;
  border-radius: 5px;
  padding: 0;
}
.stack-remove:hover {
  background: #ece6f4;
  color: #75548f;
}
.context-panel {
  margin: 0 5px;
  padding: 0;
}
.search-history {
  border-top: 1px solid #e9e1f1;
  margin: 15px 5px 0;
  padding-top: 12px;
}
.search-history > summary {
  font-size: 11px;
  color: #806994;
  cursor: pointer;
  padding: 3px 0;
}
.search-history[open] > summary {
  margin-bottom: 12px;
}
.context-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.context-heading h3 {
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
  margin: 0;
  color: #806994;
  flex: 1;
}
.context-switch {
  position: relative;
  width: 28px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
}
.context-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.context-switch span {
  display: block;
  background: #dfd6e8;
  border-radius: 20px;
  width: 28px;
  height: 17px;
  pointer-events: none;
  transition: background 0.2s;
}
.context-switch span::after {
  content: "";
  display: block;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.context-switch input:checked + span {
  background: #a189c3;
}
.context-switch input:checked + span::after {
  transform: translateX(11px);
}
.context-switch input:focus-visible + span {
  outline: 2px solid #8464ba;
  outline-offset: 3px;
}
.context-intro {
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
  margin: 12px 0 10px;
}
.context-active {
  font-size: 10px;
  color: #817087;
  margin: 12px 0 6px;
}
#context-choices {
  display: grid;
  gap: 5px;
}
.context-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 9px;
  border: 1px solid #ece6f1;
  border-radius: 10px;
  background: #ffffff85;
  color: #8b8096;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.context-choice:hover {
  background: white;
  border-color: #dcd1e7;
}
.context-choice[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--criterion-color) 32%, white);
  background: color-mix(in srgb, var(--criterion-color) 6%, white);
  color: var(--ink);
}
.context-choice-copy {
  min-width: 0;
  flex: 1;
}
.context-choice-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 550;
}
.context-choice-copy small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #84788e;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.context-choice-copy .context-count {
  color: var(--criterion-color);
}
.context-choice-copy .context-caution {
  color: #9a6740;
}
.context-symbol {
  display: block;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--criterion-color);
  opacity: 0.5;
}
.context-symbol.point {
  width: 9px;
  height: 9px;
  margin: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--criterion-color) 12%, transparent);
}
.context-symbol.line {
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-25deg);
}
.context-symbol.area {
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: color-mix(in srgb, var(--criterion-color) 10%, transparent);
}
.context-choice[aria-pressed="true"] .context-symbol {
  opacity: 1;
}
.context-check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1px solid #ddd4e7;
  border-radius: 5px;
  font-size: 11px;
  color: #a697b5;
}
.context-choice[aria-pressed="true"] .context-check {
  border-color: var(--criterion-color);
  background: var(--criterion-color);
  color: white;
}
.context-legend {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: #817087;
  flex-wrap: wrap;
}
.context-legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.selection-key {
  width: 12px;
  height: 10px;
  border: 1.5px solid var(--selection-color);
  background: color-mix(in srgb, var(--selection-color) 20%, white);
  border-radius: 2px;
}
.reference-key {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ae7935 33%, #397fa3 33% 66%, #6a8a56 66%);
}
.buffer-key {
  width: 14px;
  height: 10px;
  border: 1px solid #ae793580;
  background: #ae793515;
  border-radius: 5px;
}
.context-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.context-actions > span {
  font-size: 9px;
  color: #8d7e9a;
  line-height: 1.5;
}
.context-distance-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  font-size: 10px;
  border: 1px solid #e2d9ea;
  border-radius: 8px;
  color: #857091;
  background: white;
}
.context-distance-button[aria-pressed="true"] {
  background: #f5eddf;
  border-color: #c9ad7f;
  color: #90682f;
}
.context-distance-button span {
  font-size: 17px;
  line-height: 1;
}
.context-status {
  font-size: 9px;
  line-height: 1.6;
  color: #9d8b8c;
  margin: 10px 0 0;
}
.context-all {
  font-size: 10px;
  color: #8b6c9d;
  text-align: left;
  padding: 9px 0 0;
}
.reference-popup strong {
  font-size: 12px;
}
.reference-popup p {
  font-size: 11px;
  color: #89758d;
  margin: 6px 0 !important;
}
body[data-view="processing"] .search-stack {
  visibility: hidden;
}
body:has(.search-stack:not([hidden])) #map-selection {
  display: none !important;
}
.results-panel .feature-number {
  border-color: color-mix(
    in srgb,
    var(--active-search-color, #8650d4) 25%,
    white
  );
  color: var(--active-search-color, #8650d4);
  background: color-mix(in srgb, var(--active-search-color, #8650d4) 5%, white);
}
.feature.selected {
  box-shadow: inset 3px 0 var(--active-search-color, #8650d4);
}
@media (max-width: 1200px) and (min-width: 761px) {
  .search-stack {
    width: 250px;
    right: 26px;
    top: 200px;
  }
}
@media (max-width: 760px) {
  .search-stack {
    left: 18px;
    right: 72px;
    width: auto;
    top: 170px;
    max-height: calc(100dvh - 285px);
    z-index: 12;
    border-radius: 12px;
  }
  .search-stack > summary {
    padding: 11px 13px;
    font-size: 11px;
  }
  .stack-content {
    padding: 0 10px 10px;
  }
  .search-stack[open] {
    right: 18px;
  }
  .search-stack[open] .stack-content {
    max-height: calc(100dvh - 340px);
    overflow: auto;
  }
  .stack-activate strong {
    font-size: 12px;
  }
  .stack-question {
    font-size: 11px;
  }
  .stack-activate small,
  .context-status {
    font-size: 10px;
  }
  .context-picker summary,
  .context-active {
    font-size: 11px;
  }
  .context-choice {
    font-size: 11px;
  }
  .context-panel {
    margin-top: 12px;
  }
  .search-hub:focus-within ~ .search-stack {
    visibility: hidden;
  }
  body:has(#feature-dialog[open]) .search-stack {
    display: none;
  }
}

body[data-view="welcome"] .search-stack {
  display: none;
}

.context-explanation {
  font-size: 10px;
  line-height: 1.65;
  color: #817087;
  margin-top: 8px;
}
.context-explanation summary {
  cursor: pointer;
}
.context-explanation p {
  margin: 8px 0 0;
}
.stack-notice,
.stack-activate small,
.context-status {
  font-size: 10px;
  color: #817087;
}
/* Keep the close control outside the floating search bar on desktop. */
@media (min-width: 761px) {
  .results-eyebrow {
    justify-content: flex-start;
    gap: 14px;
  }
}

/* Stable, compact map explanations: linked facts are not spatial layers. */
.context-symbol.record {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.context-symbol.record::after {
  content: "≡";
  display: block;
  font-size: 12px;
  line-height: 10px;
  text-align: center;
}
.context-facts {
  margin: 0 8px 7px 29px;
  font-size: 10px;
  color: #817087;
}
.context-facts > summary {
  padding: 8px 0;
  cursor: pointer;
}
.context-fact {
  padding: 8px 0;
  border-top: 1px solid #ece6f1;
}
.context-fact strong,
.context-fact small {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.context-fact small {
  margin-top: 4px;
}
.map-density {
  font-size: 11px;
  color: #705291;
  background: #f0e9fa;
  border-radius: 8px;
  padding: 10px;
  line-height: 1.5;
}
/* These panels are already almost opaque; avoid blurring a moving map beneath them. */
.search-stack,
.search-stack > summary {
  backdrop-filter: none;
  background: #fcfaff;
}

.map-cluster {
  background: none;
  border: 0;
}
.map-cluster > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: var(--cluster-color);
  border: 2px solid white;
  box-shadow: 0 2px 8px #30204530;
  font:
    600 11px/1 "Inter",
    sans-serif;
}
.map-cluster:hover > span {
  outline: 3px solid #ffffff90;
}

/* The object replaces the list, using the same visual anchor. */
#feature-dialog {
  position: fixed;
  inset: 108px auto 110px 26px;
  margin: 0;
  width: 350px;
  height: auto;
  max-height: none;
  max-width: calc(100vw - 20px);
  border-radius: 21px;
  background: #fdfcff;
  box-shadow: var(--shadow);
}
#feature-dialog[open] { display: flex; flex-direction: column; }
.object-sheet-heading { padding: 20px 22px 16px; border-bottom: 1px solid #eee8f5; }
.object-back { font-size: 11px; color: #7352ad; padding: 0 0 20px; text-align: left; }
.object-back:hover { color: #4512a4; }
.object-sheet-heading .eyebrow { margin: 0 0 9px; font-size: 9px; }
.object-sheet-heading h2 { margin: 0; font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.object-sheet-body { padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.object-sheet-body h3 { margin: 25px 0 6px; font-size: 14px; }
.object-essentials { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin: 0 0 24px; }
.object-essentials dt { font-size: 10px; color: #81758f; }
.object-essentials dd { margin: 5px 0 0; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.object-proof-intro, .object-loading { font-size: 11px; color: #85758f; line-height: 1.6; }
.proof-row { display: flex; gap: 10px; padding-top: 16px; }
.proof-status { width: 20px; height: 20px; border-radius: 50%; background: #e8f3ed; color: #348466; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; }
.object-proof.not_matched > .proof-row .proof-status { background: #f1edf5; color: #8f8298; }
.object-proof.unknown > .proof-row .proof-status { background: #f9f0de; color: #a37526; }
.proof-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; line-height: 1.5; }
.proof-copy strong { font-weight: 550; }
.proof-copy small, .proof-muted { font-size: 10px; color: #82758e; }
.proof-measure { color: #5f4a80; font-size: 11px; }
.proof-map-button { margin: 9px 0 0 30px; padding: 6px 9px; border-radius: 7px; color: #7651b1; background: #f1eaf9; font-size: 10px; }
.proof-map-button[aria-pressed="true"] { color: #fff; background: #8051c7; }
.proof-witness { margin: 9px 0 13px 30px; font-size: 10px; color: #87778e; }
.proof-witness summary { cursor: pointer; line-height: 1.6; }
.proof-witness .proof-row { padding-top: 10px; }
.proof-witness .proof-copy strong { font-size: 11px; }
.proof-logic { font-size: 10px; color: #796090; border-left: 2px solid #c9b5e8; padding-left: 9px; margin: 16px 0 0; }
.object-disclosure { border-top: 1px solid #eee8f5; margin-top: 22px; padding-top: 17px; font-size: 11px; }
.object-disclosure > summary { cursor: pointer; color: #665378; }
.object-disclosure p { font-size: 11px; line-height: 1.65; color: #81758f; }
.object-source { padding: 14px 0; border-bottom: 1px solid #eee8f5; }
.object-source p { margin: 5px 0; }
.object-source small { display: block; font-size: 9px; overflow-wrap: anywhere; }
.object-source a { display: inline-block; margin-top: 9px; }
.object-caution { border-left: 2px solid #d7b36e; padding-left: 10px; }
.object-retry { border: 1px solid #dcccdf; padding: 7px 12px; border-radius: 7px; }
body:has(#feature-dialog[open]) .search-stack,
body:has(#feature-dialog[open]) .results-toggle { visibility: hidden; }
.object-map-key { display: none; position: absolute; z-index: 5; bottom: 60px; left: 410px; max-width: min(440px, calc(100vw - 510px)); font-size: 11px; line-height: 1.6; padding: 10px 15px; border-radius: 12px; background: #fffefbf2; color: #6a557b; border: 1px solid #eee5f4; pointer-events: none; }
body:has(#feature-dialog[open]) .object-map-key { display: block; }
.basemap-switch { display: flex; padding: 4px; gap: 2px; border-radius: 11px; background: #fffffff5; border: 1px solid #eee8f3; }
.basemap-switch button { font-size: 11px; padding: 7px 10px; border-radius: 7px; color: #81718f; }
.basemap-switch button[aria-pressed="true"] { color: #68469e; background: #eee7f7; }
body[data-basemap="aerial"] .leaflet-tile-pane { filter: none; }
@media (min-width: 1600px) { #feature-dialog { left: 34px; width: 370px; } .object-map-key { left: 435px; } }
@media (min-width: 761px) and (max-width: 1200px) { #feature-dialog { width: 330px; } .object-map-key { left: 380px; } }
@media (max-width: 760px) {
  #feature-dialog { inset: auto 10px 48px; width: auto; height: 48dvh; border-radius: 19px; }
  .object-sheet-heading { padding: 12px 17px; }
  .object-back { padding-bottom: 10px; }
  .object-sheet-heading h2 { font-size: 18px; }
  .object-sheet-body { padding: 14px 17px; }
  .object-essentials { gap: 12px; }
  .object-map-key { bottom: calc(48dvh + 62px); left: 12px; max-width: calc(100vw - 85px); font-size: 10px; padding: 7px 10px; }
}
@media (min-width: 761px) {
  body:has(#feature-dialog[open])[data-view="results"] .search-hub {
    left: 410px; right: 90px; top: 95px; width: auto; max-width: 900px; transform: none;
  }
}
@media (min-width: 1600px) {
  body:has(#feature-dialog[open])[data-view="results"] .search-hub { left: 435px; }
}
@media (min-width: 761px) and (max-width: 1200px) {
  body:has(#feature-dialog[open])[data-view="results"] .search-hub { left: 380px; right: 70px; }
}
.context-options > summary { cursor: pointer; color: #7e6598; font-size: 11px; padding: 10px 0; }
.context-options[open] > summary { margin-bottom: 5px; }
.context-visible-keys { display: grid; gap: 8px; margin: 10px 0; }
.context-visible-key { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.5; color: #716080; }
.context-visible-key i { width: 8px; height: 8px; flex-shrink: 0; border-radius: 3px; background: var(--criterion-color); }

/* The optional IGN scene never replaces or updates the 2D workspace. */
.object-3d-button { display: inline-flex; margin-top: 14px; padding: 9px 13px; border: 1px solid #ded5ef; border-radius: 11px; background: #f7f3ff; color: #6e45a8; font: inherit; font-size: 12px; cursor: pointer; }
.object-3d-button[hidden] { display: none; }
.ign-dialog { inset: 0; margin: auto; padding: 0; width: min(1200px, 94vw); height: min(850px, 91dvh); max-width: none; max-height: none; border: 1px solid #dfd6f1; border-radius: 24px; background: #f9f7fd; overflow: hidden; box-shadow: 0 24px 90px #23144d40; }
.ign-dialog[open] { display: flex; flex-direction: column; }
.ign-heading { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.ign-heading p { margin: 0 0 5px; font-size: 10px; }
.ign-heading h2 { margin: 0; font-size: 20px; }
.ign-heading button { white-space: nowrap; }
#ign-frame { flex: 1; min-height: 0; }
#ign-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .ign-dialog { width: 100vw; height: 100dvh; border-radius: 0; } .ign-heading { padding: 16px; align-items: flex-start; } .ign-heading h2 { font-size: 16px; } .ign-heading button { font-size: 11px; } }

/* Object dossiers share one quiet panel; themes reveal detail progressively. */
.analysis-module { border: 1px solid #eae4f1; border-radius: 13px; margin: 9px 0; background: #fff; overflow: hidden; }
.analysis-module > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.analysis-module > summary::-webkit-details-marker { display: none; }
.analysis-module > summary::after { content: "+"; margin-left: auto; color: #9b84b5; font-size: 17px; }
.analysis-module[open] > summary::after { content: "−"; }
.analysis-module > summary > span:nth-child(2) { min-width: 0; }
.analysis-module strong { font-size: 12px; font-weight: 600; line-height: 1.5; }
.analysis-module summary small { display: block; font-size: 10px; font-weight: 400; color: #887b94; line-height: 1.6; margin-top: 3px; }
.analysis-mark { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 9px; background: #f4effa; color: #906dc0; font-size: 10px; }
.analysis-risks.has-information .analysis-mark { color: #a56d34; background: #faf1e6; }
.analysis-content { padding: 0 13px 14px; border-top: 1px solid #f0eaf6; }
.analysis-note, .analysis-source p, .analysis-item p, .analysis-item small { font-size: 10px; color: #8a7d94; line-height: 1.65; overflow-wrap: anywhere; }
.analysis-source small { font-size: 9px; overflow-wrap: anywhere; }
.analysis-group { margin-top: 18px; }
.analysis-group h4 { font-size: 11px; margin: 10px 0; color: #6f5d87; }
.analysis-item { border-top: 1px solid #eee9f3; padding: 11px 0; }
.analysis-facts { margin: 0; }
.analysis-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; }
.analysis-facts dt { font-size: 10px; color: #95879f; max-width: 60%; }
.analysis-facts dd { margin: 0; text-align: right; font-size: 11px; color: #4d3e62; overflow-wrap: anywhere; min-width: 0; }
#object-essentials > .analysis-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 18px; }
#object-essentials .analysis-facts > div { display: block; }
#object-essentials .analysis-facts dt { max-width: none; margin-bottom: 5px; }
#object-essentials .analysis-facts dd { text-align: left; font-size: 17px; font-weight: 500; }
.analysis-map, .analysis-link { font-size: 11px; color: #8060aa; border: 1px solid #e6dcf2; border-radius: 8px; padding: 7px 10px; margin: 4px 0; background: #faf7fe; }
.analysis-map[aria-pressed="true"] { background: #eee3fc; }
.analysis-object { text-align: left; font-size: 11px; font-weight: 600; color: #6c4499; line-height: 1.6; padding: 0 0 6px; }
.analysis-source, .analysis-more, .analysis-series { margin-top: 10px; font-size: 10px; color: #8d7b9f; }
.analysis-source summary, .analysis-more summary, .analysis-series summary { cursor: pointer; padding: 6px 0; }
.analysis-item a, .analysis-source a { font-size: 10px; color: #79539f; }
.explore-map { display: block; margin: 24px auto 0; padding: 12px 20px; font-size: 12px; color: #82649e; border-radius: 12px; background: #ffffffbd; border: 1px solid #e8dff1; }
.map-pick-hint { position: absolute; left: 26px; bottom: 74px; max-width: min(370px,70vw); border-radius: 12px; padding: 11px 15px; background: #fffffff5; color: #806994; z-index: 450; font-size: 11px; pointer-events: none; }
body:has(#feature-dialog[open]) .map-pick-hint, body:has(#results-panel:not([hidden])) .map-pick-hint, body[data-view="welcome"] .map-pick-hint { display: none; }
.object-picker { font: 12px/1.5 Inter,system-ui,sans-serif; color: #59476d; }
.object-picker strong { display: block; font-size: 11px; padding: 4px 0 10px; }
.object-picker-choice { display: block; width: 100%; text-align: left; padding: 10px; margin: 5px 0; border-radius: 8px; background: #f5effb; color: #70508e; border: 0; cursor: pointer; }
.analysis-swatch { display: none; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; }
.has-map .analysis-swatch { display: inline-block; }
.analysis-swatch[hidden] { display: none !important; }

body[data-free-explore="true"] .search-stack, body[data-free-explore="true"] #map-selection { display: none; }
body[data-free-explore="true"]:has(#results-toggle:not([hidden])) .map-pick-hint { bottom: 130px; }

/* A dossier adapts its visual grammar to the subject, not to the storage schema. */
.analysis-content { padding: 12px 13px 14px; }
.analysis-kicker { display: block; color: #8d78a2; font-size: 8px; font-weight: 600; letter-spacing: .11em; margin: 0 0 7px; }
.analysis-fold { border-top: 1px solid #eee8f5; margin-top: 13px; font-size: 10px; }
.analysis-fold > summary { cursor: pointer; padding: 12px 0; color: #826399; line-height: 1.6; }
.analysis-fold > summary:focus-visible, .analysis-map:focus-visible, .analysis-object:focus-visible { outline: 2px solid #9e77cf; outline-offset: 3px; border-radius: 5px; }
.analysis-insight, .analysis-owner, .analysis-territory-card, .analysis-series-card { border: 1px solid #eae3f1; border-radius: 12px; background: #fff; padding: 14px; margin: 0 0 12px; }
.analysis-insight h4, .analysis-owner h4, .analysis-territory-card h4, .analysis-series-card h4 { font-size: 11px; line-height: 1.6; margin: 0 0 7px; color: #504063; }
.analysis-insight { border-left: 3px solid var(--insight-color,#9a7cb9); }
.analysis-insight-value { font-size: 18px; margin: 8px 0; color: #4d3c60; }
.analysis-insight .analysis-note { margin: 5px 0 10px; }
.analysis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 9px; }
.analysis-actions .analysis-map { margin: 0; padding: 6px 10px; font-size: 10px; }
.analysis-document { color: #8061a3; font-size: 10px; }
.analysis-audit { color: #91809d; background: #faf8fc; border-radius: 8px; border: 0; padding: 0 10px; }
.analysis-audit-row { padding: 10px 0; border-top: 1px solid #eee7f4; }
.analysis-audit-row p { font-size: 10px; color: #8c7d96; line-height: 1.6; }
.analysis-empty { font-size: 11px; color: #7a6987; line-height: 1.7; }
.analysis-limited { border-left: 2px solid #d3bb98; padding-left: 9px; }
.analysis-zone { background: linear-gradient(135deg,#f4effd,#fbf8ff); border: 1px solid #e6dcf6; border-radius: 12px; padding: 14px; }
.analysis-zone > strong { display: block; font-size: 24px; font-weight: 500; color: #69439c; }
.analysis-highlight { margin: 12px 0; border: 1px solid #e8def0; border-radius: 11px; padding: 13px; }
.analysis-highlight > strong { font-size: 19px; color: #604678; font-weight: 500; }
.analysis-highlight .analysis-note { margin-bottom: 0; }
.analysis-topic { margin-top: 8px; border: 1px solid #e9e1f2; border-radius: 10px; overflow: hidden; }
.analysis-topic > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; padding: 12px; }
.analysis-topic > summary::-webkit-details-marker { display: none; }
.analysis-topic > summary > span:first-child { min-width: 0; }
.analysis-topic > summary strong { display: block; font-size: 11px; color: #584568; }
.analysis-topic > summary small { display: block; font-size: 9px; color: #9a89a6; margin-top: 4px; }
.analysis-count { min-width: 23px; height: 23px; display: grid; place-items: center; background: #f1eaf9; border-radius: 8px; font-size: 10px; color: #8866a3; flex-shrink: 0; }
.analysis-topic[data-topic="protection"] { border-color: #eadbc7; }
.analysis-topic[data-topic="protection"] .analysis-count { background: #faf0df; color: #9a753d; }
.analysis-rule { border-top: 1px solid #eee7f4; padding: 14px 12px; }
.analysis-rule h5 { margin: 0 0 10px; font-size: 11px; font-weight: 600; line-height: 1.65; color: #614574; }
.analysis-rule-value { font-size: 23px; font-weight: 500; margin: 0 0 3px; color: #66468c; }
.analysis-rule > small { display: block; font-size: 9px; line-height: 1.6; color: #8b7698; }
.analysis-quote { margin: 10px 0; padding: 8px 10px; background: #f8f5fb; border-left: 2px solid #d4c1e9; color: #786687; font-size: 10px; line-height: 1.8; }
.analysis-condition { padding: 8px 10px; margin: 10px 0; border-radius: 7px; background: #faf4e9; color: #9a7c4e; font-size: 9px; line-height: 1.7; }
.analysis-built h4 { font-size: 11px; color: #735d89; margin: 4px 0 12px; }
.analysis-built + .analysis-built { border-top: 1px solid #e9e1f0; padding-top: 16px; margin-top: 16px; }
.analysis-asset { padding: 11px 0; border-bottom: 1px solid #f0eaf5; }
.analysis-measures { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.analysis-measures span { background: #f5f1fa; border-radius: 5px; padding: 4px 7px; color: #746087; font-size: 10px; }
.analysis-tag { display: inline-block; border-radius: 5px; background: #eee7f8; color: #81629e; padding: 4px 8px; font-size: 9px; margin-bottom: 9px; }
.analysis-territory-card .analysis-object { display: block; font-size: 14px; }
.analysis-territory-value { font-size: 17px; color: #594369; margin: 12px 0 1px; }
.analysis-territory-card > small { font-size: 9px; color: #9a88a6; }
.analysis-series-card { padding: 15px 12px 4px; background: linear-gradient(150deg,#fff,#fcfaff); }
.analysis-series-card h4 { font-size: 11px; font-weight: 500; color: #8b77a1; }
.analysis-series-value { display: inline; font-size: 25px; font-weight: 500; color: #4b316b; margin: 0; letter-spacing: -.03em; }
.analysis-series-period { display: block; font-size: 10px; color: #a28bb2; margin-top: 4px; }
.analysis-change { margin: 8px 0 0; font-size: 10px; color: #8e70ab; }
.analysis-chart { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.chart-grid { stroke: #eae2f3; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-label { fill: #a18cad; font-size: 9px; font-family: inherit; }
.chart-line { stroke: #9665cf; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-point { fill: #fff; stroke: #a87cd6; stroke-width: 1.5; cursor: pointer; }
.chart-point:hover, .chart-point:focus { fill: #9761cd; stroke-width: 3; outline: none; }
.chart-readout { margin: 1px 0 8px; font-size: 10px; color: #8a6aa6; text-align: right; min-height: 17px; }
.analysis-values { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 10px; color: #7a638c; }
.analysis-values th { font-weight: 500; color: #a08cad; text-align: left; }
.analysis-values td, .analysis-values th { padding: 7px 3px; border-bottom: 1px solid #ede6f4; }
.analysis-values td:last-child, .analysis-values th:last-child { text-align: right; }
.analysis-pending { color: #a18a69; }
.analysis-pending > summary { color: #a18a69; }
.analysis-pending .analysis-series-card { background: #fffdf9; }
.analysis-module summary small { overflow-wrap: anywhere; }
.object-sheet-heading .object-3d-button { margin-top: 9px; padding: 4px 0; border: 0; border-radius: 0; background: none; font-size: 10px; color: #9a7bb8; }
.analysis-zone > .analysis-actions { display: inline-flex; margin: 4px 12px 0 0; }
.analysis-zone > .analysis-fold { display: inline-block; margin: 0; border: 0; }
.analysis-zone > .analysis-fold > summary { padding: 6px 0; }
.analysis-zone > .analysis-fold[open] { display: block; margin-top: 10px; }
.analysis-zone > .analysis-note { margin: 7px 0; }
.analysis-highlight { padding: 11px 12px; }
.analysis-highlight .analysis-note { font-size: 9px; margin-top: 6px; }
.analysis-rule h5 { font-size: 12px; }
.analysis-topic > summary strong { font-size: 12px; }

/* Analysis workspace: one clear overview, then one reading surface. */
:root { --analysis-width: 410px; }
body:has(#feature-dialog.is-wide) { --analysis-width: min(600px, 52vw); }
#feature-dialog { left: 24px; top: 100px; bottom: 64px; width: var(--analysis-width); background: #fdfcff; border: 1px solid #eee8f4; border-radius: 24px; box-shadow: 0 12px 48px #27104418; }
.object-sheet-heading { flex: 0 0 auto; padding: 17px 24px 15px; background: #fdfcff; }
.object-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 11px; }
.object-toolbar .object-back { flex: 1; padding: 7px 0; font-size: 12px; }
.object-size { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #74558f; font-size: 21px; }
.object-size:hover { background: #f0e9f8; }
.object-size:focus-visible, .object-breadcrumbs button:focus-visible, .analysis-legend-actions button:focus-visible { outline: 2px solid #8757bf; outline-offset: 2px; }
.object-breadcrumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; overflow: hidden; font-size: 11px; color: #71637f; }
.object-breadcrumbs button, .object-breadcrumbs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.object-breadcrumbs button { padding: 3px 0; color: #7654a1; }
.object-breadcrumbs > :not(:first-child)::before { content: '/'; margin-right: 6px; color: #b5a8bf; }
.object-breadcrumbs [aria-current] { color: #574365; }
.object-breadcrumbs select { width: 36px; border: 0; background: transparent; color: #7654a1; }
.object-sheet-heading .eyebrow { color: #746482; font-size: 10px; line-height: 1.5; letter-spacing: .12em; }
.object-sheet-heading h2 { font-size: 24px; letter-spacing: -.025em; line-height: 1.25; }
.object-heading-actions { display: flex; align-items: center; gap: 17px; margin-top: 12px; }
.object-heading-actions .analysis-link, .object-sheet-heading .object-3d-button { padding: 5px 0; margin: 0; background: none; border: 0; border-radius: 0; font-size: 12px; color: #75519c; }
.object-sheet-body { min-height: 0; min-width: 0; flex: 1; overflow-x: hidden; overflow-wrap: anywhere; padding: 22px 24px; scrollbar-width: thin; scrollbar-color: #d9cce8 transparent; }
#object-essentials > .analysis-facts { padding-bottom: 20px; gap: 16px; }
#object-essentials .analysis-facts dd { font-size: 23px; letter-spacing: -.03em; color: #49335f; }
#object-essentials .analysis-facts dt { font-size: 12px; color: #786586; }
.object-overview { display: block; position: sticky; top: -22px; z-index: 2; width: 100%; padding: 12px 0 15px; margin: -12px 0 8px; text-align: left; background: #fdfcff; color: #76549b; font-size: 12px; }
.object-overview[hidden] { display: none; }
.analysis-module { background: transparent; border: 0; border-bottom: 1px solid #eae3f1; border-radius: 0; margin: 0; overflow: visible; }
.analysis-module > summary { min-height: 78px; padding: 15px 0; gap: 13px; }
.analysis-module > summary::after { content: '↗'; font-size: 17px; }
.analysis-module[open] > summary::after { content: '−'; }
.analysis-module summary strong { font-size: 14px; color: #3d2c53; }
.analysis-module summary small { font-size: 12px; color: #766684; line-height: 1.55; }
.analysis-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; font-size: 12px; }
.analysis-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.analysis-module[open] { border-bottom: 0; }
.analysis-module[open] > summary { padding-top: 0; min-height: 55px; }
.analysis-content { border-top: 0; padding: 10px 0 8px; }
.analysis-note, .analysis-source p, .analysis-item p, .analysis-item small, .analysis-empty, .analysis-audit-row p, .analysis-fold, .analysis-source { font-size: 12px; color: #786985; line-height: 1.7; }
.analysis-source small { font-size: 10px; }
.analysis-facts dt { font-size: 12px; color: #786985; }
.analysis-facts dd { font-size: 12px; color: #4d3e62; }
.analysis-kicker { font-size: 10px; color: #806891; }
.analysis-map, .analysis-link, .analysis-actions .analysis-map, .analysis-document { font-size: 12px; }
.analysis-actions { gap: 14px; }
.analysis-actions .analysis-map { padding: 7px 11px; }
.analysis-object { font-size: 13px; }
.analysis-insight, .analysis-owner, .analysis-territory-card, .analysis-series-card { padding: 17px 0; border: 0; border-bottom: 1px solid #eae3f1; border-radius: 0; background: none; margin-bottom: 8px; }
.analysis-insight { padding-left: 13px; border-left: 3px solid var(--insight-color); }
.analysis-insight h4, .analysis-owner h4, .analysis-series-card h4 { font-size: 13px; }
.analysis-insight-value { font-size: 24px; }
.analysis-zone { padding: 17px; border: 0; background: linear-gradient(120deg,#f0e9fa,#f9f6fd); }
.analysis-zone > strong { font-size: 30px; }
.analysis-highlight { border: 0; border-radius: 0; padding: 18px 0 10px; }
.analysis-highlight strong { font-size: 24px; }
.analysis-highlight .analysis-note { font-size: 12px; }
.analysis-topic { border: 0; border-top: 1px solid #e9e1f2; border-radius: 0; }
.analysis-topic > summary { padding: 16px 0; }
.analysis-topic > summary strong { font-size: 13px; }
.analysis-topic > summary small { font-size: 11px; color: #786985; }
.analysis-rule { padding: 18px 0; }
.analysis-rule h5 { font-size: 13px; }
.analysis-rule > small { font-size: 11px; }
.analysis-condition { font-size: 12px; color: #876532; line-height: 1.65; }
.analysis-built h4 { font-size: 13px; }
.analysis-measures span { font-size: 12px; background: none; padding: 2px 0; }
.analysis-measures span + span::before { content: '·'; margin: 0 7px 0 2px; color: #c4b3d2; }
.analysis-area-bar { height: 4px; border-radius: 4px; background: #f0e9f6; margin: 10px 0; overflow: hidden; }
.analysis-area-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg,#9873ca,#c8afe3); }
.analysis-tag { font-size: 11px; }
.analysis-territory-card .analysis-object { font-size: 19px; }
.analysis-territory-value { font-size: 21px; }
.analysis-territory-card > small { font-size: 12px; color: #786985; }
.analysis-series-value { font-size: 32px; }
.analysis-series-period, .analysis-change, .chart-readout { font-size: 12px; color: #72578b; }
.analysis-series-display { min-height: 275px; }
.analysis-chart { max-height: 250px; }
.chart-label { fill: #7b688c; }
.chart-point { cursor: pointer; }
.chart-point[aria-pressed="true"] { fill: #7542b5; stroke: #fff; stroke-width: 2; r: 5; }
.analysis-values { font-size: 12px; }
.analysis-values th { color: #786985; }
.analysis-values td, .analysis-values th { padding: 9px 3px; }
.analysis-fold > summary { color: #76558e; }
.analysis-topic[open] > summary, .analysis-fold > summary:hover { color: #54306f; }
[data-spatial-refs] { transition: background-color .15s, box-shadow .15s; }
[data-spatial-refs].is-map-highlight { background: #f2ebfb; box-shadow: 0 0 0 6px #f2ebfb; border-radius: 7px; }
.analysis-skeleton-row { height: 66px; border-radius: 10px; margin: 10px 0; background: linear-gradient(100deg,#f1edf7 20%,#fbf9fe 45%,#f1edf7 70%); background-size: 220% 100%; animation: dossier-shimmer 1.6s ease-in-out infinite; }
@keyframes dossier-shimmer { to { background-position: -220% 0; } }
.analysis-module[aria-busy="true"] summary small { color: #9a86ae; }
.object-load-status { border-left: 2px solid #ab8ece; padding: 7px 12px; margin-bottom: 15px; font-size: 12px; color: #786985; }
.object-load-status[hidden] { display: none; }
.object-disclosure { margin-top: 16px; padding-top: 16px; font-size: 12px; }
.object-disclosure p, .proof-copy small, .proof-muted, .proof-measure { font-size: 12px; }
body:has(#feature-dialog[open])[data-view="results"] .search-hub { left: calc(var(--analysis-width) + 48px); right: 90px; top: 100px; width: auto; max-width: 760px; transform: none; }
body:has(#feature-dialog[open]) .search-frame, body:has(#feature-dialog[open]) .search-hub > :not(.analysis-search-return) { display: none; }
.analysis-search-return { display: none; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 13px 17px; border: 1px solid #e5dcee; border-radius: 16px; background: #fcfafff5; box-shadow: 0 6px 20px #321b5010; color: #746282; text-align: left; }
body:has(#feature-dialog[open]) .analysis-search-return:not([hidden]) { display: flex; }
#analysis-search-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.analysis-search-edit { flex: 0 0 auto; font-size: 11px; color: #8a68aa; }
.object-map-key { left: calc(var(--analysis-width) + 48px); bottom: 65px; max-width: min(380px, calc(100vw - var(--analysis-width) - 170px)); pointer-events: auto; background: #fdfcfffa; border-radius: 14px; color: #665174; padding: 13px 16px; box-shadow: 0 6px 20px #321b500d; }
.analysis-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.5; margin: 3px 0; }
.analysis-legend-row i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.object-map-key > small { display: block; margin-top: 7px; font-size: 10px; color: #8a7896; }
.analysis-legend-actions { display: flex; gap: 15px; padding-top: 8px; }
.analysis-legend-actions button { color: #76549b; font-size: 11px; padding: 4px 0; }
.object-sizes, .object-sheet-handle { display: none; }
@media (min-width: 761px) and (max-width: 1100px) { :root { --analysis-width: 360px; } #feature-dialog { left: 14px; } .object-sheet-heading { padding: 14px 20px; } .object-sheet-body { padding: 20px; } }
@media (max-width: 760px) {
  body { --sheet-height: 66dvh; }
  body[data-sheet-size="summary"] { --sheet-height: 37dvh; }
  body[data-sheet-size="full"] { --sheet-height: calc(100dvh - 20px); }
  #feature-dialog { inset: auto 8px 10px; width: auto; height: var(--sheet-height); min-height: 285px; max-height: calc(100dvh - 20px); max-width: none; border-radius: 22px; transition: height .22s ease; }
  #feature-dialog.is-wide { width: auto; }
  .object-sheet-handle { display: flex; justify-content: center; align-items: center; height: 16px; margin: -6px 0 2px; touch-action: none; cursor: ns-resize; }
  .object-sheet-handle i { width: 35px; height: 4px; border-radius: 4px; background: #d9cce6; }
  .object-sheet-heading { padding: 10px 18px 12px; }
  .object-toolbar { margin-bottom: 3px; }
  .object-breadcrumbs { margin-bottom: 10px; }
  .object-sheet-heading .eyebrow { font-size: 9px; margin-bottom: 4px; }
  .object-sheet-heading h2 { font-size: 20px; }
  .object-heading-actions { margin-top: 7px; }
  .object-sizes { display: flex; gap: 4px; margin-top: 10px; background: #f2edf7; padding: 3px; border-radius: 9px; }
  .object-sizes button { flex: 1; padding: 6px 4px; border-radius: 7px; font-size: 11px; color: #826d93; }
  .object-sizes button[aria-pressed="true"] { background: white; box-shadow: 0 1px 4px #3b1d5710; color: #614181; }
  .object-sheet-body { padding: 16px 18px; }
  body:has(#feature-dialog[open])[data-view="results"] .search-hub { top: 90px; left: 12px; right: 12px; width: auto; }
  .analysis-search-return { min-height: 43px; padding: 10px 12px; border-radius: 13px; }
  .analysis-search-edit { display: none; }
  .object-map-key { left: 12px; bottom: max(calc(var(--sheet-height) + 23px),308px); max-width: calc(100vw - 100px); padding: 8px 11px; max-height: 140px; overflow: auto; }
  .analysis-legend-row { font-size: 11px; }
  body[data-sheet-size="full"]:has(#feature-dialog[open]) .object-map-key, body[data-sheet-size="full"]:has(#feature-dialog[open]) .map-tools, body[data-sheet-size="full"]:has(#feature-dialog[open]) .basemap-switch, body[data-sheet-size="full"]:has(#feature-dialog[open]) .analysis-search-return { display: none; }
  .analysis-series-value { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .analysis-skeleton-row, [data-spatial-refs], #feature-dialog, .object-sheet-body { animation: none; transition: none; scroll-behavior: auto; } }

.object-breadcrumbs[hidden] { display: none; }

.feature.is-map-highlight { background: #f2ebfb; box-shadow: inset 3px 0 #a07bc8; }

/* Keep the chart visible without spending a second screen on repeated headings. */
.object-toolbar .object-breadcrumbs { flex: 1; margin: 0; }
.object-toolbar:has(.object-breadcrumbs:not([hidden])) .object-back { display: none; }
.object-toolbar .object-size { flex-shrink: 0; }
.object-toolbar .object-breadcrumbs button, .object-toolbar .object-breadcrumbs span { max-width: 125px; }
.object-sheet-heading { padding-bottom: 12px; }
.object-sheet-body { padding-top: 16px; }
.object-overview { top: -16px; margin: -6px 0 12px; padding: 8px 0; }
.analysis-series-card { padding-top: 8px; }
.analysis-series-card h4 { margin: 0 0 6px; }
.analysis-chart { max-height: 190px; }

@media (max-width: 760px) { body:has(#feature-dialog[open]) .basemap-switch { display: none; } }

/* Dossiers: one subject per line, context only when requested. */
.analysis-content { padding-top: 12px; }
.analysis-compact { border: 0; border-bottom: 1px solid #eae3f1; padding: 0; margin: 0; min-width: 0; }
.analysis-compact > summary { display: flex; align-items: center; gap: 12px; padding: 10px 0; list-style: none; cursor: pointer; }
.analysis-compact > summary::-webkit-details-marker { display: none; }
.analysis-compact > summary:focus-visible { outline: 2px solid #a889ca; outline-offset: 2px; border-radius: 6px; }
.analysis-compact-title { flex: 1; min-width: 0; }
.analysis-compact-title strong { display: block; font-size: 12px; line-height: 1.5; color: #514064; font-weight: 550; }
.analysis-compact-title small { display: block; font-size: 11px; line-height: 1.5; color: #887397; margin-top: 2px; }
.analysis-expand { color: #a48bb7; width: 18px; text-align: center; flex-shrink: 0; }
.analysis-compact[open] > summary .analysis-expand { font-size: 0; }
.analysis-compact[open] > summary .analysis-expand::after { content: '−'; font-size: 15px; }
.analysis-compact[open] { padding-bottom: 10px; }
.analysis-compact .analysis-fold { margin-top: 8px; }
.analysis-compact .analysis-fold > summary { padding: 7px 0; font-size: 11px; }
.analysis-compact > .analysis-actions { margin-top: 2px; }
.analysis-rule-points { padding-left: 16px; margin: 0 0 10px; font-size: 12px; line-height: 1.65; color: #6e597e; }
.analysis-rule-points li + li { margin-top: 7px; }
.analysis-topic { border: 0; border-top: 1px solid #e4daee; border-radius: 0; margin-top: 12px; }
.analysis-topic > summary { padding: 12px 0; }
.analysis-topic > summary strong { font-size: 13px; }
.analysis-topic .analysis-compact:last-child { border-bottom: 0; }
.analysis-topic .analysis-count { height: 22px; min-width: 22px; font-size: 11px; }
.analysis-policy-highlight { background: #f2ebfc; border-left: 3px solid #9970c7; padding: 10px 12px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.analysis-policy-highlight h4 { font-size: 13px; margin: 0; color: #65448c; }
.analysis-policy-highlight .analysis-note { font-size: 11px; margin: 4px 0; }
.analysis-policy-highlight .analysis-actions { margin-top: 5px; }
.analysis-planning-key { font-size: 12px; color: #6f538a; padding: 9px 0; margin: 8px 0; }
.analysis-capacity { background: linear-gradient(135deg,#faf5ff,#f4f1fc); border: 1px solid #e7d9f6; border-radius: 14px; padding: 15px; margin: 12px 0; }
.analysis-capacity h4 { margin: 0 0 8px; font-size: 13px; color: #594070; }
.analysis-capacity .analysis-tag { background: #ebe2f6; font-size: 10px; padding: 3px 6px; margin: 0 0 6px; }
.analysis-capacity-value { margin: 2px 0; font-size: 30px; line-height: 1.2; color: #684194; font-weight: 550; letter-spacing: -.03em; }
.analysis-capacity > .analysis-note { margin: 3px 0 10px; font-size: 11px; }
.analysis-capacity-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 12px 0; margin-bottom: 5px; border-top: 1px solid #e6ddef; }
.analysis-capacity-facts strong { display: block; font-size: 13px; color: #604579; }
.analysis-capacity-facts small { display: block; font-size: 10px; color: #8a769c; margin-top: 2px; }
.analysis-capacity > .analysis-map { font-size: 11px; padding: 9px 11px; width: 100%; margin: 3px 0 10px; }
.analysis-capacity > .analysis-fold { margin-top: 6px; }
.analysis-capacity > .analysis-fold > summary { font-size: 11px; padding: 8px 0 0; }
.analysis-risk-row { border-bottom: 1px solid #ece6f1; }
.analysis-risk-row > summary { border-left: 3px solid var(--insight-color,#9375b6); padding: 9px 0 9px 11px; margin: 8px 0; }
.analysis-risk-row .analysis-compact-title small { color: #755b8e; }
.analysis-asset { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 12px 0; }
.analysis-asset > .analysis-object { grid-column: 1; font-size: 13px; }
.analysis-asset > .analysis-measures, .analysis-asset > .analysis-area-bar, .analysis-asset > .analysis-note { grid-column: 1 / -1; }
.analysis-asset > .analysis-actions { grid-row: 1; grid-column: 2; margin: 0; }
.analysis-asset .analysis-actions .analysis-map { padding: 3px 5px; font-size: 10px; border-color: transparent; background: transparent; }
.analysis-asset .analysis-measures { margin: 3px 0; font-size: 11px; }
.analysis-asset .analysis-note { font-size: 11px; margin: 3px 0; }
.analysis-asset .analysis-area-bar { height: 3px; margin: 4px 0; }
.analysis-built > .analysis-actions { margin: 8px 0; }
.analysis-owner { padding: 0 0 12px; border: 0; }
.analysis-owner h4 { font-size: 15px; margin: 2px 0; }
.analysis-owner .analysis-tag { margin-bottom: 5px; font-size: 10px; }
.analysis-owner > .analysis-note { margin: 6px 0 12px; font-size: 11px; }
.analysis-company-facts { margin: 10px 0 12px; font-size: 12px; }
.analysis-company-facts > div { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0eaf6; }
.analysis-company-facts dt { color: #9785a4; font-size: 11px; }
.analysis-company-facts dd { margin: 0; color: #5e4871; line-height: 1.5; }
.analysis-person { padding: 8px 0; border-bottom: 1px solid #ede6f3; }
.analysis-person strong, .analysis-person small { display: block; font-size: 12px; color: #705981; }
.analysis-person small { font-size: 11px; color: #94829e; margin-top: 2px; }
.analysis-company > .analysis-document { display: inline-block; margin: 12px 0 2px; font-size: 12px; }
.analysis-company > .analysis-note { font-size: 10px; }
.analysis-series-display { min-height: 0; }
.analysis-series-card { margin-bottom: 18px; padding-bottom: 12px; }
.analysis-series-card .analysis-chart { max-height: 165px; }
.analysis-series-card .analysis-fold { margin-top: 4px; }
.analysis-series-card .analysis-fold > summary { padding: 7px 0; font-size: 11px; }
[data-spatial-refs].is-map-highlight { box-shadow: none; background: #f6f1fc; }
.object-map-key > small { max-width: 310px; line-height: 1.5; }
.analysis-zone { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 12px; padding: 11px 12px; }
.analysis-zone > .analysis-kicker { margin: 0; grid-column: 1; font-size: 9px; }
.analysis-zone > strong { grid-column: 1; font-size: 23px; }
.analysis-zone > .analysis-note { grid-column: 1 / -1; margin: 2px 0; font-size: 11px; }
.analysis-zone > .analysis-actions { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
.analysis-zone .analysis-map { padding: 5px 7px; font-size: 10px; }
.analysis-policy-highlight { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding: 9px 10px; }
.analysis-policy-highlight h4 { font-size: 12px; }
.analysis-policy-highlight .analysis-note { grid-column: 1; font-size: 10px; margin: 2px 0; }
.analysis-policy-highlight .analysis-actions { grid-column: 2; grid-row: 1 / 3; margin: 0; gap: 3px; flex-direction: column; align-items: flex-end; }
.analysis-policy-highlight .analysis-map { padding: 3px 5px; font-size: 10px; background: transparent; border-color: transparent; }
.analysis-policy-highlight .analysis-document { font-size: 10px; padding: 3px 5px; }

/* Parcel reading: essentials first, one map context, then explicit drill-down. */
.parcel-qpv { background: #eee6f8; color: #705092; padding: 4px 8px; border-radius: 6px; font-size: 10px; }
.parcel-attention h4, .parcel-dive, .analysis-section-heading { font-size: 11px; color: #7e678e; font-weight: 500; margin: 14px 0 6px; }
.parcel-attention-row { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #eee8f4; padding: 9px 0; }
.parcel-attention-title { flex: 1; min-width: 0; text-align: left; padding: 0; }
.parcel-attention-title strong { display: block; font-size: 12px; line-height: 1.4; font-weight: 500; color: #604b72; }
.parcel-attention-title small { display: block; font-size: 10px; line-height: 1.5; color: #8a7898; margin-top: 3px; }
.parcel-attention-row .analysis-map { font-size: 0; padding: 7px; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #e6dcef; background: #faf7fd; border-radius: 8px; margin: 0; }
.parcel-attention-row .analysis-map::after { content: '⌖'; font-size: 18px; line-height: 1; }
.parcel-attention-row .analysis-map[aria-pressed="true"] { background: #eee4fa; border-color: #a786c9; }
.parcel-more { font-size: 11px; color: #7d6391; margin-top: 8px; }
.parcel-more > summary { padding: 4px 0; cursor: pointer; }
.parcel-caption { font-size: 10px; line-height: 1.5; color: #9987a3; margin: 9px 0 0; }
.analysis-query-hint { display: block; font-size: 9px; color: #9976b6; margin: 3px 0; }
.analysis-extent { font-size: 11px; margin: 9px 0; color: #7e6592; }
.analysis-extent:empty { display: none; }
.analysis-extent-bar { display: block; height: 4px; border-radius: 3px; background: #eee8f4; overflow: hidden; margin-bottom: 6px; }
.analysis-extent-bar i { display: block; height: 100%; background: #b497cb; border-radius: 3px; }
.analysis-extent small { font-size: 10px; }
.analysis-zone > .analysis-extent { grid-column: 1/-1; }
.analysis-territory-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.analysis-territory-card > .analysis-kicker, .analysis-territory-card > .analysis-object, .analysis-territory-card > .analysis-link, .analysis-territory-card > .analysis-actions, .analysis-territory-card > .analysis-fold { grid-column: 1/-1; }
.analysis-territory-card > .analysis-territory-value { font-size: 19px; margin: 8px 0 2px; }
.analysis-territory-card > small { font-size: 10px; align-self: center; }
@media (max-width: 760px) {
}
.analysis-territory-name { grid-column: 1/-1; font-size: 18px; margin: 4px 0 8px; color: #503666; }
.analysis-territory-indicators { grid-column: 1/-1; }
.analysis-territory-indicator { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee8f4; }
.analysis-territory-indicator small { display: block; font-size: 10px; color: #927c9f; }
.analysis-territory-indicator strong { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.025em; color: #5b3e76; }
.analysis-territory-indicator .analysis-territory-compare { font-size: 10px; color: #7e648e; margin-top: 3px; }
.analysis-sparkline { flex: 0 0 86px; width: 86px; height: 30px; overflow: visible; }
.analysis-sparkline path { fill: none; stroke: #aa88cf; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.analysis-territory-card > .analysis-link { text-align: left; margin-top: 9px; padding: 4px 0; font-size: 11px; }
.analysis-capacity, .analysis-policy-highlight, .analysis-compact { scroll-margin-top: 44px; }
.analysis-content .analysis-territory-name { font-size: 18px; margin: 4px 0 8px; }
.analysis-mini-trend { flex: 0 0 86px; text-align: right; }
.analysis-mini-trend > small { font-size: 8px; margin-top: 1px; color: #a08cac; }
@media (max-width: 760px) { .parcel-attention-row .analysis-map { width: 44px; height: 44px; flex-basis: 44px; } }

/* Parcel presence: one readable ensemble, source footprints on demand. */
.analysis-built-ensemble { padding: 10px 0; }
.analysis-built-ensemble + .analysis-built-ensemble { border-top: 1px solid #ece5f3; }
.analysis-built-ensemble > h5 { margin: 0 0 8px; font-size: 13px; }
.analysis-built-ensemble > .analysis-built-area { display: block; font-size: 28px; font-weight: 600; color: #4f3574; letter-spacing: -.6px; }
.analysis-built-height { margin: 8px 0; font-size: 13px; }
.analysis-built-ensemble > .analysis-actions { margin: 8px 0; }
.analysis-parcel-built .analysis-fold { margin: 4px 0 0; padding: 0; }
.analysis-parcel-built .analysis-fold > summary { padding: 9px 0; }
.analysis-footprint { padding: 10px 0; border-bottom: 1px solid #eee7f4; }
.analysis-footprint .analysis-note { margin: 5px 0; }
.analysis-building-margins > summary { font-size: 12px; color: #897596; }

/* One continuous dossier: stable overview, factual summaries, inline detail. */
#feature-dialog.is-asset { --sheet-ink: #30213f; }
.object-sheet-heading { padding: 17px 24px 15px; }
.object-sheet-heading .eyebrow { margin: 9px 0 6px; font-size: 9px; letter-spacing: .11em; color: #87728f; }
.object-sheet-heading h2 { margin: 0; font-size: 25px; color: #29203f; }
.object-heading-actions { margin-top: 8px; }
.object-overview { top: -16px; margin-top: -7px; padding: 9px 0; font-size: 11px; box-shadow: 0 5px 7px #fdfcff; }
.asset-summary { color: var(--sheet-ink,#30213f); margin-bottom: 18px; }
.asset-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 15px; }
.asset-summary-heading h3 { font-size: 12px; font-weight: 500; margin: 0; color: #796783; }
.asset-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.asset-facts:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.asset-fact { display: block; min-width: 0; padding: 0; text-align: left; border-radius: 5px; }
.asset-fact strong { display: block; font-size: 23px; font-weight: 550; letter-spacing: -.04em; color: #422853; line-height: 1.3; overflow-wrap: anywhere; }
.asset-fact small { display: block; font-size: 10px; line-height: 1.4; color: #82708e; margin-top: 5px; }
.asset-fact:is(button):hover strong { color: #7442a5; }
.asset-fact:focus-visible, .asset-potential:focus-visible { outline: 2px solid #aa88c8; outline-offset: 5px; }
.asset-use { display: inline-block; font-size: 11px; line-height: 1.5; margin: 13px 0 0; padding: 4px 8px; color: #715581; background: #f2ecf7; border-radius: 6px; }
.asset-loading { font-size: 11px; line-height: 1.6; color: #93819f; padding: 10px 0; }
.asset-potential { display: grid; grid-template-columns: minmax(0,1fr) auto; width: 100%; margin: 16px 0 5px; padding: 12px 13px; gap: 4px 10px; text-align: left; background: linear-gradient(115deg,#f1eafa,#fbf9fe); border: 1px solid #e9def4; border-radius: 12px; }
.asset-potential > span { align-self: center; color: #806391; font-size: 11px; }
.asset-potential > strong { color: #69438c; font-size: 20px; font-weight: 550; letter-spacing: -.025em; }
.asset-potential small { grid-column: 1/-1; font-size: 10px; line-height: 1.5; color: #8a7398; }
.asset-attention { margin-top: 17px; padding: 12px 13px 9px; background: #faf8fc; border: 1px solid #eee7f3; border-radius: 12px; }
.asset-attention h4 { margin: 0 0 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #947779; font-weight: 600; }
.asset-attention .parcel-attention-row { padding: 8px 0; }
.asset-attention .parcel-attention-title strong { font-size: 11px; font-weight: 500; }
.asset-attention .parcel-attention-title small { font-size: 10px; }
.asset-attention .parcel-attention-row:last-child { border-bottom: 0; }
.asset-attention .parcel-more { margin: 7px 0 0; font-size: 10px; }
#feature-dialog.is-asset #object-analysis { display: block; border-top: 1px solid #e8e0ef; }
#feature-dialog.is-asset .analysis-module { border-bottom: 1px solid #e9e1f1; margin: 0; scroll-margin-top: 42px; }
#feature-dialog.is-asset .analysis-module > summary { padding: 15px 0; min-height: 76px; align-items: center; gap: 12px; }
#feature-dialog.is-asset .analysis-module > summary > span:nth-child(2) { flex: 1; min-width: 0; }
#feature-dialog.is-asset .analysis-module > summary strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.4; }
#feature-dialog.is-asset .analysis-module > summary small { display: block; font-size: 11px; line-height: 1.55; margin-top: 4px; color: #8b7797; }
#feature-dialog .analysis-module > summary::after { content: '+'; font-size: 18px; color: #b29ac5; }
#feature-dialog .analysis-module[open] > summary::after { content: '−'; }
#feature-dialog.is-asset .analysis-mark { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: #f4eef9; color: #a180ba; }
#feature-dialog.is-asset .analysis-module[open] > summary strong { color: #704799; }
#feature-dialog.is-asset .analysis-module[open] { padding-bottom: 5px; }
#feature-dialog.is-asset .analysis-content { padding: 2px 0 14px; }
#feature-dialog.is-asset .analysis-content > :first-child { margin-top: 0; }
#feature-dialog.is-asset .analysis-module > summary:hover .analysis-mark { background: #ede3f7; }
.analysis-query-hint { font-size: 9px; color: #9779b1; margin-top: 3px; }
.object-data-fields { border: 0; margin: 0 0 8px; padding: 0; }
.object-data-fields > summary { padding: 8px 0; font-size: 11px; color: #85718f; }
.object-data > #object-sources { margin-top: 8px; }
.analysis-owner-scope { font-size: 11px; padding: 10px 12px; background: #f6f2fa; border-radius: 8px; color: #826d91; line-height: 1.6; }
.results-guidance { font-size: 11px; color: #9a86a6; line-height: 1.5; margin: 9px 0 0; }
@media (max-width: 760px) {
  .object-sheet-heading { padding: 10px 18px 12px; }
  .object-sheet-heading h2 { font-size: 22px; }
  .asset-fact strong { font-size: 21px; }
  .asset-facts { gap: 8px; }
  .asset-attention { padding: 10px; }
  .asset-attention .parcel-attention-row .analysis-map { width: 36px; height: 44px; flex-basis: 36px; }
  #feature-dialog.is-asset .analysis-module > summary { min-height: 80px; }
}

/* Market context belongs to the existing dossier: compact facts, details on demand. */
.analysis-neighborhood-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.analysis-neighborhood-grid .analysis-territory-indicator { display: block; padding: 8px 0; min-width: 0; }
.analysis-neighborhood-grid .analysis-territory-indicator strong { font-size: 18px; }
.analysis-housing-change { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 10px; color: #80668f; margin: 10px 0 0; }
.analysis-housing-change strong { color: #5b4274; font-weight: 500; }
.analysis-market, .analysis-event-list { grid-column: 1/-1; min-width: 0; }
.analysis-market { margin: 18px 0 8px; }
.analysis-content .analysis-market h4 { font-size: 12px; margin: 0 0 9px; }
.analysis-market-prices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.analysis-market-price { min-width: 0; border: 1px solid #e9e0f3; border-radius: 12px; background: linear-gradient(145deg,#fcfaff,#fff); padding: 11px; }
.analysis-market-price > small,.analysis-market-date,.analysis-market-change { display: block; font-size: 10px; line-height: 1.5; color: #8a739d; }
.analysis-market-price > strong { display: block; margin: 5px 0 2px; color: #51376b; font-size: 19px; font-weight: 500; letter-spacing: -.035em; }
.analysis-market-change { margin: 6px 0; }
.analysis-market-price .analysis-sparkline { display: block; width: 100%; max-width: none; height: 32px; margin: 8px 0 2px; }
.analysis-market-history { margin-top: 4px; }
.analysis-market-history > summary { font-size: 10px; padding: 5px 0; }
.analysis-market-history .analysis-chart { width: 100%; }
.analysis-event-list { margin-top: 0; border-bottom: 1px solid #eee7f4; }
.analysis-event-list > summary { font-size: 12px; font-weight: 500; padding: 12px 0; color: #5d4178; }
.analysis-event { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; padding: 13px 0; border-bottom: 1px solid #eee7f4; }
.analysis-event .analysis-object { text-align: left; font-size: 12px; line-height: 1.5; font-weight: 500; padding: 0; overflow-wrap: anywhere; }
.analysis-event-value { font-size: 16px; font-weight: 500; color: #523769; }
.analysis-event-facts,.analysis-event small { font-size: 10px; color: #8a739d; line-height: 1.5; }
.analysis-event-status { justify-self: start; padding: 3px 7px; background: #f2edf8; color: #74558f; border-radius: 5px; font-size: 10px; }
.analysis-event .analysis-actions { margin-top: 3px; }
@media(max-width:600px) {
  .analysis-market-prices { grid-template-columns: minmax(0,1fr); }
}
.analysis-market-price:has(.analysis-market-history[open]) { grid-column: 1/-1; }

/* A refinement has an explicit, shared context with the request sent to the engine. */
.refinement-context { margin: 12px 16px 0; padding: 10px 12px; border-radius: 11px; background: #f2ecfb; color: #685080; }
.refinement-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.refinement-heading strong { font-size: 12px; font-weight: 600; }
.refinement-heading button { font-size: 11px; color: #795f91; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.refinement-context p { font-size: 11px; line-height: 1.5; margin: 4px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .refinement-context { margin: 9px 10px 0; padding: 9px 10px; }
  .refinement-heading { align-items: flex-start; }
  .refinement-heading strong { font-size: 11px; }
  .refinement-heading button { flex-shrink: 0; font-size: 10px; }
  /* One reading panel at a time; the map legend never covers result actions. */
  body:has(#results-panel:not([hidden])) .search-stack { display: none; }
}


/* Results → selected object → evidence: the same anchors throughout the journey. */
.result-order { margin: 0; padding: 9px 22px; color: #756583; background: #f8f5fc; border-top: 1px solid #e9e2f1; font-size: 10px; line-height: 1.5; flex-shrink: 0; }
.feature { padding-top: 16px; padding-bottom: 16px; }
.feature h3 { color: #302240; }
.feature-location { margin: 5px 0 0 34px; font-size: 11px; color: #746281; overflow-wrap: anywhere; }
.feature-summary { gap: 9px 20px; margin-top: 11px; }
.feature-metric { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.feature-metric small { font-size: 9px; color: #84748f; }
.feature-metric strong { font-size: 12px; font-weight: 550; color: #57416d; }
.feature:focus-visible { outline: 2px solid #7541bb; outline-offset: -3px; background: #f1ebfb; }
.asset-context { margin: 2px 0 18px; padding: 6px 0; border-top: 1px solid #eee7f5; border-bottom: 1px solid #eee7f5; }
.asset-context-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; padding: 9px 0; gap: 4px 10px; text-align: left; }
.asset-context-row > span { color: #85728f; font-size: 10px; }
.asset-context-row > strong { grid-column: 1; font-size: 12px; line-height: 1.45; font-weight: 550; color: #514060; overflow-wrap: anywhere; }
.asset-context-row > i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; color: #9064bc; }
.asset-context-row:hover > strong { color: #6530a8; }
.object-proof-dock { display: none; position: fixed; z-index: 14; right: 24px; top: 170px; width: 294px; max-height: calc(100dvh - 295px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9cce8 transparent; padding: 23px; border: 1px solid #e9dff2; border-radius: 22px; background: #fdfcff; box-shadow: 0 10px 38px #27104412; }
.object-proof-dock .eyebrow { margin: 0 0 6px; font-size: 9px; color: #937ca4; letter-spacing: .1em; }
#proof-object-name { margin: 0 0 16px; font-size: 12px; color: #715385; overflow-wrap: anywhere; }
.object-proof-dock .object-disclosure { margin: 0; padding: 0; border: 0; }
.object-proof-dock .object-disclosure > summary { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #352344; }
.object-proof-dock .object-proof-intro { font-size: 11px; margin: 12px 0 4px; }
#object-proof-inline:has(> [hidden]) { display: none; }
#object-proof-inline .object-disclosure { margin: 4px 0 18px; padding: 13px 15px; border: 1px solid #e7dcef; border-radius: 12px; background: #f8f5fc; }
#object-proof-inline .object-disclosure > summary { font-weight: 550; font-size: 12px; color: #674193; }
#object-proofs > .object-proof > .object-proof + .object-proof { margin-top: 15px; padding-top: 2px; border-top: 1px solid #eee7f5; }
.proof-copy strong { color: #382849; font-size: 12px; }
.proof-copy .proof-distance { display: block; margin: 4px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -.04em; color: #573080; font-weight: 600; }
.proof-copy .proof-measure { color: #675177; overflow-wrap: anywhere; }
.proof-map-button { font-size: 11px; padding: 7px 10px; border: 1px solid #e8dcf2; }
.proof-map-button:focus-visible, .asset-context-row:focus-visible { outline: 2px solid #8650c2; outline-offset: 2px; }
.proof-witness { margin-top: 8px; margin-bottom: 5px; }
.proof-witness .proof-copy .proof-distance { font-size: 18px; }
body[data-view="results"] .map-atmosphere { opacity: .035; }
@media (min-width: 1280px) {
  body:has(#feature-dialog[open]) .object-proof-dock:not([hidden]) { display: block; }
  body[data-proof-dock="true"] .object-map-key { max-width: calc(100vw - var(--analysis-width) - 420px); }
}
@media (max-width: 760px) {
  .result-order { padding: 7px 18px; font-size: 9px; }
  .feature { padding: 13px 18px; }
  .feature-summary { gap: 7px 14px; }
  .feature-metric strong { font-size: 11px; }
}

.proof-map-status { margin: 12px 0 0; padding: 9px 11px; border-radius: 8px; color: #765a85; background: #f2ebf8; font-size: 11px; line-height: 1.5; }


/* Give the result list most of the panel; secondary search context is opt-in. */
.results-panel .results-head { padding: 17px 20px 12px; }
.results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.results-heading > div { min-width: 0; }
.results-heading h2 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.7px; }
.results-heading #result-subtitle { line-height: 1.4; overflow-wrap: anywhere; }
.results-heading .icon-button { width: 30px; height: 30px; flex-shrink: 0; color: #92819f; }
.results-head .result-actions { margin: 12px 0 0; gap: 7px; }
.results-head .result-actions > :is(button,a) { flex: 1; min-width: 0; min-height: 33px; padding: 7px 8px; }
.results-head .result-actions .save-result { width: auto; margin: 0; font-size: 10px; background: #fff; color: #76538d; }
.result-context { flex: 0 0 auto; min-height: 0; border-top: 1px solid var(--line); }
.result-context > summary { display: flex; align-items: center; gap: 8px; padding: 10px 20px; list-style: none; cursor: pointer; font-size: 10px; color: #775b8c; }
.result-context > summary::-webkit-details-marker { display: none; }
.result-context > summary:focus-visible { outline: 2px solid #8650c2; outline-offset: -3px; }
.result-context-chevron { margin-left: auto; transition: transform .15s; }
.result-context[open] .result-context-chevron { transform: rotate(180deg); }
.result-attention { margin-left: auto; color: #967136; font-size: 9px; }
.result-attention:not([hidden]) + .result-context-chevron { margin-left: 0; }
.result-context-body { padding: 0 20px 12px; max-height: min(180px, 23dvh); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.result-context .criteria { max-height: none; overflow: visible; }
.result-order-detail { margin: 10px 0; color: #8d7c98; font-size: 10px; line-height: 1.5; }
.result-context #trace-open { font-size: 11px; color: #76538d; padding: 4px 0; }
.result-context .warning-notice { display: block; padding: 8px 0 0; }
.results-panel .feature { padding: 12px 20px; }
.results-panel .feature-summary { gap: 7px 15px; margin-top: 8px; }
.results-panel .pagination { padding: 8px 20px; min-height: 41px; flex-shrink: 0; }
@media (max-width: 760px) {
  .results-panel { height: 56dvh; max-height: calc(100dvh - 218px); }
  .results-panel .results-head { padding: 12px 16px 10px; }
  .results-heading h2 { font-size: 23px; }
  .results-head .result-actions { margin-top: 10px; }
  .result-context > summary { padding: 9px 16px; }
  .result-context-body { padding: 0 16px 10px; max-height: 18dvh; }
  .results-panel .feature { padding: 11px 16px; }
  .results-panel .pagination { padding: 7px 16px; min-height: 37px; }
}
@media (min-width: 761px) {
  body[data-view="results"]:has(#results-panel:not([hidden])):not(:has(#feature-dialog[open])) .search-hub {
    left: calc(50% + 180px); right: auto; width: min(720px, calc(100% - 440px)); transform: translate(-50%, 0);
  }
}

/* Keep navigation with basemap choices, clear of legends and bottom sheets. */
.map-controls {
  position: absolute;
  z-index: 6;
  right: 26px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-controls .map-tools,
.map-controls .basemap-switch {
  position: static;
  transform: none;
  border: 1px solid #e9e2f1;
  border-radius: 12px;
  background: #fffffff5;
  box-shadow: 0 3px 16px #4639660a;
}
.map-controls .map-tools { flex-direction: row; align-items: center; }
.map-controls .map-tools > span { width: 1px; height: 20px; margin: 0 4px; }
.map-controls .basemap-switch button { min-height: 36px; }
@media (max-width: 760px) {
  body { --results-panel-height: min(56dvh, calc(100dvh - 218px)); }
  .results-panel { height: var(--results-panel-height); }
  .map-controls { right: 10px; bottom: 48px; }
  .map-controls .icon-button { width: 40px; height: 40px; }
  .map-controls .basemap-switch button { min-height: 40px; }
  body[data-view="results"] .map-controls { bottom: 112px; }
  body:has(#results-panel:not([hidden])) .map-controls {
    bottom: calc(var(--results-panel-height) + 112px);
  }
  body:has(#feature-dialog[open]) .map-controls {
    bottom: max(calc(var(--sheet-height) + 22px), 307px);
  }
  body:has(#feature-dialog[open]) .object-map-key { max-width: calc(100vw - 176px); }
  body[data-sheet-size="full"]:has(#feature-dialog[open]) .map-controls { display: none; }
}

/* Progressive discovery: editable ideas and a small vocabulary beside the input. */
.discovery-example { background: #ffffffda; min-height: 128px; padding: 17px; gap: 11px; }
.discovery-example .discovery-kicker { color: #8c739e; font-size: 9px; line-height: 1.4; }
.discovery-example strong { font-size: 14px; line-height: 1.5; font-weight: 500; color: #45315c; }
.discovery-example-action { margin-top: auto; font-size: 10px; color: #8865b0; }
.keyword-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 16px 12px; border-top: 1px solid #eee7f5; }
#keyword-prompt { font-size: 10px; color: #8c789e; }
.keyword-options { display: flex; flex-wrap: wrap; gap: 5px; }
.keyword-option { border: 1px solid #e9dff2; border-radius: 7px; padding: 6px 9px; color: #70518c; background: #f7f2fc; font-size: 10px; }
.keyword-option:hover { background: #eee3fa; border-color: #bda2df; }
.keyword-all { margin-left: auto; font-size: 10px; color: #806297; padding: 6px 2px; white-space: nowrap; }
.discovery-dialog { inset: 0; margin: auto; width: min(960px, calc(100vw - 48px)); height: min(820px, calc(100dvh - 64px)); max-height: calc(100dvh - 64px); border-radius: 25px; background: #fdfbff; }
.discovery-dialog .dialog-heading { padding: 24px 32px 18px; }
.discovery-dialog .dialog-heading h2 { font-size: 28px; letter-spacing: -.035em; }
.discovery-dialog .dialog-body { padding: 18px 32px 24px; overflow-x: hidden; }
.discovery-dialog .dialog-intro { max-width: 650px; margin: 0 0 8px; font-size: 12px; }
.discovery-dialog:has(#discovery-case-detail:not([hidden])) .dialog-intro { display: none; }
#discovery-filter { display: block; width: 100%; padding: 13px 16px; border: 1px solid #e5dbef; border-radius: 11px; color: #392746; background: #fff; font: inherit; font-size: 13px; }
#discovery-filter::placeholder { color: #a28fad; }
.discovery-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.discovery-group { padding: 7px 11px; border: 1px solid #eae2f2; border-radius: 8px; color: #866f98; font-size: 11px; background: #fff; }
.discovery-group[aria-pressed="true"] { color: #674193; background: #eee5f9; border-color: #d8c4ec; }
.discovery-section-title { margin: 0 0 13px; color: #49345e; font-size: 13px; font-weight: 600; }
.discovery-ideas { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 25px; }
.discovery-ideas:empty { display: none; }
.discovery-idea { display: flex; flex-direction: column; min-width: 0; gap: 9px; text-align: left; background: #fff; border: 1px solid #e8dcf4; border-radius: 13px; padding: 18px; transition: border-color .15s, background .15s; }
.discovery-idea strong { font-size: 14px; line-height: 1.4; font-weight: 600; color: #3f2c59; }
.discovery-idea span { font-size: 11px; line-height: 1.65; color: #7c668f; }
.discovery-idea small { margin-top: auto; font-size: 10px; color: #8156ad; }
.discovery-idea:hover { border-color: #b99bd6; background: #faf6ff; }
.discovery-idea .discovery-case-audience { margin: 0; font-size: 9px; color: #8c739e; }
.discovery-idea .discovery-case-return { padding-top: 9px; }
.discovery-modes { display: flex; gap: 6px; border-bottom: 1px solid #e8dff0; margin: 0 0 20px; }
.discovery-modes button { color: #8a739d; padding: 10px 15px 12px; border-bottom: 2px solid transparent; font-size: 13px; }
.discovery-modes button[aria-pressed="true"] { color: #69419e; border-bottom-color: #9365cb; font-weight: 600; }
.discovery-case-detail { max-width: 710px; margin: 0 auto; }
.discovery-case-back { color: #86629f; font-size: 12px; padding: 5px 0; margin-bottom: 26px; }
.discovery-case-scope { font-size: 11px; color: #896ca0; margin: 0 0 12px; }
.discovery-case-detail h3 { color: #30214e; font-size: 27px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 12px; }
.discovery-case-detail > .discovery-case-purpose { color: #85718f; font-size: 13px; line-height: 1.65; margin: 0 0 28px; }
.discovery-case-detail .discovery-kicker { font-size: 9px; letter-spacing: .12em; color: #9b85ad; margin: 0 0 10px; }
.discovery-case-question { margin: 0; border: 1px solid #e8dbf6; border-radius: 15px; padding: 22px; background: linear-gradient(130deg,#f4eefb,#fff); color: #4f386d; font-size: 16px; line-height: 1.8; }
.discovery-case-caveat { font-size: 11px; color: #8d789a; line-height: 1.7; margin: 16px 2px 24px; }
.discovery-case-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 5px 0 12px; }
.discovery-case-use { background: #7545b2; color: #fff; border-radius: 10px; padding: 13px 18px; font-size: 13px; }
.discovery-case-use:hover { background: #6535a2; }
.discovery-case-actions span { font-size: 11px; color: #8c789b; }
:is(.discovery-modes button,.discovery-case-back,.discovery-case-use):focus-visible { outline: 2px solid #9367bd; outline-offset: 3px; }
.discovery-words-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
#discovery-count { font-size: 10px; color: #9b87a9; }
.discovery-words { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.discovery-word { min-width: 0; border: 1px solid #ece5f2; background: #fff; border-radius: 12px; padding: 15px; }
.discovery-word-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.discovery-word h3 { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 600; color: #493059; }
.discovery-use { flex-shrink: 0; color: #8155ab; font-size: 10px; padding: 3px 0 6px; }
.discovery-word p { color: #8b759c; font-size: 11px; line-height: 1.6; margin: 6px 0 0; overflow-wrap: anywhere; }
.discovery-word .discovery-phrase { color: #644c79; background: #f9f6fc; padding: 8px 10px; border-radius: 7px; margin: 11px 0; }
.discovery-source { font-size: 9px; color: #a18dad; }
.discovery-source summary { cursor: pointer; }
.discovery-source p { font-size: 10px; }
.discovery-more { display: block; margin: 20px auto 0; padding: 10px 17px; border: 1px solid #e0d3ec; border-radius: 9px; font-size: 12px; color: #75538f; }
.discovery-empty { padding: 22px 0; font-size: 12px; color: #8c779b; line-height: 1.7; }
:is(.keyword-option,.keyword-all,.discovery-group,.discovery-use,.discovery-more,.discovery-idea,.discovery-example):focus-visible { outline: 2px solid #9367bd; outline-offset: 3px; }
@media(max-width: 760px) {
  .featured-examples { grid-template-columns: 1fr; gap: 7px; }
  .featured-examples .discovery-example:nth-child(3) { display: flex; }
  .discovery-example { min-height: 0; padding: 10px 12px; gap: 4px; }
  .discovery-example strong { font-size: 11px; line-height: 1.45; }
  .discovery-example-action { display: none; }
  .discovery-example .discovery-kicker { font-size: 8px; }
  .keyword-suggestions { gap: 6px; padding: 9px 12px; }
  #keyword-prompt { display: none; }
  .keyword-options { flex: 1; }
  .keyword-option { padding: 8px; }
  .discovery-dialog { inset: 10px; width: auto; height: auto; max-height: calc(100dvh - 20px); border-radius: 20px; }
  .discovery-dialog .dialog-heading { padding: 22px 20px 16px; }
  .discovery-dialog .dialog-heading h2 { font-size: 23px; }
  .discovery-dialog .dialog-body { padding: 18px 20px; }
  .discovery-groups { margin-bottom: 22px; }
  .discovery-group { padding: 9px 10px; }
  .discovery-ideas, .discovery-words { grid-template-columns: 1fr; }
  .discovery-case-detail h3 { font-size: 23px; }
  .discovery-case-question { font-size: 14px; padding: 16px; line-height: 1.7; }
  .discovery-case-actions { gap: 12px; }
  .discovery-case-use { width: 100%; }
  .discovery-use { padding: 5px 0 8px; }
}

/* Keep discovery within the space between navigation and the map footer. */
body[data-view="welcome"] .search-hub {
  top: 88px; bottom: 64px; transform: translateX(-50%);
  width: min(820px, calc(100% - 36px)); overflow-y: auto; overflow-x: hidden;
  padding: 16px 14px; scrollbar-width: thin; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: safe center;
}
body[data-view="welcome"] .search-hub > * { flex-shrink: 0; }
body[data-view="welcome"] .hero { margin-bottom: 24px; }
body[data-view="welcome"] .hero h1 { font-size: clamp(40px,4vw,62px); margin: 10px 0 15px; }
body[data-view="welcome"] .inspiration { margin-top: 22px; }
@media (min-height: 801px) and (max-height: 900px) and (min-width: 761px) {
  body[data-view="welcome"] .hero { margin-bottom: 16px; }
  body[data-view="welcome"] .hero h1 { margin: 8px 0 10px; }
  body[data-view="welcome"] .inspiration { margin-top: 16px; }
  body[data-view="welcome"] .explore-map { margin-top: 12px; }
}
@media (max-height: 800px) and (min-width: 761px) {
  body[data-view="welcome"] .hero .eyebrow { display: none; }
  body[data-view="welcome"] .hero h1 { font-size: 42px; }
  body[data-view="welcome"] .hero p { font-size: 12px; }
  body[data-view="welcome"] .hero { margin-bottom: 18px; }
  .discovery-example { min-height: 140px; padding: 14px; gap: 8px; }
}
@media (max-width: 760px) {
  body[data-view="welcome"] .search-hub { top: 74px; bottom: 48px; width: 100%; padding: 14px 18px 22px; }
  body[data-view="welcome"] .hero h1 { font-size: 42px; }
  body[data-view="welcome"] .hero .eyebrow { display: none; }
  body[data-view="welcome"] .hero { margin-bottom: 18px; }
  body[data-view="welcome"] .inspiration { margin-top: 18px; }
}

.search-frame .saved-suggestions {
  position: static; padding: 5px 10px; border: 0; border-top: 1px solid #eee7f5;
  border-radius: 0 0 23px 23px; background: transparent; box-shadow: none;
  max-height: 150px; overflow: auto; scrollbar-width: thin;
}
.search-frame .saved-suggestion { padding: 10px 7px; }
.search-frame .saved-suggestion strong { font-size: 11px; }

#discovery-words-section { margin-bottom: 25px; }
/* Linked facts share the same reading rhythm as the object sheet. */
.enrich-heading { margin: 20px 0 10px; font-size: 14px; color: var(--ink, #28224f); }
.enrich-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 14px 0; }
.enrich-facts > div { min-width: 0; }
.enrich-facts dt { font-size: 11px; color: #837591; margin-bottom: 4px; }
.enrich-facts dd { font-size: 15px; font-weight: 600; color: #4b3467; margin: 0; overflow-wrap: anywhere; }
.enrich-fold { border-top: 1px solid #eee7f5; margin-top: 12px; padding: 12px 0 0; min-width: 0; }
.enrich-fold > summary { color: #745596; font-size: 12px; cursor: pointer; line-height: 1.5; }
.enrich-fold > summary:focus-visible { outline: 2px solid #8550cc; outline-offset: 4px; border-radius: 4px; }
.enrich-fold[open] > summary { margin-bottom: 14px; }
.enrich-energy-card { padding: 16px; margin: 10px 0; border: 1px solid #e7ddef; border-radius: 16px; background: linear-gradient(135deg, #f8f5fd, #fff); }
.enrich-energy-scale { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; margin: 12px 0; font-size: 11px; font-weight: 600; }
.enrich-energy-scale > div { display: flex; gap: 3px; align-items: center; }
.energy-grade { flex: 1; padding: 6px 0; text-align: center; border-radius: 4px; color: #172d22; background: var(--grade); opacity: .48; }
.energy-grade.is-current { outline: 2px solid #312648; outline-offset: 2px; font-size: 15px; font-weight: 800; padding: 9px 0; opacity: 1; }
.grade-A { --grade: #5baf88; }.grade-B { --grade: #8ac28a; }.grade-C { --grade: #bed493; }.grade-D { --grade: #efdc8c; }.grade-E { --grade: #edbb84; }.grade-F { --grade: #e59b87; }.grade-G { --grade: #da8295; }
.enrich-profile { border-radius: 14px; background: #f8f5fc; padding: 1px 16px 14px; margin: 18px 0; }
.enrich-bars { display: grid; gap: 11px; margin: 14px 0 22px; }
.enrich-bars > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
.enrich-bars dt { font-size: 12px; color: #655477; overflow-wrap: anywhere; }
.enrich-bars dd { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.enrich-track { grid-column: 1 / -1; display: block; height: 5px; border-radius: 9px; background: #eae2f3; overflow: hidden; }
.enrich-track i { height: 100%; display: block; background: linear-gradient(90deg, #8e63c2, #ba9cdc); border-radius: inherit; }
.enrich-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 12px; margin: 12px 0; }
.enrich-table th, .enrich-table td { text-align: right; padding: 9px 4px; border-bottom: 1px solid #ede6f3; overflow-wrap: anywhere; vertical-align: top; font-variant-numeric: tabular-nums; }
.enrich-table th:first-child, .enrich-table td:first-child { text-align: left; }
.enrich-table thead { color: #867790; font-size: 10px; }
.enrich-table tbody th { font-weight: 500; color: #58406c; }
.enrich-nearby-item { padding: 12px 0; border-bottom: 1px solid #eee7f5; }
.enrich-nearby-item > strong { display: block; font-size: 13px; }
.enrich-distance { display: block; font-size: 12px; color: #8c6a33; margin-top: 5px; }

/* Catalogue layers are lightweight overlays, separate from saved search criteria. */
.map-data-key { position:relative; color:#493661; font-size:12px; }
.map-data-key > summary { list-style:none; padding:14px 16px; background:rgba(255,255,255,.97); border:1px solid #e5dcef; border-radius:14px; cursor:pointer; box-shadow:0 4px 18px #21153908; white-space:nowrap; }
.map-data-key > summary::-webkit-details-marker { display:none; }
.map-data-popover { position:absolute; bottom:calc(100% + 10px); right:0; width:300px; max-width:calc(100vw - 24px); padding:18px; border:1px solid #e5dcef; border-radius:18px; background:#fff; box-shadow:0 10px 40px #2115391a; }
.map-data-popover .eyebrow { font-size:10px; margin:0 0 8px; }
.map-data-row { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid #f0ebf5; }
.map-data-row::before { content:""; flex:0 0 10px; height:10px; border-radius:3px; background:var(--layer-color); margin-top:4px; }
.map-data-row > div { flex:1; min-width:0; }
.map-data-row strong { display:block; font-size:12px; line-height:1.5; }
.map-data-row small { display:block; margin-top:4px; font-size:11px; color:#81738f; line-height:1.5; }
.map-data-row > button { border:0; background:#f7f4fb; border-radius:8px; color:#6f568e; min-width:30px; min-height:30px; cursor:pointer; }
.map-data-popover > button,.map-data-action { border:0; background:none; padding:10px 0 0; color:#7650ab; font-size:12px; cursor:pointer; }
.map-data-popover > p:last-child { font-size:10px; color:#93859e; margin:10px 0 0; }
.enrich-activity { margin:8px 0; }
@media(max-width:760px) { .map-controls { flex-wrap:wrap; justify-content:flex-end; max-width:calc(100vw - 20px); } .map-data-popover { right:0; } }
.map-data-key { position:static; }
.map-controls:has(.map-data-key[open]) { z-index:35; }
.catalog-cluster { background:none; border:0; }
.catalog-cluster > span { display:flex; width:44px; height:44px; align-items:center; justify-content:center; border-radius:50%; background:color-mix(in srgb,var(--layer-color) 88%,white); color:white; border:3px solid white; box-shadow:0 2px 9px #16283929; font-size:11px; font-weight:650; font-variant-numeric:tabular-nums; }
.catalog-layer-status { display:block; color:#31847f; font-size:11px; padding:4px 0; }
.catalog-layer-status[hidden] { display:none; }
/* Unlike modal drawers, the catalogue leaves the map usable and needs its own stack level. */
#catalog-dialog { z-index:60; }

/* Planning: the site rules lead; support programmes remain secondary. */
.planning-support { margin-top: 18px; border-top: 1px solid #e9e3ef; }
.planning-support > summary strong { color: #6c5d79; font-size: 12px; }
.planning-support > summary small { font-size: 11px; color: #8a7897; line-height: 1.5; }
.planning-support[open] > summary .analysis-expand { font-size: 0; }
.planning-support[open] > summary .analysis-expand::after { content: '−'; font-size: 15px; }
.planning-support > .analysis-note { margin: 6px 0 10px; font-size: 11px; }
.planning-programme { margin: 0; padding: 0; }
.planning-programme > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; padding: 11px 0; list-style: none; }
.planning-programme > summary::-webkit-details-marker { display: none; }
.planning-programme > summary::after { content: '+'; grid-column: 2; grid-row: 1 / 3; align-self: center; color: #a38ab6; }
.planning-programme[open] > summary::after { content: '−'; }
.planning-programme > summary strong { grid-column: 1; font-size: 11px; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.planning-programme > summary small { grid-column: 1; color: #91839d; font-size: 10px; }
.planning-programme[open] > summary { margin-bottom: 5px; }
.analysis-policy-highlight > .analysis-fold { grid-column: 1 / -1; margin: 4px 0 0; border: 0; }
.analysis-policy-highlight > .analysis-fold > summary { padding: 4px 0; font-size: 10px; }

/* Business layers: one compact choice per map overlay, metadata on demand. */
#catalog-dialog { width: min(426px, calc(100vw - 32px)); }
#catalog-dialog .dialog-heading { padding: 25px 24px 17px; }
#catalog-dialog .dialog-heading .eyebrow { font-size: 9px; margin-bottom: 9px; }
#catalog-dialog .dialog-heading h2 { font-size: 23px; line-height: 1.25; }
#catalog-dialog .catalog-toolbar { padding: 0 24px; flex: 0 0 auto; }
#catalog-dialog .dialog-heading { flex: 0 0 auto; }
#catalog-dialog .dialog-body { padding: 0 24px 8px; min-height: 0; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #dfd5e9 transparent; }
#catalog-dialog .dialog-body::-webkit-scrollbar { width: 5px; }
#catalog-dialog .dialog-body::-webkit-scrollbar-thumb { background: #dfd5e9; border-radius: 8px; }
#catalog-filter { margin: 18px 0 0; width: 100%; box-sizing: border-box; font-size: 12px; padding: 12px 13px; border-radius: 11px; }
#catalog-map-note { font-size: 10px; line-height: 1.55; color: #8c7b9c; margin: 9px 0 10px; }
.catalog-theme { border-bottom: 1px solid #ede7f3; }
.catalog-theme > summary { display: flex; align-items: center; gap: 12px; padding: 10px 0; list-style: none; cursor: pointer; }
.catalog-theme > summary::-webkit-details-marker, .catalog-overlay-info > summary::-webkit-details-marker { display: none; }
.catalog-theme > summary > svg { flex: 0 0 23px; width: 23px; height: 23px; fill: none; stroke: #936bbb; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.catalog-theme > summary > span:nth-child(2) { flex: 1; min-width: 0; }
.catalog-theme strong { display: block; color: #38284d; font-size: 13px; font-weight: 600; }
.catalog-theme small { display: block; font-size: 10px; color: #96859f; margin-top: 4px; line-height: 1.45; }
.catalog-theme-arrow { font-size: 18px; color: #9e85b7; }
.catalog-theme[open] > summary .catalog-theme-arrow { font-size: 0; }
.catalog-theme[open] > summary .catalog-theme-arrow::after { content: '−'; font-size: 18px; }
.catalog-theme[open] { padding-bottom: 9px; }
.catalog-theme[open] > summary { padding-bottom: 11px; }
.catalog-overlay { position: relative; border-radius: 10px; margin: 2px 0; padding: 0 9px; }
.catalog-overlay:has([aria-pressed="true"]) { background: color-mix(in srgb, var(--layer-color) 6%, white); }
.catalog-overlay-toggle { display: flex; align-items: center; gap: 14px; width: calc(100% - 29px); min-height: 44px; border: 0; background: none; color: #604873; cursor: pointer; text-align: left; padding: 8px 0; }
.catalog-overlay-toggle > span:first-child { flex: 1; font-size: 12px; line-height: 1.45; }
.catalog-switch { position: relative; width: 27px; height: 16px; border-radius: 12px; background: #e6deee; flex-shrink: 0; }
.catalog-switch::before { content: ''; position: absolute; width: 12px; height: 12px; top: 2px; left: 2px; background: white; border-radius: 50%; box-shadow: 0 1px 2px #3423441a; transition: transform .15s ease; }
.catalog-overlay-toggle[aria-pressed="true"] .catalog-switch { background: var(--layer-color); }
.catalog-overlay-toggle[aria-pressed="true"] .catalog-switch::before { transform: translateX(11px); }
.catalog-overlay-toggle[aria-pressed="true"] { color: var(--layer-color); }
.catalog-overlay-info > summary { list-style: none; position: absolute; right: 7px; top: 8px; width: 26px; height: 28px; display: grid; place-items: center; color: #a999b8; font-family: Georgia, serif; font-size: 12px; font-style: italic; cursor: pointer; border-radius: 7px; }
.catalog-overlay-info > summary:hover, .catalog-overlay-info[open] > summary { background: #eee7f6; color: #634280; }
.catalog-overlay-info > div { padding: 3px 2px 10px; }
.catalog-overlay-info p { margin: 5px 0; font-size: 11px; color: #8c7b99; line-height: 1.55; overflow-wrap: anywhere; }
.catalog-overlay-info p:first-child { color: #705b7e; }
.catalog-theme .catalog-layer-status { margin: 0; padding: 0 0 8px; font-size: 10px; color: #8b7b99; }
.catalog-active-heading { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #8b7b99; margin: 4px 0 8px; }
.catalog-active-heading button, .catalog-footer button, .catalog-back { border: 0; background: none; color: #8059a5; padding: 4px 0; cursor: pointer; font-size: 11px; }
.catalog-active-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 17px; border-bottom: 1px solid #ede7f3; }
.catalog-active-chips button { display: flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb,var(--layer-color) 22%, white); border-radius: 7px; padding: 7px 9px; font-size: 10px; text-align: left; color: var(--layer-color); background: color-mix(in srgb,var(--layer-color) 5%, white); cursor: pointer; }
.catalog-active-chips button::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--layer-color); flex-shrink: 0; }
.catalog-footer { padding: 12px 24px 16px; flex: 0 0 auto; border-top: 1px solid #ede7f3; }
.catalog-footer span { display: block; margin-top: 3px; font-size: 10px; color: #a294ac; }
.catalog-back { margin: 14px 0 5px; }
.catalog-source { border-bottom: 1px solid #ede7f3; padding: 14px 0; }
.catalog-source > summary { font-size: 12px; color: #634b7d; cursor: pointer; line-height: 1.5; }
.catalog-source p, .catalog-source-fields summary { font-size: 11px; line-height: 1.6; color: #92829f; overflow-wrap: anywhere; }
#catalog-dialog button:focus-visible, #catalog-dialog summary:focus-visible { outline: 2px solid #8c59c5; outline-offset: 2px; border-radius: 6px; }
#catalog-dialog [hidden], .map-data-row [hidden] { display: none !important; }
/* Preserve keyboard/touch scrolling without an always-visible rail over the hero. */
body[data-view="welcome"] .search-hub { scrollbar-width: none; }
body[data-view="welcome"] .search-hub::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  #catalog-dialog { inset: 12px; width: calc(100vw - 24px); height: auto; max-height: calc(100dvh - 24px); }
  #catalog-dialog .dialog-heading { padding: 22px 20px 17px; }
  #catalog-dialog .dialog-body { padding: 0 20px 8px; }
  #catalog-dialog .catalog-toolbar { padding: 0 20px; }
  #catalog-dialog .catalog-footer { padding: 12px 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-switch::before { transition: none; } }
