body{overflow:hidden;background:#edf1e4}.factory{display:block;position:relative;height:100dvh;min-height:440px;max-height:none;overflow:clip;background:radial-gradient(ellipse at 48% 50%,#f6f5e9,#e5edde 75%,#dbe7d8)}
#app[data-era=space] .factory{background:radial-gradient(ellipse at 50% 45%,#263f53,#172e43 60%,#101c30)}#app[data-era=space] .topbar{background:linear-gradient(#172b3d88,transparent)}#app[data-era=space] .brand,#app[data-era=space] .workshop-title h1{color:#f3eed9}#app[data-era=space] .workshop-title p,#app[data-era=space] .workshop-title .eyebrow,#app[data-era=space] .workshop-footer,#app[data-era=space] #scene-help{color:#99b5b4}#app[data-era=space] .workshop-footer .text-button{color:#a8c3c2}
.make-pin{background:#ee8868!important;color:#fff9e9;border-color:#f5b79b!important;box-shadow:0 5px 0 #bd654b,0 8px 20px #6b493320!important;min-height:55px}.make-pin small{color:#ffe5ce!important}.make-pin .pin-number{background:#d67355;color:#fff5dd}.make-pin:disabled{background:#acb9a3!important;border-color:#bdcbb4!important;box-shadow:0 5px 0 #88977e!important}
.topbar{position:absolute;z-index:5;top:0;left:0;right:0;height:auto;border:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 30px;pointer-events:none;background:linear-gradient(#f4f5eccc,transparent)}.topbar>*{pointer-events:auto}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font-size:10px;font-weight:800;letter-spacing:1.6px;line-height:1.35}.brand strong{display:block;font-size:19px;letter-spacing:2.5px}.brand-mark{display:grid;place-items:center;background:#e98362;border-radius:12px;color:#fff5df;width:42px;height:45px;font-size:45px;box-shadow:0 3px 0 #c56549;line-height:1}.ledger{display:flex;gap:40px;padding:13px 25px;background:#fffbedcf;border:1px solid #ffffffba;border-radius:18px;box-shadow:0 4px 24px #6383660c;backdrop-filter:blur(10px)}.ledger>div{min-width:110px;display:flex;flex-direction:column;gap:3px}.ledger>div+div{padding-left:25px;border-left:1px solid #dce4d0}.ledger span{font-size:8px;font-weight:800;letter-spacing:1.6px;color:#829179}.ledger strong{font-size:26px;line-height:1.2;letter-spacing:-1px;font-variant-numeric:tabular-nums}.ledger small{font-size:8px;color:#8c9880}.tools{display:flex;gap:7px}.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid #ffffffa1;background:#f8f8eacc;display:flex;align-items:center;justify-content:center;font-size:26px}.icon-btn:hover{background:#fffbee}.tool-label{display:none}.workshop-title{position:absolute;left:32px;top:126px;pointer-events:none;max-width:360px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.8px;color:#809578}.workshop-title h1{font-size:23px;letter-spacing:-.9px;margin:10px 0 7px}.workshop-title p{font-size:11px;color:#85957d;margin:0}
#station-layer,#surface-controls{position:absolute;inset:0;pointer-events:none;z-index:3}.station-pin{position:absolute;left:0;top:0;display:flex;align-items:center;gap:9px;padding:10px 14px 10px 10px;border:1px solid #fffef0;background:#fff9eaef;border-radius:12px;box-shadow:0 5px 0 #d6decb,0 8px 20px #526b5320;pointer-events:auto;white-space:nowrap;transform-origin:center bottom;transition:background .18s,box-shadow .18s}.station-pin:after{content:'';position:absolute;bottom:-13px;left:calc(50% - 1px);width:2px;height:10px;background:#58775c80}.station-pin:hover{background:#fffdf1;box-shadow:0 5px 0 #c6d4b8,0 9px 25px #526b5335}.pin-number{width:24px;height:29px;display:grid;place-items:center;background:#e0ead5;border-radius:7px;color:#66815e;font-size:10px;font-weight:800}.station-pin strong{font-size:12px;display:block;letter-spacing:-.2px;text-align:left}.station-pin small{font-size:8px;display:block;color:#879777;text-align:left;margin-top:3px}.surface-button{position:absolute;pointer-events:auto;border:0;border-radius:10px;background:transparent;padding:0;-webkit-tap-highlight-color:#fff7d82b}.surface-button:hover:not(:disabled){background:#ffffff16}.surface-button:active:not(:disabled){background:#ffffff2a;transform:none}.surface-button:focus-visible{outline:3px solid #e9ae3f;background:#fff6d51a;outline-offset:2px}.scene-navigation{position:absolute;bottom:59px;left:50%;transform:translateX(-50%);z-index:4;text-align:center;white-space:nowrap}.back-button{border:1px solid #fffef2;background:#fffaecf2;border-radius:14px;box-shadow:0 4px 0 #cbd7bd,0 8px 20px #54735015;padding:14px 21px;font-weight:800;font-size:12px;min-height:48px}.back-button:hover{background:#fffef5}#scene-help{font-size:10px;color:#7e9276;font-weight:600;letter-spacing:.15px}.workshop-footer{position:absolute;bottom:20px;left:30px;right:30px;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#829477;font-size:8px;font-weight:700;letter-spacing:1.1px}.live-dot{display:inline-block;width:5px;height:5px;background:#8caf83;border-radius:50%;margin-right:6px}.workshop-footer .text-button{font-size:10px}.diagnostics{left:24px;bottom:100px}#loading{z-index:10}#toast{bottom:113px}dialog{z-index:30}
@media(max-width:760px){.factory{height:100dvh;min-height:440px;max-height:none}.topbar{padding:16px;align-items:flex-start;gap:10px}.brand{font-size:8px;gap:8px}.brand strong{font-size:14px}.brand-mark{width:32px;height:35px;border-radius:9px;font-size:34px}.tools{gap:4px}.icon-btn{width:34px;height:34px;min-width:34px;font-size:23px}.ledger{position:absolute;top:74px;left:16px;right:16px;padding:12px 16px;gap:0;justify-content:space-between;border-radius:15px}.ledger>div{min-width:0;gap:3px}.ledger>div+div{border:0;padding-left:18px;text-align:right}.ledger strong{font-size:23px}.ledger span{font-size:7px}.ledger small{font-size:8px}.workshop-title{top:177px;left:20px;max-width:280px}.workshop-title h1{font-size:21px;margin:8px 0 4px}.workshop-title .eyebrow{font-size:7px}.workshop-title p{font-size:10px}.station-pin{padding:9px 10px;gap:7px;border-radius:10px}.station-pin strong{font-size:10px}.station-pin small{font-size:8px}.pin-number{width:20px;height:25px;font-size:8px}.scene-navigation{bottom:59px;width:calc(100% - 30px);white-space:normal}#scene-help{font-size:9px}.back-button{font-size:12px;min-height:48px;padding:13px 21px}.workshop-footer{bottom:18px;left:19px;right:19px;gap:10px;font-size:7px;letter-spacing:.7px}.workshop-footer .text-button{font-size:8px}.station-focused .ledger{padding-top:9px;padding-bottom:9px}.station-focused .ledger small{display:none}}
@media(max-height:600px) and (min-width:761px){.topbar{padding:12px 20px}.ledger{padding:8px 18px}.ledger strong{font-size:20px}.workshop-title{top:100px}.scene-navigation{bottom:40px}.workshop-footer{bottom:12px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.surface-range{position:absolute;pointer-events:auto;opacity:.01;cursor:ew-resize;margin:0}.surface-range:focus-visible{opacity:.7;accent-color:#387d68}

/* Direct station controls, projected onto the factory floor. */
.floor-control{position:absolute;left:0;top:0;pointer-events:auto;width:174px;display:flex;flex-direction:column;gap:6px;padding:10px;background:#fff9e9ee;border:1px solid #fffef4;border-radius:11px;box-shadow:0 3px 0 #bfcfba,0 7px 20px #284e4920;transform-origin:center bottom}
.floor-control:after{content:'';position:absolute;width:2px;height:15px;background:#57796899;left:50%;bottom:-16px}
.floor-control>strong{font-size:8px;letter-spacing:1.4px;color:#527464}.floor-control>small{font-size:9px;color:#70816c;font-variant-numeric:tabular-nums;white-space:nowrap}
.floor-control button{padding:9px 7px;min-height:33px;border:0;border-radius:6px;background:#377e6d;color:#fff9e9;font-size:10px;font-weight:800;box-shadow:0 2px 0 #255a4d;white-space:nowrap;cursor:pointer;transition:background .12s,translate .12s}
.floor-control button:hover:not(:disabled){background:#46927b}.floor-control button:active:not(:disabled){translate:0 2px;box-shadow:none}.floor-control button:disabled{background:#e1e6d8;color:#86937f;box-shadow:0 2px 0 #cbd3c1;cursor:default}
.floor-control .floor-secondary{min-height:23px;padding:5px;background:#e5ecd9;color:#456c59;box-shadow:none;font-size:9px}.floor-control .floor-secondary:disabled{opacity:.55}
.floor-control .price-control{display:flex;gap:7px;align-items:center}.price-control button{width:32px;font-size:18px;padding:3px}.price-control output{flex:1;text-align:center;font-size:20px;font-weight:800;letter-spacing:-.8px;color:#294e49;font-variant-numeric:tabular-nums}
.floor-make{width:145px;flex-direction:column-reverse;background:transparent;border:0;box-shadow:none;padding:0}.floor-make>strong{display:none}.floor-make>small{text-align:center;font-size:8px}.floor-make button{background:#e98362;box-shadow:0 3px 0 #bc644c;font-size:12px;min-height:42px}.floor-make:after{display:none}

.floor-control{width:158px;padding:8px;gap:4px;background:#fff9e9f5;border-radius:9px;box-shadow:0 2px 0 #bfcfba,0 5px 14px #284e4918}.floor-control>strong{font-size:7px}.floor-control>small{font-size:8px}.floor-control button{min-height:30px;padding:8px 5px;font-size:10px}.floor-control .floor-secondary{min-height:20px;padding:4px;font-size:8px}.floor-control .price-control button{min-height:28px;width:29px;font-size:18px;padding:2px}.price-control output{font-size:18px}.floor-make{width:130px;background:none;padding:0;border:0;box-shadow:none}.floor-make button{min-height:38px;font-size:11px}

.station-leader{position:absolute;display:block;height:1.5px;background:#57796870;transform-origin:left center;pointer-events:none}.station-pin:after,.floor-control:after{display:none}

/* Supplies remain available without keeping a purchase card open. */
.floor-control[data-station=wire]:not(.wire-open){width:138px;background:#fff9e7d9;box-shadow:0 2px 0 #bfceba;padding:9px 11px;cursor:pointer}
.floor-control[data-station=wire]:focus-visible{outline:3px solid #e8b954;outline-offset:3px}
.floor-control[data-station=wire].wire-low{border-color:#e9b176}
.floor-control [hidden],.ledger [hidden]{display:none!important}
#revenue-rate{color:#387d68;font-weight:700;font-variant-numeric:tabular-nums}
#save-feedback:empty{display:none}

@media(min-width:761px){.ledger small{font-size:10px;line-height:1.35}.ledger{gap:26px}.ledger>div+div{padding-left:22px}}
/* The factory owns its controls. DOM elements only supply access to surfaces. */
.station-target,.physical-target{position:absolute;left:0;top:0;display:block;padding:0;margin:0;pointer-events:auto;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;transform:none!important;cursor:pointer;transition:background .15s}
.station-target>*{visibility:hidden;pointer-events:none}.station-target:after{display:none}
.station-target:hover{background:#eabe5a13!important}.physical-target:hover:not(:disabled){background:#ffffff13!important}
.station-target:focus-visible,.physical-target:focus-visible{outline:3px solid #df993b;outline-offset:-4px;background:#ffcc6330!important}.physical-target:disabled{cursor:default}
.inspect-target{z-index:0}.action-target{z-index:1}
.brand{gap:10px;letter-spacing:0}.wire-emblem{width:44px;height:55px;object-fit:contain;filter:drop-shadow(0 2px 0 #fff4cf)}
.brand .wordmark{font-size:28px;font-weight:800;letter-spacing:-1.5px;line-height:1.0;display:block}.brand-co{font-size:13px;font-weight:800;letter-spacing:-.5px;margin-left:5px}.wordmark small{display:block;font-size:6.8px;letter-spacing:1.7px;margin-top:7px;font-weight:800;color:#657b6a}
#app[data-era=space] .wordmark small{color:#a8bdb6}
.workshop-footer{right:90px}.help-button{position:absolute;right:25px;bottom:18px;width:43px;height:43px;border-radius:50%;background:#294e49;color:#fff1cf;border:2px solid #fff7e3;font-size:24px;font-weight:800;box-shadow:0 3px 0 #adc1ae;z-index:7}.help-button:hover{background:#377e6d}.help-button:focus-visible{outline:3px solid #e8b44d;outline-offset:3px}
#interaction-hint{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 440px);font-size:11px;font-weight:700;color:#385d50;text-align:center;background:#f4f4e4e8;padding:7px 14px;border-radius:8px;pointer-events:none;opacity:0;transition:opacity .14s;z-index:6}#interaction-hint.visible{opacity:1}
#help-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 120px);margin:auto 24px 80px auto;box-sizing:border-box;padding:34px;border-radius:18px;background:#fff6e1;overflow:auto;box-shadow:0 12px 80px #193f3b40}#help-dialog::backdrop{background:#203f3c45;backdrop-filter:blur(3px)}#help-dialog h2{font-size:30px;letter-spacing:-1.2px;margin:10px 0 14px}#help-dialog .help-intro{font-size:13px;line-height:1.7;color:#627564}#help-dialog details{border-top:1px solid #d6ddc9;padding:15px 0}#help-dialog summary{font-weight:800;font-size:15px;cursor:pointer;color:#294e49;list-style:none}#help-dialog summary:after{content:'+';float:right;font-size:20px;color:#b47c3c}#help-dialog details[open] summary:after{content:'−'}#help-dialog details p{font-size:13px;line-height:1.75;margin:14px 0 0;color:#526857}#help-dialog kbd{background:#e5e6d2;border:1px solid #d2d5bd;border-bottom-width:3px;border-radius:4px;padding:1px 5px;font:700 11px Manrope}
@media(max-width:760px){.brand .wordmark{font-size:20px}.brand-co{font-size:10px}.wire-emblem{width:30px;height:39px}.wordmark small{font-size:5px;letter-spacing:1px}.help-button{right:15px;bottom:15px;width:38px;height:38px}.workshop-footer{right:66px}#interaction-hint{bottom:105px;max-width:calc(100% - 40px);width:max-content;font-size:10px}#help-dialog{margin:auto 16px 70px;padding:25px}#help-dialog h2{font-size:25px}}

#help-dialog .help-header{position:sticky;top:-34px;z-index:1;background:#fff6e1;margin:-34px -34px 16px;padding:28px 34px 10px;border-bottom:1px solid #e5dfc9}#help-dialog .help-header h2{margin-bottom:6px}@media(max-width:760px){#help-dialog .help-header{top:-25px;margin:-25px -25px 16px;padding:25px 25px 10px}}

/* The game owns the full viewport; navigation is spatial. */
#world,#station-layer,#surface-controls{left:0}.scene-navigation{left:50%}
.station-target:hover{background:transparent!important}
.map-button{position:absolute;left:26px;bottom:57px;width:46px;height:46px;border-radius:50%;background:#f9f2dcde;border:2px solid #fff8e6;color:#3e6b5d;box-shadow:0 3px 0 #b5c9b3;z-index:7;display:grid;place-items:center;cursor:pointer}
.map-button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.map-button kbd{position:absolute;right:-5px;bottom:-5px;min-width:17px;padding:2px;background:#294e49;color:#fff1d0;border-radius:4px;font:700 9px Manrope}.map-button:hover,.map-button[aria-pressed=true]{background:#294e49;color:#fff1d0}.map-button:focus-visible{outline:3px solid #e9bd56;outline-offset:3px}
.back-button{border-radius:22px;font-size:11px;min-height:40px;padding:10px 18px;box-shadow:0 2px 0 #cbd7bd}.scene-navigation{bottom:54px}#scene-help{font-size:10px}.diagnostics{bottom:116px}
@media(max-width:760px){.map-button{left:18px;bottom:60px;width:40px;height:40px}#scene-help{display:none}.scene-navigation{bottom:58px}}
.creator-credit{position:absolute;left:50%;bottom:21px;transform:translateX(-50%);z-index:4;color:#637d6b;font-size:11px;font-weight:600;white-space:nowrap;letter-spacing:.1px}.creator-credit a{font-weight:800;text-decoration:underline;text-decoration-color:#93aa92;text-underline-offset:4px}.creator-credit a:hover{color:#275743}.credit-heart{font-size:12px;margin:0 2px}#app[data-era=space] .creator-credit{color:#a8c3c2}#app[data-era=space] .creator-credit a:hover{color:#fff1d0}#interaction-hint{bottom:105px}@media(max-width:760px){.creator-credit{bottom:20px;font-size:9px}.credit-heart{font-size:10px}.workshop-footer>span:first-child{display:none}.workshop-footer{justify-content:flex-end}.workshop-footer .text-button{font-size:8px}}
