/* Additive comparison: Current and Grok Notes keep their original composition. */
html[data-combined] .site-nav{height:64px;gap:20px;background:var(--panel)}
html[data-combined] .site-return{display:flex;align-items:center;gap:8px;white-space:nowrap;padding-right:18px;border-right:1px solid var(--edge)}
html[data-combined] .site-nav .wordmark{font:16px/1.3 Georgia,serif;letter-spacing:.02em;color:var(--ink)}
html[data-combined] .site-nav .wordmark small{font:8px/1.5 var(--mono);letter-spacing:.16em;margin-top:3px;color:var(--muted)}
html[data-combined] .site-nav .about{margin-left:auto;white-space:nowrap}
html[data-combined] .site-nav .theme-drawer{margin-left:0}
html[data-combined] .site-nav .about>div{top:36px;z-index:21;white-space:normal;font-size:11px;line-height:1.7}
html[data-combined] .site-nav .theme-picker{top:64px}
html[data-combined] .machine{height:calc(100dvh - 64px);min-height:690px}
html[data-combined] .location{top:8px;left:18px;font-size:11px;gap:7px;max-width:calc(100% - 36px)}
html[data-combined][data-design=atlas] .scene,
html[data-combined][data-design=atlas] .reading .scene{inset:42px 0 100px}
html[data-combined] .identity{left:18px;top:60px;width:250px;border-top:2px solid var(--mint)}
html[data-combined] .identity:before{display:none}
html[data-combined] .section-label{font-size:10px;color:var(--mint);letter-spacing:.08em;margin-bottom:8px;text-transform:none}
html[data-combined] .identity-kicker{font-size:8px;letter-spacing:.1em}
html[data-combined] .identity h1{font:30px/1.1 Georgia,serif;letter-spacing:-.02em}
html[data-combined] .picture-scale{font-size:9px;line-height:1.5;color:var(--muted);margin:12px 0 4px}
html[data-combined] .identity,
html[data-combined] .vantage,
html[data-combined] .rendering,
html[data-combined] .atlas-note,
html[data-combined] .clock{background:color-mix(in srgb,var(--panel) 86%,transparent);backdrop-filter:blur(12px)}
html[data-combined] .vantage{left:auto;right:18px;top:60px;width:238px;visibility:visible}
html[data-combined] .vantage>.eyebrow,
html[data-combined] .rendering>.eyebrow,
html[data-combined] .clock-heading>.eyebrow{font-size:10px;letter-spacing:.08em;color:var(--mint);text-transform:none}
html[data-combined] .vantage .segments{justify-content:space-between;margin:8px 0}
html[data-combined] .view-detail{border-top:1px solid var(--edge);padding-top:4px}
html[data-combined] .view-detail summary{cursor:pointer;color:var(--muted);font-size:10px;min-height:30px;padding:6px 0}
html[data-combined] .angles{gap:4px;justify-content:space-between;flex-wrap:wrap}
html[data-combined] #center-view{color:var(--mint)}
html[data-combined] .rendering{right:18px;top:306px;width:238px}
html[data-combined] .atlas-note{right:18px;top:474px;width:238px}
html[data-combined] .atlas-note #related-list{max-height:110px}
html[data-combined] .reading .identity{width:360px;padding-bottom:10px;border-bottom:0;background:color-mix(in srgb,var(--panel) 97%,transparent)}
html[data-combined] .reader{left:18px;right:auto;top:calc(60px + var(--subject-height, 100px));bottom:110px;width:360px;border-top:0;padding:14px;background:color-mix(in srgb,var(--panel) 97%,transparent)}
html[data-combined] .reader-heading{border-top:1px solid var(--edge);padding-top:8px}
html[data-combined] .reader h2{font:24px/1.2 Georgia,serif;margin:14px 0 8px}
html[data-combined] .reading .motion-tools{left:50%;transform:translateX(-50%);max-width:none}
@media(min-width:761px) and (max-height:850px){
  html[data-combined] .atlas-note{top:458px}
  html[data-combined] .atlas-note #related-list{max-height:70px}
}
@media(min-width:761px) and (max-width:1100px){
  html[data-combined] .reading .identity,html[data-combined] .reader{width:320px}
  html[data-combined] .site-nav{gap:12px}
  html[data-combined] .site-nav .wordmark{font-size:14px}
}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .site-nav{height:auto;min-height:88px;flex-wrap:wrap;gap:4px 10px;padding:8px 12px}
  html[data-combined] .site-return{font-size:9px;padding-right:8px}
  html[data-combined] .site-nav .wordmark{font-size:13px;flex:1;min-width:220px}
  html[data-combined] .site-nav .wordmark small{font-size:8px;letter-spacing:.08em}
  html[data-combined] .site-nav .about{margin-left:auto}
  html[data-combined] .site-nav .theme-picker{top:100%}
  html[data-combined] .machine{height:auto;min-height:0;padding:10px;gap:10px}
  html[data-combined] .location{position:relative;inset:auto;max-width:100%;font-size:10px;gap:4px}
  html[data-combined][data-design=atlas] .scene,
  html[data-combined][data-design=atlas] .reading .scene{position:relative;inset:auto;height:30vh;min-height:220px}
  html[data-combined] .identity,
  html[data-combined] .reading .identity,
  html[data-combined] .vantage,
  html[data-combined] .rendering,
  html[data-combined] .atlas-note,
  html[data-combined] .reader{position:relative;inset:auto;width:100%;visibility:visible}
  html[data-combined] .identity{order:4}
  html[data-combined] .reader{order:5;scroll-margin-top:calc(172px + var(--subject-height, 86px) + var(--view-height, 99px))}
  html[data-combined] .vantage{order:6}
  html[data-combined] .rendering{order:7}
  html[data-combined] .atlas-note{order:8}
  html[data-combined] .clock{order:9}
  html[data-combined] .reading .identity{display:block;position:sticky;top:160px;z-index:7;padding:7px 12px}
  html[data-combined] .reading .identity .section-label{margin:0 0 3px;font-size:8px}
  html[data-combined] .reading .identity h1{font-size:22px}
  html[data-combined][data-design=atlas] .reading .scene{position:sticky;top:0;min-height:160px;height:160px;z-index:5}
  html[data-combined] .reading .vantage{position:sticky;top:calc(160px + var(--subject-height, 86px));z-index:6;padding:6px 12px;background:var(--panel)}
  html[data-combined] .reading .vantage>.eyebrow{float:left;margin-right:12px;line-height:36px}
  html[data-combined] .reading .vantage .segments{margin:0;gap:0}
  html[data-combined] .reading .view-detail{clear:both}
  html[data-combined] .reading .reader{padding-top:0}
  html[data-combined] .reading .rendering,html[data-combined] .reading .atlas-note{display:block;visibility:visible}
  html[data-combined] .reading .motion-tools{position:relative;inset:auto;transform:none}
  html[data-combined] #target-picker{top:100%;z-index:10;max-height:50dvh}
  html[data-combined] .reader-tabs button{min-height:36px}
}

/* Reading retains the surrounding instruments and related selection. */
html[data-combined] .reading .rendering,
html[data-combined] .reading .atlas-note{visibility:visible}

/* Independent disclosures preserve their state through Subject and selection. */
html[data-combined] details.rendering>summary,
html[data-combined] details.atlas-note>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;list-style:none}
html[data-combined] details.rendering>summary::after,
html[data-combined] details.atlas-note>summary::after{content:'+';font-size:14px;color:var(--mint)}
html[data-combined] details.rendering[open]>summary::after,
html[data-combined] details.atlas-note[open]>summary::after{content:'−'}
html[data-combined] details>summary::-webkit-details-marker{display:none}
@media(min-width:761px){
  html[data-combined] .rendering{top:calc(60px + var(--view-height,213px) + 12px)}
  html[data-combined] .atlas-note{top:calc(60px + var(--view-height,213px) + var(--scene-height,154px) + 24px)}
}

