.factory-page{--factory-accent:#92ddc3;--factory-line:#344b50;--factory-muted:#a9bfbe;max-width:1440px;margin:0 auto;padding:30px 28px 80px;background:linear-gradient(155deg,#102322f5,#101a24fa 48%,#172222f5);color:#edf4ee;min-height:90vh;border:1px solid #345047;border-radius:12px;font-size:14px}.factory-page *{box-sizing:border-box}.factory-actions,.factory-detail-heading,.factory-heading,.factory-section-title,.factory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.factory-heading{padding:8px 0 26px;border-bottom:1px solid var(--factory-line)}.factory-heading h1{display:flex;align-items:center;gap:12px;font-size:32px;margin:10px 0}.factory-heading h1 svg{width:34px;height:34px;color:#9cddc2}.factory-heading p,.factory-page p{line-height:1.8;color:#bdd0ce}.factory-eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:700;color:#b8d0bd}.factory-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:10px 14px;border:1px solid #506761!important;background:#233833!important;color:#e0f0e7!important;font-size:12px;font-weight:700;border-radius:7px;cursor:pointer;text-decoration:none;line-height:1.4}.factory-button.primary{background:#b6dfbb!important;color:#14342b!important;border-color:#b6dfbb!important}.factory-button:disabled{opacity:.4;cursor:not-allowed}.factory-button:not(:disabled):hover{filter:brightness(1.12)}.factory-editor button:focus-visible,.factory-page a:focus-visible,.factory-page button:focus-visible{outline:2px solid #ffe09d;outline-offset:3px}.factory-toolbar{margin:22px 0}.factory-scopes{display:flex;flex-wrap:wrap;gap:5px;background:#0b181b;padding:5px;border:1px solid #304440;border-radius:9px}.factory-scopes button,.factory-tabs button{background:none;border:0;color:#b9ceca;padding:11px 17px;display:flex;align-items:center;gap:7px;border-radius:6px;font-size:13px;cursor:pointer}.factory-scopes button.active{background:#315146;color:#e1f2d9}.factory-overview{display:grid;grid-template-columns:1.5fr 1fr 1.5fr auto;align-items:center;background:#0e1c20;border:1px solid var(--factory-line);border-radius:9px;padding:20px;gap:24px}.factory-overview>div{display:grid;gap:8px;min-width:0}.factory-overview span{color:var(--factory-muted);font-size:11px}.factory-overview b{font-size:22px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.factory-overview small{font-size:13px;font-weight:400;color:#9eb9b0}.factory-caption{font-size:11px!important;color:#9bb6ae!important;line-height:1.8}.factory-tabs{display:flex;gap:16px;margin:26px 0 20px;border-bottom:1px solid var(--factory-line)}.factory-tabs button{border-radius:0;padding:13px 0;border-bottom:2px solid transparent}.factory-tabs button.active{color:#cce9cb;border-color:#b2dca9}.factory-tabs span{background:#34433d;padding:1px 8px;border-radius:10px}.factory-catalog{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.factory-type-card{overflow:hidden;background:#142124;border:1px solid #334b4a;border-radius:9px;min-width:0}.factory-type-card.selected{border-color:var(--factory-accent);box-shadow:0 0 0 1px var(--factory-accent)}.factory-type-card>div{padding:15px}.factory-type-card h2{font-size:14px;line-height:1.6;margin:7px 0;min-height:44px}.factory-type-card small{font-size:9px;color:#a3bdb5;line-height:1.6;display:block}.factory-type-card p{font-size:11px;margin:8px 0 16px}.factory-type-card .factory-button{width:100%;font-size:11px;padding:8px}.factory-art-button{border:0;background:#080d12;padding:0;display:block;width:100%;position:relative;cursor:pointer}.factory-art-button:disabled{cursor:default;opacity:1}.factory-art{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#080d12}.factory-owned{position:absolute;top:10px;left:10px;border-radius:4px;background:#102b24e8;color:#d1f6d0;font-size:10px;padding:4px 8px;border:1px solid #779e82}.factory-panel{background:#112024;border:1px solid #344c4b;border-radius:9px;padding:24px;margin-top:20px;min-width:0}.factory-panel h2,.factory-panel h3{display:flex;align-items:center;gap:9px;font-size:17px;margin:5px 0 15px}.factory-panel h2 svg,.factory-panel h3 svg{width:20px;height:20px;color:#a6d0b9}.factory-detail{margin-top:40px}.factory-detail-heading{border-top:1px solid var(--factory-line);padding-top:24px;margin-bottom:20px}.factory-detail-heading h2{font-size:25px;margin:8px 0}.factory-detail-heading p{margin:0;font-size:12px}.factory-production-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(230px,1fr);gap:20px}.factory-production{border:1px solid #49615b;border-radius:9px;overflow:hidden;background:#0c171d}.factory-production-art{position:relative;background:radial-gradient(ellipse at center,#29443d,#060b12);height:390px}.factory-production-art .factory-art{height:100%;object-fit:contain;background:none}.factory-status{position:absolute;left:18px;top:18px;display:flex;align-items:center;gap:7px;background:#0c1c18e8;border:1px solid #4b7963;border-radius:20px;padding:6px 11px;color:#c0e9c8;font-size:11px}.factory-status i{display:block;width:6px;height:6px;background:#b3e6a4;border-radius:50%}.factory-status.stopped{color:#f2c58e;border-color:#806140}.factory-status.stopped i{background:#f2c58e}.factory-conveyor{height:24px;background:repeating-linear-gradient(90deg,#334746 0 10px,#122223 10px 12px);border-top:3px solid #7f9284;border-bottom:3px solid #7f9284;display:flex;justify-content:space-around;overflow:hidden;contain:paint}.factory-conveyor span{width:24px;height:16px;border:1px solid #d7ad6f;background:#a17f4b;border-radius:2px;position:relative}.factory-conveyor span:after{content:"";position:absolute;left:10px;top:0;bottom:0;border-left:3px solid #e4c892}.running .factory-conveyor span{animation:factory-parcel 4s linear infinite}.factory-production-stats{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px}.factory-production-stats>div:first-child{display:grid;gap:8px}.factory-production-stats strong{font-size:29px;letter-spacing:.4px;color:var(--factory-accent);overflow-wrap:anywhere}.factory-production-stats small{font-size:11px;color:#9ab4b0}.factory-production-stats em{font-size:12px;font-style:normal}.factory-production-stats>div:last-child{display:flex;align-items:center;gap:10px;font-size:11px;line-height:1.8;color:#abc3bb}.factory-fuel{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:0 22px 22px;font-size:11px;color:#a9c4bd}.factory-fuel b{color:#e5eddb;margin-left:8px}.factory-fuel progress{width:100%;height:6px;appearance:none;border:0;border-radius:5px;background:#263c38;overflow:hidden}.factory-fuel progress::-webkit-progress-bar{background:#263c38}.factory-fuel progress::-webkit-progress-value{background:var(--factory-accent)}.factory-supply{margin:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.factory-supply>img{border-radius:14px;margin:10px 0;width:100px;height:100px}.factory-supply h4{font-size:20px;margin:10px 0 0}.factory-supply>b{margin:12px 0;font-size:12px}.factory-supply .primary{width:100%}.factory-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:18px}.factory-supply a{font-size:12px;display:inline-flex;align-items:center;gap:6px;color:#b9dbbd}.factory-upgrades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}.factory-upgrades article{background:#192b2c;border:1px solid #3d5550;border-radius:7px;padding:18px;min-width:0}.factory-upgrades article>div:first-child{display:flex;gap:13px;align-items:center}.factory-upgrades article>div:first-child>svg{color:#b5d4b2;width:25px}.factory-upgrades article span{display:grid;gap:4px;font-weight:700}.factory-upgrades small{font-size:10px;color:#a2b9b0;font-weight:400}.factory-upgrades p{font-size:11px;min-height:38px}.factory-upgrades button{width:100%;font-size:11px}.factory-level-track{display:flex;gap:4px;margin:16px 0}.factory-level-track i{height:5px;flex:1;background:#324745;border-radius:2px}.factory-level-track i.on{background:#b4d6a4}.factory-finance-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.factory-section-title h3{margin:0}.factory-section-title>small{color:#9ab1a7;font-size:11px}.factory-accent{color:#c2e3af}.factory-share-bar{display:flex;height:10px;border-radius:5px;overflow:hidden;margin:22px 0 12px}.factory-share-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid #304440;font-size:12px}.factory-share-row small{margin-left:8px;color:#b6d1ad;font-size:9px}.factory-share-row button{border:0;background:none;color:#dfbd89;cursor:pointer}.factory-earning{display:grid;gap:10px;border-bottom:1px solid #334c45;padding:16px 0}.factory-earning span{display:flex;justify-content:space-between;color:#afc4b6;font-size:11px}.factory-earning small{color:#9ab3a8;font-size:10px}.factory-earning b{color:#e1ebd9}.factory-history{font-size:12px}.factory-history summary{cursor:pointer;color:#c4ddca;font-weight:700}.factory-history>div{display:grid;grid-template-columns:150px 80px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid #2f4540;overflow-wrap:anywhere}.factory-history time{font-size:10px;color:#97b2a6}.factory-managers>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid #334b44;padding:12px 0}.factory-managers>div>span{margin-right:auto}.factory-managers b{display:flex;align-items:center;gap:6px;background:#314f37;color:#d6e9ba;border:1px solid #6d8b5a;border-radius:4px;padding:5px 8px;font-size:11px}.factory-offers{display:grid;gap:16px}.factory-offers article{display:flex;gap:22px;padding:18px;border:1px solid #3e5550;border-radius:8px;background:#182a29}.factory-offers article>.factory-art{width:180px;height:180px;align-self:center;border-radius:8px}.factory-offers small{font-size:10px;color:#a6beac}.factory-offers h3{margin:7px 0}.factory-offers p{font-size:12px;margin:6px 0}.factory-empty{padding:24px 5px;color:#92aaa0!important}.factory-feedback:empty{display:none}.factory-feedback p{background:#254433;border:1px solid #668a60;padding:12px 16px;border-radius:6px}.factory-editor [role=alert],.factory-feedback [role=alert]{color:#ffc6b2}.factory-editor{max-width:570px!important}.factory-editor .factory-art{width:140px;height:140px;float:right;margin:0 0 12px 20px;border-radius:8px}.factory-editor label{display:grid;gap:9px;font-size:13px;margin:18px 0}.factory-editor input{width:100%;background:#0b1b20;color:#edf3ed;border:1px solid #577268;border-radius:6px;padding:12px}.factory-editor p{font-size:13px;line-height:1.9}.factory-editor .factory-actions{clear:both}.factory-price{font-size:20px!important;color:#e8ce95}.factory-editor small{color:#b3c6b7}@keyframes factory-parcel{to{transform:translateX(90px)}}@media (prefers-reduced-motion:reduce){.running .factory-conveyor span{animation:none}}@media (max-width:1200px){.factory-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.factory-overview{grid-template-columns:1fr 1fr}.factory-upgrades{grid-template-columns:repeat(2,minmax(0,1fr))}.factory-production-art{height:340px}}@media (max-width:760px){.factory-page{padding:20px 14px 50px}.factory-heading{align-items:flex-start;flex-direction:column}.factory-heading h1{font-size:28px}.factory-overview{gap:20px;padding:16px}.factory-overview b{font-size:18px}.factory-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.factory-type-card>div{padding:12px}.factory-finance-grid,.factory-production-grid{grid-template-columns:1fr}.factory-detail-heading{align-items:flex-start;flex-direction:column}.factory-production-art{height:340px}.factory-supply{position:relative;padding-right:135px;min-height:280px}.factory-supply>img{position:absolute;right:20px;top:60px}.factory-supply .factory-actions{margin-right:-110px}.factory-supply .primary{width:auto}.factory-panel{padding:18px}.factory-upgrades{gap:10px}.factory-upgrades article{padding:12px}.factory-production-stats strong{font-size:23px}.factory-history>div{grid-template-columns:1fr 1fr}.factory-history>div>span{grid-column:1/-1}.factory-offers article{padding:12px;gap:14px;flex-wrap:wrap}.factory-offers article>.factory-art{width:100%;height:210px;object-fit:contain}.factory-managers>div,.factory-section-title{flex-wrap:wrap}.factory-scopes button{padding:10px;font-size:12px}}@media (max-width:390px){.factory-overview,.factory-upgrades{grid-template-columns:1fr}.factory-production-stats{flex-wrap:wrap}.factory-production-art{height:280px}}.factory-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.factory-work-grid article{border:1px solid #536477;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;background:#10232b}.factory-work-grid article.expired{border-color:#eaa17f}.factory-work-grid strong{color:#edc780}.factory-work-grid button{margin-top:auto}.factory-work h3{display:flex;align-items:center;gap:8px}@media(max-width:700px){.factory-work-grid{grid-template-columns:1fr}.factory-supply{padding-right:18px}.factory-supply>img{position:static;flex-shrink:0}.factory-supply .factory-actions{margin-right:0}}