/* A single workspace. Existing calculation and data controls are retained. */
:root{--soft:#f5f5f2;--line:#ccd5da}
body{background:#f5f5f2}
.header-inner,main{max-width:1304px;margin-inline:auto}
.header-inner{padding:16px 32px}
.header-inner>span{display:none}
main{padding:0 32px}
.tool-heading{padding:32px 0 25px;align-items:flex-start}
.tool-heading h1{font-size:40px;font-weight:400;line-height:1.1;letter-spacing:-.035em}
.tool-label{font-size:12px;text-transform:none;letter-spacing:0;margin:0 0 10px}
.tool-heading p:not(.tool-label){font-size:15px;margin-top:12px}
.tool-heading-actions{padding-top:4px}
.start-actions .quiet{font-size:14px;min-height:46px;background:#172d39;color:white;border-color:#172d39;padding:12px 18px}
.start-actions .quiet:hover{background:#2b4b5d}
.tutorial-button{font-size:13px;min-height:36px}
.app-layout{display:block;margin-bottom:40px}
.app-rail{position:static;display:flex;justify-content:space-between;align-items:center;gap:28px;padding:0;margin:0 0 18px}
.workflow{flex-direction:row;gap:0;flex:1;max-width:800px;margin:0;border-bottom:1px solid #b9c6cc}
.workflow a{border:0;border-bottom:3px solid transparent;min-height:56px;padding:16px 20px;font-size:15px;flex:1;display:flex;justify-content:center;align-items:center}
.workflow a[aria-current]{border-left:0;border-bottom-color:#a92839;background:transparent;box-shadow:none;color:#172d39}
.workflow a[aria-disabled=true]{color:#73818a}
.rail-bottom{display:flex;flex-direction:column;align-items:flex-end;gap:1px;margin:0;min-width:170px;font-size:12px}
.rail-bottom p{margin:0}
.rail-bottom a{font-size:12px;margin:0;min-height:28px;padding:3px 0}
.app-work{padding:0 32px 32px;min-height:0;border:1px solid #becbd2;background:#fff;box-shadow:0 12px 28px #12273406}
.toolbar{margin:0 -32px;padding:13px 22px;background:#f8fafb;gap:12px;align-items:center}
.toolbar button,.toolbar .file-button{font-size:13px;min-height:44px;padding:10px 12px}
.toolbar .file-button{border:1px solid #8ca0ac;background:white}
.toolbar #save-draft{color:#233e4c}
.toolbar #save-draft:disabled{color:#7b8790}
.toolbar #clear{font-size:12px;color:#5a6972;margin-left:auto}
.toolbar #clear:hover{color:#9b2132}
.status{font-size:13px;line-height:1.6;padding-top:14px}
.status:empty{display:none}
.source-origin{font-size:12px;background:#f7f0e3;border-left:3px solid #a88942;color:#554320;padding:10px 14px}
.step{padding-top:26px}
.step-heading h2{font-size:28px;line-height:1.2;font-weight:400;letter-spacing:-.02em}
.step-heading .step-progress{font:13px/1.5 Plex,sans-serif;background:none;border:0;padding:0;color:#526977}
.source-lead{max-width:70ch;font-size:15px!important;line-height:1.7!important;margin-bottom:8px!important}
.format-note{font-size:12px!important;color:#697b85;margin:0 0 15px}
.template-help{max-width:700px;border:0;margin-bottom:17px;padding:0}
.template-help>summary{justify-content:flex-start;gap:16px;min-height:36px;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.template-help .template-links{display:flex;gap:16px;flex-wrap:wrap;margin:8px 0}
.template-help .template-links a{font-size:13px;min-height:40px;display:flex;align-items:center}
.imports{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:22px 0 0}
.import{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:22px 20px;margin:0;border:1px solid #becbd2;border-top:3px solid #526b7a;background:#fcfdfd}
.import.is-loaded{padding:22px 20px;border-left:1px solid #becbd2;border-top-color:#2f6952}
.import h3{font-size:23px;font-weight:400}
.import .file-name{font-size:12px;line-height:1.5;min-height:36px;margin:10px 0 18px;overflow-wrap:anywhere}
.import>.file-button{min-width:0;width:100%;font-size:14px;min-height:46px;background:white;border-color:#7d929f;display:flex;justify-content:center}
.import>.file-button:hover{background:#edf2f4;border-color:#172d39}
.import .paste-help{border:0;padding:9px 0 0;margin:0}
.import .paste-help>summary{font-size:13px;min-height:36px}
.import .paste-help[open]{padding-top:14px}
.import .paste-help :is(input,textarea){max-width:100%;width:100%;font-size:15px}
.import .paste-help button{width:100%;font-size:13px}
.step-actions{border:0;margin-top:24px;padding-top:0;align-items:center}
.step-actions button{font-size:14px;min-height:48px;padding:13px 20px}
.step-actions .small{font-size:13px}
button.primary,.primary{background:#a92839;border-color:#a92839;border-radius:0}
button:focus-visible,a:focus-visible,.file-button:focus-within,summary:focus-visible{outline:2px solid #355e78;outline-offset:4px}
.context-help{margin-top:22px;border-top:1px solid #c3ced3;border-bottom:1px solid #c3ced3}
.context-help>summary{font-size:14px;cursor:pointer;padding:17px 0;min-height:52px;color:#314e60}
.context-help[open]>summary{border-bottom:1px solid #c3ced3}
.guide-panel{position:static;padding:25px 0;display:grid;grid-template-columns:1fr 1fr;gap:10px 50px;background:transparent}
.guide-top{grid-column:1/-1;padding:0 0 5px}
.guide-mark{display:none}
.guide-panel h2,.guide-panel>p,.guide-checklist,.guide-next,.guide-link{grid-column:1}
.guide-panel .help,.guide-panel .method{grid-column:2;margin:0}
.guide-panel .guide-checklist{grid-row:auto;margin:0}
.guide-panel .source-requirements{grid-row:2/5}
.guide-panel .guide-demo{grid-row:5/7}
.guide-panel #data-help{grid-row:7/9}
.guide-panel h2{font-size:23px}
.guide-panel>p,.guide-panel .help p,.guide-panel .method p{font-size:13px}
.guide-panel .help>summary,.guide-panel .method>summary{font-size:14px}
.guide-next{margin:10px 0}
.help>summary{min-height:38px;align-items:center}
.help,.help p{font-size:13px}
.help summary::after{content:'';width:8px;height:8px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);flex:none;margin-right:4px}
.help[open] summary::after{content:'';transform:rotate(225deg)}
.help:not([open])>:not(summary){display:none}
body.experience-ready[data-stage=result] .tool-heading>div>p:not(.tool-label){display:none}
body.experience-ready[data-stage=result] .tool-heading{padding-bottom:18px}
.results{gap:40px;margin-top:20px}
.result-panel{padding:24px;border:1px solid #becbd2;border-top:3px solid #243e4c;background:#fcfdfd}
.result-panel h3{font-size:17px;font-weight:500}
.result-panel .result-value{font-size:clamp(30px,3.5vw,48px);letter-spacing:-.04em}
.result-panel dl{font-size:13px;gap:10px}
.result-panel dd{font-size:13px}
.result-panel .small{font-size:12px;line-height:1.7}
.equity-line{background:#edf2f4;padding:15px;margin:20px 0 0}
.equity-line>strong{font-size:28px}
.equity-line>span{font-size:13px}
.result-boundary{font-size:12px;max-width:90ch}
.result-settings>.assumptions,.result-settings>.bridge{gap:20px}
.export .small{font-size:12px;max-width:88ch;line-height:1.7}
.export button{font-size:14px;min-height:46px}
.model-review-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.model-review-options li{display:block;border-top:1px solid #c3cfd5}
.model-review-options a{display:block;font-size:16px}
.model-review-options span{display:block;font-size:13px;margin-top:8px}
.table-wrap input{font-size:15px}
.mapping select,.source-metadata input,.source-metadata select,.meta select{font-size:14px;min-height:44px}
.source-metadata,.mapping{gap:20px}
body:not(.experience-ready) :is(.app-rail,.toolbar){display:none}
[hidden]{display:none!important}
@media(max-width:1050px){.imports{gap:12px}.import{padding:18px 14px}.import.is-loaded{padding:18px 14px}.import h3{font-size:22px}.app-rail{gap:15px}.workflow a{padding:16px 12px}.rail-bottom{min-width:145px}.app-work{padding:0 24px 26px}.toolbar{margin:0 -24px}.results{gap:22px}.result-panel{padding:20px}.guide-panel{gap:10px 30px}}
@media(max-width:740px){main{padding:0 18px}.header-inner{padding:14px 18px}.tool-heading{display:block;padding:25px 0 20px}.tool-heading h1{font-size:36px}.tool-heading p:not(.tool-label){font-size:14px;max-width:40ch}.tool-heading-actions{flex-direction:row;align-items:center;justify-content:space-between;gap:14px;margin-top:20px;padding:0}.start-actions .quiet{max-width:none;font-size:13px;min-height:46px}.start-actions .own-start{font-size:12px!important}.tutorial-button{font-size:13px;white-space:nowrap}.app-rail{display:block;margin-bottom:15px}.workflow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}.workflow a{font-size:12px;min-height:52px;display:flex;flex-direction:row;justify-content:center;padding:14px 2px;gap:0}.rail-bottom{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin:8px 0 0;min-width:0;gap:10px;font-size:11px}.rail-bottom a{font-size:11px}.app-work{padding:0 16px 24px}.toolbar{margin:0 -16px;padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.toolbar button,.toolbar .file-button{font-size:11px;min-height:44px;padding:9px}.toolbar #clear{grid-column:1/-1;justify-self:end;min-height:32px;padding:4px 9px;font-size:11px}.step{padding-top:22px}.step-heading h2{font-size:26px}.step-heading .step-progress{font-size:11px;max-width:85px;text-align:right}.source-lead{font-size:14px!important}.format-note{font-size:12px!important}.imports{display:flex;gap:14px;flex-direction:column;margin-top:18px}.import,.import.is-loaded{padding:18px;border-top-width:2px}.import .file-name{min-height:0;margin:7px 0 14px}.import .paste-help>summary{min-height:40px}.template-help{margin-bottom:10px}.step-actions button{width:100%}.step-actions .small{font-size:12px}.guide-panel{display:block;padding:20px 0}.guide-top{margin-bottom:14px}.guide-panel .guide-checklist{margin:18px 0}.guide-panel .help{padding:14px 0}.context-help{margin-top:20px}.context-help>summary{font-size:13px}.results{display:grid;grid-template-columns:1fr;gap:20px}.result-panel{padding:20px 16px}.result-panel .result-value{font-size:35px}.result-panel dl{font-size:12px}.result-panel dd{font-size:12px}.equity-line{padding:12px}.equity-line>strong{font-size:27px}.model-review-options{display:block}.model-review-options li{padding:15px 0}.mapping select,.source-metadata input,.source-metadata select,.meta select,.table-wrap input{font-size:16px}.export button{width:100%}}
@media(max-width:360px){main{padding:0 12px}.header-inner{padding:13px 12px;gap:12px}.wordmark{width:140px}.tool-heading h1{font-size:33px}.tool-heading-actions{flex-wrap:wrap;justify-content:flex-start}.tool-heading-actions .start-actions{width:100%}.start-actions .quiet{width:100%;justify-content:center}.tutorial-button{min-height:36px}.toolbar{grid-template-columns:1fr}.toolbar #clear{grid-column:auto}.workflow a{font-size:11px}.app-work{padding:0 13px 22px}.toolbar{margin:0 -13px}.result-panel .result-value{font-size:30px}}
@media print{.context-help,.app-rail,.toolbar,.tool-heading-actions{display:none}.app-work{box-shadow:none}.result-panel{break-inside:avoid}}

