/* Scoped studio treatment. Main application navigation and worksheet are unchanged. */
.ds-estimate,.ds-proposal{--ds-line:#304c61;--ds-panel:#0d2436;color:#edf5fb;background:#0b2032;border:1px solid var(--ds-line);border-radius:14px;padding:22px;min-width:0}
.ds-header h1{font-size:25px;line-height:1.25;margin:18px 0 9px}.ds-header p{color:#bdcfdd;margin:0 0 17px}.ds-header>a{border:0;background:none!important;color:#62e1cd!important;padding:0!important}
.ds-tabs,.ds-modes,.ds-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.ds-tabs{padding:8px 0 14px;border-bottom:1px solid var(--ds-line);margin-bottom:24px}.ds-tabs a{background:transparent!important;border:0!important;font-size:14px}.ds-modes{margin-bottom:18px}.ds-modes a{padding:14px 22px!important;min-width:240px;text-align:left;border:1px solid #4a6477!important}.ds-modes a[aria-current]{background:#69e5cd!important;color:#062433!important;font-weight:750}.ds-actions{margin:18px 0}.ds-actions a,.ds-actions button{font-size:13px!important;min-height:40px}
.ds-estimate>.fx-heading,.ds-estimate>.fx-layout,.ds-estimate>.fx-selling,.ds-estimate>.fx-advanced,.ds-estimate>.fx-status{display:none!important}.ds-estimate .ds-builder{border:0;padding:0;background:transparent}.ds-builder>.db-layout{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr);gap:16px}.ds-builder .db-editor,.ds-builder .db-preview{background:var(--ds-panel);border:1px solid var(--ds-line);border-radius:10px;padding:16px;min-width:0}.ds-builder .db-editor{max-height:650px;overflow:auto}.ds-builder h2{font-size:18px;margin:0 0 14px}.ds-builder .db-controls h3,.ds-builder .db-controls>p{display:none}.ds-builder label{font-size:14px}.ds-builder textarea,.ds-builder select,.ds-builder input,.ds-proposal textarea,.ds-proposal input,.ds-proposal select{background:#142e43!important;color:#f3f7fb!important;border:1px solid #456176!important;border-radius:7px}.ds-builder iframe{width:100%;height:600px;border:0;border-radius:8px;background:#fff}.ds-builder .db-toolbar{flex-wrap:wrap}.ds-template-bar{margin-bottom:18px}.ds-export-settings{margin:16px 0;border-block:1px solid var(--ds-line);padding:12px 0}.ds-export-settings input[type=checkbox]{width:auto}.ds-proposal>.pw-heading{display:none}.ds-proposal .pw-layout{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr);gap:16px}.ds-proposal .pw-panel{width:auto!important;max-width:none;max-height:750px}.ds-proposal .pw-preview{min-width:0}.ds-proposal .pw-preview iframe{height:730px;width:100%}.ds-empty{padding:30px;color:#bdcfdd}
@media(max-width:1100px){.ds-builder>.db-layout,.ds-proposal .pw-layout{grid-template-columns:minmax(270px,.85fr) minmax(0,1.15fr)}.ds-estimate,.ds-proposal{padding:14px}.ds-header h1{font-size:22px}}
@media(max-width:760px){.ds-builder>.db-layout,.ds-proposal .pw-layout{grid-template-columns:minmax(0,1fr)}.ds-builder .db-editor,.ds-proposal .pw-panel{max-height:none}.ds-builder iframe,.ds-proposal .pw-preview iframe{height:560px}.ds-modes{display:grid;grid-template-columns:1fr 1fr}.ds-modes a{min-width:0;padding:12px!important}.ds-tabs{gap:2px}.ds-tabs a{font-size:12px;padding:8px!important}.ds-actions>*{flex:1 1 130px;text-align:center}}
main:has(.ds-estimate),main:has(.ds-proposal){padding:14px;max-width:none}.ds-header{position:relative}.ds-header h1{margin:12px 0 8px!important}.ds-header p{font-size:13px!important;line-height:1.4}.ds-estimate .ds-header h1,.ds-estimate .ds-header p{padding-right:260px}.ds-metrics{position:absolute;right:0;top:16px;display:grid;grid-template-columns:auto auto;gap:5px 18px;border-left:1px solid #34546a;padding-left:18px;font-size:12px}.ds-metrics strong{font-size:22px;grid-row:2}.ds-metrics a{font-size:12px}.ds-tabs{margin-bottom:14px;padding-bottom:8px}.ds-builder>.db-layout{height:560px;min-height:0}.ds-builder .db-editor{max-height:560px}.ds-builder iframe{height:100%;min-height:390px}.ds-template-bar{display:flex;flex-wrap:wrap;gap:6px}.ds-template-bar select{flex:1 1 100%}.ds-estimate .db-editor>p{font-size:12px;line-height:1.5;color:#afc4d5}.ds-estimate .db-controls>details{margin:10px 0;padding:12px;border:1px solid #304c61;border-radius:7px}.ds-estimate .db-editor .db-controls label{font-size:13px;color:#dce8f2}.ds-estimate .ds-header h1,.ds-estimate h2,.ds-proposal h2{color:#f4f8fc!important}.ds-estimate .db-toolbar{background:transparent;padding:0 0 8px}.ds-estimate .db-toolbar [data-fx-action=save]{display:none}.ds-estimate .db-preview [role=status]{font-size:12px;padding:4px 0}.ds-actions{gap:7px}.ds-actions a,.ds-actions button{padding:9px 12px!important}
@media(max-width:900px){.ds-estimate .ds-header h1,.ds-estimate .ds-header p{padding-right:0}.ds-metrics{position:static;display:flex;flex-wrap:wrap;align-items:center;margin:12px 0;border-left:0;padding-left:0}.ds-metrics strong{font-size:19px}}
@media(max-width:760px){main:has(.ds-estimate),main:has(.ds-proposal){padding:8px}.ds-builder>.db-layout{height:auto}.ds-builder .db-preview{height:580px}.ds-builder .db-editor{max-height:none}.ds-proposal .pw-layout{display:flex;flex-direction:column}.ds-proposal .pw-preview{min-height:560px;flex:none}}
.ds-more{position:relative;border:1px solid #34546a;border-radius:7px;padding:9px 12px;font-size:13px}.ds-more .record-page-actions{margin:0;padding:8px;display:flex;gap:8px;flex-wrap:wrap}.ds-more:not([open])>.record-page-actions{display:none}.ds-more[open]{flex-basis:100%}.ds-header>a.button{min-height:0;line-height:1.3}.ds-estimate .db-preview{overflow:hidden}.ds-estimate .db-preview iframe{flex:1}.ds-template-bar .button{white-space:normal}
.ds-proposal .ds-header h1,.ds-proposal .ds-header p{padding-right:260px}.ds-proposal .pw-panel>details>summary{font-size:14px}.ds-proposal .pw-layout{align-items:start}.ds-proposal .pw-panel{max-height:640px;overflow:auto;border:1px solid #304c61;border-radius:8px;background:#0d2436}.ds-proposal .pw-preview iframe{height:640px}.ds-proposal .pw-preview{border:1px solid #304c61;border-radius:8px;overflow:hidden}
@media(max-width:900px){.ds-proposal .ds-header h1,.ds-proposal .ds-header p{padding-right:0}}@media(max-width:760px){.ds-proposal .pw-panel{max-height:none}.ds-proposal .pw-preview iframe{height:560px}}
.ds-proposal [data-pw-save]{display:none}.ds-proposal .db-controls>h3,.ds-proposal .db-controls>p{display:none}
.ds-proposal .db-controls>details{border:1px solid #304c61;border-radius:7px;padding:10px;margin:10px 0}.ds-proposal .pw-panel>.pw-section{margin-bottom:10px}.ds-proposal .pw-panel .pw-section{padding:12px}.ds-proposal .pw-panel .pw-section>summary{font-weight:650}.ds-proposal .pw-panel{padding:8px}.ds-proposal .pw-layout{margin-top:14px}
.ds-template-editor{max-width:1100px;background:#0d2436;color:#edf5fb;border:1px solid #304c61;border-radius:12px;padding:22px}.ds-template-editor h1{font-size:24px}.ds-template-editor .db-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ds-template-editor .db-controls>details{grid-column:1/-1}.ds-template-editor input,.ds-template-editor textarea,.ds-template-editor select{background:#142e43;color:#f4f8fc;border:1px solid #456176}.ds-template-editor label{color:#dce8f2}.ds-template-editor p{font-size:13px;color:#b9cbda}.ds-template-editor .db-controls>h3,.ds-template-editor .db-controls>p{grid-column:1/-1}.ds-template-editor input[type=checkbox]{width:auto;display:inline-block}.ds-template-editor [data-template-status]{color:#62e1cd}@media(max-width:760px){.ds-template-editor .db-controls{grid-template-columns:minmax(0,1fr)}}
.ds-template-editor [hidden]{display:none!important}
.mail-compose-delivery-notice{margin:10px 16px;padding:10px 12px;border:1px solid var(--ui-border,#34546a);border-radius:7px;font-size:13px;line-height:1.45;background:var(--ui-soft,#142e43);color:var(--ui-text,#dce8f2)}
.ds-estimate dialog.fx-question{width:min(440px,calc(100vw - 32px));height:auto;max-height:80vh;padding:20px}.ds-estimate dialog.fx-question h2{margin-bottom:16px}.ds-estimate dialog.fx-question button{margin:4px}

.ds-proposal .ds-actions .secondary{background:#142e43!important;color:#edf5fb!important;border:1px solid #456176!important}.ds-proposal .ds-template-bar>small{flex-basis:100%;line-height:1.5;color:#b9cbda}
