:root {
  color-scheme: light;
  --paper: #f4efe5;
  --ink: #0f2430;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(42, 115, 134, 0.14), transparent 30%),
    linear-gradient(180deg, #efe8dc 0%, var(--paper) 100%);
}

body.is-viewport-stage {
  display: block;
  overflow: hidden;
}

.app-shell {
  width: 100vw;
  height: 100dvh;
  padding: 0;
  display: grid;
  place-items: center;
}

body.is-viewport-stage .app-shell {
  width: 100vw;
  height: 100dvh;
  padding: 0;
}

.workspace {
  display: grid;
  place-items: center;
  position: relative;
  width: 100vw;
  height: 100dvh;
  touch-action: none;
}

.atlas-stage {
  position: relative;
  width: min(100vw, calc(100dvh * 1200 / 860));
  aspect-ratio: 1200 / 860;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.boot-globe-poster {
  display: none;
}

.atlas-stage.is-viewport-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
}

.is-mobile-default-globe .atlas-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
}

.atlas-stage.is-flat-projection {
  cursor: grab;
}

.atlas-stage.is-dymaxion {
  cursor: default;
}

.atlas-stage.is-dragging {
  cursor: grabbing;
}

.atlas-canvas,
.atlas-empire-canvas,
.atlas-overlay-canvas,
.atlas-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.atlas-empire-canvas,
.atlas-overlay-canvas,
.atlas-overlay {
  pointer-events: none;
}

.atlas-canvas {
  z-index: 1;
}

.atlas-empire-canvas,
.atlas-overlay-canvas,
.atlas-overlay {
  z-index: 2;
}

.boot-stage-poster {
  display: none;
}

.is-mobile-default-globe .boot-stage-poster {
  position: absolute;
  inset: 0;
  display: block;
  background-image: var(--boot-stage-poster-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 3;
}

.is-mobile-default-globe .atlas-canvas,
.is-mobile-default-globe .atlas-empire-canvas,
.is-mobile-default-globe .atlas-overlay-canvas,
.is-mobile-default-globe .atlas-overlay {
  opacity: 0;
}

.month-trigger {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 3;
}

.month-menu-toggle {
  position: fixed;
  right: 18px;
  bottom: 10vh;
  z-index: 6;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.76);
  box-shadow: 0 16px 32px rgba(7, 31, 43, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  touch-action: manipulation;
}

.month-menu-toggle:hover,
.month-menu-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(7, 31, 43, 0.18);
}

.month-menu-toggle:focus-visible {
  outline: 2px solid rgba(176, 108, 44, 0.85);
  outline-offset: 3px;
}

.month-menu-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  fill: none;
  stroke: rgba(15, 36, 48, 0.84);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.month-overlay {
  position: fixed;
  left: 28px;
  right: 28px;
  bottom: 18px;
  z-index: 4;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  touch-action: pan-x;
}

.month-trigger:hover + .month-overlay,
.month-overlay:hover,
.month-overlay:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.month-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body:not(.is-earth-enabled) .month-trigger,
body:not(.is-earth-enabled) .month-menu-toggle,
body:not(.is-earth-enabled) .month-overlay {
  opacity: 0;
  pointer-events: none;
}

.layer-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 104px;
  height: 100dvh;
  z-index: 4;
}

.layer-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 6;
  display: none;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.76);
  box-shadow: 0 16px 32px rgba(7, 31, 43, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  touch-action: manipulation;
}

.layer-menu-toggle:hover,
.layer-menu-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(7, 31, 43, 0.18);
}

.layer-menu-toggle:focus-visible,
.layer-panel-close:focus-visible {
  outline: 2px solid rgba(176, 108, 44, 0.85);
  outline-offset: 3px;
}

.layer-menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 36, 48, 0.82);
}

.mobile-refresh {
  position: fixed;
  top: calc(23vh - 60px);
  right: 18px;
  z-index: 8;
  display: none;
}

.mobile-refresh-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.76);
  box-shadow: 0 16px 32px rgba(7, 31, 43, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  touch-action: manipulation;
}

.mobile-refresh-button:hover,
.mobile-refresh-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(7, 31, 43, 0.18);
}

.mobile-refresh-button:focus-visible,
.mobile-refresh-menu-item:focus-visible {
  outline: 2px solid rgba(176, 108, 44, 0.85);
  outline-offset: 3px;
}

.mobile-refresh-icon {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 36, 48, 0.82);
  border-radius: 999px;
}

