.survey{--survey-left:280px;position:absolute;z-index:8;top:20px;left:calc((var(--survey-left) + 100% - 274px)/2);transform:translateX(-50%);width:min(640px,calc(100% - var(--survey-left) - 294px));padding:10px 12px;background:color-mix(in srgb,var(--panel) 94%,transparent);border:1px solid var(--edge);border-top-color:var(--mint);backdrop-filter:blur(12px)}
.reading .survey{--survey-left:400px}.survey-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.survey-heading .eyebrow{font:10px var(--mono);color:var(--mint);letter-spacing:.08em;text-transform:none}.survey-expand{font:10px var(--mono);color:var(--quiet);padding:3px 0;min-height:24px}
html[data-survey] .survey .header-search{grid-column:auto;grid-row:auto;padding:0;margin:0;min-width:0;max-width:none;border:0;gap:8px;flex-wrap:nowrap;width:100%;height:32px}
html[data-survey] .survey #target-search{min-width:0;width:100%;min-height:30px;padding:4px;font-size:10px}html[data-survey] .survey #target-picker{position:absolute;top:100%;left:0;right:0;width:100%;max-width:none;z-index:12;background:var(--panel)}
.survey-orbits{display:flex;gap:8px;margin-top:8px;align-items:center;justify-content:space-between}.survey-group{display:flex;align-items:center;gap:2px;border-left:1px solid var(--edge);padding-left:5px;position:relative}.survey-group:first-child{border:0;padding-left:0}.group-label{display:none}
.survey-world{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:relative;border:1px solid transparent;padding:5px 3px;min-height:38px;min-width:30px;background:transparent;color:var(--quiet);font:9px var(--mono)}
.survey-world:hover,.survey-world:focus-visible{border-color:var(--edge-strong);color:var(--ink)}.survey-world[aria-pressed=true]{border-bottom-color:var(--mint);color:var(--mint)}
.mini-world{display:block;width:22px;height:22px;flex:none;border-radius:50%;background-color:#666;background-size:auto 100%;background-position:center;box-shadow:inset -5px -2px 7px #0009,inset 1px 1px 2px #ffffff30;border:1px solid #ffffff20}
.mini-world.sun{background-color:#cfaa4c;box-shadow:0 0 8px #cda84f30}.mini-world.saturn::after{content:'';position:absolute;width:29px;height:9px;border:2px solid #bcad84a0;border-radius:50%;transform:rotate(-25deg);left:50%;margin-left:-15px;top:14px}.mini-world.belt{border:1px dotted var(--amber);background:radial-gradient(circle,var(--amber) 1px,transparent 1px) 0 0/6px 6px;box-shadow:none}
.world-name{display:none}.survey-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;border-top:1px solid var(--edge);padding-top:10px;margin-top:10px}.survey-grid .world-name{display:block}.survey-grid .large{min-height:72px}.survey-grid .mini-world{width:36px;height:36px}.survey-grid .saturn::after{width:46px;height:14px;margin-left:-24px;top:21px}
.survey-context{border-top:1px solid var(--edge);margin-top:12px;padding-top:8px;font:10px var(--mono)}.survey-context p{color:var(--mint);margin:0 0 6px}.survey-context button{font:10px var(--mono);margin:2px;padding:5px 8px;border:1px solid var(--edge);min-height:30px}.survey-context button[aria-pressed=true]{color:var(--mint);border-color:var(--mint)}.survey-context small,.survey-note{display:block;color:var(--muted);font:9px/1.5 var(--mono)}.survey-note{margin-top:12px}

/* Nate's header-placement direction: compact Survey stays outside Space. */
html[data-survey] .site-nav{grid-template-columns:322px minmax(240px,.9fr) minmax(400px,1.2fr) auto auto}
html[data-survey] .site-nav .about{grid-column:4;grid-row:1}
html[data-survey] .site-nav .theme-drawer{grid-column:5;grid-row:1}
html[data-survey] .survey{position:relative;inset:auto;transform:none;width:auto;grid-column:3;grid-row:1;display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:28px 30px;align-content:center;gap:0;padding:5px 12px;border:0;border-right:1px solid var(--edge);background:transparent;backdrop-filter:none;z-index:13}
html[data-survey] .survey-heading{grid-column:1;grid-row:1;margin:0;gap:8px;padding-right:10px}
html[data-survey] .survey-expand{font-size:9px;white-space:nowrap}
html[data-survey] .survey .header-search{grid-column:2;grid-row:1;height:28px}
html[data-survey] .survey #target-search{font-size:10px;min-height:24px}
html[data-survey] .survey-orbits{grid-column:1/-1;grid-row:2;margin:0;justify-content:center;gap:7px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}
html[data-survey] .survey-group{flex:none;gap:2px}
html[data-survey] .survey-orbits .survey-world{min-width:27px;min-height:28px;padding:3px;gap:0}
html[data-survey] .survey-orbits .mini-world{width:18px;height:18px}
html[data-survey] .survey-orbits .mini-world.saturn::after{width:25px;height:8px;margin-left:-13px;top:10px}
html[data-survey] #survey-browser{position:absolute;top:100%;left:0;right:0;padding:12px;background:var(--panel);border:1px solid var(--edge);max-height:65dvh;overflow-y:auto;box-shadow:0 12px 20px #0004}
html[data-survey] .survey #target-picker{min-width:280px;max-width:calc(100vw - 24px)}
html[data-survey] .site-nav{grid-template-columns:322px minmax(400px,1.2fr) minmax(240px,.8fr) auto auto}
html[data-survey] .survey{grid-column:2}
html[data-survey] .site-nav .observation-address{grid-column:3}
@media(min-width:761px) and (max-width:1200px){
 html[data-survey] .site-nav{grid-template-columns:322px minmax(0,1fr) auto auto}
 html[data-survey] .site-nav .observation-address{grid-column:2;grid-row:1}
 html[data-survey] .site-nav .about{grid-column:3}
 html[data-survey] .site-nav .theme-drawer{grid-column:4}
 html[data-survey] .survey{grid-column:1/-1;grid-row:2;border-top:1px solid var(--edge);border-right:0;grid-template-columns:150px minmax(180px,.8fr) minmax(330px,1fr);grid-template-rows:32px;padding:5px 14px}
 html[data-survey] .survey-orbits{grid-column:3;grid-row:1}
}
@media(max-width:760px){
 html[data-survey] .site-nav{grid-template-columns:minmax(0,1fr) auto auto}
 html[data-survey] .site-nav .about{grid-column:2;grid-row:1}
 html[data-survey] .site-nav .theme-drawer{grid-column:3;grid-row:1}
 html[data-survey] .site-nav .observation-address{grid-column:1/-1;grid-row:2}
 html[data-survey] .survey{grid-column:1/-1;grid-row:3;grid-template-columns:1fr;grid-template-rows:auto 28px 38px;padding:7px 12px;border-top:1px solid var(--edge);border-right:0}
 html[data-survey] .survey-heading{grid-column:1;grid-row:1;justify-content:space-between;padding:0}
 html[data-survey] .survey .header-search{grid-column:1;grid-row:2}
 html[data-survey] .survey-orbits{grid-column:1;grid-row:3;justify-content:flex-start}
 html[data-survey] .survey-orbits .survey-world{min-width:32px;min-height:36px}
 html[data-survey] #survey-browser{max-height:55dvh}
}

html[data-survey] .survey-world:disabled{opacity:.45;cursor:default}
@media(max-width:760px),(max-height:700px){
 html[data-survey] .survey #target-picker{max-height:55dvh;overflow-y:auto}
}

/* Shared Time treatment: corner rule, divided heading, retained live controls. */
html[data-survey] .survey{padding:0;grid-template-columns:144px minmax(0,1fr);grid-template-rows:34px 34px;align-content:center;min-width:0}
html[data-survey] .survey::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-survey] .survey-heading{grid-column:1;grid-row:1/3;padding:0 12px;border-right:1px solid var(--edge);align-self:stretch;min-width:0}
html[data-survey] #survey-disclosure{min-height:44px;gap:4px;white-space:nowrap;letter-spacing:.08em}
html[data-survey] .survey-tools{grid-column:2;grid-row:1;display:flex;gap:10px;align-items:center;min-width:0;padding:0 12px}
html[data-survey] .survey .header-search{flex:1;min-width:0;height:32px}
html[data-survey] .survey-expand{flex:none;padding:0 2px;min-height:30px;color:var(--mint)}
html[data-survey] .survey-orbits{grid-column:2;grid-row:2;justify-content:flex-start;padding:0 10px;border-top:1px solid var(--edge);gap:7px;min-width:0}
html[data-survey] .survey-orbits[hidden]{display:none}
html[data-survey] .survey.navigation-closed{grid-template-rows:68px}
html[data-survey] .survey.navigation-closed .survey-heading{grid-row:1}
html[data-survey] .survey.navigation-closed .survey-tools{grid-row:1}
html[data-survey] .survey #target-picker{left:0;right:auto;width:max(100%,280px);min-width:0}
html[data-survey] #survey-browser{text-align:left}
@media(min-width:761px) and (max-width:1200px){
 html[data-survey] .survey{grid-template-columns:144px minmax(0,1fr);grid-template-rows:34px 34px}
}
@media(max-width:760px){
 html[data-survey] .survey{grid-template-columns:130px minmax(0,1fr);grid-template-rows:44px 40px}
 html[data-survey] .survey-heading{grid-row:1;padding:0 10px}
 html[data-survey] .survey-tools{padding:0 10px;gap:4px}
 html[data-survey] .survey .header-search>span,html[data-survey] .survey .header-search>button{display:none}
 html[data-survey] .survey #target-search{font-size:10px;padding:2px;min-height:36px}
 html[data-survey] .survey-orbits{grid-column:1/-1;grid-row:2;padding:0 10px;gap:4px}
 html[data-survey] .survey-orbits .survey-world{min-width:30px;min-height:38px}
 html[data-survey] .survey #target-picker{position:fixed;left:10px;right:10px;top:var(--header-height);width:auto;max-width:none}
 html[data-survey] .survey.navigation-closed{grid-template-rows:44px}
}
.survey-category{font:10px/1.4 var(--mono);letter-spacing:.08em;color:var(--mint);margin:2px 0 0}