/* Astra disclosure system: one heading, one square, one interaction convention. */
html[data-combined] .disclosure-header{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:0;cursor:pointer;list-style:none;font:10px var(--mono);letter-spacing:.08em;text-align:left;color:var(--mint)}
html[data-combined] .disclosure-header::after{content:none!important}
html[data-combined] .disclosure-icon{display:grid;place-items:center;flex:none;width:24px;height:24px;border:0;font:16px/1 var(--mono);letter-spacing:0;color:var(--mint)}
html[data-combined] .disclosure-icon::before{content:'+'}
html[data-combined] [aria-expanded=true]>.disclosure-icon::before,
html[data-combined] details[open]>.disclosure-header>.disclosure-icon::before{content:'−'}
html[data-combined] .disclosure-header:hover .disclosure-icon{color:var(--ink)}
html[data-combined] .view-detail{border:0;padding:0}
html[data-combined] .reader-heading,
html[data-combined] .reader h2,
html[data-combined] .reader-lede{display:none}
html[data-combined] .reader-tabs{margin-top:0;border-top:0}
html[data-combined] .reader{bottom:calc(var(--clock-height,84px) + 40px)}
html[data-combined] .clock{height:auto;padding:8px 12px}
html[data-combined] .clock-heading{position:relative;inset:auto;display:block}
html[data-combined] .clock-state{position:absolute;left:104px;top:14px;pointer-events:none}
html[data-combined] .clock-transport{margin-top:4px}
html[data-combined] .reading .identity .section-label{margin-bottom:4px;font-size:10px}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .disclosure-header{min-height:44px}
  html[data-combined] .reading .vantage>.disclosure-header{float:none;margin:0;line-height:normal}
  html[data-combined][data-design] .reader,
  html[data-combined][data-design] .reading .reader{position:relative;inset:auto;width:100%;order:5;scroll-margin-top:calc(172px + var(--subject-height,86px) + var(--view-height,213px))}
  html[data-combined][data-design] .rendering,
  html[data-combined][data-design] .atlas-note{position:relative;inset:auto;width:100%}
  html[data-combined] .clock-state{top:18px}
}
@media(max-height:700px){
  html[data-combined] .reading .vantage{position:relative;inset:auto;z-index:1}
}
/* Flow must be explicit: narrow-screen base rules do not apply in landscape. */
html[data-combined] details.rendering>summary.disclosure-header,
html[data-combined] details.atlas-note>summary.disclosure-header{min-height:36px}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] details.rendering>summary.disclosure-header,
  html[data-combined] details.atlas-note>summary.disclosure-header{min-height:44px}
  html[data-combined][data-design] .machine{display:flex;flex-direction:column;overflow:visible}
  html[data-combined][data-design] .scene{width:100%}
  html[data-combined][data-design] .clock{position:relative;inset:auto;width:100%;order:9}
  html[data-combined] .machine-footer{position:relative;inset:auto;order:10;height:auto;flex-wrap:wrap}
  html[data-combined] .motion-tools{position:relative;inset:auto;transform:none;order:3;max-width:none}
}

/* Expanding Subject adds the reference beneath the unchanged summary. */
html[data-combined] .reading .identity h1{font:30px/1.1 Georgia,serif;letter-spacing:-.02em;margin:8px 0}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .reading .identity,
  html[data-combined] .reading .vantage{position:relative;inset:auto}
  html[data-combined] .reading .identity{padding:12px}
}

/* Keep the instrument column above Time; scroll when desktop space is tight. */
html[data-combined] .instruments{display:contents}
@media(min-width:761px) and (min-height:701px){
  html[data-combined] .instruments{display:flex;flex-direction:column;gap:12px;position:absolute;top:60px;right:18px;bottom:calc(var(--clock-height,84px) + 40px);width:238px;overflow-y:auto;scrollbar-width:thin;z-index:2}
  html[data-combined] .instruments>.vantage,
  html[data-combined] .instruments>.rendering,
  html[data-combined] .instruments>.atlas-note{position:relative;inset:auto;width:100%;flex-shrink:0}
}

/* Shared Grid prompt: location, search and compact appearance in one header. */
html[data-combined] .site-nav{gap:18px;position:relative;z-index:12}
html[data-combined] .site-return{padding-right:16px}
html[data-combined] .observation-address{display:flex;align-items:center;gap:8px;min-width:0;position:relative;flex:0 1 auto}
html[data-combined] .entry-node{width:7px;height:7px;flex:none;border:1px solid var(--mint);background:var(--raised);position:relative;margin-right:3px}
html[data-combined] .entry-node::before{content:'';position:absolute;height:1px;width:22px;background:var(--edge-strong);right:6px;top:2px}
html[data-combined] .observation-host{font:11px var(--mono);color:var(--mint);white-space:nowrap}
html[data-combined] .location{position:static;inset:auto;font:11px var(--mono);gap:7px;max-width:none;min-width:0;flex-wrap:wrap}
html[data-combined] .location button{font:inherit;min-height:32px;color:inherit}
html[data-combined] .location a:hover,html[data-combined] .location button:hover{text-decoration:underline;color:var(--ink)}
html[data-combined] .header-search{display:flex;position:relative;align-items:center;gap:8px;flex:1 1 230px;min-width:150px;max-width:380px;margin-left:auto;font:11px var(--mono)}
html[data-combined] .header-search>span{color:var(--amber)}
html[data-combined] #target-search{border:0;background:transparent;padding:6px;min-height:34px;font:inherit;color:var(--ink)}
html[data-combined] #target-search::placeholder{color:var(--muted);opacity:1}
html[data-combined] .header-search>button{border:1px solid var(--edge);padding:0 7px;min-height:22px;color:var(--muted)}
html[data-combined] .header-search #target-picker{top:calc(100% + 10px);left:auto;right:0;width:340px;max-width:calc(100vw - 36px)}
html[data-combined] .header-search #target-results{margin-top:0;max-height:min(290px,45dvh)}
html[data-combined] .site-nav .about{margin-left:0}
html[data-combined] .theme-drawer summary::after{content:none}
html[data-combined] .site-nav .theme-picker{top:100%}
html[data-combined] .site-nav .about .wordmark{display:block;margin-bottom:12px}
@media(max-width:1150px){
  html[data-combined] .site-nav{height:auto;min-height:96px;flex-wrap:wrap;gap:4px 14px;padding:8px 18px}
  html[data-combined] .observation-address{flex:1;flex-wrap:wrap}
  html[data-combined] .header-search{order:4;max-width:none;flex-basis:100%;margin-left:0}
  html[data-combined] .machine{height:calc(100dvh - 96px)}
}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .site-nav{padding:8px 12px}
  html[data-combined] .site-return{padding-right:10px}
  html[data-combined] .observation-address{order:3;flex-basis:100%;gap:6px;padding-left:10px}
  html[data-combined] .observation-host,html[data-combined] .location{font-size:10px}
  html[data-combined] .site-nav .about{margin-left:auto}
  html[data-combined] .machine{height:auto}
  html[data-combined] .header-search #target-picker{top:100%;max-width:100%;width:100%}
}

