/* Shared blue/lavender surfaces for the workspace and Residential product. */
:root{--fluid-canvas:#f7f7f8;--fluid-blue:#edf5ff;--fluid-lilac:#f2efff;--fluid-edge:#dce6f6;--fluid-label:#53678b;--fluid-ink:#20283f;--soft:var(--fluid-blue);--line:var(--fluid-edge);--muted:var(--fluid-label)}
html,body,body.project-mode,body.creation-mode,body.generation-mode{background:var(--fluid-canvas);color:var(--fluid-ink)}
body .main,body .workspace-main,body .workspace-view{background:transparent}
body .sidebar,body .workspace-sidebar{background:#fff;border-color:var(--fluid-edge)}
body table thead th,body.project-mode table thead th,body.project-mode .cost-plan-panel .trade-columns{background:var(--fluid-blue);color:var(--fluid-label);border-color:var(--fluid-edge)}
body.project-mode .cost-plan-panel .category-summary{background:#fff;color:var(--fluid-label)}
body.project-mode .trade-group>summary:hover,body.project-mode .schedule-activity>.panel-body,body.project-mode .program-floor-heading,body.project-mode .program-floor:nth-child(3n+2) .program-floor-heading{background:#f5f8ff}
body.project-mode .facts>div,body.project-mode td,body.project-mode th{border-color:#e6edf8}
body.project-mode .result-panel,body.project-mode .result-tabs,body .project-card{border-color:var(--fluid-edge);background:#fff}
body .company-settings-inline .settings-nav{background:#f7f6ff;border-color:#e4e5f8}
body .settings-tab:hover,body .project-action:hover:not(:disabled){background:var(--fluid-lilac);color:#62529b}
body .settings-tab.active{background:#ece9ff;color:#5a49a0}
body .settings-form-actions .settings-remove-member{background:var(--fluid-blue);border-color:var(--fluid-edge);color:var(--fluid-label)}
body .settings-form-actions .settings-remove-member:hover{background:#e3edff;color:#354b78}
body .org-switch,body .settings-recipient,body .settings-invite-dialog .settings-note{background:#f4f7ff;border-color:var(--fluid-edge)}
body.project-mode .decision{background:#f6f7ff;border-color:#dfe5f7;border-left-color:#a498db}
body .fluid-project-chat,body .fc-main{background:#fff}
body .fc-sidebar{background:#f8f6ff;border-color:#e9e3f3}
body .fc-header,body .fc-drawer,body .fc-members{background:#fff;border-color:#eceaf1}
body .fc-comparison thead th{background:var(--fluid-blue);color:var(--fluid-label)}
body .res-generation-section{background:#f7f8ff;border-color:#e0e7f7}

/* Cost-table hierarchy: quiet labels, blue interaction, no competing purple bands. */
body.project-mode .cost-plan-panel .trade-columns{background:#f4f8ff;border-top:1px solid #e3ebf8;border-bottom:1px solid #e3ebf8}
body.project-mode .cost-plan-panel .trade-group>summary{background:#fff;transition:background-color .15s ease}
body.project-mode .cost-plan-panel .trade-group>summary:hover{background:#e8f2ff}
body.project-mode .cost-plan-panel .trade-group[open]>summary{box-shadow:inset 3px 0 #7ba5dc}
body.project-mode .cost-plan-panel .trade-group>summary:focus-visible{outline:2px solid #527fb9;outline-offset:-3px}
body.project-mode .cost-plan-panel table thead th{background:#fbfdff;color:#5a6e8e;border-bottom:1px solid #dfe8f6}
body.project-mode .cost-plan-panel .category-nav{background:#fff}
@media(prefers-reduced-motion:reduce){body.project-mode .cost-plan-panel .trade-group>summary{transition:none}}

/* A quiet architectural study for the Residential overview. */
body.project-mode .residential-hero{min-height:278px;align-items:center;overflow:hidden;border:1px solid #dce7f3;background:#f8fbff;color:#253b52;padding:34px}
body.project-mode .residential-hero::before{content:"";position:absolute;inset:-35px -40px -35px 37%;background:url('/assets/residential-linework.svg') center/contain no-repeat;z-index:-1}
body.project-mode .residential-hero>.hero-copy{max-width:52%;padding:16px 32px 16px 0;background:linear-gradient(90deg,#f8fbff 82%,#f8fbff00)}
body.project-mode .residential-hero h2{color:#253b52;font-size:clamp(26px,3vw,38px);letter-spacing:-1.1px}
body.project-mode .residential-hero p{color:#5b718a;font-size:14px}
body.project-mode .residential-hero .eyebrow{padding-top:0;font-size:11px;letter-spacing:1.3px;line-height:1.7}
body.project-mode .residential-hero .hero-caption{background:#f8fbffdf;color:#657e98;font-size:10px;letter-spacing:.4px;bottom:12px;right:18px}
body.project-mode .residential-hero .hero-state{background:#fff;border:1px solid #dce7f3;color:#526e8c;font-size:11px}
@media(max-width:720px){body.project-mode .residential-hero{min-height:370px;align-items:flex-start;padding:48px 22px 180px}body.project-mode .residential-hero>.hero-copy{max-width:100%;padding:0;background:none}body.project-mode .residential-hero::before{inset:145px -40px -48px 0}body.project-mode .residential-hero h2{font-size:28px}body.project-mode .residential-hero .hero-caption{left:auto;right:12px}}

/* White working surfaces; the pale lavender sidebar anchors navigation. */
body .fluid-project-chat .fc-body,body .fluid-project-chat .fc-log,body .fluid-project-chat .fc-compose{background:#fff}
body .fluid-project-chat .fc-comparison figcaption,body.project-mode .fluid-project-chat table thead th,body .fluid-project-chat .fc-comparison tbody tr:nth-child(even),body .fluid-project-chat .fc-data-result .panel-head,body .fluid-project-chat .fc-data-result .panel-body{background:#fff}
body .fluid-project-chat .fc-comparison thead th{color:#53678b;border-bottom:1px solid #e5e7ef}
body .fluid-project-chat .fc-nav-button.active,body .fluid-project-chat .fc-thread.selected{background:#eee8fa;color:#644d8a}
body .fluid-project-chat .fc-nav-button:hover,body .fluid-project-chat .fc-thread:hover{background:#f1ecfb}

/* Keep profile photos within the compact project navigation avatar. */
body .workspace-sidebar .workspace-account{min-width:0;overflow:hidden}
body .workspace-sidebar .account-avatar{width:34px;height:34px;min-width:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#eee9fa;color:#68508d}
body .workspace-sidebar .account-avatar img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;border-radius:inherit}

/* Input-driven architectural illustration stays local and lightweight. */
body.project-mode .residential-hero::before{display:none}
body.project-mode .residential-hero .hero-illustration{position:absolute;right:4%;top:22px;width:48%;height:calc(100% - 52px);object-fit:contain;z-index:-1;pointer-events:none}
@media(max-width:720px){body.project-mode .residential-hero .hero-illustration{top:auto;bottom:30px;right:3%;width:70%;height:155px}body.project-mode .residential-hero .hero-caption{font-size:9px}}

body.project-mode .residential-hero{background:#fff}
body.project-mode .residential-hero>.hero-copy{background:linear-gradient(90deg,#fff 82%,#ffffff00)}
body.project-mode .residential-hero .hero-caption{background:#fffffff0}
@media(max-width:720px){body.project-mode .residential-hero>.hero-copy{background:none}}

/* Architectural data annotations use only saved values. */
body.project-mode .residential-hero{min-height:310px}
body.project-mode .residential-hero .hero-illustration{right:5%;top:4px;width:54%;height:calc(100% - 24px)}
body.project-mode .residential-hero>.hero-copy{max-width:45%}
.hero-callouts{position:absolute;right:2%;top:60px;display:grid;gap:13px;width:125px}
.hero-callout{position:relative;background:#fffffff2;border:1px solid #e0e8f2;border-radius:9px;padding:7px 10px;box-shadow:0 3px 12px #233d6005}
.hero-callout::before{content:"";position:absolute;right:100%;top:50%;width:28px;border-top:1px solid #b8cce0}
.hero-callout strong{display:block;font-size:14px;color:#345572}.hero-callout span{font-size:10px;color:#6c829a}
.trade-edit-controls{display:flex;justify-content:flex-end;padding:12px 20px;border-top:1px solid #e7edf6}
.inline-cost-editor{padding:18px;background:#fff}.inline-cost-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.inline-cost-head strong{margin-right:auto;color:#536b8a}.inline-cost-editor table{min-width:1400px}.inline-cost-editor td{padding:10px}.inline-cost-editor input,.inline-cost-editor select{width:100%;min-width:105px;padding:10px;border:1px solid #dbe4f3;border-radius:8px;background:#fff;font:inherit;color:#35445e}.inline-cost-editor input:disabled{background:#f7f9fc;color:#8994a6}.inline-cost-editor td:nth-child(3){min-width:240px}.inline-cost-total{white-space:nowrap;font-weight:600}.inline-cost-summary{font-weight:600;padding:14px 0 0;color:#4a617e}.inline-cost-editor>.muted{font-size:12px}.inline-cost-editor>.table-wrap{margin:14px 0}.inline-cost-editor [hidden]{display:none!important}
@media(max-width:900px){.hero-callouts{width:105px;right:12px}.hero-callout::before{width:15px}}
@media(max-width:720px){body.project-mode .residential-hero{min-height:420px;padding-bottom:250px}body.project-mode .residential-hero>.hero-copy{max-width:100%}body.project-mode .residential-hero .hero-illustration{width:88%;right:8%;height:220px;top:auto;bottom:24px}.hero-callouts{top:auto;bottom:55px;width:105px;gap:7px}.inline-cost-head{flex-wrap:wrap}.inline-cost-head strong{width:100%}}

.inline-cost-editor td details{min-width:180px;max-height:200px;overflow:auto}.inline-cost-editor td details label{display:flex;gap:7px;font-size:12px;margin:8px 0}.inline-cost-editor input[type=checkbox]{width:16px;min-width:16px}.inline-category-settings{margin:12px 0}.inline-category-settings>label{display:inline-grid;gap:5px;margin:10px 12px 5px 0;font-size:12px}

body.project-mode .cost-plan-panel [hidden]{display:none!important}

/* Borderless construction annotations on the white illustration card. */
.hero-callouts{width:160px;gap:18px}
.hero-callout{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0 0 0 8px}
.hero-callout strong{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-callout span{display:block;margin-top:3px;font-size:10px}
@media(max-width:900px){.hero-callouts{width:130px}}
@media(max-width:720px){.hero-callouts{width:125px;gap:12px}.hero-callout strong{font-size:11px}}

/* Read construction from the roof down to the foundation. */
.hero-callouts{top:54px;bottom:35px;gap:8px;align-content:space-between}
@media(max-width:720px){.hero-callouts{top:auto;bottom:48px;height:205px;gap:6px}}

/* Project-wide card palette: restrained tints and a navy cost anchor. */
body.project-mode .metric{background:#fff;border:1px solid #e1e7f0;border-radius:18px;box-shadow:0 8px 24px #24365404}
body.project-mode .metric>span{color:#71839e}
body.project-mode .metric>strong{color:#10182b}
body.project-mode .metric small{color:#71839e}
body.project-mode .prototype-metrics .metric:nth-child(4n+1){background:linear-gradient(135deg,#f2faf7,#fff 78%);border-color:#d3ebe2}
body.project-mode .prototype-metrics .metric:nth-child(4n+2){background:linear-gradient(135deg,#f3f7ff,#fff 78%);border-color:#d8e4fb}
body.project-mode .prototype-metrics .metric:nth-child(4n+3){background:linear-gradient(135deg,#f6f2ff,#fff 78%);border-color:#e2d8fb}
body.project-mode .prototype-metrics .metric:nth-child(4n+4){background:linear-gradient(135deg,#fffaf0,#fff 78%);border-color:#f0dfb6}
body.project-mode .residential-hero+.prototype-metrics .metric:first-child,body.project-mode .cost-plan-metrics .metric:first-child{background:linear-gradient(140deg,#0b152c,#172744);border-color:#20304e;box-shadow:0 10px 25px #16233d12}
body.project-mode .residential-hero+.prototype-metrics .metric:first-child>strong,body.project-mode .cost-plan-metrics .metric:first-child>strong{color:#fff}
body.project-mode .residential-hero+.prototype-metrics .metric:first-child>span,body.project-mode .residential-hero+.prototype-metrics .metric:first-child small,body.project-mode .cost-plan-metrics .metric:first-child>span,body.project-mode .cost-plan-metrics .metric:first-child small{color:#c1cce0}
body.project-mode .result-panel{border-color:#e1e7f0;border-radius:18px;background:#fff}
body.project-mode .risk-summary-card{background:linear-gradient(135deg,#f4f7ff,#fff 80%);border-color:#dce5f6}
body.project-mode .deployment-phase-card{background:linear-gradient(135deg,#f8f5ff,#fff 80%);border-color:#e1d9f5;color:#172238}
body.project-mode .deployment-phase-card.featured{background:linear-gradient(140deg,#0b152c,#172744);border-color:#20304e;color:#fff}
body.project-mode .deployment-phase-card.featured .eyebrow,body.project-mode .deployment-phase-card.featured small,body.project-mode .deployment-phase-card.featured .deployment-dates{color:#c1cce0}
body.project-mode .deployment-cash-metrics>div{background:linear-gradient(135deg,#f3f7ff,#fff 80%);border-color:#dce5f6}

body.project-mode .residential-hero .hero-caption{right:5%;width:54%;bottom:10px;text-align:center;background:transparent}
body.project-mode .residential-hero .hero-illustration{height:calc(100% - 40px)}
@media(max-width:720px){body.project-mode .residential-hero .hero-caption{right:8%;width:88%;bottom:10px}body.project-mode .residential-hero .hero-illustration{height:220px}}
body.project-mode .result-toolbar{margin-right:18px;align-items:center}
body.project-mode .result-toolbar .project-profile{width:29px;height:29px;flex-basis:29px;font-size:10px}
body.project-mode .result-toolbar .project-profile.signed-in::after{width:5px;height:5px;border-width:1.5px}
@media(max-width:720px){body.project-mode .result-toolbar{margin-right:6px}}
body.project-mode .residential-hero .hero-state{left:24px;right:auto;top:18px}
@media(max-width:720px){body.project-mode .residential-hero .hero-state{left:20px}}

body.project-mode .result-toolbar .project-profile{width:26px;height:26px;flex-basis:26px}
.project-member-avatars{display:flex;align-items:center;padding-left:3px}.project-member-avatars[hidden]{display:none}
body.project-mode .result-toolbar .project-member-avatar{width:26px;height:26px;min-height:26px;padding:0;border:2px solid white;border-radius:50%;margin-left:-4px;background:#eee9f8;color:#64527d;display:grid;place-items:center;font-size:9px;font-weight:600}
body.project-mode .result-toolbar .project-member-avatar:nth-child(2){background:#e8f1fb;color:#486984}
body.project-mode .result-toolbar .project-member-avatar:nth-child(3){background:#e8f5ef;color:#497564}
.records-expand{display:block;margin:14px auto 0;border:1px solid #e1e5ee;border-radius:9px;background:#fff;padding:9px 16px;color:#62728a;font:inherit;font-size:12px;cursor:pointer}
body.project-mode .decision-list>[hidden],body.project-mode .panel-body>[hidden]{display:none!important}

body.project-mode .result-toolbar .project-member-avatar{position:relative;cursor:default;border:2px solid #fff}
body.project-mode .result-toolbar .project-member-avatar[data-tone="0"]{background:#def3e9;color:#356e59}
body.project-mode .result-toolbar .project-member-avatar[data-tone="1"]{background:#e3edff;color:#4c6596}
body.project-mode .result-toolbar .project-member-avatar[data-tone="2"]{background:#fff0d9;color:#876230}
.project-avatar-tooltip{display:none;position:absolute;right:0;top:calc(100% + 10px);z-index:30;background:#fff;border:1px solid #e3e7ee;border-radius:10px;box-shadow:0 8px 24px #14223b12;padding:10px 13px;min-width:180px;color:#34445d;text-align:left;white-space:nowrap;font-size:12px}
.project-avatar-tooltip strong,.project-avatar-tooltip small{display:block}.project-avatar-tooltip small{font-size:11px;font-weight:400;color:#76839a;margin-top:4px}
.project-member-avatar:hover .project-avatar-tooltip,.project-member-avatar:focus .project-avatar-tooltip{display:block}
.fluid-project-chat .fc-data-head>.fc-eyebrow{margin-right:auto}.fluid-project-chat .fc-data-head{gap:5px}

/* PDF brief: compact intake with explicit, page-linked fact review. */
.pdf-brief-card{background:linear-gradient(120deg,#f6f3ff,#f3f8ff);border:1px solid #e7e6f2;border-radius:20px;padding:22px;margin:0 0 20px;color:#263348}
.pdf-brief-card h2{font-size:17px;margin:0 0 7px}.pdf-brief-card>p{font-size:13px;line-height:1.6}.pdf-brief-card input[type=file]{max-width:100%;font-size:13px}
.pdf-status{font-weight:600}.pdf-facts{display:grid;gap:12px;margin:16px 0;max-height:480px;overflow:auto;padding:2px}
.pdf-fact{display:grid;gap:8px;background:white;border-radius:12px;padding:14px}.pdf-fact label{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600}.pdf-fact input[type=checkbox]{width:16px;height:16px;accent-color:#7060aa}
.pdf-fact>input,.pdf-fact textarea{width:100%;min-width:0;border:1px solid #dedfea;border-radius:8px;padding:9px;font:inherit;font-size:13px;color:#263348;background:#fff}.pdf-fact small{font-size:12px;line-height:1.5;color:#626e80;overflow-wrap:anywhere}.pdf-conflict,.pdf-warnings{font-size:12px;color:#825f2c}.pdf-brief-card button{margin:6px 10px 0 0}
/* Step four: the conversation is the intake, with a compact brief on demand. */
body[data-creation-step="3"] .creation-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr)}body[data-creation-step="3"] .creation-aside{display:block}body[data-creation-step="3"] #screen{max-width:none;margin:0;width:100%}@media(max-width:900px){body[data-creation-step="3"] .creation-body{grid-template-columns:1fr}}
.intake-conversation{background:#fff;border:1px solid #e5e2ef;border-radius:22px;overflow:hidden}.intake-chat-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;background:#f5f1fc;padding:22px 26px}.intake-chat-top h2{font-size:19px;margin:0 0 6px}.intake-chat-top p{font-size:13px;margin:0}.intake-brief-view{font-size:12px;max-width:300px}.intake-brief-view summary{cursor:pointer;font-weight:600;color:#69518e;white-space:nowrap}.intake-brief-view dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;padding:14px;border-radius:12px}.intake-brief-view dd{margin:0;overflow-wrap:anywhere}
.intake-chat-log{min-height:230px;max-height:460px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:16px}.intake-message{max-width:88%;padding:16px 20px;border-radius:16px;background:#f6f3fc;align-self:flex-start;color:#29344b}.intake-message.user{align-self:flex-end;background:#edf4ff}.intake-message strong{font-size:12px;color:#6b578c}.intake-message p{font-size:14px;line-height:1.65;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}.intake-message details{font-size:12px}.intake-composer{padding:18px 24px;border-top:1px solid #eeebf4}.intake-composer textarea{display:block;width:100%;resize:vertical;border:1px solid #ded9e9;border-radius:14px;padding:14px;font:inherit;font-size:14px;background:#fff;min-height:88px}.intake-composer-actions{display:flex;gap:10px;align-items:center;margin:12px 0}.intake-composer-actions .primary{margin-left:auto}.intake-composer small{color:#758096;font-size:11px}.intake-attachments{padding:0 24px}.intake-attachment{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;background:#f6f4fa;border-radius:10px;margin:5px 0;font-size:12px;overflow-wrap:anywhere}.intake-chat-status{font-size:13px;margin:10px 24px;color:#69518e}.intake-chat-status:empty{display:none}
@media(max-width:650px){.intake-chat-top{padding:18px;flex-direction:column}.intake-message{max-width:100%}.intake-chat-log{padding:16px}.intake-composer{padding:16px}.intake-composer-actions{flex-wrap:wrap}}

/* Step four is an open conversation within the workflow, without a nested card. */
body[data-creation-step="3"] .intake-conversation{background:transparent;border:0;border-radius:0;overflow:visible;box-shadow:none}
body[data-creation-step="3"] .intake-chat-top{background:transparent;padding:0 0 12px;justify-content:flex-end}
body[data-creation-step="3"] .intake-chat-top>div:first-child{display:none}
body[data-creation-step="3"] .intake-chat-log{padding:16px 0 28px;min-height:260px;max-height:min(48vh,520px);gap:24px}
body[data-creation-step="3"] .intake-message.assistant{background:transparent;border-radius:0;padding:0;max-width:85%}
body[data-creation-step="3"] .intake-message.user{max-width:80%}
body[data-creation-step="3"] .intake-composer{padding:16px 0 0;border-top:0}
body[data-creation-step="3"] .intake-composer textarea{border-color:#e4deee;background:#fff;box-shadow:0 3px 16px #44376606}
body[data-creation-step="3"] .intake-attachments{padding:0}
body[data-creation-step="3"] .intake-chat-status{margin:10px 0}
@media(max-width:650px){body[data-creation-step="3"] .intake-chat-top{flex-direction:row}body[data-creation-step="3"] .intake-message.assistant{max-width:100%}body[data-creation-step="3"] .intake-message.user{max-width:92%}body[data-creation-step="3"] .intake-chat-log{min-height:200px}}

body[data-creation-step="3"] .intake-composer textarea{min-height:52px;max-height:180px;resize:none;line-height:1.5;padding:14px 16px}
body[data-creation-step="3"] .intake-composer textarea:focus{outline:none;border-color:#b7a7d3;box-shadow:0 0 0 2px #b7a7d318}
.intake-thinking{display:flex;align-items:center;gap:9px;font-size:12px;color:#8b7d9f;padding:8px 0}
.intake-thinking-dot{width:6px;height:6px;border-radius:50%;background:#9b83c1;animation:intake-pulse 1.5s ease-in-out infinite}
@keyframes intake-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.intake-thinking-dot{animation:none}}
/* Focused pre-creation intake: files, a short description, and an editable brief. */
.file-intake-top{display:flex;justify-content:flex-end;margin-bottom:20px}.file-intake-brief{width:100%}.file-intake-brief summary{cursor:pointer;text-align:right;font-size:13px;font-weight:600;color:#796496}.file-intake-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px 0 4px}.file-intake-fields label,.file-intake-description{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#4b5264}.file-intake-fields input,.file-intake-description textarea{width:100%;padding:12px 14px;border:1px solid #e3deec;border-radius:12px;font:inherit;font-weight:400;color:#29344b;background:#fff}.file-intake-description textarea{line-height:1.6;min-height:120px;resize:vertical}.file-intake-description{margin-top:26px}.file-intake-drop{padding:30px 20px;text-align:center;border:1px dashed #cfc6df;border-radius:16px;background:#faf8fd;transition:background .15s}.file-intake-drop.dragging{background:#eee7f8}.file-intake-upload-mark{display:block;font-size:26px;color:#947bae;margin-bottom:10px}.file-intake-drop h2{font-size:17px;margin:0 0 8px}.file-intake-drop p{font-size:13px;color:#7c8192;margin:0 0 18px}.file-intake-support{font-size:11px;color:#8890a0;margin:10px 0 16px}.file-intake>small{display:block;font-size:11px;line-height:1.6;color:#8890a0;margin-top:12px}.file-intake-file{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eeeaf3}.file-intake-file strong{font-size:13px;overflow-wrap:anywhere}.file-intake-file small{display:block;font-size:11px;color:#8a8297;margin-top:5px}.file-intake-list:not(:empty){margin-bottom:16px}.file-intake-status{font-size:12px;color:#796496;line-height:1.6}.file-intake-status:empty{display:none}@media(max-width:650px){.file-intake-fields{grid-template-columns:1fr}.file-intake-drop{padding:24px 16px}}
body[data-creation-step="3"] .creation-body .heading{margin-bottom:10px}
.file-intake-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.file-intake-top>p{margin:0;font-size:12px;line-height:1.6;color:#748097}.file-intake-toggle{flex-shrink:0;border:0;background:transparent;color:#7157a3;font:inherit;font-size:12px;font-weight:650;padding:7px 0 7px 12px;cursor:pointer}.file-intake-toggle:before{content:'›';display:inline-block;margin-right:7px;transition:transform .15s}.file-intake-toggle[aria-expanded="true"]:before{transform:rotate(90deg)}.file-intake-toggle:hover{color:#50367e;background:transparent}.file-intake-brief[hidden]{display:none}.file-intake-brief .file-intake-fields{padding:0 0 24px}
.file-intake-drop{border:1px solid #e2e5ef;background:radial-gradient(ellipse at 15% 0%,#f1f6ff 0%,transparent 60%),linear-gradient(120deg,#fafbff 0%,#faf7fd 62%,#f4f8ff 100%);padding:30px 20px 28px;box-shadow:inset 0 1px 0 #ffffffc9,0 7px 22px #7860a00a}.file-intake-upload-mark{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:0 auto 16px;border-radius:16px;background:#ffffffb8;color:#7254ad;box-shadow:0 4px 14px #7356a812}.file-intake-drop h2{color:#393653;font-size:18px;letter-spacing:-.3px}.file-intake-drop p{color:#736b89}.file-intake-drop .quiet{border:1px solid #ffffffc9;background:#ffffffd9;color:#5b4288;box-shadow:0 3px 8px #70569409;border-radius:11px;padding:11px 20px}.file-intake-drop .quiet:hover{background:#fff;border-color:#c7b8e3;color:#49306f}.file-intake-drop.dragging{background:#ded3f6;border-color:#9375c3;box-shadow:0 0 0 3px #ad94d323}@media(max-width:650px){.file-intake-top{gap:12px;align-items:flex-start}.file-intake-top>p{max-width:75%}.file-intake-toggle{padding-top:0}.file-intake-drop h2{font-size:16px}}

/* Restore the October 8 step-four arrangement. */
body[data-creation-step="3"] .creation-aside{display:flex}
body[data-creation-step="3"] .creation-body .heading{margin-bottom:24px}
.original-file-intake>small{display:block;font-size:11px;color:#8890a0;line-height:1.6;margin:12px 0}
.original-file-intake .file-intake-description{margin-top:0}
.original-file-intake .file-intake-description textarea{min-height:120px}

.file-intake-file>div{flex:1;min-width:0}.file-intake-file select{width:auto;min-width:88px;border:1px solid #e3deec;border-radius:9px;background:#fff;padding:8px;color:#655477;font:inherit;font-size:12px}@media(max-width:650px){.file-intake-file{flex-wrap:wrap}.file-intake-file>div{flex-basis:100%}}

.intake-upload-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:18px}.original-file-intake .dropzone input[hidden]{display:none}.intake-upload-actions button{position:relative;z-index:1}.intake-upload-actions button:disabled{opacity:.5;cursor:not-allowed}

.original-file-intake .dropzone>button{margin-top:18px;position:relative;z-index:1}.intake-file-progress{display:block;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;accent-color:#9a83c1;margin:14px 0;background:#eeeaf5}.intake-file-progress[hidden]{display:none}.intake-file-progress::-webkit-progress-bar{background:#eeeaf5;border-radius:6px}.intake-file-progress::-webkit-progress-value{background:#9a83c1;border-radius:6px}
/* Softer evidence surfaces within the existing two-column layout. */
.original-file-intake .dropzone{background:linear-gradient(125deg,#f7faff,#faf9fd);border-color:#cad6e9;border-radius:18px}
.original-file-intake .dropzone .file-symbol{background:#edf4ff;color:#4f86d8}
body[data-creation-step="3"] .creation-body .original-file-intake>.form-card{padding:18px;border:1px solid #e0e6f0;border-radius:17px;background:#fff;box-shadow:0 5px 18px #36517a06}
.original-file-intake .file-intake-description textarea{background:#f8f9fc;border:1px solid #edf0f6;color:#354158;border-radius:12px}
.original-file-intake .file-intake-description textarea:focus{outline:2px solid #d8e4f7;outline-offset:1px}
/* Brief review occupies a separate row, so it never stretches the guidance column. */
body[data-creation-step="3"] .intake-full-review{grid-column:1 / -1;min-width:0;width:100%}
body[data-creation-step="3"] .intake-full-review>details{margin-top:0}
body[data-creation-step="3"] .creation-aside{padding-bottom:8px}
@media(max-width:900px){body[data-creation-step="3"] .creation-aside{padding-bottom:0}}

/* Spaces summary follows the overview's dark, blue, lavender and warm cards. */
body.project-mode .spaces-metrics .metric:first-child{background:linear-gradient(140deg,#0b152c,#172744);border-color:#20304e;box-shadow:0 10px 25px #16233d12}
body.project-mode .spaces-metrics .metric:first-child>strong{color:#fff}
body.project-mode .spaces-metrics .metric:first-child>span,body.project-mode .spaces-metrics .metric:first-child small{color:#c1cce0}

/* Trade headers remain distinct from the white item ledger in every state. */
body.project-mode .cost-plan-panel .trade-group{margin:10px 14px;border:1px solid #dce5f1;border-radius:12px;overflow:hidden;background:#fff}
body.project-mode .cost-plan-panel .trade-group>summary{background:#edf3fb;color:#263c59;border:0;box-shadow:none}
body.project-mode .cost-plan-panel .trade-group>summary:hover{background:#e5eef9}
body.project-mode .cost-plan-panel .trade-group[open]>summary{background:#e5eef9;box-shadow:inset 3px 0 #8aa7cd;border-bottom:1px solid #d5e1ef}
body.project-mode .cost-plan-panel .trade-name>strong{font-weight:700;color:#263c59}
body.project-mode .cost-plan-panel .trade-name>small,body.project-mode .cost-plan-panel .trade-basis{color:#61728a}
body.project-mode .cost-plan-panel .trade-group .expand-chevron{background:#fff;border-color:#cfdaea;color:#46658a}
body.project-mode .cost-plan-panel .trade-items{background:#fff;padding:0 12px 12px 30px}
body.project-mode .cost-plan-panel .trade-items .trade-edit-controls{padding:10px 4px;border:0;background:#fff}
body.project-mode .cost-plan-panel .trade-items table{background:#fff}
body.project-mode .cost-plan-panel .trade-items table thead th{background:#fff;color:#6a778b;font-size:10px;letter-spacing:.5px;border-bottom:1px solid #e2e8f0}
body.project-mode .cost-plan-panel .trade-items table tbody tr,body.project-mode .cost-plan-panel .trade-items table tbody td{background:#fff}
body.project-mode .cost-plan-panel .trade-items table td{border-bottom:1px solid #edf0f5}
body.project-mode .cost-plan-panel .trade-group>summary:focus:not(:focus-visible){outline:none}
body.project-mode .cost-plan-panel .trade-group>summary:focus-visible{outline:2px solid #527fb9;outline-offset:-4px}
@media(max-width:720px){body.project-mode .cost-plan-panel .trade-group{margin:9px 8px}body.project-mode .cost-plan-panel .trade-items{padding:0 6px 8px 12px}}

/* Preparation: full-width forms and optional compact help. */
body.creation-mode .creation-shell .creation-body{grid-template-columns:minmax(0,1fr)}
body.creation-mode .creation-body #screen{max-width:none;width:100%;padding-right:0}
.preparation-tools{display:flex;justify-content:flex-end;padding:12px 28px 0}
#askFluidHelp{display:inline-flex;align-items:center;gap:7px;border:1px solid #e8e3f0;border-radius:20px;padding:7px 12px;background:#fff;color:#76648b;font:inherit;font-size:12px;cursor:pointer}
#askFluidHelp:hover{background:#f8f5fc;border-color:#d7c9e9}
#preparationHelp{position:fixed;inset:auto 24px 24px auto;margin:0;width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;padding:24px;border:1px solid #e6e1ed;border-radius:20px;background:#fff;color:#282232;box-shadow:0 16px 60px #25203724;overflow:auto}
#preparationHelp::backdrop{background:#211a301a}
#preparationHelp .creation-aside{display:flex;padding:0}
#preparationHelp .workflow-guidance{display:flex;background:#fff;padding:0;border:0;gap:18px;min-height:0;width:100%}
#preparationHelp .workflow-guidance[hidden]{display:none}
#preparationHelp .fluid-chat-heading{padding-right:26px}
#preparationHelp .fluid-chat-mark{background:#f5f0fb;color:#8a6cae}
#preparationHelp .chat-context{border-color:#eeeaf3}
#preparationHelp .chat-composer{background:#fff;border-color:#e4ddeb}
#preparationHelp .chat-suggestions button{background:#faf8fd}
#preparationHelp .fluid-chat-messages{max-height:210px}
#preparationHelp .planning-chat-toggle{position:static;align-self:flex-start;margin-bottom:12px}
#closePreparationHelp{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#82778b;font-size:24px;line-height:1;width:32px;height:32px;cursor:pointer;z-index:2}
#askFluidHelp:focus-visible,#closePreparationHelp:focus-visible{outline:2px solid #9678ba;outline-offset:3px}
body:not(.creation-mode) .preparation-tools{display:none}
@media(max-width:650px){.preparation-tools{padding:10px 16px 0}#preparationHelp{inset:auto 16px 16px auto;padding:20px}}

.file-intake-status-line{display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap}
.file-intake-status-line .file-intake-status{flex:1;min-width:200px}
.file-intake-timing{flex-shrink:0;color:#84768f;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.file-intake-timing[hidden]{display:none}

/* Keep the preparation heading close to the step bar on every step. */
body.creation-mode #brief-form{position:relative}
body.creation-mode .creation-body #screen{padding-top:0}
@media(min-width:651px){
  body.creation-mode .preparation-tools{position:absolute;top:14px;right:28px;padding:0}
  body.creation-mode .creation-body .heading{padding-right:140px}
  body.creation-mode[data-creation-step="0"] .creation-body .heading{padding-left:140px}
}
@media(max-width:650px){
  body.creation-mode .creation-shell .creation-body{padding-top:8px}
  body.creation-mode .preparation-tools{padding-top:8px}
}

/* User-authored intake and generated analysis remain visually distinct. */
.original-file-intake .file-intake-description + .file-intake-description{margin-top:20px}
.original-file-intake .file-intake-description input{width:100%;max-width:340px;padding:12px 14px;border:1px solid #e3deec;border-radius:12px;background:#f8f9fc;font:inherit;font-weight:400;color:#29344b}
.original-file-intake .file-intake-description small{font-weight:400;line-height:1.5;color:#777f90}
.document-analysis{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.document-analysis[hidden]{display:none}
.document-analysis h3{margin:0 0 14px}
.document-analysis details{margin-top:14px}
.document-analysis summary{cursor:pointer;font-weight:600;color:#796496}