/* Study miniatures: named on hover/focus, visible selected ring, colour before textures load, inner / belt / outer ticks. */
html[data-survey] .survey{grid-template-rows:34px 42px}
html[data-survey] .survey-heading{grid-row:1}
html[data-survey] .survey-orbits{grid-column:1/-1;grid-row:2;overflow:visible;justify-content:flex-start;gap:12px;padding:0 12px}
html[data-survey] .survey-group{height:42px;align-items:flex-start;padding:2px 0 0 10px;gap:1px;border-left:1px solid var(--edge)}
html[data-survey] .survey-group:first-child{border:0;padding-left:0}
html[data-survey] .group-label{display:block;position:absolute;left:10px;bottom:3px;font:7px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--quiet);pointer-events:none}
html[data-survey] .survey-group:first-child .group-label{left:0}
html[data-survey] .survey-orbits .survey-world{min-width:26px;min-height:28px;padding:3px 2px;border:0}
html[data-survey] .survey-orbits .survey-world[aria-pressed=true] .mini-world{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--mint),inset -5px -2px 7px #0009}
html[data-survey] .survey-orbits .survey-world:hover .mini-world{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--edge-strong),inset -5px -2px 7px #0009}
html[data-combined][data-survey] .survey-orbits .survey-world:not(.story-world)[aria-pressed=true] .mini-world{box-shadow:inset -5px -2px 7px #0009,inset 1px 1px 2px #ffffff30}
html[data-survey] .survey-orbits .survey-world .world-name{display:block;position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:3px;padding:3px 6px;font:9px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink);background:var(--panel);border:1px solid var(--edge-strong);white-space:nowrap;opacity:0;pointer-events:none;z-index:14}
html[data-survey] .survey-orbits .survey-world:hover .world-name,html[data-survey] .survey-orbits .survey-world:focus .world-name,html[data-survey] .survey-orbits .survey-world.named .world-name{opacity:1}
html[data-survey] .survey-orbits .survey-world:focus-visible{outline-offset:1px}
.mini-world.mercury{background-color:#8c8780}.mini-world.venus{background-color:#c9a66b}.mini-world.earth{background-color:#3b6fb6}.mini-world.mars{background-color:#b5532e}.mini-world.vesta{background-color:#7d7a74}.mini-world.ceres{background-color:#6e6a66}.mini-world.jupiter{background-color:#c4a582}.mini-world.saturn{background-color:#d6c08a}.mini-world.uranus{background-color:#7fc4cc}.mini-world.neptune{background-color:#3d5fb8}.mini-world.pluto{background-color:#a89a8a}

/* Story over Sol: STORY group miniatures (ships/phenomena) read amber, never mint. */
.story-mini{background:none;box-shadow:none;border:1px dashed var(--edge);position:relative;opacity:.55}
.story-mini.ship img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 2px color-mix(in srgb,var(--amber) 60%,transparent))}
.story-mini.haze{border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--amber) 70%,transparent),transparent 70%)}
.story-world.on-screen .story-mini{opacity:1}
.story-world[aria-pressed=true] .story-mini{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--amber);opacity:1}
.story-world:not(:disabled):hover .story-mini,.story-world:not(:disabled):focus-visible .story-mini{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--amber)}
.story-world:disabled{cursor:default}.story-world:disabled .story-mini{opacity:.3}.story-world:disabled .world-name{color:var(--muted)}
html[data-survey] .survey-orbits .story-world .mini-world{width:18px;height:18px}
html[data-survey] .survey-grid .story-world .mini-world{width:36px;height:36px}
@media(min-width:761px) and (max-width:1200px){html[data-survey] .survey{grid-template-rows:34px 42px}html[data-survey] .survey-orbits{grid-column:1/-1;grid-row:2}html[data-survey] .survey-tools{grid-column:2;grid-row:1}}
@media(max-width:760px){html[data-survey] .survey{grid-template-rows:44px 40px}html[data-survey] .survey-orbits{justify-content:flex-start;gap:8px;padding:0 10px;overflow-x:auto;overflow-y:hidden}html[data-survey] .survey-group{height:auto;align-items:center;padding-top:0}html[data-survey] .group-label{display:none}html[data-survey] .survey-orbits .survey-world{min-width:30px;min-height:36px}}

