.hero-actions .new-scenario-trigger{flex:0 0 auto;width:auto;min-width:0;max-width:none;height:40px;min-height:40px;padding:0 13px;gap:8px;aspect-ratio:auto;white-space:nowrap}
.hero-actions .new-scenario-trigger>span.new-scenario-icon{display:inline-flex;flex:0 0 auto}
.hero-actions .new-scenario-trigger>span.new-scenario-label{display:inline}
.tax-savings-metric{background:var(--green-light);border-color:#cddfd2}.tax-savings-metric .metric-top,.tax-savings-metric .metric-note{color:#4f6b58}.tax-savings-metric .metric-value,.tax-savings-metric .metric-edit{color:var(--green)}.tax-savings-metric .metric-edit:hover{background:#dfebdf}.tax-savings-metric .metric-edit svg{width:19px;height:19px;opacity:1}
.metric-edit{display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;border-radius:4px;background:transparent;color:var(--muted);padding:4px;margin:-4px;cursor:pointer}.metric-edit:hover{background:#f1f4eb;color:var(--ink)}.tax-metric{min-width:0}.tax-metric .metric-top{align-items:flex-start}.tax-metric .metric-value{font-size:clamp(19px,2vw,29px);overflow-wrap:anywhere;letter-spacing:-.6px}
.model-export-help{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fafbf8;min-width:0}.model-export-help .subtle:first-child{margin-top:0}.model-export-help strong{overflow-wrap:anywhere}.model-export-help details{margin-top:12px}.model-export-help summary{cursor:pointer;font-size:11px;color:var(--ink)}.model-export-help label{display:block;margin:12px 0 6px}#model-json{display:block;resize:vertical;width:100%;min-height:110px;max-height:300px;margin:0 0 10px;border:1px solid var(--line);border-radius:6px;padding:9px;background:#fff;font:10px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}#model-json:focus{outline:2px solid var(--gold);outline-offset:2px}#model-copy-status:empty{display:none}#model-download{cursor:pointer}#model-download[aria-disabled=true]{opacity:.55}
@media(max-width:1120px){.hero-actions .new-scenario-trigger{flex:0 0 40px;width:40px;min-width:40px;max-width:40px;padding:0;gap:0}.hero-actions .new-scenario-trigger>span.new-scenario-label{display:none}}
.hero-actions{flex-wrap:wrap;justify-content:flex-end}.hero>div:first-child{min-width:0}.scenario-workbar{flex-wrap:wrap;row-gap:12px}.scenario-workbar .preset-control{flex:1 1 350px}.scenario-workbar .preset-control select{max-width:350px;width:100%;text-overflow:ellipsis}.scenario-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.scenario-tools .reset-button{border-left:1px solid #dce2d4;padding-left:13px}.scenario-workbar label{white-space:nowrap}.scenario-workbar #scenario-description{font-size:10px;color:var(--muted);white-space:nowrap}.extra-field .field-label{display:flex;justify-content:space-between;align-items:center}.extra-field .remove-cost{font-size:18px}.compare-picker{display:flex;flex-direction:column;gap:5px;max-width:230px;min-width:160px}.compare-picker label{font-size:9px;color:var(--muted)}.compare-picker select{max-width:100%;min-height:34px;border:1px solid var(--line);border-radius:5px;padding:5px 8px;background:#fbfcf9;font-size:10px;color:var(--ink)}.version-card .card-heading{align-items:flex-start}.comparison-empty{border-top:1px solid #edf0e7;padding:17px 24px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.comparison-empty p{color:var(--muted);font-size:11px;line-height:1.8;max-width:450px}.comparison-empty .button{font-size:10px}.comparison-table{border-collapse:collapse;width:100%;min-width:540px;font-size:11px;font-variant-numeric:tabular-nums}.comparison-table th,.comparison-table td{text-align:right;padding:11px 15px;border-top:1px solid #edf0e7;white-space:nowrap}.comparison-table th:first-child{padding-left:24px;text-align:left;font-weight:400;color:var(--muted);font-size:10px;white-space:normal}.comparison-table th:last-child,.comparison-table td:last-child{padding-right:24px}.comparison-table thead th{font-size:10px;font-weight:600;white-space:normal;max-width:190px}.comparison-table thead small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:4px;line-height:1.5}.comparison-table td:nth-child(3),.comparison-table thead th:nth-child(3){background:#fcfaf4}.comparison-emphasis td,.comparison-emphasis th{font-weight:600!important;color:var(--ink)!important}.comparison-notes{border-top:1px solid #edf0e7;padding:13px 24px 16px;font-size:9px;color:var(--muted);line-height:1.8}.comparable-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.comparable-content a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c1c9b8}.comparable-content a:hover{color:var(--green)}dialog{max-height:calc(100dvh - 40px);overflow-y:auto}.wide-dialog{width:760px}.extra-wide-dialog{width:1120px}.dialog-form>label:not(.checkbox-row),.dialog-form .input-row>div>label{display:block;font-size:11px;color:#5d6858;margin:15px 0 7px}.dialog-form input:not([type=checkbox]),.dialog-form select{border:1px solid #dfe4d7;height:42px;border-radius:6px;padding:0 11px;width:100%;font-size:12px;min-width:0;background:#fff}.dialog-form .input-row{margin-bottom:18px}.dialog-form .checkbox-row{margin-top:16px;font-size:11px}.dialog-form .checkbox-row input{height:16px;width:16px}.dialog-form .dialog-heading{margin-bottom:9px}.form-error{font-size:11px;line-height:1.7;color:var(--red);margin-top:12px}.form-error:empty{display:none}.upload-zone{border:1px dashed #b7c3a9;border-radius:10px;background:#f8faf3;min-height:145px;padding:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;margin-top:20px;cursor:pointer}.upload-zone>span:first-child{color:#80916e}.upload-zone strong{font-size:13px;font-weight:550}.upload-zone>span{font-size:10px;color:var(--muted)}.upload-zone input{font-size:11px;max-width:100%;margin-top:6px}.paste-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:19px}.paste-header label{margin:0}#comp-paste{width:100%;resize:vertical;min-height:100px;border:1px solid #dfe4d7;border-radius:7px;font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;padding:11px;margin:7px 0 10px}#comp-paste:focus{outline:2px solid #d4c19f;outline-offset:1px}.upload-apply{display:flex;align-items:center;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line);flex-wrap:wrap}.upload-apply label{font-size:11px;color:var(--muted)}.upload-apply select{min-height:35px;border:1px solid #dfe4d7;padding:0 8px;border-radius:5px;background:white;font-size:11px;max-width:100%}.import-summary{margin:18px 0 8px;background:var(--green-light);border:1px solid #dce9dd;border-radius:7px;padding:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.import-summary strong{font-size:12px;color:var(--green)}.import-summary span{font-size:10px;color:#6f8069}.editable-comps{margin:17px 0}.editable-comps table{width:100%;border-collapse:collapse;min-width:1000px}.editable-comps th{font-size:10px;text-align:left;color:var(--muted);font-weight:500;padding:8px 5px;white-space:nowrap}.editable-comps td{padding:6px 4px;border-top:1px solid #edf0e7}.editable-comps input{width:100%;height:34px;border:1px solid #dfe4d7;border-radius:4px;padding:0 7px;font-size:11px;min-width:55px}.editable-comps td:first-child{width:195px}.editable-comps td:first-child input{min-width:180px}.editable-comps td:nth-child(2){width:125px}.editable-comps td:nth-child(8){width:205px}.editable-comps td:nth-child(8) input{min-width:170px}.editable-comps .remove-cost{padding:6px;font-size:20px}.extra-wide-dialog .dialog-actions{position:sticky;bottom:-27px;background:white;padding:16px 0 5px;border-top:1px solid var(--line);z-index:2}.wide-dialog p.subtle{font-size:11px}.version-card h2{font-size:18px}
@media(max-width:1300px){.scenario-workbar .preset-control{flex-basis:300px}.scenario-workbar #scenario-description{display:none}.scenario-workbar .preset-divider{display:none}.compare-picker{min-width:150px;max-width:190px}.version-card .card-heading{gap:13px}.comparison-empty{padding:16px 19px;align-items:flex-start;flex-wrap:wrap}.comparison-table{min-width:520px;font-size:10px}}
@media(max-width:680px){.hero-actions{justify-content:flex-start}.scenario-workbar .preset-control{flex-basis:100%}.scenario-workbar .preset-control label{display:block;font-size:10px}.scenario-workbar .preset-control select{max-width:none;min-width:0}.scenario-tools{width:100%;justify-content:space-between;gap:4px;border-top:1px solid #e0e6d7;padding-top:5px}.scenario-tools .reset-button{border:0;padding-left:0;font-size:10px}.compare-picker{max-width:none;width:100%}.version-card .card-heading{flex-direction:column;gap:14px}.comparison-empty p{font-size:10px}.comparison-empty{padding:16px 18px}.comparison-notes{padding:12px 18px;font-size:9px}.comparable-actions .button{font-size:10px;padding:0 10px}.paste-header{align-items:flex-start;flex-direction:column;gap:3px}.paste-header .button{padding-left:0}.upload-zone{padding:15px}.dialog-form .input-row{gap:12px}.extra-wide-dialog .dialog-actions{bottom:-27px}.wide-dialog,.extra-wide-dialog{padding:22px}.extra-wide-dialog .dialog-actions{bottom:-22px}}
@media print{.version-card{break-inside:avoid}.version-card .card-heading{padding:15px 18px}.comparison-table{font-size:8pt;min-width:0}.comparison-table th,.comparison-table td{padding:8px}.comparison-table th:first-child{padding-left:18px;font-size:7pt}.comparison-table thead th{font-size:8pt}.comparison-notes{font-size:7pt;padding:10px 18px}.comparison-empty{display:none}}
