.kub-calculator .excel-open{display:flex;align-items:center;gap:9px;min-height:44px;margin:4px 0 16px;padding:8px 13px;border:1px solid #cddbc5;border-radius:10px;background:#f3f7ee;color:#355b3d;font-family:inherit;font-weight:600;font-size:12px;cursor:pointer}.excel-open>span{font-size:22px;color:#64824e}.kub-calculator .excel-open:hover{background:#e9f0e0;border-color:#9db58b}
.calculator-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 13px;border:1px solid #d6c5a7;border-radius:10px;background:#fbf5e9;color:#6d5430;font-size:12px}.calculator-undo[hidden]{display:none}.calculator-undo button{min-height:40px;padding:6px 10px;border:0;border-radius:7px;background:#eee1c9;color:#644c2a;font-weight:650;cursor:pointer}
.timber-summary{margin:18px 0;padding:16px;border:1px solid #cad9b647;border-radius:14px;background:linear-gradient(145deg,#ffffff0b,#ffffff03)}.timber-summary[hidden]{display:none}.timber-summary h3{margin:0;color:#f3f6ec;font-size:15px}.timber-summary>p{margin:6px 0 13px;color:#c3d2b7;font-size:11px;line-height:1.6}.summary-segments{display:flex;gap:4px;padding:4px;border:1px solid #ffffff1c;border-radius:9px;background:#0c2d2380}.summary-segments button{flex:1;min-width:0;min-height:40px;padding:7px 5px;border:0;border-radius:6px;background:transparent;color:#c7d7bb;font-family:inherit;font-size:11px;cursor:pointer}.summary-segments button[aria-pressed=true]{background:#e8eedc;color:#294a31;box-shadow:0 2px 5px #0002}.summary-category{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:13px 0;border-bottom:1px solid #ffffff18;color:#e7eedf;font-size:12px}.summary-category strong{min-width:0;font-weight:550;overflow-wrap:anywhere}.summary-category b{text-align:right;font-size:15px;font-variant-numeric:tabular-nums}.summary-category>span{color:#bacdb0;font-size:11px}.summary-category-cost{text-align:right}.timber-summary .summary-partial{margin-bottom:0;color:#ebcf9b}.summary-partial[hidden]{display:none}
.excel-dialog{box-sizing:border-box;width:min(720px,calc(100% - 32px));max-height:90dvh;padding:24px;border:1px solid #d6e0cc;border-radius:18px;background:#fffdf7;color:#2c4834;box-shadow:0 22px 80px #0c2c2540;overflow:auto}.excel-dialog::backdrop{background:#0b211c99;backdrop-filter:blur(3px)}.excel-heading{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin-bottom:18px}.excel-heading h2{margin:0 0 8px;font-size:22px}.excel-heading p{max-width:53ch;margin:0;color:#718367;font-size:13px;line-height:1.6}.excel-close{flex-shrink:0;width:42px;height:42px;border:1px solid #dae3d0;border-radius:50%;background:#f0f4e9;color:#547145;font-size:25px;cursor:pointer}.excel-paste-label{display:block;color:#617655;font-size:12px}.excel-paste-label>span{display:block;margin-bottom:8px}.excel-dialog textarea{box-sizing:border-box;width:100%;min-height:150px;margin:0;padding:13px;border:1px solid #c4d3b9;border-radius:10px;background:#f9fbf4;color:#284831;font:14px/1.7 ui-monospace,monospace;resize:vertical;tab-size:12}.excel-options{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0;color:#586e4c;font-size:12px}.excel-options label{display:flex;align-items:center;gap:7px;min-height:32px}.excel-options input{accent-color:#365e3e}.excel-mapping{margin:0 0 16px;color:#627958;font-size:12px}.excel-mapping summary{min-height:36px;align-content:center;cursor:pointer}.excel-mapping>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.excel-mapping label{display:grid;gap:5px;min-width:0}.excel-mapping select{box-sizing:border-box;width:100%;min-height:42px;padding:6px;border:1px solid #d1ddc7;border-radius:7px;background:#fff;color:#355137;font-family:inherit}.excel-error{padding:11px;border:1px solid #e8c5b9;border-radius:9px;background:#fff1ea;color:#954d36;font-size:12px;line-height:1.6}.excel-preview>strong{font-size:12px;color:#526d43}.excel-preview-scroll{max-height:220px;overflow:auto;margin:10px 0 16px;border:1px solid #dde5d4;border-radius:9px}.excel-preview table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.excel-preview th{position:sticky;top:0;background:#eef3e6;color:#657c56;font-size:10px;font-weight:550}.excel-preview td,.excel-preview th{padding:9px 11px;border-bottom:1px solid #e8eddf;max-width:220px;overflow-wrap:anywhere}.excel-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:12px}.excel-actions button{min-height:44px;padding:10px 17px;border:1px solid #cbd8bf;border-radius:9px;background:#f2f6eb;color:#4f6a40;font-family:inherit;font-weight:600;cursor:pointer}.excel-actions .excel-apply{border-color:#365c40;background:#365c40;color:#fff}.excel-actions button:disabled{opacity:.45;cursor:default}.excel-dialog :focus-visible,.calculator-undo :focus-visible,.excel-open:focus-visible,.summary-segments :focus-visible{outline:3px solid #b9894b;outline-offset:3px}
@media(max-width:600px){.excel-dialog{width:100%;max-height:92dvh;margin:auto 0 0;padding:18px 16px max(18px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0}.excel-heading h2{font-size:20px}.excel-dialog textarea{font-size:16px}.excel-mapping>div{grid-template-columns:repeat(2,minmax(0,1fr))}.timber-summary{padding:13px}.summary-segments button{font-size:10px}.excel-actions{position:sticky;bottom:-1px;background:#fffdf7}.excel-actions button{flex:1}.summary-category b{font-size:14px}}
@media print{.summary-segments,.excel-open,.calculator-undo{display:none}}

.summary-segments[hidden]{display:none}