/* v1 B1: an open bay occupies its own header row above the instruments. */
html[data-survey] #survey-browser{position:relative;top:auto;grid-column:1/-1;grid-row:3;max-height:45dvh}
@media(min-width:761px) and (max-width:1200px){
  html[data-survey] #survey-browser{padding:8px}
  html[data-survey] .survey-category{font-size:9px}
  html[data-survey] .survey-grid{grid-template-columns:repeat(12,minmax(0,1fr));margin-top:6px;padding-top:6px}
  html[data-survey] .survey-grid .large{min-height:48px;padding:2px}
  html[data-survey] .survey-grid .world-name{font-size:8px}
  html[data-survey] .survey-grid .mini-world{width:28px;height:28px}
  html[data-survey] .survey-grid .saturn::after{width:38px;height:12px;margin-left:-19px;top:15px}
  html[data-survey] .survey-note{margin-top:6px}
}

/* A1 / U8: identity, Survey and site utilities each have their own owner. */
html[data-combined][data-survey] .site-nav{grid-template-columns:max-content minmax(0,1fr);align-items:start;gap:12px 128px;height:auto;min-height:0;padding:28px 18px 18px 31px;border:0;background:transparent}
html[data-combined][data-survey] .project-heading{grid-column:1;grid-row:1;padding:0;border:0;width:max-content;max-width:100%}
html[data-combined][data-survey] .project-heading .wordmark{font-size:18px}
html[data-combined][data-survey] .observation-address{padding:8px 0 0;border:0;flex:none;width:max-content;gap:5px}
html[data-combined][data-survey] .entry-node{display:none}
html[data-combined][data-survey] .survey{grid-column:2;grid-row:1;width:min(720px,100%);justify-self:start;border:1px solid var(--edge);background:color-mix(in srgb,var(--panel) 94%,transparent);backdrop-filter:none}
@media(min-width:761px) and (max-width:1200px){
 html[data-combined][data-survey] .site-nav{grid-template-columns:minmax(0,1fr);padding:6px 18px;gap:0 12px}
 html[data-combined][data-survey] .survey{grid-column:1;grid-row:2;width:min(720px,100%);justify-self:start}
}
@media(max-width:760px){
 html[data-combined][data-survey] .site-nav{grid-template-columns:minmax(0,1fr);padding:12px;gap:10px}
 html[data-combined][data-survey] .project-heading{max-width:calc(100% - 108px)}
 html[data-combined][data-survey] .project-heading .wordmark{font-size:15px}
 html[data-combined][data-survey] .survey{grid-column:1;grid-row:2;width:100%}
}

