/* The atlas is a place to explore. Details share its edge, never its height. */
.galaxy-map-footer{flex-wrap:wrap}
.galaxy-map-footer>[data-find-captains]{margin-left:auto}
.galaxy-directory-dialog{box-sizing:border-box;width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;padding:10px;overflow:hidden;background:#0b1724;border-color:#7399a85c}
#galaxy-dialog-content{height:100%;min-height:0;display:flex;flex-direction:column}
.galaxy-directory-dialog>.dialog-close{position:absolute;top:10px;right:10px;width:44px;height:44px;z-index:120}
.galaxy-view-tabs{position:static;flex:none;margin:0;padding:0 54px 10px 0;border:0;background:none;gap:8px;flex-wrap:nowrap;min-height:44px}
.galaxy-view-tabs button{flex:0 1 240px;min-width:0;padding:6px 14px;line-height:1.25}
.earth-layout{position:relative;display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px;flex:1;min-height:0;min-width:0}
.earth-layout[data-panel-open=false]{grid-template-columns:minmax(0,1fr)}
.earth-searchbar{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0}
.earth-searchbar label{flex:1;min-width:0;max-width:480px}
.earth-searchbar .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.earth-searchbar input{width:100%;min-height:44px;font-size:14px;padding:8px 12px}
.earth-searchbar button{margin-left:auto;min-height:44px;font-size:12px;white-space:normal;line-height:1.2;max-width:220px}
.earth-section-title{font:20px var(--display,Georgia);color:#e6d9b4}
.earth-sidebar{grid-column:1;grid-row:2;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:14px;background:linear-gradient(155deg,#203745ed,#102634f5);border:1px solid #87b0b536;border-radius:12px}
.earth-sidebar[hidden]{display:none!important}
.earth-sidebar header h2{font:23px var(--display,Georgia);margin:6px 0 12px;color:#eee0bf;overflow-wrap:anywhere}
.earth-sidebar header p,.earth-help p{font-size:12px;line-height:1.6;color:#a8bfc9}
.earth-sidebar .neighbor-tools{display:block;margin:12px 0}
.earth-sidebar .neighbor-tools select{font-size:13px}
.earth-sidebar .neighbor-filters{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:14px}
.earth-sidebar .neighbor-filters button{min-width:0;white-space:normal;padding:7px;font-size:11px}
.earth-sidebar .neighbor-detail{display:flex;flex-direction:column;padding:12px;gap:10px}
.earth-sidebar .neighbor-detail h3{font-size:23px}
.earth-sidebar .neighbor-detail-actions{display:flex;flex-direction:column}
.earth-sidebar .neighbor-detail-actions button{width:100%;font-size:12px}
.earth-sidebar .neighbor-journey{border-top:1px solid #aec5c62b;padding-top:10px}
.earth-sidebar .neighbor-journey dd{font-size:12px;max-width:55%}
.earth-destinations{display:flex;flex-direction:column;gap:12px}
.earth-destinations[data-searching=true]>.neighbor-list{order:-1}
.earth-sidebar .neighbor-list{margin:0}.earth-sidebar .neighbor-list>div{max-height:320px}
.earth-sidebar .neighbor-list summary{padding:12px;font-size:12px}
.earth-sidebar .neighbor-list>div>button{padding:10px;gap:8px}
.earth-sidebar .neighbor-list button b{font-size:12px}.earth-sidebar .neighbor-list button small{font-size:10px}
.earth-sidebar .neighbor-list button strong{font-size:10px}
.earth-help{margin-top:16px;font-size:12px;color:#b9d0d8;line-height:1.5}
.earth-help summary{cursor:pointer;padding:10px 0}
.earth-sidebar .galaxy-code{padding:12px;margin:8px 0}.earth-sidebar .galaxy-code p{font-size:12px}
.earth-sidebar .sector-directory-row{display:flex;flex-wrap:wrap;gap:10px;padding:12px;font-size:12px}
.earth-sidebar .sector-directory-row>div{flex-basis:100%;min-width:0}.earth-sidebar .sector-directory-row small{overflow-wrap:anywhere}
.earth-sidebar .sector-directory-row>.sector-range{min-width:0;flex-basis:100%}
.earth-sidebar .sector-directory-pages{gap:6px;flex-wrap:wrap;font-size:11px}.earth-sidebar .sector-directory-pages button{font-size:11px;padding:6px;min-height:44px;white-space:normal}
.earth-map-stage{grid-column:2;grid-row:2;min-width:0;min-height:0;position:relative}
.earth-layout[data-panel-open=false]>.earth-map-stage{grid-column:1}
.earth-map-stage .orbital-atlas{position:relative;height:100%;margin:0;display:flex;flex-direction:column;min-height:0}
.earth-map-stage .orbital-toolbar{flex:none;padding:6px 8px;gap:8px}
.earth-map-stage .orbital-chart{flex:1;height:auto!important;min-height:0;margin:0;box-sizing:border-box}
.earth-map-stage canvas[data-orbital-globe]{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.earth-map-stage canvas[hidden]{display:none}
.earth-map-stage .orbital-chart>svg{z-index:1}
.earth-map-stage .orbital-bottom{position:absolute;bottom:10px;right:10px;z-index:50;margin:0;padding:4px;border:1px solid #678b9959;border-radius:10px;background:#0c1c2adb;display:block}
.earth-map-stage .orbital-direction{gap:4px}.earth-map-stage .orbital-direction button{padding:4px;min-width:36px;min-height:36px}
.earth-map-stage .orbital-bottom>p,.earth-map-stage .orbital-note{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}
.earth-map-stage .orbital-compass{top:18px;right:18px;bottom:auto;z-index:2}
.earth-map-stage .orbital-control-label{display:none}
.earth-approach{position:absolute;bottom:10px;left:10px;z-index:51;max-width:135px;min-height:44px;font-size:12px;white-space:normal;padding:7px 10px;background:#153a45e8;border-color:#9acabb91}
.earth-approach>.action-icon{display:none}
.earth-map-stage button>.action-icon,.galaxy-view-tabs button>.action-icon,[data-atlas-panel]>.action-icon,.galaxy-directory-dialog>.dialog-close>.action-icon{display:none}
.earth-map-stage .orbital-toolbar button{padding:6px 10px}
.earth-map-stage .orbital-node[data-label=hidden]>b,.earth-map-stage .orbital-node[data-label=hidden]>small{display:none!important}
.earth-map-stage .orbital-node[data-label=visible]>b{max-width:150px;width:max-content;padding:3px 6px;font-size:11px;line-height:1.25;background:#0b1b2bdd;border:1px solid #9bc7c233;border-radius:5px;text-shadow:0 1px #000;overflow:hidden;text-overflow:ellipsis}
.earth-map-stage .orbital-node[data-label=visible]>small{background:#0b1b2bd9;padding:2px 5px;border-radius:4px;font-size:9px;max-width:120px}
.earth-map-stage .orbital-node.selected>b{color:#ffe0b7;border-color:#e7b77799}
.earth-map-stage .orbital-chart[data-detail=far] .orbital-node:not(.selected)>small{display:none!important}
.earth-map-stage .orbital-node{width:44px;min-height:44px;height:44px;gap:0}
.earth-map-stage .orbital-node>b{position:absolute;top:36px;left:50%;transform:translateX(-50%)}
.earth-map-stage .orbital-node>small{position:absolute;top:57px;left:50%;transform:translateX(-50%)}
.earth-map-stage .orbital-chart[data-detail=far] .orbital-isle{width:9px;height:9px;border:1px solid #e4e8cfb3;border-radius:50%;background:var(--isle-top);box-shadow:0 0 0 3px #091b2b99,0 2px 5px #0008;filter:none;transform:scale(var(--orbital-scale,1))}
.earth-map-stage .orbital-chart[data-detail=far] .orbital-isle:before,.earth-map-stage .orbital-chart[data-detail=far] .orbital-isle:after,.earth-map-stage .orbital-chart[data-detail=far] .orbital-isle>i,.earth-map-stage .orbital-chart[data-detail=far] .orbital-isle>em{display:none}
.earth-map-stage .orbital-chart[data-detail=far] .orbital-node.selected .orbital-isle{width:13px;height:13px;background:#f3c284;border-color:#fff1d2;box-shadow:0 0 0 4px #d7aa5f36,0 0 16px #e5c08788}
.earth-map-stage .orbital-chart[data-mode=flat] .orbital-node>b{max-width:90px;font-size:10px}
@media(max-width:900px),(max-height:600px){
 .galaxy-directory-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);padding:6px;border-radius:12px}
 .galaxy-directory-dialog>.dialog-close{top:6px;right:6px}
 .galaxy-view-tabs{padding-bottom:6px;gap:5px}.galaxy-view-tabs button{font-size:12px;padding:5px 8px;flex:1}
 .earth-layout{grid-template-columns:minmax(0,1fr);gap:6px}
 .earth-map-stage{grid-column:1}
 .earth-sidebar{position:absolute;left:0;top:50px;bottom:0;width:min(340px,100%);box-sizing:border-box;z-index:80;box-shadow:16px 0 40px #0008;background:#132c3a}
 .earth-searchbar button{max-width:140px;font-size:11px;padding:6px 9px}
 .earth-section-title{font-size:16px}
 .earth-map-stage .orbital-toolbar{padding:4px;gap:4px}
 .earth-map-stage .orbital-modes,.earth-map-stage .orbital-zoom{gap:3px}
 .earth-map-stage .orbital-toolbar button{font-size:11px;min-width:40px;padding:5px 6px}
 .earth-map-stage .orbital-zoom button{font-size:18px}
 .earth-map-stage .orbital-zoom output{font-size:10px;min-width:36px}
 .earth-map-stage .orbital-direction button{min-width:44px;min-height:44px}
 .earth-map-stage .orbital-bottom{bottom:5px;right:5px}
}
@media(max-width:450px){
 .earth-approach{bottom:5px;left:5px;max-width:102px;font-size:10px;padding:5px}
 .galaxy-map-footer>span{flex-basis:100%;max-width:none}
 .galaxy-map-footer>button{flex:1;white-space:normal;min-height:44px}
 .earth-map-stage .orbital-toolbar{justify-content:center}
 .earth-map-stage .orbital-modes{width:100%}.earth-map-stage .orbital-modes>button{flex:1}
 .earth-searchbar label{min-width:0}.earth-searchbar input{font-size:12px}
 .earth-searchbar button{max-width:105px}
 .earth-map-stage .orbital-node[data-label=visible]>b{max-width:100px;font-size:10px}
}
@media(max-height:600px){
 .galaxy-view-tabs{padding-bottom:0}
 .earth-layout{row-gap:4px}
}
