.atlas-world[hidden] { display: none !important; }
.atlas-world {
  position: absolute; inset: 0; z-index: 2;
  color: #fff3e1; background: #10172a; isolation: isolate;
  --atlas-border: rgba(252,239,210,.45);
}
.atlas-world canvas {
  display: block; width: 100%; height: 100%; cursor: grab;
  touch-action: pan-y pinch-zoom; outline-offset: -4px;
}
.atlas-world canvas:active { cursor: grabbing; }
.atlas-world canvas:focus-visible { outline: 3px solid #ffac90; }
.atlas-world-tools {
  position: absolute; bottom: max(.45rem, 2%); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1px; border: 1px solid var(--atlas-border);
  border-radius: 6px; overflow: hidden; background: #0c1424;
  box-shadow: 0 2px 9px #06091983; white-space: nowrap;
}
.atlas-world-tools button {
  border: 0; background: #172235; color: #fff3e1; min-width: 44px; min-height: 44px;
  padding: .38rem .65rem; font: 650 clamp(.78rem, 1vw, .94rem)/1.2 Figtree, Arial, sans-serif; cursor: pointer;
}
.atlas-world-tools button:first-child, .atlas-world-tools button:nth-child(3) { font-size: 1.17rem; }
.atlas-world-tools button:last-child { border-left: 1px solid var(--atlas-border); }
.atlas-world-tools button:hover { background: #37445a; }
.atlas-world-tools button:focus-visible { outline: 2px solid #ffac90; outline-offset: -3px; }
.atlas-world-status { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); }
.atlas-world [hidden] { display: none !important; }
.atlas-world-tools {
  bottom: max(.4rem, env(safe-area-inset-bottom));
  max-width: calc(100% - max(.65rem, env(safe-area-inset-left)) - max(.65rem, env(safe-area-inset-right)));
}
.atlas-world-tools button { min-width: 40px; }
.atlas-world[data-medium="compare"] canvas { width: 50%; }
.atlas-world[data-medium="original"] canvas { pointer-events: none; }
.atlas-world-tools button:disabled { opacity: .48; cursor: default; }
.atlas-plate-surface { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #10172a; }
.atlas-world[data-medium="compare"] .atlas-plate-surface { left: 50%; border-left: 2px solid #f7e1bd; }
.atlas-plate-crop {
  position: absolute; inset: 0; background-repeat: no-repeat; background-size: cover;
  background-position: var(--plate-x, 50%) var(--plate-y, 50%);
  transform: scale(var(--plate-zoom,1)); transform-origin: var(--plate-x,50%) var(--plate-y,50%);
}
.atlas-medium-labels {
  position: absolute; top: .55rem; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr;
  pointer-events: none; font: 650 .72rem/1.25 Figtree, Arial, sans-serif;
}
.atlas-medium-labels span { justify-self: start; background: #172235ed; color: #ffefd3; border-radius: .14rem; margin: 0 .6rem; padding: .29rem .42rem; }
.atlas-question-overlay {
  position: absolute; top: .55rem; left: .65rem; max-width: min(80%, 29rem); margin: 0;
  padding: .4rem .65rem; background: #132033ef; color: #fff5e5; border-left: 3px solid #f99d80;
  font: 550 clamp(.8rem,1.2vw,1.25rem)/1.35 Fraunces, Georgia, serif;
}
.atlas-world[data-medium="compare"] .atlas-question-overlay { top: 2.65rem; }
.atlas-field-guide {
  position: absolute; right: max(.45rem,env(safe-area-inset-right)); bottom: 3.8rem;
  min-width: 0; width: min(19.4rem, calc(100% - .9rem)); max-height: calc(100% - 4.3rem);
  overflow: auto; overscroll-behavior: contain; scrollbar-color: #bca78e #f7efdf;
  background: #faf2e2; box-shadow: 0 8px 26px #07122455; color: #172235; border: 1px solid #c8b499;
  border-radius: .28rem; padding: .9rem; font: 500 .88rem/1.4 Figtree, Arial, sans-serif;
}
.atlas-field-guide header { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin: 0 0 .58rem; }
.atlas-field-guide h3 { margin: 0; color: #172235; font: 550 1.45rem/1.1 Fraunces, Georgia, serif; letter-spacing: -.035em; }
.atlas-field-guide button, .atlas-field-guide select {
  color: #172235; background: #fff9ed; border: 1px solid #ac9c85; border-radius: .18rem; cursor: pointer;
  font: 650 .85rem/1.28 Figtree, Arial, sans-serif; min-height: 38px; padding: .37rem .48rem;
}
.atlas-field-guide :is(button,select,input,summary):focus-visible { outline: 3px solid #9b432d; outline-offset: 1px; }
.atlas-field-guide button:disabled { opacity: .48; cursor: default; }
.atlas-field-guide header button { min-width: 38px; font-size: 1.28rem; }
.atlas-field-guide > label { display: grid; gap: .2rem; margin: .56rem 0 .4rem; font-weight: 700; }
.atlas-field-guide select { width: 100%; }
.atlas-itinerary, .atlas-optics { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.atlas-optics { justify-content: flex-start; margin-top: .57rem; }
.atlas-optics button { min-width: 39px; }
.atlas-optics output { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.atlas-notebook { margin: .68rem 0; border-top: 1px solid #c4b69e; }
.atlas-notebook p, .atlas-keys p { color: #303c42; font: inherit; margin: .48rem 0; }
.atlas-notebook > p { color: #172235; font-family: Fraunces, Georgia, serif; font-size: 1.12rem; }
.atlas-field-guide summary { cursor: pointer; padding: .32rem 0; font-weight: 650; }
.atlas-tick { display: flex; gap: .4rem; align-items: center; margin: .55rem 0; }
.atlas-tick input { accent-color: #89503c; width: 1.05rem; height: 1.05rem; }
.atlas-overview { margin: .6rem 0 .3rem; }
@media(max-width:480px) {
  .atlas-world-tools { width: max-content; }
  .atlas-world-tools button { min-width: 34px; min-height: 44px; padding: .28rem .36rem; font-size: .74rem; }
  .atlas-field-guide { right: .3rem; bottom: 3.4rem; max-height: calc(100% - 3.75rem); max-width: calc(100% - .6rem); padding: .66rem; }
  .atlas-field-guide :is(button,select) { min-height: 44px; }
  .atlas-medium-labels span { margin: 0 .3rem; }
}
@media(max-width:320px) { .atlas-world-tools { flex-wrap: wrap; justify-content: center; } }
@media(forced-colors: active) {
  .atlas-field-guide, .atlas-world-tools, .atlas-world-tools button, .atlas-medium-labels span { border: 1px solid ButtonText; }
  .atlas-world :focus-visible { outline: 3px solid Highlight; }
}
