:root{--v3-ink:#24362d;--v3-muted:#626d62;--v3-line:#dfe5da}*{box-sizing:border-box}body{font-size:14px;line-height:1.5}main,.workspace,.topbar>div,.page-heading>div,.staff-top>div,.product-bottom,.product-info,.cards-grid>*,.modal-columns>*,.financial-line>*{min-width:0}h1,h2,h3,h4,p,small,label,.pill,.info-box,.description,.muted,.requirement>span,.staff-top h3,.profile-name{overflow-wrap:anywhere}h3{min-height:0!important}.button{white-space:normal;min-height:42px;height:auto;line-height:1.35;text-align:center;padding:11px 15px;overflow-wrap:anywhere}.button svg{flex-shrink:0}.field{max-width:100%;min-width:0;min-height:44px;font-size:14px}.field-label{display:block;margin:10px 0 6px}.product-card,.staff-card,.order-card,.inventory-card{height:auto}.product-bottom,.staff-actions,.toolbar,.filters,.tags,.card-actions,.readiness{flex-wrap:wrap;gap:8px}.product-bottom strong{white-space:normal;font-variant-numeric:tabular-nums}.product-visual{position:relative;height:170px;min-height:150px;background:#f7f8f4;border-radius:14px;overflow:hidden}.product-visual img{width:100%;height:100%;object-fit:contain;padding:22px 12px 16px}.product-visual.real-photo{background:white}.product-visual.real-photo img{mix-blend-mode:multiply}.photo-pending{position:absolute;bottom:4px;left:10px;right:10px;font-size:11px;color:#727970;text-align:center}.tiny-gear{object-fit:contain;background:white;flex-shrink:0}.image-error:after{content:'Изображение временно недоступно';display:grid;place-items:center;position:absolute;inset:30px 10px;font-size:13px;color:#626d62}.stat small{white-space:normal!important}.stats-grid,.cards-grid,.catalog-grid,.inventory-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat strong,.balance,#money{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat strong{font-size:clamp(22px,3vw,34px)}.staff-top{align-items:flex-start}.staff-top h3{font-size:16px}.staff-card p,.description,.info-box{font-size:13px;line-height:1.55}.staff-skills{gap:8px;flex-wrap:wrap}.topbar{height:auto!important;min-height:82px;gap:16px;padding-block:16px}.topbar>div:first-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#company-title{overflow-wrap:anywhere;min-width:0;max-width:38ch}.top-actions{flex-wrap:wrap;justify-content:flex-end;min-width:0}.balance{max-width:100%;height:auto;min-height:40px;flex-wrap:wrap}.page-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}.page-footer{gap:12px;flex-wrap:wrap}.tabs{max-width:100%;overflow:auto}.checkline{align-items:flex-start;min-width:0;gap:10px}.checkline input{flex-shrink:0;margin-top:4px}.checkline span{min-width:0}.modal-actions{flex-wrap:wrap}.modal-columns{grid-template-columns:repeat(2,minmax(0,1fr))}#modal{width:min(1100px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border-radius:22px}#modal-body{max-height:calc(100dvh - 96px);overflow:auto;overscroll-behavior:contain;padding:28px;scrollbar-gutter:stable}#modal-body>h2{padding:0}.modal-top{padding:16px 24px;gap:12px;min-height:60px}#modal-label{overflow-wrap:anywhere}.modal-top .icon-button{flex-shrink:0}.estimate-header{padding:0 0 24px;border-bottom:1px solid var(--v3-line);margin-bottom:24px}.estimate-header h2{font-size:clamp(24px,4vw,36px);line-height:1.2;margin:8px 0 12px}.estimate-header p{color:var(--v3-muted)}.readiness{display:flex}.pill{display:inline-block;font-size:12px;padding:5px 10px;border-radius:8px;background:#eef1e9;color:#5d685a;max-width:100%}.pill.ready{background:#e5efd8;color:#49622a}.pill.attention{background:#fff1d9;color:#785b2e}.estimate-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:26px;align-items:start}.estimate-detail,.estimate-summary{min-width:0}.estimate-section{position:relative;border:1px solid var(--v3-line);border-radius:16px;padding:22px;margin-bottom:16px;background:#fff}.estimate-section h3{font-size:19px;margin:0 0 20px;padding-right:34px}.section-number{position:absolute;right:20px;top:20px;font-size:12px;color:#85917c}.estimate-gear{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0e8}.estimate-gear img{width:54px;height:54px;object-fit:contain;background:white;border-radius:9px}.estimate-gear strong{font-size:13px;display:block;overflow-wrap:anywhere}.estimate-gear small,.estimate-line small,.schedule-row small,.candidate-detail small{display:block;color:var(--v3-muted);font-size:12px;margin-top:4px;line-height:1.5}.estimate-gear>span{font-size:13px;font-variant-numeric:tabular-nums;max-width:9ch;overflow-wrap:anywhere;text-align:right}.estimate-gear details{font-size:12px}.estimate-details{margin-top:18px}.estimate-details summary,details summary{cursor:pointer;padding:10px 0;line-height:1.5;overflow-wrap:anywhere}.estimate-summary{background:#f2f5ec;border:1px solid #dce4d2;border-radius:18px;padding:24px}.estimate-line{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 0;border-bottom:1px solid #dfe5d8}.estimate-line>div,.estimate-line>span{flex:1;min-width:0}.estimate-line strong{font-variant-numeric:tabular-nums;text-align:right;flex-shrink:0;max-width:50%;overflow-wrap:anywhere}.estimate-line.profit{padding:20px 0;font-size:18px;font-weight:700;color:#385c25}.launch-total{margin:24px 0 12px}.launch-total>*{display:block;overflow-wrap:anywhere}.launch-total strong{font-size:clamp(28px,4vw,36px);margin:8px 0;font-variant-numeric:tabular-nums}.launch-total span{font-size:12px;color:var(--v3-muted)}.estimate-actions{display:grid;gap:8px;margin-top:22px}.crew-row{margin:18px 0 0;padding-top:18px;border-top:1px solid var(--v3-line)}.crew-title{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.crew-title h4{margin:0;font-size:15px}.crew-metrics{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;margin:14px 0}.crew-reason{padding:10px 12px;background:#fff3df;border-radius:10px;color:#785b2e;font-size:13px}.candidate-detail{padding:12px 0;border-top:1px solid #edf0e8;font-size:13px}.candidate-detail.unavailable{color:#805c36}.schedule-row{display:flex;gap:16px;justify-content:space-between;padding:12px 0;border-top:1px solid #e6ebe0;font-size:13px}.schedule-row>div{min-width:0}.schedule-row>span{text-align:right;flex-shrink:0}.quote-feedback{font-size:13px;border-left:3px solid #9eb972;padding-left:12px}.hr-panel{padding:26px;background:#fff;border:1px solid var(--v3-line);border-radius:18px;margin-top:24px}.hr-stats,.hr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.hr-stats strong,.hr-stats small{display:block}.hr-stats strong{font-size:22px;overflow-wrap:anywhere}.hr-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.hr-fields label{font-size:13px}.hr-fields .field{margin-top:6px}.warehouse-scene{border-radius:20px;background:#eaf0ec}.scene-wrap{overflow:hidden;border-radius:20px}.cards-grid>*{animation:v3-enter .16s ease-out}dialog[open]{animation:v3-enter .16s ease-out}progress,.progress i{transition:width .25s ease}button{transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #72964a;outline-offset:3px}@keyframes v3-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:760px){.estimate-layout,.modal-columns{grid-template-columns:minmax(0,1fr)}.estimate-summary{padding:20px}.estimate-section{padding:18px}.hr-fields{grid-template-columns:1fr}.topbar{align-items:flex-start!important}.topbar>div:first-child{flex:1}.top-actions{gap:8px!important}.stats-grid{gap:10px}.stat{padding:14px!important}.stat strong{font-size:22px}.product-visual{height:160px}.page-heading h1{font-size:28px}#modal-body{padding:20px 16px}.modal-top{padding:14px 16px}.estimate-header{padding-bottom:18px}.estimate-gear{gap:8px;grid-template-columns:44px minmax(0,1fr) auto}.estimate-gear img{width:44px;height:44px}.estimate-gear>span{max-width:7ch}.hr-panel{padding:18px}}
@media(max-width:430px){.topbar{flex-wrap:wrap;padding-inline:16px!important}.topbar>div:first-child{flex-basis:100%}.top-actions{width:100%;justify-content:space-between}.stats-grid{grid-template-columns:minmax(0,1fr)}.hr-stats{grid-template-columns:1fr}.estimate-line{gap:10px}.estimate-line.profit{font-size:17px}.staff-actions .button{width:100%}.filters>*{max-width:100%}.mini-controls{flex-wrap:wrap}.modal-top #modal-label{font-size:12px}.cards-grid,.catalog-grid{grid-template-columns:minmax(0,1fr)}.financial-line{gap:10px}.financial-line strong{max-width:50%;overflow-wrap:anywhere}.page-footer>span{min-width:0}.workshop-controls,.mini-layout,.compare-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduced-motion *,body.reduced-motion *:before{animation:none!important;transition:none!important}