html[data-combined] .footer-links{display:flex;align-items:center;gap:12px;white-space:nowrap}
html[data-combined] .machine-footer #scene-status{display:none}
html[data-combined] #machina-version{font:inherit;color:var(--accent);padding:0;min-height:24px}
html[data-combined] #machina-log{width:min(580px,calc(100vw - 24px));max-height:80dvh;overflow:auto;padding:20px;border:1px solid var(--edge-strong);color:var(--ink);background:var(--panel);font:12px/1.6 var(--mono)}
html[data-combined] #machina-log::backdrop{background:#0009}
html[data-combined] .log-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
html[data-combined] .log-heading h2{font:18px var(--mono);margin:0}
html[data-combined] #machina-log article{border-top:1px solid var(--edge);padding-top:12px;margin-top:12px}
html[data-combined] #machina-log small{color:var(--muted)}
html[data-combined] #machina-log p{margin:6px 0}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .machine-footer{row-gap:6px}
  html[data-combined] .machine-footer>span:not(#scene-status){order:3;width:100%}
}

html[data-combined] .page-utilities .about>div,html[data-combined] .site-nav .about>div{max-height:75dvh;overflow-y:auto;width:min(360px,calc(100vw - 24px))}
html[data-combined] .release-log{border-top:1px solid var(--edge);margin-top:14px;padding-top:8px}
html[data-combined] .release-log summary{font:11px var(--mono);color:var(--mint)}
html[data-combined] .release-log article{border-top:1px solid var(--edge);padding-top:10px;margin-top:10px}
html[data-combined] .release-log small{color:var(--muted);font-size:9px}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .page-utilities .about>div,html[data-combined] .site-nav .about>div{position:fixed;inset:60px 12px auto;width:auto;max-height:calc(100dvh - 76px)}
  html[data-combined] .page-utilities .theme-picker,html[data-combined] .site-nav .theme-picker{position:fixed;inset:60px 12px auto;width:auto;max-height:calc(100dvh - 76px);overflow-y:auto}
}

/* Continue the Grid's amber selection trace from the viewport edge. */
html[data-combined] .site-nav{padding-left:0}
html[data-combined] .observation-address{padding-left:42px}
html[data-combined] .observation-address::before{content:none}
html[data-combined] .entry-node{width:6px;height:6px;border-color:var(--amber);background:var(--bg);opacity:.85}
html[data-combined] .entry-node::before{content:'';position:absolute;left:-43px;right:auto;top:50%;width:42px;height:1px;background:var(--amber);pointer-events:none}
html[data-combined] .location{color:var(--quiet)}
html[data-combined] .location a,html[data-combined] .location button{color:var(--quiet);background:transparent;text-decoration:none}
html[data-combined] .location [aria-current]{color:var(--soft)}
html[data-combined] .location a:hover,html[data-combined] .location button:hover,html[data-combined] .observation-host:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
html[data-combined] .header-search{margin-inline:auto}
@media(max-width:1150px){
  html[data-combined] .header-search{margin-inline:24px}
}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .site-nav .about{margin-left:auto}
  html[data-combined] .header-search{margin-inline:12px}
}

/* Project, observation address and search follow the Grid's divided window bar. */
html[data-combined] .site-nav{display:grid;grid-template-columns:270px minmax(380px,1fr) minmax(220px,.8fr) auto auto;align-items:stretch;gap:0;height:auto;min-height:64px;padding:0}
html[data-combined] .project-heading{display:flex;align-items:center;gap:12px;padding:10px 14px 10px 25px;border-right:1px solid var(--edge);min-width:0;position:relative}
html[data-combined] .project-heading .wordmark{font-size:15px;line-height:1.25;min-width:0}
html[data-combined] .project-heading .wordmark small{font-size:7px;letter-spacing:.12em}
html[data-combined] .project-node{width:6px;height:6px;border:1px solid var(--amber);background:var(--bg);flex:none;opacity:.85}
html[data-combined] .observation-address{padding:8px 18px;gap:8px;border-right:1px solid var(--edge);align-content:center;flex-wrap:wrap;order:initial}
html[data-combined] .entry-node::before{content:none}
html[data-combined] .header-search{margin:0;padding:8px 18px;max-width:none;min-width:0;flex-basis:auto;order:initial;border-right:1px solid var(--edge)}
html[data-combined] .site-nav .about{margin:0;align-self:center;padding:0 12px}
html[data-combined] .site-nav .theme-drawer{margin:0 18px 0 0;align-self:center}
html[data-combined] .header-connection{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
html[data-combined] .header-connection path{fill:none;stroke:var(--amber);stroke-width:1;opacity:.5}
html[data-combined] .travel-packet{fill:var(--amber);opacity:.85}
html[data-combined] .machine{height:calc(100dvh - var(--header-height,64px))}
html[data-combined] .identity,html[data-combined] .reading .identity{top:20px}
html[data-combined] .instruments{top:20px}
html[data-combined] .reader{top:calc(20px + var(--subject-height,100px))}
html[data-combined][data-design=atlas] .scene,html[data-combined][data-design=atlas] .reading .scene{top:10px;bottom:calc(var(--clock-height,50px) + 40px)}
/* Time's label and live controls remain distinct even when the timeline is closed. */
html[data-combined] .clock{display:grid;grid-template-columns:220px minmax(0,1fr);padding:0;position:absolute}
html[data-combined] .clock::before{content:'';position:absolute;left:-1px;top:-1px;width:18px;height:7px;border-top:1px solid var(--mint);border-left:1px solid var(--mint);pointer-events:none}
html[data-combined] .clock-heading{display:flex;align-items:center;padding:0 12px;min-height:48px;border-right:1px solid var(--edge)}
html[data-combined] .clock-state{left:104px;top:19px}
html[data-combined] .clock-transport{margin:0;padding:6px 16px;min-height:48px;flex-wrap:wrap;gap:10px}
html[data-combined] .time-scale{grid-column:1/-1;margin:0;padding:12px 16px;border-top:1px solid var(--edge)}
@media(max-width:1200px){
  html[data-combined] .site-nav{grid-template-columns:270px minmax(0,1fr) auto auto}
  html[data-combined] .header-search{grid-column:1/-1;border-top:1px solid var(--edge);border-right:0;padding-left:25px}
}
@media(max-width:760px){
  html[data-combined] .site-nav{grid-template-columns:minmax(0,1fr) auto auto;min-height:0}
  html[data-combined] .project-heading{padding:10px 12px 10px 18px;border-right:0}
  html[data-combined] .project-heading .wordmark{font-size:13px}
  html[data-combined] .site-nav .about{padding:0 5px}
  html[data-combined] .site-nav .theme-drawer{margin-right:12px}
  html[data-combined] .observation-address{grid-column:1/-1;border-top:1px solid var(--edge);border-right:0;padding:8px 18px;flex-basis:auto}
  html[data-combined] .clock{grid-template-columns:1fr}
  html[data-combined] .clock-heading{border-right:0;border-bottom:1px solid var(--edge)}
}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .machine{height:auto}
  html[data-combined] .identity,html[data-combined] .reading .identity,html[data-combined] .reader,html[data-combined] .instruments{top:auto}
  html[data-combined][data-design=atlas] .scene,html[data-combined][data-design=atlas] .reading .scene{top:auto;bottom:auto}
  html[data-combined] .clock{position:relative}
  html[data-combined] .header-search{margin:0;padding-inline:18px}
}
@media(prefers-reduced-motion:reduce){html[data-combined] .travel-packet{display:none}}
html[data-combined] .project-heading{grid-column:1;grid-row:1}
html[data-combined] .observation-address{grid-column:2;grid-row:1}
html[data-combined] .header-search{grid-column:3;grid-row:1}
html[data-combined] .site-nav .about{grid-column:4;grid-row:1}
html[data-combined] .site-nav .theme-drawer{grid-column:5;grid-row:1}
@media(max-width:1200px){
  html[data-combined] .header-search{grid-column:1/-1;grid-row:2}
  html[data-combined] .site-nav .about{grid-column:3}
  html[data-combined] .site-nav .theme-drawer{grid-column:4}
}
@media(max-width:760px){
  html[data-combined] .observation-address{grid-column:1/-1;grid-row:2}
  html[data-combined] .header-search{grid-column:1/-1;grid-row:3}
  html[data-combined] .site-nav .about{grid-column:2}
  html[data-combined] .site-nav .theme-drawer{grid-column:3}
}
/* Small square packets stop inside the actual receiving hubs. */
html[data-combined] .travel-packet.hollow{fill:var(--bg);stroke:var(--amber);stroke-width:1}
html[data-combined] .project-node,html[data-combined] .entry-node{position:relative;z-index:1;pointer-events:none}
html[data-combined] .processing{animation:header-process .6s ease-in-out infinite alternate}
@keyframes header-process{from{box-shadow:0 0 0 1px transparent;background:var(--bg)}to{box-shadow:0 0 0 2px color-mix(in srgb,var(--amber) 25%,transparent);background:var(--amber)}}
@media(prefers-reduced-motion:reduce){html[data-combined] .processing{animation:none}}

