#js-tool-container-lestnichnyy-marsh .l57-app { --l57-graphite: #5c6570; --l57-wet: #7f8b98; display: flex; flex-direction: column; gap: 22px; color: var(--text-primary); }
html[data-theme="dark"] #js-tool-container-lestnichnyy-marsh .l57-app { --l57-graphite: #8a93a0; --l57-wet: #6b7684; }
#js-tool-container-lestnichnyy-marsh .tbcalc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px 18px; margin: 0 0 14px; }
#js-tool-container-lestnichnyy-marsh .tbcalc-legend { padding: 0 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-lestnichnyy-marsh .tbcalc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
#js-tool-container-lestnichnyy-marsh .tbcalc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
#js-tool-container-lestnichnyy-marsh .tbcalc-field { display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-lestnichnyy-marsh .tbcalc-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-lestnichnyy-marsh .l57-outcome { display: flex; flex-direction: column; gap: 18px; }
#js-tool-container-lestnichnyy-marsh .l57-hero { border: 1px solid var(--border-color); border-left: 4px solid var(--l57-graphite); border-radius: var(--radius-md); background: var(--bg-tertiary); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 22px; min-height: 148px; align-items: center; }
#js-tool-container-lestnichnyy-marsh .l57-hero-main { display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-lestnichnyy-marsh .l57-hero-label { font-size: 0.9rem; color: var(--text-secondary); }
#js-tool-container-lestnichnyy-marsh .l57-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-lestnichnyy-marsh .l57-hero-value { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 700; line-height: 1.05; color: var(--l57-graphite); }
#js-tool-container-lestnichnyy-marsh .l57-hero-note { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--text-secondary); grid-column: 1 / -1; }
#js-tool-container-lestnichnyy-marsh .tbcalc-unit { font-size: 1rem; color: var(--text-secondary); }
#js-tool-container-lestnichnyy-marsh .l57-ratio { display: flex; flex-direction: column; gap: 2px; text-align: right; padding-left: 18px; border-left: 1px solid var(--border-color); }
#js-tool-container-lestnichnyy-marsh .l57-ratio-main { font-size: 1.15rem; font-weight: 700; }
#js-tool-container-lestnichnyy-marsh .l57-ratio-sub { font-size: 0.8rem; color: var(--text-muted); }
#js-tool-container-lestnichnyy-marsh .l57-profile { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px 12px; min-height: 208px; }
#js-tool-container-lestnichnyy-marsh .l57-steps { display: flex; align-items: flex-end; flex: 1; gap: 2px; min-height: 150px; border-bottom: 2px solid var(--text-primary); }
#js-tool-container-lestnichnyy-marsh .l57-step { display: block; border: 0; border-left: 1px solid var(--border-color); background: linear-gradient(to top, var(--bg-tertiary) 0 55%, var(--l57-graphite) 55% 100%); background-size: 100% 100%; cursor: pointer; padding: 0; min-width: 14px; min-height: 10px; font: inherit; color: var(--text-muted); font-size: 10px; line-height: 1; position: relative; }
#js-tool-container-lestnichnyy-marsh .l57-step:last-child { border-right: 1px solid var(--border-color); }
#js-tool-container-lestnichnyy-marsh .l57-step::after { content: ""; position: absolute; left: 0; right: -1px; top: 0; height: 2px; background: var(--l57-graphite); }
#js-tool-container-lestnichnyy-marsh .l57-step:hover { color: var(--text-primary); }
#js-tool-container-lestnichnyy-marsh .l57-step:hover::after { background: var(--accent-primary); }
#js-tool-container-lestnichnyy-marsh .l57-step.on { background: var(--accent-light); color: var(--text-primary); }
#js-tool-container-lestnichnyy-marsh .l57-step.l57-off { display: none; }
#js-tool-container-lestnichnyy-marsh .l57-step-cap { margin: 0; font-size: 0.85rem; color: var(--text-secondary); min-height: 1.4em; }
#js-tool-container-lestnichnyy-marsh .tbcalc-status { border: 1px solid var(--border-color); border-left: 4px solid var(--accent-primary); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; line-height: 1.4; color: var(--text-secondary); }
#js-tool-container-lestnichnyy-marsh .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-lestnichnyy-marsh .tbcalc-status.bad { border-left-color: var(--danger); background: var(--danger-light); color: var(--text-primary); }
#js-tool-container-lestnichnyy-marsh .l57-derived { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { #js-tool-container-lestnichnyy-marsh .l57-derived { grid-template-columns: repeat(3, 1fr); } }
#js-tool-container-lestnichnyy-marsh .l57-derived-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 86px; }
#js-tool-container-lestnichnyy-marsh .tbcalc-result-label { font-size: 0.83rem; color: var(--text-secondary); }
#js-tool-container-lestnichnyy-marsh .tbcalc-result-row { display: flex; align-items: baseline; gap: 8px; }
#js-tool-container-lestnichnyy-marsh .tbcalc-result-value { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 650; }
#js-tool-container-lestnichnyy-marsh .l57-inline-val { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 650; }
#js-tool-container-lestnichnyy-marsh .l57-preview { display: flex; flex-direction: column; gap: 10px; }
#js-tool-container-lestnichnyy-marsh .l57-analysis { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-lestnichnyy-marsh .l57-lanes { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-lestnichnyy-marsh .l57-lane { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-lestnichnyy-marsh .l57-lane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-lestnichnyy-marsh .l57-lane-name { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }
#js-tool-container-lestnichnyy-marsh .l57-lane-head output { font-size: 1rem; font-weight: 700; }
#js-tool-container-lestnichnyy-marsh .l57-lane-track { position: relative; height: 14px; border-radius: 0; background: linear-gradient(to right, transparent 0 var(--bandL, 0%), var(--success-light) var(--bandL, 0%) var(--bandR, 0%), transparent var(--bandR, 0%) 100%), var(--bg-tertiary); border: 0; border-bottom: 1px solid var(--border-color); overflow: visible; }
#js-tool-container-lestnichnyy-marsh .l57-lane-fill { display: block; position: relative; height: 100%; width: 0; background: none; min-width: 0; }
#js-tool-container-lestnichnyy-marsh .l57-lane-fill.ok { background: none; }
#js-tool-container-lestnichnyy-marsh .l57-lane-fill.warn { background: none; }
#js-tool-container-lestnichnyy-marsh .l57-lane-fill.bad { background: none; }
#js-tool-container-lestnichnyy-marsh .l57-lane-note { font-size: 0.8rem; color: var(--text-muted); }
#js-tool-container-lestnichnyy-marsh .l57-details { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-lestnichnyy-marsh .tbcalc-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-lestnichnyy-marsh .tbcalc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
#js-tool-container-lestnichnyy-marsh .l57-table-caption { caption-side: top; text-align: left; padding: 10px 14px; font-size: 0.84rem; color: var(--text-secondary); }
#js-tool-container-lestnichnyy-marsh .tbcalc-table th, #js-tool-container-lestnichnyy-marsh .tbcalc-table td { padding: 8px 14px; text-align: left; border-top: 1px solid var(--border-color); }
#js-tool-container-lestnichnyy-marsh .tbcalc-table td:nth-child(2), #js-tool-container-lestnichnyy-marsh .tbcalc-table th:nth-child(2) { text-align: right; }
#js-tool-container-lestnichnyy-marsh .l57-limits { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 600px) { #js-tool-container-lestnichnyy-marsh .tbcalc-grid-2, #js-tool-container-lestnichnyy-marsh .tbcalc-grid-3 { grid-template-columns: 1fr; } #js-tool-container-lestnichnyy-marsh .l57-hero { grid-template-columns: 1fr; } #js-tool-container-lestnichnyy-marsh .l57-ratio { text-align: left; padding-left: 0; border-left: 0; border-top: 1px solid var(--border-color); padding-top: 8px; } #js-tool-container-lestnichnyy-marsh .l57-step { min-width: 12px; } }

