/* Калькулятор: исходные параметры слева, живая смета справа. */
.custom-estimate{position:relative;gap:16px;padding:20px;border-color:var(--border);background:var(--surface);border-radius:var(--radius);align-self:start;min-width:0;overflow:hidden}
.custom-estimate-total{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:8px 16px}
.custom-estimate-total>span{font-size:13px}.custom-estimate-total>b{font:600 30px/1.2 var(--font-mono);white-space:nowrap;letter-spacing:-1px}
.custom-estimate-total>small{grid-column:1/-1;line-height:1.5;font-size:12px;overflow-wrap:anywhere}
.custom-estimate-parts{gap:0;padding-top:8px;border-color:var(--border)}
.custom-estimate-parts>div{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:46px;font-size:13px;border-bottom:1px solid var(--border)}
.custom-estimate-parts>div::after{content:'';position:absolute;bottom:-1px;left:0;width:var(--cost-share,0%);height:1px;background:var(--teal);opacity:.5;transition:width 550ms cubic-bezier(.16,1,.3,1),opacity .3s;pointer-events:none}
.custom-estimate-parts dt{min-width:0}.custom-estimate-parts label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font:400 13px/1.4 var(--font-body);color:var(--text-soft)}
.custom-estimate-parts input[type=checkbox]{width:17px;height:17px;min-height:0;flex:none;padding:0;margin:0;accent-color:var(--teal);cursor:pointer}
.custom-estimate-parts input:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
.custom-estimate-parts dd{font:500 13px var(--font-mono);white-space:nowrap;transition:color .25s}
.custom-estimate-parts .is-excluded [data-cost-label]{color:var(--text-muted);text-decoration:line-through;text-decoration-color:var(--border-strong)}
.custom-estimate-parts .is-excluded dd{color:var(--text-muted)}.custom-estimate-parts .is-excluded::after{opacity:0}
.custom-estimate-parts [data-cost=tax]{border-bottom:0}.custom-estimate-parts [data-cost=tax] label{cursor:default}
.custom-estimate-parts input:disabled{cursor:not-allowed;opacity:.6}
@media(min-width:1100px){.custom-calculation-body{grid-template-columns:minmax(0,1.1fr) minmax(320px,1fr);align-items:start}.custom-calculation-body>.passport-section{margin:0}}
@media(max-width:600px){.custom-estimate{padding:16px}.custom-estimate-total>b{font-size:26px}.custom-estimate-parts>div{gap:10px}.custom-estimate-parts label{font-size:12px;gap:8px}.custom-estimate-parts dd{font-size:12px}}
@media(prefers-reduced-motion:reduce){.custom-estimate *,.custom-estimate *::after{transition:none!important;animation:none!important}}

.custom-revision-field{position:relative;align-self:start}
.custom-project-editor .custom-production .passport-section .form-grid{align-items:start}
.custom-production .custom-estimate-parts>div{align-items:center}
.custom-revision-field>small{font:400 11px/1.4 var(--font-body);color:var(--text-muted);margin-top:2px}
.custom-revision-field>small.is-inactive{display:none}
.custom-revision-field>input:disabled{opacity:.5;cursor:not-allowed}
