/* Meridian's working register. The chart itself is an equatorial tangent plane. */
#stage[data-scene=meridian]:has(.mde-room){height:auto;min-height:0;overflow:visible}
#stage .mde-room{position:relative;inset:auto;display:block;min-width:0;width:100%;height:auto;margin:0;padding:0;text-align:left;background:#141c21;color:#e6e6df}
.mde-room *,.mde-atlas *{box-sizing:border-box}
.mde-room .mde-switch{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px clamp(15px,2.4vw,38px);margin:0;color:#e9e5da;background:#162126;border-bottom:1px solid #425259}
#stage .mde-room .mde-switch h2{display:block;margin:0;padding:0;color:#e9e7de;font:normal clamp(21px,2.1vw,35px)/1.08 Georgia,serif;letter-spacing:-.045em;text-transform:none;white-space:normal}
.mde-switch h2 em{font-weight:400;color:#bbc7c7}
.mde-switch>div{display:flex;align-items:center;gap:16px}
.mde-room .mde-switch button,.mde-atlas button{display:inline-flex;align-items:center;justify-content:center;position:static;width:auto;height:auto;min-width:0;min-height:40px;margin:0;padding:6px 0;border:0;border-bottom:1px solid transparent;background:none;border-radius:0;box-shadow:none;text-align:center;color:var(--mde-muted,#c1cccc);font:500 13px/1.2 Arial,sans-serif;text-shadow:none;letter-spacing:.015em;text-transform:none;white-space:normal;cursor:pointer}
.mde-room .mde-switch button[aria-pressed=true],.mde-atlas button[aria-pressed=true]{color:var(--mde-accent,#edcf96);border-bottom-color:currentColor}
.mde-room .mde-switch button:focus-visible,.mde-atlas :is(button,select,summary,input,canvas,a):focus-visible{outline:2px solid var(--mde-accent,#ecc789);outline-offset:-2px}
.mde-room .mde-worktop,.mde-holder{min-width:0}
.mde-atlas{--mde-bg:#182227;--mde-deep:#111b20;--mde-line:#415458;--mde-text:#e3e8df;--mde-accent:#e9c88f;--mde-muted:#b3c3c4;position:relative;isolation:isolate;container-type:inline-size;display:block;padding:clamp(15px,2.5vw,40px);width:100%;min-width:0;background:var(--mde-bg);color:var(--mde-text);color-scheme:dark;text-align:left}
.mde-atlas[data-night=true]{--mde-bg:#251513;--mde-deep:#1d100e;--mde-line:#6a3c32;--mde-text:#eab09a;--mde-accent:#efa386;--mde-muted:#cb9684;color-scheme:dark}
.mde-head,.mde-body{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(186px,25%);align-items:stretch;gap:clamp(14px,2.4cqw,36px)}
.mde-head{grid-template-columns:minmax(155px,1fr) auto;align-items:end;margin-bottom:16px}
.mde-atlas .mde-overline{display:block;color:var(--mde-muted);font:500 10px/1.4 Consolas,monospace;letter-spacing:.12em;text-transform:uppercase}
.mde-atlas .mde-head h3{margin:5px 0 0;color:var(--mde-text);font:400 clamp(32px,4.6cqw,76px)/.99 Georgia,serif;letter-spacing:-.055em;text-transform:none}
.mde-atlas .mde-head h3 em{color:var(--mde-accent);font-weight:400}
.mde-atlas .mde-fields.mer-targets{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;width:auto;position:static;inset:auto;margin:0;padding:0;box-shadow:none;background:transparent}
.mde-atlas .mde-fields button,.mde-atlas .mde-fields button[aria-pressed=true]{flex:initial;min-width:0;width:auto;min-height:40px;font:normal clamp(15px,1.6cqw,21px)/1.25 Georgia,serif;letter-spacing:-.025em;padding:6px 0;color:var(--mde-muted);background:none;border:0;border-bottom:1px solid transparent;border-radius:0;box-shadow:none}
.mde-atlas .mde-fields button[aria-pressed=true]{color:var(--mde-accent);border-bottom-color:var(--mde-accent)}
.mde-atlas .mde-fields button::before,.mde-atlas .mde-fields button::after{display:none}
.mde-visual,.mde-record{min-width:0}
.mde-visual{display:grid;grid-template-columns:minmax(0,1fr);align-content:start}
.mde-platehead,.mde-scale,.mde-controls,.mde-citation{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mde-platehead,.mde-scale{padding:7px 10px;background:var(--mde-deep);color:var(--mde-muted);font:11px/1.35 Consolas,monospace}
.mde-platehead{border-top:1px solid var(--mde-line);border-bottom:1px solid var(--mde-line);letter-spacing:.075em}
.mde-platehead b{color:var(--mde-accent);font:normal 17px/1.2 Georgia,serif;letter-spacing:0}
.mde-atlas canvas.mde-map,.live-stage .mde-atlas canvas.mde-map{display:block;position:static;inset:auto;transform:none;width:100%;height:clamp(275px,34cqw,580px);min-width:0;min-height:0;max-width:none;max-height:none;aspect-ratio:auto;object-fit:fill;border:0;border-radius:0;box-shadow:none;background:#122837;opacity:1;touch-action:none;cursor:crosshair}
.mde-scale{justify-content:space-between;border-bottom:1px solid var(--mde-line)}
.mde-controls{justify-content:flex-start;gap:16px;flex-wrap:wrap}
.mde-atlas .mde-zoom.mer-zoom{display:flex;align-items:center;justify-content:flex-start;gap:5px;position:static;inset:auto;min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
.mde-atlas .mde-zoom button{min-height:42px;width:35px;font:normal 23px/1 Georgia,serif;color:var(--mde-text);background:none;border:0;border-radius:0;box-shadow:none}
.mde-atlas button:disabled{opacity:.33;cursor:default}
.mde-atlas .mde-zoom output{display:block;min-width:38px;width:auto;margin:0;padding:0;background:none;color:var(--mde-accent);text-align:center;font:12px/1 Consolas,monospace}
.mde-record{padding-left:clamp(14px,1.8cqw,30px);border-left:1px solid var(--mde-line)}
.mde-record label{display:block}
.mde-atlas .mde-record select{appearance:auto;display:block;width:100%;height:auto;min-height:44px;margin:6px 0 11px;padding:5px 2px 5px 0;color:var(--mde-accent);background:var(--mde-bg);border:0;border-bottom:1px solid var(--mde-line);border-radius:0;font:normal clamp(22px,2.1cqw,35px)/1.15 Georgia,serif;letter-spacing:-.04em}
.mde-atlas .mde-data{display:grid;gap:8px}
.mde-atlas .mde-data div{display:grid;gap:2px}
.mde-atlas .mde-data div>span,.mde-atlas .mde-data small,.mde-atlas .mde-epoch.mer-credit,.mde-atlas .mde-note,.mde-atlas .mde-settings summary,.mde-atlas .mde-settings label,.mde-atlas .mde-citation{color:var(--mde-muted);font:normal 12px/1.45 Arial,sans-serif;letter-spacing:0;text-transform:none}
.mde-atlas .mde-data b{color:var(--mde-text);font:normal 14px/1.45 Consolas,monospace}
.mde-atlas .mde-data small{font-family:Consolas,monospace;color:var(--mde-accent)}
.mde-atlas .mde-epoch.mer-credit{position:static;inset:auto;display:block;width:auto;min-height:0;margin:1px 0 0;font:10px/1.4 Consolas,monospace}
.mde-atlas .mde-note{margin:10px 0 6px}
.mde-atlas .mde-settings{border:0;border-top:1px solid var(--mde-line);background:none;margin:12px 0 0;padding:0}
.mde-atlas .mde-settings summary{display:list-item;min-height:38px;padding:10px 0 6px;cursor:pointer;color:var(--mde-text)}
.mde-atlas .mde-settings summary::after{content:none}
.mde-setting-row{display:flex;flex-wrap:wrap;gap:12px}
.mde-atlas .mde-settings label{margin:6px 0 0}
.mde-atlas .mde-settings output{color:var(--mde-accent);float:right;font-family:Consolas,monospace}
.mde-atlas .mde-settings input[type=range]{appearance:auto;display:block;width:100%;height:24px;padding:0;margin:0;accent-color:var(--mde-accent);background:none;border:0}
.mde-atlas .mde-citation{align-items:baseline;flex-wrap:wrap;padding:10px 0 0;margin:7px 0 0;border-top:1px solid var(--mde-line);background:none;font:10px/1.5 Consolas,monospace}
.mde-atlas .mde-citation a{color:var(--mde-muted);text-decoration:underline;text-underline-offset:3px}
.mde-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container (max-width:640px){
 .mde-head,.mde-body{grid-template-columns:minmax(0,1fr);gap:10px}
 .mde-head{margin-bottom:10px}.mde-atlas .mde-head h3{font-size:clamp(32px,8cqw,47px)}
 .mde-atlas .mde-fields.mer-targets{gap:18px}.mde-atlas .mde-fields button{min-height:37px}
 .mde-atlas canvas.mde-map,.live-stage .mde-atlas canvas.mde-map{height:clamp(255px,77cqw,375px)}
 .mde-record{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:0 12px;align-items:start;border-left:0;border-top:1px solid var(--mde-line);padding:12px 0 0}
 .mde-atlas .mde-record select{margin:0;min-height:44px;font-size:21px}
 .mde-record .mde-data{grid-column:2;grid-row:1/span 3;gap:4px;align-self:start}
 .mde-atlas .mde-data div{gap:0}.mde-atlas .mde-data div>span{font-size:11px}
 .mde-atlas .mde-data b{font-size:13px}
 .mde-atlas .mde-note{margin:6px 0;font-size:12px}
 .mde-atlas .mde-settings{grid-column:1/-1}.mde-atlas .mde-controls{gap:12px}
}
@media(max-width:660px){
 .mde-room .mde-switch{gap:6px;align-items:center;flex-wrap:wrap;padding:8px 12px}.mde-switch>div{gap:14px}.mde-room .mde-switch button{font-size:12px;min-height:38px}
 .mde-atlas{padding:12px}.mde-atlas .mde-controls button{font-size:12px}.mde-atlas .mde-zoom button{font-size:22px}
}
@media(forced-colors:active){.mde-atlas button[aria-pressed=true],.mde-room .mde-switch button[aria-pressed=true]{outline:1px solid ButtonText}}

/* Keep the calibrated chart above the older full-site SVG and button rules. */
.mde-mini .mde-head .mde-overline{display:none}
.mde-atlas .mde-zoom.mer-zoom button+output{align-self:center;display:block;min-width:36px;height:auto;line-height:1.2;border:0}
.mde-atlas .mde-fields.mer-targets{border:0}
.mde-atlas .mde-help{margin:0 0 0 auto;color:var(--mde-muted);font:11px/1.5 Arial,sans-serif}
.mde-atlas .mde-record [data-locate]{min-height:36px;text-decoration:underline;text-underline-offset:4px;color:var(--mde-accent)}
.mde-atlas .mde-record [hidden]{display:none}
.mde-atlas .mde-settings .mde-keys{margin:7px 0 0;color:var(--mde-muted);font:11px/1.45 Arial,sans-serif}
html[data-ver-cursor=meridian] #atlas .mde-atlas button[data-sky][aria-pressed=true]{color:var(--mde-accent);background:transparent;border-bottom:1px solid currentColor}
html[data-ver-cursor=meridian] #atlas .mde-atlas button:is(:focus,:hover){background:transparent;color:var(--mde-text)}
html[data-ver-cursor=meridian] #atlas .mde-atlas canvas#sky-map{position:static;aspect-ratio:auto;height:clamp(275px,34cqw,580px);touch-action:none}
@container (max-width:640px){
 html[data-ver-cursor=meridian] #atlas .mde-atlas canvas#sky-map{height:clamp(255px,77cqw,375px)}
 .mde-atlas .mde-controls .mde-help{flex-basis:100%;margin:-6px 0 0}
}

.mde-atlas button,.mde-room .mde-switch button{-webkit-tap-highlight-color:transparent}
.mde-atlas button:active,.mde-room .mde-switch button:active{color:var(--mde-accent,#edcf96)}

.mde-chart-window {position:relative;min-width:0;isolation:isolate;}
.mde-atlas .mde-star-card {
  position:absolute;z-index:2;box-sizing:border-box;width:min(244px,calc(100% - 12px));
  max-height:calc(100% - 12px);overflow:auto;margin:0;padding:13px 15px;
  background:linear-gradient(145deg,var(--atlas-key,#242425),var(--mde-deep));
  color:var(--mde-text);border:1px solid var(--atlas-frame,#595650);border-radius:8px;
  box-shadow:inset 2px 0 var(--mde-accent),0 5px 18px #0009;text-align:left;
}
.mde-star-card[hidden]{display:none;}
.mde-atlas .mde-star-card small {display:block;padding-right:27px;color:var(--mde-muted);font:10px/1.4 Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;}
.mde-atlas .mde-star-card strong {display:block;margin:4px 25px 6px 0;font:400 24px/1.06 Georgia,serif;color:var(--mde-text);}
.mde-atlas .mde-star-card p {margin:0;color:var(--mde-text);font:13px/1.45 system-ui,sans-serif;}
.mde-atlas .mde-star-card dl {display:grid;grid-template-columns:auto auto;gap:4px;margin:9px 0 0;padding-top:8px;border-top:1px solid var(--mde-line);}
.mde-atlas .mde-star-card dt {font:11px/1.4 system-ui,sans-serif;color:var(--mde-muted);}
.mde-atlas .mde-star-card dd {margin:0;text-align:right;font:11px/1.4 Consolas,monospace;color:var(--mde-text);}
.mde-atlas .mde-star-card button[data-card-close] {position:absolute;top:3px;right:3px;width:32px;height:32px;min-height:32px;border:0;border-radius:50%;color:var(--mde-muted);font:20px/1 system-ui;background:transparent;}
.mde-atlas .mde-star-card button:hover {color:var(--mde-text);background:var(--atlas-key);}
.mde-atlas .mde-star-card small a {color:inherit;font:inherit;letter-spacing:inherit;text-decoration:underline;text-underline-offset:3px;}

/* The same chart and observing register travel together into the study view. */
.mde-platehead > span {margin-left:auto}
.mde-atlas .mde-platehead [data-expand], .mde-study .mde-study-bar button {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;width:auto;
  padding:5px 10px;border:1px solid #625e53;border-radius:5px;background:#1c1d1b;
  color:#f2e8d5;font:600 13px/1.2 system-ui,sans-serif;cursor:pointer;
}
.mde-atlas [data-expand]::before {
  content:"";width:14px;height:14px;background:
    linear-gradient(currentColor,currentColor) left top/6px 1.5px,
    linear-gradient(currentColor,currentColor) left top/1.5px 6px,
    linear-gradient(currentColor,currentColor) right bottom/6px 1.5px,
    linear-gradient(currentColor,currentColor) right bottom/1.5px 6px;background-repeat:no-repeat;
}
dialog.mde-study[open] {
  position:fixed;inset:0;width:100%;height:100%;width:100dvw;height:100dvh;
  max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;
  box-sizing:border-box;color-scheme:dark;background:#080909;color:#eee6da;overflow:hidden;
}
.mde-study::backdrop {background:#080909}
.mde-study-screen {height:100%;width:100%;overflow:auto;overscroll-behavior:contain;background:#080909}
.mde-study-bar {
  position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:5px max(16px,env(safe-area-inset-right)) 5px max(16px,env(safe-area-inset-left));
  padding-top:max(5px,env(safe-area-inset-top));border-bottom:1px solid #393832;background:#121312;
}
.mde-study-bar span {font:600 11px/1.25 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#cfc6b5}
.mde-study .mde-study-bar button {min-height:40px}
.mde-study .mde-study-bar button:focus-visible {outline:2px solid #d5bf94;outline-offset:1px}
.mde-study .mde-atlas {
  --mde-bg:#101110;--mde-deep:#0b0c0b;--mde-line:#46453e;--mde-text:#eeeae2;--mde-accent:#e4cfa8;--mde-muted:#c4c1b7;
  box-sizing:border-box;background:#0b0c0c;padding:clamp(10px,1.8vw,28px);
}
.mde-study .mde-atlas .mde-overline:first-child:not(.mde-record *) {display:none}
.mde-study .mde-atlas .mde-head {align-items:center;margin:0 0 12px}
.mde-study .visit-atlas-hint {display:none}
.mde-study .mde-atlas .mde-head :is(h2,h3) {margin:0;font:400 clamp(24px,2.8vw,44px)/1.1 Georgia,serif}
.mde-study .mde-atlas .mde-fields {gap:6px}
.mde-study .mde-atlas .mde-fields button[data-sky] {
  min-height:40px;padding:6px 12px;background:#191a18;color:#dedbd2;border:1px solid #4b4b43;border-radius:4px;font:550 13px/1.2 system-ui,sans-serif;
}
.mde-study .mde-atlas .mde-fields button[aria-pressed=true] {border-color:#beaa83;color:#f1ddbb;background:#302e27}
.mde-study .mde-atlas .mde-visual {min-width:0;border:1px solid #393a35;border-radius:6px;overflow:hidden;align-self:start}
.mde-study .mde-atlas .mde-platehead [data-expand] {display:none}
.mde-study .mde-atlas .mde-controls {padding:3px 9px}
.mde-study .mde-atlas .mde-chart-window canvas.mde-map {
  height:clamp(300px,calc(100dvh - 238px),1600px) !important;width:100%;background:#000;
}
.mde-study .mde-atlas .mde-record {align-self:start}
@media(max-width:700px) {
  .mde-study .mde-atlas .mde-body,.mde-study .mde-atlas .mde-head {grid-template-columns:minmax(0,1fr);gap:8px}
  .mde-study .mde-atlas .mde-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .mde-study .mde-atlas .mde-chart-window canvas.mde-map {height:clamp(310px,59dvh,780px) !important}
  .mde-study .mde-atlas .mde-controls .mde-help {flex-basis:auto;font-size:11px}
  .mde-study .mde-atlas .mde-controls {gap:5px}
}
@media (max-height:490px) and (min-width:600px) {
  .mde-study .mde-atlas .mde-chart-window canvas.mde-map {height:72dvh !important}
}
@media(pointer:coarse) {
  .mde-atlas .mde-platehead [data-expand],.mde-study .mde-study-bar button {min-height:44px}
}

/* Bright sources scintillate in place. The catalogue canvas only redraws when the view changes. */
.mde-starlight {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1;}
.mde-starlight i {
  position:absolute;width:var(--glint-size);height:var(--glint-size);translate:-50% -50%;
  background:radial-gradient(circle,currentColor 0%,transparent 58%),
    radial-gradient(ellipse 51% 7%,currentColor,transparent),radial-gradient(ellipse 7% 51%,currentColor,transparent);
  opacity:.36;animation:meridian-glint 6s ease-in-out infinite alternate;
}
@keyframes meridian-glint {from{opacity:.12;transform:scale(.73)}to{opacity:.79;transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.mde-starlight i{animation:none;opacity:.36}}
html[data-studio-motion=off] .mde-starlight i,body.atlas-paused .mde-starlight i {animation-play-state:paused}
.mde-exposure[hidden],.mde-atlas:not(.mde-study .mde-atlas) .mde-record > .mde-exposure {display:none}
.mde-atlas figure.mde-exposure {position:static;display:block;width:100%;max-width:none;margin:8px 0 12px;padding:0;border:0;background:transparent;box-shadow:none;}
.mde-atlas figure.mde-exposure[hidden]{display:none;}
.mde-atlas .mde-exposure .mde-plate-open {display:block;position:relative;width:100%;padding:0;overflow:hidden;border:1px solid #766e5966;border-radius:5px;background:#060911}
.mde-atlas .mde-exposure img {position:static;display:block;width:100%;height:auto;aspect-ratio:5/3;object-fit:contain;max-width:none;opacity:1;filter:none;}
.mde-atlas .mde-plate-open span {position:absolute;bottom:4px;right:4px;padding:3px 7px;background:#080b13e5;border-radius:3px;color:#f3eada;font:600 11px/1.4 system-ui;}
.mde-atlas .mde-exposure figcaption {position:static;display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 6px;margin:4px 0 0;padding:0;color:#bdb8ad;background:transparent;border:0;font:10px/1.4 system-ui,sans-serif;}
.mde-exposure figcaption a{font:inherit;color:inherit;text-decoration:underline;}
dialog.mde-plate-inspection[open] {position:fixed;inset:0;width:min(90vw,840px);height:fit-content;max-height:96dvh;margin:auto;padding:12px;border:1px solid #776e60;border-radius:10px;background:#10131a;color:#f5e8ce;box-sizing:border-box;}
.mde-plate-inspection::backdrop {background:#020408df;}
dialog.mde-plate-inspection header,dialog.mde-plate-inspection footer {position:static;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 2px;background:none;color:#ded5c6;}
dialog.mde-plate-inspection strong {font:400 23px Georgia,serif;}
dialog.mde-plate-inspection button {font:600 13px system-ui;color:#f1e8dc;padding:8px 12px;border:1px solid #797565;border-radius:5px;background:#25272c;cursor:pointer;}
dialog.mde-plate-inspection img {display:block;width:100%;height:auto;max-height:calc(90dvh - 116px);object-fit:contain;background:#030408;}
dialog.mde-plate-inspection footer {font:12px/1.5 system-ui;}

/* The room and the star chart share a single viewport. Only an opened tool panel can overflow. */
@layer meridianViewer {
  html.mde-view-open,html.mde-view-open body,html:has(.mde-plate-inspection[open]) {overflow:hidden !important;overscroll-behavior:none;}
  .mde-study .mde-study-screen {
    position:relative;isolation:isolate;width:100%;height:100%;overflow:clip !important;overscroll-behavior:none;
    --edge:max(14px,env(safe-area-inset-left));--right:max(14px,env(safe-area-inset-right));--top:max(12px,env(safe-area-inset-top));--bottom:max(12px,env(safe-area-inset-bottom));
    --glass:linear-gradient(125deg,#191919df,#080808bf);--rim:1px solid #c9c3ae43;
  }
  .mde-study .mde-study-bar {
    position:absolute !important;inset:var(--top) var(--right) auto auto !important;z-index:6;display:flex;gap:6px;
    width:auto !important;min-height:0;padding:0 !important;border:0 !important;background:none !important;
  }
  .mde-study .mde-study-bar button {background:#161616dc !important;border:var(--rim) !important;border-radius:6px;min-height:40px;}
  .mde-study .mde-study-bar [aria-expanded=true] {color:#f5d399 !important;border-color:#ad9465 !important;}
  .mde-study .mde-atlas,.mde-study .mde-body,.mde-study .mde-visual,.mde-study .mde-chart-window {
    display:block !important;position:absolute !important;inset:0 !important;
    width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;min-height:0 !important;
    box-sizing:border-box;padding:0 !important;margin:0 !important;overflow:clip !important;
    border:0 !important;border-radius:0 !important;box-shadow:none !important;background:transparent !important;
  }
  .mde-study .mde-atlas .mde-chart-window canvas.mde-map {
    display:block !important;position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;
    max-height:none !important;aspect-ratio:auto !important;touch-action:none;
  }
  .mde-study .mde-head {
    position:absolute !important;z-index:4;top:var(--top);left:var(--edge);max-width:calc(100% - 255px);
    display:flex !important;align-items:center !important;gap:clamp(12px,2vw,32px);padding:0 !important;margin:0 !important;
    background:transparent !important;border:0 !important;pointer-events:none;
  }
  .mde-study .mde-head h3 {font:italic 400 clamp(21px,2.2vw,36px)/1.12 Georgia,serif !important;color:#f4efe3;text-shadow:0 1px 5px #000;}
  .mde-study .mde-fields {pointer-events:auto;display:flex !important;flex-wrap:nowrap !important;gap:4px !important;width:auto !important;}
  .mde-study .mde-fields button[data-sky] {background:#161616db !important;border:var(--rim) !important;min-height:38px !important;}
  .mde-study .mde-fields button[aria-pressed=true] {border-color:#af946a !important;color:#ffe2a9 !important;}
  .mde-study .mde-record {
    display:block !important;position:absolute !important;z-index:5;top:calc(var(--top) + 52px);right:var(--right);
    width:clamp(250px,23vw,330px);max-height:calc(100% - var(--top) - var(--bottom) - 66px);overflow:auto !important;
    overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#66635c transparent;
    margin:0 !important;padding:clamp(12px,1.4vw,20px) !important;border:var(--rim) !important;border-radius:10px !important;
    color:#f2e8d9;background:var(--glass) !important;box-shadow:0 8px 34px #01010155 !important;
  }
  .mde-study-screen[data-register=false] .mde-record {display:none !important;}
  .mde-study .mde-record select {min-height:38px !important;color:#f2e9d4 !important;background:#0a0a0ab3 !important;font-size:clamp(19px,2vw,27px) !important;}
  .mde-study .mde-data {display:flex !important;flex-wrap:wrap;gap:8px 16px !important;}
  .mde-study .mde-data small {align-self:end;}
  .mde-study .mde-platehead,.mde-study .mde-citation,.mde-study .mde-help {display:none !important;}
  .mde-study .mde-scale {
    position:absolute !important;z-index:2;bottom:var(--bottom);left:50%;transform:translateX(-50%);
    display:flex;gap:12px;max-width:50%;width:max-content;padding:4px 8px !important;border:none !important;
    border-radius:3px;background:#070707b5 !important;pointer-events:none;font:11px/1.4 monospace;
  }
  .mde-study .mde-controls {
    position:absolute !important;z-index:3;left:var(--edge);bottom:calc(var(--bottom) + 34px);
    display:flex !important;gap:6px !important;width:auto !important;padding:4px !important;
    border:var(--rim) !important;border-radius:9px;background:var(--glass) !important;
  }
  @media(max-width:859px),(max-height:500px) {
    .mde-study .mde-head {display:block !important;max-width:100%;top:var(--top);}
    .mde-study .mde-head h3 {display:none !important;}
    .mde-study .mde-fields button[data-sky]::before {display:none !important;}
    .mde-study .mde-fields button[data-sky] {display:block !important;padding:6px 8px !important;font:600 12px/1 system-ui !important;}
    .mde-study .mde-record {width:min(330px,calc(100% - var(--edge) - var(--right)));max-height:calc(100% - var(--top) - var(--bottom) - 86px);}
  }
  @media(max-width:530px) and (min-height:501px) {
    .mde-study .mde-head {top:calc(var(--top) + 49px);}
    .mde-study .mde-head h3 {display:block !important;position:absolute;bottom:calc(100% + 18px);white-space:nowrap;font-size:18px !important;}
    .mde-study .mde-record {top:auto;bottom:calc(var(--bottom) + 94px);max-height:min(51%,calc(100% - 212px));}
    .mde-study .mde-record .mde-exposure img {max-height:124px;object-fit:cover;}
    .mde-study .mde-scale {left:auto;right:var(--right);transform:none;max-width:68%;font-size:10px;}
    .mde-study .mde-study-bar button {font-size:12px;padding-inline:8px;}
  }
  @media(max-width:360px) { .mde-study .mde-head h3 {display:none !important;} }
}

@layer meridianViewer {
  .mde-atlas .mde-chart-window {
    overflow:hidden; background:radial-gradient(ellipse at 43% 42%,#0c0c0c,#040404 62%,#010101) !important;
  }
  .mde-atlas[data-night=true] .mde-chart-window,body.red-light .mde-atlas .mde-chart-window {
    background:radial-gradient(ellipse at 43% 42%,#170a07,#090403 69%,#030202) !important;
  }
  .mde-atlas .mde-chart-window canvas.mde-map {position:relative !important;z-index:1;background:transparent !important;}
  .mde-study .mde-atlas .mde-chart-window canvas.mde-map {position:absolute !important;}
  .mde-atlas .mde-chart-window img.mde-survey-sky {
    position:absolute !important;left:0;top:0;width:1440px !important;height:1440px !important;
    max-width:none !important;max-height:none !important;transform-origin:0 0;
    opacity:.46;pointer-events:none;mask-image:radial-gradient(ellipse 62% 62%,#000 49%,transparent 100%);
  }
  .mde-atlas[data-night=true] .mde-survey-sky,body.red-light .mde-survey-sky {filter:grayscale(1) sepia(1) saturate(4) hue-rotate(315deg);opacity:.27;}
  .mde-atlas .mde-survey-sky[hidden] {display:none !important;}
  .mde-atlas .mde-starlight {z-index:2;}.mde-atlas .mde-star-card {z-index:3;}
  .mde-study .mde-record .mde-citation {display:block !important;margin:10px 0 0;padding:6px 0 0;}
  .mde-study .mde-record .mde-citation :is(span,a) {display:block;line-height:1.5;}
}


