/* Survey → system orbits → selected star or world. The same levels on every screen. */
.survey-study .system-dialog .catalog-layout{display:block;padding:22px 0}
.catalog-navigation{position:sticky;top:-30px;z-index:20;background:#080d11;padding-top:12px}
.survey-study .system-dialog .catalog-header{border-left:0;border-top:0;border-radius:0;padding:0 0 18px;align-items:center}
.survey-study .system-dialog .catalog-header .eyebrow{font-size:10px;margin-bottom:8px}
.survey-study .system-dialog .catalog-header h2{font-size:clamp(28px,4vw,42px)}
.survey-study .system-dialog .catalog-header .text-button{font-size:11px;min-height:44px}
.system-overview-heading{margin:0 0 20px}
.system-overview-heading h3{font:400 26px/1.2 var(--serif);margin:0 0 8px;color:#edf0ed}
.system-dialog .system-overview-heading p{font:12px/1.7 var(--mono);color:#bdc9ce;margin:0;max-width:65ch}
.system-overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:28px;align-items:start}
.system-orbits,.system-worlds{min-width:0}
.system-dialog .chart-scale-note span{white-space:normal}
.system-dialog .worlds-heading{align-items:center;letter-spacing:0;text-transform:none;padding:10px 0 12px}
.system-dialog .worlds-heading h3{font:13px/1.5 var(--mono);margin:0;color:#edf0ed}
.system-dialog .worlds-heading>span{font:12px var(--mono);color:#cdb286}
.system-dialog .system-worlds .planet-list{display:grid;grid-template-columns:1fr;gap:7px;padding:12px 0;margin:0;overflow:visible}
.system-dialog .system-worlds .planet-button{display:flex;flex-direction:row;align-items:center;min-height:66px;padding:9px 10px;gap:12px;border-color:#9aafb53d}
.system-dialog .system-worlds .planet-button .celestial-art{width:38px;height:38px}
.system-dialog .planet-label{flex:1}
.system-dialog .world-open{color:#cfb78e;font:17px var(--mono)}
.system-size-comparison{margin-top:12px;border-top:1px solid #9aafb533}
.system-size-comparison summary{font:11px/1.5 var(--mono);color:#bdc9ce;padding:14px 0;min-height:44px;cursor:pointer}
.system-size-comparison .diameter-strip{margin-bottom:10px}
.survey-study .system-dialog .catalog-tabs{display:flex;position:static;background:#080d11;margin:0;padding:8px 0;border-bottom:1px solid #9aafb533}
.survey-study .system-dialog .catalog-tabs button{flex:none;min-height:44px;background:none;border:0;padding:8px 0;color:#dfc69b;font:12px var(--mono);text-align:left}
.survey-study .system-dialog .body-panel{display:flex;flex-direction:column;align-items:stretch;max-width:680px;margin:0 auto;padding-top:0}
.survey-study .system-dialog .body-image-wrap{width:min(340px,100%);height:auto;aspect-ratio:1;margin:0 auto 18px;align-self:center}
.survey-study .system-dialog .body-stats{width:100%}
@media(max-width:760px){
  .catalog-navigation{top:-23px}
  .system-overview-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .system-dialog .system-worlds .planet-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .system-dialog .system-worlds .planet-button{padding:9px 8px;gap:8px}
  .system-dialog .system-worlds .planet-button .celestial-art{width:30px;height:30px}
}
@media(max-width:560px){
  .catalog-navigation{top:-18px}
  .survey-study .system-dialog{padding:18px 16px 16px}
  .survey-study .system-dialog .catalog-layout{padding-top:16px}
  .survey-study .system-dialog .catalog-header{gap:8px;flex-wrap:wrap;padding-bottom:12px}
  .survey-study .system-dialog .catalog-header .text-button{margin-left:auto}
  .system-overview-heading{margin-bottom:12px}
  .system-overview-heading h3{font-size:24px}
  .system-dialog .system-overview-heading p{font-size:11px}
  .system-dialog .chart-toolbar{gap:6px;flex-wrap:wrap;padding-bottom:6px}
  .system-dialog .chart-controls{margin-left:auto}
  .system-dialog p.chart-scale-note{margin-bottom:8px}
  .system-dialog .system-worlds .planet-list{grid-template-columns:1fr}
  .system-dialog .system-worlds .planet-button{min-height:64px}
  .system-dialog .system-worlds .planet-button .celestial-art{width:38px;height:38px}
  .survey-study .system-dialog .body-image-wrap{width:min(300px,100%)}
}

/* Keep the host visible alongside its orbit chart; share the existing renderer. */
.system-host-preview{display:flex;align-items:center;gap:16px;width:100%;padding:0 0 18px;margin:0 0 12px;background:none;border:0;border-bottom:1px solid #9aafb533;text-align:left}
.system-host-art{display:block;position:relative;width:132px;height:132px;flex:none}
.system-host-art>.celestial-art,.system-host-canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;overflow:hidden}
.system-host-art>.celestial-art{background-color:transparent;mix-blend-mode:screen}
.system-host-canvas{display:none;pointer-events:none}
.system-host-canvas canvas{pointer-events:none!important}
.system-host-label{display:flex;flex-direction:column;gap:10px;font:10px/1.6 var(--mono);color:#acbcc2}
.system-host-label strong{font:25px/1.15 var(--serif);color:#e7e9df;font-weight:400}
.system-host-label>span:last-child{color:#cfb78e}
body[data-render-location=overview][data-rendering="3d"] .system-host-canvas{display:block}
body:not([data-rendering="original"]) .system-host-fallback{visibility:hidden}
body:not([data-render-ready=true]) .system-host-canvas canvas{visibility:hidden}
.system-dialog .system-worlds .planet-button{border:0;border-bottom:1px solid #9aafb524;border-radius:0;background:transparent;padding-left:0;padding-right:0}
.system-dialog .system-worlds .planet-button .celestial-art{background-color:transparent;mix-blend-mode:screen}
@media(max-width:760px){.system-host-art{width:112px;height:112px}.system-host-preview{margin-bottom:0}}

@media(max-width:760px){.system-overview-grid{display:flex;flex-direction:column}.system-worlds{display:contents}.system-host-preview{order:-1}.system-orbits{width:100%}.system-worlds .worlds-heading,.system-worlds .planet-list,.system-size-comparison{width:100%;order:1}}
.system-dialog .chart-toolbar .chart-controls{margin-left:auto}
/* Keyboard focus scrolls clear of the sticky system header. */
.system-dialog{scroll-padding-top:104px}
@media(max-width:760px),(max-height:360px){.system-dialog{scroll-padding-top:86px}}
/* The orbital map's toolbar stays one row: the host label shares the zoom
   controls' centre line and its left edge with the heading, and shortens with
   an ellipsis before it would wrap. A binary system's extra control may still wrap. */
.system-dialog .chart-toolbar{flex-wrap:nowrap}
.system-dialog .chart-toolbar #system-class{display:block;flex:1 1 auto;min-width:0;min-height:44px;padding:0;font-size:11px;line-height:44px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.system-dialog .chart-toolbar .chart-controls{flex:none}
/* The sticky header matches the dialog's own background instead of a darker band. */
.catalog-navigation{background:#080d11f8}
.catalog-header .text-button span{padding-left:6px}
