/* Photographic contact sheet. All image edges are part of the observation. */
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies {
  --obs-body: #151a24;
  --obs-panel: #1b222e;
  --obs-ink: #efedf0;
  --obs-muted: #bfbdcc;
  --obs-mark: #dfc7ae;
  --obs-rule: #444955;
  color: var(--obs-ink);
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-image,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-photograph {
  mask-image: none;
  filter: none;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-image {
  background: #080b10;
  box-shadow: none;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-image::after,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-image:focus-visible::before {content: none;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-image:focus-visible {
  outline: 2px solid var(--obs-mark);
  outline-offset: -2px;
}
#theater #stage .mde-room .md-galaxies {
  background: linear-gradient(150deg, #121d25, var(--obs-body) 61%, #152129);
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-titles .md-designation,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .fde-observe-copy>span,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-camera {
  color: var(--obs-mark);
  font: 500 11px/1.45 Consolas,monospace;
  letter-spacing: .05em;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-titles .md-description,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .fde-observe-copy p {color: #d1d2da;line-height: 1.48;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: 100%;
  gap: clamp(6px,1cqw,13px);
  border: 0;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets button {
  display: grid;
  align-content: start;
  justify-content: stretch;
  gap: 5px;
  min-width: 0;
  min-height: 50px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--obs-muted);
  text-align: left;
  font: 600 13px/1.15 "Segoe UI", Arial, sans-serif;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets button::before {
  content: "";
  display: block;
  width: 100%;
  height: clamp(28px,3.2cqw,37px);
  background: #080b10 var(--contact-plate) center 47% / auto 142% no-repeat;
  opacity: .80;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies [data-galaxy=cartwheel] {
  --contact-plate: url("meridian-galaxy-cartwheel.webp");
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies [data-galaxy=whirlpool] {
  --contact-plate: url("meridian-galaxy-whirlpool.webp");
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies [data-galaxy=sombrero] {
  --contact-plate: url("meridian-galaxy-sombrero.webp");
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets button[aria-pressed=true] {
  color: var(--obs-ink);
  border-color: var(--obs-mark);
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets button[aria-pressed=true]::before {opacity: 1;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-proof-line button,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-original-layout header button {
  min-height: 44px;
  border: 1px solid var(--obs-rule);
  border-radius: 2px;
  background: var(--obs-panel);
  color: var(--obs-ink);
  font: 500 13px/1.25 "Segoe UI",Arial,sans-serif;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .fde-specimens button {
  min-height: 44px;
  color: var(--obs-muted);
  font: 500 12px/1.25 "Segoe UI",Arial,sans-serif;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .fde-specimens button[aria-pressed=true] {
  border-bottom-color: var(--obs-mark);
  color: var(--obs-ink);
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-rights, :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-rights a {color: var(--obs-muted);}

/* Catalogue field selectors use the same north-up, east-left Hipparcos guide stars as the chart. */
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas {
  --mde-bg: #080808;
  --mde-deep: #000;
  --mde-line: #42413c;
  --mde-text: #e6e4de;
  --mde-accent: #e7bd85;
  --mde-muted: #bcbab5;
  background: linear-gradient(180deg,#050505,#000 18%,#000 80%,var(--mde-bg));
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-head {align-items: end;gap: 12px 20px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets {
  display: flex;
  align-items: stretch;
  gap: 5px 12px;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--mde-muted);
  font: 500 clamp(13px,1.3cqw,16px)/1.2 "Segoe UI",Arial,sans-serif;
  letter-spacing: 0;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields button::before {
  content: "";
  display: block;
  flex: none;
  width: 31px;
  height: 26px;
  background: currentColor;
  mask: var(--field-geometry) center/contain no-repeat;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas [data-sky=orion] {--field-geometry: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2044%2032%22%3E%3Cpath%20d%3D%22M15.3%206.4%20L21.9%203.0%20L25.2%207.8%20L22.9%2016.6%20L21.5%2017.7%20L20.1%2018.7%20L15.3%206.4%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.35%22/%3E%3Cpath%20d%3D%22M20.1%2018.7%20L17.8%2029.0%20L28.7%2027.1%20L22.9%2016.6%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.35%22/%3E%3Ccircle%20cx%3D%2215.3%22%20cy%3D%226.4%22%20r%3D%222.2%22/%3E%3Ccircle%20cx%3D%2221.9%22%20cy%3D%223.0%22%20r%3D%221.5%22/%3E%3Ccircle%20cx%3D%2225.2%22%20cy%3D%227.8%22%20r%3D%221.9%22/%3E%3Ccircle%20cx%3D%2222.9%22%20cy%3D%2216.6%22%20r%3D%221.8%22/%3E%3Ccircle%20cx%3D%2221.5%22%20cy%3D%2217.7%22%20r%3D%221.9%22/%3E%3Ccircle%20cx%3D%2220.1%22%20cy%3D%2218.7%22%20r%3D%221.9%22/%3E%3Ccircle%20cx%3D%2217.8%22%20cy%3D%2229.0%22%20r%3D%221.8%22/%3E%3Ccircle%20cx%3D%2228.7%22%20cy%3D%2227.1%22%20r%3D%222.3%22/%3E%3C/svg%3E");}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas [data-sky=cygnus] {--field-geometry: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2044%2032%22%3E%3Cpath%20d%3D%22M17.2%203.0%20L22.2%2011.0%20L39.1%2029.0%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.35%22/%3E%3Cpath%20d%3D%22M32.4%203.3%20L22.2%2011.0%20L14.4%2020.0%20L4.9%2024.8%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.35%22/%3E%3Ccircle%20cx%3D%2217.2%22%20cy%3D%223.0%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%2222.2%22%20cy%3D%2211.0%22%20r%3D%221.8%22/%3E%3Ccircle%20cx%3D%2239.1%22%20cy%3D%2229.0%22%20r%3D%221.6%22/%3E%3Ccircle%20cx%3D%2232.4%22%20cy%3D%223.3%22%20r%3D%221.6%22/%3E%3Ccircle%20cx%3D%2214.4%22%20cy%3D%2220.0%22%20r%3D%221.7%22/%3E%3Ccircle%20cx%3D%224.9%22%20cy%3D%2224.8%22%20r%3D%221.5%22/%3E%3C/svg%3E");}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas [data-sky=ursa] {--field-geometry: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2044%2032%22%3E%3Cpath%20d%3D%22M3.5%2024.7%20L11.1%2018.0%20L17.6%2017.5%20L25.5%2016.3%20L30.3%2020.9%20L40.5%2014.9%20L37.8%207.3%20L25.5%2016.3%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.35%22/%3E%3Ccircle%20cx%3D%223.5%22%20cy%3D%2224.7%22%20r%3D%221.9%22/%3E%3Ccircle%20cx%3D%2211.1%22%20cy%3D%2218.0%22%20r%3D%221.8%22/%3E%3Ccircle%20cx%3D%2217.6%22%20cy%3D%2217.5%22%20r%3D%221.9%22/%3E%3Ccircle%20cx%3D%2225.5%22%20cy%3D%2216.3%22%20r%3D%221.5%22/%3E%3Ccircle%20cx%3D%2230.3%22%20cy%3D%2220.9%22%20r%3D%221.7%22/%3E%3Ccircle%20cx%3D%2240.5%22%20cy%3D%2214.9%22%20r%3D%221.8%22/%3E%3Ccircle%20cx%3D%2237.8%22%20cy%3D%227.3%22%20r%3D%221.9%22/%3E%3C/svg%3E");}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields button[aria-pressed=true] {
  color: var(--mde-accent);
  border-bottom-color: currentColor;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-platehead,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-scale {
  background: var(--mde-deep);
  color: var(--mde-muted);
  border: 0;
  padding: 8px 10px;
  font: 500 11px/1.3 Consolas,monospace;
  font-variant-numeric: tabular-nums;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-platehead b {color: var(--mde-text);font-size: 19px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls {
  display: flex;
  min-height: 44px;
  margin: 6px 0 0;
  align-items: center;
  gap: 5px 11px;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-zoom.mer-zoom {
  display: inline-grid;
  grid-template-columns: 44px minmax(30px,auto) 44px;
  align-items: center;
  gap: 0;
  background: var(--mde-deep);
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  color: var(--mde-text);
  font: 500 13px/1.2 "Segoe UI",Arial,sans-serif;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-zoom button {
  color: var(--mde-accent);
  font: 400 22px/1 Consolas,monospace;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-zoom output {font: 600 14px/1 Consolas,monospace;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls .mde-help {color: var(--mde-muted);font-size: 12px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-record {border-color: var(--mde-line);}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-overline {
  color: var(--mde-accent);
  font: 500 11px/1.35 Consolas,monospace;
  letter-spacing: .07em;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-record select {
  font: 400 clamp(23px,2.2cqw,34px)/1.16 Georgia,serif;
  color: var(--mde-text);
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-data {gap: 9px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-data b {
  color: var(--mde-text);
  font: 500 clamp(14px,1.35cqw,18px)/1.25 Consolas,monospace;
  font-variant-numeric: tabular-nums;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-data span,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-note {color: var(--mde-muted);font-size: 13px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-note {line-height: 1.5;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas :is(.mde-settings,.fde-photometry) summary,
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-setting-row button {min-height: 44px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) :is(.md-galaxies,.mde-atlas) :is(button,a,summary,select,input):focus-visible {
  outline: 2px solid var(--mde-accent,var(--obs-mark));
  outline-offset: -2px;
}
@media (hover:hover) {
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets button:hover {color: var(--obs-ink);}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets button:hover::before {opacity: 1;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields button:hover, :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls button:hover {color: var(--mde-accent);background: var(--mde-deep);}
}
@media(max-width: 650px) {
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets {width:100%;justify-content:space-between;gap:4px;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields button {gap:4px;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls {gap:3px 6px;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls .mde-help {flex-basis:100%;margin:0;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-data {gap:6px;}
}
@media(forced-colors:active) {
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields button::before {forced-color-adjust:none;background:ButtonText;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields button[aria-pressed=true]::before {background:Highlight;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .md-galaxies .md-targets button[aria-pressed=true],
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas button[aria-pressed=true] {border-bottom:2px solid Highlight;outline:1px solid Highlight;}
}
/* Align the photo strip to the observing notes, including their inner margins. */
#theater #stage .mde-room .md-galaxies .md-targets {
  width: auto;
  justify-self: stretch;
}
/* A rocker selects the instrument. Constellation keys carry their own charted patterns. */
#theater #stage .mde-room .mde-switch > div {
  display:inline-flex; align-items:stretch; gap:2px; padding:3px;
  background:#0c0c0c; border:1px solid #393936; border-radius:4px;
  box-shadow:inset 0 1px 3px #000;
}
#theater #stage .mde-switch button {
  display:inline-flex; align-items:center; gap:9px; min-height:44px; padding:6px 13px;
  border:0; border-radius:2px; color:#c3c2bd; background:transparent;
  font:550 13px/1.2 "Segoe UI",Arial,sans-serif;
}
#theater #stage .mde-switch button::before {
  content:""; width:18px; height:11px; box-sizing:border-box;
  border:1px solid currentColor; border-radius:50%;
  background:radial-gradient(circle at center,currentColor 0 2px,transparent 2.7px);
  transform:rotate(-24deg);
}
#theater #stage .mde-switch [data-instrument=atlas]::before {
  width:16px; height:16px; transform:none; border-radius:0; border:0;
  background:linear-gradient(90deg,transparent 46%, currentColor 46% 53%, transparent 53%),
    linear-gradient(transparent 46%, currentColor 46% 53%, transparent 53%),
    radial-gradient(circle,transparent 0 40%,currentColor 44% 50%,transparent 54%);
}
#theater #stage .mde-switch button[aria-pressed=true] {
  background:linear-gradient(#302f2b,#1d1d1b);
  color:#efd4a9; box-shadow:inset 0 1px #686356,0 1px 2px #000;
}
#theater #stage .mde-switch button:focus-visible {outline:2px solid #eac797;outline-offset:-2px;}
@media (max-width:480px) {
  #theater #stage .mde-room .mde-switch {align-items:flex-start;gap:10px 20px;padding-block:12px;}
  #theater #stage .mde-room .mde-switch > div {max-width:100%;}
}

:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets {
  display:flex; flex-wrap:wrap; gap:2px;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets button[data-sky] {
  position:relative; align-items:center; padding:5px 10px;
  border:1px solid transparent; border-radius:2px;
  min-height:48px; color:var(--mde-muted); background:transparent;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets button[data-sky][aria-pressed=true] {
  color:var(--mde-accent);
  border-color:color-mix(in srgb,var(--mde-accent) 40%,transparent);
  background:linear-gradient(120deg,color-mix(in srgb,var(--mde-accent) 11%,black),var(--mde-deep));
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets button[data-sky]::before {width:29px;height:24px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas canvas.mde-map {background:#000;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-platehead, :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-scale {background:var(--mde-deep);}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-platehead {padding-top:12px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-scale {padding-bottom:10px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls {gap:7px 12px;margin-top:12px;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-zoom.mer-zoom {
  grid-template-columns:44px minmax(51px,auto) 44px;
  padding:2px; border:1px solid var(--mde-line);
  border-radius:3px; box-shadow:inset 0 1px 3px #000;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls .mde-zoom button {
  padding:0; border:0; color:var(--mde-text);
  background:linear-gradient(180deg,#42413e,#262624 55%,#20201e);
  box-shadow:inset 0 1px #66635e,inset 0 -2px #141412;
  font:400 20px/1 Consolas,monospace;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls .mde-zoom button:disabled {opacity:1;color:#777772;background:#191919;box-shadow:inset 0 1px #323230;}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls .mde-zoom output {
  padding:5px 2px 7px; color:var(--mde-accent);
  background:repeating-linear-gradient(90deg,var(--mde-line) 0 1px,transparent 1px 6px) center bottom / 72% 3px no-repeat;
  font:600 14px/1 Consolas,monospace;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls [data-reset] {
  gap:8px; padding:5px 9px; min-height:44px;
  color:var(--mde-muted); border:1px solid transparent; border-radius:2px;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls [data-reset]::before {
  content:"";box-sizing:border-box;display:block;width:17px;height:17px;border-radius:50%;
  background:linear-gradient(90deg,transparent 46%,currentColor 46% 53%,transparent 53%),
    linear-gradient(transparent 46%,currentColor 46% 53%,transparent 53%),
    radial-gradient(circle,transparent 0 39%,currentColor 44% 49%,transparent 54%);
}
@media (max-width:650px) {
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets {width:100%;justify-content:start;gap:3px;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets button[data-sky] {padding:5px 6px;gap:4px;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets button[data-sky]::before {width:23px;height:21px;}
}
@container (max-width:395px) {
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls {
    display:grid; grid-template-columns:minmax(112px,1.5fr) minmax(44px,1fr);
    align-items:center; gap:4px;
  }
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls .mde-zoom.mer-zoom {grid-template-columns:44px minmax(22px,1fr) 44px;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls [data-reset] {
    flex-direction:column; justify-content:center; padding:3px 0; gap:5px;
    font-size:12px; line-height:1;
  }
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls .mde-help {grid-column:1/-1;margin:4px 0 0;}
}
@media (forced-colors:active) {
  #theater #stage .mde-switch button[aria-pressed=true], :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets button[data-sky][aria-pressed=true] {outline:2px solid Highlight;outline-offset:-2px;}
  :is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) .mde-atlas .mde-controls [data-night][aria-pressed=true] {outline:2px solid Highlight;}
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) body.red-light .md-galaxies {
  --obs-body: #201716;
  --obs-panel: #342622;
  --obs-ink: #f0cfc1;
  --obs-muted: #d4b2a9;
  --obs-mark: #f3af92;
  --obs-rule: #805c50;
}
/* The three coupled keys set the displayed plate scale. The other keys act on the photograph. */
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales {
  display: grid;
  grid-template-columns: 44px 49px 44px minmax(102px,1.15fr) minmax(81px,1fr);
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
  justify-content: start;
  gap: 1px;
  padding: 3px;
  border: 0;
  border-radius: 3px;
  background: #101821;
  box-shadow: inset 0 1px #34444e;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button,
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales .md-zoom-readout {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button {
  gap: 5px;
  padding: 4px 7px;
  background: #202b35;
  color: #dce4e6;
  font: 600 12px/1.15 "Segoe UI",Arial,sans-serif;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales :is([data-action=minus],[data-action=plus]) {
  min-width: 44px;
  padding: 0;
  background: #192e38;
  color: #ace3e7;
  font: 400 23px/1 Consolas,monospace;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales .md-zoom-readout {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  margin: 0;
  padding: 0 3px;
  background: #091820;
  color: #afe1e1;
  font: 600 16px/1 Consolas,monospace;
  font-variant-numeric: tabular-nums;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales .md-zoom-readout::before {
  content: "Scale";
  display: block;
  color: #adc1c6;
  font: 500 9px/1.1 Consolas,monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies:has(.md-image[data-zoomed=true]) .md-zoom-readout {
  background: #11313b;
  color: #deffff;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=detail] {
  color: #f2d3a5;
  background: #332e29;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales :is([data-action=detail],[data-action=reset])::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: var(--optics-command) center/contain no-repeat;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies [data-action=detail] {
  --optics-command: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 6V1.5H6m4 0h4.5V6m0 4v4.5H10m-4 0H1.5V10M5 8h6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies [data-action=reset] {
  --optics-command: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2 1 5l3 3M1.5 5H9a4.5 4.5 0 0 1 0 9H5' fill='none' stroke='black' stroke-width='1.65'/%3E%3C/svg%3E");
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button:disabled {
  opacity: 1;
  color: #657984;
  background: #18242c;
}
@media (hover:hover) {
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button:hover:enabled {filter:brightness(1.21);}
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button:active:enabled {
  background: #364c57; text-decoration: none;
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button:focus-visible {
  outline: 2px solid #d3ece8;
  outline-offset: -3px;
}
:is(#theater #stage .mde-room, html[data-ver-cursor=meridian]) body.red-light .md-galaxies .md-scales :is(button,.md-zoom-readout) {
  background: #332522;
  color: #f4bea7;
}
@media(forced-colors:active) {
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales {background: Canvas;box-shadow:none;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button {background: ButtonFace;color: ButtonText;border:1px solid ButtonText;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales .md-zoom-readout {color: CanvasText;background: Canvas;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales button:disabled {color: GrayText;}
}
@media(max-width:430px) {
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales :is([data-action=minus],[data-action=plus]) {width:100%;justify-self:stretch;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales {
    width: auto;
    grid-template-columns: repeat(6,minmax(0,1fr));
    justify-self: stretch;
  }
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=minus] {grid-area: 1 / 1 / 2 / 3;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales .md-zoom-readout {grid-area: 1 / 3 / 2 / 5;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=plus] {grid-area: 1 / 5 / 2 / 7;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=detail] {grid-area: 2 / 1 / 3 / 4;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=reset] {grid-area: 2 / 4 / 3 / 7;}
}
@container md-tools (max-width:365px) {
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales :is([data-action=minus],[data-action=plus]) {width:100%;justify-self:stretch;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales {
    width: auto;
    grid-template-columns: repeat(6,minmax(0,1fr));
    justify-self: stretch;
  }
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=minus] {grid-area: 1 / 1 / 2 / 3;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales .md-zoom-readout {grid-area: 1 / 3 / 2 / 5;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=plus] {grid-area: 1 / 5 / 2 / 7;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=detail] {grid-area: 2 / 1 / 3 / 4;}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies .md-scales [data-action=reset] {grid-area: 2 / 4 / 3 / 7;}
}
