/* Global shares the Terminal shell; geography, not decoration, leads this view. */
.global-main {
  padding: 28px 24px 40px;
  min-width: 0;
  container-type: inline-size;
}
.global-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.global-heading .eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.global-heading h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.045em;
  margin: 0;
}
.global-heading h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--muted);
}
.global-history-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: nowrap;
}
.global-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
  gap: 28px;
  align-items: center;
  min-width: 0;
}
.global-scene {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.globe-stage {
  position: relative;
  aspect-ratio: 1;
  min-height: 300px;
  width: 100%;
  max-height: 660px;
}
.globe-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  outline-offset: -8px;
  border-radius: 12px;
}
.globe-stage canvas:active {
  cursor: grabbing;
}
.globe-stage canvas:focus-visible {
  outline: 2px solid var(--accent, #148663);
}
.globe-stage[data-error="true"] canvas {
  display: none;
}
.globe-stage[data-error="true"] {
  min-height: 180px;
}
.globe-status {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
  margin: 0;
}
.globe-pin {
  position: absolute;
  transform: translate(16px, -50%);
  background: var(--bg, #fff);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  min-height: 36px;
  color: var(--fg);
  font:
    500 12px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  box-shadow: 0 2px 12px #00000008;
  transition: border-color 0.12s;
}
.globe-pin[hidden] {
  display: none;
}
.globe-pin:hover {
  border-color: #409b78;
}
.globe-coordinate {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
  pointer-events: none;
}
.globe-tools {
  position: absolute;
  bottom: 42px;
  right: 0;
  display: flex;
  gap: 4px;
}
.globe-tools button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font:
    18px -apple-system,
    sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.globe-tools button:hover {
  background: var(--sub);
}
.global-insight {
  min-width: 0;
  padding: 24px 0;
}
.event-place,
.event-rate-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.global-insight h3 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 9px 0 28px;
}
.event-rate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 26px;
}
.event-rate {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 550;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}
.event-change {
  font:
    500 12px ui-monospace,
    monospace;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px;
  white-space: nowrap;
}
.global-insight h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.5;
}
.global-insight p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
}
.event-source {
  display: inline-block;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  line-height: 1.6;
}
.global-discuss,
.global-open {
  display: block;
  margin-top: 22px;
  font:
    500 13px -apple-system,
    sans-serif;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: var(--sub);
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
}
.global-discuss:hover,
.global-open:hover {
  border-color: #50ac83;
}
.global-timeline {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 16px;
}
.global-clock {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.global-play {
  border: 1px solid var(--line);
  background: var(--sub);
  color: var(--fg);
  border-radius: 7px;
  font:
    500 12px -apple-system,
    sans-serif;
  min-width: 96px;
  min-height: 40px;
  cursor: pointer;
}
.global-date {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.global-count {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.global-time {
  display: block;
  width: 100%;
  accent-color: #318a70;
  cursor: pointer;
  height: 28px;
}
.global-range {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.global-events {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 1px;
  scroll-snap-type: x proximity;
}
.global-event {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  text-align: left;
  gap: 8px 12px;
  flex: 1 0 152px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    background 0.15s,
    border-color 0.15s;
  min-width: 0;
}
.global-event time {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
}
.global-event strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.global-event small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.global-event b {
  grid-column: 2;
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
}
.global-event.selected {
  background: var(--sub);
  border-color: var(--line);
}
.global-event:hover {
  background: var(--sub);
}
.global-event.future-event {
  opacity: 0.45;
}
.global-footnote {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 0;
}
.global-footnote a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.global-method {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 16px 0;
  font-size: 13px;
}
.global-method summary {
  cursor: pointer;
  font-weight: 550;
}
.global-method p,
.global-evidence {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.global-evidence {
  white-space: pre-wrap;
  font-family: inherit;
  overflow-wrap: anywhere;
}
.global-landing .global-visual {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 64px;
}
.global-landing .globe-stage {
  max-height: 650px;
}
.global-landing .global-insight h3 {
  font-size: 32px;
}
.global-landing .event-rate {
  font-size: 52px;
}
.global-landing .global-insight p {
  font-size: 16px;
}
.global-landing .global-insight h4 {
  font-size: 17px;
}
.global-landing .event-source {
  font-size: 14px;
}
.global-landing .global-open {
  max-width: 280px;
}
.roadmap-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.roadmap-lines article > span {
  font-size: 12px;
  color: var(--muted);
}
.roadmap-lines h3 {
  font-size: 23px;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 18px 0 12px;
}
.roadmap-lines p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.roadmap-lines a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.roadmap-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}
@container (max-width:680px) {
  .global-visual {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .globe-stage {
    min-height: 270px;
    max-height: 440px;
  }
  .global-insight {
    padding: 20px 0;
  }
  .global-insight h3 {
    margin: 6px 0 16px;
  }
  .event-rate-row {
    margin-bottom: 16px;
  }
  .global-count {
    display: none;
  }
  .globe-pin {
    font-size: 11px;
    padding: 6px;
  }
  .global-event {
    flex-basis: 156px;
  }
}
@media (max-width: 760px) {
  .global-main {
    padding: 22px 18px 36px;
  }
  .global-landing .global-visual {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .global-landing .globe-stage {
    max-height: 480px;
  }
  .global-landing .global-insight h3 {
    font-size: 27px;
  }
  .global-landing .event-rate {
    font-size: 42px;
  }
  .roadmap-lines {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .global-range {
    font-size: 10px;
  }
  .global-range span:nth-child(2) {
    font-size: 10px;
  }
  .globe-tools button {
    width: 44px;
    height: 44px;
  }
  .global-heading h1 {
    font-size: 28px;
  }
  .global-play {
    min-height: 44px;
  }
  .global-count {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .global-event,
  .globe-pin,
  .globe-tools button {
    transition: none;
  }
}
/* A chart-like date rail; orbital movement belongs to the selected date only. */
.global-timeline {
  border: 0;
  background: var(--sub);
  border-radius: 24px;
  padding: 16px 20px;
  margin: 20px 0 12px;
  position: relative;
  z-index: 3;
}
.global-clock {
  gap: 10px;
  flex-wrap: wrap;
}
.global-play,
.global-horizon-toggle {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--fg);
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.global-play svg,
.global-horizon-toggle svg {
  width: 20px;
  height: 20px;
}
.global-play:hover,
.global-horizon-toggle:hover {
  box-shadow: 0 0 16px #36bf8620;
}
.global-horizon-toggle[aria-pressed="true"] {
  color: #32a77a;
}
.global-count {
  display: none;
}
.global-date {
  font-size: 13px;
}
.global-segments {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg);
  border-radius: 20px;
  margin-left: auto;
}
.global-segments button {
  font:
    500 11px -apple-system,
    sans-serif;
  background: none;
  border: 0;
  border-radius: 17px;
  color: var(--muted);
  padding: 8px 11px;
  cursor: pointer;
}
.global-segments button[aria-pressed="true"] {
  background: var(--sub);
  color: var(--fg);
}
.global-date-picker {
  width: 130px;
  min-width: 0;
  font:
    11px -apple-system,
    sans-serif;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 14px;
}
.global-time-track {
  position: relative;
  margin: 10px 0 7px;
  height: 46px;
  --time-position: 0;
}
.global-time {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 46px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  z-index: 3;
  cursor: ew-resize;
}
.global-time::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--line);
}
.global-time::-moz-range-track {
  height: 1px;
  background: var(--line);
}
.global-time::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  margin-top: -18px;
}
.global-time::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.global-time:focus-visible {
  outline: 2px solid #3c9976;
  outline-offset: 3px;
  border-radius: 22px;
}
.global-time-ticks {
  position: absolute;
  inset: 14px 18px;
  pointer-events: none;
}
.global-time-ticks i {
  position: absolute;
  width: 1px;
  height: 8px;
  top: 5px;
  background: var(--muted);
  opacity: 0.5;
}
.time-planet {
  position: absolute;
  left: calc(18px + (100% - 36px) * var(--time-position));
  top: 23px;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 0 5px #39b98865);
}
.time-planet > b {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 8px;
  height: 8px;
  background: #a6e3c5;
  border-radius: 50%;
  box-shadow:
    inset -2px -2px 3px #287c68,
    0 0 9px #3ba88180;
}
.time-orbit {
  position: absolute;
  inset: 7px -2px;
  border: 1px solid #78a39580;
  border-radius: 50%;
  transform: rotate(calc(-24deg + var(--orbit-turn)));
}
.time-orbit.orbit-two {
  inset: 1px 8px;
  transform: rotate(calc(30deg - var(--orbit-turn) * 0.4));
  border-color: #78a39545;
}
.time-orbit i {
  position: absolute;
  width: 4px;
  height: 4px;
  top: 3px;
  left: 3px;
  background: #78beaa;
  border-radius: 50%;
}
.global-scene {
  overflow: hidden;
  border-radius: 28px;
}
.globe-stage {
  height: clamp(360px, 46vw, 600px);
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  transition: height 0.65s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.global-horizon .global-visual {
  grid-template-columns: 1fr;
  gap: 12px;
}
.global-horizon .globe-stage {
  height: clamp(380px, 64dvh, 720px);
}
.global-horizon .global-insight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  min-height: 0;
}
.global-horizon .global-insight h3,
.global-horizon .event-rate-row {
  margin: 0;
}
.global-horizon .global-insight p {
  margin: 0;
}
.global-horizon .global-insight h4 {
  grid-column: 1/-1;
}
.global-horizon .global-discuss {
  margin: 0;
}
.global-insight {
  background: var(--sub);
  padding: 26px;
  border-radius: 28px;
  min-height: 390px;
  align-content: center;
}
.global-insight h3 {
  font-size: 25px;
}
.event-rate {
  font-size: clamp(26px, 2.9vw, 39px);
  white-space: normal;
}
.event-change {
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  padding: 8px 10px;
  font-size: 10px;
}
.global-discuss,
.global-open {
  border-radius: 24px;
  background: var(--bg);
  min-height: 44px;
}
.globe-pin {
  border-radius: 18px;
  background: var(--bg);
  font-size: 11px;
  padding: 8px 12px;
}
.global-history-tag {
  border-radius: 18px;
}
.global-events {
  flex-wrap: nowrap;
  max-height: none;
  overflow: auto;
}
.global-event {
  flex: 0 0 215px;
  padding: 17px;
  border-radius: 22px;
  border-color: var(--line);
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--bg);
}
.global-event b {
  grid-column: 1;
  font:
    12px/1.5 -apple-system,
    sans-serif;
  white-space: normal;
  max-width: 180px;
}
.global-event time {
  font-size: 10px;
}
.global-event strong {
  font-size: 13px;
}
.global-event small {
  font-size: 11px;
}
.global-event.future-event {
  opacity: 0.62;
}
.global-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.global-search,
.global-category {
  border: 1px solid var(--line);
  background: var(--sub);
  color: var(--fg);
  font:
    12px -apple-system,
    sans-serif;
  padding: 12px 16px;
  border-radius: 22px;
  min-width: 0;
}
.global-search {
  flex: 1;
}
.global-category {
  max-width: 170px;
}
.global-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}
.global-report-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.3fr);
  gap: 18px;
  margin: 16px 0 24px;
}
.event-brief,
.event-chart {
  background: var(--sub);
  border-radius: 26px;
  padding: 24px;
  min-width: 0;
}
.report-label {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.event-brief h3 {
  font-size: 22px;
  letter-spacing: -0.035em;
  margin: 16px 0 12px;
}
.event-brief h4 {
  font-size: 13px;
  margin: 22px 0 8px;
}
.event-brief p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.event-brief .brief-disclosure {
  font-size: 10px;
  margin: 18px 0 0;
}
.event-symbols {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.event-symbols span {
  font:
    10px ui-monospace,
    monospace;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.event-chart-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.event-chart-head strong {
  font-size: 13px;
  font-weight: 600;
}
.event-chart svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 26px 0 12px;
  overflow: visible;
}
.event-chart svg text {
  font:
    10px ui-monospace,
    monospace;
  fill: var(--muted);
}
.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-series {
  stroke: #3bac86;
  stroke-width: 2;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-event-marker {
  stroke: var(--muted);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}
.event-chart .chart-event-date {
  font-size: 9px;
}
.global-chart-note {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.event-chart a,
.chart-data summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.chart-data {
  margin-top: 16px;
}
.chart-data pre {
  max-height: 180px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.7;
}
.global-landing .global-report-grid,
.global-landing .global-filters {
  display: none;
}
.global-landing .global-insight {
  min-height: 420px;
}
.global-landing .global-insight h3 {
  font-size: 28px;
}
.global-landing .event-rate {
  font-size: 40px;
}
@container (max-width:900px) {
  .global-visual {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .globe-stage {
    height: 420px;
  }
  .global-insight {
    min-height: 0;
  }
  .global-report-grid {
    grid-template-columns: 1fr;
  }
  .global-date-picker {
    margin-left: auto;
  }
  .global-horizon .global-insight {
    display: block;
  }
  .global-horizon .global-insight h3 {
    margin: 8px 0 18px;
  }
  .global-horizon .global-insight p {
    margin: 12px 0;
  }
  .global-horizon .global-discuss {
    margin-top: 18px;
  }
}
@media (max-width: 760px) {
  .global-landing .global-insight {
    min-height: 0;
  }
  .global-clock {
    gap: 8px;
  }
  .global-date-picker {
    display: none;
  }
  .global-segments button {
    padding: 8px 10px;
  }
  .global-timeline {
    padding: 13px;
  }
  .global-landing .globe-stage {
    height: 360px;
  }
  .global-landing .global-visual {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .globe-stage {
    transition: none;
  }
}
.global-visual > .global-fx-label,
.global-visual > .global-fx-rail,
.global-visual > .global-fx-source {
  grid-column: 1/-1;
}
.global-fx-label {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
  margin: 8px 0 -16px;
}
.global-fx-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 3px;
}
.global-fx-market {
  flex: 1;
  min-width: 82px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sub);
  padding: 11px 13px;
  text-align: left;
  cursor: pointer;
}
.global-fx-market span {
  display: block;
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
  margin-bottom: 5px;
}
.global-fx-market strong {
  font:
    500 13px ui-monospace,
    monospace;
  white-space: nowrap;
}
.global-fx-market[data-direction="up"] strong {
  color: #218c62;
}
.dark .global-fx-market[data-direction="up"] strong {
  color: #4dcf98;
}
.global-fx-market[data-direction="down"] strong {
  color: #cf535c;
}
.dark .global-fx-market[data-direction="down"] strong {
  color: #ec7980;
}
.global-fx-market[data-direction="unknown"] strong {
  color: var(--muted);
}
.global-fx-source {
  font-size: 10px;
  color: var(--muted);
  margin-top: -20px;
  margin-bottom: -15px;
}
.global-horizon .global-fx-source {
  margin: 0;
}
.global-horizon .global-fx-label {
  margin: 8px 0 0;
}
/* Keep labels, market badges and citations in their own rows at every column width. */
.global-visual {
  row-gap: 16px;
}
.global-visual > .global-fx-label {
  margin: 8px 0 0;
  line-height: 1.6;
}
.global-visual > .global-fx-source {
  margin: 0 0 2px;
  line-height: 1.5;
}
.global-fx-rail {
  padding: 0 0 3px;
}
.time-planet {
  filter: drop-shadow(0 0 7px #39b98870);
}
.time-orbit {
  box-shadow: 0 0 2px #6dd4ad18;
}
.time-planet > b {
  background: radial-gradient(
    circle at 28% 25%,
    #effff7,
    #8ce4bc 30%,
    #26584b 78%
  );
}
.global-insight[hidden],
.global-report-grid[hidden] {
  display: none !important;
}
.global-scene {
  position: relative;
}
.horizon-data {
  display: none;
}
.global-horizon .horizon-data {
  position: absolute;
  display: block;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 2;
  max-width: 460px;
  margin: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.horizon-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font:
    12px ui-monospace,
    monospace;
}
.horizon-market-head span[data-direction="up"] {
  color: #31ac79;
}
.horizon-market-head span[data-direction="down"] {
  color: #dc7278;
}
.horizon-data svg {
  width: 100%;
  max-height: 140px;
  display: block;
  margin: 14px 0 8px;
}
.horizon-data svg text {
  font:
    9px ui-monospace,
    monospace;
  fill: var(--muted);
}
.horizon-data p {
  font:
    11px/1.6 -apple-system,
    sans-serif;
  margin: 5px 0;
  color: var(--muted);
}
.horizon-data small {
  font-size: 9px;
  color: var(--muted);
}
.global-horizon .globe-stage {
  height: clamp(440px, 65dvh, 670px);
}
/* The date cursor echoes the globe's monochrome particle surface. */
.global-timeline {
  margin: 4px 0 8px;
  padding: 8px 0;
  border-radius: 0;
  background: none;
  border-bottom: 1px solid var(--line);
}
.global-clock {
  gap: 7px;
  flex-wrap: nowrap;
}
.global-play,
.global-horizon-toggle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--sub);
}
.global-play svg,
.global-horizon-toggle svg {
  width: 14px;
  height: 14px;
}
.global-date {
  font:
    11px ui-monospace,
    monospace;
  white-space: nowrap;
}
.global-segments {
  padding: 2px;
  background: none;
  gap: 0;
}
.global-segments button {
  font-size: 9px;
  padding: 6px 7px;
}
.global-date-picker {
  display: none;
}
.global-time-track {
  height: 28px;
  margin: 4px 0;
}
.global-time {
  height: 28px;
}
.global-time::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -12px;
}
.global-time::-moz-range-thumb {
  width: 24px;
  height: 24px;
}
.global-time-ticks {
  inset: 5px 12px;
}
.global-range {
  font-size: 9px;
  padding: 0 4px;
}
.time-planet {
  top: 14px;
  width: 22px;
  height: 22px;
  left: calc(12px + (100% - 24px) * var(--time-position));
  filter: none;
}
.time-planet > b {
  inset: 0;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at 35% 27%, #d0d6d1cc, transparent 64%),
    radial-gradient(circle, #485550 40%, #101715);
  box-shadow:
    inset -4px -2px 6px #0008,
    0 0 0 1px #6c8f8055;
  overflow: hidden;
}
.time-planet > b:after {
  content: "";
  position: absolute;
  inset: -8px;
  background-image: radial-gradient(#d7e6decc 0.6px, transparent 0.9px);
  background-size: 3px 3px;
  transform: rotate(var(--orbit-turn));
}
.time-meridian {
  position: absolute;
  inset: 1px 6px;
  border: 1px solid #aec6b755;
  border-radius: 50%;
  transform: rotate(calc(var(--orbit-turn) * 0.12));
  pointer-events: none;
}
.global-horizon-toggle {
  margin-left: 0;
}
.embedded-tool .global-clock {
  flex-wrap: nowrap;
  gap: 6px;
}
.embedded-tool .global-timeline {
  padding: 8px 0;
}
.global-timeline .global-range {
  font:
    9px ui-monospace,
    monospace;
}
.global-time-track:focus-within .time-planet {
  filter: drop-shadow(0 0 4px #b9d1c770);
}
@container (max-width:420px) {
  .global-segments button {
    font-size: 8px;
    padding: 5px;
  }
  .global-horizon-toggle {
    width: 24px;
    min-width: 24px;
  }
  .global-date {
    font-size: 10px;
  }
}
.global-segments {
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
}
.global-segments button {
  flex-shrink: 0;
}
/* The chart owns its row in a narrow desktop pane; it never floats over the globe. */
[data-global] .global-play,
[data-global] .global-horizon-toggle {
  box-sizing: border-box;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-height: 28px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
}
@container (max-width:680px) {
  .global-horizon .global-scene {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0;
  }
  .global-horizon .horizon-data {
    position: relative;
    order: -1;
    inset: auto;
    margin: 0 12px;
    width: auto;
    max-width: none;
    padding: 14px 16px;
    border-radius: 22px;
    flex-shrink: 0;
  }
  .global-horizon .horizon-data svg {
    max-height: 100px;
    margin: 10px 0 6px;
  }
  .global-horizon .globe-stage {
    height: clamp(230px, 29dvh, 310px);
    min-height: 0;
    max-height: none;
    flex-shrink: 0;
  }
  .global-horizon .global-filters {
    margin-top: 14px;
  }
  .embedded-tool .global-scene {
    min-height: 0;
  }
}
/* A fixed projection surface prevents a resize/reprojection jump during zoom. */
@container (max-width:680px) {
  .global-scene,
  .global-horizon .global-scene {
    display: block;
    position: relative;
    height: clamp(390px, 49dvh, 460px);
    min-height: 0;
    overflow: hidden;
    overflow-anchor: none;
  }
  .global-scene .globe-stage,
  .global-horizon .globe-stage {
    height: 100%;
    max-height: none;
    min-height: 0;
    transition: none;
  }
  .global-scene .horizon-data,
  .global-horizon .horizon-data {
    position: absolute;
    display: block;
    inset: 10px 12px auto;
    margin: 0;
    width: auto;
    padding: 14px 16px;
    max-width: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.24s,
      transform 0.32s,
      visibility 0.24s;
  }
  .global-horizon .horizon-data {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .global-scene .horizon-data svg {
    max-height: 100px;
    margin: 10px 0 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .global-scene .horizon-data {
    transition: none;
  }
}