#js-tool-container-lestnichnyy-marsh .l57-draw { margin: 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-secondary); }
#js-tool-container-lestnichnyy-marsh .l57-draw-body { width: 100%; }
#js-tool-container-lestnichnyy-marsh .l57-draw-body svg { display: block; width: 100%; height: auto; }
#js-tool-container-lestnichnyy-marsh .l57-draw-cap { font-size: 0.84rem; line-height: 1.45; color: var(--text-muted); }
#js-tool-container-lestnichnyy-marsh .l57-svg-step { fill: var(--l57-graphite); fill-opacity: 0.16; stroke: var(--text-primary); stroke-width: 1.2; }
#js-tool-container-lestnichnyy-marsh .l57-svg-conc { fill: var(--l57-graphite); fill-opacity: 0.34; stroke: var(--text-primary); stroke-width: 1.2; }
#js-tool-container-lestnichnyy-marsh .l57-svg-beam { stroke: var(--l57-wet); stroke-width: 3; fill: none; }
#js-tool-container-lestnichnyy-marsh .l57-svg-beam.steel { stroke: var(--accent-primary); opacity: 0.75; }
#js-tool-container-lestnichnyy-marsh .l57-svg-slab { fill: var(--text-secondary); fill-opacity: 0.14; stroke: var(--text-primary); stroke-width: 1.1; }
#js-tool-container-lestnichnyy-marsh .l57-svg-floor { stroke: var(--text-primary); stroke-width: 1.6; }
#js-tool-container-lestnichnyy-marsh .l57-svg-support { fill: none; stroke: var(--warning); stroke-width: 1.4; }
#js-tool-container-lestnichnyy-marsh .l57-svg-dim { stroke: var(--text-secondary); stroke-width: 1; }
#js-tool-container-lestnichnyy-marsh .l57-svg-dimtext { font-size: 12px; fill: var(--text-secondary); font-variant-numeric: tabular-nums; }
#js-tool-container-lestnichnyy-marsh .l57-svg-angletext { font-size: 12px; fill: var(--accent-primary); font-weight: 650; }
#js-tool-container-lestnichnyy-marsh .l57-svg-note { font-size: 11px; fill: var(--text-muted); }

#js-tool-container-lestnichnyy-marsh .l57-lane-fill::after { content: ""; position: absolute; right: -1px; top: -4px; bottom: -4px; width: 2px; background: var(--success); }
#js-tool-container-lestnichnyy-marsh .l57-lane-fill.warn::after { background: var(--warning); }
#js-tool-container-lestnichnyy-marsh .l57-lane-fill.bad::after { background: var(--danger); }
#js-tool-container-lestnichnyy-marsh .l57-lane { padding: 16px 18px 14px; gap: 12px; }
#js-tool-container-lestnichnyy-marsh .l57-profile { padding: 16px 18px 14px; }
#js-tool-container-lestnichnyy-marsh .l57-derived-item { padding: 14px 16px; }
@media (max-width: 600px) { #js-tool-container-lestnichnyy-marsh .l57-step { font-size: 0; min-width: 10px; } #js-tool-container-lestnichnyy-marsh .l57-draw { padding: 12px 10px 10px; } }
#js-tool-container-lestnichnyy-marsh .l57-svg-dimtext, #js-tool-container-lestnichnyy-marsh .l57-svg-angletext, #js-tool-container-lestnichnyy-marsh .l57-svg-note { paint-order: stroke; stroke: var(--bg-secondary); stroke-width: 4px; stroke-linejoin: round; }