/* V0.990.0 INDUSTRIAL SHIFT. World-first builder HUD, steel and amber finish. */
body.builder-ui{--game-ink:#e4e8e7;--game-edge:#151718;--game-paper:#202325;--game-muted:#abafb1;--game-gold:#df994c;--game-green:#91ae8a;background:#1c1f20;color:#e6e9e7;}
body.builder-ui :is(.g-profile,.g-time,.g-resource,.g-crew,.g-island,.g-island.research,.g-small){background:linear-gradient(150deg,#3c4042,#202325 65%,#1c1f21);border:1px solid #707577;border-radius:6px;box-shadow:inset 0 1px #a8acac22,0 3px 0 #101112,0 8px 17px #080a0b55;color:#edf0ed;}
body.builder-ui :is(.g-profile strong,.g-resource b,.g-anchor strong,.g-build strong,.g-island>span){text-shadow:0 1px #0008;letter-spacing:.04em;font-weight:750;}
body.builder-ui .g-profile{border-left:3px solid #d58b48;padding:9px 17px 10px 9px;}
body.builder-ui .g-tier{background:linear-gradient(#4d5255,#2b2f32);border:1px solid #abafaf;color:#f1f2eb;text-shadow:0 1px #000;}
body.builder-ui .g-profile-progress,body.builder-ui .g-quest-meter{background:#16191a;border:1px solid #535859;border-radius:3px;height:6px;}
body.builder-ui .g-profile-progress i,body.builder-ui .g-quest-meter i{background:linear-gradient(#e7b77b,#bc6e35);border-radius:2px;}
body.builder-ui #run-toggle{border:1px solid #f2c792;background:linear-gradient(#d89955,#c27535);border-radius:4px;color:#1a1d1e;box-shadow:inset 0 1px #f6dbb5,0 2px #754623;text-shadow:none;}
body.builder-ui.simulation-running #run-toggle{background:linear-gradient(#484d4f,#2e3234);border-color:#949898;color:#eef2ec;box-shadow:inset 0 1px #ffffff25,0 2px #141718;}
body.builder-ui #run-speed{background:#1e2224;border-color:#656a6d;color:#dee1e2;border-radius:4px;}
body.builder-ui .g-quest{background:linear-gradient(135deg,#333739,#1e2123);border:1px solid #6f7474;border-left:3px solid #d19450;color:#e7e9df;border-radius:6px;box-shadow:inset 0 1px #ffffff19,0 3px #111415,0 6px 12px #0003;}
body.builder-ui .g-quest small,body.builder-ui .g-quest #g-quest-detail{color:#b3b7b7;}
body.builder-ui .g-next{color:#d5b17d;}
body.builder-ui .g-pip,body.builder-ui .g-action-count{background:#c98a47;color:#1c2022;border:1px solid #e2bc85;border-radius:4px;box-shadow:0 2px #3b3428;}
body.builder-ui .g-world-status{background:#1d2322ea;border:1px solid #687c71;border-radius:4px;color:#cfdfca;text-shadow:none;}
body.builder-ui .g-world-status.warning{background:#30271deb;border-color:#b48c53;color:#efd4a7;}
body.builder-ui .g-anchor{border:1px solid #93a29e;border-radius:7px;box-shadow:inset 0 1px #e0e4e32e,0 4px #121516,0 8px 20px #0006;}
body.builder-ui .g-contracts{background:linear-gradient(135deg,#44484a,#212526);color:#eef0e9;border-left:4px solid #9ea7a6;}
body.builder-ui .g-build{background:linear-gradient(135deg,#e5b36b,#ce843a 58%,#af642f);color:#1e2123;border-color:#e4c794;}
body.builder-ui .g-build strong{color:#1e2123;text-shadow:none;}
body.builder-ui .g-build small{color:#2e3130;text-shadow:none;}
body.builder-ui .g-island>span{color:#dbe2dc;}
body.builder-ui .g-glyph{filter:saturate(.4) drop-shadow(0 1px 1px #0007);}
body.builder-ui .g-anchor .g-glyph{filter:saturate(.25) drop-shadow(0 2px 1px #0009);}
body.builder-ui.focus-ui .mapbtn{background:linear-gradient(#404547,#23282b);color:#d8e1df;border:1px solid #777c7e;border-radius:5px;box-shadow:inset 0 1px #ffffff17,0 2px #171a1b;}
body.builder-ui.focus-ui .mapbtn.active{background:#bd894a;color:#1d2123;border-color:#dbb274;}
body.builder-ui :is(.g-panel,.f-drawer,.f-confirm){background:#1e2224;color:#e0e6e4;border:1px solid #727778;border-top:3px solid #ba894e;border-radius:7px;box-shadow:0 7px 0 #151718,0 16px 55px #0009;}
body.builder-ui .g-panel-head,body.builder-ui .f-drawer-head{background:linear-gradient(120deg,#404548,#2a2e30);border-bottom:1px solid #676d6f;color:#ebeee8;}
body.builder-ui :is(.g-panel-content,.f-drawer-body){scrollbar-color:#717779 #1e2224;}
body.builder-ui .g-panel :is(h3,h4,strong,b),body.builder-ui .f-confirm h2,body.builder-ui .f-drawer :is(h3,strong,b){color:#e5ebe7;}
body.builder-ui .g-panel :is(p,small,.g-note,.g-card-benefit,.g-footprint,.g-client,.g-running-sub),body.builder-ui :is(.f-intro,.f-note,.f-details,.f-eyebrow,.f-facility-facts small,.f-confirm-facts small,.f-system-row small,.f-window-field>span,.f-kit-count span){color:#b4b8b9;}
body.builder-ui .g-close,body.builder-ui .f-drawer-head .f-icon{background:#414648;border-color:#898e90;border-radius:4px;box-shadow:inset 0 1px #ffffff17,0 2px #16191b;color:#edf1e9;}
body.builder-ui :is(.g-tabs,.g-check-row,.g-board-banner,.g-journey-summary,.g-reserve-row,.g-fix-row,.g-empty,.g-gate-benefit){background:#2a2f31;border:1px solid #565d60;border-radius:5px;color:#cacecf;}
body.builder-ui :is(.g-tab,.g-cat){background:#2b3033;border:1px solid #5d6467;color:#c8ccce;border-radius:4px;}
body.builder-ui .g-tab.active,body.builder-ui .g-cat.active{background:#4a4f52;border-color:#ce985b;color:#fae6c9;box-shadow:inset 0 -2px #d39555;}
body.builder-ui :is(.g-pack-card,.g-building-card,.g-campus-card,.g-link-card,.g-research-card,.g-contract-card,.g-running-card,.g-journey-step,.g-flow-node,.g-work-item,.g-store-stats>div){background:linear-gradient(150deg,#353a3d,#25292c);border:1px solid #646b6e;border-bottom:3px solid #171a1c;border-radius:6px;color:#dde0df;box-shadow:inset 0 1px #ffffff0c,0 4px 9px #0003;}
body.builder-ui .g-building-card:hover{border-color:#c39459;}
body.builder-ui .g-building-card.locked{background:#26292a;border-color:#494d4f;}
body.builder-ui .g-card-cost{background:#3c4b42;border:1px solid #7b936d;color:#e1edcf!important;border-radius:3px;box-shadow:none;}
body.builder-ui .g-building-card.locked .g-card-cost{background:#36393a;border-color:#686d70;color:#bcbfbf!important;}
body.builder-ui :is(.g-contract-art,.g-contract-card.training .g-contract-art,.g-research-art){background:linear-gradient(#4b5154,#313739);border-color:#5c6265;}
body.builder-ui .g-badge,body.builder-ui .g-badge.blue{background:#42494d;color:#d2d8db!important;border:1px solid #757f83;border-radius:3px;}
body.builder-ui .g-badge.green{background:#31443b;color:#d0dfc5!important;border-color:#6b8466;}
body.builder-ui .g-badge.orange{background:#4b3b29;color:#f0d5ad!important;border-color:#ab8650;}
body.builder-ui :is(.g-progress,.g-job-progress){background:#181c1e;border:1px solid #575e62;}
body.builder-ui :is(.g-progress i,.g-job-progress i){background:#c29455;}
body.builder-ui :is(.g-button,.g-button.pale,.f-button,.g-selection-action){background:linear-gradient(#464d50,#32383b);border:1px solid #848b8e;border-radius:4px;box-shadow:inset 0 1px #ffffff1a,0 2px #171c1e;color:#e8eaeb;}
body.builder-ui :is(.g-button.green,.g-button.amber,.f-button.primary,.g-selection-action.upgrade){background:linear-gradient(#dda762,#b87b3a);border:1px solid #e0bc83;box-shadow:inset 0 1px #efd0a6,0 2px #634625;color:#1c2023;}
body.builder-ui .g-panel .g-button.green,body.builder-ui .g-panel .g-button.amber,body.builder-ui .g-selection-action.upgrade :is(b,small){color:#1d2124;}
body.builder-ui .f-button:hover:not(:disabled){background:#545c60;}
body.builder-ui .f-button.primary:hover:not(:disabled){background:#e4ad6e;}
body.builder-ui :is(.g-selection-title,.g-selection-actions){background:#292e30f2;border:1px solid #71787b;border-radius:4px;box-shadow:0 4px #161b1d;}
body.builder-ui .g-selection-title{border-left:3px solid #d09a59;}
body.builder-ui .g-selection-title :is(small,.g-badge){color:#d4d7d8;background:transparent;}
body.builder-ui .g-selection-action>small{color:#cfd2d3;}
body.builder-ui .g-placement{background:#2a2f31f2;border:1px solid #889690;border-top:3px solid #c99d60;color:#e1e7e4;border-radius:5px;box-shadow:0 5px #171b1d;}
body.builder-ui .g-place-copy>small{color:#bdc2c2;}
body.builder-ui .g-place-copy .g-error{color:#efb68a;}
body.builder-ui .g-place-yes{background:#927943;border-color:#d9bc75;box-shadow:none;border-radius:4px;}
body.builder-ui .g-place-no{background:#654039;border-color:#c89375;box-shadow:none;border-radius:4px;}
body.builder-ui .g-nudge{background:#41484c;border-color:#929897;color:#e4e9e0;border-radius:3px;}
body.builder-ui .g-world-cue{background:linear-gradient(#34443e,#202c29);border:1px solid #8ca38a;color:#dbe6d1;border-radius:3px;box-shadow:0 2px 4px #07121077;min-height:31px;}
body.builder-ui .g-world-cue::after{background:#202c29;border-width:0 1px 1px 0;border-color:#8ca38a;bottom:-6px;width:8px;height:8px;}
body.builder-ui .g-world-cue .g-glyph{width:24px;height:24px;}
body.builder-ui .g-world-cue.job{background:#353b3f;border-color:#98a1a5;color:#d9dee0;}
body.builder-ui .g-world-cue.job::after{background:#353b3f;border-color:#98a1a5;}
body.builder-ui :is(.g-world-cue.working,.g-world-cue.delivery,.g-world-cue.issue){background:#3a3023;border-color:#ba985d;color:#e9d6b5;}
body.builder-ui :is(.g-world-cue.working,.g-world-cue.delivery,.g-world-cue.issue)::after{background:#3a3023;border-color:#ba985d;}
body.builder-ui :is(.g-reward,.toast){background:#253631;border:1px solid #9bb697;border-left:4px solid #dca15b;box-shadow:0 4px 16px #0006;border-radius:5px;color:#e1e7db;}
body.builder-ui .g-reward :is(strong,b,small){color:#e7d5b5;}
body.builder-ui .toast.err{background:#412f27;color:#f3c4a0;border-color:#b18566;}
body.builder-ui .f-building-hero,body.builder-ui .g-upgrade-models{background:radial-gradient(ellipse at center,#606665,#2c3234);border:1px solid #636969;border-radius:5px;}
body.builder-ui .g-upgrade-models b{color:#e4e4d8;}
body.builder-ui :is(.f-facility-facts>div,.f-upgrade-card,.f-confirm-facts>div,.f-system-row,.f-reserve,.f-toggle,.f-work-card){background:#2c3235;border-color:#5c6467;color:#dcdfdf;border-radius:5px;}
body.builder-ui :is(.f-facility-facts strong,.f-confirm-facts b,.f-reserve strong,.f-big-number,.f-section-title,.f-upgrade-rating,.f-work-time,.f-kit-count b){color:#e6d3ad;}
body.builder-ui :is(.f-window-field select,.f-window-field input){background:#1d2225;border:1px solid #80878a;color:#e4e7e6;}
body.builder-ui .f-input-row,body.builder-ui .f-details{color:#b4b9b9;border-color:#575f61;}
body.builder-ui .f-input-row.warning{color:#e1b17c;}
body.builder-ui :is(.f-warning,.f-forecast-result.warning){background:#392f24;border-color:#a18358;color:#efd4af;}
body.builder-ui .f-forecast-result{background:#2b4037;color:#d6e5c5;border-color:#6f8f6c;}
body.builder-ui .f-work-live{background:#344c3c;color:#d3e3bd;}
body.builder-ui .f-work-live.offline{background:#51432d;color:#ecd7a9;}
body.builder-ui .f-work-steps span{background:#303639;color:#bec3c4;border-color:#626a6d;}
body.builder-ui .f-work-steps .current{background:#685233;color:#f6deb5;}
body.builder-ui .f-confirm::backdrop{background:#0d0f10b8;}
body.builder-ui .shift-briefing{background:linear-gradient(135deg,#35393b,#232729);border:1px solid #828888;border-left:4px solid #c29659;border-radius:7px;box-shadow:0 6px #16191b,0 15px 60px #0008;}
body.builder-ui .shift-briefing h1{color:#e8e9dd;}
body.builder-ui .shift-briefing :is(p,small,.brief-kicker,.brief-facts){color:#babebf;}
body.builder-ui .brief-facts b{color:#e4d1b0;}
body.builder-ui .brief-start{background:linear-gradient(#d8aa6a,#bd8243);border:1px solid #d5b88b;border-bottom:3px solid #765327;color:#1d2124;border-radius:4px;}
body.builder-ui .brief-blank{background:#3c4347;border:1px solid #818a8d;color:#dcdfe0;border-radius:4px;}
/* New unit controls. The same live building renderer supplies the illustrations. */
body.builder-ui[data-game-menu="plant"] .g-panel{width:min(990px,calc(100% - 90px));}
.i-plant-hero{display:flex;align-items:center;gap:18px;background:radial-gradient(ellipse at 18% 45%,#424948,#2b3134 65%);border:1px solid #5d6567;border-radius:5px;padding:5px 18px;margin-bottom:16px;}
.i-plant-hero canvas{width:34%;height:175px;max-width:330px;object-fit:contain;flex:none;}
.i-plant-title h3{font-size:27px;line-height:1.2;margin:6px 0;}
.i-plant-title>small{font-size:10px;letter-spacing:.09em;}
.i-unit-status{color:#b4cfa6!important;font-size:14px;margin:7px 0;}
.i-unit-status.warning{color:#e6b980!important;}
.i-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #565d60;border-radius:4px;background:#2a2f32;}
.i-stat{padding:12px 16px;border-right:1px solid #565d60;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.i-stat:last-child{border-right:0;}.i-stat small{font-size:9px;letter-spacing:.065em;width:100%;}.i-stat b{font-size:29px;font-variant-numeric:tabular-nums;}.i-stat span{font-size:12px;color:#b5bbbd;}
.i-heading h3{font-size:19px;letter-spacing:.01em;margin:22px 0 0;}.i-heading p{margin:5px 0 14px;}
.i-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.i-input-card{display:flex;flex-direction:column;position:relative;padding:14px;border:1px solid #60696d;border-top:3px solid #7b8789;border-radius:4px;background:#303638;min-width:0;}
.i-input-card.warning{border-top-color:#d39959;background:#33362f;}
.i-input-card>span{position:absolute;top:9px;right:9px;}.i-input-card .g-glyph{width:32px;height:32px;}
.i-input-card>b{font-size:14px;}.i-input-card>strong{font-size:24px;margin-top:7px;}.i-input-card>small{font-size:10px;}
.i-input-sources{flex:1;margin:12px 0;}.i-source{display:block;background:none;border:0;border-bottom:1px solid #5e6667;color:#c6cecf;padding:8px 0;text-align:left;line-height:1.4;width:100%;font-size:12px;}
.i-source:hover{color:#f2d5ae;}.i-input-card>.g-button{font-size:12px;}
.i-alert{background:#41392b;border-left:3px solid #cf9e5d;border-radius:3px;padding:12px 14px;color:#eed7b8!important;line-height:1.55;font-size:12px;}
.i-disclosure{border-top:1px solid #5d6366;border-bottom:1px solid #5d6366;padding:14px 0;margin-top:18px;}
.i-disclosure summary{font-weight:700;cursor:pointer;color:#e2d3b8;min-height:28px;font-size:15px;}
.i-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;}
.i-profile-card{padding:14px;border:1px solid #5e6568;background:#2b3033;border-radius:4px;display:flex;flex-direction:column;min-width:0;}
.i-profile-card.installed{border-color:#b08f5e;background:#343b39;}.i-profile-card>small{font-size:9px;letter-spacing:.065em;}.i-profile-card h4{font-size:17px;margin:10px 0;line-height:1.25;}
.i-profile-output{display:flex;gap:8px;align-items:center;}.i-profile-output b{font-size:30px;}.i-profile-output span{font-size:11px;color:#b2b8bb;}
.i-profile-card .g-note{margin:8px 0;}.i-profile-card>.g-button{margin-top:auto;font-size:12px;}
.i-profile-note{display:block;line-height:1.5;}.i-inline-warning{font-size:11px;color:#e4b982!important;line-height:1.4;}
.i-throttles{display:flex;gap:10px;margin:10px 0;}.i-throttles .g-button{flex:1;}
.i-rehearsal{background:#293032;border:1px solid #586265;padding:14px 16px;border-radius:4px;}.i-rehearsal>small{font-size:9px;letter-spacing:.09em;}.i-rehearsal>b{font-size:21px;display:block;margin-top:8px;}.i-rehearsal .g-note:last-child{margin-bottom:0;}.i-rehearsal.warning{border-left:3px solid #c29459;}
.i-work{border:1px solid #7c6d52;border-left:3px solid #d09a5b;background:#2f3334;border-radius:4px;margin:20px 0;padding:16px;}.i-work>small{font-size:10px;letter-spacing:.08em;}.i-work h3{font-size:22px;margin:8px 0;}
.i-work-stages{display:flex;gap:4px;margin:14px 0;}.i-work-stages span{flex:1;min-width:0;padding:8px 4px;background:#282d2f;color:#adb3b6;text-align:center;font-size:11px;border-bottom:2px solid #585f63;}.i-work-stages .active{background:#51422f;color:#ecd0a6;border-color:#d59b50;}.i-work-stages .done{border-color:#859a79;color:#c0d0b0;}
.i-field{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;}.i-field>span{font-size:13px;flex:1 1 250px;color:#c9cdce;}.i-field select,.i-field input{background:#1d2225;border:1px solid #818a8d;border-radius:3px;color:#edf1ee;padding:9px 10px;min-height:44px;max-width:100%;font-size:14px;}.i-field input{width:110px;}
.i-client-list{display:flex;gap:8px;flex-wrap:wrap;}
.i-tracebar{pointer-events:auto;position:absolute;bottom:166px;left:50%;transform:translateX(-50%);display:flex;gap:6px;align-items:center;padding:8px 12px;background:#202528ee;border:1px solid #898f8e;border-left:3px solid #d0a36c;border-radius:4px;max-width:calc(100% - 160px);box-shadow:0 5px 16px #0007;}
.i-tracebar>div{margin-right:14px;white-space:nowrap;}.i-tracebar small{font-size:9px;letter-spacing:.08em;display:block;color:#c4ab83;}.i-tracebar strong{font-size:12px;display:block;}
.i-trace-filter{min-height:39px;min-width:45px;background:#30383c;border:1px solid #5f676a;border-radius:3px;color:#cfd3d5;font-size:12px;padding:5px 8px;}.i-trace-filter.active{background:#614d31;border-color:#c19c65;color:#f0d6b1;}
.i-tracebar .g-button{font-size:11px;padding:6px 9px;min-height:39px;}
body.g-menu-open .i-tracebar,body.g-building-selected .i-tracebar{display:none;}
@media(max-width:700px){
 body.builder-ui[data-game-menu="plant"] .g-panel{width:calc(100% - 16px);}
 .i-plant-hero{padding:7px;gap:9px;}.i-plant-hero canvas{height:115px;width:42%;}.i-plant-title h3{font-size:20px;}.i-plant-title>small{font-size:8px;}.i-unit-status{font-size:12px;}
 .i-stat{padding:10px 9px;gap:4px;}.i-stat b{font-size:24px;}.i-stat span{font-size:10px;}.i-stat small{font-size:8px;}
 .i-inputs,.i-profile-grid{grid-template-columns:1fr;}.i-input-card{padding:12px;}.i-input-card>strong{font-size:24px;}.i-input-sources{margin:5px 0;}
 .i-throttles{gap:5px;}.i-throttles .g-button{padding:6px 7px;}.i-rehearsal>b{font-size:17px;}
 .i-tracebar{bottom:148px;max-width:calc(100% - 20px);width:calc(100% - 20px);flex-wrap:wrap;gap:5px;justify-content:space-between;padding:8px;}.i-tracebar>div{width:100%;margin:0;}.i-tracebar .g-button{font-size:10px;padding:5px;}.i-trace-filter{font-size:10px;padding:4px 6px;min-width:35px;min-height:40px;}
 .i-field .g-button{width:100%;}.i-field select{width:100%;}.i-profile-card h4{font-size:20px;}
}
@media(max-height:500px) and (min-width:701px){.i-tracebar{bottom:108px;max-width:calc(100% - 190px);}.i-plant-hero canvas{height:110px;}}
@media(prefers-reduced-motion:reduce){.i-tracebar *, .i-profile-card *{transition:none!important;animation:none!important;}}

/* Forged amber actions remain recognizable without candy gloss. */
body.builder-ui #run-toggle,body.builder-ui .g-build{background:linear-gradient(130deg,#e8a853,#d5802f 58%,#ad5928);border-color:#e8b775;}
body.builder-ui :is(.g-button.green,.g-button.amber,.f-button.primary,.g-selection-action.upgrade){background:linear-gradient(#dca05a,#be752f);border-color:#dcb07a;}
body.builder-ui .g-profile::after,body.builder-ui .g-resource::after{content:"";position:absolute;right:5px;bottom:5px;width:3px;height:3px;border-radius:50%;background:#80908f88;box-shadow:0 1px 1px #000;pointer-events:none;}

@media(max-width:700px){body.builder-ui.i-tracing .hud-mapcontrols{bottom:254px;}}