/* Top feed follows the divider and branches to the observation prompt hub. */
html[data-combined] .site-nav{grid-template-columns:322px minmax(380px,1fr) minmax(220px,.8fr) auto auto}
html[data-combined] .project-heading{display:block;padding:16px 24px 16px 18px}
html[data-combined] .project-heading .wordmark{display:block;font-size:18px;line-height:1.25}
html[data-combined] .project-heading .wordmark small{font-size:8px;letter-spacing:.12em;margin-top:3px}
html[data-combined] .project-heading .title-node{position:absolute;margin:0;width:6px;height:6px}
@media(max-width:1200px){
 html[data-combined] .site-nav{grid-template-columns:322px minmax(0,1fr) auto auto}
}
@media(max-width:760px){
 html[data-combined] .site-nav{grid-template-columns:minmax(0,1fr) auto auto}
 html[data-combined] .project-heading{padding:12px 20px 12px 12px}
 html[data-combined] .project-heading .wordmark{font-size:15px}
 html[data-combined] .project-heading .wordmark small{font-size:7px}
}

html[data-combined] .title-node{border:1px solid var(--amber);background:var(--bg);opacity:.85;z-index:1;pointer-events:none}

/* Keep the prompt centered; its path may wrap within the same address row. */
@media(min-width:761px){
 html[data-combined] .observation-address{flex-wrap:nowrap}
}

/* Time ticks: ruler, date cursor and year ticks always visible. PAUSED is a state, not a warning. */
html[data-combined] .clock{grid-template-columns:220px auto minmax(240px,1fr)}
html[data-combined] .clock-transport{flex-wrap:nowrap;white-space:nowrap;border-right:1px solid var(--edge)}
html[data-combined] .time-scale{grid-column:3;grid-row:1;border-top:0;padding:8px 16px;display:grid;row-gap:2px;align-items:center;min-height:48px}
html[data-combined] .time-labels{display:flex;justify-content:space-between;grid-column:1;grid-row:1}
html[data-combined] .time-labels span{font-size:9px;color:var(--muted)}
html[data-combined] .time-scale input{grid-column:1;grid-row:2;margin:0;height:20px;background:repeating-linear-gradient(90deg,var(--edge) 0 1px,transparent 1px 2%)}
html[data-combined] .clock-state{color:var(--muted)}
html[data-combined] .clock-state.running{color:var(--mint)}
@media(max-width:760px){
  html[data-combined] .clock{grid-template-columns:1fr}
  html[data-combined] .clock-transport{border-right:0;flex-wrap:wrap;white-space:normal}
  html[data-combined] .time-scale{grid-column:1;grid-row:auto;border-top:1px solid var(--edge);padding:8px 12px;min-height:40px}
}

/* Study column: Related is a quiet list under Subject (no box); Scene is one toggle row at the foot of View. */
html[data-combined] .identity .atlas-note,html[data-combined] .reading .identity .atlas-note{position:static;inset:auto;width:auto;border:0;border-top:1px solid var(--edge);background:transparent;backdrop-filter:none;padding:8px 0 0;margin-top:10px;visibility:visible;display:block}
html[data-combined] .identity .atlas-note:before{display:none}
html[data-combined] .identity .atlas-note>.eyebrow{font-size:9px;color:var(--muted);letter-spacing:.08em;text-transform:none}
html[data-combined] .identity #related-list{max-height:none;overflow:visible;display:flex;flex-wrap:wrap;gap:0 14px;margin-top:2px}
html[data-combined] .identity #related-list button{width:auto;border:0;min-height:26px;padding:2px 0;gap:5px;font-size:11px;color:var(--soft)}
html[data-combined] .identity #related-list button:hover{color:var(--ink);background:transparent}
html[data-combined] .identity #related-list img{width:12px;height:12px}
html[data-combined] .identity #related-list button span{margin-left:0;font-size:9px}
html[data-combined] .identity .atlas-note>small{display:none}

/* Subject holo: 64px lit disc of the selected body, left of its name on desktop, above it on phones. */
html[data-combined] .subject-holo-row{display:flex;align-items:center;gap:12px}
html[data-combined] .subject-holo-row h1{margin:0}
html[data-combined] .subject-holo{width:64px;height:64px;flex:none;border-radius:50%}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined] .subject-holo-row{flex-direction:column;align-items:flex-start;gap:6px}
  html[data-combined] .reading .subject-holo-row{flex-direction:row;align-items:center;gap:10px}
}

/* A mobile TARGET needs a separate tag lane below the existing camera disc. */
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined][data-design=atlas] .scene.has-target-tag{height:calc(30vh + 142px);min-height:362px}
  html[data-combined][data-design=atlas] .scene.has-target-tag iframe{height:calc(100% - 142px)}
  html[data-combined][data-design=atlas] .reading .scene.has-target-tag{height:302px;min-height:302px}
}

@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
  html[data-combined][data-design=atlas] .scene.has-target-tag.tag-bay-open{height:calc(30vh + 284px);min-height:504px}
  html[data-combined][data-design=atlas] .scene.has-target-tag.tag-bay-open iframe{height:calc(100% - 284px)}
}

/* Transparent space between the instruments must leave the target tag clickable. */
html[data-combined] .instruments{pointer-events:none}
html[data-combined] .instruments>*{pointer-events:auto}

/* v1 controls: available sizing, quiet layers, reversible panel defaults. */
html[data-combined] .overlay-toggles{display:flex;gap:12px}
html[data-combined] .overlay-toggles button{font-size:9px;min-height:30px;padding:3px 4px}
html[data-combined] .subject-heading{display:flex;align-items:center;gap:8px}
html[data-combined] #subject-disclosure{width:24px;flex:none}
html[data-combined] #open-keys{font:inherit;min-height:24px;padding:0;color:var(--muted);white-space:nowrap}
@media(max-width:390px){
  html[data-combined] .clock{order:3}
  html[data-combined] .subject-heading .section-label{margin-bottom:0}
}

