#js-tool-container-lestnica-s-ploshchadkoy .l56-app { --l56-pine: #6b8f4e; --l56-pine-top: #8fae6d; --l56-platform: #b08d57; display: flex; flex-direction: column; gap: 22px; color: var(--text-primary); }
html[data-theme="dark"] #js-tool-container-lestnica-s-ploshchadkoy .l56-app { --l56-pine: #5d7a45; --l56-pine-top: #7c9a63; --l56-platform: #93764a; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px 18px; margin: 0 0 14px; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-legend { padding: 0 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; align-items: end; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-field { display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-chk-row { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-chk-row .tbcalc-hint { flex-basis: 100%; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-chk { width: 22px; height: 22px; accent-color: var(--accent-primary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-outcome { display: flex; flex-direction: column; gap: 18px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-hero { border: 1px solid var(--border-color); border-left: 4px solid var(--l56-pine-top); border-radius: var(--radius-md); background: var(--bg-tertiary); padding: 20px 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 26px; align-items: center; min-height: 148px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-hero-label { font-size: 0.9rem; color: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-hero-value { font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 700; line-height: 1.05; color: var(--l56-pine-top); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-hero-value2 { font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 700; line-height: 1.05; color: var(--text-primary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-hero-note { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--text-secondary); grid-column: 1 / -1; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-unit { font-size: 1rem; color: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-route { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px 12px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-route-track { display: flex; align-items: stretch; gap: 0; min-height: 58px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 6px 12px 6px 14px; min-width: 44px; flex-grow: 1; position: relative; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg::before { content: ""; position: absolute; left: 0; top: 0; bottom: -9px; width: 1px; background: var(--border-color); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg:first-child::before { display: none; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg-name { display: inline-flex; align-items: center; gap: 7px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg-name::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--l56-pine); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg-pl .l56-seg-name::before { background: var(--l56-platform); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg-f2 .l56-seg-name::before { background: var(--accent-primary); }
#js-tool-container-lestnica-s-ploshchadkoy 
#js-tool-container-lestnica-s-ploshchadkoy .l56-seg-val { font-size: 0.98rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-primary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-route-caption { margin: 0; font-size: 0.84rem; color: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .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-lestnica-s-ploshchadkoy .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-status.bad { border-left-color: var(--danger); background: var(--danger-light); color: var(--text-primary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-derived { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { #js-tool-container-lestnica-s-ploshchadkoy .l56-derived { grid-template-columns: repeat(3, 1fr); } }
#js-tool-container-lestnica-s-ploshchadkoy .l56-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-lestnica-s-ploshchadkoy .tbcalc-result-label { font-size: 0.83rem; color: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-result-row { display: flex; align-items: baseline; gap: 8px; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-result-value { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 650; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-inline-val { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 650; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-preview { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-lestnica-s-ploshchadkoy l56-unused { display: none; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.84rem; color: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-legend-item { display: flex; align-items: center; gap: 7px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-dot-f1 { background: var(--l56-pine); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-dot-pl { background: var(--l56-platform); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-dot-f2 { background: var(--accent-light); border: 1px solid var(--accent-primary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-analysis { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-check-chip { grid-row: 1 / 3; align-self: center; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-check-ok .l56-check-chip { background: var(--success-light); color: var(--success); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-check-warn .l56-check-chip { background: var(--warning-light); color: var(--warning); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-check-bad .l56-check-chip { background: var(--danger-light); color: var(--danger); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-check-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-check-note { font-size: 0.83rem; color: var(--text-muted); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-details { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-table-caption { caption-side: top; text-align: left; padding: 10px 14px; font-size: 0.84rem; color: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-table th, #js-tool-container-lestnica-s-ploshchadkoy .tbcalc-table td { padding: 8px 14px; text-align: left; border-top: 1px solid var(--border-color); }
#js-tool-container-lestnica-s-ploshchadkoy .tbcalc-table td:nth-child(2), #js-tool-container-lestnica-s-ploshchadkoy .tbcalc-table th:nth-child(2) { text-align: right; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-limits { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 600px) { #js-tool-container-lestnica-s-ploshchadkoy .tbcalc-grid-2, #js-tool-container-lestnica-s-ploshchadkoy .tbcalc-grid-3 { grid-template-columns: 1fr; } #js-tool-container-lestnica-s-ploshchadkoy .l56-route-track { flex-direction: column; border-bottom: 0; padding-bottom: 0; } #js-tool-container-lestnica-s-ploshchadkoy .l56-seg { flex-direction: row; align-items: baseline; justify-content: space-between; min-height: 40px; } #js-tool-container-lestnica-s-ploshchadkoy .l56-seg::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; } #js-tool-container-lestnica-s-ploshchadkoy .l56-hero { grid-template-columns: 1fr; } #js-tool-container-lestnica-s-ploshchadkoy .l56-rot { text-align: left; padding-left: 0; border-left: 0; border-top: 1px solid var(--border-color); padding-top: 10px; } #js-tool-container-lestnica-s-ploshchadkoy .l56-draw { padding: 12px 10px 10px; } }

#js-tool-container-lestnica-s-ploshchadkoy .l56-stack { display: flex; flex-direction: column; gap: 16px; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-rot { display: flex; flex-direction: column; gap: 3px; text-align: right; padding-left: 22px; border-left: 1px solid var(--border-color); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-rot-main { font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--l56-pine-top); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-rot-sub { font-size: 0.78rem; color: var(--text-muted); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-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-lestnica-s-ploshchadkoy .l56-draw-body { width: 100%; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-draw-body svg { display: block; width: 100%; height: auto; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-draw-cap { font-size: 0.84rem; line-height: 1.45; color: var(--text-muted); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-flight1 { fill: var(--l56-pine); fill-opacity: 0.16; stroke: var(--text-primary); stroke-width: 1.2; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-flight2 { fill: var(--accent-primary); fill-opacity: 0.1; stroke: var(--text-primary); stroke-width: 1.2; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-landing { fill: var(--l56-platform); fill-opacity: 0.18; stroke: var(--text-primary); stroke-width: 1.2; stroke-dasharray: 5 3; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-step { stroke: var(--text-secondary); stroke-width: 0.8; opacity: 0.75; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-arrow { stroke: var(--accent-primary); fill: var(--accent-primary); stroke-width: 1.4; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-door { stroke: var(--warning); fill: none; stroke-width: 1.1; stroke-dasharray: 4 3; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-label { font-size: 11px; fill: var(--text-secondary); }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-dim { stroke: var(--text-secondary); stroke-width: 1; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-dimtext { font-size: 11px; fill: var(--text-secondary); font-variant-numeric: tabular-nums; }
#js-tool-container-lestnica-s-ploshchadkoy .l56-svg-dimtext, #js-tool-container-lestnica-s-ploshchadkoy .l56-svg-label { paint-order: stroke; stroke: var(--bg-secondary); stroke-width: 4px; stroke-linejoin: round; }