@media(min-width:761px) and (max-width:800px){
 html[data-combined][data-survey] .survey-orbits{flex-wrap:wrap;height:auto;gap:8px}
 html[data-combined][data-survey] .survey{grid-template-rows:44px auto}
 html[data-combined][data-survey] .survey-tools{min-height:44px}
 html[data-combined][data-survey] .survey-group{height:48px}
 html[data-combined][data-survey] .survey-orbits .survey-world,html[data-combined][data-survey] .survey-expand,html[data-combined][data-survey] #target-search{min-height:44px}
 html[data-combined][data-survey] .group-label{bottom:0}
}

/* At small phone widths, show every world and its full tap target. */
@media(max-width:420px){
 html[data-combined][data-survey] .survey{grid-template-rows:44px auto}
 html[data-combined][data-survey] .survey-orbits{flex-wrap:wrap;overflow:visible;gap:4px;padding:4px 10px}
 html[data-combined][data-survey] .survey-group{gap:0;padding-left:2px}
 html[data-combined][data-survey] .survey-group:first-child{padding-left:0}
 html[data-combined][data-survey] .survey-orbits .survey-world{min-width:44px;min-height:44px}
}

/* The terminal address uses the identity column's width, not an intrinsic path width. */
html[data-combined][data-survey] .project-heading{width:100%}
html[data-combined][data-survey] .observation-address{width:100%;min-width:0;flex-wrap:nowrap;padding-top:0}