html[data-combined] .location.sr-only{position:absolute;inset:auto;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:761px) and (max-width:800px){
  html[data-combined][data-design=atlas] .scene,html[data-combined][data-design=atlas] .reading .scene{bottom:calc(var(--clock-height,84px) + 40px)}
}
html[data-combined] #subject-disclosure{display:none}
@media(max-width:390px){
  html[data-combined] #subject-disclosure{display:flex}
  html[data-combined] .subject-heading #read>.disclosure-icon{display:none}
  html[data-combined][data-design] .clock{order:3}
}
/* A phone default carried into a wider window must still have an open door. */
html[data-combined] #subject-disclosure[aria-expanded=false]{display:flex}
/* Story board clears Time; H places its remaining lane below. */
@media(min-width:761px) and (min-height:701px){
  html[data-combined] body.story-on .story-board{bottom:calc(var(--clock-height,84px) + 62px)}
}

/* v1 B1: the header can grow without pushing Time below the viewport. */
@media(min-width:761px) and (min-height:701px){
  html[data-combined] .machine{min-height:0}
}
@media(min-width:761px) and (max-width:1200px){
  html[data-combined] .clock{grid-template-columns:144px minmax(0,1fr)}
  html[data-combined] .clock-transport{min-width:0;flex-wrap:wrap;white-space:normal;border-right:0}
  html[data-combined] .time-scale{grid-column:1/-1;grid-row:2;min-width:0;border-top:1px solid var(--edge)}
}

/* v1 B3: fact values and the narrow desktop title keep whole words when possible. */
html[data-combined] .quick-facts{flex-wrap:wrap;gap:12px 22px}
html[data-combined] .quick-facts>span{flex:1 1 auto;min-width:0;max-width:100%}
html[data-combined] .quick-facts b{overflow-wrap:anywhere;word-break:normal}
html[data-combined] .subject-holo-row h1{min-width:0;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:900px){
  html[data-combined] .project-heading .wordmark{font-size:16px;line-height:1.35}
  html[data-combined] .project-heading .wordmark em{white-space:nowrap}
}

/* Sol introduction uses the existing first-visit card treatment without story assets. */
html[data-combined] .sol-guide{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:30;width:min(420px,calc(100vw - 28px));max-height:90dvh;overflow:auto;background:var(--panel);border:1px solid var(--accent);padding:18px 20px;font:11px/1.6 var(--mono)}
html[data-combined] .sol-guide h2{font:9px/1.6 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0 0 6px}
html[data-combined] .sol-guide-note{color:var(--muted)}
html[data-combined] .sol-guide button{border:1px solid var(--accent);color:var(--accent);font:10px var(--mono);min-height:36px;padding:6px 10px}

/* U7: one compact disclosure for camera, look, visibility and display size. */
html[data-combined] .instruments{width:300px}
html[data-combined] .vantage{padding:8px 10px}
html[data-combined] .vantage>.disclosure-header{width:100%;min-height:28px;margin:0}
html[data-combined] .view-detail{padding:5px 0 0}
html[data-combined] .view-detail:not([open]){display:none}
html[data-combined] .view-row{display:grid;grid-template-columns:43px minmax(0,1fr);align-items:center;gap:4px;min-height:28px}
html[data-combined] .view-row .view-row-label{font:8px var(--mono);color:var(--muted);letter-spacing:.04em;margin:0}
html[data-combined] .view-row .segments,html[data-combined] .view-row .angles,html[data-combined] .overlay-toggles{display:flex;gap:2px;flex-wrap:nowrap;margin:0;justify-content:flex-start}
html[data-combined] .view-row button{font:9px var(--mono);min-height:26px;padding:3px 5px;border:1px solid var(--edge);white-space:nowrap}
/* On/off choices share View's pressed treatment; selection and beat markers stay separate. */
html[data-combined] :is(.view-row button[aria-pressed=true],.scale-stops button[aria-pressed=true],.survey-world:not(.story-world)[aria-pressed=true],.survey-context button[aria-pressed=true],.story-frame button.on,.story-frame button[aria-pressed=true],.story-follow button.on,.flight-presets button[aria-pressed=true],.theme-picker .theme-button[aria-pressed=true],.reader-tabs button[aria-pressed=true]){background:var(--raised);color:var(--ink);border-color:var(--mint)}
/* Borderless controls get an inset edge without changing their box size or spacing. */
html[data-combined] :is(.survey-orbits .survey-world:not(.story-world)[aria-pressed=true],.theme-picker .theme-button[aria-pressed=true]){box-shadow:inset 0 0 0 1px var(--mint)}
html[data-combined] .view-row #center-view{margin-left:auto;color:var(--mint)}
html[data-combined] .view-row #center-view:disabled{color:var(--muted)}
html[data-combined] .vantage .rendering{position:static;inset:auto;width:auto;border:0;padding:0;margin:0;background:none;backdrop-filter:none;display:grid}
html[data-combined] .vantage .rendering::before{display:none}
html[data-combined] .magnification{position:relative;display:grid;grid-template-columns:43px minmax(0,1fr) 56px;align-items:center;gap:4px;min-height:28px;margin:0}
html[data-combined] .magnification label{font:8px var(--mono);color:var(--muted)}
html[data-combined] .magnification output{position:absolute;right:0;top:50%;transform:translateY(-50%);font:10px var(--mono);color:var(--amber)}
html[data-combined] .magnification input{margin:0;min-width:0}

/* A1 alignment: Subject and View share one top anchor at desktop widths. */
html[data-combined] .machine{--side-top:20px}
@media(min-width:761px) and (min-height:701px){
 html[data-combined] .identity,html[data-combined] .reading .identity,html[data-combined] .instruments{top:var(--side-top)}
}

/* Time isolates its chrome; the footer has quiet, unboxed text. */
html[data-combined] .clock{isolation:isolate}
html[data-combined] .machine-footer{background:transparent;border:0}

/* A1 at 800: compact View with touch targets, retaining the existing panel anchors. */
@media(max-width:800px){
 html[data-combined] .vantage>.disclosure-header{min-height:44px;float:none;margin:0}
 html[data-combined] .view-row{min-height:44px;grid-template-columns:52px minmax(0,1fr)}
 html[data-combined] .view-row button,html[data-combined] .vantage .rendering .segments button{min-height:44px;font-size:10px;padding:4px 6px}
 html[data-combined] .magnification{min-height:44px;grid-template-columns:52px minmax(0,1fr) 56px}
 html[data-combined] #zoom{height:44px}
 html[data-combined] .reading .vantage{padding:8px 10px}
}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){html[data-combined] .instruments{width:100%}}

/* Detached chrome keeps fixed popups in viewport coordinates, and HUD tags
   may use the unoccupied strip above Time without moving the scene iframe. */
@media(min-width:761px) and (min-height:701px){
 html[data-combined][data-design=atlas] .scene{overflow:visible}
 html[data-combined][data-survey] body.story-on .story-board{bottom:calc(var(--clock-height,202px) + 48px)}
 html[data-combined][data-survey]:has(body.story-on) #survey-browser{right:618px}
}
/* The Earth lock can hang below the scene for a frame and grow the page, flashing a scrollbar that shifts the stop row under a click (MAC 1.4 int fix-2/3). Clip vertically at the lock's container, not body: Browse+ layouts must keep scrolling. */
@media(min-width:1100px) and (min-height:701px){html[data-combined][data-design=atlas] .scene{overflow-y:clip}}
@media(min-width:761px) and (max-width:1200px) and (min-height:701px){
 html[data-combined][data-survey] body.story-on .story-board{left:350px;right:330px}
 html[data-combined][data-survey]:has(body.story-on) #survey-browser{left:350px;right:330px}
}
@media(min-width:761px) and (max-width:800px) and (min-height:701px){
 html[data-combined] .story-follow{width:100%;flex-direction:column}
 html[data-combined] .story-follow button{width:100%;margin:0;padding:3px 4px;white-space:normal;overflow-wrap:anywhere}
}
@media(min-width:761px) and (max-width:800px) and (min-height:701px){
 html[data-combined] .story-cards{max-height:180px}
 html[data-combined] .story-card{flex:0 0 100%;height:180px;min-width:0;overflow:auto}
}

