#productionView{display:none;position:fixed;z-index:30;inset:0;overflow:auto;background:linear-gradient(180deg,rgba(2,15,35,.90),rgba(2,27,51,.95)),url('empire-city.png') center/cover fixed;color:#fff;font-family:var(--font);scrollbar-color:#20cfff #06152a}
#productionView.open{display:block}.production-shell{max-width:1680px;min-height:100vh;margin:auto;padding:14px 20px 28px;background:linear-gradient(135deg,rgba(3,26,53,.68),rgba(2,14,31,.54))}.production-header{height:92px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px;background:linear-gradient(110deg,#061b3af5,#064d83e8);border:2px solid #18cafa;border-radius:22px 25px 18px 24px;box-shadow:0 0 15px #12cfff63,inset 0 1px #fff5}.production-brand{display:flex;align-items:center;gap:15px}.production-brand>span{width:67px;height:62px;display:grid;place-items:center;background:linear-gradient(145deg,#14517c,#072344);border:1px solid #81defe;border-radius:14px;font-size:39px}.production-brand small{font:700 13px Barlow,Arial,sans-serif;color:#94e6ff;letter-spacing:1px}.production-brand h1{margin:0;font-size:36px;line-height:1;font-weight:900;text-shadow:0 3px #001629}.back-home,.detail-close,.mobile-back{font:800 21px var(--font);color:#201400;background:linear-gradient(#ffe45d,#ff9e13);border:2px solid #fff19a;border-radius:14px;padding:12px 22px;box-shadow:0 4px #8e5107;cursor:pointer}.production-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:13px 0}.summary-card{min-height:78px;display:flex;align-items:center;gap:12px;padding:9px 12px;background:linear-gradient(120deg,#081c38f2,#075082e8);border:1px solid #49cfff;border-radius:15px;box-shadow:0 4px 10px #00101e}.summary-card>span{font-size:31px}.summary-card>div{min-width:0;display:flex;flex-direction:column;gap:2px}.summary-card small{font:800 11px Barlow,Arial,sans-serif;color:#9bdcff;letter-spacing:.45px}.summary-card b{font-size:21px;line-height:1.05}.summary-card b i{font-size:15px;font-style:normal;color:#9fb8ce}.summary-card em{font-size:13px;font-style:normal;color:#c1d5e7}.positive{color:#a8ff62}.energy-buy button{border:0;background:none;color:#72e3ff;text-align:left;padding:2px 0 0;text-decoration:underline;font:700 13px var(--font);cursor:pointer}.strategy-strip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;margin-bottom:12px;border:1px solid #37b9eb;border-radius:14px;background:linear-gradient(100deg,#092648f5,#0a3b58ef)}.strategy-strip>div{display:flex;flex-direction:column;margin-right:auto}.strategy-strip>div b{font-size:18px;color:#ffe77c}.strategy-strip>div small{font-size:14px;color:#c6d9eb}.strategy-strip select,.compact-sort select{background:#061d39;color:#fff;border:1px solid #55ccfa;border-radius:8px;padding:7px 10px;font:700 15px var(--font)}.focus-bonus,.chain-bonus{background:#075237;border:1px solid #48e18a;border-radius:20px;padding:7px 12px;color:#b9ff9c;font-size:14px;font-weight:700}.chain-bonus{background:#123e61;border-color:#38beff;color:#9deaff}.production-tabs{display:flex;gap:7px;overflow-x:auto;padding:3px 1px 10px;scrollbar-width:thin;scrollbar-color:#2ccfff #061c31}.prod-tab{flex:none;display:flex;align-items:center;gap:9px;padding:9px 14px;color:#e5f6ff;background:linear-gradient(#123856,#071b34);border:1px solid #56bdea;border-radius:12px 12px 8px 8px;box-shadow:0 3px 8px #0008;font:800 16px var(--font);cursor:pointer}.prod-tab b{min-width:24px;text-align:center;padding:2px 5px;background:#042546;border-radius:10px;color:#82e5ff}.prod-tab.active{background:linear-gradient(#136797,#073865);border-color:#45e0ff;box-shadow:0 0 12px #13cfff65;color:white}.production-workspace{display:grid;grid-template-columns:minmax(340px,.88fr) minmax(490px,1.12fr);gap:12px;align-items:start}.catalog-pane,.detail-pane{min-width:0;background:rgba(3,21,43,.93);border:1.5px solid #2cc7fa;border-radius:19px;box-shadow:0 5px 16px #0008,inset 0 0 18px #0d80ac22}.catalog-pane{padding:12px}.catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.catalog-heading h2{font-size:24px;margin:0;line-height:1.05}.catalog-heading small{font-size:13px;color:#9cbad1}.compact-sort{display:flex;align-items:center;gap:5px;font-size:14px;color:#b8d4e7;white-space:nowrap}.compact-sort select{padding:4px 6px;font-size:14px}.catalog-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}.search-box{height:37px;flex:1;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #2479a4;background:#05172e;border-radius:10px;color:#52d8ff;font-size:24px}.search-box input{width:100%;background:none;border:0;outline:none;color:#fff;font:15px var(--font)}.search-box input::placeholder{color:#91aabf}.view-caption{font:700 10px Barlow,Arial,sans-serif;letter-spacing:.4px;color:#96b4ce;white-space:nowrap}.plant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:min(68vh,860px);overflow:auto;padding:2px 4px 2px 1px;scrollbar-color:#1286b8 #06152b;scrollbar-width:thin}.plant-tile{min-width:0;height:98px;display:flex;overflow:hidden;text-align:left;padding:0;border:1px solid #426884;border-radius:11px;background:linear-gradient(120deg,#0c2d4c,#07182f);color:white;cursor:pointer;transition:transform .12s,border-color .12s,filter .12s}.plant-tile:hover{transform:translateY(-2px);filter:brightness(1.13);border-color:#8beaff}.plant-tile.selected{border:2px solid var(--tile-color);box-shadow:0 0 8px color-mix(in srgb,var(--tile-color),transparent 40%)}.plant-tile.owned{background:linear-gradient(120deg,#0c493f,#061f30)}.plant-thumb{position:relative;flex:none;width:82px;display:grid;place-items:center;background-size:cover,200% 300%;background-position:center;background-repeat:no-repeat}.plant-thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#041b3199,transparent)}.plant-thumb i{position:relative;z-index:1;font:32px Arial,sans-serif;text-shadow:0 3px 5px #001}.plant-thumb em{position:absolute;z-index:2;left:3px;bottom:3px;font:800 8px Barlow,Arial,sans-serif;color:#fff;background:#743aac;padding:2px 3px;border-radius:4px}.plant-info{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:4px 6px}.plant-info>b{font-size:15px;line-height:1.03;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plant-info>small{font-size:12px;color:#b4ccdf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plant-metrics,.plant-footer{display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:11px;color:#c0d5e5}.plant-footer{margin-top:2px}.plant-footer strong{font:800 10px Barlow,Arial,sans-serif;color:#a8ff69;letter-spacing:.2px}.plant-footer .price{color:#ffe477}.plant-footer .locked{color:#cfb4ff}.tile-profit{color:#78dffc;font-weight:700}.tile-profit.loss{color:#ff9d7f}.catalog-note{margin-top:8px;padding:8px 10px;border-left:3px solid #ffd94b;background:#102d44;border-radius:0 8px 8px 0;font-size:13px;color:#d8e9f5}.catalog-note b{color:#ffe57c}.no-plants{grid-column:1/-1;padding:35px;text-align:center;color:#aec2d1}.detail-pane{padding:10px}.plant-detail{--detail-color:#51cafa}.detail-topline{height:30px;display:flex;align-items:center;justify-content:space-between;color:#a7d4ea;font:800 12px Barlow,Arial,sans-serif;letter-spacing:.6px}.breadcrumb i{color:#ffcc40;padding:0 5px;font-style:normal}.detail-close{width:30px;height:30px;padding:0;border-radius:9px;font-size:14px;box-shadow:none}.mobile-back{display:none}.facility-hero{display:grid;grid-template-columns:1.07fr 1fr;min-height:174px;margin:7px 0 9px;border:2px solid var(--detail-color);border-radius:16px;overflow:hidden;background:linear-gradient(110deg,#09355a,#031a33);box-shadow:0 0 10px color-mix(in srgb,var(--detail-color),transparent 55%)}.facility-image{position:relative;min-height:174px;background-repeat:no-repeat}.facility-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 50%,rgba(2,17,37,.5))}.facility-icon{position:absolute;z-index:1;left:11px;bottom:8px;font-size:43px;filter:drop-shadow(0 3px 4px #000)}.endgame-ribbon{position:absolute;z-index:2;left:7px;top:7px;background:#662ca4;border:1px solid #dfbdff;border-radius:8px;padding:4px 7px;font:800 10px Barlow,Arial,sans-serif}.facility-title{display:flex;flex-direction:column;justify-content:center;padding:10px 13px}.cat-kicker{color:var(--detail-color);font:800 11px Barlow,Arial,sans-serif;letter-spacing:.5px}.facility-title h2{margin:5px 0 10px;font-size:clamp(25px,2.1vw,39px);line-height:.98;text-shadow:0 3px #001221}.facility-status{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px;color:#c9ddee}.quality-stars{color:#64defb}.state-toggle{margin-left:auto;background:linear-gradient(#54f22a,#08a800);border:1px solid #b0ff65;border-radius:20px;color:#fff;padding:6px 12px;font:800 13px var(--font);cursor:pointer;box-shadow:0 2px 6px #0008}.state-toggle:not(.on){background:linear-gradient(#43596c,#1c3044);border-color:#7895a9}.state-toggle:disabled{opacity:.7;cursor:not-allowed}.profit-panel{display:grid;grid-template-columns:56px 1fr 92px;align-items:center;gap:9px;padding:9px 13px;margin-bottom:8px;background:linear-gradient(110deg,#003c4c,#062638);border:1.5px solid #50d7ff;border-radius:15px;box-shadow:inset 0 0 16px #0074944c}.profit-coin{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#44df87,#077249);font-size:28px}.profit-panel>div:nth-child(2){display:flex;flex-direction:column}.profit-panel small{font-size:13px;color:#bfd9e6}.profit-panel strong{font-size:clamp(24px,2.2vw,37px);line-height:1.02;color:#aaff62;text-shadow:0 2px #143c17}.profit-panel strong.loss{color:#ffad8a}.profit-panel em{font-size:14px;font-style:normal;color:#d1e2eb}.profit-chart{font-size:37px;color:#6cff6a;text-align:center}.profit-chart small{display:block;font:700 9px Barlow,Arial,sans-serif;color:#9ec6d9}.detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stat-box{min-width:0;min-height:91px;display:flex;align-items:center;gap:10px;padding:8px 9px;background:linear-gradient(125deg,#073c65,#061b34);border:1.5px solid #2a96d0;border-radius:14px}.stat-glyph{font-size:35px}.stat-box>div{min-width:0;display:flex;flex-direction:column;gap:3px}.stat-box small{font:800 11px Barlow,Arial,sans-serif;color:#80dfff;letter-spacing:.4px}.stat-box strong{font-size:19px;line-height:1.03}.stat-box strong i{font-size:12px;font-style:normal;color:#c3d7e7}.stat-box>div>span{font-size:12px;color:#c4d6e4}.storage-row{display:grid;grid-template-columns:minmax(100px,.8fr) 1.3fr;gap:10px;align-items:center;margin:8px 3px;font-size:13px;color:#d5e5ef}.storage-track{height:17px;padding:2px;border:1px solid #7cda94;border-radius:12px;background:#03241e}.storage-track i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#a7f328,#e6dd33);box-shadow:0 0 5px #c8ff61}.input-panel{padding:8px 10px;margin:6px 0;background:linear-gradient(100deg,#063d32,#06452e);border:1px solid #56cd90;border-radius:12px}.input-heading{display:flex;align-items:center;gap:7px}.input-heading>span{font-size:22px}.input-heading b{font-size:16px}.input-heading small{margin-left:auto;color:#b7dacd;font-size:12px}.input-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.input-chip{display:flex;align-items:center;gap:4px;padding:5px 8px;background:#092d38;border:1px solid #288798;border-radius:8px;font-size:13px}.input-chip.connected{border-color:#4cbf7f}.input-chip.missing{border-color:#f3a84c;background:#3c2915}.input-chip small{font-size:11px;color:#c3d6e3}.facility-meta{display:grid;grid-template-columns:100px minmax(0,1fr) 82px;gap:10px;align-items:center;margin:8px 0;padding:7px;background:linear-gradient(100deg,#092f4d,#071b33);border:1px solid #2e9bd1;border-radius:12px}.mini-scene{height:58px;display:grid;place-items:center;background-repeat:no-repeat;border-radius:8px;overflow:hidden}.mini-scene span{font-size:30px;filter:drop-shadow(0 2px 3px #000)}.meta-copy{display:flex;flex-direction:column;gap:3px}.meta-copy>b{font-size:14px}.meta-copy small{font-size:12px;color:#c2d7e6}.meta-copy strong{color:#ffda43}.meta-copy em{font-style:normal;color:#72e7ff}.yield{text-align:center;font-size:25px;color:#ffca2e}.yield b{display:block;font-size:16px;color:#d6ff52}.yield small{display:block;font:800 9px Barlow,Arial,sans-serif;color:#b2cada}.channel-title{text-align:center;font-size:17px;font-weight:800;color:#d5e9f4;padding:4px}.channel-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:3px 4px}.channel-btn{min-height:67px;display:grid;grid-template-columns:35px 1fr;grid-template-rows:1fr 1fr;align-items:center;text-align:left;gap:0 7px;padding:7px 10px;border:1px solid #42b9f7;border-radius:18px;background:linear-gradient(125deg,#0556a4,#043571);color:#fff;cursor:pointer}.channel-btn.citizens{background:linear-gradient(125deg,#158d29,#07591e);border-color:#87f663}.channel-btn.chosen{outline:2px solid #fff;box-shadow:0 0 10px #4ceaff75}.channel-btn>span{grid-row:1/3;font-size:30px}.channel-btn b{font-size:19px}.channel-btn small{font-size:11px;color:#d3e7f4}.channel-btn:disabled{opacity:.48;cursor:not-allowed}.wear-panel{padding:8px 10px;margin-top:6px;border:1px solid #41a9c7;border-radius:11px;background:#071b32}.wear-head{display:grid;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:10px;font-size:15px;font-weight:700}.wear-meter{height:14px;overflow:hidden;border-radius:10px;background:#042417;border:1px solid #1e5943}.wear-meter i{display:block;height:100%;background:linear-gradient(90deg,#31cf47,#a7ed22);border-radius:10px}.wear-head>span:last-child b{color:#b9ff32}.wear-panel>small{display:block;margin-top:5px;color:#c7d9e4;font-size:12px}.action-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:9px}.action-btn{min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;text-align:center;padding:6px 5px;border:2px solid #fff391;border-radius:18px;background:linear-gradient(#ffdb45,#ef8210);color:#271600;box-shadow:0 4px #96510b,0 5px 10px #0008;font:800 18px var(--font);cursor:pointer}.action-btn b{font-size:13px}.action-btn.upgrade{background:linear-gradient(#28a5ff,#0752b6);border-color:#c5efff;color:white;box-shadow:0 4px #073578,0 5px 10px #0008}.action-btn.priority{background:linear-gradient(#ffdc39,#e8a100)}.action-btn.build{grid-column:1/-1;min-height:66px;background:linear-gradient(#74f44c,#199917);border-color:#caffad;color:white;box-shadow:0 4px #125f10}.action-btn.locked-action{grid-column:1/-1;background:linear-gradient(#a579da,#5c358a);border-color:#e6d3ff;color:#fff;box-shadow:0 4px #38215b;cursor:not-allowed}.recipe-note{margin-top:9px;padding:8px 10px;background:#172b46;border:1px solid #7797ca;border-radius:10px;font-size:12px;color:#d2e2f0}.recipe-note>b{color:#91dfff}.recipe-note strong{color:#ffe16b}.mechanics-footer{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.mechanics-footer>div{display:flex;flex-direction:column;gap:3px;padding:9px 11px;background:linear-gradient(120deg,#082440eF,#0a3651eF);border:1px solid #277eaa;border-radius:11px}.mechanics-footer b{color:#94e8ff;font-size:14px}.mechanics-footer small{color:#c0d3e2;font-size:12px;line-height:1.15}.production-foot{display:flex;justify-content:space-between;align-items:center;padding:10px 3px 0;color:#a5bfd0;font:700 10px Barlow,Arial,sans-serif;letter-spacing:.4px}.production-foot button{background:none;color:#ffbbad;border:0;text-decoration:underline;cursor:pointer}.detail-empty{min-height:350px;display:grid;place-content:center;text-align:center;gap:10px;color:#d0e1f2}.detail-empty span{font-size:60px}.detail-empty b{font-size:23px}.detail-empty small{max-width:270px;color:#98b3c9}
@media(max-width:1080px){.production-shell{padding:10px}.production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.production-workspace{grid-template-columns:minmax(300px,.92fr) minmax(420px,1.08fr)}.plant-list{grid-template-columns:1fr}.plant-tile{height:86px}.plant-thumb{width:72px}.facility-hero{grid-template-columns:1fr 1.05fr}.mechanics-footer{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){#productionView{background-attachment:scroll}.production-shell{padding:7px 7px 30px}.production-header{height:auto;min-height:74px;padding:8px 10px;border-radius:15px}.production-brand{gap:8px}.production-brand>span{width:48px;height:46px;font-size:29px}.production-brand small{font-size:9px;letter-spacing:.4px}.production-brand h1{font-size:27px}.back-home{padding:9px 11px;font-size:15px;border-radius:10px}.production-summary{gap:6px;margin:8px 0}.summary-card{min-height:67px;padding:7px;gap:7px;border-radius:11px}.summary-card>span{font-size:24px}.summary-card small{font-size:9px}.summary-card b{font-size:17px}.summary-card em{font-size:11px}.energy-buy button{font-size:12px}.strategy-strip{gap:6px;padding:8px;margin-bottom:8px}.strategy-strip>div{width:100%}.strategy-strip>div b{font-size:15px}.strategy-strip>div small{font-size:12px}.strategy-strip select{flex:1;padding:6px;font-size:14px}.focus-bonus,.chain-bonus{padding:6px 8px;font-size:12px}.production-tabs{gap:5px;padding-bottom:7px}.prod-tab{padding:8px 10px;font-size:13px;gap:6px}.prod-tab b{min-width:20px}.production-workspace{display:block}.catalog-pane,.detail-pane{border-radius:14px;padding:8px}.catalog-heading h2{font-size:20px}.catalog-heading small{font-size:11px}.compact-sort{font-size:12px}.compact-sort select{font-size:12px}.catalog-tools{margin:7px 0}.search-box{height:34px}.search-box input{font-size:13px}.view-caption{font-size:8px}.plant-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:none;overflow:visible}.plant-tile{height:102px;border-radius:9px;flex-direction:column}.plant-thumb{width:100%;height:42px;flex:none;background-size:cover,200% 300%}.plant-thumb i{font-size:22px}.plant-thumb em{font-size:7px}.plant-info{padding:3px 5px;gap:1px}.plant-info>b{font-size:13px}.plant-info>small{font-size:10px}.plant-metrics,.plant-footer{font-size:9px}.plant-footer strong{font-size:8px}.tile-profit{font-size:9px}.catalog-note{font-size:11px;padding:7px}.detail-pane{display:none;margin-top:0}#productionView.mobile-detail .catalog-pane{display:none}#productionView.mobile-detail .detail-pane{display:block}#productionView.mobile-detail .detail-pane{display:block}.mobile-back{display:inline-flex;padding:4px 9px;background:#064d72;border:1px solid #5be1ff;border-radius:8px;color:white;font-size:12px;box-shadow:none}.detail-close{display:none}.detail-topline{height:27px}.breadcrumb{font-size:10px}.facility-hero{grid-template-columns:1fr;min-height:0;margin:5px 0 7px}.facility-image{min-height:154px;background-size:cover,200% 300%}.facility-title{padding:8px 10px}.facility-title h2{font-size:29px;margin:3px 0 7px}.facility-status{font-size:13px;gap:7px}.state-toggle{padding:5px 10px}.profit-panel{grid-template-columns:46px 1fr 58px;padding:7px 8px;gap:6px}.profit-coin{width:41px;height:41px;font-size:24px}.profit-panel small{font-size:11px}.profit-panel strong{font-size:25px}.profit-panel em{font-size:12px}.profit-chart{font-size:30px}.profit-chart small{font-size:7px}.detail-stats{gap:5px}.stat-box{min-height:77px;gap:6px;padding:6px}.stat-glyph{font-size:27px}.stat-box small{font-size:9px}.stat-box strong{font-size:15px}.stat-box strong i{font-size:10px}.stat-box>div>span{font-size:10px}.storage-row{grid-template-columns:1fr;gap:4px;font-size:11px;margin:7px 2px}.storage-track{height:14px}.input-panel{padding:7px}.input-heading b{font-size:13px}.input-heading small{font-size:10px}.input-chip{font-size:11px;padding:4px 6px}.input-chip small{font-size:9px}.facility-meta{grid-template-columns:65px 1fr 50px;gap:6px;padding:5px}.mini-scene{height:52px}.mini-scene span{font-size:25px}.meta-copy>b{font-size:12px}.meta-copy small{font-size:10px}.yield{font-size:20px}.yield b{font-size:13px}.yield small{font-size:7px}.channel-title{font-size:14px}.channel-buttons{gap:5px;padding:2px}.channel-btn{min-height:61px;grid-template-columns:30px 1fr;padding:6px;gap:0 4px;border-radius:13px}.channel-btn>span{font-size:24px}.channel-btn b{font-size:16px}.channel-btn small{font-size:9px}.wear-head{grid-template-columns:1fr auto;gap:6px;font-size:12px}.wear-meter{grid-column:1/-1;grid-row:2}.wear-head>span:last-child{grid-column:2;grid-row:1}.wear-panel>small{font-size:10px}.action-buttons{grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}.action-btn{min-height:54px;font-size:15px;border-radius:13px}.action-btn b{font-size:11px}.action-btn.priority{grid-column:1/-1}.mechanics-footer{grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}.mechanics-footer>div{padding:7px}.mechanics-footer b{font-size:11px}.mechanics-footer small{font-size:10px}.production-foot{font-size:8px;gap:8px}.detail-empty{min-height:220px}}
@media(max-width:380px){.production-shell{padding-left:5px;padding-right:5px}.production-brand>span{width:40px;height:42px}.production-brand h1{font-size:24px}.back-home{padding:8px;font-size:13px}.summary-card{gap:4px;padding:5px}.summary-card>span{font-size:21px}.summary-card b{font-size:15px}.prod-tab{padding:7px 8px;font-size:12px}.plant-tile{height:98px}.plant-info>b{font-size:12px}.plant-metrics,.plant-footer{font-size:8px}.profit-panel strong{font-size:22px}.channel-btn b{font-size:14px}}
.energy-market{display:grid;grid-template-columns:minmax(210px,.75fr) 2fr;gap:8px 14px;align-items:center;margin:0 0 12px;padding:12px 15px;background:linear-gradient(110deg,#082544f2,#07466be8);border:1px solid #4bcfff;border-radius:15px;box-shadow:0 4px 12px #0008}
.energy-market-heading{display:flex;flex-direction:column;gap:5px}.energy-market-heading b{font-size:17px;color:#ffe47a}.energy-market-heading small{font-size:12px;color:#b8d9eb}
.energy-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.energy-offers button{display:grid;grid-template-columns:1fr auto;gap:2px 7px;padding:8px 10px;background:linear-gradient(145deg,#103d5b,#061b32);border:1px solid #31b7eb;border-radius:10px;color:#fff;text-align:left;cursor:pointer;font:700 14px var(--font)}.energy-offers button span{color:#aaff64}.energy-offers button small{grid-column:1/-1;color:#aac7d8;font-size:11px}.energy-offers button:disabled,.input-controls button:disabled,.market-price-row button:disabled{opacity:.45;cursor:not-allowed}
.input-controls{display:flex;flex-wrap:wrap;align-items:center;gap:7px;width:100%;margin-top:6px}.input-controls button,.market-price-row button{padding:7px 10px;color:white;background:#07517b;border:1px solid #43cafa;border-radius:9px;font:700 13px var(--font);cursor:pointer}.input-controls button+button{background:#07533f;border-color:#4be098}.input-controls small{font-size:11px;color:#a8c3d7}
.market-price-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:8px 3px 12px;padding:8px 10px;background:#071a31;border:1px solid #286d94;border-radius:10px;color:#c6dff0;font-size:13px}.market-price-row label{display:flex;align-items:center;gap:8px;font-weight:700}.market-price-row input{width:95px;padding:6px;background:#031227;border:1px solid #38b6e9;border-radius:7px;color:white;font:700 14px var(--font)}.market-price-row span{flex:1}.market-price-row span b{color:#b8ff70}.energy-output-rule{display:grid;gap:5px;padding:12px 15px;margin:7px 0 13px;background:#102f48;border:1px solid #f2bb36;border-radius:12px;color:#d3e8f5}.energy-output-rule b{color:#ffe078}.energy-output-rule span{font-size:13px}
@media(max-width:760px){.energy-market{grid-template-columns:1fr;gap:8px;padding:9px}.energy-market-heading b{font-size:15px}.energy-offers{grid-template-columns:1fr}.energy-offers button{grid-template-columns:1fr auto;padding:7px}.input-controls{gap:5px}.input-controls button{font-size:11px}.input-controls small{width:100%}.market-price-row{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:11px}.market-price-row label{grid-column:1/-1;justify-content:space-between}.market-price-row input{width:100px}.market-price-row button{font-size:12px;padding:7px}.energy-output-rule{padding:9px;font-size:13px}}
.market-price-row .collect-cash{min-width:190px;min-height:56px;padding:11px 18px;border:2px solid #baff8a;border-radius:14px;background:linear-gradient(145deg,#39e660,#0b9c39);color:#fff;font:900 18px var(--font);box-shadow:0 4px #086328,0 5px 14px #0008,0 0 18px #3dff685e;animation:collectPulse 1.8s ease-in-out infinite;transition:transform .16s,filter .16s}.market-price-row .collect-cash:hover:not(:disabled){transform:translateY(-2px) scale(1.035);filter:brightness(1.12)}.market-price-row .collect-cash:active:not(:disabled){transform:translateY(2px) scale(.98)}.market-price-row .collect-cash:disabled{animation:none}.market-price-row .collect-cash:focus-visible{outline:3px solid #fff;outline-offset:3px}@keyframes collectPulse{0%,100%{box-shadow:0 4px #086328,0 5px 14px #0008,0 0 14px #3dff6840}50%{box-shadow:0 4px #086328,0 5px 16px #0008,0 0 27px #3dff68b8}}@media(max-width:760px){.market-price-row .collect-cash{grid-column:1/-1;width:100%;min-height:56px;font-size:18px}}@media(prefers-reduced-motion:reduce){.market-price-row .collect-cash{animation:none;transition:none}}
.production-category{display:flex;align-items:stretch;gap:4px;flex:none;padding:2px;border:1px solid #246b91;border-radius:13px;background:#04172bcc}.production-category .prod-tab{height:100%}.prod-category-add{width:38px;min-width:38px;display:grid;place-items:center;border:1px solid #8df58f;border-radius:10px;background:linear-gradient(150deg,#35e85f,#078b36);color:#fff;font:900 27px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 3px 0 #075e2c,0 0 10px #35e85f55;transition:transform .15s,filter .15s}.prod-category-add:hover{transform:translateY(-2px);filter:brightness(1.15)}.prod-category-add:active{transform:translateY(1px)}.prod-category-add:focus-visible{outline:3px solid #fff;outline-offset:2px}@media(max-width:760px){.production-category{gap:3px;padding:2px}.production-category .prod-tab{padding:8px 9px;font-size:12px;gap:5px}.prod-category-add{width:34px;min-width:34px;font-size:24px}}

.plant-sale{background:linear-gradient(145deg,#6e2937,#321d2b)!important;border-color:#ef6374!important;color:#fff0f1!important}
.quality-picker{display:flex;align-items:center;gap:6px;color:#d8f5ff;font-size:13px;font-weight:800}.quality-picker select{min-width:88px;padding:5px 8px;border:1px solid #42d9ff;border-radius:9px;background:#061c38;color:#fff;font:800 14px var(--font)}.quality-research-card{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;padding:13px 16px;border:1px solid #7b74ff;border-radius:15px;background:linear-gradient(115deg,#111f49,#103e66);box-shadow:0 0 18px #5c66ff30}.quality-research-card>div{display:grid;gap:4px}.quality-research-card small{color:#a9caff;font-size:11px;font-weight:900;letter-spacing:.8px}.quality-research-card b{color:#fff;font-size:18px}.quality-research-card span{color:#cfdfef;font-size:13px}.quality-research-card button{flex:none;padding:11px 16px;border:1px solid #7feaff;border-radius:12px;background:linear-gradient(145deg,#2487c3,#0d4d87);box-shadow:0 3px #052f55;color:white;font:800 14px var(--font);cursor:pointer}.quality-research-card button:disabled{opacity:.55;cursor:not-allowed}.quality-research-card .research-complete{padding:8px 12px;border:1px solid #72ed9d;border-radius:20px;color:#9dffbd;font-weight:900}@media(max-width:760px){.facility-status{align-items:flex-start;flex-wrap:wrap}.quality-picker{width:100%;justify-content:space-between}.quality-picker select{flex:1}.quality-research-card{align-items:stretch;flex-direction:column}.quality-research-card button{width:100%}}
.plant-operation-status{margin:8px 0 12px;padding:11px 14px;border:1px solid;border-radius:12px;font-size:14px;font-weight:800;line-height:1.4}.plant-operation-status.is-running{border-color:#40dc8b;background:linear-gradient(100deg,#0b593b,#063925);color:#c5ffdc}.plant-operation-status.is-blocked{border-color:#f1ad53;background:linear-gradient(100deg,#60421b,#302312);color:#ffe3a9}
@media(max-width:760px){.plant-operation-status{font-size:13px;padding:12px}.plant-detail .facility-status{gap:7px}}

/* Categoria sempre disponibile durante lo scorrimento del pannello. */
#productionView .production-tabs{position:sticky;top:0;z-index:25;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:8px;margin:0 0 10px;border:1px solid #2e9bcb;border-radius:14px;background:linear-gradient(115deg,rgba(4,22,43,.98),rgba(5,49,76,.98));box-shadow:0 6px 16px #0009;backdrop-filter:blur(12px);overflow:visible;scrollbar-width:none}
#productionView .production-category{position:relative;min-width:0;display:flex;align-items:stretch;gap:4px;flex:initial;padding:2px;border:1px solid #246b91;border-radius:13px;background:#04172bcc}
#productionView .production-category .prod-tab{min-width:0;min-height:44px;height:auto;flex:1;justify-content:center;padding:8px 7px;font-size:14px;white-space:normal}
#productionView .production-category>.prod-category-add{flex:none}
#productionView .strategy-strip{margin-top:12px}
@media(max-width:760px){#productionView .production-tabs{top:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:5px;margin-bottom:7px}#productionView .production-category{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(45px,auto) 22px;gap:0;padding:2px}#productionView .production-category .prod-tab{width:100%;min-height:44px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 1px;font-size:clamp(9px,2.7vw,12px);line-height:1;overflow-wrap:anywhere;text-align:center}#productionView .production-category .prod-tab span{display:block;max-width:100%;white-space:normal}#productionView .production-category .prod-tab b{min-width:18px;padding:1px 4px;font-size:9px}#productionView .production-category>.prod-category-add{justify-self:center;align-self:center;width:27px;min-width:27px;height:19px;min-height:19px;padding:0;font-size:18px;border-radius:7px;line-height:1}#productionView .production-category>.prod-category-add:hover{transform:translateY(-1px)}#productionView .strategy-strip{gap:6px;padding:8px;margin:8px 0}}
@media(max-width:380px){#productionView .production-tabs{gap:2px;padding:4px}#productionView .production-category{grid-template-rows:minmax(43px,auto) 20px;padding:1px}#productionView .production-category .prod-tab{font-size:9px;gap:2px}#productionView .production-category>.prod-category-add{width:25px;min-width:25px;height:18px;min-height:18px;font-size:16px}}

/* Schede impianto: dati operativi leggibili come un pannello di stabilimento. */
#productionView .plant-list{gap:10px;align-content:start}
#productionView .plant-tile{height:auto;min-height:184px;display:grid;grid-template-columns:minmax(92px,31%) minmax(0,1fr);align-items:stretch;padding:0;border:1px solid #386984;border-radius:15px;background:linear-gradient(145deg,#102b46,#071a31 72%);box-shadow:0 4px 10px #0007;white-space:normal}
#productionView .plant-tile.owned{background:linear-gradient(145deg,#10443d,#082339 78%)}
#productionView .plant-tile.selected{border:2px solid var(--tile-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--tile-color),transparent 78%),0 0 16px color-mix(in srgb,var(--tile-color),transparent 48%)}
#productionView .plant-thumb{width:auto;min-width:0;position:relative;min-height:100%;background-position:center;background-size:cover,200% 300%;border-right:1px solid #76d9ff55}
#productionView .plant-thumb:after{background:linear-gradient(0deg,#03162ddd,transparent 65%),linear-gradient(90deg,transparent 65%,#061c2c66)}
#productionView .plant-thumb i{font-size:48px;filter:drop-shadow(0 4px 5px #000c)}
#productionView .plant-thumb em{left:7px;top:7px;bottom:auto;padding:4px 6px;font-size:9px}
#productionView .plant-thumb .tile-level{position:absolute;z-index:2;right:6px;bottom:6px;padding:4px 6px;border:1px solid #83daf6;border-radius:7px;background:#071b2ee8;color:#fff;font:800 10px Barlow,Arial,sans-serif;letter-spacing:.3px}
#productionView .plant-info{min-width:0;justify-content:flex-start;gap:8px;padding:11px 12px}
#productionView .plant-card-heading{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
#productionView .plant-card-heading>b{min-width:0;font-size:17px;line-height:1.12;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#productionView .plant-state{flex:none;padding:4px 6px;border:1px solid #44ce86;border-radius:9px;background:#073c31;color:#9df7b9;font:800 9px Barlow,Arial,sans-serif;letter-spacing:.25px;white-space:nowrap}
#productionView .plant-state.stopped{border-color:#d69751;background:#49311c;color:#ffd99c}
#productionView .plant-product{font-size:13px;color:#c5dbee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#productionView .plant-product span{color:#75dafb}
#productionView .plant-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#productionView .plant-card-metrics>span{min-width:0;display:flex;flex-direction:column;gap:4px;padding:7px 8px;border:1px solid #35566f;border-radius:10px;background:#07172bd9}
#productionView .plant-card-metrics small{font:800 9px Barlow,Arial,sans-serif;letter-spacing:.35px;color:#94bbd3}
#productionView .plant-card-metrics b{font-size:15px;line-height:1.1;color:#a7f76b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#productionView .plant-card-metrics b i{font-size:10px;color:#b8cad8;font-style:normal;font-weight:600}
#productionView .plant-card-metrics>span:nth-child(2) b{color:#7bdcff}
#productionView .tile-stock-track{height:8px;display:block;overflow:hidden;border:1px solid #315968;border-radius:99px;background:#061321}
#productionView .tile-stock-track i{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#19bf55,#b5ee41);transition:width .35s ease}
#productionView .plant-footer{margin-top:0;gap:8px;font-size:11px;color:#b5c9d8;white-space:nowrap}
#productionView .plant-footer>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
#productionView .plant-footer strong{font:800 12px Barlow,Arial,sans-serif;color:#a9f476;white-space:nowrap}
#productionView .plant-footer strong.price{color:#ffe477}
#productionView .plant-footer strong.loss{color:#ff9d7f}
#productionView .collect-all{width:100%;min-height:76px;display:grid;grid-template-columns:52px minmax(0,1fr) auto 24px;align-items:center;gap:12px;margin:12px 0 2px;padding:10px 14px;text-align:left;border:2px solid #84e9ff;border-radius:17px;background:linear-gradient(110deg,#145a7a,#0a3251);color:#fff;box-shadow:0 4px #07334e,0 8px 16px #0007;cursor:pointer}
#productionView .collect-icon{width:46px;height:46px;display:grid;place-items:center;border:2px solid #c6f5ff;border-radius:50%;font-size:28px;font-weight:900;color:#fff}
#productionView .collect-all>span:nth-child(2){display:flex;flex-direction:column;gap:4px}
#productionView .collect-all b{font:900 15px Barlow,Arial,sans-serif;letter-spacing:.7px}
#productionView .collect-all small{color:#cae7f3;font-size:12px;line-height:1.2}
#productionView .collect-all strong{font-size:22px;color:#ffdf53;white-space:nowrap}
#productionView .collect-arrow{font-size:36px;line-height:1;color:#ddf8ff}
#productionView .collect-all:disabled{opacity:.58;cursor:default;filter:saturate(.55)}
@media(max-width:760px){
  #productionView .plant-list{grid-template-columns:1fr;gap:9px}
  #productionView .plant-tile{min-height:166px;grid-template-columns:minmax(82px,25%) minmax(0,1fr);border-radius:13px}
  #productionView .plant-thumb{height:auto;min-height:166px}
  #productionView .plant-thumb i{font-size:42px}
  #productionView .plant-info{gap:7px;padding:9px 10px}
  #productionView .plant-card-heading>b{font-size:16px}
  #productionView .plant-state{font-size:8px;padding:4px 5px}
  #productionView .plant-product{font-size:12px}
  #productionView .plant-card-metrics{gap:5px}
  #productionView .plant-card-metrics>span{padding:6px}
  #productionView .plant-card-metrics small{font-size:8px}
  #productionView .plant-card-metrics b{font-size:14px}
  #productionView .plant-footer{font-size:10px}
  #productionView .plant-footer strong{font-size:11px}
  #productionView .collect-all{min-height:68px;grid-template-columns:42px minmax(0,1fr) auto 16px;gap:8px;padding:9px}
  #productionView .collect-icon{width:38px;height:38px;font-size:23px}
  #productionView .collect-all b{font-size:12px}
  #productionView .collect-all small{font-size:10px}
  #productionView .collect-all strong{font-size:18px}
}
@media(max-width:380px){
  #productionView .plant-tile{grid-template-columns:76px minmax(0,1fr);min-height:158px}
  #productionView .plant-thumb{min-height:158px}
  #productionView .plant-info{padding:8px;gap:6px}
  #productionView .plant-card-heading{flex-direction:column;gap:4px}
  #productionView .plant-card-heading>b{font-size:15px}
  #productionView .plant-card-metrics>span{padding:5px}
  #productionView .plant-card-metrics b{font-size:13px}
  #productionView .plant-footer{font-size:9px}
  #productionView .collect-all{grid-template-columns:38px minmax(0,1fr) auto;gap:7px}
  #productionView .collect-arrow{display:none}
}

/* Avanzamento reale del ciclo e riscontro dei carichi di filiera. */
#productionView .plant-cycle-mini{display:grid;gap:4px;margin-top:-2px}
#productionView .cycle-head,#productionView .production-cycle-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#productionView .cycle-head b,#productionView .production-cycle-head b{font:800 9px Barlow,Arial,sans-serif;letter-spacing:.45px;color:#9dbbd0}
#productionView .cycle-head strong,#productionView .production-cycle-head strong{font:900 11px Barlow,Arial,sans-serif;color:#78ddff;white-space:nowrap}
#productionView .production-cycle-meter{height:9px;display:block;overflow:hidden;border:1px solid #286184;border-radius:99px;background:#041323;box-shadow:inset 0 1px 3px #0009}
#productionView .production-cycle-meter i{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#00b7ec,#63e889,#dcf65c);box-shadow:0 0 9px #44dbff88;transition:width .2s linear}
#productionView .production-cycle.is-paused .production-cycle-meter i,#productionView .plant-cycle-mini.is-paused .production-cycle-meter i{background:linear-gradient(90deg,#d08b38,#f3c654);box-shadow:none}
#productionView .production-cycle{display:grid;gap:8px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--detail-color),#fff 18%);border-radius:13px;background:linear-gradient(115deg,#071b2feF,#092a3e);box-shadow:0 3px 8px #0005}
#productionView .production-cycle .production-cycle-head b{font-size:11px;color:#d9ecf7}
#productionView .production-cycle .production-cycle-head strong{font-size:15px;color:var(--detail-color)}
#productionView .production-cycle>small{font-size:11px;line-height:1.35;color:#a9c8da}
#productionView .chain-truck-status{display:block;width:100%;margin-top:5px;padding:5px 7px;border:1px solid #296c83;border-radius:8px;background:#062735;color:#8edff2;font-size:11px;font-weight:800;line-height:1.25}
#productionView .chain-truck-status.is-delivered{border-color:#42cb83;background:#073827;color:#a8ffc2}
#productionView .chain-truck-status.is-traveling{border-color:#34c6ff;background:linear-gradient(90deg,#063955,#075a74);color:#d1f5ff;box-shadow:0 0 9px #12cfff55;}
#productionView .chain-truck-status.is-waiting{border-color:#d69b46;background:#3a2a13;color:#ffe0a0}
@media(max-width:760px){#productionView .cycle-head b{font-size:8px}#productionView .production-cycle{padding:10px 11px}#productionView .production-cycle .production-cycle-head b{font-size:10px}#productionView .chain-truck-status{font-size:10px}}
@media(max-width:380px){#productionView .production-cycle>small{font-size:10px}#productionView .chain-truck-status{font-size:9px;padding:4px 5px}}

/* Scorte interne delle materie prime: l'output resta nel magazzino personale. */
#productionView .input-storage-row{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:9px 2px;padding:11px 12px;border:1px solid #2f96b9;border-radius:12px;background:linear-gradient(100deg,#052239,#062d3d);font-size:13px}
#productionView .input-storage-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#productionView .input-storage-heading>b{color:#8feaff;font:900 12px Barlow,Arial,sans-serif;letter-spacing:.5px}
#productionView .input-storage-heading>small{color:#b4d1df;font-size:11px}
#productionView .input-storage-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 9px;padding:7px 9px;border:1px solid #1d6078;border-radius:9px;background:#041a2be8}
#productionView .input-storage-label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;color:#e7f7ff;font-size:12px}
#productionView .input-storage-label>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#productionView .input-storage-label>span{flex:none;color:#d0ebf6;font-weight:800;font-variant-numeric:tabular-nums}
#productionView .input-storage-line .storage-track{grid-column:1/-1;grid-row:2;height:13px;margin:0;border-color:#28627a;background:#02111e}
#productionView .input-storage-line .storage-track i{background:linear-gradient(90deg,#00aee6,#45dfac,#b4ee5e);box-shadow:0 0 8px #36dfb177;transition:width .25s ease}
#productionView .input-storage-line>small{grid-column:1/-1;color:#b3d1df;font-size:10px;line-height:1.25}
#productionView .input-storage-empty{padding:9px 10px;border:1px dashed #43879b;border-radius:9px;background:#041c2bc4;color:#c7dce7;font-size:12px;line-height:1.4}
@media(max-width:760px){#productionView .input-storage-row{gap:7px;margin:7px 1px;padding:9px}#productionView .input-storage-heading{align-items:flex-start;flex-direction:column;gap:3px}#productionView .input-storage-line{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:8px}#productionView .input-storage-label{grid-column:1/-1;font-size:12px}#productionView .input-storage-line .storage-track{grid-column:1/-1;grid-row:2;height:12px}#productionView .input-storage-line>small{grid-column:1/-1;font-size:10px}}