/* H QA: keep the desktop disclosure within its 34px row; touch stays 44px. */
@media(min-width:801px){html[data-combined][data-survey] #survey-disclosure{min-height:34px}}

@media(max-width:390px){
 html[data-combined][data-survey] .project-heading{max-width:100%}
 html[data-combined][data-survey] .project-heading .wordmark{max-width:calc(100% - 108px)}
}

@media(min-width:1441px){html[data-combined][data-survey] .survey{grid-column:1/-1;margin-inline:auto}}

@media(min-width:801px) and (max-width:1200px){
 html[data-combined][data-survey] .survey-orbits{overflow-x:auto;overflow-y:hidden}
 html[data-combined][data-survey] .survey-orbits .world-name{top:auto;bottom:0;margin:0}
}

/* The measured phone search row fits both sibling actions at 390px. */
@media(max-width:760px){html[data-combined][data-survey] #target-search{min-height:44px}}

/* Collapsing the planet row must leave the search actions on their first row. */
@media(min-width:801px){html[data-combined][data-survey] .survey.navigation-closed .survey-tools{align-self:start;min-height:34px}}

/* Leave native input text inset room as well as its measured glyph width. */
@media(max-width:760px){html[data-combined][data-survey] .survey-tools{padding-inline:6px}}
/* Craft group: ISS mark (truss + panels), no globe */
.mini-world.iss{border-radius:2px;border:0;box-shadow:none;background:linear-gradient(90deg,#4f7fb8 0 30%,transparent 30% 36%,#cfd6dd 36% 64%,transparent 64% 70%,#4f7fb8 70%) center/100% 55% no-repeat}
.survey-sections{display:flex;flex-direction:column;gap:6px}
.survey-craft{display:flex;flex-direction:column;gap:2px}
.survey-craft .survey-grid{grid-template-columns:repeat(2,minmax(48px,1fr));margin-top:0;padding-top:4px;border-top:0;width:max-content;min-width:104px}
@media(min-width:761px) and (max-width:1200px){
  html[data-survey] .survey-sections{flex-direction:row;align-items:flex-start;gap:10px}
  html[data-survey] .survey-bodies{flex:1;min-width:0}
  html[data-survey] .survey-craft .survey-grid .large{min-height:36px;height:36px}
  html[data-survey] .survey-craft .survey-grid{grid-template-columns:56px;min-width:0;margin-top:4px;padding-top:4px;border-top:1px solid var(--edge)}
}
@media(max-width:760px){
  html[data-survey] .survey-craft{flex-direction:row;align-items:center;gap:10px;border-top:1px solid var(--edge);padding-top:2px}
  html[data-survey] .survey-craft .survey-category{margin:0}
  html[data-survey] .survey-craft .survey-grid{margin:0;padding:0;border-top:0}
  html[data-survey] .survey-craft .survey-grid .large{min-height:40px;height:40px}
  html[data-survey] .survey-sections{gap:2px}
}
.mini-world.belt{background:radial-gradient(circle,transparent 38%,#0000 39%),repeating-conic-gradient(#9a8f7a 0 6deg,#5b5547 6deg 14deg);-webkit-mask:radial-gradient(circle,transparent 42%,#000 44%,#000 100%);mask:radial-gradient(circle,transparent 42%,#000 44%,#000 100%);box-shadow:none}
/* Phone: Belt (3 miniatures) and Craft push the quick-nav to three wrapped rows; with Browse+ open the bay already lists every miniature, so it replaces the nav and the Earth tag keeps its lane (MAC 1.4 int fix-2). */
@media(max-width:760px){html[data-survey] .survey.browsing .survey-orbits{display:none}}