/* Camera and lens alternatives are joined pairs; SHOW remains independent chips. */
html[data-combined] .view-row .segments{gap:0}
html[data-combined] .camera-row [data-angle]+[data-angle]{margin-left:-2px}

/* UAT 4: one terminal path, keeping the selected end visible on narrow screens. */
html[data-combined] .observation-host{flex:none}
html[data-combined] #breadcrumbs{display:flex;flex:1;min-width:0;flex-wrap:nowrap;gap:0;overflow:auto;scrollbar-width:none;white-space:nowrap}
html[data-combined] #breadcrumbs::-webkit-scrollbar{display:none}
html[data-combined] #breadcrumbs>*{flex:none;min-height:20px;line-height:20px;padding:0;border:0;font-size:inherit}
html[data-combined] #breadcrumbs :focus-visible{outline-offset:-2px}
/* About and Theme hang on the page's top-right edge, small like the hub. */
html[data-combined] .page-utilities{position:fixed;top:0;right:0;z-index:24;display:flex;align-items:stretch;font:10px var(--mono)}
html[data-combined] .page-utilities .about,html[data-combined] .page-utilities .theme-drawer{position:relative;margin:0;background:var(--panel);border:1px solid var(--edge);border-top:0}
html[data-combined] .page-utilities .about{border-right:0}
html[data-combined] .page-utilities .about summary,html[data-combined] .page-utilities .theme-drawer summary{display:flex;align-items:center;gap:6px;min-height:28px;padding:5px 10px;font:10px/1 var(--mono);letter-spacing:0;color:var(--soft)}
html[data-combined] .page-utilities .about>div{top:100%;right:0;z-index:25}
html[data-combined] .page-utilities .theme-picker{position:absolute;top:100%;right:0;left:auto;width:268px;max-height:70dvh;overflow:auto;background:var(--panel);border:1px solid var(--edge);padding:12px;z-index:25}
/* The hang rules above beat the earlier phone sheet. Restate it so About and Theme stay on screen. */
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
 html[data-combined] .page-utilities .about>div,html[data-combined] .site-nav .about>div{position:fixed;inset:60px 12px auto;width:auto;max-height:calc(100dvh - 76px)}
 html[data-combined] .page-utilities .theme-picker,html[data-combined] .site-nav .theme-picker{position:fixed;inset:60px 12px auto;width:auto;max-height:calc(100dvh - 76px);overflow-y:auto}
}

/* Phone navigation gets separate touch areas; accepted wide chrome stays compact. */
@media(max-width:799px){
 html[data-combined] #breadcrumbs a,html[data-combined] #breadcrumbs button{display:flex;align-items:center;justify-content:center;min-width:auto;padding-inline:10px;min-height:44px}
 html[data-combined] .page-utilities .about summary,html[data-combined] .page-utilities .theme-drawer summary{min-width:44px;min-height:44px}
 html[data-combined] #subject-disclosure{width:44px;min-height:44px}
}

/* H: View-style stop actions below their decorative measured ticks. */
html[data-combined] .scale-rail{height:24px;margin:0 15px}
html[data-combined] .scale-stop-ticks{position:absolute;inset:0;pointer-events:none}
html[data-combined] .scale-stop-ticks span{position:absolute;top:-2px;height:7px;border-left:1px solid var(--edge-strong)}
html[data-combined] .scale-stop-ticks span.active{border-color:var(--amber)}
html[data-combined] .scale-stops button:disabled{opacity:.4}

html[data-combined]{--clock-bottom:28px}
/* H: View and its ruler share the low-right corner above Time. */
html[data-combined] .camera-scale{position:relative;inset:auto;width:100%;padding:10px;border:1px solid color-mix(in srgb,var(--edge) 60%,transparent);background:color-mix(in srgb,var(--panel) 86%,transparent)}
html[data-combined] .camera-scale::before{content:'VIEW · SCALE';display:block;font:8px var(--mono);letter-spacing:.08em;color:var(--muted);margin-bottom:6px}
html[data-combined] .scale-state{display:block;margin-bottom:8px;color:var(--amber);font:10px var(--mono)}
html[data-combined] .scale-rail{position:relative;border-top:1px solid var(--edge-strong)}
html[data-combined] .scale-ticks span{position:absolute;top:7px;transform:translateX(-50%);font:9px var(--mono);white-space:nowrap;color:var(--muted)}
html[data-combined] .scale-ticks span::before{content:'';position:absolute;left:50%;top:-8px;height:5px;border-left:1px solid var(--edge-strong)}
html[data-combined] .scale-marker{position:absolute;top:-4px;left:var(--scale-position);width:3px;height:8px;transform:translateX(-50%);background:var(--amber);pointer-events:none}
html[data-combined] .camera-scale>small{font:8px var(--mono);color:var(--muted)}
@media(min-width:761px) and (min-height:701px){
 html[data-combined] .instruments{top:auto;bottom:calc(var(--clock-height,56px) + var(--clock-bottom,28px) + 14px);right:18px;width:300px;display:flex;flex-direction:column;gap:12px;justify-content:flex-end}
 html[data-combined] .camera-scale,html[data-combined] .reading .camera-scale{position:relative;inset:auto;width:100%}
}

/* H: give reading space to the reference, preserving Related Objects. */
html[data-combined] .reading .identity :is(.identity-kicker,.quick-facts,.picture-scale){display:none}
html[data-combined] .reading .subject-holo{width:44px;height:44px}
html[data-combined] .reading .identity h1{font-size:24px}

/* H: the decided Time box; narrow and short viewports retain their flow layout. */
@media(min-width:801px) and (min-height:701px){
 html[data-combined][data-time=box]{--clock-bottom:40px}
 html[data-combined][data-time=box] .clock{left:18px;right:auto;width:300px;bottom:40px;grid-template-columns:1fr;grid-template-rows:auto auto auto}
 html[data-combined][data-time=box] .clock-heading{grid-column:1;min-height:44px;border-right:0;border-bottom:1px solid var(--edge)}
 html[data-combined][data-time=box] .clock-state{top:22px;transform:translateY(-50%)}
 html[data-combined][data-time=box] .clock-transport{grid-column:1;grid-row:2;display:grid;grid-template-columns:auto auto auto;justify-content:start;align-items:center;gap:6px 10px;white-space:normal;border-right:0;padding:6px 12px;min-height:0}
 html[data-combined][data-time=box] .clock-transport #date{grid-column:1/-1}
 html[data-combined][data-time=box] .time-scale{grid-column:1;grid-row:3;border-top:1px solid var(--edge);padding:6px 12px 10px;min-height:0}
 html[data-combined][data-time=box] .time-labels span:nth-child(2),html[data-combined][data-time=box] .time-labels span:nth-child(4){display:none}
 html[data-combined][data-time=box][data-design=atlas] .scene,html[data-combined][data-time=box][data-design=atlas] .reading .scene{bottom:40px}
 html[data-combined][data-time=box] .reader{bottom:calc(var(--clock-height,130px) + 52px)}
}

@media(min-width:1201px) and (min-height:701px){html[data-combined][data-time=box] .clock{width:340px}}

