:root {
  --clay-coral: #ff6f78;
  --clay-ink: #214968;
}

.clay-globe-page *,
.clay-globe-page *::before,
.clay-globe-page *::after {
  box-sizing: border-box;
}

.presence-body #themeChooser #radioContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.presence-body #themeChooser .modes {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  cursor: pointer;
}

.presence-body #themeChooser .modes input[type="radio"] {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.presence-body #themeChooser .modes:has(input:checked) {
  border-color: var(--primary);
  background-color: var(--primaryLightest);
}

.presence-body #themeChooser .modes:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.clay-globe-card {
  width: 100%;
  margin: 20px 0 38px;
}

.clay-globe-card-live {
  --clay-canvas-overscan-x: min(10%, max(0px, calc((100vw - 100%) / 2 - 8px)));
  position: relative;
  left: 50%;
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  transform: translateX(-50%);
}

.clay-globe-card-live .clay-globe-stage {
  aspect-ratio: 0.85 / 1;
}

.clay-globe-card-live #clayGlobe {
  right: auto;
  left: calc(0px - var(--clay-canvas-overscan-x));
  width: calc(100% + var(--clay-canvas-overscan-x) + var(--clay-canvas-overscan-x));
}

.clay-globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  min-height: 470px;
  overflow: visible;
  background: transparent;
  isolation: isolate;
}

#clayGlobe {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
  touch-action: none;
}

#clayGlobe:active {
  cursor: grabbing;
}

#clayGlobe:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.95);
}

.clay-globe-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 5px;
  color: var(--clay-ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(39, 105, 133, 0.14);
  font-family: var(--serifFonts, "Chakra Petch", sans-serif);
  font-size: 13px;
  font-weight: 600;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, visibility 220ms ease;
  pointer-events: none;
}

.clay-globe-loading span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clay-coral);
  box-shadow: 0 0 0 0 rgba(255, 111, 120, 0.42);
  animation: clayLoading 1.45s ease-out infinite;
}

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

.clay-globe-tooltip {
  position: absolute;
  z-index: 6;
  max-width: 230px;
  padding: 8px 11px;
  border: 1px solid rgba(32, 83, 109, 0.16);
  border-radius: 5px;
  color: #193f5c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(25, 72, 98, 0.24);
  font-family: var(--serifFonts, "Chakra Petch", sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}

.clay-globe-card figcaption {
  margin-top: 4px;
  color: var(--darkTextSecondary, #5f6f7f);
  font-family: var(--serifFonts, "Chakra Petch", sans-serif);
  font-size: 13px;
  line-height: 1.55;
}

.clay-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.clay-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.clay-presence-table {
  min-width: 610px;
  table-layout: fixed;
}

.clay-location-column {
  width: 30%;
}

.clay-page-column {
  width: 70%;
}

.clay-table-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 14px;
  white-space: nowrap;
}

.clay-country-flag {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.clay-location-pip {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 2px solid var(--primary, #0798ff);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary, #0798ff) 18%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary, #0798ff) 8%, transparent);
}

.clay-table-placeholder td {
  color: var(--darkTextSecondary, #5f6f7f);
}

.clay-table-loader {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--clay-coral);
  box-shadow: 0 0 0 0 rgba(255, 111, 120, 0.42);
  animation: clayLoading 1.45s ease-out infinite;
}

.clay-new-arrival td {
  animation: clayArrival 1.8s ease-out;
}

.clay-noscript {
  margin-top: 24px;
  padding: 18px;
  border-radius: 12px;
  color: var(--darkTextSecondary, #5f6f7f);
  background: var(--primaryLightest, #eaf7ff);
}

@keyframes clayLoading {
  to {
    box-shadow: 0 0 0 13px transparent;
    opacity: 0.45;
  }
}

@keyframes clayArrival {
  0% {
    background: rgba(255, 230, 164, 0.72);
  }
}

@media (max-width: 700px) {
  .presence-body #themeChooser {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    box-sizing: border-box;
    margin-top: 0;
    overflow-y: auto;
  }

  .clay-globe-card-live {
    width: calc(100vw - 12px);
  }

  .clay-globe-stage {
    aspect-ratio: 1 / 1.08;
    min-height: 350px;
  }
}

@media (max-width: 430px) {
  .clay-globe-stage {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clay-globe-loading,
  .clay-globe-loading span,
  .clay-table-loader,
  .clay-new-arrival td {
    animation: none;
    transition: none;
  }
}
