:root {
  --obs-ink: #181b19;
  --obs-charcoal: #202725;
  --obs-paper: #f6f3ed;
  --obs-paper-2: #eeeae2;
  --obs-sage: #8fa19d;
  --obs-sage-dark: #526763;
  --obs-line: rgba(24, 27, 25, .14);
  --obs-red: #e6322e;
  --obs-shadow: 0 12px 30px rgba(25, 34, 31, .09);
}

* { scrollbar-width: thin; scrollbar-color: rgba(41, 50, 47, .28) transparent; }

body.observatory-theme {
  margin: 0;
  min-height: 100vh;
  padding: 38px 46px;
  background:
    linear-gradient(rgba(103, 121, 117, .18), rgba(103, 121, 117, .18)),
    url("./assets/atlas-atmosphere-v1.png") center / cover fixed no-repeat;
  color: var(--obs-ink);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
}

.observatory-theme .shell {
  width: min(1800px, 100%);
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.observatory-theme .topbar {
  position: sticky;
  z-index: 30;
  top: 10px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(300px, 1fr);
  min-height: 62px;
  margin-left: 246px;
  padding: 0 25px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(105deg, rgba(31, 40, 38, .975), rgba(43, 54, 51, .965));
  color: #fff;
  box-shadow: inset 0 -1px rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px) saturate(.8);
}
.observatory-theme .brand { gap: 10px; }
.observatory-theme .brand-mark.observatory-logo {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.observatory-theme .brand h1 {
  margin: 0;
  color: #fbf8f1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.025em;
}
.observatory-theme .brand p { margin-top: 2px; color: rgba(255, 255, 255, .48); font: 600 8px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.observatory-theme .atlas-nav { display: flex; align-self: stretch; gap: 32px; }
.observatory-theme .atlas-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .73);
  font: 600 9px "DM Mono", monospace;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.observatory-theme .atlas-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: transparent; content: ""; }
.observatory-theme .atlas-nav a:hover,
.observatory-theme .atlas-nav a.is-active { color: #fff; }
.observatory-theme .atlas-nav a.is-active::after { background: var(--obs-red); }
.observatory-theme .topbar-meta { justify-self: end; display: flex; align-items: center; gap: 17px; }
.observatory-theme .cutoff {
  padding: 7px 10px;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .66);
  font: 600 8px "DM Mono", monospace;
}
.observatory-theme .cutoff::before { background: #f2efe6; box-shadow: none; }
.observatory-theme .topbar-signal { width: 10px; height: 10px; background: var(--obs-red); box-shadow: 0 0 0 4px rgba(230, 50, 46, .12); }

.observatory-theme .product-grid {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr) 392px;
  align-items: start;
  min-height: calc(100vh - 90px);
  background: transparent;
}

