@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
canvas{image-rendering:pixelated}
#welcome{display:none}
.home-art{transform:none!important}
.at-home>header,.at-home>aside,.at-home>#welcome,.at-home>#selection,.at-home>footer,.at-home>.help{visibility:hidden;pointer-events:none}
#home-screen{position:fixed;inset:0;z-index:10;background:radial-gradient(ellipse at 76% 40%,#30494099,transparent 65%),#142327f5;display:flex;flex-direction:column;padding:36px 6vw}
.home-top,.home-bottom{display:flex;justify-content:space-between;align-items:center}.home-version,.home-bottom{color:#829b97;font-size:10px;letter-spacing:1px}.home-layout{flex:1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:45px;max-width:1200px;width:100%;margin:auto}.home-mark{color:#f9ad48;font-size:50px}.home-copy h1{font:700 clamp(42px,6vw,76px) 'Space Grotesk',sans-serif;letter-spacing:7px;margin:4px 0 20px}.home-copy h2{font:500 clamp(21px,2.4vw,30px)/1.3 'Space Grotesk',sans-serif;color:#cbd9cf;margin:0 0 18px}.home-copy p{color:#90a9a2;line-height:1.8;margin:0 0 30px}.home-copy #play{display:flex;align-items:center;justify-content:space-between;width:210px;background:#f6b34e;color:#25302b;border:0;padding:17px 23px;font-weight:700;font-size:17px;box-shadow:0 5px 0 #a86d30;border-radius:5px}.home-copy #play:hover{background:#ffc66f}.home-copy #play span{font-size:25px}.home-copy>small{display:block;color:#809a93;font-size:10px;margin:16px 0 30px}.home-features{display:flex;gap:19px;font-size:10px;color:#a1b6ae}.home-art{background:#283f36;border:1px solid #6c8b7166;border-radius:12px;padding:12px;transform:rotate(-2deg);box-shadow:0 28px 50px #07131650}.home-art canvas{position:static;width:100%;height:auto;display:block;border-radius:6px}.home-art>div{display:flex;align-items:center;gap:7px;padding:12px 8px 3px;font-size:10px;letter-spacing:1px;color:#c4d4bf}.home-art small{margin-left:auto;color:#89a08c;font-size:9px;letter-spacing:0}.home-bottom{padding-top:20px}.machine-card.selected{box-shadow:inset 3px 0 #eabb68}
@media(max-width:750px){#home-screen{padding:24px}.home-layout{display:flex;flex-direction:column;justify-content:center;gap:24px}.home-copy h1{font-size:44px}.home-copy h2{font-size:22px}.home-copy p{font-size:12px;margin-bottom:18px}.home-mark{font-size:32px}.home-copy>small{margin-bottom:18px}.home-art{max-width:320px;width:100%}.home-top{gap:12px}.home-top .eyebrow{font-size:8px}.home-version{font-size:8px}.home-bottom{font-size:8px;gap:15px}.home-features{gap:12px;font-size:9px}}
@media(max-height:650px){.home-art{max-width:430px}.home-copy h1{font-size:48px;margin-bottom:14px}.home-copy h2{font-size:22px}.home-copy p{margin-bottom:20px}.home-mark{font-size:32px}}
:root{color-scheme:dark;--bg:#131e22;--panel:#18252af2;--line:#34454b;--muted:#8fa5aa;--accent:#eabb68;--green:#8fc4ad}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:var(--bg);color:#e7ede8;font:14px 'DM Sans',sans-serif}button,select{font:inherit;color:inherit;background:#24353b;border:1px solid var(--line);border-radius:5px;cursor:pointer}button:hover{border-color:var(--accent);background:#304148}button:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:not([type=checkbox]):not([type=radio]):not([type=file]):focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent)}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{height:76px;position:fixed;inset:0 0 auto;background:#142126ed;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.brand{font:700 24px 'Space Grotesk',sans-serif;letter-spacing:3px;text-decoration:none;color:#eef0df;display:flex;align-items:center;gap:12px}.brand-icon{color:var(--accent);font-size:35px}.brand small{font:9px 'DM Sans',sans-serif;letter-spacing:2px;max-width:90px;color:var(--muted);line-height:1.7}.balances,.actions{display:flex;align-items:center;gap:24px}.balances>span{display:flex;gap:8px;align-items:center}.balances b{font:600 19px 'Space Grotesk',sans-serif}.balances i{font-style:normal}.coin{color:var(--accent)}.rp{color:#9abbd4}.balances small{color:var(--muted)}.phase{border-left:1px solid var(--line);padding-left:22px;font-size:10px;letter-spacing:1.4px;color:var(--green);flex-direction:column;gap:3px!important}.phase em{font-style:normal;letter-spacing:0;color:var(--muted)}.actions{gap:8px}.actions button,.actions select{padding:8px 12px}.panel{position:fixed;top:100px;left:24px;width:348px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px #0003;overflow:hidden}.panel-head{padding:22px 20px;display:flex;justify-content:space-between;align-items:flex-start}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--accent)}h1{font:500 20px 'Space Grotesk',sans-serif;margin:8px 0 0}h1 span{color:var(--accent)}.panel-head button{border:0;background:transparent;font-size:24px;color:var(--muted)}.tabs{display:flex;padding:0 16px 14px;gap:5px}.tabs button{flex:1;padding:8px 0;font-size:11px}.tabs .active{background:var(--accent);color:#263035;border-color:var(--accent)}.tabs .locked{opacity:.5}.catalog-layout{display:grid;grid-template-columns:1fr 65px;border-top:1px solid var(--line);min-height:300px}#catalog{padding:12px;max-height:calc(100vh - 380px);overflow:auto}.machine-card{display:grid;grid-template-columns:45px 1fr;text-align:left;padding:12px 8px;width:100%;gap:10px;margin-bottom:8px;background:#213137;border:1px solid #35474b}.machine-card.selected{border-color:var(--accent);background:#34392f}.machine-card.locked{opacity:.55}.machine-card canvas{position:static;width:44px;height:44px}.machine-card strong{font-size:12px;font-weight:600;display:block;margin-bottom:5px}.machine-card small{font-size:10px;color:var(--muted);display:block}.machine-card .price{color:var(--accent);display:inline-block;margin-right:9px}.machine-card .lock-note{margin-top:5px;color:#bcb29c}#categories{border-left:1px solid var(--line);padding:10px 5px;display:flex;flex-direction:column;gap:7px}#categories button{font-size:9px;border:0;background:transparent;padding:10px 0;color:var(--muted)}#categories button span{display:block;font-size:20px;margin-bottom:6px}#categories button.active{color:var(--accent);background:#eabb6812;border-radius:5px}.panel-foot{border-top:1px solid var(--line);padding:12px 15px;display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}#welcome{position:fixed;left:47%;top:30%;pointer-events:none}#welcome h2{font:500 clamp(25px,3vw,44px)/1.15 'Space Grotesk',sans-serif;margin:18px 0;color:#dbe6d9}#welcome p{line-height:1.8;color:#9db2a8;font-size:13px}.welcome-tag{display:inline-block;border:1px solid #62766566;border-radius:4px;padding:8px 12px;font-size:10px;color:#a8bcae;margin-top:13px}footer{position:fixed;bottom:36px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}footer>*{pointer-events:auto}.toolbar{display:flex;padding:6px;background:#17262aef;border:1px solid var(--line);border-radius:9px;gap:5px;box-shadow:0 6px 24px #0003}.toolbar button{position:relative;min-width:87px;height:62px;background:transparent;border:1px solid transparent;font-size:10px;color:var(--muted)}.toolbar button>span{display:block;font-size:24px;margin-bottom:3px}.toolbar .active{border-color:#eabb6866;color:var(--accent);background:#eabb6810}.toolbar kbd{position:absolute;top:4px;left:6px;font:9px monospace;color:var(--muted)}.wire-icon{color:#91b7dc;text-shadow:1px 1px #d09270}.world-meta{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1px;color:#b2c2b5}.world-meta small{color:#718e7f;letter-spacing:0}.live-dot{width:6px;height:6px;background:#a4c89d;border-radius:50%}.view-controls{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)}.view-controls button{width:30px;height:30px}.help{position:fixed;bottom:12px;left:0;right:0;text-align:center;font-size:10px;color:#82988e;pointer-events:none}.help span{margin:0 8px}#selection{position:fixed;bottom:120px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#17262aef;border:1px solid var(--line);padding:12px 18px;border-radius:7px;pointer-events:none}#selection-icon{color:var(--accent);font-size:24px}#selection strong{display:block;font-size:12px}#selection small{display:block;color:var(--muted);font-size:10px;margin-top:4px}#selection b{color:var(--accent);font-size:12px;margin-left:10px}#toast{position:fixed;top:90px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#20373a;border:1px solid #648477;border-radius:6px;opacity:0;transition:opacity .2s;pointer-events:none;z-index:5}#toast.show{opacity:1}.hidden{display:none!important}#inspector{left:auto;right:24px;width:290px;padding:22px}#inspector h2{font:500 22px 'Space Grotesk',sans-serif}#inspector p{font-size:12px;line-height:1.7;color:var(--muted)}#inspector dl{display:grid;grid-template-columns:1fr 1fr;font-size:12px;gap:12px}#inspector dt{color:var(--muted)}#inspector dd{margin:0;text-align:right}dialog{color:#e7ede8;background:#1a2b30;border:1px solid var(--line);border-radius:12px;max-width:450px;padding:28px}dialog::backdrop{background:#071317b0}dialog h2{font-family:'Space Grotesk',sans-serif}dialog p{color:var(--muted);line-height:1.7;font-size:13px}dialog label{display:block;margin:16px 0}dialog button{padding:9px 13px;margin:5px 3px}.dialog-actions{margin:18px 0}.muted{font-size:11px!important}@media(max-width:1050px){.brand small,.phase{display:none!important}.balances{gap:15px}header{padding:0 16px}.panel{width:300px;left:16px}.world-meta{display:none}#welcome{left:48%}footer{left:16px;right:16px}.toolbar button{min-width:70px}}@media(max-height:700px){.panel{top:88px}.panel-head{padding:14px}#catalog{max-height:calc(100vh - 325px)}.catalog-layout{min-height:220px}#welcome{top:25%}}
@media(max-width:750px){#welcome{display:none}.brand{font-size:15px;letter-spacing:1px;gap:6px}.brand-icon{font-size:24px}header{padding:0 12px;gap:10px;height:64px}.balances b{font-size:14px}.balances>span:nth-child(2),.actions select,#load{display:none}.actions{gap:4px}.actions button{padding:6px 8px;font-size:11px}.panel{width:min(300px,calc(100vw - 24px));left:12px;top:80px}#inspector{right:12px;width:min(290px,calc(100vw - 24px))}.panel-head{padding:16px}.toolbar button{min-width:60px;height:58px}.toolbar{gap:2px}footer{justify-content:center;left:8px;right:8px}.view-controls{position:absolute;bottom:90px;right:0}.help{font-size:9px;padding:0 8px}.help span{margin:0 2px}#selection{bottom:165px;width:260px;padding:10px 12px}#toast{max-width:calc(100vw - 24px);width:280px;font-size:12px}.catalog-layout{min-height:250px}#catalog{max-height:calc(100vh - 350px)}}

.research-entry{display:flex;justify-content:flex-end;padding:0 16px 8px}.research-entry button{color:#efbd63;border:1px solid #657064;padding:8px 16px;background:#26393c;border-radius:5px}#research-panel{width:min(1044px,90vw);max-width:1044px;background:#1c3032;color:#dce6e4}.research-head{display:flex;justify-content:space-between;padding:10px}.research-rp{color:#efbd63}.research-scroll{overflow:auto;padding:20px 10px}#research-graph{position:relative;width:1540px;height:340px}#research-graph svg{position:absolute;inset:0}.tech-node{position:absolute;width:190px;min-height:80px;padding:12px;background:#293d42;color:#d5dfe2;border:1px solid #596b70;border-radius:6px}.tech-node.done{border-color:#edbb62;color:#edbb62}#world-list{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}#world-menu input{padding:10px;background:#263b3f;color:white;border:1px solid #647578}#world-menu button{padding:12px;margin:4px}dialog::backdrop{background:#071619bb}

.tech-node{height:80px}#research-panel .tech-node:hover{background:#3b5154}#research-panel .tech-node:focus-visible{outline:2px solid #efbd63}

#recipe-book{width:min(1044px,90vw);max-width:1044px;max-height:85vh;background:#1c3032;color:#dce6e4}#recipe-book .research-head p{color:#a5baba;font-size:12px}#recipe-search{box-sizing:border-box;width:100%;padding:12px;background:#253a3e;border:1px solid #526970;border-radius:5px;color:#e2ece7;margin:4px 0 16px}#recipe-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.recipe-card{padding:14px;background:#263b40;border:1px solid #4e656b;border-radius:7px}.recipe-title{display:flex;gap:10px;align-items:center}.recipe-title canvas{width:48px;height:48px;image-rendering:pixelated;flex-shrink:0}.recipe-title h3{margin:0;font-size:15px}.recipe-machine{color:#b5c8cc;font-size:11px;margin:4px 0 16px}.recipe-items{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:8px 0;font-size:12px}.recipe-items .eyebrow{width:27px;color:#efbd63}.recipe-items canvas{image-rendering:pixelated;width:20px;height:20px}.recipe-stats{font-size:12px;color:#edc985;border-top:1px solid #43575c;padding-top:10px}.recipe-live{color:#a3d5b0}.recipe-card small{font-size:10px}@media(max-width:850px){#recipe-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

#research-graph{background-image:radial-gradient(#859b8b24 1px,transparent 1px);background-size:16px 16px}.tech-node{height:92px;text-align:left;padding:12px 13px;display:flex;flex-direction:column;gap:9px;background:linear-gradient(135deg,#2b4146,#25383d);box-shadow:0 5px 0 #101f2444;border-color:#4d656c}.tech-node strong{font-size:12px;color:#e1ebe8}.tech-tier{font-size:8px;letter-spacing:1px;color:#99aeb0}.tech-cost{border-top:1px solid #52665d55;padding-top:7px;color:#efbd63;font-size:11px;display:flex;justify-content:space-between}.tech-cost small{font-size:8px;color:#9bb3b5}.tech-node.done{border-color:#cda75d;background:linear-gradient(135deg,#35463e,#263b3c)}.tech-node.done .tech-tier{color:#d4c796}.tech-node.available{border-color:#8eafac}#research-detail{width:min(580px,85vw);background:#20363a;color:#dfe9e5;border:1px solid #647b78}#tech-info{padding:8px 10px}#tech-info p{font-size:12px;line-height:1.7;color:#acbec0}.tech-detail-meta{display:flex;justify-content:space-between;gap:12px;border-block:1px solid #4f6867;padding:15px 0}.tech-detail-meta span{font-size:9px;letter-spacing:.6px;color:#adbdba}.tech-detail-meta strong{display:block;font-size:16px;color:#efbf69;margin-top:8px}.tech-unlock{padding:14px;margin:9px 0;background:#2a4146;border:1px solid #536b70;border-radius:5px;display:flex;flex-direction:column;gap:8px}.tech-unlock span{font-size:11px;color:#efc984}.tech-unlock small{font-size:11px;color:#b3c6c8}#tech-purchase{padding:13px 18px;background:#e9ba65;color:#253638;border:0;border-radius:5px;margin:14px 10px}#tech-purchase:disabled{opacity:.5}

#demolition-confirm{width:min(460px,85vw);background:#263337;color:#e5e5de;border:1px solid #b47a64}#demolition-count{font-size:22px;color:#f6c4a4}#demolition-breakdown{padding:14px;border-block:1px solid #846452;color:#edb99d}.demolition-actions{display:flex;gap:12px;margin-top:22px}.demolition-actions button{padding:12px 16px;border:1px solid #657777;border-radius:5px;background:#31484b;color:#e0e9e2}#demolition-accept{background:#a55440;border-color:#d68463}

#machine-recipe{display:block;width:100%;margin:10px 0;padding:9px;background:#2b4246;border:1px solid #6a7d7c;color:#e5ece5}#inspector progress{width:100%;accent-color:#eebe6b}.machine-recipe-info{color:#edc581!important;font-size:12px}#inspector{max-height:calc(100vh - 220px);overflow:auto}

#sorter-filter{display:block;width:100%;margin-top:10px;padding:10px;background:#2b4246;color:#e5ece5;border:1px solid #78908e}
#inspector .belt-directions button{margin:3px;padding:9px 11px}#inspector .belt-directions button.active{background:#edbd66;color:#182e31}.power-readout{border-left:2px solid #edbd66;padding-left:10px;color:#b4d8d5}
.silo-output-label{display:block;margin:10px 0;color:#c7d8d5}.silo-output-label select{display:block;width:100%;margin-top:5px;padding:8px;background:#20363d;border:1px solid #455b61;color:#e1e8e4;border-radius:5px}
.input-slots{display:flex;gap:5px;margin:10px 0;flex-wrap:wrap}.input-slot{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #60767b;background:#182e36;border-radius:3px;color:#8ca3a3}

.research-scroll{max-height:55vh;overscroll-behavior:contain;cursor:grab}#research-graph{height:440px}.research-navigation{font-size:11px;color:#a9bdbb;padding:0 10px}

.research-tools{display:flex;gap:18px;align-items:center;padding:10px;flex-wrap:wrap}.research-tabs{display:flex;gap:8px}.research-tabs button,.layer-selector button{padding:9px 16px;background:#2a4146;color:#d7e5e2;border:1px solid #597176;border-radius:5px}.research-tabs button.active,.layer-selector button.active{background:#efbc62;color:#223739}.research-tools input{flex:1;min-width:220px;background:#263d42;color:#e1ece9;border:1px solid #587176;padding:11px;border-radius:5px}#research-tier-status{font-size:12px;color:#a8c3bd;padding:0 10px;line-height:1.6}.tech-references{position:absolute;width:195px;font-size:9px;line-height:1.5;color:#99c2bd}.layer-selector{position:fixed;bottom:196px;left:50%;transform:translateX(-50%);display:flex;gap:6px;background:#193438ee;padding:5px;border-radius:6px;z-index:4}.material-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:240px;overflow:auto}.material-filter-grid label{font-size:11px;display:flex;gap:5px;align-items:center}.recipe-filters{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.recipe-filters select,#inspector select,#inspector input[type=number]{background:#2a4246;color:#dce9e4;padding:8px;border:1px solid #607c7e;max-width:100%}.recipe-used-in{font-size:11px;color:#97bdb6}#statistics-panel{width:min(950px,90vw);max-height:80vh;overflow:auto;background:#20363a;color:#dfebe7}#statistics-panel table{width:100%;border-collapse:collapse;font-size:12px}#statistics-panel th,#statistics-panel td{padding:9px;border-bottom:1px solid #4b6464;text-align:left}.warning-row{display:block;width:100%;padding:8px;text-align:left;background:#2b4244;color:#efc87f;border:1px solid #617675;margin:4px 0}#statistics-panel>button{padding:12px;margin-top:14px}#inspector{max-height:72vh;overflow:auto}#inspector button{margin:5px 0;padding:8px}#inspector label{display:block;margin:8px 0}.research-scroll{max-height:48vh}#research-panel{max-height:90vh;overflow:hidden}

.at-home #transport-layers {display:none}
.area-actions{width:min(440px,90vw)}.area-actions button{display:block;width:100%;padding:13px;margin:9px 0;text-align:left}.area-actions button:disabled{opacity:.45;cursor:default}.area-actions p{color:var(--muted);line-height:1.6}
#statistics-panel{width:1120px;max-width:calc(100vw - 48px);max-height:82vh;padding:28px}#statistics-panel h2{margin-top:0}.statistics-balances{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.statistics-balance{background:#2a4246;border:1px solid #597176;border-radius:7px;padding:20px;min-width:0}.statistics-balance span{display:block;color:#a4beb9;font-size:12px;margin-bottom:12px}.statistics-balance strong{display:block;font-size:clamp(18px,2vw,26px);color:#f5c36b;overflow-wrap:normal;white-space:nowrap;font-variant-numeric:tabular-nums}.statistics-balance small{display:block;color:#a4beb9;font-size:12px;margin-top:8px}@media(max-width:950px){.statistics-balances{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#statistics-panel{max-width:calc(100vw - 24px);padding:18px}.statistics-balances{gap:10px}.statistics-balance{padding:12px}.statistics-balance strong{font-size:17px}}
.input-slot.material-stack { width: auto; min-width: 56px; height: auto; padding: 5px 8px; display: flex; align-items: center; gap: 5px; }
.material-stack strong { font-size: 11px; color: #f2ce87; }
#recipe-detail{width:min(720px,90vw);max-height:85vh} .recipe-detail-body{max-height:60vh;overflow:auto;padding:10px 0}.recipe-chain-link{display:block;margin:8px 0;padding:12px;width:100%;text-align:left}.recipe-card[role=button]{cursor:pointer}.recipe-card[role=button]:hover{border-color:#efbd63}
.menu-tooltip{position:fixed;z-index:10000;pointer-events:none;max-width:300px;padding:14px 16px;background:#172e35;border:1px solid #c69b50;color:#e2ece8;border-radius:6px;box-shadow:0 8px 24px #07181780;font-size:13px;line-height:1.6}.menu-tooltip.hidden{display:none}
#research-panel .research-scroll,#research-graph,#research-graph *{user-select:none;-webkit-user-select:none}#research-panel .research-scroll{touch-action:none;cursor:grab}#research-panel .research-scroll:active{cursor:grabbing}

@media(max-width:750px){.layer-selector{bottom:240px}}

/* Main menu: monochrome mission control, isolated from the factory UI. */
#home-screen{background:#08090b;color:#f0f1f4;padding:36px 5vw;overflow:auto}
#home-screen::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 76% 45%,#1a202833,transparent 48%);pointer-events:none}
.home-top,.home-layout,.home-bottom{position:relative}.menu-brand{display:flex;align-items:center;gap:12px;font:600 16px 'Space Grotesk',sans-serif;letter-spacing:4px}.menu-brand>span{color:#fff;font-size:26px;letter-spacing:0}.home-version{color:#666b75;font-size:10px;letter-spacing:2px}.home-layout{max-width:1250px;grid-template-columns:1.1fr 1fr;gap:50px}.home-copy .eyebrow{color:#8b929f;font-size:10px;letter-spacing:3px}.home-copy h1{font:500 clamp(44px,5.8vw,88px)/1.06 'Space Grotesk',sans-serif;letter-spacing:-4px;margin:25px 0}.home-copy h1 span,#world-menu h2 span{color:#9ba9be}.home-copy p{font-size:15px;color:#7b818e;line-height:1.8;margin-bottom:35px}.home-copy #play{width:200px;background:#f0f1f4;color:#111318;border-radius:3px;box-shadow:none;padding:16px 20px;font-size:15px}.home-copy #play:hover{background:#fff;transform:translateY(-2px)}.home-copy>small{color:#555c69;font-size:11px;margin-top:17px}.home-art{position:relative;width:min(36vw,460px);aspect-ratio:1;background:transparent;border:1px solid #272c35;border-radius:50%;padding:0;box-shadow:none;justify-self:center;display:grid;place-items:center}.home-art canvas{display:none}.home-bottom{color:#595f6b;font-size:9px;letter-spacing:1.6px;gap:20px}.footer-divider{margin:0 12px;color:#333944}
#world-menu{box-sizing:border-box;width:min(960px,94vw);max-width:960px;max-height:90vh;padding:32px;background:#0d0f13;color:#eceef2;border:1px solid #30343d;border-radius:12px;box-shadow:0 30px 140px #000a;font-family:'DM Sans',sans-serif}#world-menu::backdrop{background:#030406cc;backdrop-filter:blur(12px)}.world-menu-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:32px}#world-menu .eyebrow{color:#717c90;letter-spacing:2px;font-size:9px}#world-menu h2{font:500 38px 'Space Grotesk',sans-serif;letter-spacing:-1.4px;margin:8px 0}#world-menu p{font-size:12px;color:#7f8795;line-height:1.7;margin:0}#world-menu #world-menu-close{align-self:flex-start;width:34px;height:34px;padding:0;margin:0;border:1px solid #303641;background:#15181f;color:#929aa7;font-size:22px;border-radius:5px}.world-menu-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:32px}.world-library{min-width:0}.world-section-title{font-size:9px;letter-spacing:2px;color:#697384;display:flex;justify-content:space-between;margin-bottom:12px}.testing-heading{margin-top:24px}#world-list,#world-test-list{display:grid;gap:8px;margin:0}#world-menu .world-card{display:flex;align-items:center;gap:14px;text-align:left;margin:0;padding:15px;background:#14171d;border:1px solid #252a33;border-radius:6px;width:100%;color:#dfe3eb;transition:border-color .15s,background .15s}#world-menu .world-card:hover{background:#1b2029;border-color:#58647a}#world-menu .world-card:disabled{opacity:.5}.world-card-icon{display:grid;place-items:center;width:34px;height:34px;background:#202631;border:1px solid #303a4b;border-radius:5px;font-size:20px;color:#9aaec9;flex-shrink:0}.world-card-info{display:grid;gap:5px;min-width:0}.world-card-info strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.world-card-info small{font-size:10px;color:#697486}.world-card-action{font-size:10px;color:#8c98aa;margin-left:auto;white-space:nowrap}.world-create{border-left:1px solid #272c35;padding-left:32px;display:flex;flex-direction:column;align-items:flex-start}.new-world-symbol{width:44px;height:44px;border:1px dashed #404a5b;display:grid;place-items:center;font-size:25px;color:#a8b3c6;margin-bottom:24px;border-radius:8px}.world-create h3{font:500 24px 'Space Grotesk',sans-serif;margin:10px 0 12px}.world-create label{font-size:9px;letter-spacing:1.7px;color:#8a93a4;margin:30px 0 10px}#world-menu input{width:100%;box-sizing:border-box;background:#090b0f;border:1px solid #353c49;color:#eff1f5;border-radius:5px;padding:12px;font:12px 'DM Sans',sans-serif;outline:none}#world-menu input:focus{border-color:#a3b5d0}#world-menu #create-world{display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;width:100%;margin:12px 0;padding:13px 15px;border:0;border-radius:5px;background:#e7ecf5;color:#141820;font:600 12px 'DM Sans',sans-serif}#world-menu #create-world:hover{background:#fff}.world-create>small{font-size:9px;color:#5f6a7c;line-height:1.7}.world-menu-foot{display:flex;align-items:center;gap:8px;margin-top:28px;padding-top:18px;border-top:1px solid #252a33;font-size:10px;color:#8792a4}.world-menu-foot>span:last-child{margin-left:auto;color:#555f70}.menu-status-dot{width:5px;height:5px;background:#8aa1c2;border-radius:50%}#home-screen button:focus-visible,#world-menu button:focus-visible{outline:2px solid #b4c7e8;outline-offset:4px}
@media(max-width:750px){.home-layout{display:grid;grid-template-columns:1fr}.home-copy h1{font-size:56px;letter-spacing:-2px}.home-art{display:none}.home-bottom{font-size:8px;flex-wrap:wrap}.home-version{font-size:8px}.menu-brand{font-size:13px}.world-menu-layout{grid-template-columns:1fr;gap:24px}.world-create{border-left:0;border-top:1px solid #272c35;padding:24px 0 0}.new-world-symbol{display:none}.world-create label{margin-top:16px}#world-menu{padding:24px}.world-menu-foot>span:last-child{display:none}.home-top{align-items:flex-start}.world-card-action{font-size:9px}}
@media(max-height:650px) and (min-width:751px){.home-copy h1{font-size:58px}.home-art{width:300px}.home-copy p{margin-bottom:22px}}
#world-menu{scrollbar-width:thin;scrollbar-color:#343b47 #0d0f13}#world-menu #world-test-list .world-card{padding:10px 15px}#world-test-list .world-card-icon{width:28px;height:28px;font-size:17px}
@media(min-width:751px) and (max-height:800px){#world-menu{padding:24px 30px}.world-menu-head{margin-bottom:20px}#world-menu .world-card{padding:11px 15px}.world-menu-foot{margin-top:18px;padding-top:12px}.testing-heading{margin-top:18px}}
.production-tree{margin-top:28px;padding-top:22px;border-top:1px solid #516671}.production-tree-controls{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.production-tree-controls label,.production-tree-choices label{display:grid;gap:8px}.production-tree input,.production-tree select{padding:10px;border:1px solid #617784;background:#20343e;color:#edf2ec;border-radius:5px;max-width:100%}.production-tree-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.production-tree-totals>div{background:#263f48;border:1px solid #516a73;padding:12px;border-radius:6px}.production-tree-totals span,.production-tree-totals strong{display:block}.production-tree-totals span{font-size:11px;color:#a4b7bc}.production-tree-totals strong{font-size:17px;margin-top:7px}.planner-note{color:#a3b6bb;font-size:12px;line-height:1.7}.recipe-tree-branches{margin:18px 0;overflow:auto}.recipe-tree-node{margin:12px 0;padding:12px;background:#243b43;border:1px solid #4d6670;border-radius:5px;min-width:160px}.recipe-tree-node p{font-size:12px;margin:6px 0}.recipe-tree-node small{color:#f4bf62}.recipe-tree-children{margin-left:14px;padding-left:12px;border-left:1px solid #77939b}.production-tree table{width:100%;font-size:12px;border-collapse:collapse}.production-tree td,.production-tree th{padding:10px 6px;text-align:left;border-bottom:1px solid #3a535c}.production-tree td small{display:block;color:#a4b8bd;margin-top:4px}.production-tree-choices{display:grid;gap:14px}.planner-warning{color:#efbf69;font-size:12px;line-height:1.7}@media(max-width:600px){.production-tree-totals{grid-template-columns:1fr}.production-tree table{font-size:10px}.recipe-tree-children{margin-left:4px;padding-left:7px}}

.planner-open-link{display:inline-block;padding:12px 18px;border:1px solid #b18b45;border-radius:6px;color:#ffce77;text-decoration:none;background:#233944;margin:8px 0}#save-status{font-size:10px;color:#b6cbd0;max-width:110px}
/* Optional factory coaching stays separate from construction controls. */
.tutorial-panel{position:fixed;z-index:20;right:22px;top:88px;width:320px;max-width:calc(100vw - 16px);background:#142b32f2;border:1px solid #52676d;border-radius:9px;color:#e1eeeb;box-shadow:0 12px 35px #06191c55;font-size:13px}
.tutorial-panel[hidden]{display:none}.tutorial-drag{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;cursor:move;touch-action:none;user-select:none;border-bottom:1px solid #385159}.tutorial-drag strong{font-size:12px}.tutorial-content{padding:15px}.tutorial-content h3{font-size:17px;margin:10px 0}.tutorial-content p{line-height:1.55;margin:10px 0}.tutorial-content small{color:#f9c768}.tutorial-hint{font-size:11px;color:#b6c9c8}.tutorial-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.tutorial-actions button{padding:7px 9px;font-size:11px}.tutorial-highlight{outline:2px solid #abe7eb!important;outline-offset:3px}.guides-library{width:min(900px,92vw);max-height:85vh;overflow:auto}.guide-card{padding:18px;border:1px solid #4a6269;border-radius:7px;margin:14px 0}.guide-card h3{margin:0 0 8px}.guide-card small{display:block;margin-bottom:12px;text-transform:capitalize;color:#f9c768}.guide-card button{margin-right:8px}.guide-layout-scroll{max-height:440px;overflow:auto;background:#75b878;border:1px solid #64846a;border-radius:6px}.guide-layout-scroll canvas{display:block;max-width:100%;height:auto}.guides-library p{line-height:1.5}.guides-library a{display:inline-block;color:#b5e9ef;margin:16px 0}
@media(max-width:1400px){header{gap:12px;padding:0 20px}.brand small,.phase{display:none!important}.balances{gap:14px;flex-shrink:0}.balances>span{white-space:nowrap}.actions{gap:6px}.actions select{max-width:220px}#save-status{width:80px;flex-shrink:0}}.tutorial-content{max-height:calc(100vh - 160px);overflow:auto}@media(max-width:750px){.tutorial-panel{top:78px;right:8px;width:280px}.actions{gap:3px}.actions button{padding:6px}.actions #save-status{display:none}}
.guides-library{max-width:92vw}.guides-library .research-head{position:sticky;top:-28px;background:#1a2b30;z-index:1;padding:10px 0}.guide-layout-scroll canvas{image-rendering:auto}
.guides-library .research-head{top:0}
#research-panel{width:min(1500px,96vw);height:90vh;max-height:94vh;padding:22px;background:#162a30}
#research-panel[open]{display:flex;flex-direction:column;overflow:hidden}
#research-panel .research-head h2{font-size:25px;margin:6px 0}
#research-panel .research-tools{padding:12px 0;border-bottom:1px solid #395158;gap:12px}
.research-workspace{display:flex;flex:1 1 auto;height:auto;min-height:0;gap:18px}
.research-state-legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0 0 10px}.research-state-key{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #405960;border-radius:3px;background:#1a3036;color:#b9ceca;font-size:10px;line-height:1.2}.research-state-key strong{font-size:11px;color:#b9ceca}.research-state-key[data-state=researched]{background:#263f3d;border-color:#72998a;color:#c5e0d3}.research-state-key[data-state=researched] strong{color:#a7d0b8}.research-state-key[data-state=affordable]{background:#3b3c31;border-color:#dfb56c;color:#f0d192}.research-state-key[data-state=affordable] strong{color:#efc77c}.research-state-key[data-state=available]{background:#22383f;border-color:#536d74;color:#cad9dc}.research-state-key[data-state=available] strong{color:#a9c8d4}.research-state-key[data-state=locked]{background:#1c3037;border-color:#3f555d;color:#a3b7ba}.research-state-key[data-state=locked] strong{color:#91a7ad}
#research-panel .research-scroll{flex:1;min-width:0;height:100%;max-height:none;overflow:auto;background:#12252b;border:1px solid #354d54;border-radius:7px}
#research-graph{position:relative;margin:0;min-width:0}
.research-stage{position:relative;transform-origin:0 0}
.research-band{position:absolute;left:0;background:#243b4122;border-top:1px solid #3c555b66;pointer-events:none}
.research-band>span{position:absolute;left:25px;top:8px;color:#9bbcb9;font-size:12px;letter-spacing:1px;text-transform:uppercase}
.research-wires{position:absolute;top:0;left:0;overflow:visible;pointer-events:none}
.research-wires path{stroke:#527078;stroke-width:1.5;fill:none}.research-wires path.complete{stroke:#9cb8ad}
#research-graph .tech-node{position:absolute;margin:0;text-align:left;background:#22383f;border:1px solid #536d74;border-radius:5px;padding:12px;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;box-shadow:0 2px 4px #07171b55;overflow:hidden}
#research-graph .tech-node strong{font-size:13px;line-height:1.25;color:#d9e8e5}
#research-graph .tech-tier{font-size:9px;letter-spacing:.5px;color:#9eb7b9}
#research-graph .tech-cost{font-size:11px;color:#c9d9d5}
#research-graph .tech-node[data-state=researched]{background:#263f3d;border-color:#72998a}
#research-graph .tech-node[data-state=affordable]{border-color:#dfb56c;background:#3b3c31}
#research-graph .tech-node[data-state=affordable] .tech-tier{color:#efc77c}
#research-graph .tech-node[data-state=locked]{background:#1c3037;border-color:#3f555d}
#research-graph .tech-node[data-state=locked] strong{color:#a3b7ba}
#research-graph .tech-node.selected{outline:2px solid #edc277;outline-offset:3px}
#research-graph .tech-node.search-muted{opacity:.28}
.research-view-tools{display:flex;align-items:center;gap:5px}.research-view-tools button{font-size:11px;padding:8px;background:#263d43;border:1px solid #536d74;color:#d7e7e2;border-radius:4px}.research-view-tools span{min-width:40px;font-size:11px;color:#a8c5bf}
#research-detail.research-detail-pane{display:block;position:static;width:320px;min-width:280px;max-height:none;overflow:auto;padding:16px;background:#20353b;border:1px solid #455e65;border-radius:7px;box-sizing:border-box}
#research-detail[hidden]{display:none}.research-detail-pane .research-head{padding:0}.research-detail-pane #tech-title{font-size:21px}.research-detail-pane #tech-info{padding:0;font-size:12px;line-height:1.6}.research-detail-pane .tech-detail-meta{display:flex;flex-wrap:wrap;gap:12px}.research-detail-pane .tech-detail-meta>span{width:100%}.research-detail-pane .tech-unlock{margin:9px 0;padding:10px}.research-detail-pane #tech-purchase{margin:12px 0;width:100%;padding:12px;font-weight:600}
@media(max-width:850px){.research-workspace{gap:8px}#research-detail.research-detail-pane{width:240px;min-width:210px;padding:12px}}
@media(max-width:700px){#research-panel{width:96vw;padding:12px}.research-workspace{flex-direction:column;gap:8px}.research-view-tools{margin-left:auto;flex-wrap:wrap}.research-state-legend{gap:4px;padding-bottom:7px}.research-state-key{font-size:9px;padding:4px 6px}#research-panel .research-scroll{flex:1 1 auto;min-height:120px}#research-detail.research-detail-pane{width:100%;min-width:0;max-height:24vh;padding:10px;flex:0 1 auto}.research-detail-pane .research-head{top:0}}
#inspector.industrial-inspector{width:360px;padding:20px;background:#1b3037;border:1px solid #49636b;border-radius:8px;max-height:80vh;box-sizing:border-box}
.industrial-head{position:relative;padding-right:25px}.industrial-head h2{font-size:23px;margin:8px 0}.industrial-head>button{position:absolute;right:0;top:0;font-size:22px;border:0;background:none;color:#c8dcd7}.industrial-description{font-size:12px;line-height:1.6;color:#aec7c6}.industrial-status{padding:10px 12px;border-left:3px solid #8ab6a4;background:#29423f;color:#c7e2d8;font-size:12px}.industrial-status[data-warning=true]{border-color:#edbb69;background:#453d2c;color:#efd09b}.industrial-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.industrial-metrics>div{padding:9px;background:#213a41;border:1px solid #3e5860;border-radius:4px}.industrial-metrics span{display:block;font-size:10px;color:#a0bebb}.industrial-metrics strong{display:block;font-size:13px;color:#e1e9e3;margin-top:5px}.industrial-section{margin:14px 0;padding-top:12px;border-top:1px solid #3b555d}.industrial-section h3{font-size:11px;color:#c8dcd4;letter-spacing:1px;text-transform:uppercase;margin:0 0 10px}.industrial-section p{font-size:12px;line-height:1.6}.industrial-section progress{width:100%;height:8px;accent-color:#edbb69}.industrial-section label{font-size:12px}.industrial-section select{display:block;width:100%;margin-top:7px}.industrial-stock{display:flex;flex-direction:column;gap:6px}.industrial-stock>div{display:flex;align-items:center;gap:9px;padding:6px;background:#213a41;font-size:11px}.industrial-stock strong{margin-left:auto}.industrial-fluid{display:flex;flex-direction:column;gap:5px;margin:7px 0;padding:9px;background:#213a41;border-left:2px solid #84bdc8}.industrial-fluid span{font-size:10px;color:#a9c5c2}.industrial-fluid strong{font-size:12px}.industrial-alert{color:#edbc75}.industrial-location{font-size:10px;color:#93afad}

.build-search-row{display:flex;gap:8px;padding:12px 16px}.build-search-row input{min-width:0;flex:1}.quest-card{border:1px solid #496a79;background:#1c303c;border-radius:8px;padding:16px;margin:12px 0}.quest-card progress{width:100%;accent-color:#efb651}#quests-panel{width:min(850px,90vw);max-height:85vh;overflow:auto}#quests-panel>div:first-child{display:flex;justify-content:space-between;align-items:center}#pinned-quest{position:fixed;right:18px;top:95px;max-width:300px;padding:12px;background:#15262fee;border:1px solid #496a79;border-radius:6px;pointer-events:none}#pinned-quest strong,#pinned-quest span{display:block;margin:4px 0}.recipe-filters input{width:150px}

#pinned-quest{max-height:calc(100vh - 120px);overflow:auto}#pinned-quest small{color:#a9c9d5}#pinned-quest button{pointer-events:auto;margin-top:8px}

#activity-feed{position:fixed;right:18px;bottom:54px;width:270px;max-width:calc(100vw - 36px);z-index:5;background:#15262fed;border:1px solid #496a79;border-radius:6px;padding:9px 11px;color:#dce8e8;font-size:11px;pointer-events:none;box-sizing:border-box}.activity-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.activity-head>strong{font-size:11px;color:#a9c9d5}.activity-head button{pointer-events:auto;padding:0 6px;min-width:23px;height:22px;font-size:15px;border:1px solid #496a79;background:#203740;color:#dce8e8;border-radius:3px;line-height:18px}.activity-head button:focus-visible{outline:2px solid #efb651;outline-offset:2px}.activity-row{display:flex;justify-content:space-between;gap:10px;padding:4px 0}.activity-row>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.activity-row>strong{flex-shrink:0;color:#efb651;font-weight:500}.activity-list>span{color:#91acb6;font-size:10px}#activity-feed.compact{width:220px;padding:6px 9px}#activity-feed.compact .activity-head{margin-bottom:1px}.at-home #activity-feed{display:none}@media(max-height:600px){#activity-feed{bottom:42px}}
@media(max-width:750px){body:not(.at-home)>header{height:104px;padding:6px 12px;gap:4px 8px;flex-wrap:wrap;align-content:center;justify-content:flex-start;overflow:visible}.brand{order:1;flex:0 0 auto}.balances{order:2;flex:0 0 auto;padding:0 2px}.session-context{order:3;flex:0 1 116px;min-width:106px}.actions{order:4;flex:0 0 auto;margin-left:auto}.top-navigation{order:5;flex:1 0 100%;width:100%;min-width:0;justify-content:space-between}.top-navigation button{flex:1 1 0;min-width:0;padding:6px 4px;font-size:10px}#build{top:112px}}

#pinned-quest{z-index:1}#inspector{z-index:30}
#pinned-quest.space-tight{padding:8px 10px}#pinned-quest.space-tight span{display:none}#pinned-quest.space-tight strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#pinned-quest.space-tight button{margin-top:2px;padding:5px 8px;font-size:10px}

/* Menu-only industrial presentation; in-game panels keep their approved layout. */
#home-screen{background:#090c12;padding:28px 4vw;overflow:auto}#home-screen .home-layout{grid-template-columns:minmax(300px,.85fr) minmax(460px,1.35fr);gap:42px;max-width:1440px;margin:auto;width:100%;padding:36px 0}#home-screen .home-copy h1{font-size:clamp(44px,4.4vw,72px);line-height:1.04;letter-spacing:-2.7px;margin:18px 0 24px;color:#f1f4f9}#home-screen .home-copy p{font-size:15px;color:#b0bac9;line-height:1.7;margin-bottom:26px}#home-screen .eyebrow{color:#c49255;letter-spacing:2px;font-size:10px}#home-screen .home-top{padding-bottom:20px;border-bottom:1px solid #29313d}#home-screen .home-version{color:#91a0b4}#home-screen .home-copy #play{width:240px;padding:16px 20px;background:#e4a35e;color:#111820;border:1px solid #f1bd80;border-radius:4px;box-shadow:inset 0 1px #ffe1bb;transition:background .15s,transform .15s,box-shadow .15s;font-size:16px}#home-screen .home-copy #play:hover{background:#efb477;transform:translateY(-2px);box-shadow:0 4px 0 #825a33}#home-screen .home-copy #play:active{transform:translateY(0)}#home-screen #home-world{color:#9ca9bc;font-size:11px;margin:13px 0 25px}.menu-industries{display:flex;gap:16px;flex-wrap:wrap;color:#8b9aaf;font-size:9px;letter-spacing:1px;border-top:1px solid #29313d;padding-top:18px}#home-screen .home-art{padding:0;background:#151e28;border:1px solid #394651;border-radius:6px;box-shadow:0 14px 35px #0006;position:relative;overflow:hidden;min-width:0}#home-screen .home-art canvas{display:block;width:100%;height:auto;border-radius:0;position:static}#home-screen .home-art .factory-preview-head,#home-screen .home-art .factory-preview-foot{display:flex;justify-content:space-between;gap:12px;padding:15px 18px;font-size:10px;color:#c7d3e0;letter-spacing:1px;border-radius:0;background:#121a24}.factory-preview-head{border-bottom:1px solid #394651}.factory-preview-head span:last-child{color:#91a5b6;font-size:8px}.factory-preview-foot{border-top:1px solid #394651}.factory-preview-foot small{color:#91a5b6!important;letter-spacing:0!important}#home-screen .home-bottom{color:#a7b2c2;padding-top:20px;border-top:1px solid #29313d}
#world-menu{width:min(1120px,calc(100vw - 48px));max-width:1120px;max-height:90vh;padding:28px 32px;box-sizing:border-box;background:#10151e;color:#e7eef5;border:1px solid #3b4657;border-radius:8px}#world-menu .world-menu-head{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #2f3947}#world-menu .world-menu-head h2{font-size:35px;letter-spacing:-1px;margin:8px 0 10px}#world-menu .world-menu-head p{font-size:13px;color:#aebbd0}#world-menu .world-menu-layout{grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr);gap:28px;align-items:start}#world-menu .world-library{min-width:0;max-height:calc(90vh - 225px);overflow-y:auto;padding-right:9px;scrollbar-color:#536377 #151e29}#world-menu .world-section-title{color:#c3cfdf;font-size:10px;letter-spacing:1.8px;margin-bottom:12px}#world-menu .world-section-title span{color:#ecb16c}.world-card{position:relative}#world-menu .world-card{display:block;padding:0;margin:0 0 10px;border:1px solid #364151;border-left:3px solid #c49255;border-radius:5px;background:#18212e;transition:border-color .15s,background .15s}#world-menu .world-card:hover{border-color:#637b98;background:#202d3e}#world-menu .world-card-sandbox{border-left-color:#82bac3}#world-menu .world-card-demo{border-left-color:#899bc1}#world-menu .world-card-open{display:flex;width:100%;align-items:center;gap:14px;text-align:left;padding:14px 42px 14px 12px;color:inherit;background:none;border:0;box-sizing:border-box;cursor:pointer;border-radius:3px}#world-menu canvas.world-card-icon{width:56px;height:56px;min-width:56px;background:none;border:0;padding:0;object-fit:contain}#world-menu .world-card-info{display:flex;flex-direction:column;min-width:0;gap:6px;flex:1}#world-menu .world-card-info strong{font-size:17px;line-height:1.25;color:#f0f4fa;overflow-wrap:anywhere}#world-menu .world-card-info>small{color:#a5b8ce;font-size:8px;letter-spacing:1px;margin:0}#world-menu .world-card-stats{font-size:11px;color:#c0ccd9;line-height:1.5}#world-menu .world-card-date{font-size:9px!important;color:#96a5b9!important;letter-spacing:0!important}#world-menu .world-card-action{color:#f0bb7c;font-size:12px;white-space:nowrap}#world-menu .world-card-more{position:absolute;right:7px;top:8px;background:none;border:0;color:#bac9da;padding:1px 6px;font-size:23px;cursor:pointer}#world-menu .world-card-more:hover{background:#344253}#world-menu .world-card-menu{position:absolute;right:8px;top:38px;z-index:2;background:#121b27;border:1px solid #64738a;padding:6px;border-radius:4px}#world-menu .world-card-menu[hidden]{display:none}#world-menu .world-card-menu button{padding:8px 12px;background:#27374b;border:0;color:#e7eef5;cursor:pointer}#world-menu .world-create{padding:20px;border:1px solid #3d4858;background:#18212c;border-radius:5px}#world-menu .world-create h3{font-size:26px;margin:9px 0 14px;letter-spacing:-.6px}#world-menu .world-create p{font-size:12px;line-height:1.7;color:#b2bfd0}.world-create-illustration{padding:10px 0 14px;border-bottom:1px solid #364351;margin-bottom:20px}.world-create-illustration canvas{display:block;position:static;width:192px;max-width:100%;height:auto}.world-create-illustration span{display:block;color:#a0b1c7;font-size:8px;letter-spacing:1.4px;margin-top:10px}#world-menu .world-create label{color:#c5d2e2;font-size:9px;margin:20px 0 9px}#world-menu #world-name{padding:13px 12px;font-size:14px;background:#0c1420;border:1px solid #5c6e86;transition:border-color .15s}#world-menu #world-name:focus{outline:2px solid #bd9664;outline-offset:2px}#world-menu #create-world{font-size:13px;padding:14px;background:#e0a262;color:#161c24;border:1px solid #efbf89}#world-menu #create-world:hover{background:#efb77f}#world-menu .world-create>small{color:#a8b6c8;font-size:10px}#world-menu .world-menu-foot{margin-top:20px;color:#abb9cc;font-size:10px}#world-menu .world-menu-foot>span:last-child{color:#99a7bb}#world-menu button:focus-visible{outline:2px solid #efba7a;outline-offset:3px}
@media(max-width:1000px){#home-screen .home-layout{gap:24px;grid-template-columns:minmax(260px,.9fr) minmax(340px,1.1fr)}#home-screen .home-copy h1{font-size:46px}.factory-preview-head span:last-child{display:none}#world-menu{padding:24px}#world-menu .world-menu-layout{gap:18px}.world-card-action{display:none}}@media(max-width:750px){#home-screen{padding:20px;overflow:auto}#home-screen .home-layout{display:flex;flex-direction:column;align-items:stretch;padding:28px 0;gap:28px}#home-screen .home-copy h1{font-size:46px}#home-screen .home-art{width:100%;max-width:640px;box-sizing:border-box}#home-screen .home-bottom{gap:14px;flex-wrap:wrap;font-size:8px}#world-menu{width:calc(100vw - 20px);padding:18px;max-height:94vh}#world-menu .world-menu-layout{display:flex;flex-direction:column;gap:20px}#world-menu .world-library{width:100%;max-height:42vh;padding-right:5px;box-sizing:border-box}#world-menu .world-create{width:100%;box-sizing:border-box}#world-menu .world-menu-head h2{font-size:28px}#world-menu .world-card-open{gap:8px;padding:12px 36px 12px 8px}#world-menu .world-card-info strong{font-size:15px}#world-menu .world-menu-foot{flex-wrap:wrap;gap:8px}.world-create-illustration{display:flex;align-items:center;gap:12px}.world-create-illustration canvas{width:125px}.world-create-illustration span{line-height:1.6}#world-menu .world-menu-foot>span:last-child{margin-left:0}}@media(prefers-reduced-motion:reduce){#home-screen *,#world-menu *{transition:none!important;transform:none!important}}

#world-menu canvas.world-card-icon{position:static;inset:auto;display:block}

#controls-help{width:min(780px,calc(100vw - 32px));max-width:none;max-height:min(82vh,720px);overflow:auto;padding:24px;background:#121d22;color:#e7ede8;border-color:#43565b;border-radius:9px;box-shadow:0 24px 80px #0008}
.controls-help-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:16px;border-bottom:1px solid #34474c}
.controls-help-head h2{margin:6px 0;font:600 25px 'Space Grotesk',sans-serif;letter-spacing:-.4px}
.controls-help-head p{margin:0;color:#a5b6b7;font-size:12px}
#controls-help-close{width:34px;height:34px;padding:0;margin:0;font-size:23px;color:#b2c0bf;background:#1b2b30;border-color:#3b4e53}
.controls-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.controls-help-card{min-width:0;padding:13px;background:#192a30;border:1px solid #34494e;border-radius:6px}
.controls-help-card h3{margin:0 0 10px;color:#e6bd78;font:600 12px 'DM Sans',sans-serif;letter-spacing:.7px;text-transform:uppercase}
.controls-help-list{display:grid;grid-template-columns:minmax(84px,auto) minmax(0,1fr);align-items:center;column-gap:12px;row-gap:9px;margin:0}
.controls-help-list dt{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.controls-help-list dd{margin:0;color:#c0cece;font-size:11px;line-height:1.45}
.controls-help-list kbd,.controls-help-foot kbd{display:inline-block;min-width:22px;padding:3px 6px;border:1px solid #50656a;border-bottom-width:2px;border-radius:4px;background:#22363c;color:#f0f2e9;font:600 10px 'DM Sans',sans-serif;text-align:center;white-space:nowrap}
.controls-help-note{margin:11px 0 0;padding-top:9px;border-top:1px solid #34494e;color:#9fb3b3;font-size:10px;line-height:1.5}
.controls-help-foot{margin:14px 0 0;color:#96a9aa;font-size:10px;line-height:1.6}
#controls-help button:focus-visible{outline-color:#eabb68;outline-offset:3px}
@media(max-width:560px){#controls-help{padding:18px}#controls-help .controls-help-head h2{font-size:21px}.controls-help-grid{grid-template-columns:1fr;gap:8px}.controls-help-card{padding:11px}.controls-help-list{grid-template-columns:90px minmax(0,1fr)}}
#controls-help{max-height:min(90vh,720px)}

/* Focused home-screen hierarchy: game identity first, factory preview second. */
#home-screen{background:#0d1218;padding:28px clamp(22px,5vw,76px);color:#f1f4f7}
#home-screen::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 76% 48%,#26354430,transparent 48%),linear-gradient(120deg,#12191f66,transparent 48%)}
#home-screen .home-top{padding:0 0 18px;border-bottom:1px solid #303945}
#home-screen .menu-brand{font-size:15px;letter-spacing:3px;color:#e8edf3}
#home-screen .menu-brand>span{color:#e3a260}
#home-screen .home-version{color:#a4afbd;letter-spacing:1.5px;font-variant-numeric:tabular-nums}
#home-screen .home-layout{max-width:1480px;grid-template-columns:minmax(340px,.92fr) minmax(440px,1.22fr);gap:clamp(32px,5vw,80px);padding:clamp(28px,5vh,64px) 0;}
#home-screen .home-copy{align-self:center;max-width:560px}
#home-screen .home-copy h1{font:600 clamp(60px,6.5vw,96px)/.98 'Space Grotesk',sans-serif;letter-spacing:-4.8px;margin:0 0 20px;color:#f1f4f7}
#home-screen .home-copy p.home-subtitle{font-size:clamp(16px,1.5vw,20px);color:#b7c1ce;line-height:1.5;margin:0 0 34px;letter-spacing:.1px}
#home-screen .home-copy #play{width:min(260px,100%);min-height:58px;padding:15px 20px;background:#e5a363;color:#15191e;border:1px solid #f0bd86;border-radius:4px;box-shadow:inset 0 1px #ffe1bd;transition:background .16s,transform .16s,box-shadow .16s;font-size:16px}
#home-screen .home-copy #play:hover{background:#f0b77d;transform:translateY(-2px);box-shadow:0 4px 0 #805d3a}
#home-screen .home-copy #play:active{transform:translateY(0);box-shadow:inset 0 2px 4px #8b5c36}
#home-screen #home-world{display:block;color:#a3afbd;font-size:11px;margin:16px 0 7px}
#home-screen .home-settings{border:0;border-radius:3px;background:transparent;padding:7px 0;color:#b5c0ce;font-size:12px;text-decoration:underline;text-decoration-color:#596574;text-underline-offset:4px;transition:color .15s,text-decoration-color .15s}
#home-screen .home-settings:hover{color:#f1c08d;text-decoration-color:#f1c08d;background:transparent}
#home-screen .home-art{width:100%;max-width:none;aspect-ratio:auto;justify-self:stretch;align-self:center;background:#121a23;border:1px solid #3a4653;border-radius:6px;box-shadow:0 22px 60px #0007;overflow:hidden;transform:none;display:block}
#home-screen .home-art canvas{display:block;width:100%;height:auto;image-rendering:pixelated}
#home-screen .home-art .factory-preview-head,#home-screen .home-art .factory-preview-foot{min-height:42px;padding:12px 16px;background:#121922;border-color:#303b48;color:#d5dce4;font-size:9px;letter-spacing:1.2px}
#home-screen .home-art .factory-preview-head span:last-child{font-size:8px;color:#aab8c6}
#home-screen .home-art .factory-preview-foot small{font-size:9px;color:#9aa8b7!important}
#home-screen .home-bottom{padding-top:14px;border-top:1px solid #303945;color:#a1adba;font-size:9px;letter-spacing:.7px}
#home-screen .footer-divider{color:#d39a60;margin:0 8px}
@media(max-width:1000px){#home-screen .home-layout{grid-template-columns:minmax(290px,.9fr) minmax(340px,1.1fr);gap:28px}#home-screen .home-copy h1{font-size:clamp(56px,7vw,76px)}#home-screen .home-art .factory-preview-head span:last-child{display:none}}
@media(max-width:750px){#home-screen{padding:20px 18px}#home-screen .home-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;padding:28px 0;align-content:center}#home-screen .home-copy{max-width:640px}#home-screen .home-copy h1{font-size:clamp(52px,13vw,76px);letter-spacing:-3px;margin-bottom:12px}#home-screen .home-copy p.home-subtitle{font-size:16px;margin-bottom:20px}#home-screen .home-copy #play{min-height:52px;width:min(240px,100%)}#home-screen .home-art{display:block;width:100%;max-width:640px;justify-self:center}#home-screen .home-bottom{gap:8px 16px;flex-wrap:wrap;font-size:8px}}
@media(max-height:650px) and (min-width:751px){#home-screen{padding-top:18px;padding-bottom:18px}#home-screen .home-layout{padding:20px 0;gap:36px}#home-screen .home-copy h1{font-size:clamp(54px,6vw,78px);margin-bottom:12px}#home-screen .home-copy p.home-subtitle{margin-bottom:20px}#home-screen .home-art .factory-preview-head,#home-screen .home-art .factory-preview-foot{min-height:34px;padding:8px 14px}}
@media(prefers-reduced-motion:reduce){#home-screen #play,#home-screen .home-settings{transition:none}}

#world-menu{overflow:auto}#home-screen .home-art::before,#home-screen .home-art::after{content:none;display:none}

.industrial-requirements{display:grid;gap:5px;margin:9px 0}.industrial-requirement{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 8px;background:#182b31;border:1px solid #334c53;border-radius:4px;font-size:11px}.industrial-requirement>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b9ccca}.industrial-requirement strong{font-size:10px;font-variant-numeric:tabular-nums;color:#d8e5df}.industrial-requirement[data-ready=true]{border-color:#44665b;background:#1d332e}.industrial-requirement[data-ready=true] .requirement-mark{color:#93c8a7}.industrial-requirement[data-ready=false] .requirement-mark{color:#edbd66}

/* In-game top bar: context first, grouped navigation, compact utilities. */
body:not(.at-home)>header{
  height:68px; padding:0 22px; gap:clamp(12px,1.5vw,24px);
  justify-content:flex-start; background:#142126f5;
}
.brand{flex:0 0 auto;gap:9px;font-size:21px;letter-spacing:2.5px}
.brand-icon{font-size:29px}
.brand-name{display:flex;align-items:center;gap:10px}
.brand-name small{display:block;font:8px 'DM Sans',sans-serif;letter-spacing:1.5px;color:var(--muted);line-height:1.4;max-width:78px}
.balances{flex:0 1 auto;gap:17px;padding:0 17px;border-left:1px solid #35474b;border-right:1px solid #35474b}
.balances>span{gap:6px}
.balances b{font-size:16px;font-variant-numeric:tabular-nums}
.balances i{font-size:14px}
.resource-rp small{font-size:9px;letter-spacing:.7px}
.phase{padding-left:16px;font-size:9px;letter-spacing:1.2px;white-space:nowrap}
.phase-title{color:#9dceb1}
.phase em{font-size:10px}
.session-context{display:flex;flex:0 1 166px;min-width:112px;flex-direction:column;gap:3px;color:#82979b;font-size:8px;letter-spacing:1.2px}
.session-context select{width:100%;min-width:0;border:0;border-left:2px solid var(--accent);border-radius:0;background:#1b2a2f;padding:5px 24px 5px 9px;color:#e5ece8;font:600 12px 'DM Sans',sans-serif;letter-spacing:0}
.top-navigation{display:flex;align-items:center;flex:0 0 auto;gap:2px;padding:3px;background:#101b1f;border:1px solid #2d3d42;border-radius:7px}
.top-navigation button{min-width:78px;padding:7px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#a6b5b6;font-size:11px;transition:background .15s,border-color .15s,color .15s}
.top-navigation button:hover{border-color:#516166;background:#23343a;color:#f0f3ee}
.top-navigation button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;z-index:1}
.top-navigation button.active,.top-navigation button[aria-current="page"]{background:#2a3a3d;border-color:#46585a;color:#f2d18f;box-shadow:inset 0 -2px #d7a94e}
.actions{margin-left:auto;flex:0 0 auto;gap:8px}
.save-tools{display:flex;align-items:center;gap:5px}
.actions button{padding:7px 10px;border-color:#34474b;background:#1d2c31;color:#bdc8c7;font-size:11px}
.actions button:hover{background:#2b3d42;color:#f2f3eb}
#settings{width:33px;height:32px;padding:0;font-size:16px;color:#d1d9d4}
#save-status{position:relative;display:inline-flex;align-items:center;gap:6px;width:auto;max-width:142px;flex:0 1 auto;padding:5px 8px;border:1px solid #35464a;border-radius:99px;background:#101b1e;color:#acb9b7;font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#save-status::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#8e9b98;box-shadow:0 0 0 3px #8e9b981c}
#save-status[data-state="saved"]{color:#b7d4bf;border-color:#38544a}
#save-status[data-state="saved"]::before{background:#8bc49d;box-shadow:0 0 0 3px #8bc49d20}
#save-status[data-state="saving"]{color:#e1c583;border-color:#675b3e}
#save-status[data-state="saving"]::before{background:#eabb68;box-shadow:0 0 0 3px #eabb6820}
#save-status[data-state="failed"]{color:#efaaa0;border-color:#70443e}
#save-status[data-state="failed"]::before{background:#e87568;box-shadow:0 0 0 3px #e8756822}
/* Keep the status dot visible while truncating long save timestamps cleanly. */
#save-status{display:block;position:relative;min-width:0;flex:0 1 142px;padding-left:20px;line-height:16px;overflow:hidden;text-overflow:ellipsis}
#save-status::before{position:absolute;left:8px;top:50%;transform:translateY(-50%)}
@media(max-width:1400px){
 body:not(.at-home)>header{gap:12px;padding:0 16px}
 .balances{gap:12px;padding:0 12px}
 .balances .phase{display:none!important}
 .session-context{flex-basis:142px}
 .top-navigation button{min-width:67px;padding:7px 8px}
 #save-status{max-width:112px}
}
@media(max-width:1050px){
 body:not(.at-home)>header{height:64px;gap:9px;padding:0 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
 body:not(.at-home)>header::-webkit-scrollbar{display:none}
 .brand-name small,.session-context>span{display:none}
 .balances{gap:10px;padding:0 10px}
 .session-context{flex:0 0 128px}
 .top-navigation button{min-width:62px;padding:7px 7px;font-size:10px}
 .actions{gap:5px}
 #save-status{max-width:88px;font-size:8px}
}
@media(max-width:750px){
 body:not(.at-home)>header{justify-content:flex-start;gap:8px}
 .brand{font-size:15px;letter-spacing:1px;gap:5px}
 .brand-icon{font-size:22px}
 .balances{border-left:0;padding-left:2px}
 .balances b{font-size:13px}
 .balances>span:nth-child(2){display:none}
 .session-context{flex-basis:116px}
 .session-context select{font-size:10px;padding-left:6px}
 .top-navigation{gap:0;padding:2px}
 .top-navigation button{min-width:54px;padding:7px 5px;font-size:9px}
 .actions #load{display:none}
 .save-tools{gap:4px}
 .actions button{padding:6px 7px;font-size:10px}
 #save-status{display:none}
 #settings{width:29px}
}
 .guide-layout-scroll img{display:block;max-width:100%;height:auto;image-rendering:pixelated;margin:0 auto}
#inspector .inspector-copy-report{display:block;width:100%;margin:14px 0 0;padding:9px 12px;text-align:center;background:#202f34;border-color:#465b61;color:#c8d6d1;font-size:11px;letter-spacing:.02em}#inspector .inspector-copy-report:hover{color:#f2c77d;border-color:#c49d61;background:#29383b}

/* Give compact screens a real second row for navigation instead of clipping tabs. */
@media(max-width:750px){
 body:not(.at-home)>header{height:104px;padding:6px 12px;gap:4px 8px;flex-wrap:wrap;align-content:center;justify-content:flex-start;overflow:visible}
 .brand{order:1;flex:0 0 auto}
 .balances{order:2;flex:0 0 auto;padding:0 2px}
 .session-context{order:3;flex:0 1 116px;min-width:106px}
 .actions{order:4;flex:0 0 auto;margin-left:auto}
 .top-navigation{order:5;flex:1 0 100%;width:100%;min-width:0;justify-content:space-between}
 .top-navigation button{flex:1 1 0;min-width:0;padding:6px 4px;font-size:10px}
 #quests-open{position:absolute;top:8px;right:calc(12px + 29px + 5px + 40px + 5px);z-index:2}
 #build{top:112px}
}

/* Tier 5 space operations visual system */
.space-ops-dialog{box-sizing:border-box;width:min(1770px,98vw);height:min(920px,96vh);max-width:none;max-height:none;padding:0;display:flex;flex-direction:column;background:#07131f;color:#e4edf5;border:1px solid #243a4d;border-radius:8px;box-shadow:0 26px 90px #000c;overflow:hidden;font-family:'DM Sans',system-ui,sans-serif}
.space-ops-dialog:not([open]){display:none}
.space-ops-dialog::backdrop{background:#02070dd9;backdrop-filter:blur(3px)}
.space-ops-head{position:relative;inset:auto;z-index:2;height:56px;min-height:56px;box-sizing:border-box;display:grid;grid-template-columns:minmax(245px,1fr) auto minmax(190px,1fr);align-items:center;gap:16px;padding:0 16px;background:#091724;border-bottom:1px solid #1c3548}
.space-brand{display:flex;align-items:center;gap:12px;min-width:0;color:#e3edf4;font-size:16px;letter-spacing:.045em}
.space-brand-mark{display:block;width:25px;height:25px;background:#f2a63c;clip-path:polygon(50% 0,100% 26%,100% 74%,50% 100%,0 74%,0 26%);position:relative}
.space-brand-mark::after{content:'';position:absolute;inset:4px;background:#101f2d;clip-path:polygon(50% 0,100% 26%,100% 74%,50% 100%,0 74%,0 26%)}
.space-view-tabs{position:relative;left:auto;top:auto;grid-column:2;grid-row:1;height:55px;display:flex;align-items:stretch;gap:8px;transform:none;z-index:3;visibility:visible;opacity:1}
.space-view-tabs button{position:relative;height:55px;min-width:132px;padding:0 20px;background:transparent;border:0;border-left:1px solid transparent;border-right:1px solid transparent;border-radius:5px 5px 0 0;color:#9fb3c5;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .16s,color .16s,border-color .16s}
.space-view-tabs button:hover{background:#10273a;color:#d9e8f2}
.space-view-tabs button.active{color:#dff5ff;background:#0d2d46;border:1px solid #155b84;border-bottom:2px solid #1bb6ee;box-shadow:inset 0 1px #2b89b8}
.space-tier-chip{justify-self:end;display:flex;align-items:center;gap:9px;margin-right:40px;padding:7px 11px;border:1px solid #294458;border-radius:6px;background:#0c1e2c;color:#aebfd0;font-size:11px;white-space:nowrap}
.space-tier-chip b{padding:2px 5px;border:1px solid #d89432;border-radius:3px;color:#ffbe55;font-size:11px}
.space-close{position:absolute;right:8px;top:9px;width:32px;height:32px;display:grid;place-items:center;background:#112234;border:1px solid #294258;border-radius:5px;color:#a9bdcc;font-size:21px;cursor:pointer}
.space-close:hover{background:#1a3043;color:#fff}
.space-ops-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(220px,15.5vw) minmax(0,1fr) minmax(290px,20vw);gap:0}
.space-ops-list,.space-ops-detail{min-width:0;min-height:0;background:#091724;overflow:auto;scrollbar-color:#314d63 #0a1722;scrollbar-width:thin}
.space-ops-list{border-right:1px solid #1b3548;padding:14px 12px 12px}
.space-panel-heading{height:34px;display:flex;justify-content:space-between;align-items:flex-start;padding:0 3px;color:#dbe6ef;text-transform:uppercase;letter-spacing:.1em;font-size:10px}
.space-panel-heading small{color:#6e899c;font-size:9px;letter-spacing:.08em}
.space-asteroid-list{display:grid;gap:3px}
.space-asteroid-row{position:relative;box-sizing:border-box;width:100%;min-height:49px;display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:9px;padding:5px 8px;background:transparent;border:1px solid transparent;border-radius:5px;color:#d6e1ea;text-align:left;cursor:pointer;overflow:hidden}
.space-asteroid-row:hover{background:#0f2434;border-color:#1b4058}
.space-asteroid-row.selected{background:#102b3f;border-color:#0c80bd;box-shadow:inset 0 0 0 1px #10639766}
.space-rock-icon{position:relative;display:block;width:35px;height:35px;background:var(--rock-tone);clip-path:polygon(28% 5%,70% 0,98% 35%,84% 82%,47% 100%,8% 77%,0 35%);filter:drop-shadow(0 2px 3px #0008)}
.space-rock-icon::before{content:'';position:absolute;left:7px;top:5px;width:18px;height:11px;background:#d8e2ea66;clip-path:polygon(0 70%,39% 0,100% 22%,72% 100%)}
.space-rock-icon::after{content:'';position:absolute;left:8px;top:15px;width:5px;height:4px;background:#192838;box-shadow:12px -4px 0 #273747,8px 9px 0 #263748}
.space-asteroid-copy{display:grid;gap:4px;min-width:0}
.space-asteroid-copy strong{font-size:11px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.space-asteroid-copy small{font-size:9px;color:#8298aa;letter-spacing:.025em}
.space-list-percent{font-size:9px;color:#49b7ec;font-variant-numeric:tabular-nums}
.space-list-progress{position:absolute;left:0;bottom:0;height:2px;background:#16a6e9;transition:width .3s}
.space-route-summary{margin:14px 3px 0;padding-top:12px;border-top:1px solid #1c3445}
.space-subheading{display:inline-block;color:#aabccb;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.09em}
.space-route-count{float:right;color:#5aaad0;font-size:9px}
.space-route-row{display:flex;justify-content:space-between;gap:8px;width:100%;padding:7px 2px;background:none;border:0;border-bottom:1px solid #162a39;color:#bdcbd5;text-align:left;font-size:10px;cursor:pointer}
.space-route-row small{color:#7793a8;white-space:nowrap}
.space-route-row:hover{color:#fff}
.space-muted{display:block;padding:8px 2px;color:#71889b;font-size:10px;line-height:1.45}
.space-center{position:relative;min-width:0;min-height:0;overflow:hidden;background:#061321}
.space-center #space-map{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.space-center #space-map:active{cursor:grabbing}
.space-center [hidden]{display:none!important}
.space-view-panel{position:absolute;inset:0;overflow:auto;padding:25px 28px;background:radial-gradient(ellipse at 50% 0%,#0a2031 0,#071522 55%,#06131f 100%);scrollbar-color:#314d63 #0a1722}
.space-view-title{margin:0 0 21px}
.space-view-title .eyebrow,.space-ops-detail .eyebrow{display:block;color:#5aa9ce;font-size:9px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
.space-view-title h2{margin:7px 0;color:#edf4f8;font-size:22px;letter-spacing:-.025em}
.space-view-title p{max-width:640px;margin:0;color:#8ca2b4;font-size:11px;line-height:1.55}
.space-operations-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:10px}
.space-operation-card{min-width:0;padding:13px;background:#0c2030;border:1px solid #1a3a50;border-radius:6px;color:#dce7ee;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.space-operation-card:hover{transform:translateY(-1px);background:#10283a;border-color:#2b6381}
.space-operation-card.selected{border-color:#168ac2;box-shadow:inset 0 0 0 1px #168ac255}
.space-operation-card>small{display:block;margin-top:9px;color:#8199aa;font-size:9px}
.space-operation-card .space-progress{margin:10px 0 0;height:4px}
.space-operation-card .space-operation-foot{color:#6caece}
.space-operation-card-head{display:flex;align-items:center;gap:8px;min-width:0}
.space-operation-card-head strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.space-mini-rock{width:22px;height:22px;flex:none;background:#839aac;clip-path:polygon(27% 0,76% 6%,100% 42%,80% 88%,43% 100%,0 69%,6% 28%)}
.space-mini-status{font-size:7px;color:#51b8df;letter-spacing:.08em}
.space-empty-state{max-width:450px;margin:9vh auto 0;text-align:center;padding:40px 35px;border:1px solid #1d3b50;border-radius:8px;background:#0b1e2d}
.space-empty-icon{display:inline-grid;place-items:center;width:48px;height:48px;margin-bottom:12px;border:1px solid #267ca2;border-radius:10px;color:#54c4ed;font-size:25px;background:#0e2b3d}
.space-empty-state h3{margin:0 0 8px;color:#e7f0f6;font-size:17px}
.space-empty-state p{margin:0 auto 19px;color:#8fa6b7;font-size:11px;line-height:1.6}
.space-primary-button{padding:9px 14px;background:#126daf;border:1px solid #2790cf;border-radius:4px;color:#fff;font-size:11px;font-weight:700;cursor:pointer}
.space-cargo-route-list{display:grid;gap:12px}
.space-cargo-card{padding:15px 16px;background:#0c2030;border:1px solid #1d3c52;border-radius:6px}
.space-cargo-card-title{display:flex;align-items:center;gap:11px;padding-bottom:12px;border-bottom:1px solid #1a3548}
.space-cargo-title-copy{display:grid;gap:4px;flex:1;min-width:0}
.space-cargo-title-copy strong{font-size:13px;color:#e0ebf1}
.space-cargo-title-copy small{font-size:9px;color:#849bad}
.space-ship-badge{width:28px;height:28px;display:grid;place-items:center;background:#10304a;border:1px solid #1b719c;border-radius:5px}
.space-ship-badge::before{content:'↗';font-size:17px;color:#65c9e9}
.space-route-active{color:#28cd9b;font-size:8px;font-weight:800;letter-spacing:.1em}
.space-shipment-list{display:grid;gap:8px;padding-top:11px}
.space-shipment{display:grid;grid-template-columns:75px minmax(0,1fr) auto;align-items:center;gap:9px;color:#95aaba;font-size:9px}
.space-shipment span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.space-shipment b{color:#4cb7e8;font-variant-numeric:tabular-nums}
.space-shipment .space-progress{grid-column:2/4;margin:0;height:3px}
.space-ops-detail{padding:18px 17px 14px;border-left:1px solid #1b3548}
.space-ops-detail h2{margin:8px 0 2px;color:#edf3f7;font-size:25px;letter-spacing:-.035em}
.space-ops-detail h3{margin:8px 0 12px;color:#edf3f7;font-size:20px}
.space-object-code{display:block;margin:0 0 12px;color:#8da7bb;font-size:11px}
.space-status-chip{display:inline-flex;align-items:center;padding:5px 8px;border-radius:4px;font-size:9px;font-weight:800;letter-spacing:.08em}
.status-mining{background:#123c34;color:#43d4a5}.status-ready{background:#123a58;color:#56bdf4}.status-scanning{background:#382d18;color:#ffcb6e}.status-unscanned{background:#202f3d;color:#9cb0c0}.status-active{background:#123c34;color:#43d4a5}
.space-progress-label{margin-top:20px;color:#c2cfda;font-size:10px;font-weight:650}
.space-progress{height:6px;margin:8px 0 6px;overflow:hidden;background:#142a3a;border-radius:99px}
.space-progress i{display:block;width:0;height:100%;background:#18a7ef;border-radius:inherit;transition:width .25s ease}
.space-progress.blue i{background:linear-gradient(90deg,#087dde,#25b3ef)}.space-progress.green i{background:#1bd09a}.space-helper{display:block;margin:5px 0 12px;color:#8098aa;font-size:9px;line-height:1.5}
.space-section-label{margin:19px 0 7px;color:#d4e0e8;font-size:11px}
.space-data-rows{border-top:1px solid #1b3446}
.space-data-row{display:flex;justify-content:space-between;gap:14px;padding:8px 4px;border-bottom:1px solid #162b3a;color:#95aabd;font-size:10px}
.space-data-row b{color:#c4d3df;text-align:right;font-weight:600}
.space-ops-detail p{color:#8da2b1;font-size:10px;line-height:1.55}
.space-ops-actions{display:grid;gap:7px;margin-top:17px}
.space-ops-actions button{min-height:36px;padding:8px 11px;background:#0d2c43;border:1px solid #1c5c82;border-radius:4px;color:#dcecf4;text-align:center;font-size:10px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}
.space-ops-actions button:hover:not(:disabled){background:#10436a;border-color:#2996cc}
.space-ops-actions button:nth-child(2){background:#102131;border-color:#233f54}
.space-ops-actions button:nth-child(2):hover:not(:disabled){background:#183248;border-color:#3f728e}
.space-ops-actions button:disabled{opacity:.43;cursor:not-allowed}
.space-ops-bottom{height:194px;min-height:152px;box-sizing:border-box;display:grid;grid-template-columns:1.18fr 1fr;background:#07131f;border-top:1px solid #1b3548}
.space-activity,.space-active-operations{min-width:0;padding:10px 15px;overflow:hidden}
.space-activity{border-right:1px solid #1b3548}
.space-bottom-heading{height:24px;display:flex;align-items:flex-start;justify-content:space-between;color:#dbe6ee;font-size:13px;font-weight:700}
.space-bottom-heading small{color:#668397;font-size:8px;font-weight:600;letter-spacing:.1em}
.space-bottom-heading button{margin-top:-3px;padding:5px 10px;background:#0d2030;border:1px solid #234057;border-radius:4px;color:#98adbd;font-size:9px;cursor:pointer}
.space-event-list,.space-active-list{height:calc(100% - 25px);overflow:auto;scrollbar-width:thin;scrollbar-color:#2c4a60 transparent}
.space-event-row{min-height:28px;display:grid;grid-template-columns:43px 22px minmax(0,1fr);align-items:center;gap:5px;border-top:1px solid #122636;color:#91a6b7}
.space-event-row time{font-size:9px;font-variant-numeric:tabular-nums;color:#718c9e}
.space-event-icon{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#0d3045;color:#4dc3ee;font-size:12px}
.space-event-row p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.space-active-row{min-height:29px;display:grid;grid-template-columns:22px minmax(110px,1fr) minmax(90px,150px) auto;align-items:center;gap:7px;border-top:1px solid #122636;color:#91a6b7}
.space-active-copy{display:grid;gap:2px;min-width:0}
.space-active-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bdccd7;font-size:9px;font-weight:600}
.space-active-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6f8a9c;font-size:8px}
.space-active-row .space-progress{height:5px;margin:0}
.space-active-row>b{min-width:50px;color:#4fb9e7;font-size:9px;text-align:right;font-variant-numeric:tabular-nums}
#space-open{border-color:#74522f;color:#edba75}#space-open[hidden]{display:none}
.space-ops-dialog button:focus-visible{outline:2px solid #44b9e9;outline-offset:2px}
@media(max-width:1000px){.space-ops-head{grid-template-columns:auto 1fr auto;gap:8px;padding:0 10px}.space-brand{font-size:12px}.space-view-tabs{justify-content:center;gap:1px}.space-view-tabs button{padding:0 10px;font-size:10px}.space-ops-layout{grid-template-columns:190px minmax(0,1fr) 255px}.space-active-row{grid-template-columns:22px minmax(100px,1fr) minmax(60px,100px) auto}}
@media(max-width:720px){.space-ops-dialog{width:100vw;height:100vh;border-radius:0}.space-ops-head{height:auto;min-height:54px;grid-template-columns:1fr auto;padding:7px 10px}.space-brand{grid-column:1}.space-tier-chip{display:none}.space-view-tabs{position:relative;left:auto;top:auto;transform:none;grid-column:1/3;grid-row:2;height:38px;justify-content:flex-start;overflow:auto}.space-view-tabs button{height:38px;min-width:112px;padding:0 14px}.space-close{top:7px;right:8px}.space-ops-layout{grid-template-columns:minmax(0,1fr) 245px}.space-ops-list{display:none}.space-ops-detail{padding:14px}.space-ops-bottom{height:190px;grid-template-columns:1fr 1fr}.space-view-panel{padding:18px}.space-operations-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}
@media(max-width:520px){.space-ops-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(245px,1fr) auto}.space-center{grid-row:1}.space-ops-detail{grid-row:2;max-height:210px;border-left:0;border-top:1px solid #1b3548;overflow:auto}.space-ops-bottom{height:220px;grid-template-columns:1fr}.space-activity{display:none}.space-active-operations{padding:8px 12px}.space-active-row{grid-template-columns:22px minmax(80px,1fr) 70px auto}.space-active-row .space-progress{display:none}.space-asteroid-list{display:none}.space-view-tabs button{font-size:9px;padding:0 10px}.space-cargo-card{padding:11px}.space-shipment{grid-template-columns:55px minmax(0,1fr) auto}}
.space-map-controls{position:absolute;z-index:1;top:12px;right:12px;display:flex;align-items:center;gap:3px;padding:4px;background:#071522dc;border:1px solid #244158;border-radius:5px;box-shadow:0 3px 12px #0007}
.space-map-controls[hidden]{display:none}
.space-map-controls button{width:30px;height:28px;padding:0;background:#10283a;border:1px solid #294a62;border-radius:3px;color:#c7d9e5;font-size:16px;font-weight:700;cursor:pointer;transition:background .12s,border-color .12s,color .12s}
.space-map-controls button:hover{background:#17405a;border-color:#3c86aa;color:#fff}
.space-map-controls button:focus-visible{outline:2px solid #45bcec;outline-offset:2px}
.space-map-controls .space-zoom-readout{min-width:42px;color:#92aabc;font-size:9px;font-variant-numeric:tabular-nums;text-align:center}
@media(max-width:520px){.space-map-controls{top:8px;right:8px}.space-map-controls button{width:27px;height:26px}}
