.csw-calculator.csw-fence-materials [hidden]{display:none!important}
.csw-fence-materials .csw-form__grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px}
.csw-fence-materials .csw-field{min-width:0}.csw-fence-materials .csw-utility-wide{grid-column:1/-1}
.csw-fence-materials .csw-setup{display:block!important;padding:14px;background:#f8fafb;border:1px solid #e2e8ed;border-radius:10px;margin-bottom:18px}
.csw-fence-materials .csw-section{margin:24px 0;padding:20px 0 0;border:0;border-top:1px solid #c9d0d8;min-width:0}
.csw-fence-materials .csw-section>legend{padding:0 12px 0 0;font-size:18px;font-weight:700;max-width:100%}
.csw-fence-materials .csw-mode{border:0;margin:0;padding:0;min-width:0}
.csw-fence-materials .csw-mode>legend{font-weight:700;margin-bottom:10px}
.csw-fence-materials .csw-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#edf2f4;border-radius:8px}
.csw-fence-materials .csw-mode-option{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid transparent;border-radius:6px;cursor:pointer;min-width:0}
.csw-fence-materials .csw-mode-option:has(:checked){border-color:#aacfc9;background:#fff;box-shadow:0 1px 3px #17345c14}
.csw-fence-materials .csw-mode-option input{appearance:auto!important;width:18px!important;height:18px!important;min-height:18px!important;margin:0;accent-color:#087e73;flex-shrink:0}
.csw-fence-materials .csw-mode-option strong,.csw-fence-materials .csw-mode-option small{display:block;overflow-wrap:anywhere}
.csw-fence-materials .csw-mode-option strong{font-size:15px}.csw-fence-materials .csw-mode-option small{font-size:12px;color:#475569;margin-top:3px}
.csw-fence-materials .csw-text-button{background:#fff!important;border:1px solid #087e73!important;color:#087e73!important;box-shadow:none!important;border-radius:6px;min-height:44px;padding:8px 12px;font:inherit;font-size:14px;cursor:pointer;white-space:normal}
.csw-fence-materials .csw-text-button:disabled{opacity:.5;cursor:default}
.csw-fence-materials [data-layout-toggle]{margin-top:10px}.csw-fence-materials .csw-layout-add{width:100%}
.csw-fence-materials :is(p,li,legend,figcaption,summary){overflow-wrap:anywhere}
.csw-fence-materials figure{margin:16px 0;min-width:0}.csw-fence-materials [data-segment-view]{max-width:100%;min-height:44px;width:100%}
.csw-fence-materials textarea.csw-field__input{height:auto;min-height:140px;resize:vertical;white-space:pre;font:14px monospace}
.csw-fence-materials .csw-field__hint{font-size:13px;color:#475569;overflow-wrap:anywhere}
.csw-fence-materials .csw-utility-error{color:#b42318;font-size:13px}.csw-fence-materials .csw-utility-error:empty{display:none}
.csw-fence-materials [aria-invalid="true"]{border-color:#b42318!important}
.csw-fence-materials .csw-button{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;color:#fff!important;background:#0f766e!important;width:100%;min-height:44px}
.csw-fence-materials .csw-button *{color:#fff!important}.csw-fence-materials .csw-button:disabled{opacity:.65}
.csw-fence-materials .csw-utility-table{overflow:auto;margin:20px 0;max-width:100%}.csw-fence-materials table{border-collapse:collapse;width:100%;font-size:14px}.csw-fence-materials th,.csw-fence-materials td{text-align:left;padding:8px;border:1px solid #cbd5e1;overflow-wrap:anywhere}.csw-fence-materials caption{text-align:left;font-weight:700;margin-bottom:8px}.csw-fence-materials .csw-utility-input-value{white-space:pre-wrap}
.csw-fence-materials .csw-utility-total{padding:20px;background:#ecfdf5;border-radius:10px}.csw-fence-materials .csw-utility-total strong{display:block;font-size:30px;color:#065f46;overflow-wrap:anywhere}
.csw-fence-materials .csw-utility-note,.csw-fence-materials .csw-utility-notes{background:#f8fafc;padding:12px;border-radius:8px;font-size:14px}
.csw-fence-materials svg{width:100%;height:auto;display:block}.csw-fence-materials .csw-utility-diagram{margin:20px 0}.csw-fence-materials .csw-utility-actions{display:flex;gap:12px;margin:20px 0}.csw-fence-materials details{margin:20px 0}.csw-fence-materials :is(input,select,textarea,button,summary):focus-visible{outline:3px solid #0f766e!important;outline-offset:3px}
@media(max-width:767px){.csw-fence-materials .csw-form__grid{grid-template-columns:minmax(0,1fr)!important}.csw-fence-materials .csw-utility-actions{flex-direction:column}}
.csw-fence-materials .csw-layout-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:end;border:0;border-bottom:1px solid #e2e8ed;padding:0 0 16px;margin:0 0 16px;min-width:0}
.csw-fence-materials .csw-layout-line>legend{font-size:14px;font-weight:700;padding:0;margin-bottom:10px}
.csw-fence-materials .csw-layout-property{display:block;font-size:13px;min-width:0}
.csw-fence-materials .csw-layout-property input,.csw-fence-materials .csw-layout-property select{width:100%;box-sizing:border-box;margin-top:6px}
.csw-fence-materials .csw-text-button{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.csw-fence-materials [data-layout-toggle]{width:auto}
@media(max-width:480px){.csw-fence-materials .csw-layout-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.csw-fence-materials .csw-layout-line>.csw-text-button{grid-column:1/-1;justify-self:end}.csw-fence-materials .csw-mode-options{grid-template-columns:minmax(0,1fr)}}
.csw-fence-materials .csw-result-overview{text-align:left;padding:18px;background:#f0faf7;border:1px solid #d4e9e2;border-radius:10px}
.csw-fence-materials .csw-result-overview h2{font-size:18px;margin:0 0 14px;font-weight:700}
.csw-fence-materials .csw-result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.csw-fence-materials .csw-result-metrics span{display:block;font-size:13px;color:#475569}
.csw-fence-materials .csw-result-metrics strong{display:block;font-size:26px;line-height:1.3;color:#065f46;margin-top:4px;overflow-wrap:anywhere}
.csw-fence-materials .csw-result-overview p{font-size:13px;line-height:1.5;margin:12px 0 0}
.csw-fence-materials .csw-result-context{color:#475569}
.csw-fence-materials .csw-result-warning{color:#92400e}
.csw-fence-materials .csw-result-details{margin:0;border-bottom:1px solid #e2e8ed;text-align:left;font-size:14px;line-height:1.5}
.csw-fence-materials .csw-result-details>summary{padding:14px 0;cursor:pointer;font-size:14px;font-weight:600;min-height:44px;box-sizing:border-box}
.csw-fence-materials .csw-result-details p,.csw-fence-materials .csw-result-details figcaption{font-size:13px;line-height:1.5;text-align:left}
.csw-fence-materials .csw-result-details th,.csw-fence-materials .csw-result-details td{word-break:normal;overflow-wrap:normal;min-width:60px}
.csw-fence-materials .csw-utility-diagram:has(>.csw-result-details){margin:0}
@media(max-width:480px){.csw-fence-materials .csw-result-metrics{grid-template-columns:minmax(0,1fr);gap:8px}.csw-fence-materials .csw-result-metrics>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.csw-fence-materials .csw-result-metrics strong{font-size:22px;margin:0}}
@media print{.csw-fence-materials details> :not(summary){display:block!important}.csw-fence-materials [data-segment-detail]{display:block!important}}
.csw-fence-materials .csw-result{padding:16px;text-align:left;margin-top:20px}
.csw-fence-materials .csw-result [data-status]{font-size:13px;color:#475569;margin:0 0 12px}
@media(max-width:480px){.csw-fence-materials .csw-result-overview{padding:14px}.csw-fence-materials .csw-result-metrics strong{white-space:nowrap}}
.csw-fence-materials .csw-layout-preview{margin:0 0 22px;padding:14px;background:#f8fafb;border:1px solid #e2e8ed;border-radius:10px}
.csw-fence-materials .csw-layout-preview>figcaption{font-size:14px;font-weight:600;margin-bottom:10px}
.csw-fence-materials .csw-layout-preview__strip{display:flex;overflow-x:auto;gap:8px;padding:4px;scrollbar-width:thin}
.csw-fence-materials .csw-layout-preview__part{flex:1 0 112px;min-width:112px;max-width:180px;display:flex!important;flex-direction:column;align-items:stretch;justify-content:space-between;background:#fff!important;color:#17345c!important;border:1px solid #d5e0e5!important;border-radius:6px;padding:10px 8px;box-shadow:none!important;cursor:pointer;font:inherit;text-align:center}
.csw-fence-materials .csw-layout-preview__part:hover{border-color:#0f766e!important;background:#f0fdfa!important}
.csw-fence-materials .csw-layout-preview__name{font-size:13px;font-weight:600;white-space:nowrap}
.csw-fence-materials .csw-layout-preview__drawing{display:block;color:#526779}
.csw-fence-materials .csw-layout-preview__drawing svg{width:100%;height:64px}
.csw-fence-materials .csw-layout-preview__length{font-size:13px;color:#0f766e;font-weight:600}
.csw-fence-materials .csw-layout-preview>.csw-field__hint{font-size:12px;line-height:1.5;margin:10px 0 0}