.observatory-theme .source-rail {
  position: sticky;
  top: 106px;
  height: calc(100vh - 126px);
  min-height: 640px;
  margin-top: 18px;
  margin-right: 22px;
  padding: 20px 16px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 9px;
  background:
    linear-gradient(rgba(241, 241, 235, .78), rgba(241, 241, 235, .9)),
    url("./assets/atlas-atmosphere-v1.png") 10% center / auto 100% no-repeat;
  box-shadow: 0 20px 50px rgba(24, 33, 30, .1);
  backdrop-filter: blur(16px) saturate(.8);
}
.observatory-theme .rail-heading,
.observatory-theme .source-strength > span,
.observatory-theme .rail-country > span,
.observatory-theme .control-label,
.observatory-theme .panel-kicker {
  color: #59625e;
  font: 600 8px "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.observatory-theme .rail-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--obs-line); color: var(--obs-ink); }
.observatory-theme .rail-heading i { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--obs-line); border-radius: 50%; font-style: normal; }
.observatory-theme .source-strength { padding: 16px 0 11px; border-bottom: 1px solid var(--obs-line); }
.observatory-theme .source-strength > span { display: block; margin-bottom: 10px; }
.observatory-theme .source-strength p { display: flex; align-items: center; gap: 7px; margin: 7px 0; color: #5b635f; font-size: 10px; }
.observatory-theme .source-dot { width: 7px; height: 7px; border-radius: 50%; background: #bcc0bc; }
.observatory-theme .source-dot.high { background: var(--obs-red); }
.observatory-theme .source-dot.medium { background: #627b84; }
.observatory-theme .source-dot.low { background: #b8bbb7; }
.observatory-theme .rail-country { padding: 16px 0 8px; }
.observatory-theme .rail-country span { display: block; margin-bottom: 5px; }
.observatory-theme .rail-country strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.observatory-theme .provenance-list { display: grid; gap: 5px; margin-top: 8px; }
.observatory-theme .provenance-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(24, 27, 25, .09); }
.observatory-theme .provenance-item > i { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: #627b84; }
.observatory-theme .provenance-item[data-strength="high"] > i { background: var(--obs-red); }
.observatory-theme .provenance-item[data-strength="medium"] > i { background: #627b84; }
.observatory-theme .provenance-item[data-strength="low"] > i { background: #b8bbb7; }
.observatory-theme .provenance-item a { display: block; overflow: hidden; color: #303532; font-size: 9px; font-weight: 700; line-height: 1.3; text-decoration: none; text-overflow: ellipsis; }
.observatory-theme .provenance-item small { display: block; margin-top: 3px; color: #7c837f; font-size: 8px; line-height: 1.35; }
.observatory-theme .rail-empty { color: #7a817d; font-size: 9px; line-height: 1.45; }
.observatory-theme .rail-link { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--obs-line); color: #313735; font: 700 8px "DM Mono", monospace; text-decoration: none; text-transform: uppercase; }

.observatory-theme .atlas-center { min-width: 0; padding: 16px 16px 28px; background: rgba(247, 245, 239, .965); }
.observatory-theme .controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(145px, .68fr) minmax(175px, .78fr) auto;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.observatory-theme input,
.observatory-theme select {
  min-height: 41px;
  border-color: var(--obs-line);
  border-radius: 5px;
  background: rgba(255, 255, 252, .84);
  color: var(--obs-ink);
  font-size: 10px;
  box-shadow: 0 4px 12px rgba(25, 34, 31, .04);
}
.observatory-theme .control input { padding-left: 38px; }
.observatory-theme .selected-country { min-height: 41px; padding: 0 11px; border-color: var(--obs-line); border-radius: 5px; background: rgba(255, 255, 252, .72); color: #69716d; font-size: 9px; }
.observatory-theme .mode-switch-wrap { grid-column: 1 / -1; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 8px; }
.observatory-theme .view-switch { min-height: 43px; gap: 0; padding: 0; overflow: hidden; border-color: var(--obs-line); border-radius: 5px; background: rgba(255, 255, 252, .82); box-shadow: 0 4px 12px rgba(25, 34, 31, .04); }
.observatory-theme .view-switch button { min-height: 41px; border-right: 1px solid rgba(24, 27, 25, .09); border-radius: 0; color: #56605c; font: 650 9px "Manrope", sans-serif; }
.observatory-theme .view-switch button:last-child { border-right: 0; }
.observatory-theme .view-switch button[aria-pressed="true"] { background: #252c2a; color: #fff; box-shadow: inset 0 -2px var(--obs-red); }
.observatory-theme .motion-switch::before { display: none; }
.observatory-theme .fluid-tooltip { position: absolute; margin-top: 50px; }

.observatory-theme .lens-controls {
  display: grid;
  grid-template-columns: 116px minmax(320px, .72fr) minmax(250px, 1fr);
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.observatory-theme .lens-controls .view-switch { min-height: 39px; }
.observatory-theme .lens-controls .view-switch button { min-height: 37px; }
.observatory-theme .lens-hint { margin: 0; color: #717a76; font-size: 8px; line-height: 1.35; }

.observatory-theme .stats { gap: 7px; margin: 0 0 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.observatory-theme .stat {
  position: relative;
  min-height: 69px;
  padding: 12px 12px 9px;
  border: 1px solid var(--obs-line);
  border-radius: 6px;
  background: rgba(255, 255, 252, .78);
  box-shadow: 0 5px 13px rgba(25, 34, 31, .045);
}
.observatory-theme .stat + .stat { border-left: 1px solid var(--obs-line); }
.observatory-theme .stat::after { position: absolute; right: 11px; bottom: 10px; width: 19px; height: 19px; border: 1px solid rgba(24, 27, 25, .13); border-radius: 50%; content: ""; }
.observatory-theme .stat small { min-height: 23px; margin: 0; color: #59625e; font-size: 7px; line-height: 1.25; }
.observatory-theme .stat strong { color: #303532; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.observatory-theme .stat.yes strong { color: #35443f; }
.observatory-theme .stat.conditional strong { color: #7c918a; }
.observatory-theme .stat.no strong { color: var(--obs-red); }
.observatory-theme .stat.uncertain strong { color: #8a7895; }
.observatory-theme .research-summary { gap: 8px 16px; margin: 0 0 7px; }
.observatory-theme .research-summary .subtle { font-size: 8px; }
.observatory-theme .warning { margin: 0 0 8px; padding: 7px 9px; border-color: rgba(24, 27, 25, .1); border-radius: 5px; background: rgba(245, 242, 234, .72); color: #676c68; font-size: 8px; }
.observatory-theme .warning svg { width: 14px; height: 14px; }
.observatory-theme .warning strong { color: #303532; }
.observatory-theme .criteria-toggle { color: #425e58; }

.observatory-theme .workspace { display: block; }
.observatory-theme .panel { border-color: var(--obs-line); border-radius: 7px; background: rgba(252, 250, 244, .95); box-shadow: var(--obs-shadow); }
.observatory-theme .map-head,
.observatory-theme .detail-head { min-height: 60px; padding: 12px 14px 10px; border-color: var(--obs-line); background: rgba(250, 248, 242, .94); }
.observatory-theme .map-head h3,
.observatory-theme .detail-head h3 { margin: 2px 0; color: var(--obs-ink); font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.observatory-theme .map-frame,
.observatory-theme #map { min-height: 510px; }
.observatory-theme .map-frame {
  overflow: hidden;
  background:
    linear-gradient(rgba(231, 234, 228, .74), rgba(239, 239, 233, .82)),
    url("./assets/atlas-atmosphere-v1.png") center 66% / cover no-repeat;
}
.observatory-theme .map-frame::before {
  background-image: radial-gradient(circle, rgba(44, 63, 58, .35) .7px, transparent .84px);
  background-size: 10px 10px;
  mix-blend-mode: multiply;
  opacity: .13;
}
.observatory-theme #map svg { filter: drop-shadow(0 10px 16px rgba(49, 63, 59, .08)); }
.observatory-theme .country { stroke: rgba(249, 248, 243, .94); stroke-width: .75px; }
.observatory-theme .country:hover,
.observatory-theme .country.selected { stroke: #191d1b; stroke-width: 1.5px; }
.observatory-theme .country:focus,
.observatory-theme .country:focus-visible { outline: none; }
.observatory-theme .country:focus-visible { stroke: var(--obs-red); stroke-width: 2.35px; filter: drop-shadow(0 0 2px rgba(223,91,82,.42)); }
.observatory-theme .country.selected { stroke: var(--obs-red); stroke-width: 2.35px; filter: drop-shadow(0 0 2px rgba(223,91,82,.42)); }
.observatory-theme .ocean-line { stroke: #b9c7c3; }
.observatory-theme .legend { gap: 7px 12px; padding: 10px 13px 12px; border-color: var(--obs-line); background: rgba(251, 249, 243, .97); }
.observatory-theme .legend-item { font-size: 8px; }
.observatory-theme .review-legend { flex-basis: auto; }
.observatory-theme .map-tooltip { border-radius: 4px; background: rgba(30, 37, 35, .95); font-size: 9px; }

.observatory-theme .detail {
  position: sticky;
  top: 100px;
  height: calc(100vh - 138px);
  min-height: 640px;
  overflow: hidden;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: rgba(251, 249, 243, .97);
  box-shadow: -9px 0 30px rgba(30, 39, 36, .055);
}
.observatory-theme .detail-head { position: sticky; z-index: 4; top: 0; }
.observatory-theme #detail-content { height: calc(100% - 60px); overflow: auto; }
.observatory-theme .detail-body { padding: 14px 16px 24px; }
.observatory-theme .detail-title { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.observatory-theme .detail-headline { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.35; }
.observatory-theme .detail-text,
.observatory-theme .case-detail,
.observatory-theme .case p { color: #4f5753; font-size: 9px; line-height: 1.5; }
.observatory-theme .status-pill { border-radius: 4px; background: #ece9e1; font: 600 8px "DM Mono", monospace; }
.observatory-theme .dimension-grid { gap: 6px; }
.observatory-theme .dimension { padding: 9px; border-color: var(--obs-line); border-radius: 4px; background: #f4f1e9; }
.observatory-theme .dimension small,
.observatory-theme .section-label { font-family: "DM Mono", monospace; font-size: 8px; }
.observatory-theme .case,
.observatory-theme .source-row { border-color: var(--obs-line); }
.observatory-theme .case { background: #f8f6f0; }
.observatory-theme .caveat { border-color: #d8d1c2; background: #f2ede3; color: #5e5a51; }

.observatory-theme .below { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.observatory-theme .list-head { padding: 11px 13px 8px; }
.observatory-theme .list-head h3 { font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-weight: 500; }
.observatory-theme .record-list { background: #e6e6df; }
.observatory-theme .record-button { min-height: 82px; padding: 10px; }
.observatory-theme .record-button strong,
.observatory-theme .universe-item strong { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.observatory-theme .record-button:hover,
.observatory-theme .universe-item:hover { background: #f0f1eb; }
.observatory-theme .method { margin: 0; padding: 22px 24px; border: 0; border-top: 1px solid var(--obs-line); border-radius: 0; background: #e9e7df; }
.observatory-theme .method h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.observatory-theme .method li::before { background: var(--obs-red); }
.observatory-theme .footer { margin: 0; padding: 17px 24px 22px; border-color: var(--obs-line); background: #e9e7df; }

@media (max-width: 1360px) {
  body.observatory-theme { padding: 22px 24px; }
  .observatory-theme .topbar { margin-left: 192px; }
  .observatory-theme .product-grid { grid-template-columns: 192px minmax(0, 1fr) minmax(330px, 360px); }
  .observatory-theme .controls { grid-template-columns: minmax(200px, 1fr) 140px 160px; }
  .observatory-theme .selected-country { grid-column: 1 / -1; justify-self: start; min-height: 27px; }
  .observatory-theme .lens-controls { grid-template-columns: 105px minmax(310px, 1fr); }
  .observatory-theme .lens-hint { grid-column: 2; }
}

@media (max-width: 1080px) {
  body.observatory-theme { padding: 6px; }
  .observatory-theme .shell { border-width: 0; border-radius: 0; }
  .observatory-theme .topbar { margin-left: 0; }
  .observatory-theme .topbar { grid-template-columns: 1fr auto; }
  .observatory-theme .atlas-nav { display: none; }
  .observatory-theme .product-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 350px); }
  .observatory-theme .source-rail { display: none; }
  .observatory-theme .map-frame,
  .observatory-theme #map { min-height: 440px; }
}

@media (max-width: 780px) {
  body.observatory-theme { padding: 0; background: var(--obs-paper); }
  .observatory-theme .shell { width: 100%; border: 0; border-radius: 0; }
  .observatory-theme .topbar { min-height: 58px; padding: 0 14px; }
  .observatory-theme .brand p,
  .observatory-theme .cutoff { display: none; }
  .observatory-theme .product-grid { display: block; }
  .observatory-theme .atlas-center { padding: 10px; }
  .observatory-theme .controls { grid-template-columns: 1fr; }
  .observatory-theme .selected-country,
  .observatory-theme .mode-switch-wrap { grid-column: 1; }
  .observatory-theme .mode-switch-wrap { grid-template-columns: 1fr; }
  .observatory-theme .lens-controls { grid-template-columns: 1fr; }
  .observatory-theme .lens-hint { grid-column: 1; }
  .observatory-theme .stats { grid-template-columns: repeat(2, 1fr); }
  .observatory-theme .map-frame,
  .observatory-theme #map { min-height: 320px; }
  .observatory-theme .detail { position: relative; top: auto; height: auto; min-height: 0; border: 1px solid var(--obs-line); border-radius: 7px; }
  .observatory-theme #detail-content { height: auto; max-height: none; }
  .observatory-theme .below { grid-template-columns: 1fr; }
  .observatory-theme .method { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .observatory-theme * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Fidelity pass: reproduce the approved observatory composition at desktop scale. */
@media (min-width: 1180px) {
  body.observatory-theme {
    padding: 0 clamp(44px, 6.22vw, 104px) 0 clamp(18px, 1.61vw, 27px);
    background-position: center;
  }

  .observatory-theme .shell { width: 100%; max-width: none; margin: 0; }

  .observatory-theme .topbar {
    top: 0;
    grid-template-columns: 325px minmax(0, 1fr) 155px;
    min-height: 58px;
    margin-left: 180px;
    padding: 0 23px;
    border-radius: 0;
  }
  .observatory-theme .brand-mark.observatory-logo { width: 28px; height: 28px; }
  .observatory-theme .brand h1 { font-size: 15px; }
  .observatory-theme .brand p { display: none; }
  .observatory-theme .atlas-nav { justify-content: flex-end; gap: clamp(17px, 2.1vw, 34px); }
  .observatory-theme .atlas-nav a { font-size: 10.5px; white-space: nowrap; }
  .observatory-theme .topbar-meta { gap: 13px; }
  .observatory-theme .cutoff { display: none; }
  .observatory-theme .atlas-menu-glyph { color: rgba(255,255,255,.76); font-size: 17px; line-height: 1; }
  .observatory-theme .topbar-rule { width: 28px; height: 1px; background: rgba(255,255,255,.62); }
  .observatory-theme .topbar-signal { width: 11px; height: 11px; box-shadow: none; }
  .observatory-theme .user-orb { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #f5f4ef; color: #26302d; font-size: 18px; }

  .observatory-theme .product-grid {
    grid-template-columns: 180px minmax(0, 1fr) 425px;
    grid-template-rows: auto auto auto auto;
    align-items: start;
    min-height: calc(100vh - 58px);
    background: linear-gradient(90deg, transparent 0 180px, rgba(247,245,239,.97) 180px 100%);
  }
  .observatory-theme .atlas-center { display: contents; }

  .observatory-theme .source-rail {
    grid-column: 1;
    grid-row: 1 / 5;
    top: 80px;
    width: 180px;
    height: calc(100vh - 98px);
    min-height: 0;
    margin: 22px 0 0;
    padding: 17px 16px;
    border-radius: 0;
    background: rgba(242,242,236,.82);
    box-shadow: 0 12px 35px rgba(29,37,35,.08);
  }
  .observatory-theme .rail-heading { padding-bottom: 13px; }
  .observatory-theme .source-strength { padding: 14px 0 10px; }
  .observatory-theme .rail-country { padding-top: 13px; }
  .observatory-theme .rail-country strong { font-size: 15px; }
  .observatory-theme .provenance-item { padding: 7px 0; }
  .observatory-theme .rail-heading,
  .observatory-theme .source-strength > span,
  .observatory-theme .rail-country > span { font-size: 10.5px; }
  .observatory-theme .source-strength p { font-size: 11.5px; }
  .observatory-theme .provenance-item a { font-size: 10.5px; }
  .observatory-theme .provenance-item small { font-size: 9.5px; line-height: 1.45; }

  .observatory-theme .controls {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(205px, 1.1fr) 150px 175px minmax(345px, 1.45fr);
    gap: 7px;
    margin: 39px 10px 29px 24px;
  }
  .observatory-theme input,
  .observatory-theme select { min-height: 40px; height: 40px; font-size: 12px; }
  .observatory-theme input { font-size: 12px; }
  .observatory-theme .selected-country { display: none; }
  .observatory-theme .mode-switch-wrap {
    position: relative;
    grid-column: 4;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .observatory-theme .mode-switch-wrap > .control-label,
  .observatory-theme .lens-controls > .control-label { position: absolute; top: -16px; left: 4px; }
  .observatory-theme .view-switch { min-height: 40px; height: 40px; }
  .observatory-theme .control-label { font-size: 10px; }
  .observatory-theme .view-switch button { min-height: 38px; padding: 0 9px; font-size: 10px; }
  .observatory-theme .mode-switch-wrap .fluid-tooltip { display: none !important; }

  .observatory-theme .lens-controls {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 39px 16px 29px 8px;
  }
  .observatory-theme .lens-controls .view-switch { height: 40px; min-height: 40px; }
  .observatory-theme .lens-controls .view-switch button { min-height: 38px; padding: 0 8px; font-size: 10px; }
  .observatory-theme .lens-hint { display: none; }
  .observatory-theme .utility-actions { display: flex; gap: 6px; }
  .observatory-theme .utility-actions button { width: 38px; height: 40px; padding: 0; border: 1px solid var(--obs-line); border-radius: 5px; background: rgba(255,255,252,.82); color: #505854; font-size: 16px; }
  .observatory-theme .utility-actions button:hover { border-color: #79817d; background: #fff; }

  .observatory-theme .stats {
    grid-column: 2;
    grid-row: 2;
    min-height: 84px;
    margin: 0 10px 18px 24px;
  }
  .observatory-theme .stat { min-height: 84px; padding: 15px 13px 11px; }
  .observatory-theme .stat small { min-height: 28px; font-size: 10.5px; line-height: 1.35; }
  .observatory-theme .stat strong { font-size: 29px; }
  .observatory-theme .stat-total { margin-left: 4px; color: #858b87; font: 500 9px "DM Mono", monospace; }

  .observatory-theme .registry-summary,
  .observatory-theme .research-summary,
  .observatory-theme .warning { display: none !important; }

  .observatory-theme .workspace {
    grid-column: 2;
    grid-row: 3;
    margin: 0 10px 0 24px;
  }
  .observatory-theme .map-panel { border-radius: 4px; box-shadow: 0 8px 20px rgba(27,36,33,.045); }
  .observatory-theme .map-head { min-height: 59px; padding: 12px 14px 9px; }
  .observatory-theme .panel-kicker { font-size: 10px; }
  .observatory-theme .map-head h3 { font-size: 20px; }
  .observatory-theme .map-head .subtle { font-size: 11.5px; }
  .observatory-theme .map-frame,
  .observatory-theme #map { min-height: 400px; height: 400px; }
  .observatory-theme .map-frame { background: #eeeee7; }
  .observatory-theme .map-frame::before { opacity: .075; }
  .observatory-theme #map svg { width: 100%; height: 400px; filter: none; }
  .observatory-theme .legend { min-height: 42px; padding: 8px 12px; }
  .observatory-theme .legend-item { font-size: 10.5px; }
  .observatory-theme .review-legend { flex-basis: 100%; }

  .observatory-theme .detail {
    grid-column: 3;
    grid-row: 2 / 5;
    top: 76px;
    width: auto;
    height: calc(100vh - 174px);
    min-height: 0;
    margin: 8px 16px 0 8px;
    border: 1px solid var(--obs-line);
    border-radius: 4px;
    background: rgba(251,249,243,.97);
    box-shadow: 0 9px 22px rgba(30,39,36,.055);
  }
  .observatory-theme .detail-head { display: none; }
  .observatory-theme #detail-content { height: 100%; }
  .observatory-theme .detail-body { padding: 18px 18px 34px; }
  .observatory-theme .detail-title { margin: 0; font-size: 27px; }
  .observatory-theme .dossier-subtitle { margin: 3px 0 12px; color: #747a76; font-size: 11px; }
  .observatory-theme .dossier-icon { display: block; width: 1em; height: 1em; }
  .observatory-theme .dossier-tabs { position: sticky; z-index: 4; top: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -8px 16px; padding: 0 8px; border-bottom: 1px solid var(--obs-line); background: rgba(251,249,243,.97); backdrop-filter: blur(8px); }
  .observatory-theme .dossier-tabs button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #747b77; font: 650 9.5px "DM Mono", monospace; cursor: pointer; text-transform: uppercase; }
  .observatory-theme .dossier-tabs .dossier-icon { width: 15px; height: 15px; }
  .observatory-theme .dossier-tabs button.is-active { color: #252b29; }
  .observatory-theme .dossier-tabs button.is-active::after { position: absolute; right: 2px; bottom: -1px; left: 2px; height: 2px; background: var(--obs-red); content: ""; }
  .observatory-theme .dossier-conclusion { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; min-height: 54px; padding: 8px 10px; border: 1px solid var(--obs-line); border-radius: 4px; background: #f0eee7; }
  .observatory-theme .dossier-shield { display: grid; place-items: center; width: 31px; height: 36px; border-radius: 3px; background: #222927; color: #fff; font-style: normal; }
  .observatory-theme .dossier-shield .dossier-icon { width: 18px; height: 18px; }
  .observatory-theme .dossier-conclusion small { display: block; margin-bottom: 3px; color: #707773; font: 650 9px "DM Mono", monospace; text-transform: uppercase; }
  .observatory-theme .dossier-conclusion strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
  .observatory-theme .dossier-label { margin: 18px 0 8px; color: #4b524e; font: 700 9.5px "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
  .observatory-theme .dossier-summary { margin: 0; color: #424844; font-size: 11.5px; line-height: 1.62; }
  .observatory-theme .dossier-anchor { scroll-margin-top: 52px; }
  .observatory-theme .research-depth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--obs-line); border-radius: 4px; background: #faf8f2; }
  .observatory-theme .research-depth > div { display: grid; grid-template-columns: 25px minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 7px; min-width: 0; padding: 12px 8px 11px; border-right: 1px solid var(--obs-line); }
  .observatory-theme .research-depth > div:last-child { border-right: 0; }
  .observatory-theme .research-depth > div > i { display: grid; grid-row: 1 / 3; place-items: center; width: 25px; height: 25px; margin-top: 1px; border: 1px solid #d7d5cd; border-radius: 50%; color: #48524e; background: #f1efe8; font-style: normal; }
  .observatory-theme .research-depth > div > i .dossier-icon { width: 14px; height: 14px; }
  .observatory-theme .research-depth strong { grid-column: 2; color: #202624; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; line-height: 1; }
  .observatory-theme .research-depth span { grid-column: 2; display: block; color: #656c68; font: 650 8.5px/1.25 "DM Mono", monospace; text-transform: uppercase; }
  .observatory-theme .dossier-section-hint { margin: -2px 0 9px; color: #707873; font-size: 10.5px; line-height: 1.45; }
  .observatory-theme .dossier-document-list { display: grid; gap: 7px; }
  .observatory-theme .dossier-document { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 74px; padding: 10px; border: 1px solid var(--obs-line); border-radius: 4px; background: #faf8f2; color: #303734; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
  .observatory-theme .dossier-document:hover { border-color: #a9aeaa; background: #fffdf8; transform: translateY(-1px); }
  .observatory-theme .dossier-document-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: #202725; color: #fff; font-style: normal; }
  .observatory-theme .dossier-document-icon .dossier-icon { width: 20px; height: 20px; }
  .observatory-theme .dossier-document-copy { min-width: 0; }
  .observatory-theme .dossier-document-copy > small { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: #6b736f; font: 650 8.5px "DM Mono", monospace; text-transform: uppercase; }
  .observatory-theme .dossier-document-copy > small em { padding: 2px 4px; border-radius: 2px; background: #e8e6df; color: #4a514e; font-style: normal; }
  .observatory-theme .dossier-document-copy > strong { display: block; overflow: hidden; color: #252b29; font-size: 11.5px; line-height: 1.28; text-overflow: ellipsis; }
  .observatory-theme .dossier-document-copy > span { display: block; overflow: hidden; margin-top: 3px; color: #777e7a; font-size: 9.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .observatory-theme .dossier-document > b { display: inline-flex; align-items: center; gap: 5px; color: #4e5753; font: 700 8.5px "DM Mono", monospace; text-transform: uppercase; white-space: nowrap; }
  .observatory-theme .dossier-document > b .dossier-icon { width: 13px; height: 13px; }
  .observatory-theme .dossier-list { overflow: hidden; border: 1px solid var(--obs-line); border-radius: 4px; background: #faf8f2; }
  .observatory-theme .dossier-row,
  .observatory-theme .dossier-test,
  .observatory-theme .dossier-provenance { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 9px; border-bottom: 1px solid rgba(24,27,25,.09); color: #383e3a; font-size: 10.5px; text-decoration: none; }
  .observatory-theme .dossier-row:last-child,
  .observatory-theme .dossier-test:last-child,
  .observatory-theme .dossier-provenance:last-child { border-bottom: 0; }
  .observatory-theme .dossier-row strong { display: block; font-size: 10.8px; }
  .observatory-theme .dossier-row small { display: block; margin-top: 2px; color: #808580; font-size: 9.2px; }
  .observatory-theme .dossier-test-icon,
  .observatory-theme .dossier-provenance-icon { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #eceae3; color: #48514d; font-style: normal; }
  .observatory-theme .dossier-test-icon .dossier-icon,
  .observatory-theme .dossier-provenance-icon .dossier-icon { width: 14px; height: 14px; }
  .observatory-theme .dossier-test > span,
  .observatory-theme .dossier-provenance > span { margin-right: auto; }
  .observatory-theme .dossier-test strong { max-width: 45%; color: #525955; font-size: 10px; text-align: right; }
  .observatory-theme .dossier-test strong.is-negative { color: var(--obs-red); }
  .observatory-theme .dossier-provenance strong { display: flex; align-items: center; gap: 6px; color: #656d68; font-size: 9.2px; }
  .observatory-theme .full-record { margin-top: 20px; overflow: clip; border: 1px solid var(--obs-line); border-radius: 4px; background: rgba(250,248,242,.7); }
  .observatory-theme .full-record > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 13px; color: #222927; font: 700 9.5px "DM Mono", monospace; cursor: pointer; list-style: none; text-transform: uppercase; }
  .observatory-theme .full-record > summary::-webkit-details-marker { display: none; }
  .observatory-theme .full-record-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; background: #222927; color: #fff; font-style: normal; }
  .observatory-theme .full-record-icon .dossier-icon { width: 14px; height: 14px; }
  .observatory-theme .full-record > summary > span { margin-right: auto; }
  .observatory-theme .full-record > summary > small { color: #737a76; font-size: 8.5px; font-weight: 600; text-align: right; }
  .observatory-theme .full-record-body { padding: 14px 13px 20px; border-top: 1px solid var(--obs-line); }
  .observatory-theme .document-source-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 68px; padding: 10px 0; }
  .observatory-theme .source-row-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--obs-line); border-radius: 4px; background: #efede6; color: #414a46; font-style: normal; }
  .observatory-theme .source-row-icon .dossier-icon { width: 17px; height: 17px; }
  .observatory-theme .source-row-content { min-width: 0; }
  .observatory-theme .document-source-row .source-type { display: inline-flex; margin: 0 0 5px; background: #e9e7e0; color: #555d59; }
  .observatory-theme .document-source-row .source-open { display: inline-flex; align-items: center; gap: 4px; padding: 7px 8px; border: 1px solid var(--obs-line); border-radius: 4px; color: #444d49; font: 700 8.5px "DM Mono", monospace; text-decoration: none; text-transform: uppercase; }
  .observatory-theme .document-source-row .source-open .dossier-icon { width: 12px; height: 12px; }

  /* Country dossier: turn the dense legal table into a scannable evidence workspace. */
  .observatory-theme .dossier-masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 2px 2px 15px; border-bottom: 1px solid var(--obs-line); }
  .observatory-theme .dossier-country-heading { min-width: 0; }
  .observatory-theme .dossier-country-kicker { display: block; margin-bottom: 5px; color: #727975; font: 700 9px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
  .observatory-theme .dossier-masthead .detail-title { display: flex; align-items: center; gap: 9px; margin: 0; }
  .observatory-theme .dossier-masthead .detail-title .flag { font-size: .6em; }
  .observatory-theme .dossier-masthead .dossier-subtitle { margin: 5px 0 0; }
  .observatory-theme .dossier-tradition-chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid #d9d7cf; border-radius: 999px; background: #f3f1ea; color: #525a56; font: 650 9px "DM Mono", monospace; }
  .observatory-theme .dossier-tradition-chip .dossier-icon { width: 14px; height: 14px; }
  .observatory-theme .dossier-tabs { margin: 0 -2px 18px; padding: 7px 2px 0; border-bottom: 0; background: rgba(251,249,243,.97); }
  .observatory-theme .dossier-tabs button { min-height: 40px; border: 1px solid var(--obs-line); border-right: 0; background: #f4f2eb; }
  .observatory-theme .dossier-tabs button:first-child { border-radius: 4px 0 0 4px; }
  .observatory-theme .dossier-tabs button:last-child { border-right: 1px solid var(--obs-line); border-radius: 0 4px 4px 0; }
  .observatory-theme .dossier-tabs button.is-active { z-index: 1; border-color: #252c29; background: #252c29; color: #fff; }
  .observatory-theme .dossier-tabs button.is-active::after { display: none; }
  .observatory-theme .dossier-overview { display: grid; gap: 12px; }
  .observatory-theme .dossier-conclusion { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 66px; padding: 10px 13px; border-color: #cac8bf; background: linear-gradient(108deg, #ece9e0 0%, #f7f4ed 72%); }
  .observatory-theme .dossier-conclusion em { align-self: start; margin-top: 3px; padding: 5px 7px; border-radius: 3px; background: rgba(255,255,255,.7); color: #707672; font: 650 8.5px "DM Mono", monospace; font-style: normal; text-transform: uppercase; }
  .observatory-theme .dossier-shield { width: 38px; height: 42px; }
  .observatory-theme .dossier-overview-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .observatory-theme .dossier-summary-card,
  .observatory-theme .dossier-depth-card { min-width: 0; padding: 14px; border: 1px solid var(--obs-line); border-radius: 4px; background: #faf8f2; }
  .observatory-theme .dossier-summary-card { background: #fffdf8; }
  .observatory-theme .dossier-section-heading { display: flex; align-items: flex-start; gap: 10px; }
  .observatory-theme .dossier-section-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border: 1px solid rgba(223,91,82,.38); border-radius: 50%; background: rgba(223,91,82,.06); color: var(--obs-red); font: 700 9px "DM Mono", monospace; }
  .observatory-theme .dossier-section-heading h4 { margin: 0; color: #242a27; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
  .observatory-theme .dossier-section-heading p { margin: 3px 0 0; color: #747b77; font-size: 10.5px; line-height: 1.35; }
  .observatory-theme .dossier-section-heading--spaced { margin: 20px 0 9px; }
  .observatory-theme .dossier-section-heading--compact { margin: 17px 0 9px; }
  .observatory-theme .dossier-summary-card .dossier-summary { margin-top: 13px; padding-left: 37px; }
  .observatory-theme .dossier-depth-card .research-depth { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; border: 0; gap: 7px; background: transparent; }
  .observatory-theme .dossier-depth-card .research-depth > div { min-height: 72px; padding: 10px; border: 1px solid var(--obs-line); border-radius: 3px; background: #f2f0e9; }
  .observatory-theme .dossier-depth-card .research-depth > div:last-child { border-right: 1px solid var(--obs-line); }
  .observatory-theme .dossier-test-grid { display: grid; grid-template-columns: 1fr; gap: 7px; overflow: visible; border: 0; background: transparent; }
  .observatory-theme .dossier-test-grid .dossier-test { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; justify-content: initial; min-height: 74px; padding: 10px; border: 1px solid var(--obs-line); border-radius: 4px; background: #faf8f2; }
  .observatory-theme .dossier-test-grid .dossier-test-icon { grid-row: 1 / 3; width: 28px; height: 28px; }
  .observatory-theme .dossier-test-grid .dossier-test > span { margin: 1px 0 0 8px; color: #707773; font: 650 9px "DM Mono", monospace; text-transform: uppercase; }
  .observatory-theme .dossier-test-grid .dossier-test strong { grid-column: 2; max-width: none; margin: 5px 0 0 8px; color: #303633; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-weight: 500; line-height: 1.25; text-align: left; }
  .observatory-theme .dossier-document { min-height: 82px; border-color: #d5d3cb; background: #fffdf8; box-shadow: 0 4px 11px rgba(28,36,33,.035); }
  .observatory-theme .dossier-provenance-grid { display: grid; grid-template-columns: 1fr; gap: 7px; overflow: visible; border: 0; background: transparent; }
  .observatory-theme .dossier-provenance-grid .dossier-provenance { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; min-height: 66px; padding: 9px; border: 1px solid var(--obs-line); border-radius: 4px; background: #f7f5ee; }
  .observatory-theme .dossier-provenance-grid .dossier-provenance-icon { grid-row: 1 / 3; width: 27px; height: 27px; }
  .observatory-theme .dossier-provenance-grid .dossier-provenance > span { margin: 1px 0 0 8px; overflow: hidden; font-size: 10.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .observatory-theme .dossier-provenance-grid .dossier-provenance strong { margin: 5px 0 0 8px; }
  .observatory-theme .full-record { margin-top: 22px; border-color: #cac8bf; background: #f2f0e8; }
  .observatory-theme .full-record > summary { min-height: 58px; padding: 10px 12px; }
  .observatory-theme .full-record[open] { background: #faf8f2; }

  .observatory-theme .below {
    grid-column: 2;
    grid-row: 4;
    margin: 10px 10px 0 24px;
  }
  .observatory-theme .method,
  .observatory-theme .footer { margin-left: 180px; }
}

@media (min-width: 1280px) and (max-width: 1559px) {
  .observatory-theme .topbar { grid-template-columns: 285px minmax(0, 1fr) 140px; margin-left: clamp(150px, 10.76vw, 168px); }
  .observatory-theme .atlas-nav { gap: clamp(11px, 1.25vw, 19px); }
  .observatory-theme .product-grid { grid-template-columns: clamp(150px, 10.76vw, 168px) minmax(0, 1fr) clamp(350px, 25.42vw, 397px); }
  .observatory-theme .source-rail { width: clamp(150px, 10.76vw, 168px); padding-right: 13px; padding-left: 13px; }
  .observatory-theme .controls { grid-template-columns: minmax(170px, 1fr) minmax(110px, 120px) minmax(125px, 138px) minmax(288px, 1.45fr); }
  .observatory-theme .controls,
  .observatory-theme .stats,
  .observatory-theme .workspace,
  .observatory-theme .below { margin-left: 20px; }
  .observatory-theme .view-switch button { padding-right: 6px; padding-left: 6px; font-size: 9.7px; }
  .observatory-theme .lens-controls .view-switch button { padding-right: 5px; padding-left: 5px; font-size: 9.7px; }
  .observatory-theme .method,
  .observatory-theme .footer { margin-left: clamp(150px, 10.76vw, 168px); }
}

/* Readability pass: preserve the approved geometry while removing sub-legible microtype. */
@media (min-width: 1280px) {
  .observatory-theme .atlas-nav a { font-size: 11.5px; }

  .observatory-theme .rail-heading,
  .observatory-theme .source-strength > span,
  .observatory-theme .rail-country > span,
  .observatory-theme .control-label,
  .observatory-theme .panel-kicker { font-size: 11px; }
  .observatory-theme .source-strength p { font-size: 12px; }
  .observatory-theme .provenance-item a { font-size: 11px; line-height: 1.38; }
  .observatory-theme .provenance-item small { font-size: 10.5px; line-height: 1.48; }
  .observatory-theme .rail-empty { font-size: 11px; }
  .observatory-theme .rail-link { font-size: 10.5px; }

  .observatory-theme input,
  .observatory-theme select { font-size: 13px; }
  .observatory-theme .view-switch button,
  .observatory-theme .lens-controls .view-switch button { font-size: 10.8px; line-height: 1.2; }

  .observatory-theme .stat small { font-size: 11.5px; }
  .observatory-theme .stat-total { font-size: 10px; }
  .observatory-theme .map-head h3 { font-size: 21px; }
  .observatory-theme .map-head .subtle { font-size: 12px; }
  .observatory-theme .legend-item { font-size: 11.2px; }
  .observatory-theme .review-note,
  .observatory-theme .universe-status { font-size: 10.8px; }
  .observatory-theme .map-tooltip { font-size: 11px; }

  .observatory-theme .detail-title { font-size: 29px; }
  .observatory-theme .dossier-subtitle { font-size: 12px; }
  .observatory-theme .dossier-tabs button { font-size: 10.5px; }
  .observatory-theme .dossier-conclusion small { font-size: 10px; }
  .observatory-theme .dossier-conclusion strong { font-size: 18px; }
  .observatory-theme .dossier-label,
  .observatory-theme .section-label { font-size: 10.5px; }
  .observatory-theme .dossier-summary { font-size: 13.5px; line-height: 1.62; }
  .observatory-theme .dossier-row,
  .observatory-theme .dossier-test,
  .observatory-theme .dossier-provenance { font-size: 11px; }
  .observatory-theme .dossier-row strong { font-size: 11.5px; }
  .observatory-theme .dossier-row small { font-size: 10px; }
  .observatory-theme .dossier-test strong { font-size: 10.8px; }
  .observatory-theme .dossier-provenance strong { font-size: 10.5px; }
  .observatory-theme .research-depth span { font-size: 9.5px; }
  .observatory-theme .full-record > summary { font-size: 11px; }
  .observatory-theme .full-record > summary > small { font-size: 9.5px; }

  .observatory-theme .detail-text,
  .observatory-theme .case-detail,
  .observatory-theme .case p { font-size: 12.5px; line-height: 1.6; }
  .observatory-theme .status-pill,
  .observatory-theme .dimension small { font-size: 10.5px; }
  .observatory-theme .source-row small { font-size: 10.5px; }
  .observatory-theme .list-head h3 { font-size: 17px; }
  .observatory-theme .record-button,
  .observatory-theme .universe-item { font-size: 12px; line-height: 1.45; }
}

/* Interaction pass: preserve the approved observatory identity while returning the map to the foreground. */
html { background: #b9c4ba; }

body.observatory-theme {
  position: relative;
  isolation: isolate;
  padding: 22px 18px 34px;
  overflow-x: clip;
  background: transparent;
}

.atlas-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #b9c4ba;
  pointer-events: none;
}
.atlas-atmosphere > span { position: absolute; inset: -8%; will-change: transform, opacity; }
.atlas-atmosphere__texture {
  background:
    radial-gradient(circle, rgba(35, 53, 49, .3) .7px, transparent .85px) 0 0 / 11px 11px,
    url("./assets/atlas-atmosphere-v1.png") center / cover no-repeat;
  opacity: .58;
  animation: atlas-drift 72s linear infinite;
}
.atlas-atmosphere__mist {
  background:
    radial-gradient(ellipse at 20% 14%, rgba(250, 238, 205, .78), transparent 31%),
    radial-gradient(ellipse at 84% 76%, rgba(241, 224, 183, .67), transparent 34%),
    radial-gradient(ellipse at 55% 38%, rgba(231, 238, 226, .45), transparent 42%);
  opacity: .88;
  animation: atlas-bruma 62s ease-in-out infinite alternate;
}
.atlas-atmosphere__line {
  inset: 2% -2%;
  background:
    radial-gradient(ellipse at 12% 35%, transparent 0 24%, rgba(255,255,255,.42) 24.15% 24.3%, transparent 24.45%),
    radial-gradient(ellipse at 91% 65%, transparent 0 28%, rgba(54,78,71,.2) 28.12% 28.25%, transparent 28.4%);
  opacity: .42;
  animation: atlas-linea 84s ease-in-out infinite alternate;
}
.atlas-atmosphere__circuit {
  inset: -4%;
  background:
    linear-gradient(90deg, rgba(41,64,58,.2) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(41,64,58,.17) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle, rgba(240,241,230,.88) 0 1.3px, transparent 1.8px) 0 0 / 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 17%, transparent 32% 68%, #000 83% 100%);
  mask-image: linear-gradient(90deg, #000 0 17%, transparent 32% 68%, #000 83% 100%);
  opacity: .34;
  animation: atlas-circuit 22s linear infinite;
}
.atlas-atmosphere__data {
  inset: -2% 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(38,61,55,.58) 8px 11px, transparent 11px 27px) 4% 0 / 1px 38px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(255,248,224,.75) 13px 15px, transparent 15px 31px) 9% 9px / 1px 44px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(223,91,82,.55) 6px 9px, transparent 9px 33px) 14% 18px / 1px 46px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(38,61,55,.52) 10px 12px, transparent 12px 30px) 86% 7px / 1px 41px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255,248,224,.72) 7px 10px, transparent 10px 29px) 92% 16px / 1px 43px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 12px, rgba(223,91,82,.5) 12px 14px, transparent 14px 34px) 97% 0 / 1px 48px repeat-y;
  -webkit-mask-image: linear-gradient(90deg, #000 0 18%, transparent 28% 72%, #000 82% 100%);
  mask-image: linear-gradient(90deg, #000 0 18%, transparent 28% 72%, #000 82% 100%);
  opacity: .54;
  animation: atlas-data-stream 12s linear infinite;
}
.atlas-atmosphere__scan {
  inset: -10% -16%;
  background: linear-gradient(90deg, transparent 0 43%, rgba(238,245,232,.03) 47%, rgba(255,245,211,.34) 50%, rgba(223,91,82,.09) 51%, rgba(238,245,232,.03) 54%, transparent 58% 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 20%, transparent 35% 65%, #000 80% 100%);
  mask-image: linear-gradient(90deg, #000 0 20%, transparent 35% 65%, #000 80% 100%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: atlas-scan 16s cubic-bezier(.2,.7,.2,1) infinite;
}
@keyframes atlas-drift { to { transform: translate3d(-44px, -33px, 0); } }
@keyframes atlas-bruma {
  from { transform: translate3d(-1.5%, -.6%, 0) scale(1); opacity: .72; }
  to { transform: translate3d(1.5%, .8%, 0) scale(1.05); opacity: 1; }
}
@keyframes atlas-linea {
  from { transform: translate3d(-1.6%, 0, 0); }
  to { transform: translate3d(1.6%, 0, 0); }
}
@keyframes atlas-circuit {
  to { transform: translate3d(-42px, 42px, 0); }
}
@keyframes atlas-data-stream {
  from { transform: translate3d(0, -32px, 0); opacity: .38; }
  45% { opacity: .64; }
  to { transform: translate3d(0, 32px, 0); opacity: .42; }
}
@keyframes atlas-scan {
  0%, 12% { transform: translate3d(-34%, 0, 0); opacity: 0; }
  18% { opacity: .62; }
  42% { transform: translate3d(34%, 0, 0); opacity: .24; }
  50%, 100% { transform: translate3d(34%, 0, 0); opacity: 0; }
}
.observatory-theme.motion-paused [data-atmos] { animation-play-state: paused; }

.observatory-theme .shell { position: relative; z-index: auto; width: min(1800px, 100%); margin: 0 auto; }
.observatory-theme .topbar {
  top: 18px;
  grid-template-columns: minmax(300px, 1fr) auto minmax(155px, .45fr);
  margin-left: 0;
  border-radius: 8px 8px 0 0;
}
.observatory-theme .product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: visible;
  border-radius: 0 0 8px 8px;
  background: rgba(247, 245, 239, .975);
  box-shadow: 0 24px 70px rgba(28, 39, 35, .16);
}
.observatory-theme .atlas-center {
  display: block;
  min-width: 0;
  padding: 25px 24px 28px;
  background: transparent;
}

.observatory-theme .source-rail {
  position: fixed;
  z-index: 60;
  top: 22px;
  bottom: 22px;
  left: 22px;
  display: block;
  width: 272px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 20px 18px;
  overscroll-behavior: contain;
  transform: translate3d(calc(-100% - 28px), 0, 0);
  visibility: hidden;
  opacity: 0;
  border-radius: 9px;
  transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .18s ease, visibility 0s linear .26s;
}
.observatory-theme.sources-open .source-rail {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.source-handle {
  position: fixed;
  z-index: 30;
  top: 116px;
  left: 0;
  display: grid;
  grid-template-columns: 8px auto;
  align-items: center;
  gap: 9px;
  min-width: 44px;
  min-height: 190px;
  padding: 12px 9px;
  border: 1px solid rgba(255,255,255,.42);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(242,242,236,.84);
  color: #313a36;
  box-shadow: 0 12px 32px rgba(30,40,36,.12);
  backdrop-filter: blur(16px);
  cursor: pointer;
}
.source-handle i { width: 7px; height: 7px; border-radius: 50%; background: var(--obs-red); }
.source-handle span { font: 700 9px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.observatory-theme.sources-open .source-handle { opacity: 0; pointer-events: none; }
.drawer-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  border: 0;
  background: rgba(22, 29, 27, .31);
  backdrop-filter: blur(2px);
  cursor: default;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.observatory-theme.drawer-active .drawer-backdrop { visibility: visible; opacity: 1; transition-delay: 0s; }
.observatory-theme.drawer-active { overflow: hidden; }
.observatory-theme .drawer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -12px -10px -12px 0;
  border: 0;
  background: transparent;
  color: #3a413e;
  font: 400 24px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.observatory-theme .controls {
  display: grid;
  grid-template-columns: minmax(270px, 1.35fr) minmax(165px, .65fr) minmax(190px, .75fr) minmax(220px, .9fr) auto;
  gap: 8px;
  margin: 0;
}
.observatory-theme .active-state-chip {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--obs-line);
  border-radius: 5px;
  background: rgba(239, 237, 229, .8);
  color: #4e5954;
  font: 650 10.5px "DM Mono", monospace;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.observatory-theme .primary-actions { display: flex; gap: 6px; }
.observatory-theme .primary-actions button,
.observatory-theme .filters-toggle,
.observatory-theme .metrics-toggle,
.observatory-theme .legend-toggle,
.observatory-theme .dossier-reopen {
  min-height: 44px;
  border: 1px solid var(--obs-line);
  border-radius: 5px;
  background: rgba(255,255,252,.86);
  color: #3f4844;
  font: 700 11px "Manrope", sans-serif;
  cursor: pointer;
}
.observatory-theme .filters-toggle { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-width: 102px; padding: 0 12px; }
.observatory-theme .filters-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.observatory-theme .map-decision-controls { display: none; }
.observatory-theme.filters-open .map-decision-controls { display: grid; gap: 7px; padding: 10px; border-top: 1px solid var(--obs-line); border-bottom: 1px solid var(--obs-line); background: #f2f0e8; }
.observatory-theme .mode-switch-wrap { display: none; }
.observatory-theme.filters-open .mode-switch-wrap {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  margin: 0;
  padding: 12px;
  border: 1px solid var(--obs-line);
  border-radius: 6px;
  background: rgba(250,248,242,.92);
}
.observatory-theme .lens-controls { display: none; }
.observatory-theme.filters-open .lens-controls {
  position: static;
  display: grid;
  grid-template-columns: 140px minmax(320px, .7fr) minmax(260px, 1fr);
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--obs-line);
  border-radius: 6px;
  background: rgba(250,248,242,.92);
}
.observatory-theme.filters-open .mode-switch-wrap > .control-label,
.observatory-theme.filters-open .lens-controls > .control-label { position: static; align-self: center; }
.observatory-theme.filters-open .lens-hint { display: block; align-self: center; font-size: 11px; }

.observatory-theme .control-priority {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--obs-ink);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.observatory-theme .control-priority > i {
  display: grid;
  flex: 0 0 31px;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(230,50,46,.42);
  border-radius: 50%;
  background: rgba(230,50,46,.07);
  color: var(--obs-red);
  font: 700 10px "DM Mono", monospace;
  font-style: normal;
}
.observatory-theme .control-priority strong,
.observatory-theme .control-priority small { display: block; }
.observatory-theme .control-priority strong { font-size: 13px; line-height: 1.15; }
.observatory-theme .control-priority small { margin-top: 4px; color: #737b76; font-size: 10px; font-weight: 550; line-height: 1.2; }

/* On research-sized screens the legal question and reading lens are primary controls, not a disclosure. */
@media (min-width: 1081px) {
  .observatory-theme .filters-toggle { display: none; }
  .observatory-theme .map-decision-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px 14px 13px;
    border-top: 1px solid var(--obs-line);
    border-bottom: 1px solid var(--obs-line);
    background: linear-gradient(180deg, rgba(239,237,229,.92), rgba(248,246,240,.96));
  }
  .observatory-theme .mode-switch-wrap {
    display: grid;
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 160px minmax(0, 1fr);
    min-height: 62px;
    margin: 0;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid rgba(24,27,25,.15);
    border-radius: 5px;
    background: rgba(255,253,248,.82);
  }
  .observatory-theme .lens-controls {
    position: static;
    display: grid;
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 160px minmax(260px, 1fr) minmax(180px, .7fr);
    gap: 8px;
    min-height: 62px;
    margin: 0;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid rgba(24,27,25,.15);
    border-radius: 5px;
    background: rgba(255,253,248,.82);
  }
  .observatory-theme .mode-switch-wrap > .control-label,
  .observatory-theme .lens-controls > .control-label { position: static; align-self: center; }
  .observatory-theme .mode-switch-wrap .view-switch,
  .observatory-theme .lens-controls .view-switch {
    display: grid;
    align-self: center;
    width: 100%;
    min-height: 44px;
    height: 44px;
    border-color: rgba(24,27,25,.2);
    background: rgba(255,255,252,.9);
  }
  .observatory-theme .mode-switch-wrap .view-switch { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .observatory-theme .lens-controls .view-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .observatory-theme .mode-switch-wrap .view-switch button,
  .observatory-theme .lens-controls .view-switch button {
    min-height: 42px;
    padding: 0 9px;
    font-size: 10.8px;
    font-weight: 700;
  }
  .observatory-theme .mode-switch-wrap .view-switch button[aria-pressed="true"],
  .observatory-theme .lens-controls .view-switch button[aria-pressed="true"] {
    background: #202725;
    color: #fff;
    box-shadow: inset 0 -3px var(--obs-red), 0 5px 12px rgba(31,39,37,.16);
  }
  .observatory-theme .map-decision-controls .control-priority > i { flex-basis: 28px; width: 28px; height: 28px; }
  .observatory-theme .map-decision-controls .control-priority strong { font-size: 12px; }
  .observatory-theme .map-decision-controls .control-priority small { font-size: 9.5px; }
  .observatory-theme .lens-hint { display: block; grid-column: auto; align-self: center; color: #5d6762; font-size: 10px; line-height: 1.4; }
}

.observatory-theme .stats {
  position: relative;
  display: grid;
  grid-template-columns: 118px repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  min-height: 58px;
  margin: 10px 0 12px;
  overflow: hidden;
  border: 1px solid var(--obs-line);
  border-radius: 6px;
  background: rgba(255,255,252,.72);
}
.observatory-theme .metrics-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--obs-line);
  border-radius: 0;
  background: rgba(238,236,228,.82);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}
.observatory-theme .stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 58px;
  padding: 8px 11px;
  border: 0;
  border-left: 1px solid rgba(24,27,25,.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.observatory-theme .stat::after { display: none; }
.observatory-theme .stat small { min-height: 0; margin: 0; font-size: 10.5px; line-height: 1.25; }
.observatory-theme .stat strong { font-size: 24px; white-space: nowrap; }
.observatory-theme.metrics-expanded .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 8px; border: 0; background: transparent; }
.observatory-theme.metrics-expanded .metrics-toggle { grid-column: 1 / -1; min-height: 40px; border: 1px solid var(--obs-line); border-radius: 5px; }
.observatory-theme.metrics-expanded .metrics-toggle span:last-child { transform: rotate(180deg); }
.observatory-theme.metrics-expanded .stat { min-height: 84px; border: 1px solid var(--obs-line); border-radius: 6px; background: rgba(255,255,252,.78); }

.observatory-theme .workspace,
.observatory-theme .below { margin: 0; }
.observatory-theme .universe-list { max-height: none; overflow: visible; }
.observatory-theme .map-panel { position: relative; overflow: hidden; }
.observatory-theme .map-frame,
.observatory-theme #map { width: 100%; height: clamp(500px, 55vh, 680px); min-height: 500px; }
.observatory-theme #map svg { width: 100%; height: 100%; }
.observatory-theme .map-head { align-items: center; min-height: 74px; padding: 13px 16px; }
.observatory-theme .dossier-reopen { display: inline-flex; align-items: center; gap: 5px; padding: 0 13px; white-space: nowrap; }
.observatory-theme .dossier-reopen strong { max-width: 180px; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; text-overflow: ellipsis; }
.observatory-theme .map-legend-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 72px; padding: 9px 12px; border-top: 1px solid var(--obs-line); background: rgba(251,249,243,.98); }
.observatory-theme .legend { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; }
.observatory-theme .legend-heading { display: grid; flex: 0 0 auto; gap: 2px; margin-right: 4px; padding-right: 12px; border-right: 1px solid var(--obs-line); }
.observatory-theme .legend-heading small { color: #7b817d; font: 650 8.5px "DM Mono", monospace; letter-spacing: .035em; text-transform: uppercase; }
.observatory-theme .legend-heading strong { color: #2d3431; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-weight: 500; }
.observatory-theme .legend-item { gap: 6px; min-height: 30px; padding: 5px 8px; border: 1px solid #dedcd4; border-radius: 4px; background: #fffdf8; color: #4e5753; font-size: 10.5px; white-space: nowrap; }
.observatory-theme .legend-item .dot { flex: 0 0 auto; width: 14px; height: 14px; border: 1px solid rgba(31,39,36,.18); border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.46); }
.observatory-theme .review-legend { display: none; flex-basis: 100%; white-space: normal; }
.observatory-theme .legend-toggle { display: flex; align-items: center; justify-content: space-between; width: 142px; min-height: 36px; margin: 0; padding: 0 10px; font-size: 10.5px; }
.observatory-theme.legend-open .map-legend-wrap { align-items: start; }
.observatory-theme.legend-open .legend { flex-wrap: wrap; }
.observatory-theme.legend-open .review-legend { display: inline-flex; }
.observatory-theme.legend-open .legend-toggle span { transform: rotate(90deg); }

.observatory-theme .detail {
  position: fixed;
  z-index: 60;
  top: 22px;
  right: 22px;
  bottom: 22px;
  width: min(520px, calc(100vw - 44px));
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  transform: translate3d(calc(100% + 28px), 0, 0);
  visibility: hidden;
  opacity: 0;
  border: 1px solid var(--obs-line);
  border-radius: 7px;
  transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .18s ease, visibility 0s linear .26s;
}
.observatory-theme.detail-open .detail {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.observatory-theme .detail-head { position: sticky; display: flex; align-items: center; min-height: 68px; }
.observatory-theme #detail-content { height: calc(100% - 68px); overflow: auto; overscroll-behavior: contain; }
.observatory-theme .below { grid-template-columns: 1.15fr .85fr; gap: 10px; margin-top: 12px; }
.observatory-theme .method,
.observatory-theme .footer { margin-left: 0; }

.observatory-theme.detail-docked .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.observatory-theme.detail-docked .atlas-center { grid-column: 1; grid-row: 1; }
.observatory-theme.detail-docked .controls { grid-template-columns: minmax(220px, 1fr) 150px 170px auto; }
.observatory-theme.detail-docked .active-state-chip { grid-column: 1 / 4; }
.observatory-theme.detail-docked .primary-actions { grid-column: 4; grid-row: 1 / 3; align-self: stretch; flex-wrap: wrap; justify-content: flex-end; }
.observatory-theme.detail-docked .detail {
  position: sticky;
  z-index: 2;
  top: 102px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: auto;
  height: calc(100vh - 124px);
  margin: 18px 18px 18px 0;
  transform: none;
  visibility: visible;
  opacity: 1;
  transition: none;
}
.observatory-theme.detail-docked .detail-head { display: none; }
.observatory-theme.detail-docked .detail .drawer-close { display: none; }
.observatory-theme.detail-docked #detail-content { height: 100%; }
.observatory-theme.detail-docked .detail-body { padding: 23px 25px 42px; }
.observatory-theme.detail-docked .dossier-masthead { padding-bottom: 18px; }
.observatory-theme.detail-docked .dossier-tabs { top: 0; margin-bottom: 22px; padding-top: 10px; }
.observatory-theme.detail-docked .dossier-overview-grid { grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); }
.observatory-theme.detail-docked .dossier-test-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.observatory-theme.detail-docked .dossier-document-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.observatory-theme.detail-docked .dossier-document { grid-template-columns: 38px minmax(0, 1fr) 18px; }
.observatory-theme.detail-docked .dossier-document > b { font-size: 0; }
.observatory-theme.detail-docked .dossier-provenance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.observatory-theme.detail-docked .drawer-backdrop { display: none; }

.observatory-theme button:focus-visible,
.observatory-theme input:focus-visible,
.observatory-theme select:focus-visible,
.observatory-theme a:focus-visible,
.source-handle:focus-visible {
  outline: 2px solid var(--obs-red);
  outline-offset: 2px;
}

@media (max-width: 1279px) {
  body.observatory-theme { padding: 18px 16px 26px; }
  .observatory-theme .topbar { top: 16px; margin-left: 0; }
  .observatory-theme .controls { grid-template-columns: minmax(250px, 1fr) 165px 185px minmax(210px, .8fr) auto; }
  .observatory-theme .atlas-center { padding: 22px 20px 25px; }
  .observatory-theme .map-frame,
  .observatory-theme #map { height: clamp(470px, 55vh, 620px); min-height: 470px; }
}

@media (max-width: 1080px) {
  .observatory-theme .topbar { grid-template-columns: 1fr auto; }
  .observatory-theme .atlas-nav { display: none; }
  .observatory-theme .controls { grid-template-columns: minmax(240px, 1fr) 150px 170px auto; }
  .observatory-theme .active-state-chip { grid-column: 1 / 4; }
  .observatory-theme .primary-actions { grid-column: 4; grid-row: 1 / 3; align-self: stretch; flex-wrap: wrap; justify-content: flex-end; }
  .observatory-theme .stats { grid-template-columns: 112px repeat(5, minmax(0, 1fr)); }
  .observatory-theme .stat { grid-template-columns: 1fr; gap: 2px; }
  .observatory-theme .stat strong { font-size: 22px; }
}

@media (max-width: 900px) {
  body.observatory-theme { padding: 12px; background: transparent; }
  .observatory-theme .topbar { top: 10px; min-height: 58px; border-radius: 7px 7px 0 0; }
  .observatory-theme .topbar-meta { display: none; }
  .observatory-theme .atlas-center { padding: 15px 12px 20px; }
  .observatory-theme .controls { grid-template-columns: 1fr 1fr; }
  .observatory-theme .control,
  .observatory-theme .active-state-chip { grid-column: 1 / -1; }
  .observatory-theme .primary-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  .observatory-theme.filters-open .mode-switch-wrap,
  .observatory-theme.filters-open .lens-controls { grid-template-columns: 1fr; }
  .observatory-theme .stats,
  .observatory-theme.metrics-expanded .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .observatory-theme .metrics-toggle { grid-column: 1 / -1; min-height: 44px; border-right: 0; border-bottom: 1px solid var(--obs-line); }
  .observatory-theme .stat { min-height: 68px; border-top: 1px solid rgba(24,27,25,.1); }
  .observatory-theme .map-head { align-items: flex-start; }
  .observatory-theme .dossier-reopen { min-height: 42px; }
  .observatory-theme .map-frame,
  .observatory-theme #map { height: 420px; min-height: 420px; }
  .observatory-theme .below { grid-template-columns: 1fr; }
  .source-handle { top: 92px; min-height: 160px; }
}

@media (max-width: 620px) {
  .observatory-theme .brand h1 { font-size: 15px; }
  .observatory-theme .brand p { display: none; }
  .observatory-theme .controls { grid-template-columns: 1fr; }
  .observatory-theme .controls > * { grid-column: 1 / -1; }
  .observatory-theme .map-head { display: grid; grid-template-columns: 1fr; }
  .observatory-theme .dossier-reopen { width: 100%; justify-content: space-between; }
  .observatory-theme .map-frame,
  .observatory-theme #map { height: 340px; min-height: 340px; }
  .observatory-theme .map-legend-wrap { grid-template-columns: 1fr; }
  .observatory-theme .legend-heading { flex-basis: 100%; width: 100%; padding: 0 0 7px; border-right: 0; border-bottom: 1px solid var(--obs-line); }
  .observatory-theme .legend-toggle { width: 100%; }
  .observatory-theme .source-rail { top: 10px; bottom: 10px; left: 10px; width: min(272px, calc(100vw - 20px)); }
  .observatory-theme .detail { top: 10px; right: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .observatory-theme .detail-body { padding-right: 13px; padding-left: 13px; }
  .observatory-theme .dossier-tabs { margin-right: -4px; margin-left: -4px; padding-right: 4px; padding-left: 4px; }
  .observatory-theme .dossier-tabs button { font-size: 8px; }
  .observatory-theme .research-depth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .observatory-theme .research-depth > div:nth-child(2) { border-right: 0; }
  .observatory-theme .research-depth > div:nth-child(-n + 2) { border-bottom: 1px solid var(--obs-line); }
  .observatory-theme .dossier-document { grid-template-columns: 36px minmax(0, 1fr) 18px; padding: 9px; }
  .observatory-theme .dossier-document-icon { width: 36px; height: 36px; }
  .observatory-theme .dossier-document > b { font-size: 0; }
  .observatory-theme .dossier-document-copy > span { white-space: normal; }
  .observatory-theme .document-source-row { grid-template-columns: 32px minmax(0, 1fr) 30px; gap: 8px; }
  .observatory-theme .document-source-row .source-open { justify-content: center; padding: 7px; }
  .observatory-theme .document-source-row .source-open span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-atmosphere [data-atmos] { animation: none !important; }
}

/* Atlas palette 2026-09: white field, editorial charcoal, teal, orange and deep navy. */
:root {
  --ink: #191d20;
  --muted: #617078;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: rgba(16, 38, 93, .14);
  --blue: #10265d;
  --blue-soft: #e8f7f7;
  --green: #1aa5a8;
  --amber: #73c7ca;
  --red: #ff7f1a;
  --uncertain: #10265d;
  --pending: #dfe6e8;
  --obs-ink: #191d20;
  --obs-charcoal: #191d20;
  --obs-paper: #ffffff;
  --obs-paper-2: #f3f7f8;
  --obs-sage: #73c7ca;
  --obs-sage-dark: #1aa5a8;
  --obs-line: rgba(16, 38, 93, .14);
  --obs-red: #ff7f1a;
  --obs-shadow: 0 12px 30px rgba(16, 38, 93, .08);
  --atlas-teal: #1aa5a8;
  --atlas-teal-soft: #e8f7f7;
  --atlas-orange: #ff7f1a;
  --atlas-orange-soft: #fff3e8;
  --atlas-navy: #10265d;
  --atlas-cool: #f3f7f8;
}

html,
body.observatory-theme { background: #fff; }

.atlas-atmosphere {
  background: #fff;
}
.atlas-atmosphere__texture {
  background:
    radial-gradient(circle, rgba(16,38,93,.22) .75px, transparent 1px) 0 0 / 13px 13px,
    linear-gradient(90deg, rgba(26,165,168,.055) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(rgba(26,165,168,.045) 1px, transparent 1px) 0 0 / 52px 52px;
  opacity: .26;
  -webkit-mask-image: linear-gradient(90deg, #000 0 18%, transparent 35% 65%, #000 82% 100%);
  mask-image: linear-gradient(90deg, #000 0 18%, transparent 35% 65%, #000 82% 100%);
}
.atlas-atmosphere__mist {
  background:
    radial-gradient(ellipse at 12% 18%, rgba(26,165,168,.15), transparent 32%),
    radial-gradient(ellipse at 88% 78%, rgba(16,38,93,.10), transparent 34%),
    radial-gradient(ellipse at 78% 12%, rgba(255,127,26,.085), transparent 27%);
  opacity: .9;
}
.atlas-atmosphere__line {
  background:
    radial-gradient(ellipse at 11% 36%, transparent 0 24%, rgba(26,165,168,.22) 24.15% 24.3%, transparent 24.45%),
    radial-gradient(ellipse at 90% 64%, transparent 0 28%, rgba(16,38,93,.17) 28.12% 28.25%, transparent 28.4%);
  opacity: .5;
}
.atlas-atmosphere__circuit {
  background:
    linear-gradient(90deg, rgba(26,165,168,.14) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(16,38,93,.10) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle, rgba(255,127,26,.52) 0 1.15px, transparent 1.7px) 0 0 / 42px 42px;
  opacity: .34;
}
.atlas-atmosphere__data {
  background:
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(26,165,168,.52) 8px 11px, transparent 11px 27px) 4% 0 / 1px 38px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(16,38,93,.42) 13px 15px, transparent 15px 31px) 9% 9px / 1px 44px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255,127,26,.52) 6px 9px, transparent 9px 33px) 14% 18px / 1px 46px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(26,165,168,.48) 10px 12px, transparent 12px 30px) 86% 7px / 1px 41px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(16,38,93,.42) 7px 10px, transparent 10px 29px) 92% 16px / 1px 43px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,127,26,.48) 12px 14px, transparent 14px 34px) 97% 0 / 1px 48px repeat-y;
  opacity: .46;
}
.atlas-atmosphere__scan {
  background: linear-gradient(90deg, transparent 0 43%, rgba(26,165,168,.02) 47%, rgba(26,165,168,.2) 50%, rgba(255,127,26,.11) 51%, rgba(16,38,93,.03) 54%, transparent 58% 100%);
}

.observatory-theme .topbar {
  background: linear-gradient(108deg, rgba(25,29,32,.99), rgba(16,38,93,.97));
  box-shadow: inset 0 -1px rgba(255,255,255,.12), 0 10px 28px rgba(16,38,93,.12);
  backdrop-filter: blur(18px) saturate(1.05);
}
.observatory-theme .brand h1 { color: #fff; }
.observatory-theme .brand p,
.observatory-theme .atlas-nav a { color: rgba(255,255,255,.68); }
.observatory-theme .atlas-nav a:hover,
.observatory-theme .atlas-nav a.is-active { color: #fff; }
.observatory-theme .atlas-nav a.is-active::after { background: var(--atlas-teal); }
.observatory-theme .topbar-signal { background: var(--atlas-orange); box-shadow: 0 0 0 4px rgba(255,127,26,.16); }
.observatory-theme .cutoff::before { background: var(--atlas-teal); }
.observatory-theme .user-orb { background: #f3f8f9; color: var(--atlas-navy); }

.observatory-theme .product-grid {
  background: rgba(255,255,255,.985);
  box-shadow: 0 24px 70px rgba(16,38,93,.12);
}
.observatory-theme .atlas-center { background: #fff; }
.observatory-theme .source-rail,
.source-handle {
  border-color: rgba(16,38,93,.14);
  background: rgba(255,255,255,.94);
  color: #27323b;
  box-shadow: 0 14px 36px rgba(16,38,93,.12);
}
.source-handle i,
.observatory-theme .source-dot.medium { background: var(--atlas-teal); }
.observatory-theme .source-dot.high,
.observatory-theme .provenance-item[data-strength="high"] > i { background: var(--atlas-orange); }

.observatory-theme input,
.observatory-theme select,
.observatory-theme .active-state-chip,
.observatory-theme .primary-actions button,
.observatory-theme .metrics-toggle,
.observatory-theme .legend-toggle,
.observatory-theme .dossier-reopen {
  border-color: rgba(16,38,93,.16);
  background: #fff;
  color: #29333a;
}
.observatory-theme input:focus,
.observatory-theme select:focus { border-color: var(--atlas-teal); box-shadow: 0 0 0 3px rgba(26,165,168,.12); }
.observatory-theme .active-state-chip { background: var(--atlas-teal-soft); color: var(--atlas-navy); }
.observatory-theme .selected-country { border-color: rgba(26,165,168,.2); background: var(--atlas-teal-soft); color: var(--atlas-navy); }
.observatory-theme .warning { border-color: rgba(16,38,93,.12); background: #f3f8f9; color: #526168; }

.observatory-theme .map-decision-controls,
.observatory-theme.filters-open .map-decision-controls {
  background: linear-gradient(180deg, #f5fbfb, #fff);
}
.observatory-theme .mode-switch-wrap,
.observatory-theme .lens-controls,
.observatory-theme.filters-open .mode-switch-wrap,
.observatory-theme.filters-open .lens-controls {
  border-color: rgba(16,38,93,.14);
  background: #fff;
}
.observatory-theme .view-switch { border-color: rgba(16,38,93,.15); background: #fff; }
.observatory-theme .map-decision-controls .view-switch { background: #fff; }
.observatory-theme .view-switch button { color: #596970; }
.observatory-theme .view-switch button[aria-pressed="true"] {
  background: var(--atlas-navy);
  color: #fff;
  box-shadow: inset 0 -3px var(--atlas-teal), 0 5px 12px rgba(16,38,93,.14);
}
.observatory-theme .control-priority > i,
.observatory-theme .dossier-section-heading > span {
  border-color: rgba(255,127,26,.42);
  background: var(--atlas-orange-soft);
  color: #d65b00;
}

.observatory-theme .stats,
.observatory-theme .stat,
.observatory-theme.metrics-expanded .stat {
  border-color: rgba(16,38,93,.13);
  background: #fff;
}
.observatory-theme .stat.yes strong { color: var(--atlas-teal); }
.observatory-theme .stat.conditional strong { color: #58b9bd; }
.observatory-theme .stat.no strong { color: var(--atlas-orange); }
.observatory-theme .stat.uncertain strong { color: var(--atlas-navy); }

.observatory-theme .map-panel,
.observatory-theme .panel,
.observatory-theme .detail {
  border-color: rgba(16,38,93,.14);
  background: #fff;
  box-shadow: 0 9px 24px rgba(16,38,93,.06);
}
.observatory-theme .map-head,
.observatory-theme .detail-head { background: #fff; }
.observatory-theme .map-frame {
  background:
    radial-gradient(circle, rgba(26,165,168,.11) .7px, transparent .95px) 0 0 / 12px 12px,
    linear-gradient(180deg, #fbfefe 0%, #f3f8f9 100%);
}
.observatory-theme .ocean-line { stroke: rgba(26,165,168,.34); }
.observatory-theme .country:focus-visible,
.observatory-theme .country.selected {
  stroke: var(--atlas-orange);
  filter: drop-shadow(0 0 2px rgba(255,127,26,.45));
}
.observatory-theme .map-legend-wrap,
.observatory-theme .legend-item {
  border-color: rgba(16,38,93,.13);
  background: #fff;
  color: #4f5f66;
}
.observatory-theme .legend-heading strong { color: var(--atlas-navy); }
.observatory-theme .review-swatch {
  border-color: rgba(16,38,93,.28);
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,.9) 4px 6px), #9acfd1;
}

.observatory-theme .detail,
.observatory-theme .detail-body,
.observatory-theme .dossier-tabs { background: #fff; }
.observatory-theme .dossier-icon {
  display: block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}
.observatory-theme .dossier-tabs button { border-color: rgba(16,38,93,.13); background: #f4f8f9; }
.observatory-theme .dossier-tabs button.is-active { background: var(--atlas-navy); color: #fff; }
.observatory-theme .dossier-tabs button.is-active::after { background: var(--atlas-teal); }
.observatory-theme .dossier-conclusion {
  border-color: rgba(16,38,93,.17);
  background: linear-gradient(108deg, #e8f7f7 0%, #fff 72%);
}
.observatory-theme .dossier-shield,
.observatory-theme .dossier-document-icon { background: var(--atlas-navy); color: #fff; }
.observatory-theme .dossier-depth-card,
.observatory-theme .dossier-summary-card,
.observatory-theme .research-depth,
.observatory-theme .research-depth > div,
.observatory-theme .dossier-depth-card .research-depth > div,
.observatory-theme .dossier-test-grid .dossier-test,
.observatory-theme .dossier-document,
.observatory-theme .dossier-list,
.observatory-theme .dossier-provenance-grid .dossier-provenance,
.observatory-theme .full-record,
.observatory-theme .full-record[open],
.observatory-theme .dimension,
.observatory-theme .case,
.observatory-theme .source-row {
  border-color: rgba(16,38,93,.13);
  background: #fff;
}
.observatory-theme .research-depth > div,
.observatory-theme .dossier-depth-card .research-depth > div,
.observatory-theme .dossier-provenance-grid .dossier-provenance { background: #f5f9fa; }
.observatory-theme .research-depth > div > i { border-color: rgba(16,38,93,.14); background: #eaf6f6; color: var(--atlas-navy); }
.observatory-theme .dossier-test-icon { background: #eaf6f6; color: var(--atlas-navy); }
.observatory-theme .dossier-document:hover { border-color: var(--atlas-teal); background: #f5fbfb; }
.observatory-theme .dossier-provenance-icon,
.observatory-theme .source-row-icon { background: var(--atlas-teal-soft); color: var(--atlas-navy); }
.observatory-theme .document-source-row .source-type,
.observatory-theme .dossier-document-copy > small em { background: #eaf3f4; color: var(--atlas-navy); }
.observatory-theme .dossier-tradition-chip,
.observatory-theme .status-pill { border-color: rgba(16,38,93,.13); background: #f3f7f8; color: #44545c; }
.observatory-theme .caveat { border-color: rgba(255,127,26,.32); background: var(--atlas-orange-soft); color: #68411e; }

.observatory-theme .record-list { background: rgba(16,38,93,.12); }
.observatory-theme .record-button,
.observatory-theme .universe-item,
.observatory-theme .pagination { background: #fff; }
.observatory-theme .record-button:hover,
.observatory-theme .universe-item:hover { background: #f3fbfb; }
.observatory-theme .method,
.observatory-theme .footer { border-color: rgba(16,38,93,.13); background: #f3f8f9; }
.observatory-theme .method li::before { background: var(--atlas-teal); }

.observatory-theme button:focus-visible,
.observatory-theme input:focus-visible,
.observatory-theme select:focus-visible,
.observatory-theme a:focus-visible,
.source-handle:focus-visible {
  outline-color: var(--atlas-teal);
}