.mobile-refresh-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 20px 48px rgba(7, 31, 43, 0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  touch-action: manipulation;
}

.mobile-refresh-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.projection-switcher {
  position: fixed;
  left: 50%;
  bottom: 20vh;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--projection-switcher-width, 208px);
  height: var(--projection-switcher-height, 46px);
  max-width: calc(100vw - 48px);
  padding: var(--projection-switcher-padding-y, 11px) var(--projection-switcher-padding-x, 16px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--projection-switcher-radius, 999px);
  background: rgba(255, 251, 245, 0.8);
  box-shadow: 0 16px 32px rgba(7, 31, 43, 0.14);
  backdrop-filter: blur(14px);
  color: rgba(15, 36, 48, 0.86);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform:
    translateX(calc(-50% + var(--projection-switcher-shift-x, 0px)))
    translateY(var(--projection-switcher-shift-y, 0px));
  touch-action: pan-x;
  user-select: none;
  overflow: visible;
  transition:
    box-shadow 220ms ease,
    background 220ms ease,
    transform 220ms ease,
    width 220ms ease,
    min-width 220ms ease,
    height 220ms ease,
    padding 220ms ease,
    border-radius 220ms ease,
    opacity 180ms ease;
}

.projection-switcher.is-dragging {
  transition: none;
  box-shadow: 0 20px 38px rgba(7, 31, 43, 0.18);
}

.projection-switcher-track {
  position: relative;
  display: block;
  width: 100%;
  min-height: 1.2em;
  overflow: hidden;
  opacity: var(--projection-switcher-track-opacity, 1);
  transition: opacity 180ms ease;
}

.projection-switcher-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -11px;
  opacity: var(--projection-switcher-icon-opacity, 0);
  transform: scale(calc(0.8 + (0.2 * var(--projection-switcher-icon-opacity, 0))));
  transition:
    opacity 180ms ease,
    transform 220ms ease;
  overflow: visible;
}

