.csw-distortion .csw-distortion__scope { color: var(--csw-text, #17345c); font-size: 14px; line-height: 1.55; }
.csw-distortion .csw-distortion__basic-copy { margin: 0 0 16px; color: #17345c; font-size: 15px; line-height: 1.55; }
.csw-distortion .csw-distortion__assumption { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #109a8c; background: #f0f8f6; color: #385066; font-size: 14px; line-height: 1.55; }
.csw-distortion .csw-distortion__figure { margin: 16px 0 20px; border: 1px solid #c9d0d8; border-radius: 10px; padding: 12px; background: #f7f8f7; }
.csw-distortion .csw-distortion__figure svg { display: block; width: 100%; height: auto; }
.csw-distortion .csw-distortion__figure text { fill: #17345c; font: 17px sans-serif; stroke: none; }
.csw-distortion .csw-distortion__figure figcaption { font-size: 13px; line-height: 1.5; color: #5e6d82; }
.csw-distortion .csw-distortion__result-figure { background: #fff; }
.csw-distortion .csw-distortion__result-figure text { font-size: 19px; }
.csw-distortion .csw-distortion__plate { fill: #e2e8f0; stroke: #17345c; stroke-width: 2; }
.csw-distortion .csw-distortion__weld { fill: #ccfbf1; stroke: #109a8c; stroke-width: 2; }
.csw-distortion [data-highlight], .csw-distortion .csw-distortion__dimension { stroke: #5e6d82; stroke-width: 1.5; fill: none; }
.csw-distortion [data-highlight].csw-distortion__highlight { stroke: #087e73; stroke-width: 4; }
.csw-distortion [data-highlight].csw-distortion__highlight text { fill: #087e73; font-weight: 700; }
.csw-distortion .csw-distortion__reference { stroke: #94a3b8; stroke-dasharray: 6 5; }
.csw-distortion .csw-distortion__formula { font-size: 16px; color: #17345c; margin: 0 0 8px; }
.csw-distortion .csw-distortion__check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin: 0; min-height: 44px; cursor: pointer; }
.csw-distortion .csw-distortion__check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #109a8c; }
.csw-distortion input[readonly] { background: #f1f5f9 !important; color: #46566c !important; border-style: dashed !important; box-shadow: none !important; }
.csw-distortion .csw-field-error { color: #b42318; font-size: 13px; line-height: 1.5; margin: 4px 0; }
.csw-distortion .csw-field-error:empty { display: none; }
.csw-distortion [aria-invalid="true"] { border-color: #b42318 !important; }
.csw-distortion .csw-distortion__result-label { margin: 0 0 4px; }
.csw-distortion .csw-distortion__total { font-size: 36px; font-weight: 800; margin: 0 0 16px; color: #17345c; }
.csw-distortion .csw-distortion__total span { font-size: 20px; }
.csw-distortion .csw-distortion__plain-result { margin: -6px 0 12px; color: #17345c; font-size: 16px; line-height: 1.5; }
.csw-distortion .csw-distortion__result-note { margin: 0; color: #5e6d82; font-size: 14px; line-height: 1.55; }
.csw-distortion .csw-distortion__breakdown { margin: 0; }
.csw-distortion .csw-distortion__breakdown > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; border-bottom: 1px solid #c9d0d8; padding: 9px 0; }
.csw-distortion .csw-distortion__breakdown dt, .csw-distortion .csw-distortion__breakdown dd { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: break-word; }
.csw-distortion .csw-distortion__breakdown dt { color: #5e6d82; text-align: left; }
.csw-distortion .csw-distortion__breakdown dd { color: #17345c; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.csw-distortion .csw-distortion__warnings { margin-top: 18px; font-size: 13px; line-height: 1.6; color: #5e6d82; }
.csw-distortion .csw-distortion__warnings ul { padding-left: 20px; }
.csw-distortion .csw-distortion__warnings li { margin-bottom: 8px; }
.csw-distortion .csw-button { margin-top: 20px; }
.csw-distortion a { color: #087e73; text-decoration: underline; }
.csw-distortion :is(input, select, button):focus-visible { outline: 2px solid #087e73 !important; outline-offset: 3px; }
.csw-distortion [data-result]:focus { outline: none; }
.csw-distortion [data-result] { text-align: left; scroll-margin-top: 20px; }
.csw-distortion [data-result][data-state="success"] { border-style: solid; }
.csw-distortion [data-result][data-state="error"] { border-style: solid; border-color: #b42318; }
.csw-distortion [data-result][data-state="empty"] { border-style: dashed; color: #5e6d82; }
.csw-distortion .csw-distortion__section { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.csw-distortion .csw-distortion__section > legend { float: none; display: block; width: 100%; padding: 0 0 12px; margin: 0; font-size: 16px; font-weight: 700; color: #17345c; line-height: 1.4; }
.csw-distortion .csw-distortion__mode { margin: 0; }
.csw-distortion .csw-distortion__segments { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.csw-distortion .csw-distortion__segments label { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 10px 12px; border: 1px solid #c9d0d8; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1.4; }
.csw-distortion .csw-distortion__segments input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #087e73; margin: 0; }
.csw-distortion .csw-distortion__segments label:has(input:checked) { background: #eef8f6; border-color: #087e73; }
.csw-distortion .csw-distortion__segments input:checked + span { color: #087e73; font-weight: 700; }
.csw-distortion .csw-distortion__section > .csw-field__hint { margin-bottom: 14px; }
.csw-distortion .csw-distortion__scope { margin: 16px 0; }
.csw-distortion .csw-distortion__example-note { margin: 20px 0 0; }
.csw-distortion .csw-distortion__updating { opacity: .45; }
.csw-distortion [data-diagram] { min-height: 90px; }
.csw-distortion .csw-distortion__warnings { text-align: left; }
@media (max-width: 480px) {
    .csw-distortion .csw-distortion__figure text { font-size: 24px; }
    .csw-distortion .csw-distortion__result-figure text { font-size: 22px; }
    .csw-distortion .csw-distortion__segments { grid-template-columns: minmax(0,1fr); }
    .csw-distortion .csw-distortion__breakdown > div { grid-template-columns: minmax(0,1fr); gap: 3px; padding: 12px 0; }
    .csw-distortion .csw-distortion__breakdown dd { text-align: left; }
    .csw-distortion [data-result] { padding: 18px; }
}
