#js-tool-container-winder-stair-180-calculator .w18-app { --w18-wood: #b8652a; --w18-wood-2: #8a6d4d; --w18-ok: #18996b; --w18-bad: #cf4f42; display: flex; flex-direction: column; gap: 22px; color: var(--text-primary); }
html[data-theme="dark"] #js-tool-container-winder-stair-180-calculator .w18-app { --w18-wood: #d97706; --w18-wood-2: #a1866a; --w18-ok: #3fae7f; --w18-bad: #dd6b5e; }
#js-tool-container-winder-stair-180-calculator .tbcalc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px 18px; margin: 0 0 14px; }
#js-tool-container-winder-stair-180-calculator .tbcalc-legend { padding: 0 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-winder-stair-180-calculator .tbcalc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
#js-tool-container-winder-stair-180-calculator .tbcalc-field { display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-winder-stair-180-calculator .tbcalc-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-winder-stair-180-calculator .w18-outcome { display: flex; flex-direction: column; gap: 20px; }
#js-tool-container-winder-stair-180-calculator .w18-sheet { display: grid; grid-template-columns: minmax(230px, 5fr) 7fr; gap: 8px 28px; align-items: stretch; border: 1px solid var(--border-color); border-top: 3px solid var(--w18-wood); border-radius: var(--radius-md); background: var(--bg-tertiary); padding: 16px 20px 18px; }
#js-tool-container-winder-stair-180-calculator .w18-hero { display: flex; flex-direction: column; gap: 10px; min-width: 0; justify-content: flex-start; }
#js-tool-container-winder-stair-180-calculator .w18-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
#js-tool-container-winder-stair-180-calculator .w18-hero-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); line-height: 1.3; }
#js-tool-container-winder-stair-180-calculator .w18-stamp { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 3px 8px; border: 1px solid var(--border-color); border-radius: 3px; color: var(--text-secondary); white-space: nowrap; }
#js-tool-container-winder-stair-180-calculator .w18-hero.is-ok .w18-stamp { color: var(--w18-ok); border-color: var(--w18-ok); }
#js-tool-container-winder-stair-180-calculator .w18-hero.is-bad .w18-stamp { color: var(--w18-bad); border-color: var(--w18-bad); }
#js-tool-container-winder-stair-180-calculator .w18-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-winder-stair-180-calculator .w18-hero-value { font-size: clamp(2.7rem, 7vw, 3.7rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text-primary); }
#js-tool-container-winder-stair-180-calculator .w18-hero-note { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-secondary); }
#js-tool-container-winder-stair-180-calculator .w18-fan-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#js-tool-container-winder-stair-180-calculator .w18-fan { min-width: 0; }
#js-tool-container-winder-stair-180-calculator .w18-fan svg { display: block; width: 100%; height: auto; }
#js-tool-container-winder-stair-180-calculator .w18-fan-desc { margin: 0; font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }
#js-tool-container-winder-stair-180-calculator .w18-groups { display: flex; flex-direction: column; gap: 14px; }
#js-tool-container-winder-stair-180-calculator .w18-group-cap { display: flex; align-items: center; gap: 12px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-secondary); }
#js-tool-container-winder-stair-180-calculator .w18-group-cap::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border-color); }
#js-tool-container-winder-stair-180-calculator .w18-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; padding-top: 6px; }
#js-tool-container-winder-stair-180-calculator .w18-fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#js-tool-container-winder-stair-180-calculator .w18-fact-label { font-size: 0.7rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); }
#js-tool-container-winder-stair-180-calculator .w18-fact-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
#js-tool-container-winder-stair-180-calculator .w18-fact-value { font-size: 1.3rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-primary); }
#js-tool-container-winder-stair-180-calculator .tbcalc-status { border: 1px solid var(--border-color); border-left: 3px solid var(--accent-primary); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; line-height: 1.5; color: var(--text-primary); }
#js-tool-container-winder-stair-180-calculator .tbcalc-status::before { content: "\41F \440 \43E \442 \43E \43A \43E \43B  \440 \430 \441 \447 \451 \442 \430 "; display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
#js-tool-container-winder-stair-180-calculator .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); }
#js-tool-container-winder-stair-180-calculator .tbcalc-status.warn::before { color: var(--warning); }
#js-tool-container-winder-stair-180-calculator .w18-details { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-winder-stair-180-calculator .tbcalc-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-winder-stair-180-calculator .w18-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
#js-tool-container-winder-stair-180-calculator .w18-table-caption { caption-side: top; text-align: left; padding: 12px 14px 10px; font-size: 0.84rem; color: var(--text-secondary); }
#js-tool-container-winder-stair-180-calculator .w18-table th { padding: 9px 14px; text-align: left; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); white-space: nowrap; }
#js-tool-container-winder-stair-180-calculator .w18-table td { padding: 8px 14px; border-top: 1px solid var(--border-color); }
#js-tool-container-winder-stair-180-calculator .w18-table td:not(:first-child), #js-tool-container-winder-stair-180-calculator .w18-table th:not(:first-child) { text-align: right; }
#js-tool-container-winder-stair-180-calculator .w18-table td:first-child { font-weight: 650; }
#js-tool-container-winder-stair-180-calculator .w18-row-total td { border-top: 3px double var(--border-color); font-weight: 650; background: var(--bg-secondary); }
#js-tool-container-winder-stair-180-calculator .w18-limits { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 880px) { #js-tool-container-winder-stair-180-calculator .w18-sheet { grid-template-columns: 1fr; } #js-tool-container-winder-stair-180-calculator .w18-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { #js-tool-container-winder-stair-180-calculator .tbcalc-grid-2 { grid-template-columns: 1fr; } #js-tool-container-winder-stair-180-calculator .w18-facts { gap: 10px 16px; } }