.projection-switcher-icon circle,
.projection-switcher-icon ellipse,
.projection-switcher-icon path {
  fill: none;
  stroke: rgba(15, 36, 48, 0.8);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projection-switcher-boot-label {
  display: none;
  position: static;
  width: 100%;
  text-align: center;
  transform: none;
}

.is-mobile-default-globe .projection-switcher-boot-label {
  display: block;
}

.is-mobile-default-globe .projection-switcher-label:not(.projection-switcher-boot-label) {
  opacity: 0;
}

.is-mobile-default-globe.is-mobile-boot-zoomed .projection-switcher {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  transform: translateX(calc(-50% + calc(50vw - 42px))) translateY(0);
}

.is-mobile-default-globe.is-mobile-boot-zoomed .projection-switcher-boot-label {
  display: none;
}

.is-mobile-default-globe.is-mobile-boot-zoomed .projection-switcher-track {
  opacity: 0;
}

.is-mobile-default-globe.is-mobile-boot-zoomed .projection-switcher-icon {
  opacity: 1;
  transform: scale(1);
}

.projection-switcher.is-ready .projection-switcher-boot-label {
  display: none;
}

.projection-switcher-label {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: center;
  transform: translateX(calc(-50% + var(--projection-item-offset, 0px)));
}

.projection-switcher.is-settling .projection-switcher-label {
  transition: transform 140ms cubic-bezier(0.22, 0.78, 0.18, 1);
}

.projection-switcher:focus-visible {
  outline: 2px solid rgba(176, 108, 44, 0.85);
  outline-offset: 3px;
}

.mobile-refresh-menu-item {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 36, 48, 0.86);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mobile-refresh-menu-item:hover,
.mobile-refresh-menu-item:focus-visible {
  background: rgba(244, 235, 220, 0.96);
}

.atlas-earth-canvas {
  -webkit-mask-image: var(--atlas-mask-image);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--atlas-mask-image);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.atlas-stage.is-flat-projection .atlas-earth-canvas {
  -webkit-mask-image: none;
  mask-image: none;
}

.atlas-stage.is-single-globe .atlas-earth-canvas {
  -webkit-mask-image: var(--single-globe-mask-image);
  mask-image: var(--single-globe-mask-image);
}

.frame {
  fill: none;
  stroke: rgba(8, 27, 38, 0.85);
  stroke-width: 2;
}

.frame-dymaxion {
  display: none;
}

.frame-single-globe {
  display: none;
}

.atlas-overlay .frame-single-globe {
  display: none;
}

.atlas-stage.is-flat-projection .frame-atlas {
  display: none;
}

.atlas-stage.is-single-globe .frame-atlas {
  display: none;
}

.atlas-stage.is-single-globe .frame-single-globe {
  display: block;
}

.is-mobile-default-globe .atlas-stage .frame-atlas,
.is-mobile-default-globe .atlas-stage .frame-dymaxion {
  display: none;
}

.is-mobile-default-globe .atlas-stage .frame-single-globe {
  display: block;
}

.atlas-stage.is-dymaxion .frame-dymaxion {
  display: block;
}

.layer-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 7;
  width: min(280px, calc(100vw - 32px));
  padding: 18px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 48px rgba(7, 31, 43, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  touch-action: manipulation;
  overscroll-behavior: contain;
}

.layer-panel-scroll {
  display: grid;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.layer-panel-scroll::-webkit-scrollbar {
  display: none;
}

.layer-panel-scrollbar {
  position: absolute;
  top: 56px;
  right: 0;
  bottom: 18px;
  width: 8px;
  border-radius: 999px;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.layer-panel-scrollbar.is-visible {
  opacity: 1;
}

.layer-panel-scrollbar-thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(15, 36, 48, 0.22);
  pointer-events: auto;
}

.layer-panel-scrollbar-thumb:hover {
  background: rgba(15, 36, 48, 0.32);
}

.layer-panel.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.layer-panel.is-color-previewing {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.layer-panel.is-color-previewing > :not(.layer-panel-scroll) {
  opacity: 0;
}

.layer-panel.is-color-previewing .layer-panel-scroll > * {
  visibility: hidden;
}

.layer-panel.is-color-previewing .layer-group:has(.layer-control-color.is-previewing-color),
.layer-panel.is-color-previewing .layer-sublist:has(.layer-control-color.is-previewing-color),
.layer-panel.is-color-previewing .layer-control-color.is-previewing-color,
.layer-panel.is-color-previewing .layer-group:has(.layer-opacity-control.is-previewing-opacity),
.layer-panel.is-color-previewing .layer-sublist:has(.layer-opacity-control.is-previewing-opacity),
.layer-panel.is-color-previewing .layer-opacity-control.is-previewing-opacity,
.layer-panel.is-color-previewing .layer-group:has(.layer-control.is-previewing-width),
.layer-panel.is-color-previewing .layer-sublist:has(.layer-control.is-previewing-width),
.layer-panel.is-color-previewing .layer-control.is-previewing-width {
  visibility: visible;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.layer-panel.is-color-previewing .layer-group:has(.layer-control-color.is-previewing-color) > .layer-group-head,
.layer-panel.is-color-previewing .layer-group:has(.layer-control-color.is-previewing-color) .layer-control:not(.is-previewing-color),
.layer-panel.is-color-previewing .layer-control-color.is-previewing-color > :not(.layer-color-panel),
.layer-panel.is-color-previewing .layer-group:has(.layer-control-color.is-previewing-color) .layer-control-color.is-previewing-color.is-previewing-field .layer-color-panel > :not(.layer-color-field),
.layer-panel.is-color-previewing .layer-group:has(.layer-control-color.is-previewing-color) .layer-control-color.is-previewing-color.is-previewing-hue .layer-color-panel > :not(.layer-color-hue-slider),
.layer-panel.is-color-previewing .layer-group:has(.layer-opacity-control.is-previewing-opacity) > .layer-group-head,
.layer-panel.is-color-previewing .layer-group:has(.layer-opacity-control.is-previewing-opacity) .layer-control:not(.is-previewing-opacity),
.layer-panel.is-color-previewing .layer-group:has(.layer-control.is-previewing-width) > .layer-group-head,
.layer-panel.is-color-previewing .layer-group:has(.layer-control.is-previewing-width) .layer-control:not(.is-previewing-width),
.layer-panel.is-color-previewing .layer-opacity-control.is-previewing-opacity > :not(.layer-opacity-range),
.layer-panel.is-color-previewing .layer-control.is-previewing-width > :not(.layer-range-input) {
  visibility: hidden;
}

.layer-panel.is-color-previewing .layer-control-color.is-previewing-color,
.layer-panel.is-color-previewing .layer-control-color.is-previewing-color .layer-color-panel,
.layer-panel.is-color-previewing .layer-control-color.is-previewing-color .layer-color-field,
.layer-panel.is-color-previewing .layer-control-color.is-previewing-color .layer-color-hue-slider,
.layer-panel.is-color-previewing .layer-opacity-control.is-previewing-opacity,
.layer-panel.is-color-previewing .layer-opacity-control.is-previewing-opacity .layer-opacity-range,
.layer-panel.is-color-previewing .layer-control-color.is-previewing-color .layer-color-field * {
  visibility: visible;
  opacity: 1;
}

.layer-panel.is-color-previewing .layer-control.is-previewing-width,
.layer-panel.is-color-previewing .layer-control.is-previewing-width .layer-range-input {
  visibility: visible;
  opacity: 1;
}

.layer-trigger:hover + .layer-menu-toggle + .layer-panel,
.layer-panel:hover,
.layer-panel:focus-within {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.layer-menu-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.layer-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 32px;
}

.panel-eyebrow {
  margin: 0;
  color: rgba(15, 36, 48, 0.7);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.layer-panel-close {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 36, 48, 0.08);
  cursor: pointer;
}

.layer-panel-close span {
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 36, 48, 0.78);
}

.layer-panel-close span:first-child {
  transform: rotate(45deg);
}

.layer-panel-close span:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .projection-switcher {
    opacity: 1;
    pointer-events: auto;
  }

  .month-menu-toggle {
    right: 18px;
    bottom: 10vh;
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .layer-trigger {
    display: none;
  }

  .month-trigger {
    display: none;
  }

  .month-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
    top: auto;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
  }

  .month-trigger:hover + .month-overlay,
  .month-overlay:hover,
  .month-overlay:focus-within {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
  }

  .month-overlay.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.is-mobile-month-docked .month-menu-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  body.is-month-overlay-open .month-menu-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  body.is-mobile-month-docked .month-overlay {
    top: auto;
    bottom: 18px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .layer-menu-toggle {
    top: 23vh;
    right: 18px;
    display: inline-grid;
  }

  .layer-panel {
    top: 23vh;
    max-height: calc(100dvh - 23vh - 18px);
  }

  .layer-trigger:hover + .layer-menu-toggle + .layer-panel,
  .layer-panel:hover,
  .layer-panel:focus-within {
    opacity: 0;
    transform: translateX(calc(100% + 24px));
    pointer-events: none;
  }

  .layer-panel.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-refresh {
    display: block;
  }
}

.projection-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  width: 100%;
  min-width: 0;
}

.projection-label {
  margin: 0;
  color: rgba(15, 36, 48, 0.62);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.projection-picker {
  position: relative;
  z-index: 12;
  min-width: 0;
}

.projection-picker-button {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 42px 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 36, 48, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 245, 236, 0.94));
  color: rgba(15, 36, 48, 0.78);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-radius 180ms ease;
}

.projection-picker-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projection-picker-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(15, 36, 48, 0.55);
  border-bottom: 2px solid rgba(15, 36, 48, 0.55);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: transform 180ms ease;
}