/* H: interface mode shares Survey's action row; edge peeks retain their owners. */
html[data-combined][data-survey] :is(.survey-expand,#observe-mode){flex:none;min-height:30px;padding:0 2px;font:10px var(--mono);border:1px solid transparent;color:var(--mint);white-space:nowrap}
html[data-combined][data-survey] #observe-mode{color:var(--muted);padding:0 6px;border-color:var(--edge)}
html[data-combined][data-survey] #observe-mode[aria-pressed=true]{background:var(--raised);color:var(--ink);border-color:var(--mint)}
html[data-combined] .observe-tab,html[data-combined] .observe-hide{display:none}
html[data-combined][data-observe=observe] .identity:not(.peek),html[data-combined][data-observe=observe] .instruments:not(.peek){display:none}
html[data-combined][data-observe=observe] body.reading .identity{display:block}
html[data-combined][data-observe=observe] .observe-tab{display:block;position:absolute;z-index:9;padding:8px;font:9px var(--mono);color:var(--mint);background:var(--panel);border:1px solid var(--edge)}
html[data-combined][data-observe=observe] .observe-tab.subject{left:0;top:20px}
html[data-combined][data-observe=observe] .observe-tab.view{right:0;bottom:calc(var(--clock-height,56px) + var(--clock-bottom,28px) + 14px)}
html[data-combined][data-observe=observe] .peek .observe-hide{display:block;font:9px var(--mono);min-height:28px;color:var(--mint)}
html[data-combined][data-observe=observe]:has(.identity.peek,body.reading) .observe-tab.subject,html[data-combined][data-observe=observe]:has(.instruments.peek) .observe-tab.view{display:none}
@media(max-width:799px){
 html[data-combined] .observe-tab,html[data-combined] .observe-hide{min-width:44px;min-height:44px}
}
@media(max-width:760px){
 html[data-combined][data-survey] :is(.survey-expand,#observe-mode){min-width:44px;min-height:44px;padding:0 2px}
}
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
 html[data-combined][data-observe=observe] .observe-tab{position:relative;inset:auto!important;width:100%;text-align:left}
 html[data-combined][data-observe=observe] .observe-tab.subject{order:1}
 html[data-combined][data-observe=observe] .observe-tab.view{order:2}
}

/* H: Browse overlays only beside the identity; narrower Survey pushes the page. */
@media(min-width:1201px) and (min-height:701px){
 html[data-combined][data-survey] #survey-browser,html[data-combined][data-survey]:has(body.story-on) #survey-browser{position:absolute;top:100%;left:0;right:0;grid-column:auto;grid-row:auto;z-index:13}
}
@media(min-width:1201px) and (min-height:701px){
 html[data-combined][data-survey] body.story-on .story-board{right:336px;left:18px;bottom:calc(var(--clock-height,56px) + 48px)}
}
@media(max-width:760px),(max-height:700px),(max-width:800px) and (max-height:850px){
 html[data-combined] .machine{height:auto;min-height:0;display:flex;flex-direction:column;padding:10px;gap:10px}
 html[data-combined] .instruments,html[data-combined] .identity,html[data-combined] .reading .identity,html[data-combined] .reader,html[data-combined] .reading .vantage{position:relative;inset:auto;width:100%}
 html[data-combined] .instruments{display:flex;flex-direction:column;gap:12px;order:2}
 html[data-combined] .clock{position:relative;inset:auto;width:100%;order:3}
 html[data-combined] .machine-footer{position:relative;inset:auto;order:10}
 html[data-combined] .camera-scale{position:relative;inset:auto;width:100%}
 html[data-combined] .reader{min-height:330px}
}

/* Acceptance A: compact the reading header's spacing as well as its content. */
html[data-combined] .reading .identity{padding:10px 12px}
html[data-combined] .reading .subject-heading{min-height:28px}
html[data-combined] .reading .subject-heading #read{min-height:28px;margin-bottom:0}
html[data-combined] .reading .intro{margin:4px 0;font-size:10px}
html[data-combined] .reading .identity .atlas-note{margin-top:4px;padding-top:4px}
html[data-combined] .reading .identity .atlas-note>summary{min-height:28px}

@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
 html[data-combined] .instruments{order:6}
 html[data-combined] .camera-scale{order:1}
}
@media(max-width:760px),(pointer:coarse){
 html[data-combined] .stop-row{min-height:44px}
 html[data-combined] .stop-row button{min-width:44px;min-height:44px}
}
@media(min-width:761px) and (min-height:701px){html[data-combined] .instruments{overflow:visible}}

@media(min-width:800px){
 html[data-combined] .camera-scale{padding:8px 10px}
 html[data-combined] .camera-scale::before{line-height:1;margin-bottom:4px}
 html[data-combined] .scale-state{line-height:1.3;margin-bottom:6px}
}

@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){html[data-combined] .instruments>.vantage{order:0}}

/* Phone peeks replace their edge handle in the flow, keeping the reveal nearby. */
@media(max-width:760px),(max-height:700px),(max-width:799px) and (max-height:850px){
 html[data-combined][data-observe=observe] .identity.peek{order:1}
 html[data-combined][data-observe=observe] .instruments.peek,html[data-combined][data-observe=observe] .observe-tab.view{order:3}
 html[data-combined][data-observe=observe] .clock{order:4}
}

@media(min-width:761px) and (min-height:701px){html[data-combined] body.story-on .story-board{z-index:7}}

/* Keep expanded Subject and its reader clear of the top-centre Browse bay. */
@media(min-width:1201px) and (min-height:701px){
 html[data-combined][data-survey] .identity,html[data-combined][data-survey] .reader{max-width:calc(var(--survey-left,367px) - 18px - 12px)}
}
@media(max-width:1200px){
 html[data-combined][data-survey] #survey-browser,html[data-combined][data-survey]:has(body.story-on) #survey-browser{position:relative;inset:auto;grid-column:1/-1;grid-row:3}
}
/* The inline story bay contributes to header height. Solve its existing cap
   (bay = viewport - header - clock - board - gap) with header = base + bay,
   so ResizeObserver cannot alternate between two header/bay heights. */
@media(min-width:761px) and (max-width:1200px) and (min-height:701px){
 html[data-combined][data-survey]:has(body.story-on) #survey-browser{max-height:calc((100dvh - var(--header-without-bay-height) - var(--clock-height) - var(--story-board-height,56px) - 60px) / 2)}
}

/* Story board (anchored above Time) owns its band: Subject and reader shorten and scroll inside,
   ending 8px above the board's top. Same algebra as the Subject fit above. */