.projection-picker-button:focus {
  outline: none;
  border-color: rgba(15, 36, 48, 0.1);
  box-shadow: none;
}

.projection-picker.is-open .projection-picker-button {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.projection-picker.is-open .projection-picker-chevron {
  transform: translateY(-35%) rotate(225deg);
}

.projection-picker-list {
  display: grid;
  gap: 6px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border: 1px solid rgba(15, 36, 48, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 30px rgba(15, 36, 48, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.projection-picker.is-open .projection-picker-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.projection-picker-option {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(15, 36, 48, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(15, 36, 48, 0.76);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.projection-picker-option.is-active {
  border-color: rgba(15, 36, 48, 0.12);
  background: linear-gradient(180deg, rgba(244, 238, 224, 0.95), rgba(237, 228, 208, 0.92));
  color: rgba(15, 36, 48, 0.88);
}

@media (hover: hover) and (pointer: fine) {
  .projection-picker-option:hover,
  .projection-picker-button:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 239, 225, 0.98));
  }
}

.layer-list {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
}

.layer-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.layer-group-shell {
  gap: 0;
  padding: 0;
  border: 1px solid rgba(15, 36, 48, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.layer-group-shell:not(.is-active) {
  opacity: 0.56;
  background: rgba(255, 255, 255, 0.34);
}

.layer-group-shell > .layer-group-head .layer-item-group {
  padding-top: 12px;
  padding-bottom: 12px;
}

.layer-group-head {
  display: block;
}

.layer-group-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  border-radius: 12px;
  background: rgba(15, 36, 48, 0.06);
  cursor: inherit;
  transition:
    transform 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.layer-item-group:hover .layer-group-toggle,
.layer-item-group:focus-visible .layer-group-toggle {
  transform: translateY(-1px);
  background: rgba(15, 36, 48, 0.1);
}

.layer-group-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 36, 48, 0.66);
  border-bottom: 2px solid rgba(15, 36, 48, 0.66);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.layer-group.is-open > .layer-group-head .layer-group-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.layer-sublist {
  display: grid;
  padding: 2px 10px 0 10px;
  min-width: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 180ms ease,
    max-height 180ms ease;
}

.layer-group.is-open > .layer-sublist {
  opacity: 1;
  overflow: hidden;
}

.layer-sublist-controls {
  min-width: 0;
}

.layer-group.is-open > .layer-body {
  padding-top: 0;
  overflow: visible;
}

.layer-body {
}

.layer-body-spacer {
  height: 8px;
  min-height: 8px;
}

.layer-body-row.layer-control {
  padding-top: 8px;
  padding-bottom: 8px;
}

.layer-body-row-color.layer-control-color {
  gap: 8px;
}

.layer-body-row-color .layer-color-swatch-scroll {
  padding-top: 18px;
  margin-top: -18px;
  padding-bottom: 0;
}

.layer-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 36, 48, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  color: #0f2430;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.layer-item-group {
  grid-template-columns: 20px minmax(0, 1fr) 40px;
  border: 0;
  background: transparent;
  border-radius: 18px;
}

.layer-group-shell.is-open > .layer-group-head .layer-item-group {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.layer-item:focus-visible {
  border-color: rgba(15, 36, 48, 0.18);
  outline: none;
}

.layer-item:focus-visible {
  transform: translateY(-1px);
}

.layer-item:not(.is-active) {
  opacity: 0.56;
  background: rgba(255, 255, 255, 0.34);
}

.layer-item-sub {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.layer-group.is-disabled .layer-item-sub {
  opacity: 0.5;
}

.layer-group .layer-sublist {
  min-width: 0;
}

.layer-group .layer-sublist > * {
  min-width: 0;
}

.layer-control {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 36, 48, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.layer-control-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.layer-control-copy strong,
.layer-control-copy small {
  display: block;
}

.layer-control-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  min-width: 0;
}

.layer-control-copy small {
  color: rgba(15, 36, 48, 0.6);
  font-size: 0.78rem;
  white-space: nowrap;
}

.layer-range-input {
  width: 100%;
  margin: 0;
  accent-color: #0f6d8d;
}

.layer-control-color {
  gap: 12px;
}

.layer-control-color .layer-control-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.layer-inline-color-dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 36, 48, 0.14);
  background: var(--layer-active-color, #ffffff);
  flex: 0 0 auto;
  align-self: center;
}

.layer-inline-color-button {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  vertical-align: middle;
}

.layer-inline-color-choice::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(15, 36, 48, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.layer-inline-color-button:focus-visible {
  outline: none;
}

.layer-inline-color-button .layer-inline-color-dot {
  width: 22px;
  height: 22px;
}

.layer-inline-color-button-plus {
  padding: 0;
  justify-content: flex-start;
}

.layer-inline-color-plus {
  color: rgba(15, 36, 48, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px dashed rgba(15, 36, 48, 0.18);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 160ms ease;
  transform: rotate(0deg);
}

.layer-control-color.is-panel-open .layer-inline-color-plus {
  transform: rotate(45deg);
}

.layer-control-color .layer-control-copy strong {
  margin-right: auto;
  white-space: nowrap;
}

.layer-control-color .layer-control-copy small {
  display: inline-block;
  min-width: 74px;
  white-space: nowrap;
  text-align: right;
}

.layer-hex-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 36, 48, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 36, 48, 0.82);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer-hex-input:focus {
  outline: none;
  border-color: rgba(15, 36, 48, 0.24);
}

.layer-color-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.layer-color-swatch-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-left: 0;
  padding-right: 4px;
  padding-top: 24px;
  padding-bottom: 2px;
  margin-top: -24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: auto;
}

.layer-color-swatch-scroll::-webkit-scrollbar {
  display: none;
}

.layer-color-swatch-row {
  display: flex;
  width: max-content;
  gap: 2px;
  overflow: visible;
}

.layer-opacity-control {
  display: grid;
  gap: 8px;
}

.layer-opacity-label {
  color: rgba(15, 36, 48, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.layer-opacity-range {
  width: 100%;
  margin: 0;
  accent-color: #0f6d8d;
}

.layer-inline-color-customs {
  display: flex;
  gap: 2px;
}

.layer-inline-color-custom {
  position: relative;
}

.layer-inline-color-remove {
  position: absolute;
  left: 50%;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d94b4b;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -14px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.layer-inline-color-custom.is-remove-visible .layer-inline-color-remove {
  opacity: 1;
  transform: translate(-50%, -22px);
  pointer-events: auto;
}

.layer-inline-color-choice.is-active .layer-inline-color-dot {
  border-color: rgba(15, 36, 48, 0.62);
}

.layer-inline-color-choice.is-active::after {
  opacity: 1;
}

.layer-inline-color-choice.is-duplicate-flash::after {
  opacity: 1;
  border-color: rgba(91, 140, 90, 0.92);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(91, 140, 90, 0.28);
}

.layer-color-panel {
  display: grid;
  gap: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    max-height 160ms ease,
    padding-top 160ms ease;
}

.layer-control-color.is-panel-open .layer-color-panel {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  max-height: none;
  padding-top: 8px;
  overflow: visible;
}

.layer-control-color.is-previewing-color {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(15, 36, 48, 0.05);
}

.layer-control-color.is-previewing-color > :not(.layer-color-panel) {
  opacity: 0.08;
}

.layer-control-color.is-previewing-color .layer-color-panel > :not(.layer-color-field) {
  opacity: 0.08;
}

.layer-control-color.is-previewing-color .layer-color-field {
  opacity: 1;
}

.layer-color-add-button {
  padding: 8px 14px;
  border: 1px solid rgba(15, 36, 48, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 36, 48, 0.82);
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.layer-color-field {
  position: relative;
  width: 100%;
  height: 112px;
  border: 1px solid rgba(15, 36, 48, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, var(--layer-color-field-hue, #ff0000) 100%);
  cursor: pointer;
  touch-action: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.layer-color-field:hover,
.layer-color-field:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 36, 48, 0.24);
}

.layer-color-field-handle {
  position: absolute;
  left: var(--layer-color-field-x, 100%);
  top: var(--layer-color-field-y, 0%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: var(--layer-active-color, #ffffff);
  box-shadow: 0 0 0 1px rgba(15, 36, 48, 0.22), 0 6px 12px rgba(7, 31, 43, 0.16);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.layer-color-field:focus-visible,
.layer-inline-color-button:focus-visible {
  outline: none;
}

.layer-color-hue-slider {
  position: relative;
  width: 100%;
  height: 16px;
  border: 1px solid rgba(15, 36, 48, 0.14);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 17%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 67%,
    #ff00ff 83%,
    #ff0000 100%
  );
  touch-action: none;
}

.layer-color-hue-handle {
  position: absolute;
  left: var(--layer-color-hue-x, 0%);
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: var(--layer-color-field-hue, #ff0000);
  box-shadow: 0 0 0 1px rgba(15, 36, 48, 0.22), 0 4px 10px rgba(7, 31, 43, 0.16);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .layer-inline-color-button:hover {
    transform: translateY(-1px);
  }
}

.layer-copy {
  display: grid;
  gap: 3px;
}

.layer-copy strong,
.layer-copy small {
  display: block;
}

.layer-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
}

.layer-copy small {
  color: rgba(15, 36, 48, 0.6);
  font-size: 0.82rem;
}

.layer-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(15, 36, 48, 0.22);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.layer-checkmark {
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.layer-item.is-active .layer-checkbox {
  background: linear-gradient(135deg, #0f6d8d 0%, #1d9ec0 100%);
  border-color: rgba(15, 109, 141, 0.9);
}

.layer-item.is-active .layer-checkmark {
  opacity: 1;
}

.month-slider {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  touch-action: pan-x;
}

.month-chip {
  min-width: 0;
  padding: 11px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 250, 242, 0.36);
  background: rgba(20, 34, 41, 0.42);
  color: rgba(255, 248, 240, 0.8);
  backdrop-filter: blur(10px);
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.month-chip:hover,
.month-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 243, 227, 0.56);
  outline: none;
}

.month-chip.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(15, 36, 48, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(7, 31, 43, 0.12);
}

@media (max-width: 900px) {
  .month-slider {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