@media(min-width:1201px) and (min-height:701px){
 html[data-combined][data-time=box][data-survey] body.story-on{--board-band:calc(var(--clock-height,160px) + 48px + var(--story-board-height,56px) + 8px)}
 html[data-combined][data-time=box][data-survey] body.story-on .identity{max-height:calc(100dvh - var(--header-height,134px) - var(--side-top,20px) - var(--board-band))}
 html[data-combined][data-time=box][data-survey] body.story-on .reader{bottom:var(--board-band);min-height:0;overflow-y:auto;scrollbar-width:thin}
}
/* The first-visit ask card keeps 8px above the story board (bottom-anchored, centred when there is room). */
@media(min-width:761px) and (min-height:701px){
 html[data-combined] .story-ask{top:min(calc(50dvh + 94px),calc(100dvh - var(--clock-height,160px) - 56px - var(--story-board-height,56px)));transform:translate(-50%,-100%)}
}
@media(max-width:900px){html[data-combined] .reading #tracking{display:none}}

/* H: tall Subjects scroll within the lane ending 12px above anchored Time. */
@media(min-width:801px) and (min-height:701px),(min-width:761px) and (min-height:851px){
 html[data-combined][data-time=box] .identity{max-height:calc(100dvh - var(--header-height,134px) - var(--side-top,20px) - var(--clock-height,160px) - var(--clock-bottom,40px) - 12px);overflow-y:auto;scrollbar-width:thin}
}

/* A short, narrow Sol viewport cannot stack Subject above an anchored Time box.
   Keep its existing left-column flow with 12px gaps. */
@media(min-width:801px) and (max-width:1200px) and (min-height:701px) and (max-height:850px){
 html[data-combined][data-time=box] body:not(.story-on) .machine{height:auto;min-height:calc(100dvh - var(--header-height));display:flex;flex-direction:column;overflow:visible;padding:20px 18px 12px;gap:12px}
 html[data-combined][data-time=box] body:not(.story-on) :is(.identity,.reader,.clock,.machine-footer){position:relative;inset:auto}
 html[data-combined][data-time=box] body:not(.story-on) .identity{order:4;max-height:none;overflow:visible}
 /* ISS already had its own cap in this page-flow layout. */
 html[data-combined][data-time=box] body.iss-target:not(.story-on) .identity{max-height:calc(100dvh - var(--header-height,134px) - var(--clock-height,160px) - 68px);overflow-y:auto}
 html[data-combined][data-time=box] body:not(.story-on) .reader{order:5;height:330px;min-height:330px}
 html[data-combined][data-time=box] body:not(.story-on) .instruments{top:20px;bottom:auto}
 html[data-combined][data-time=box] body:not(.story-on) .clock{order:9;margin-top:auto}
 html[data-combined][data-time=box] body:not(.story-on) .machine-footer{order:10;height:auto;min-height:16px;flex-wrap:wrap}
}

/* The wide Browse bay hits View (open or folded) only below 1405 × 834. Move the
   open bay into Survey flow, then let the left column grow to keep the Time gap. */
@media(min-width:1201px) and (max-width:1404px) and (min-height:701px) and (max-height:833px){
 html[data-combined][data-time=box][data-survey]:is([data-observe=tools],:has(.instruments.peek)) body:not(.story-on):has(#survey-browser:not([hidden])){
  & #survey-browser{position:relative;inset:auto;grid-column:1/-1;grid-row:3}
  & .machine{height:auto;min-height:calc(100dvh - var(--header-height));display:flex;flex-direction:column;overflow:visible;padding:20px 18px 12px;gap:12px}
  & :is(.identity,.reader,.clock,.machine-footer){position:relative;inset:auto}
  & .identity{order:4;max-height:none;overflow:visible}
  &.iss-target .identity{max-height:calc(100dvh - var(--header-height,134px) - var(--clock-height,160px) - 68px);overflow-y:auto}
  & .reader{order:5;height:330px;min-height:330px}
  & .instruments{top:20px;bottom:auto}
  & .clock{order:9;margin-top:auto}
  & .machine-footer{order:10;height:auto;min-height:16px;flex-wrap:wrap}
 }
}

/* Only the expanded Subject misses Time's 12px gap at 701–702px tall. */
@media(min-width:1201px) and (min-height:701px) and (max-height:702px){
 html[data-combined][data-time=box] body:not(.story-on):not(.reading) .identity:not(.peek):has(#subject-details:not([hidden])){transform:translateY(-2px)}
}

/* Site drawers open below Survey so its search actions remain reachable. */
html[data-combined] .page-utilities .about>div,html[data-combined] .page-utilities .theme-picker{top:calc(var(--header-height) + 8px);max-height:calc(100dvh - var(--header-height) - 20px)}

/* STORY keeps its existing wide Start / Timeline / Transport layout. */
@media(min-width:801px) and (min-height:701px){
 html[data-combined][data-time=box] body.story-on .clock{left:18px;right:18px;width:auto;bottom:28px;grid-template-columns:220px minmax(0,1fr);grid-template-rows:auto}
 html[data-combined][data-time=box] body.story-on :is(.clock-transport,.time-scale){display:none}
 html[data-combined][data-time=box] body.story-on .machine{--clock-bottom:28px}
}

/* Expanse entry caution stays in header flow; its height feeds the existing layout. */
html[data-combined] .site-nav:has(.exp-early-banner:not([hidden])){height:auto;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.exp-early-banner{grid-column:1/-1;flex:0 0 100%;box-sizing:border-box;margin:0;padding:8px 10px;border:1px solid var(--amber);color:var(--amber);font:11px/1.5 var(--mono);white-space:normal}
.exp-early-banner[hidden]{display:none}
.exp-early-banner button{border:0;background:none;color:inherit;font:inherit;text-decoration:underline;padding:0;cursor:pointer}
.exp-early-tag{color:var(--amber);font:9px/1.5 var(--mono)}
html[data-combined] .footer-links{flex-wrap:wrap;row-gap:4px}
.exp-version{color:var(--amber)}

/* Five Earth stops share the existing row, including the phone disclosure. */
html[data-combined] .stop-row button{padding-inline:3px}
html[data-combined] .stop-row button[hidden]{display:none}

.iss-target .scale-rail { display:none; }

/* Keep the low Earth limb visible below the station on a phone. */
@media (max-width:700px) {
  html[data-combined][data-design=atlas] .iss-target .scene.has-target-tag iframe { height:100%; }
  .iss-target #tracking { min-height:0; }
  .iss-target #tracking .readout, .iss-target #tracking .tag-range,
  .iss-target #tracking .truth { display:none; }
}

/* A fixed scene can extend above the machine's existing overflow boundary.
   Its virtual framing still begins at the old desktop scene origin. */
@media(min-width:800px) and (min-height:701px),(min-width:761px) and (min-height:851px){
 html[data-combined][data-survey][data-design=atlas] .scene,
 html[data-combined][data-survey][data-design=atlas] .reading .scene{position:fixed;top:0;--under-header:1}
 /* Light palettes need a solid glyph boundary over Earth's midtones.
    Follow color-scheme so Wish and other light themes share the protection. */
 html[data-combined][data-survey] :is(.site-nav,.page-utilities){--header-outline:light-dark(var(--bg),transparent);text-shadow:-1px -1px 0 var(--header-outline),0 -1px 0 var(--header-outline),1px -1px 0 var(--header-outline),-1px 0 0 var(--header-outline),1px 0 0 var(--header-outline),-1px 1px 0 var(--header-outline),0 1px 0 var(--header-outline),1px 1px 0 var(--header-outline),0 0 2px var(--bg),0 1px 4px var(--bg),0 0 12px var(--bg)}
 html[data-combined][data-survey] .site-nav{background:transparent}
 /* Native buttons reset text-shadow instead of inheriting the prompt halo. */
 html[data-combined][data-survey] .location button{text-shadow:inherit}
 html[data-combined][data-survey] .site-nav::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(color-mix(in srgb,var(--bg) 55%,transparent),transparent)}
}
/* Keep the existing absolute scene when short desktop columns grow in flow. */
@media(min-width:801px) and (max-width:1200px) and (min-height:701px) and (max-height:850px){
 html[data-combined][data-time=box][data-survey][data-design=atlas] body:not(.story-on) .scene{position:absolute;top:calc(0px - var(--header-height))}
}
@media(min-width:1201px) and (max-width:1404px) and (min-height:701px) and (max-height:833px){
 html[data-combined][data-time=box][data-survey][data-design=atlas]:is([data-observe=tools],:has(.instruments.peek)) body:not(.story-on):has(#survey-browser:not([hidden])) .scene{position:absolute;top:calc(0px - var(--header-height))}
}
