:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#25392e;background:#f6f7f2}*{box-sizing:border-box}body{margin:0}header{padding:24px 5vw;display:flex;align-items:center;gap:24px;border-bottom:1px solid #dee4d9;background:white}.logo{font-size:29px;letter-spacing:-1.5px}.logo span{color:#9d77e5;margin-left:5px}.tag{font-size:10px;letter-spacing:1.5px;color:#748076}main{max-width:1120px;margin:60px auto;padding:0 24px}h1{font-size:clamp(38px,5vw,60px);font-weight:550;letter-spacing:-2px;line-height:1.08;margin:18px 0}h2{font-size:20px;font-weight:600}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:2px;color:#62745e}.layout{display:grid;grid-template-columns:360px 1fr;gap:24px;margin:32px 0}.panel{background:white;border:1px solid #dce3d8;border-radius:16px;padding:25px}label{display:block;font-size:13px;font-weight:600;margin:20px 0}input,select{display:block;width:100%;font:inherit;font-weight:400;padding:12px;border:1px solid #cbd4c8;border-radius:7px;margin-top:7px;background:white;color:#26372d}button{background:#60755d;color:white;border:0;border-radius:7px;padding:12px 18px;font:inherit;font-size:14px;cursor:pointer}button:hover{background:#40573e}button:disabled{opacity:.5;cursor:wait}#logout{margin-left:auto}.muted,footer{color:#778174;font-size:13px}#login{max-width:440px;margin:0 auto}#loginForm{margin-top:30px}.project{display:block;width:100%;text-align:left;background:#f5f7f2;color:#273c2b;margin:10px 0;padding:16px}.project:hover{background:#e5ebde}.project small{display:block;margin-top:7px;color:#62715f}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}#notice{color:#885a24}footer{text-align:center;padding:24px}#count{color:#85937d;font-size:14px}[hidden]{display:none!important}@media(max-width:720px){.layout{grid-template-columns:1fr}header{gap:12px}.tag{font-size:8px}main{margin-top:36px}}
.assignment{display:inline-block;font-size:12px;margin-top:12px;padding:4px 8px;background:#e9e1f6;border-radius:6px;color:#603599}.unassigned{background:#fff0b8;color:#6d5100}.inboxActions{display:flex;gap:8px;flex-wrap:wrap}#inboxFilter{max-width:250px}#conversationDetail pre{overflow-wrap:anywhere}
textarea{display:block;width:100%;font:inherit;font-weight:400;padding:12px;border:1px solid #cbd4c8;border-radius:7px;margin-top:7px;background:white;color:#26372d;resize:vertical}
.editorToolbar{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.editorToolbar button{font-size:12px;background:#eee8f8;color:#4e277b;padding:9px}.replyEditor{min-height:180px;border:1px solid #cbd4c8;border-radius:8px;padding:15px;margin-bottom:14px;overflow-wrap:anywhere;font-size:16px;line-height:1.6}.replyEditor p{margin:0 0 12px}.replyEditor a,.emailPreview a{color:#6c35a2;text-decoration:underline}.emailPreview{border:1px solid #d8c8ec;border-radius:10px;padding:20px;margin-top:16px;overflow-wrap:anywhere}.emailPreview h3{font-size:13px;color:#6c35a2}
.unsavedWarning{background:#fff3c9;color:#654c08;padding:16px;border-radius:8px;margin-bottom:16px}
#contractorsView input[type=checkbox]{width:auto}#contractorsView .panel{margin:20px 0;min-width:0}#contractorsView .project{overflow-wrap:anywhere}#contractorsView .panel>p{overflow-wrap:anywhere}

#conversationDetail>a{display:block;margin:8px 0;color:#6c35a2;overflow-wrap:anywhere}
/* Planner and schedule: logo colours, readable titles, shared responsive layout. */
:root{color:#292333;background:#f7f6fa}main{max-width:1440px;margin-top:32px}.logo{color:#17121e}.logo span{color:#aa59ed}button{background:#7142ac}button:hover{background:#573089}.eyebrow{color:#795499}.mainNav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 32px;padding-bottom:18px;border-bottom:1px solid #e6e0ed}.mainNav button{background:#eee7f7;color:#533078}.mainNav button:hover{background:#e0d3f2}.pageToolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:22px 0}.summaryCount{font-weight:600}.secondary{background:#ece7f3;color:#573278}.secondary:hover{background:#e0d7ed}.textButton{background:transparent;color:#6d4196;padding:8px 0;text-align:left}.textButton:hover{background:#f1ebf8}.plannerBoard{display:flex;gap:18px;overflow-x:auto;align-items:flex-start;padding-bottom:22px}.plannerLane{min-width:280px;flex:1;background:#eeebf3;border-radius:16px;padding:14px}.plannerLane h2{font-size:15px;margin:5px 0 18px;color:#51415e}.plannerCard{background:white;border:1px solid #e3dce9;border-radius:12px;padding:18px;margin-bottom:14px;box-shadow:0 2px 4px #37214c06}.cardTitle{font-size:20px;line-height:1.3;font-weight:700;color:#2d223a;background:transparent;text-align:left;padding:0;display:block;overflow-wrap:anywhere}.cardTitle:hover{background:transparent;color:#7943ac;text-decoration:underline}.reference{font-size:11px;color:#84798c;letter-spacing:.8px;margin-top:7px}.cardVenue{font-size:15px;color:#72657d;line-height:1.5;margin-top:22px}.badge{display:inline-block;font-size:11px;letter-spacing:.2px;padding:5px 9px;border-radius:6px;background:#eee4fb;color:#61368e}.badge.confirmed{background:#d9f7ee;color:#18604e}.badge.editing,.badge.linked{background:#eee0ff;color:#7139a0}.badge.delivered{background:#def4ec;color:#2b6756}.badge.cancelled{background:#f4e3e1;color:#924d43}.linkedCard{border-left:4px solid #af65e9}.linkedCard .cardTitle{margin-top:12px;font-size:18px}.linkedDisclosure{margin-top:15px;border-top:1px solid #ece6f1;padding-top:12px}.linkedDisclosure summary{cursor:pointer;font-size:13px;color:#6b4192;font-weight:600}.sessionRow{display:block;background:#f7f4fb;color:#302337;width:100%;text-align:left;margin:10px 0;padding:14px}.sessionRow:hover{background:#ede4f7}.sessionRow small{display:block;font-weight:400;font-size:12px;color:#776781;line-height:1.7;margin:6px 0}.sessionRow .badge{margin-top:5px}.projectSummary{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.projectGrid{display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,2fr);gap:24px;margin-top:24px;align-items:start}.projectGrid>div>.panel{margin-bottom:20px}.sessionPanel{max-width:800px}.deliveryForm{border-top:1px solid #e9e1f1;margin-top:28px;padding-top:10px}.galleryLink{display:inline-block;background:#7142ac;color:white;border-radius:7px;padding:12px 18px;text-decoration:none}.twoFields{display:grid;grid-template-columns:1fr 1fr;gap:16px}input[type=checkbox]{width:20px;height:20px}.segmented{display:flex;gap:4px;background:#e9e1f2;border-radius:10px;padding:4px}.segmented button{min-width:100px}.monthbar{display:flex;justify-content:space-between;align-items:center;gap:8px}.monthbar h2{text-align:center}.calendarGrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#e7dfef;border:1px solid #e7dfef;border-radius:10px;overflow:hidden;margin-top:20px}.weekday{background:#f1ebf7;padding:12px;text-align:center;font-size:12px;color:#76617f}.calendarDay,.calendarEmpty{background:white;min-height:120px;padding:9px}.calendarEmpty{background:#faf8fc}.dayNumber{font-size:13px;font-weight:600;color:#84718e}.today .dayNumber{background:#7444ac;color:white;border-radius:50%;padding:4px 7px}.calendarEvent{font-size:12px;line-height:1.4;padding:7px;display:block;width:100%;text-align:left;margin-top:9px;background:#e5f7f0;color:#235745;overflow-wrap:anywhere}.calendarEvent:hover{background:#caeee0}.calendarEvent small{display:block;font-size:10px;margin-top:4px}.scheduleList{max-width:900px}.scheduleList h2{font-size:15px;margin:28px 0 10px}.empty{padding:18px;color:#81728c;font-size:14px}.panel{border-color:#e3dce9}summary{cursor:pointer}.muted,footer{color:#82758b}
@media(max-width:760px){main{padding:0 16px}h1{font-size:36px}.plannerBoard{display:block}.plannerLane{margin-bottom:20px}.projectGrid{grid-template-columns:1fr}.calendarDay,.calendarEmpty{min-height:88px;padding:5px}.calendarEvent{font-size:10px;padding:5px}.weekday{padding:8px 2px}.monthbar button{font-size:11px;padding:9px}.monthbar h2{font-size:17px}.mainNav{gap:5px}.mainNav button{padding:10px 12px}.tag{max-width:100px}.summaryCount{font-size:14px}.twoFields{gap:10px}}

#notice:not(:empty){position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);background:#fff4d9;color:#634519;border:1px solid #eddbb4;border-radius:10px;padding:14px 20px;box-shadow:0 4px 20px #38244722;z-index:10}

.galleryDraftFields{padding:18px;border:1px solid #c9b3eb;border-radius:12px;background:#f8f4ff;margin:20px 0}.galleryEmailButton{display:inline-block;background:#60755d;color:#fff;font-weight:bold;font-size:16px;padding:16px 24px;border-radius:5px;text-decoration:none}.deliveryForm+details{margin-top:22px}

.reviewQueue{display:grid;gap:16px;margin-top:28px}.reviewQueue article{margin:0}.reviewQueue .cardTitle{text-align:left}

.dateResult {margin-top:28px}.dateResult .panel {margin-top:16px}.dateStatus {display:inline-block;padding:12px 16px;border-radius:10px}.dateStatus.clear{background:#d5f7ed;color:#115944}.dateStatus.caution{background:#fff1bf;color:#654d00}.dateStatus.blocked{background:#ffe0d9;color:#8c2c1c}

input[type="checkbox"]{width:auto;display:inline-block;margin-right:8px}fieldset{border:1px solid #dfdce6;border-radius:12px;margin:16px 0;padding:16px}fieldset label{font-weight:400}legend{padding:0 6px;font-weight:600}

.inboxTools{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.inboxTools label{margin:12px 0;flex:1;min-width:180px}.inboxTools label:first-child{flex:2}.inboxTools button{margin-bottom:12px}#conversations .project{overflow-wrap:anywhere}#inboxResultCount{margin-bottom:0}

.bookingDocument{color:#304235;background:#fff;line-height:1.6;padding:28px 12px;font-family:Baskerville,Georgia,serif}.bookingDocument h2{font-size:25px}.documentBrand{text-align:center;font-size:25px;text-transform:uppercase;letter-spacing:2px}.documentCouple{text-align:center;font-size:27px}.bookingDocument>h2{text-align:center}.trialRibbon{font-family:Inter,system-ui,sans-serif;background:#fff3d0;color:#705220;padding:10px 14px;font-size:11px;letter-spacing:.6px}.bookingSummary{background:#edf1e9;padding:22px;margin:24px 0}.documentFields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.documentFields h3{font-size:18px;text-decoration:underline;margin:4px 0}.documentFields p{font-size:15px;margin:0;white-space:pre-line}.documentTotal{font-weight:650;font-size:17px}.moneyTable{width:100%;border-collapse:collapse}.moneyTable td{padding:10px 0;border-bottom:1px solid #e6e1e9}.moneyTable td:last-child{text-align:right;white-space:nowrap;padding-left:15px}.bookingSettings{margin-top:20px;max-width:850px}.bookingPanel details{margin:22px 0}.bookingPortal{max-width:880px}.bookingPortal>.panel{margin:24px 0}.paymentClaim{border-left:4px solid #d8aa31;background:#fff9e6;padding:16px;margin:16px 0}.bookingPortal button{margin-right:12px}.bookingDocument pre{line-height:1.7}.signingForm{border-color:#b697da}
@media(max-width:600px){.documentFields{grid-template-columns:1fr}.bookingDocument{padding:12px 0}.bookingSummary{padding:16px}.bookingDocument h2{font-size:22px}.documentCouple{font-size:23px}.bookingPortal>.panel{padding:18px}}
@media print{body{background:white}body>header,body>footer,#notice,.bookingPortal>button,.bookingPortal form{display:none}.bookingPortal{max-width:none;margin:0}.bookingDocument{break-inside:auto}.bookingSummary,.documentFields>div{break-inside:avoid}.panel{border:none;padding:0}.bookingPortal details{display:block}}

.partnerFields{border:1px solid #e6e1e9;border-radius:12px;margin:18px 0;padding:16px}.partnerFields legend{font-weight:600;padding:0 8px}

.replacementReview{background:#f6f0fc;border:1px solid #d6c2ea;border-radius:12px;padding:18px;margin:18px 0}.replacementReview p{overflow-wrap:anywhere}

.formBuilderLayout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:24px;align-items:start}.formPreview{background:#fcfaff}.formPreview h2{font-size:30px}.formPreview p,#formIntroduction{white-space:pre-line}.questionEditor{border:1px solid #e3dce9;border-radius:12px;padding:18px;margin:18px 0;background:#faf8fd}.questionEditor h4{margin:0 0 16px}.questionEditor .inboxActions{flex-wrap:wrap}.formBuilderLayout .inboxActions{margin-top:16px}.formBuilderLayout input,.formBuilderLayout select,.formBuilderLayout textarea{max-width:100%}#enquiryFormView>.panel{max-width:900px}#enquiryFormView a{display:inline-block;margin-top:12px;color:#673398}#formHeading{font-size:42px;overflow-wrap:anywhere}#questions label{overflow-wrap:anywhere}
@media(max-width:850px){.formBuilderLayout{grid-template-columns:1fr}}

.planningLayout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:24px;align-items:start}.planningLayout>div>.panel{margin-bottom:24px}.planRow{border:1px solid #e5dfee;border-radius:10px;padding:16px;margin:12px 0;background:#faf8fc}.planRow summary{font-weight:600;line-height:1.6;overflow-wrap:anywhere}.planRow[open] summary{margin-bottom:18px}.planningEditor>button{margin:20px 0}.dayActivity{background:white;border:1px solid #e4dcea;border-radius:12px;padding:20px;margin:12px 0}.dayCheck{display:flex;gap:12px;align-items:baseline;font-weight:650;font-size:20px}.dayCheck input{flex-shrink:0}.dayCheck:has(input:checked) span{text-decoration:line-through;color:#7b6f85}.weddingDayMode{max-width:1000px;margin:auto}.dayPractical{border-left:4px solid #29cbb3}.dayActivity p,.dayActivity pre{margin-left:32px}.dayActivity pre,.dayPractical pre{white-space:pre-wrap;overflow-wrap:anywhere}.dayTimeline,.dayGroups{margin-top:30px}.dayActivity{break-inside:avoid}
@media(max-width:800px){.planningLayout{grid-template-columns:1fr}.dayCheck{font-size:17px}.dayActivity{padding:16px}.planningLayout .panel{padding:18px}}
@media print{body:has(.weddingDayMode) .mainNav,body:has(.weddingDayMode) #business,.noPrint{display:none!important}.weddingDayMode{max-width:none;margin:0}.dayCheck{font-size:15pt}.dayActivity{border:1px solid #bbb}.dayPractical{border-left:0}.weddingDayMode h1{font-size:24pt}}

/* Collapsed run-sheet headers keep the whole day scannable. */
.daySection>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.daySection>summary::-webkit-details-marker{display:none}
.daySection>summary::before{content:'›';display:inline-block;flex:0 0 14px;font-size:24px;line-height:1;transform-origin:center;text-align:center;color:#7142ac}
.daySection[open]>summary::before{transform:rotate(90deg)}
.daySection>summary:focus-visible{outline:2px solid #7142ac;outline-offset:6px;border-radius:3px}
.daySectionTitle{flex:1;min-width:0}.daySectionTime{font-variant-numeric:tabular-nums;font-size:14px;white-space:nowrap;color:#6e617b}
.daySectionBody{border-top:1px solid #e8e0ef;margin-top:16px;padding-top:8px}.dayActivity .daySectionBody>p,.dayActivity .daySectionBody>pre{margin-left:0}
.dayChecklistItem .dayCheck{font-size:16px;font-weight:500;margin:16px 0;align-items:center}.dayCheck input{margin-top:0}
.dayChecklistItem pre{font-size:14px}.dayActivity .daySectionBody h3{font-size:16px;margin-top:22px}.dayActivity{padding:16px 20px;margin:8px 0}.dayTimeline{margin-top:20px}
@media(max-width:600px){.daySection>summary{gap:8px;flex-wrap:wrap}.daySectionTitle{flex-basis:calc(100% - 30px)}.daySectionTime{margin-left:22px}.dayActivity{padding:14px 16px}}
@media print{.daySection>summary::before{display:none}.daySectionTime{color:inherit}.daySectionBody{border-top:0}.daySection{break-inside:avoid}}

.questionnairePortal{max-width:920px}.questionnaireSection{margin:20px 0}.questionnaireSection>summary{font-size:20px;font-weight:650}.questionnaireFields{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.questionnaireFields label:has(textarea){grid-column:1/-1}.questionnaireActions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:12px;padding:16px;background:#f7f6fa;border-top:1px solid #e4dcea}.questionnaireOwner{max-width:1100px;margin-top:24px}.questionnaireOwner a{color:#6d4196}.questionnaireReview{margin-top:28px}.questionnaireReview pre{font-size:14px}.questionnaireOwner .inboxActions{margin:20px 0}.questionnaireSection input,.questionnaireSection textarea{max-width:100%}
@media(max-width:620px){.questionnaireFields,.questionnaireReview .twoFields{grid-template-columns:1fr}.questionnairePortal .panel{padding:18px}.questionnairePortal h1{font-size:34px}}

.preparationStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.preparationStats .panel{display:flex;gap:.65rem;align-items:center;margin-bottom:0}.preparationStats strong{font-size:2rem;color:var(--violet,#714bbd)}.preparationStats span{color:#535866}.preparationHeading{display:flex;justify-content:space-between;align-items:start;gap:1rem}.preparationHeading h2{margin:.2rem 0}.preparationHeading .badge{flex-shrink:0}.preparationCard{border-left:4px solid #9d68dc}.preparationList{display:grid;gap:1rem}.preparationCard .twoFields{margin:.5rem 0 1.25rem}.preparationCard .twoFields h3{margin-bottom:.5rem}.preparationCard .inboxActions{margin-bottom:0}.questionnaireAcknowledgement{margin-top:1rem}@media(max-width:620px){.preparationStats{gap:.4rem}.preparationStats .panel{flex-direction:column;align-items:start;padding:.8rem}.preparationStats span{font-size:.85rem}.preparationHeading{flex-direction:column}.preparationCard .twoFields{grid-template-columns:1fr;gap:.4rem}}

/* Session request controls share the existing project and form layout. */
#sessionBookingView{max-width:1050px;margin:auto}#sessionBookingView fieldset{border:1px solid #dcd9e6;border-radius:12px;padding:20px;margin:20px 0}#sessionBookingView legend{font-weight:700;font-size:1.2rem}.bookingWeekdays{display:flex;flex-wrap:wrap;gap:14px}.bookingWeekdays label{display:flex;align-items:center;gap:6px}.bookingWeekdays input,#sessionBookingView input[type=checkbox]{width:auto}#sessionBookingView .panel>button,#sessionBookingView form>button{margin:8px 8px 0 0}#sessionBookingView input[readonly]{font-size:13px}#sessionPortal{max-width:750px;margin:auto}#sessionPortal input,#sessionPortal select,#sessionPortal textarea{max-width:100%;box-sizing:border-box}

/* Trusted email preview: keep the app CSP strict, use scoped presentation. */
.brandedEmailPreview .brandedEmail{font:16px Arial,sans-serif;line-height:1.6;color:#302d39;background:white;padding:16px;overflow-wrap:anywhere}
.brandedEmailPreview .emailBrandLinks{margin-top:28px;font-size:13px}
.brandedEmailPreview .emailBrandLinks span{border-left:1px solid #ddd;margin:0 16px}
.brandedEmailPreview .emailBrandLinks img{vertical-align:middle}
.brandedEmailPreview img[alt]:not([alt="Instagram"]){display:block;max-width:100%;height:auto;margin-top:20px}
#emailBrandingView input[type="color"]{width:90px;height:44px;padding:4px}
#emailBrandingView form>button{margin-right:10px}
.templatePicker{margin:16px 0;padding:14px;background:#f8f5fc;border:1px solid #e8e0f1;border-radius:10px;min-width:0}
.templatePicker summary{cursor:pointer;font-weight:600}.templatePicker select{display:block;width:100%;margin:12px 0}.templatePicker button{margin:4px}.templatePicker .emailPreview:empty{display:none}
#emailTemplatesView code{overflow-wrap:anywhere}#emailTemplatesView .replyEditor{min-height:220px}#emailTemplatesView .inboxActions select{flex:1;min-width:0}
.recipientFields{border-bottom:1px solid #e8e0f1;padding-bottom:16px;margin-bottom:20px}.recipientFields .inboxActions select{flex:1;min-width:0}.recipientPreview{background:#f8f5fc;padding:10px 16px;margin-bottom:18px;border-radius:8px;overflow-wrap:anywhere}.recipientPreview p{margin:6px 0;font-size:14px}

.reminderGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.reminderItem{padding:16px;border:1px solid #e3deeb;border-radius:8px;min-width:0}.reminderItem p{overflow-wrap:anywhere}

.workflowDefaultRow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:1rem;margin-bottom:1.2rem}.workflowDefaultRow select{width:100%;min-width:0}.workflowDefaultRow button{margin-bottom:0}@media(max-width:600px){.workflowDefaultRow{grid-template-columns:1fr;gap:.3rem}.workflowDefaultRow button{justify-self:start}}

.insightCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.insightCards .panel{min-width:0;border-top:4px solid #af65e9}.insightCards .panel:nth-child(2){border-top-color:#28c9b1}.insightCards .panel:nth-child(3){border-top-color:#f2c536}.insightCards h2{font-size:15px}.insightValue{font-size:clamp(25px,3vw,36px);font-weight:700;margin:18px 0;overflow-wrap:anywhere}.insightTableWrap{overflow:auto;max-width:100%;border:1px solid #e3dce9;border-radius:12px;background:white;margin:18px 0 28px}.insightTable{width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}.insightTable caption{text-align:left;padding:14px;font-size:12px;color:#796c83}.insightTable th,.insightTable td{padding:14px;border-top:1px solid #eee8f3;white-space:nowrap}.insightTable th{background:#f3edf9;font-size:13px}.insightTable th:not(:first-child),.insightTable td:not(:first-child){text-align:right}.insightTable button{max-width:300px;white-space:normal}#insightsView>.panel{margin:22px 0}@media(max-width:760px){.insightCards{grid-template-columns:1fr}.insightValue{font-size:32px}}

/* Public enquiry presentation and its owner preview share the same theme. */
.enquiryTheme{background:var(--form-background,#f7f6fa);color:var(--form-text,#292333);font-family:var(--form-font,ui-sans-serif,system-ui,sans-serif)}
.enquiryTheme .formCanvas{background:white;color:var(--form-text);border-radius:var(--form-radius);padding:32px;overflow-wrap:anywhere}
.hostedEnquiry #login.formCanvas{max-width:660px}.hostedEnquiry main{max-width:900px;margin:40px auto}
.enquiryTheme header,.enquiryTheme footer{background:white;color:var(--form-text)}.enquiryTheme .tag{color:var(--form-text)}
.enquiryTheme .formIntro,.enquiryTheme .formLogo{text-align:var(--form-alignment)}
.enquiryTheme .formIntro h1,.enquiryTheme .formIntro h2{font-family:var(--form-heading);font-size:clamp(32px,4vw,44px);font-weight:500;letter-spacing:-.8px;line-height:1.15;margin:18px 0}
.enquiryTheme .formIntro p{white-space:pre-line;line-height:1.6}.enquiryTheme .formBusiness{font-size:14px;letter-spacing:.5px}
.enquiryTheme .formLogo img{max-width:100%;width:auto;max-height:110px;object-fit:contain;display:inline-block;margin-bottom:10px}
.enquiryTheme input,.enquiryTheme select,.enquiryTheme textarea{color:var(--form-text);border:1px solid var(--form-text);border-radius:var(--form-radius);font-family:var(--form-font);font-size:16px}
.enquiryTheme fieldset{border-color:var(--form-text);border-radius:var(--form-radius)}.enquiryTheme label{font-size:14px;line-height:1.5}
.enquiryTheme button{background:var(--form-button);color:white;border-radius:var(--form-radius);font-family:var(--form-font)}.enquiryTheme button:hover{filter:brightness(.92)}
.enquiryTheme input:focus-visible,.enquiryTheme select:focus-visible,.enquiryTheme textarea:focus-visible,.enquiryTheme button:focus-visible{outline:2px solid var(--form-button);outline-offset:3px}
.enquiryTheme .muted,.enquiryTheme .previewLabel{color:var(--form-text);font-size:13px}.enquiryTheme .previewLabel{font-family:system-ui,sans-serif}
.formPreview.enquiryTheme{padding:18px;border:0}.formAppearanceEditor{margin:24px 0;padding:18px;border:1px solid #e3dce9;border-radius:12px}.formAppearanceEditor summary{font-weight:600}.formAppearanceEditor input[type=color]{width:90px;height:44px;padding:4px}.formAppearanceEditor button{margin-right:8px;margin-bottom:8px}
.hostedEnquiry #notice:not(:empty){position:static;transform:none;width:auto;max-width:100%;box-shadow:none}.hostedEnquiry header{flex-wrap:wrap;overflow-wrap:anywhere}.hostedEnquiry header b{min-width:0}
@media(max-width:600px){.hostedEnquiry main{margin:24px auto}.enquiryTheme .formCanvas{padding:22px}.formPreview.enquiryTheme{padding:12px}.formPreview.enquiryTheme .formCanvas{padding:18px}}

.standardQuestionEditor{border-top:1px solid #e3dce9;margin-top:18px;padding-top:4px}.standardQuestionEditor label:has(input[type=checkbox]){display:inline-block;margin:0 14px 6px 0;font-size:12px}.standardQuestionEditor p{margin-top:4px}.questionEditor>summary{font-weight:650;line-height:1.5}

.unreadMailBadge{display:inline-block;min-width:1.4em;margin-left:5px;padding:1px 5px;border-radius:12px;background:#fff;color:#33234b;font-size:12px;font-weight:700}.inboxAlert{position:sticky;top:12px;z-index:20;background:#fff;box-shadow:0 5px 24px #33234b18;margin:18px 0;border-left:4px solid #9957da;display:flex;align-items:center;justify-content:space-between;gap:16px}.inboxAlert .inboxActions{flex-shrink:0}@media(max-width:650px){.inboxAlert{align-items:stretch;flex-direction:column}.inboxAlert .inboxActions{flex-wrap:wrap}}

.replyEditor .messageImage,.emailPreview .messageImage,.brandedEmailPreview .messageImage{max-width:100%;height:auto;display:block}.inlineImageControls{margin:12px 0;padding:12px;border:1px solid #ddd6e7;border-radius:10px}.inlineImageControls>summary{font-weight:600;cursor:pointer}.inlineImageControls img{max-width:100%;max-height:160px;object-fit:contain}.messageHistoryImage{display:block;max-width:100%;width:300px;height:auto;margin:12px 0}

.itemDescription,.productDescription { white-space:pre-line; overflow-wrap:anywhere; }

/* Shared conversation view: list at left, complete newest-first history at right. */
.inboxTitle{display:flex;align-items:center;justify-content:space-between;gap:20px}.inboxTitle h1{margin:0}.inboxSettings{position:relative}.inboxSettings summary{color:#68418b;font-weight:600}.inboxSettings button{display:block;margin-top:10px}.inboxIntro{font-size:14px}.inboxLayout{display:grid;grid-template-columns:minmax(270px,330px) minmax(0,1fr);height:min(800px,calc(100dvh - 180px));min-height:520px;border:1px solid #e3dce9;border-radius:16px;background:white;overflow:hidden}.conversationListPane{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid #e7e0ed;background:#fcfaff}.conversationListPane .inboxTools{padding:12px 16px;gap:8px}.conversationListPane .inboxTools label{min-width:0;flex-basis:65%;margin:0;font-size:12px}.conversationListPane .inboxTools label:last-child{flex-basis:100%}.conversationListPane .inboxTools input,.conversationListPane select{font-size:14px;padding:10px}.conversationListPane .inboxTools button{margin:0}.inboxSearchHelp,#inboxResultCount{margin:0;padding:5px 16px;font-size:12px}.inboxSearchHelp{color:#82758b}.conversationListPane #conversations{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:8px}.conversationRow{display:block;width:100%;min-width:0;background:transparent;text-align:left;color:#33273d;border:1px solid transparent;border-radius:10px;padding:14px;margin:2px 0}.conversationRow:hover{background:#f1eaf8}.conversationRow.selected{background:#eee3fc;border-color:#d6baef}.conversationRowTop{display:flex;justify-content:space-between;gap:12px}.conversationRowTop strong{font-size:14px;overflow-wrap:anywhere;font-weight:500}.conversationRow.unread strong{font-weight:750}.conversationRowTop small{font-size:10px;color:#796486;max-width:100px;text-align:right;flex-shrink:0;font-weight:400}.conversationSubject{display:block;font-size:13px;line-height:1.5;margin-top:8px}.conversationExcerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:#82758b;font-weight:400;line-height:1.5;margin-top:6px}.conversationAttention{display:block;color:#74429b;font-size:11px;margin-top:8px}.conversationRow .assignment{font-size:10px;max-width:100%;overflow-wrap:anywhere;margin-top:8px}.conversationPane{display:flex;flex-direction:column;min-width:0;min-height:0;background:white;border-radius:12px;overflow:hidden}.conversationHeading{background:white;padding:20px 24px;display:block;border:0}.conversationHeading h2{font-size:21px;line-height:1.35;margin:0;overflow-wrap:anywhere}.conversationHeading p{font-size:12px;margin:8px 0 14px;overflow-wrap:anywhere}.conversationHeading button{padding:9px 12px;font-size:12px}.conversationAssociation{padding:0 24px 12px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}.conversationAssociation button{font-size:12px}.conversationScroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 24px 24px;flex:1}.conversationOrder{font-size:11px;color:#8a7a97;margin:20px 0 10px}.messageCard{padding:20px;border:1px solid #e8e0ef;border-radius:12px;margin:12px 0;background:#fff}.messageCard.outbound{background:#faf7fd}.messageHeading{display:flex;justify-content:space-between;align-items:start;gap:15px}.messageHeading strong{font-size:13px;overflow-wrap:anywhere}.messageHeading time{font-size:11px;color:#81728b;flex-shrink:0;max-width:145px;text-align:right}.messageDirection{font-size:10px;color:#95869e}.messageAddresses{font-size:12px;margin:8px 0;color:#82758b}.messageAddresses p{overflow-wrap:anywhere}.messageCard pre{font-size:14px;line-height:1.65;margin:16px 0 0}.messageAttachments a{display:block;overflow-wrap:anywhere;color:#73469a;margin-top:10px;font-size:12px}.conversationComposer{border:1px solid #dbcbef;border-radius:10px;background:#fcfaff}.conversationComposer>summary{padding:15px;font-weight:650;color:#6e379b;font-size:14px}.composerBody{padding:0 16px 16px}.composerBody>h3{font-size:16px}.composerRecipients summary,.composerAttachments summary{font-size:12px;overflow-wrap:anywhere;color:#776382}.composerRecipients .recipientFields{margin-top:12px}.composerBody .templatePicker{padding:10px;font-size:12px}.composerBody .inlineImageControls{font-size:12px}.composerBody .replyEditor{background:white;min-height:160px}.composerBody .inboxActions{margin-top:14px}.composerBody .inboxActions button{font-size:12px;padding:11px}.composerBody>.muted{font-size:12px}.conversationOptions{font-size:12px;margin-top:24px;color:#82758b;border-top:1px solid #ece5f1;padding-top:14px}.conversationOptions label{font-size:12px}.conversationOptions input,.conversationOptions select{font-size:13px}.inboxBack{display:none}.projectConversation{margin-top:18px;min-width:0}.projectConversation>label{font-size:12px}.projectConversation>label select{font-size:14px}.projectConversation .conversationPane{border:1px solid #e6ddec;max-height:800px}.projectConversation .conversationHeading{padding:18px}.projectConversation .conversationScroll{padding:0 18px 18px}.projectConversation .conversationAssociation{padding:0 18px 8px}
@media(max-width:760px){.inboxLayout{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 140px);min-height:580px}.inboxLayout .conversationListPane{border:0}.inboxLayout>.conversationPane{display:none}.inboxThreadOpen .conversationListPane{display:none}.inboxThreadOpen .inboxLayout>.conversationPane{display:flex}.inboxBack{display:block;margin-bottom:12px}.conversationHeading{padding:16px}.conversationHeading h2{font-size:18px}.conversationScroll{padding:0 12px 16px}.conversationAssociation{padding:0 16px 8px}.messageCard{padding:14px}.messageHeading{flex-direction:column;gap:5px}.messageHeading time{text-align:left;max-width:none}.projectConversation .conversationPane{max-height:none}.projectConversation .conversationScroll{overflow:visible}.projectConversation .conversationHeading{padding:14px}.projectConversation .conversationScroll{padding:0 10px 12px}.composerBody{padding:0 12px 12px}.inboxSettings{font-size:12px}.inboxTitle h1{font-size:32px}}

/* Goals: one summary, optional detail underneath. */
#insightsView progress{width:100%;height:12px;accent-color:#9760cf;margin:0 0 24px}#insightsView>details{margin:18px 0}#insightsView>select{max-width:240px}.goalCollection{border-top:1px solid #e7e2ec;padding:12px 0}.goalCollection input{max-width:140px}#insightsView details .textButton{display:block;text-align:left;overflow-wrap:anywhere}#insightsView .inboxActions{margin-bottom:24px}

/* Marketing stays compact until the owner opens evidence or source settings. */
.marketingSourceResult{padding:12px 0;border-bottom:1px solid #eee5f1}.marketingSourceResult:last-child{border-bottom:0}.marketingSourceResult h3{margin:0;font-size:16px}#insightsView input[type=month]{max-width:220px}#insightsView form details{margin:12px 0}#insightsView pre{white-space:pre-wrap;overflow-wrap:anywhere}#insightsView .notice{padding:14px;border-left:3px solid #af6dec;background:#f7f0ff}#insightsView button{overflow-wrap:anywhere}

/* Read-only single-document copies keep project controls and personal URLs off printouts. */
.documentActions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.documentActions p{font-size:12px;margin:0}.documentCard{min-width:0}.bookingDocument{overflow-wrap:anywhere}.documentSupplier{font-size:14px}.documentNumber{text-align:center;color:#516650;font-size:14px;letter-spacing:1px}.documentTaxNote{font-size:13px;color:#53634f}.invoiceLines th{text-align:left;font-size:12px;font-family:system-ui,sans-serif;font-weight:600;padding:10px 4px;border-bottom:1px solid #60755d}.invoiceLines th:not(:first-child),.invoiceLines td:not(:first-child){text-align:right;white-space:nowrap}.invoiceLines td{padding:14px 4px;vertical-align:top}.invoiceLines td:first-child{width:58%}.invoiceTotals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 22px;max-width:390px;margin:22px 0 22px auto;font-size:15px}.invoiceTotals dt{text-align:right}.invoiceTotals dd{text-align:right;margin:0;white-space:nowrap}.balancePanel{background:#edf1e9;border-top:1px solid #b9c5b5;padding:18px 22px;margin:24px 0;text-align:right;break-inside:avoid}.balancePanel h3{font-size:16px;margin:0}.balancePanel p{margin:5px 0}.balancePanel .balanceAmount{font-size:30px;line-height:1.3}.receiptDocument{margin:0}.bookingDocument .documentFields>div{min-width:0}.bookingDocument .trialRibbon{display:block}.agreementTerms{font-family:Baskerville,Georgia,serif;font-size:15px}
.documentCopyPage{background:#efefec}.copyToolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 24px;position:sticky;top:0;background:#f8f7fa;border-bottom:1px solid #dedbe3;z-index:1;font-size:13px}.documentCopyPage main{max-width:860px;padding:32px 45px;margin:24px auto;background:white;box-shadow:0 2px 16px #0000000a}.documentCopyPage .bookingDocument{padding:0}.documentCopyPage .bookingDocument h2{margin-top:24px}.documentCopyPage .documentBrand{margin-top:24px}
@media(max-width:600px){.invoiceLines{font-size:12px}.invoiceLines th{font-size:10px}.invoiceLines td:first-child{width:auto}.invoiceLines td:last-child{padding-left:5px}.invoiceTotals{gap:8px 12px;font-size:14px}.balancePanel{padding:15px}.documentCopyPage main{margin:0;padding:20px 16px}.copyToolbar{position:static;padding:12px 16px}.bookingDocument .documentBrand{font-size:22px}.documentActions button{width:100%}}
@media print{@page lensboardDocument{size:A4;margin:17mm 16mm}.documentCopyPage{background:white;page:lensboardDocument}.documentCopyPage .copyToolbar{display:none!important}.documentCopyPage main{margin:0;padding:0;max-width:none;box-shadow:none}.documentCopyPage .bookingDocument{font-size:11pt;line-height:1.5;print-color-adjust:exact;-webkit-print-color-adjust:exact}.documentCopyPage .documentFields{grid-template-columns:1fr 1fr}.documentCopyPage .documentFields h3{font-size:13pt}.documentCopyPage .documentFields p{font-size:11pt}.documentCopyPage .documentBrand{font-size:22pt}.documentCopyPage .bookingSummary{padding:16px;margin:20px 0}.documentCopyPage h2,.documentCopyPage h3{break-after:avoid}.documentCopyPage tr,.documentCopyPage .invoiceTotals{break-inside:avoid}.documentCopyPage .agreementTerms{font-size:11pt;line-height:1.55;orphans:3;widows:3}.documentCopyPage .trialRibbon{font-size:8pt}.documentCopyPage .documentActions{display:none}}

@media print{html:has(.documentCopyPage){background:white}.documentCopyPage .documentBrand{margin:12px 0}.documentCopyPage .bookingDocument h2{margin:14px 0}.documentCopyPage .bookingDocument{line-height:1.4}.documentCopyPage .documentFields{gap:10px 18px}.documentCopyPage .invoiceLines td{padding:7px 4px}.documentCopyPage .invoiceTotals{margin:12px 0 12px auto;gap:5px 22px;font-size:11pt}.documentCopyPage .balancePanel{padding:12px 18px;margin:14px 0}.documentCopyPage .bookingDocument>p{margin:10px 0}.documentCopyPage .bookingDocument>h3{margin:12px 0 6px}.documentCopyPage .bookingDocument>pre{margin:6px 0}.documentCopyPage .documentTaxNote{font-size:10pt}}

.agreementTerms p{white-space:pre-wrap;margin:0 0 1em}@media print{.documentCopyPage .agreementTerms p{break-inside:avoid}}
.savedDraft .emailPreview{line-height:1.6}.savedDraftPlain{white-space:pre-wrap}.savedDraftFiles{padding-left:20px;overflow-wrap:anywhere}.savedDraftFiles li{margin:10px 0}

.newMessage{padding:14px 0}.newMessage>summary{cursor:pointer;font-weight:600}.newMessage form{padding-top:12px}.newMessage label{display:block;margin:10px 0}.newMessage input{display:block;width:100%;box-sizing:border-box}.newMessage .muted{font-size:13px}
.projectFiles{min-width:0;overflow-wrap:anywhere}.projectFiles input[type=file]{max-width:100%}.projectFiles .planRow button{margin:8px 8px 0 0}

.costOverview .insightTable button{min-width:180px;text-align:left}

.plannerSearch{display:flex;align-items:flex-end;gap:12px;max-width:720px}.plannerSearch label{flex:1;min-width:0;margin:0}.plannerSearch input{margin-bottom:0}.plannerSearch button{flex-shrink:0;margin-bottom:0}@media(max-width:450px){.plannerSearch{align-items:stretch;flex-direction:column}.plannerSearch button{align-self:flex-start}}
.bookingActivity>div>.insightTableWrap .insightTable{table-layout:fixed}.bookingActivity>div>.insightTableWrap th,.bookingActivity>div>.insightTableWrap td{white-space:normal;overflow-wrap:anywhere}.bookingActivity>div>.insightTableWrap th:first-child{width:62%}

.projectGalleries .galleryLink{margin-bottom:8px}
.plannerBoard{min-height:430px}@media(max-width:760px){.plannerBoard{overflow:visible;min-height:0}}
.laneHeader{display:flex;align-items:center;gap:8px;margin-bottom:14px;min-height:40px}.laneHeader h2{flex:1;margin:0;min-width:0}.laneSort{position:relative;flex:0 0 auto}.laneSort>summary{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;cursor:pointer;list-style:none;color:#69428d;font-size:24px;line-height:1}.laneSort>summary::-webkit-details-marker{display:none}.laneSort>summary:hover,.laneSort[open]>summary{background:#e0d7ed}.laneSort>summary:focus-visible{outline:2px solid #7142ac;outline-offset:2px}.laneSortOptions{position:absolute;z-index:5;right:0;top:calc(100% + 6px);width:254px;max-width:calc(100vw - 60px);padding:8px;background:#fff;border:1px solid #ded5e8;border-radius:12px;box-shadow:0 10px 30px #30233726}.laneSortLabel{font-size:12px;font-weight:700;color:#72657d;margin:6px 10px 8px}.laneSortOptions .laneSortChoice{display:block;width:100%;padding:11px 12px;min-height:42px;background:transparent;color:#43334f;font-size:13px;text-align:left;line-height:1.4;border-radius:6px}.laneSortOptions .laneSortChoice:hover{background:#f5effb}.laneSortOptions .laneSortChoice[aria-pressed=true]{background:#eee4fb;color:#60308c;font-weight:700}.laneSortChoice[aria-pressed=true]::after{content:' ✓'}.laneSortOptions small{display:block;font-size:11px;line-height:1.5;margin:8px 10px 6px}

.receiptHistory{table-layout:fixed;margin:24px 0;font-size:14px}.receiptHistory caption{text-align:left;font-size:18px;font-weight:600;margin-bottom:8px}.receiptHistory th{text-align:left;border-bottom:1px solid #60755d;padding:8px 4px;font-family:system-ui,sans-serif;font-size:12px}.receiptHistory td{vertical-align:top;padding:10px 4px}.receiptHistory th:first-child{width:26%}.receiptHistory th:last-child{width:28%;text-align:right}.receiptHistory td:last-child{padding-left:4px}.receiptHistoryNumber{display:block;font-size:11px;color:#53634f}.receiptHistory tr{break-inside:avoid}@media(max-width:600px){.receiptHistory{font-size:12px}.receiptHistory th{font-size:10px}.receiptHistoryNumber{font-size:10px}}

/* Account controls remain tucked into the header; they do not replace a draft. */
.appHeader{position:relative}.accountMenu{margin-left:auto}.accountMenu summary{cursor:pointer;font-size:14px;padding:12px 4px;white-space:nowrap}.accountPanel{position:absolute;z-index:20;right:5vw;top:calc(100% - 8px);width:min(380px,90vw);box-shadow:0 12px 40px #182a1822}.accountPanel h2{font-size:18px}.accountPanel label:first-child{margin-top:0}.accountPanel p{line-height:1.5;overflow-wrap:anywhere}.accountMenu+#logout{margin-left:0;white-space:nowrap}@media(max-width:480px){.appHeader{flex-wrap:wrap;gap:8px 12px}.appHeader .tag{order:4;width:100%}.accountPanel{padding:20px}}

/* Saved sent-email layout. No sender-provided styles enter the app. */
.formattedMessage{font-size:14px;line-height:1.65;overflow-wrap:anywhere;overflow-x:auto;margin-top:16px;max-width:100%}.formattedMessage p{margin:12px 0}.formattedMessage a{color:#68418b;text-decoration:underline}.formattedMessage img{max-width:100%;height:auto;vertical-align:middle}.formattedMessage blockquote{border-left:3px solid #dfd3e8;padding-left:12px;margin:12px 0;color:#655b6d}.formattedMessage table{max-width:100%;border-collapse:collapse}.formattedMessage td,.formattedMessage th{padding:6px;text-align:left}.formattedMessage h1,.formattedMessage h2,.formattedMessage h3,.formattedMessage h4,.formattedMessage h5,.formattedMessage h6{font-size:16px;margin:12px 0}.messagePlainText{font-size:12px;color:#82758b;margin-top:14px}.messagePlainText pre{color:#33273d}

/* A compact, read-only path through the existing business settings. */
.businessSetup{max-width:860px;margin:auto}.setupSteps{list-style:none;padding:0;margin:24px 0}.setupSteps>li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:22px 0;border-top:1px solid var(--line,#e0e1e8)}.setupSteps h2{margin:0;font-size:20px}.setupSteps p{margin:7px 0 0;overflow-wrap:anywhere}.setupState{font-weight:650;font-size:14px}.setupSteps button{max-width:230px}.accountPanel>#showBusinessSetup{width:100%;margin-bottom:16px}@media(max-width:620px){.setupSteps>li{grid-template-columns:1fr;gap:14px}.setupSteps button{justify-self:start;max-width:100%}}

.accountPanel{max-height:calc(100dvh - 110px);overflow:auto}.accountPanel #passwordChangePanel{border-bottom:1px solid var(--line,#e0e1e8);margin-bottom:16px;padding-bottom:12px}.accountPanel #passwordChangePanel>summary{font-weight:650;padding:8px 0}.accountPanel #passwordHelp{font-size:13px}.accountPanel #cancelPasswordChange{margin-top:8px}
#menuOrder{border-bottom:1px solid var(--line,#e0e1e8);margin:8px 0 12px}
#menuOrder summary{font-weight:650}
#menuOrder ol{margin:0 0 8px;padding:0;list-style:none}
#menuOrder li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;padding:3px 0}
#menuOrder li button{width:44px;min-height:44px;margin:0;padding:0}
#menuOrder .menuOrderActions{padding:6px 0 10px}
#menuOrder [role=status]{font-size:12px;margin:0 0 8px}
#menuOrder [role=status]:empty{display:none}
/* Business brand accents. Status badges, photographs and issued documents retain their meaning/design. */
:root[data-brand-theme] button{background:var(--brand-accent);color:var(--brand-on-accent)}
:root[data-brand-theme] button:hover{filter:brightness(.96)}
:root[data-brand-theme] :is(.secondary,.mainNav button,.editorToolbar button,.segmented,.templatePicker,.conversationComposer>summary){background:var(--brand-soft);color:var(--brand-link)}
:root[data-brand-theme] :is(.textButton,.cardTitle,.laneSortChoice,.laneSort>summary){background:transparent;color:var(--brand-link)}
:root[data-brand-theme] :is(.project,.sessionRow,.conversationRow){background:var(--brand-tint);color:#292333}
:root[data-brand-theme] .conversationRow.selected,:root[data-brand-theme] .laneSortChoice[aria-pressed=true]{background:var(--brand-soft);border-color:var(--brand-link)}
:root[data-brand-theme] :is(.eyebrow,.linkedDisclosure summary,.conversationAttention,.conversationComposer>summary,.laneSort>summary){color:var(--brand-link)}
:root[data-brand-theme] :is(.replyEditor a,.formattedMessage a,.messageAttachments a,#conversationDetail>a){color:var(--brand-link)}
:root[data-brand-theme] .plannerLane,:root[data-brand-theme] .brandAppSample{background:var(--brand-tint)}
:root[data-brand-theme] :is(.linkedCard,.inboxAlert){border-left-color:var(--brand-accent)}
:root[data-brand-theme] .galleryLink{background:var(--brand-accent);color:var(--brand-on-accent)}
:root[data-brand-theme] .today .dayNumber{background:var(--brand-accent);color:var(--brand-on-accent)}
:root[data-brand-theme] #insightsView progress,:root[data-brand-theme] input[type=checkbox]{accent-color:var(--brand-link)}
:root[data-brand-theme] :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--brand-link);outline-offset:3px}
.brandingLayout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;max-width:1100px;align-items:start;margin-top:28px}
.brandingFields{border:0;padding:0;margin:0;min-width:0}.brandingFields h2{margin-top:0}
.colourSwatches{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.colourSwatches .colourSwatch{padding:0;width:40px;height:40px;min-width:40px;border:2px solid #fff;box-shadow:0 0 0 1px #ccc;border-radius:50%}
.colourSwatches .colourSwatch[aria-pressed=true]{outline:2px solid #292333;outline-offset:4px}
.brandColourInputs{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:start;max-width:360px}
.brandColourInputs input[type=color]{height:46px;padding:4px;cursor:pointer}.brandColourInputs label{margin:12px 0}
.logoPalette,.brandingSignature{border-top:1px solid #e3dce9;margin-top:24px;padding-top:18px}.logoPalette summary,.brandingSignature summary{font-weight:600}
.brandingLayout form>button{margin-top:26px}.brandingLayout .muted{line-height:1.6}
.brandingPreview{position:sticky;top:20px}.brandAppSample{padding:18px;border-radius:10px;margin-bottom:28px}.brandAppSample h3{margin:8px 0 18px}
.brandingPreview .brandedEmailPreview{overflow-wrap:anywhere}.brandingPreview img{max-width:100%;height:auto}
.brandingPreview>.brandedEmailPreview>.brandedEmail{padding:0}.brandingLayout+details{margin:26px 0}
@media(max-width:760px){.brandingLayout{grid-template-columns:1fr}.brandingPreview{position:static}.brandingLayout .panel{padding:20px}.colourSwatches{gap:14px}}

/* Planner design review: the workspace shares the header's edges. */
body:has(#workspace:not([hidden])) main{max-width:none;width:100%;padding:0 5vw;margin:22px auto 40px}
.navToggle{display:none}.mainNav{margin:14px 0 24px;gap:8px;padding-bottom:16px}.mainNav button{padding:11px 14px}
#plannerView{position:relative}#plannerView>.eyebrow{font-size:10px;margin:0 0 8px}#plannerView>h1{font-size:36px;margin:0 0 18px;letter-spacing:-1px}
.plannerTools{display:flex;gap:8px;position:absolute;right:0;top:14px}.plannerTools button{font-size:12px;padding:10px 12px}
.plannerSearch{display:flex;flex-direction:row;align-items:flex-end;gap:10px;margin:0 0 20px;max-width:660px}.plannerSearch label{flex:1;margin:0;font-size:12px}.plannerSearch input{padding:10px 12px;margin-top:5px}.plannerSearch button{align-self:auto;font-size:12px;padding:11px}
.plannerSearchResult{font-size:12px;margin:0 0 12px}
.plannerBoard{display:flex;gap:18px;overflow-x:auto;align-items:stretch;min-height:470px;padding:0 0 130px;scrollbar-width:thin}
.plannerGroup{flex:var(--lane-count) 0 0;min-width:calc(var(--lane-count)*235px + (var(--lane-count) - 1)*10px)}
.primaryStage{font-size:15px;line-height:1.4;background:#e9e4ef;color:#4c3b5c;border-radius:8px;padding:10px 13px;margin:0 0 10px}
.plannerColumns{display:grid;grid-template-columns:repeat(var(--lane-count),minmax(0,1fr));gap:10px;align-items:start}
.plannerLane{padding:8px;border-radius:8px;background:#efecf3;min-width:0;min-height:240px;flex:unset;transition:background .15s}
.laneHeader{margin:0 0 8px;min-height:34px;gap:2px}.laneHeader h3{font-size:12px;font-weight:650;line-height:1.4;margin:0;flex:1}.laneSort>summary{width:30px;height:32px;font-size:20px}.laneSortOptions{width:235px}
.plannerCard{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;border-radius:7px;padding:11px 10px;margin:0 0 8px;box-shadow:0 1px 3px #37214c08;cursor:grab;min-width:0}
.plannerCard .cardTitle{grid-column:1;font-size:13px;line-height:1.35;color:#302438;padding:0;font-weight:700;margin:0}
.plannerCard .cardHours{grid-column:2;grid-row:1;font-size:10px;white-space:nowrap;line-height:1.8;color:#695874;margin-right:16px;text-align:right}
.plannerCard .reference{grid-column:1/-1;margin:0 0 5px;font-size:9px;letter-spacing:.5px;line-height:1.4}
.plannerCard .cardVenue{grid-column:1/-1;margin:0;color:#65596e;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.plannerCard .cardSuburb{grid-column:1/-1;margin:0 0 4px;font-size:10px;color:#796d81;line-height:1.4;overflow-wrap:anywhere}
.plannerCard .cardDate{grid-column:1/-1;margin:0;font-size:10px;text-align:right;line-height:1.5;color:#54445f}
.plannerCard .cardEnhancements{grid-column:1/-1;font-size:10px;margin:4px 0 0;padding-top:5px;border-top:1px solid #eee9f2;line-height:1.4;color:#6b537a;overflow-wrap:anywhere}
.plannerCard .cardParent{grid-column:1/-1;font-size:10px;background:transparent;text-align:left;color:#725489;padding:3px 0 0;line-height:1.3}
.cardReview{position:absolute;left:9px;bottom:8px;border-radius:50%;width:14px;height:14px;font-size:10px;text-align:center;background:#ffedbf;color:#765000}
.cardMove{position:absolute;right:4px;top:5px}.cardMove>summary{list-style:none;display:grid;place-items:center;width:22px;height:26px;border-radius:4px;font-size:17px;color:#796488}.cardMove>summary::-webkit-details-marker{display:none}.cardMove>summary:hover{background:#eee4f6}
.cardMoveOptions{position:absolute;right:0;top:28px;width:220px;max-height:330px;overflow:auto;background:white;z-index:6;padding:8px;border:1px solid #ddd2e7;border-radius:8px;box-shadow:0 8px 22px #30233722}
.cardMoveOptions button{background:transparent;color:#50395f;display:block;text-align:left;width:100%;padding:10px;font-size:12px}.cardMoveOptions button:hover{background:#f2ecf7}
.plannerCard.dragging{opacity:.4}.plannerLane.dropTarget{background:#e1d4ef;outline:2px dashed #8a55b8;outline-offset:-2px}.laneEmpty{font-size:14px;text-align:center;color:#b7aabd;margin:30px 0}.linkedCard{border-left:3px solid #af65e9}
:root[data-brand-theme] .primaryStage{background:var(--brand-soft);color:var(--brand-link)}
:root[data-brand-theme] .plannerCard .cardTitle{color:#302438}
:root[data-brand-theme] .plannerLane.dropTarget{outline-color:var(--brand-link);background:var(--brand-soft)}
@media(max-width:760px){
 body:has(#workspace:not([hidden])) main{padding:0 16px;margin-top:20px}.appHeader{padding-left:16px;padding-right:16px}
 .navToggle{display:block;width:100%;text-align:left;margin:12px 0 20px}.mainNav{display:none;margin-top:-10px;margin-bottom:24px;padding-bottom:16px;grid-template-columns:1fr 1fr;gap:7px}.mainNav.mobileOpen{display:grid}.mainNav button{text-align:left;min-height:44px;font-size:12px}
 #plannerView>h1{font-size:32px}.plannerTools{position:static;margin-bottom:18px;justify-content:space-between}.plannerTools button{font-size:11px}
 .plannerSearch{gap:6px;margin-bottom:22px}.plannerSearch input{font-size:14px}.plannerSearch button{padding:12px 8px;font-size:11px}
 .plannerBoard{display:block;overflow:visible;padding-bottom:0;min-height:0}.plannerGroup{min-width:0;margin-bottom:26px}.primaryStage{font-size:16px;padding:12px;margin-bottom:10px}
 .plannerColumns{display:block}.plannerLane{min-height:0;margin-bottom:10px;padding:10px}.laneHeader{min-height:40px}.laneHeader h3{font-size:13px}.laneSort>summary{width:40px;height:40px}
 .plannerCard{padding:13px 12px;gap:3px 10px}.plannerCard .cardTitle{font-size:14px}.plannerCard .reference{font-size:10px}.plannerCard .cardVenue{font-size:12px}.plannerCard .cardSuburb,.plannerCard .cardDate,.plannerCard .cardEnhancements{font-size:11px}.plannerCard .cardHours{font-size:11px;margin-right:22px}
 .cardMove>summary{width:36px;height:38px}.cardMoveOptions{top:39px}.cardMoveOptions button{min-height:44px}.laneEmpty{margin:8px 0}
}

.primaryStage{display:flex;align-items:center;justify-content:space-between;min-height:41px}.primaryStage h2{font-size:inherit;font-weight:650;line-height:1.4;margin:0}.primaryStage .laneSort{margin:-6px -6px -6px 0}

/* Second Planner review: clearer hierarchy and paired card corners. */
.primaryStage{background:#dac9ec;color:#542d72;padding:11px 13px;font-size:18px;min-height:47px}
.primaryStage h2{font-weight:700}
:root[data-brand-theme] .primaryStage{background:color-mix(in srgb,var(--brand-link) 26%,white);color:color-mix(in srgb,var(--brand-link) 72%,black)}
.primaryStage .laneSort>summary{color:inherit}
.plannerCard .reference{margin-bottom:0}
.plannerCard .cardParent{padding:1px 0 0}
.plannerCard .cardFooter{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:12px}
.plannerCard .cardLocation{min-width:0;grid-column:1;grid-row:1}
.plannerCard .cardVenue{font-size:12px;line-height:1.35}
.plannerCard .cardSuburb{margin:3px 0 0;font-size:10px;line-height:1.4}
.plannerCard .cardFooter .cardDate{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
.plannerCard .cardWeekday{margin:0 0 3px;font-size:11px;line-height:1.35;font-weight:600}
.plannerCard .cardCalendarDate{margin:0;font-size:10px;line-height:1.4}
.cardReview{position:static;display:inline-block;margin-left:6px}
@media(max-width:760px){.primaryStage{font-size:18px}.plannerTools{justify-content:flex-end}.plannerCard .cardVenue{font-size:13px}.plannerCard .cardSuburb,.plannerCard .cardCalendarDate{font-size:11px}.plannerCard .cardWeekday{font-size:12px}}
/* Desktop story workspace: a readable summary beside the working record. */
.storyGrid{grid-template-columns:minmax(205px,245px) minmax(0,1fr) minmax(200px,245px);gap:18px;margin-top:22px}
.storyGrid>*{min-width:0}.storyGrid .panel{padding:18px;border-radius:12px;margin:0 0 16px;font-size:13px;line-height:1.5}
.storyGrid h2{font-size:18px;margin:0 0 14px}.storyGrid h3{font-size:14px;margin:12px 0 5px}.storyGrid p{margin:7px 0 12px}.storyGrid .muted{font-size:12px;line-height:1.5}
.storyGrid button{font-size:12px;padding:9px 12px}.storyGrid .textButton{padding:6px 0}.storyGrid label{margin:12px 0}.storyGrid input,.storyGrid select,.storyGrid textarea{max-width:100%;padding:9px;font-size:13px}.storyGrid pre,.storyGrid p{overflow-wrap:anywhere}
#projectView>.projectSummary{gap:8px 18px;font-size:14px}.storyEnhancements{color:var(--brand-link,#7142ac)}
.storyFacts{margin:0}.storyFacts dt{font-size:11px;color:#82758b;margin-top:13px}.storyFacts dd{margin:3px 0 0;line-height:1.4;font-weight:500}.storyFacts dt:first-child{margin-top:0}
.storyEdit{border-top:1px solid #e8e2ec;margin-top:12px;padding-top:12px}.storyEdit form+form{border-top:1px solid #e8e2ec;margin-top:16px;padding-top:5px}.storyQuoteTools:empty{display:none}.storyQuoteTools .panel{border:0;border-top:1px solid #e8e2ec;border-radius:0;padding:12px 0 0;margin:12px 0 0}.storyQuoteTools summary{font-size:12px}
.storyPrice{display:flex;flex-direction:column;gap:3px}.storyPrice>span{font-size:12px}.storyPrice>strong{font-size:28px;letter-spacing:-.6px;line-height:1.2}.storyCostRows{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px 10px;margin:20px 0}.storyCostRows dt{font-size:12px}.storyCostRows dd{margin:0;text-align:right;font-size:12px}.storyProfit{display:flex;flex-direction:column;gap:4px;border-top:1px solid #e8e2ec;padding-top:14px}.storyProfit strong{font-size:20px;font-weight:600}.storyProfit span{font-size:12px}.storyPerson+.storyPerson{border-top:1px solid #e8e2ec;padding-top:14px;margin-top:16px}.storyPerson h3{margin-top:4px}.storyPerson p{font-size:12px}
.storyActions{display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap}.storyGrid .sessionRow{padding:10px 12px}.storyGrid .sessionRow small{margin:3px 0}.storyGrid .planRow{padding:10px 0;margin:0}.storyGrid .bookingPanel>.documentTotal{font-size:17px}.storyGrid .bookingPanel>details{margin:12px 0}
.storyInbox{display:grid;grid-template-columns:minmax(170px,25%) minmax(0,1fr);height:620px;min-width:0;border:1px solid #e3dce9;border-radius:10px;overflow:hidden;background:white}.storyInbox>.conversationListPane{overflow-y:auto;display:block;background:#faf9fc}.storyInbox .conversationRow{text-align:left;padding:12px;border-radius:0;font-size:12px}.storyInbox .conversationRowTop{flex-wrap:wrap;gap:4px}.storyInbox .conversationRowTop small{font-size:10px}.storyInbox .conversationExcerpt{font-size:11px}.storyInbox .assignment{display:none}.storyInbox .conversationHeading{padding:14px;gap:10px;flex-wrap:wrap}.storyInbox .conversationHeading h2{font-size:16px;margin:0}.storyInbox .conversationAssociation{padding:0 14px 10px}.storyInbox .conversationScroll{padding:0 14px 14px}.storyInbox .messageCard{padding:14px}.storyInbox .conversationPane{border:0;border-radius:0;max-height:none}.storyInbox .conversationComposer{margin-bottom:14px}.storyEmails>.projectConversation{margin-top:10px}.storyEmails .newMessage{margin-bottom:12px}.storyInbox .replyEditor{min-height:130px}.storyGrid .bookingDocument{font-size:14px}
@media(min-width:1700px){.storyGrid{grid-template-columns:270px minmax(0,1fr) 270px;gap:22px}.storyInbox{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:1150px){.storyGrid{grid-template-columns:210px minmax(0,1fr)}.storyLeft{grid-column:1;grid-row:1}.storyRight{grid-column:1;grid-row:2}.storyRecords{grid-column:2;grid-row:1 / span 3}.storyInbox{grid-template-columns:155px minmax(0,1fr)}}
@media(max-width:760px){.storyGrid{display:flex;flex-direction:column;gap:0}.storyGrid>*{width:100%}.storyLeft{order:0}.storyRight{order:1}.storyRecords{order:2}.storyInbox{display:flex;flex-direction:column;height:auto;overflow:visible}.storyInbox>.conversationListPane{max-height:220px;overflow:auto;border-right:0;border-bottom:1px solid #e3dce9}.storyInbox .conversationPane{max-height:none;overflow:visible}.storyInbox .conversationScroll{overflow:visible}.storyGrid .panel{padding:16px}.storyGrid .storyCostRows{grid-template-columns:1fr auto}}

/* Story review: compact field editing and a conventional mail workspace. */
.storyDetails>summary{font-size:18px;font-weight:700;list-style:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.storyDetails>summary:after{content:'⌄';font-size:22px}.storyDetails:not([open])>summary:after{content:'›'}.storyDetails[open]>summary{margin-bottom:15px}
.projectSummary .badge{font-size:12px;line-height:1.3;padding:7px 10px;border-radius:6px;font-weight:500;margin:0}
.editableValue{position:relative;min-width:0;padding-right:26px}.fieldEdit{position:absolute;right:0;top:0;opacity:0;padding:2px 5px!important;border:0;background:transparent!important;color:var(--brand-link,#7142ac);font-size:17px;line-height:1.2;border-radius:4px;cursor:pointer;min-height:24px;min-width:24px}.editableValue:hover>.fieldEdit,.editableValue:focus-within>.fieldEdit,.fieldEdit:focus{opacity:1}.storyPerson h3{margin:5px 0}.storyPerson p{margin:5px 0}.storyContactPreference{border-top:1px solid var(--line,#ded8e4);padding-top:12px;font-size:12px}.storyContactPreference .fieldEdit{top:10px}
.storyEditDialog{width:min(640px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box;border:1px solid #ddd;border-radius:16px;padding:22px;box-shadow:0 20px 80px #0003;color:inherit;background:var(--paper,#fff)}.storyEditDialog::backdrop{background:#241c3544}.storyEditDialog>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.storyEditDialog>header h2{font-size:21px;margin:0}.storyEditDialog>header button{font-size:26px;padding:0 8px}.storyEditDialog form{font-size:13px}.storyEditDialog fieldset{padding:0;border:0;min-width:0}.storyEditDialog .panel{padding:12px;margin-bottom:10px}.storyEditDialog input,.storyEditDialog select,.storyEditDialog textarea{box-sizing:border-box;max-width:100%;font-size:14px}.storyEditDialog button{font-size:13px;padding:9px 13px}
.storyCostRows dd{padding-right:25px}.storyPrice>.fieldEdit{top:23px}.storyProfit{margin-bottom:0}.storySessionPair{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.storySessionPair .panel{height:100%;box-sizing:border-box}.storySessionPair button.secondary{display:block;margin:8px 0}.storyHistory{font-size:12px;color:var(--muted,#706778);margin:8px 0}
.conversationHeading{display:block}.conversationHeading h2{margin:3px 0 8px;font-size:17px;overflow-wrap:anywhere}.conversationHeading p{margin:5px 0;font-size:12px}.conversationAssociation{font-size:11px;padding:5px 0}.messageHeading{display:flex;align-items:center;gap:8px}.messageHeading time{margin-left:auto}.replyArrow{font-size:23px;line-height:1;padding:3px 8px;background:transparent;color:var(--brand-link,#7142ac);border:0}.conversationComposer>summary{display:none}.conversationComposer{border:0;padding:0;margin:12px 0}.composerBody{padding:12px;border:1px solid #ddd;border-radius:8px;background:white}.composerRecipients .recipientFields>label,.composerRecipients>label{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:6px;margin:4px 0;font-size:12px;font-weight:500}.composerRecipients input{font-size:12px;padding:5px 7px;margin:0;min-width:0}.recipientHelp{font-size:11px;margin:4px 0 8px}.recipientHelp[open]{padding:8px;background:#f7f5fa}.replyEditor{min-height:150px;margin-top:12px}.editorToolbar{display:flex;flex-wrap:wrap;align-items:center;gap:3px;position:relative;padding:5px 0;margin:0 0 10px}.editorToolbar>button,.editorToolbar>details>summary{font-size:14px;line-height:1.2;padding:5px 7px;min-width:29px;min-height:29px;box-sizing:border-box;background:transparent;border:0;border-radius:4px;color:inherit;cursor:pointer;list-style:none}.editorToolbar>button:hover,.editorToolbar>details>summary:hover{background:#eee9f4}.editorToolbar>details{position:relative;margin:0;padding:0;border:0}.editorToolbar>details[open]{position:static;flex-basis:100%;padding:10px;background:#f7f5fa;border:1px solid #e1dce7;border-radius:6px}.editorToolbar>details[open]>summary{display:inline-block}.editorToolbar>details[open] label{font-size:12px}.editorToolbar .inlineImageControls img{max-height:150px}.composerBody .inboxActions button{font-size:12px;padding:8px 10px}.composerBody>p[role=status]{font-size:11px;margin-bottom:0}.storyInbox .conversationScroll{padding:10px}.storyInbox .messageCard{padding:12px}.storyInbox .messageCard pre{font-size:13px;line-height:1.6}
@media(hover:none){.fieldEdit{opacity:1}}
@media(max-width:760px){.storySessionPair{grid-template-columns:1fr}.storyEditDialog{padding:16px}.fieldEdit{opacity:1}}

.storyAutomation{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px;min-width:240px;justify-content:flex-end;flex-wrap:wrap}.automationSwitch{border:0;border-radius:20px;padding:5px 16px;font-size:12px;background:#d7d3dd;color:#504858}.automationSwitch[aria-checked=true]{background:var(--brand-accent,#7142ac);color:white}.automationHelp{border:1px solid currentColor;border-radius:50%;height:19px;width:19px;padding:0;font-size:11px;background:transparent;color:inherit}.storyAutomation small{flex-basis:100%;text-align:right;font-size:10px}.portalShell{max-width:760px;margin:40px auto;padding:0 20px}.portalShell pre{white-space:pre-wrap}.storyEditDialog .projectCosts{padding:0}

.composerGuidance,.composerRecipients .recipientHelp{border:0;padding:0;margin:4px 0 8px;font-size:11px}.composerGuidance p{font-size:12px}.composerRecipients{border:0;padding:0}.storyGrid .composerRecipients label{margin:4px 0}.storyGrid .composerRecipients input{padding:5px 7px}.storyEditDialog [role=alert]{color:#9e2424;font-size:13px}

/* Story planning review: equal compact siblings, with the normal row gap. */
.storySessionPair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;margin-bottom:20px;min-width:0}.storyGrid .storySessionPair>.panel{min-width:0;height:auto;margin:0;padding:14px}.storySessionPair h2{margin-bottom:8px}.storySessionPair .muted{margin:0 0 8px;font-size:11px}.storySessionPair button.secondary{display:inline-block;margin:4px 6px 0 0;padding:7px 9px}.storyGrid .storyMainSessions{min-height:190px;box-sizing:border-box}.storyMainSessions .storyActions{margin-top:28px}.storyWeddingPlanning .storyActions,.storyDaySheet .storyActions{gap:8px}.storyWeddingPlanning>.muted{margin:10px 0 0}
.conversationHeading{display:flex;align-items:start;justify-content:space-between;gap:12px}.conversationHeading>div{min-width:0}.conversationHeading>.replyArrow{flex-shrink:0}.conversationScroll .messageCard{border:0;border-radius:0;box-shadow:none;background:transparent;margin:0;padding:18px 0}.conversationScroll .messageCard+.messageCard{border-top:1px solid #e5dfea}.conversationScroll .conversationComposer{margin:0 0 12px;padding:0 0 14px;border-bottom:1px solid #e5dfea;background:transparent;border-radius:0}.conversationScroll .composerBody{border:0;border-radius:0;padding:0;background:transparent}.conversationScroll .conversationHistory{margin:0}.planningQuestionnaireContext{margin:16px 0}.planningQuestionnaireContext>summary{font-weight:650}.planningQuestionnaireContext .questionnaireAnswer{border-top:1px solid #eee7f3;padding:12px 0}.planningQuestionnaireContext h3{font-size:14px;margin:0 0 6px}.planningQuestionnaireContext pre{font-size:13px;margin:0;white-space:pre-wrap}.questionnaireSettingsActions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
@media(max-width:760px){.storySessionPair{grid-template-columns:1fr}.storyGrid .storyMainSessions{min-height:180px}.conversationHeading{flex-wrap:wrap}}

/* Phone Planner: one expanded primary stage and one expanded child at a time. */
#plannerView .plannerGroupToggle,#plannerView .plannerLaneToggle{display:none}
@media(max-width:760px){
 #plannerView .plannerDesktopStageLabel{display:none}
 #plannerView .primaryStage{padding:0;display:flex;align-items:center;gap:4px}
 #plannerView .primaryStage h2{flex:1;min-width:0;margin:0}
 #plannerView .plannerGroupToggle,#plannerView .plannerLaneToggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;background:transparent;color:inherit;text-align:left;white-space:normal;font:inherit;line-height:1.4;border:0;border-radius:7px}
 #plannerView .plannerGroupToggle{padding:12px}
 #plannerView .plannerLaneToggle{padding:5px 4px;min-height:44px}
 #plannerView .plannerGroupToggle:hover,#plannerView .plannerLaneToggle:hover{background:var(--brand-soft,#e9e4ef)}
 #plannerView .plannerAccordionChevron{flex-shrink:0;transition:transform .15s ease}
 #plannerView [aria-expanded="true"]>.plannerAccordionChevron{transform:rotate(180deg)}
 #plannerView .mobileGroupClosed>.plannerColumns,#plannerView .mobileLaneClosed>.plannerLaneBody{display:none}
 #plannerView .mobileGroupClosed>.primaryStage{margin-bottom:0}
 #plannerView .mobileLaneClosed>.laneHeader{margin-bottom:0}
 #plannerView .laneHeader{display:flex;align-items:center;gap:4px}
 #plannerView .laneHeader h3{min-width:0;flex:1}
 #plannerView .plannerGroup{margin-bottom:14px}
 #plannerView .laneSort>summary{min-width:44px;min-height:44px}
 #plannerView .primaryStage>.laneSort{margin-right:4px}
}
@media(prefers-reduced-motion:reduce){#plannerView .plannerAccordionChevron{transition:none}}

/* iPhone layout: keep the app in the device viewport and avoid focus zoom. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:760px){
 .appHeader{flex-wrap:wrap;min-width:0;max-width:100%}
 .appHeader>*{min-width:0;max-width:100%}
 .appHeader .logo{overflow-wrap:anywhere}
 .appHeader .tag{order:4;flex:0 0 100%;width:100%;max-width:100%;overflow-wrap:anywhere}
 #setupPrompt,.setupPromptButton{min-width:0;max-width:100%}
 .setupPromptButton{white-space:normal;overflow-wrap:anywhere}
 .appHeader .accountMenu{margin-left:0}
 .appHeader .accountMenu+#logout{margin-left:auto;max-width:100%;white-space:normal}
 .appHeader .accountPanel{right:16px;max-width:calc(100vw - 32px)}
 #workspace,#plannerView{min-width:0;max-width:100%}
 #login :is(input,select,textarea),#workspace :is(input,select,textarea),.appHeader :is(input,select,textarea){min-width:0;max-width:100%;font-size:16px}
 #plannerView .plannerTools{min-width:0;max-width:100%;flex-wrap:wrap}
 #plannerView .plannerTools button{max-width:100%;white-space:normal}
 #plannerView .plannerSearch{min-width:0;max-width:100%;width:100%}
 #plannerView .plannerSearch label{flex:1 1 0%;min-width:0;max-width:100%}
 #plannerView .plannerSearch input{min-width:0;max-width:100%;width:100%;font-size:16px}
 #plannerView :is(.plannerBoard,.plannerGroup,.plannerColumns,.plannerLane,.primaryStage){min-width:0;max-width:100%}
 #plannerView :is(.plannerGroupToggle,.plannerLaneToggle){min-width:0;max-width:100%}
 #plannerView .plannerToggleLabel{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:450px){
 #plannerView .plannerSearch{flex-direction:column;align-items:stretch}
 #plannerView .plannerSearch label{flex:0 1 auto}
 #plannerView .plannerSearch button{align-self:flex-start;max-width:100%;white-space:normal}
}

/* Planner actions stay together beneath the story search field. */
#plannerView .plannerSearch{display:block}
#plannerView .plannerSearch>label{display:block;margin:0}
#plannerView .plannerSearchActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
#plannerView .plannerSearchActions button{margin:0;flex:0 1 auto;min-width:0;max-width:100%;white-space:normal}
/* 28 November: compact workspace controls and explicit feedback. */
.lensboardBrand{display:inline-flex;align-items:center;flex:0 0 auto;line-height:1;text-decoration:none}
.lensboardBrand:focus-visible{outline:2px solid var(--brand-link,#7142ac);outline-offset:4px;border-radius:4px}
.lensboardFullLogo{display:block;width:104px;height:104px;object-fit:contain}
.lensboardMobileLogo{display:none;font-size:29px;font-weight:750;letter-spacing:-1.5px;color:#17121e;align-items:center}
.lensboardMobileLogo svg{width:36px;height:36px;margin-left:4px;flex:0 0 auto}
.appHeader .workspaceBusinessTag{text-transform:uppercase;font-size:11px;letter-spacing:1.3px;max-width:min(420px,100%);overflow-wrap:anywhere}
.pageNavigationFallback{display:none}
.pageNavigationFallback[hidden]{display:none!important}
#plannerView>h1{margin-bottom:0}
.plannerTagline{font-size:13px;line-height:1.5;color:var(--muted,#827b89);margin:6px 0 24px}
.navToggle svg{display:block;width:24px;height:24px}
.laneSort>summary>svg{display:block;width:20px;height:20px}
.projectFiles .fileTitle{margin:0;font-size:16px;line-height:1.4}
.projectFiles .fileDate{margin:5px 0 0;font-size:12px}
.projectFiles .fileRow>details{margin-top:10px}
.projectFiles .fileTitle a{text-underline-offset:3px}
#notice.workspaceNotice:not([hidden]){display:flex;align-items:center;gap:14px;bottom:calc(16px + env(safe-area-inset-bottom))}
#notice.workspaceNotice[data-kind=success]{background:var(--brand-tint,#f4eef9);color:var(--brand-link,#59367f);border-color:var(--brand-soft,#e1d4ee)}
#notice.workspaceNotice[data-kind=error]{background:#fff0ee;color:#782e26;border-color:#edc1bb}
.workspaceNoticeText{min-width:0;overflow-wrap:anywhere}
#notice .workspaceNoticeDismiss{flex:0 0 32px;min-width:32px;width:32px;height:32px;padding:0;background:transparent;color:inherit;font-size:22px;line-height:1}
#notice .workspaceNoticeDismiss:hover{background:#0000000a}
#notice .workspaceNoticeDismiss:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:760px){
 .lensboardFullLogo{display:none}.lensboardMobileLogo{display:inline-flex}
 #pageNavigationHome{position:relative}
 .pageNavigationFallback{display:flex;align-items:center;justify-content:flex-end;min-height:44px;margin-bottom:20px}
 .pageTitleGroup{position:relative;min-width:0;margin:0 0 22px}
 .pageTitleRow{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}
 .pageTitleRow>h1{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
 .pageTitleGroup>.plannerTagline{margin:6px 0 0}
 :is(.pageTitleRow,.pageNavigationFallback) .navToggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;margin:0;padding:10px;text-align:center;background:transparent;border:1px solid #e3dce9;border-radius:9px}
 :is(.pageTitleRow,.pageNavigationFallback) .navToggle[aria-expanded=true]{background:#eee7f7}
 #mainNavigation.mobileOpen{position:absolute;top:calc(100% + 10px);left:0;right:0;z-index:15;margin:0;padding:12px;border:1px solid #e3dce9;border-radius:12px;background:#fff;box-shadow:0 10px 28px #28163822}
 #mainNavigation button{min-height:44px;font-size:13px}
}
.helpPopover{display:inline-flex;vertical-align:middle;margin-left:6px;font-style:normal;font-weight:400}
.helpPopoverButton{display:inline-grid;place-items:center;box-sizing:border-box;min-width:28px;width:28px;min-height:28px;height:28px;border:1px solid currentColor;border-radius:50%;padding:0;background:transparent;color:var(--brand-link,#59367f);font:600 15px/1 system-ui;cursor:help}
.helpPopoverButton:hover,.helpPopoverButton[aria-expanded=true]{background:var(--brand-tint,#f4eef9)}
.helpPopoverButton:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.helpPopoverContent{position:fixed;z-index:80;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--brand-soft,#e1d4ee);border-radius:10px;padding:12px 14px;background:#fff;color:#312a3c;box-shadow:0 6px 24px #38244726;font:400 14px/1.5 system-ui;text-align:left;white-space:normal;overflow-wrap:anywhere}
@media print{.helpPopover{display:none!important}}
/* Root merges this into the main stylesheet after visual review. */
.dashboardFilters{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:20px 0}
.dashboardFilters>label{flex:1 1 200px;margin:0;max-width:360px}
.dashboardFilters>label select{width:100%}
.dashboardFilters>.helpPopover{margin-bottom:12px}
.insightTabs{margin:16px 0 24px}
.insightTabs [aria-current=page]{background:#e2d5f1;color:#542b7b;box-shadow:inset 0 -2px 0 #8950bd}
.dashboardCards{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.dashboardCard{min-width:0}
.dashboardCard h2,.insightCards h2{font-size:17px;line-height:1.4;display:flex;align-items:center;gap:6px;margin-top:0}
.dashboardCard .insightValue{font-size:clamp(24px,2.5vw,36px);overflow-wrap:anywhere}
.dashboardListRow{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:9px 0;border-bottom:1px solid #ece7ef;line-height:1.4}
.dashboardListRow:last-child{border:0}
.dashboardListRow>span{min-width:0;overflow-wrap:anywhere}
.dashboardListRow>strong{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.dashboardCustomize{margin:18px 0}
.dashboardCustomizeRow{display:flex;align-items:center;gap:8px;padding:6px 0}
.dashboardCustomizeRow>label{display:flex;align-items:center;gap:9px;flex:1;margin:0}
.dashboardCustomizeRow input{width:auto;margin:0}
.dashboardCustomizeRow button{min-width:36px;min-height:36px;padding:6px}
.dashboardBalanceValues{display:flex;flex-wrap:wrap;gap:12px 28px;font-size:20px;font-variant-numeric:tabular-nums}
@media(max-width:900px){.dashboardCards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboardCards{grid-template-columns:minmax(0,1fr)}.dashboardFilters{gap:12px}.dashboardFilters>label{flex-basis:100%;max-width:none}.dashboardListRow>strong{white-space:normal}.dashboardBalanceValues{display:block}.dashboardCustomizeRow{flex-wrap:wrap}.dashboardCustomizeRow>label{min-width:190px}}
/* Finances: actual receipts, current due balances and whole-job performance. */
.financeWorkspace{min-width:0}
.financeWorkspace .financeFilters{display:grid;grid-template-columns:minmax(170px,240px) minmax(180px,280px) minmax(0,1fr);align-items:end;gap:16px;margin:20px 0 12px}
.financeWorkspace .financeField{position:relative;display:grid;gap:7px;min-width:0;margin:0;font-size:13px}
.financeWorkspace .financeField>select,.financeWorkspace .financeField>input{box-sizing:border-box;min-width:0;width:100%;max-width:100%;margin:0;min-height:44px}
.financeWorkspace .financeField>.helpPopover{position:absolute;right:0;top:-5px;margin:0}
.financeWorkspace .financeExport{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}
.financeWorkspace .financeExportButton{min-height:44px;margin:0;padding:10px 16px}
.financeWorkspace .financeExportButton:disabled{cursor:default}
.financeWorkspace .financeExportStatus{max-width:180px;color:var(--muted,#82758b);font-size:12px;text-align:right;overflow-wrap:anywhere}
.financeWorkspace .financeCustomDates{display:grid;grid-template-columns:minmax(150px,200px) minmax(150px,200px) auto minmax(0,1fr);align-items:end;gap:12px;margin:0 0 26px;max-width:950px}
.financeWorkspace .financeCustomDates[hidden]{display:none!important}
.financeWorkspace .financeCustomDates>button{min-height:44px;margin:0;white-space:nowrap}
.financeWorkspace .financeRangeStatus{align-self:center;color:var(--brand-link,#59367f);font-size:12px;overflow-wrap:anywhere}
.financeWorkspace .financeRangeStatus[role=alert]{color:#8b332d}
.financeWorkspace .financeSection{margin:26px 0 0}
.financeWorkspace .financeSectionHeading{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.financeWorkspace .financeSectionHeading>h2{margin:0;font-size:21px;line-height:1.4}
.financeWorkspace .financeCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;min-width:0}
.financeWorkspace .financeMetric{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:24px;min-width:0;margin:0;padding:22px 24px}
.financeWorkspace .financeMetricSummary{min-width:0}
.financeWorkspace .financeMetricSummary>h3{margin:0 0 10px;font-size:16px;line-height:1.4}
.financeWorkspace .financeValue{min-width:0;margin:0 0 8px;font-size:clamp(28px,3vw,38px);line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.7px;overflow-wrap:anywhere}
.financeWorkspace .financeValueButton{display:inline-block;max-width:100%;min-height:44px;margin:0;border:0;border-radius:3px;padding:0;background:transparent;color:inherit;font:inherit;font-variant-numeric:inherit;letter-spacing:inherit;text-align:left;text-decoration:underline;text-decoration-color:#a28db866;text-decoration-thickness:1px;text-underline-offset:6px;white-space:normal;overflow-wrap:anywhere}
.financeWorkspace .financeValueButton:hover{background:transparent;color:var(--brand-link,#59367f);text-decoration-color:currentColor}
.financeWorkspace .financeValueButton:focus-visible{outline:2px solid var(--brand-link,#59367f);outline-offset:5px}
.financeWorkspace .financeMetricBasis{font-size:12px;color:var(--muted,#82758b);overflow-wrap:anywhere}
.financeWorkspace .financeMetricExpanded{grid-column:1/-1;grid-template-columns:minmax(190px,260px) minmax(0,1fr)}
.financeWorkspace .financeInlineDetails{min-width:0;padding-left:24px;border-left:1px solid #e8e0ee}
.financeWorkspace .financeInlineDetails[hidden]{display:none!important}
.financeWorkspace .financeInlineHeader{display:flex;justify-content:space-between;align-items:center;gap:14px;min-width:0;margin-bottom:10px}
.financeWorkspace .financeInlineLabel{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.financeWorkspace .financeInlineClose{flex:0 0 auto;min-height:36px;padding:5px 8px;font-size:13px}
.financeWorkspace .financeInlineScroll{max-height:360px;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:8px}
.financeWorkspace .financeInlineScroll:focus-visible{outline:2px solid var(--brand-link,#59367f);outline-offset:3px}
.financeWorkspace .financeInlineScroll .insightTableWrap{margin:0;border-radius:8px}
.financeWorkspace .financeInlineScroll .insightTable{font-size:12px}
.financeWorkspace .financeInlineScroll .insightTable th,.financeWorkspace .financeInlineScroll .insightTable td{padding:10px;white-space:normal;overflow-wrap:anywhere}
.financeWorkspace .financeInlineScroll .insightTable th{position:sticky;top:0;z-index:1}
.financeWorkspace .financeInlineScroll .insightTable button{font-size:12px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.financeWorkspace .financeDetails{min-width:0;margin:12px 0 0;padding:16px 20px}
.financeWorkspace .financeDetails>summary{font-size:14px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.financeWorkspace .financeDetails>.insightTableWrap{margin-top:14px}
.financeWorkspace>.financeDetails{margin-top:26px;background:var(--brand-tint,#faf7fc)}
.financeWorkspace .financeReviewGroup{min-width:0;padding:14px 0;border-bottom:1px solid #e6ddec}
.financeWorkspace .financeReviewGroup:last-child{border-bottom:0;padding-bottom:0}
.financeWorkspace .financeReviewGroup>summary{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.financeWorkspace .financeReviewGroup>.textButton{display:block;max-width:100%;font-size:13px;white-space:normal;overflow-wrap:anywhere}
.financeWorkspace .financeReviewGroup>.insightTableWrap{max-height:360px;margin:14px 0 0}
.financeWorkspace .financeCoverageCount{font-size:13px;margin:10px 0 0;overflow-wrap:anywhere}
.financeWorkspace .financeEmpty{margin:14px 0 0;color:var(--muted,#82758b);font-size:13px}
@media(max-width:1000px){.financeWorkspace .financeMetricExpanded{grid-template-columns:minmax(160px,220px) minmax(0,1fr)}}
@media(max-width:900px){.financeWorkspace .financeFilters{grid-template-columns:minmax(0,1fr)}.financeWorkspace .financeCustomDates{grid-template-columns:repeat(2,minmax(0,1fr))}.financeWorkspace .financeCustomDates>button{justify-self:start}}
@media(max-width:760px){
 .financeWorkspace .financeCards{grid-template-columns:minmax(0,1fr);gap:12px}
 .financeWorkspace .financeMetric,.financeWorkspace .financeMetricExpanded{grid-template-columns:minmax(0,1fr);padding:18px 20px;gap:18px}
 .financeWorkspace .financeInlineDetails{padding:16px 0 0;border-left:0;border-top:1px solid #e8e0ee}
 .financeWorkspace .financeSectionHeading>h2{font-size:20px}
 .financeWorkspace .financeDetails{padding:15px 16px}
 .financeWorkspace .financeField>select,.financeWorkspace .financeField>input{font-size:16px}
 .financeWorkspace .financeInlineScroll .insightTableWrap,.financeWorkspace .financeReviewGroup>.insightTableWrap{overflow-x:hidden}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable{display:block;width:100%;min-width:0}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable caption{display:block;width:auto;text-align:left}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable thead{display:none}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable tbody,.financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable tr{display:block;width:100%}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable tr{padding:10px 0;border-bottom:1px solid #e9e1ef}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable td{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:baseline;gap:12px;width:auto;min-width:0;padding:6px 12px;border:0;text-align:left;overflow-wrap:anywhere;white-space:normal}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable td::before{content:attr(data-report-label);color:var(--muted,#82758b);font-size:12px;font-weight:500}
 .financeWorkspace :is(.financeInlineScroll,.financeReviewGroup) .insightTable td>button{min-width:0;max-width:100%;padding:0;background:transparent;text-align:left;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:420px){.financeWorkspace .financeFilters{gap:12px}.financeWorkspace .financeCustomDates{gap:10px}.financeWorkspace .financeMetric{padding:17px}.financeWorkspace .financeSectionHeading>h2{font-size:19px}.financeWorkspace .financeInlineScroll{scrollbar-gutter:auto}}
/* Figure drilldowns: shared Business health and Finances read-only report. */
.reportDrilldown{box-sizing:border-box;width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:24px;border:1px solid var(--brand-soft,#e1d4ee);border-radius:18px;background:#fff;color:var(--ink,#292332);box-shadow:0 24px 80px #23172d3d;overflow:auto}
.reportDrilldown::backdrop{background:#20132d66;backdrop-filter:blur(2px)}
.reportDrilldownHeader{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.reportDrilldownHeader h2{margin:0;font-size:24px;line-height:1.3;overflow-wrap:anywhere}
.reportDrilldownHeader button{flex:0 0 auto;min-height:44px}
.reportDrilldown .insightTableWrap{max-width:100%}
.dashboardCard .reportFigure{display:inline-block;min-width:0;min-height:36px;max-width:100%;border:0;border-radius:4px;margin:0;padding:0;background:transparent;color:var(--brand-link,#59367f);font:inherit;font-weight:700;text-align:inherit;cursor:pointer;overflow-wrap:anywhere}
.dashboardCard .reportFigure.insightValue{display:block;min-height:44px;margin:10px 0;font-size:clamp(24px,2.5vw,36px);line-height:1.25;letter-spacing:-.6px}
.dashboardCard .reportFigure:hover{text-decoration:underline;text-underline-offset:5px}
.dashboardCard .reportFigure:focus-visible{outline:2px solid var(--brand-link,#59367f);outline-offset:4px}
.dashboardDrilldownNumbers{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:3px}
@media(max-width:600px){.reportDrilldown{padding:18px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.reportDrilldownHeader{gap:12px}.reportDrilldownHeader h2{font-size:21px}.reportDrilldown .insightTable th,.reportDrilldown .insightTable td{padding:10px}.dashboardCard .reportFigure.insightValue{font-size:32px}}
.reportDrilldownHeader{position:sticky;top:0;z-index:2;background:#fff;padding-bottom:12px}
@media(max-width:600px){
 .reportDrilldown .insightTableWrap{overflow:visible}
 .reportDrilldown .insightTable{display:block;width:100%;min-width:0}
 .reportDrilldown .insightTable caption{display:block;width:auto;text-align:left}
 .reportDrilldown .insightTable thead{display:none}
 .reportDrilldown .insightTable tbody,.reportDrilldown .insightTable tr{display:block;width:100%}
 .reportDrilldown .insightTable tr{padding:12px 0;border-bottom:1px solid #e9e1ef}
 .reportDrilldown .insightTable td{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:baseline;gap:12px;width:auto;min-width:0;padding:6px 12px;border:0;text-align:left;overflow-wrap:anywhere;white-space:normal}
 .reportDrilldown .insightTable td::before{content:attr(data-report-label);color:var(--muted,#82758b);font-size:12px;font-weight:500}
 .reportDrilldown .insightTable td>button{min-width:0;max-width:100%;padding:0;background:transparent;text-align:left;white-space:normal;overflow-wrap:anywhere}
}
/* Keep the finance refresh action and timestamp vertically centred. */
.financeRefresh{align-items:center}

/* Keep the selected reference editor beside a bounded shoot-type list. */
.catalogueShootTypeLayout{align-items:start}
.catalogueShootTypeList{max-height:28rem;overflow-y:auto;overscroll-behavior:contain;min-width:0;padding-right:.35rem}
@media(max-width:720px){.catalogueShootTypeList{max-height:18rem}.catalogueShootTypeLayout{grid-template-columns:minmax(0,1fr)}}
.catalogueShootTypeLayout output{display:block;margin-top:.45rem;font-size:1rem;font-weight:500;font-variant-numeric:tabular-nums}

/* Business health uses the same timeframe controls and in-tile records as Finances. */
.dashboardFilters>.financeField{position:relative;display:grid;gap:7px;min-width:0}
.dashboardFilters>.financeField>select{box-sizing:border-box;min-width:0;width:100%;max-width:100%;min-height:44px;margin:0}
.dashboardFilters>.financeField>.helpPopover{position:absolute;right:0;top:-5px;margin:0}
#insightsView>.financeCustomDates{display:grid;grid-template-columns:minmax(150px,200px) minmax(150px,200px) auto minmax(0,1fr);align-items:end;gap:12px;margin:0 0 26px;max-width:950px}
#insightsView>.financeCustomDates[hidden]{display:none!important}
#insightsView>.financeCustomDates>.financeField{display:grid;gap:7px;min-width:0;margin:0;font-size:13px}
#insightsView>.financeCustomDates input{box-sizing:border-box;min-width:0;width:100%;max-width:100%;margin:0;min-height:44px}
#insightsView>.financeCustomDates>button{min-height:44px;margin:0;white-space:nowrap}
.dashboardCardSummary{min-width:0}
.dashboardCardExpanded{grid-column:span 2;display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:20px}
.dashboardInlineDetails{min-width:0;padding-left:20px;border-left:1px solid #e8e0ee}
.dashboardInlineHeader{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px;min-width:0}
.dashboardInlineLabel{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.dashboardInlineClose{flex:0 0 auto;min-height:36px;padding:5px 8px;font-size:13px}
.dashboardInlineScroll{max-height:360px;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:8px}
.dashboardInlineScroll:focus-visible{outline:2px solid var(--brand-link,#59367f);outline-offset:3px}
.dashboardInlineScroll .insightTableWrap{margin:0;border-radius:8px;overflow:visible}
.dashboardInlineScroll .insightTable{font-size:12px;min-width:0}
.dashboardInlineScroll .insightTable th,.dashboardInlineScroll .insightTable td{padding:10px;white-space:normal;overflow-wrap:anywhere}
.dashboardInlineScroll .insightTable th{position:sticky;top:0;z-index:1}
.dashboardInlineScroll .insightTable button{font-size:12px;text-align:left;white-space:normal;overflow-wrap:anywhere}
@media(max-width:800px){
 .dashboardCardExpanded{grid-column:1/-1;grid-template-columns:minmax(0,1fr)}
 .dashboardInlineDetails{padding:16px 0 0;border-left:0;border-top:1px solid #e8e0ee}
 .dashboardInlineScroll .insightTable{display:block;width:100%;min-width:0}
 .dashboardInlineScroll .insightTable caption{display:block;width:auto;text-align:left}
 .dashboardInlineScroll .insightTable thead{display:none}
 .dashboardInlineScroll .insightTable tbody,.dashboardInlineScroll .insightTable tr{display:block;width:100%}
 .dashboardInlineScroll .insightTable tr{padding:10px 0;border-bottom:1px solid #e9e1ef}
 .dashboardInlineScroll .insightTable td{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:baseline;gap:12px;width:auto;min-width:0;padding:6px 12px;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
 .dashboardInlineScroll .insightTable td::before{content:attr(data-report-label);color:var(--muted,#82758b);font-size:12px;font-weight:500}
 .dashboardInlineScroll .insightTable td>button{min-width:0;max-width:100%;padding:0;background:transparent;text-align:left;white-space:normal;overflow-wrap:anywhere}
 #insightsView>.financeCustomDates{grid-template-columns:repeat(2,minmax(0,1fr))}
 #insightsView>.financeCustomDates>button{justify-self:start}
}
@media(max-width:600px){.dashboardFilters>.financeField>select,#insightsView>.financeCustomDates input{font-size:16px}.dashboardInlineScroll{scrollbar-gutter:auto}}

/* Reporting choices, saved goals and unique-Story statistics. */
#insightsView .reportViewSwitch{display:flex;gap:4px;align-items:center;margin-left:auto;border:1px solid #ded2e8;border-radius:10px;padding:4px;background:#fff}
#insightsView .reportViewSwitch>button{min-height:36px;padding:7px 15px;background:transparent;color:#725288;box-shadow:none;border-radius:7px}
#insightsView .reportViewSwitch>button[aria-pressed=true]{background:#e5d6f1;color:#542b7b;box-shadow:inset 0 -2px 0 #8950bd}
#insightsView .goalsNavButton{border:1px solid #a776cb;background:#eee2f8;color:#542b7b;font-weight:700;box-shadow:0 0 0 2px #f7f0fc}
#insightsView .financeAlertLink{display:flex;align-items:center;gap:6px}
#insightsView .goalSummaryHost{margin:20px 0 26px;min-width:0}
#insightsView .goalSummaryHost[aria-busy=true]{display:flex;align-items:center;gap:14px}
#insightsView .goalSummary{border:1px solid #d8b8eb;border-left:5px solid #9b54cf;border-radius:16px;background:linear-gradient(135deg,#fff 40%,#f7effd);padding:22px 24px;min-width:0}
#insightsView .goalSummaryHeading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
#insightsView .goalSummaryHeading h2{margin:0;font-size:22px}
#insightsView .goalSummaryPeriod{font-size:13px;color:var(--muted)}
#insightsView .goalSummaryContent{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;align-items:start}
#insightsView .goalSummaryFigures{min-width:0}
#insightsView .goalSummaryPercent{font-size:34px;font-weight:750;color:#69358f;line-height:1.2}
#insightsView .goalSummaryName{margin:0 0 8px;font-weight:650}
#insightsView .goalSummaryAmounts,#insightsView .goalSummaryBasis,#insightsView .goalSummaryStatus{font-size:13px;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}
#insightsView .goalSummaryAction{margin-left:auto}
#insightsView .goalProgress{width:100%;height:12px;accent-color:#a25ad5;margin:12px 0 6px}
#insightsView .goalSummaryReview{font-size:12px;color:#805b36}
#insightsView .goalSummaryEmpty{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
#insightsView .goalSummaryPrompt{margin:0;font-size:15px}
#insightsView .financeCards{grid-template-columns:repeat(3,minmax(0,1fr))}
#insightsView .financePerStoryStats{display:grid;gap:10px;margin-top:14px;min-width:0}
#insightsView .financeStatisticRow{display:grid;gap:5px;border-top:1px solid #eee7f3;padding-top:10px;min-width:0}
#insightsView .financeStatisticLabel{font-size:12px;color:var(--muted)}
#insightsView .financeStatisticNumbers{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0}
#insightsView :is(.financeStatisticButton,.financeAverageButton){padding:3px 0;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px;background:transparent;color:#6b3f89;border:0;min-width:0;overflow-wrap:anywhere;white-space:normal;text-align:left}
#insightsView .financeAverageButton{font-weight:500}
#insightsView .reportGraphHost[hidden],#insightsView .financeSection[hidden],#insightsView .dashboardCards[hidden],#insightsView .dashboardCustomize[hidden]{display:none!important}
@media(max-width:1000px) and (min-width:761px){#insightsView .financeCards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#insightsView .financeCards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#insightsView .reportViewSwitch{margin-left:auto}#insightsView .goalSummary{padding:18px 20px}#insightsView .goalSummaryContent{grid-template-columns:minmax(0,1fr)}#insightsView .goalSummaryHeading h2{font-size:20px}#insightsView .goalSummaryAction{margin-left:0}#insightsView :is(.financeStatisticButton,.financeAverageButton){min-height:36px}#insightsView .goalSummaryHost[aria-busy=true]{flex-wrap:wrap}}
#insightsView .goalSummaryTargets{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
#insightsView .goalSummaryTargets>.goalSummaryContent{display:block;border-top:1px solid #e5d4ef;padding-top:14px}
#insightsView .goalSummaryPercent{display:block;background:transparent;border:0;padding:0;text-align:left;text-decoration:underline;text-decoration-color:#d8b8eb;text-underline-offset:5px}
#insightsView .goalSummaryAmounts,#insightsView .goalSummaryBasis{display:block}
#insightsView .goalTargetCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 30px;align-items:start}
#insightsView .goalTargetCard{min-width:0;margin:0}
#insightsView .goalTargetCard>h3{margin:0 0 14px;font-size:19px;overflow-wrap:anywhere}
#insightsView .goalTargetAmounts,#insightsView .goalTargetReview{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
#insightsView .goalTargetEdit{margin:18px 0}
#insightsView .goalTargetCard input{min-width:0;max-width:100%;box-sizing:border-box}
#insightsView .goalTargetCard button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#insightsView .goalTargetCard>details>button{display:block;text-align:left;margin-top:9px}
#insightsView .goalHistoryVersion{border-bottom:1px solid #e8deef;padding:12px 0}
@media(max-width:1000px){#insightsView .goalTargetCards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#insightsView .goalSummaryTargets{grid-template-columns:minmax(0,1fr)}#insightsView .goalTargetCard input{font-size:16px}}

/* Workspace refinement: compact controls and annual booking summaries. */
#insightsView .healthOverviewTools{display:flex;flex-direction:column;gap:8px;width:240px;margin-left:auto}
#insightsView .healthOverviewTools>button{width:100%;box-sizing:border-box}
#insightsView .dashboardCustomize[hidden]{display:none!important}
#insightsView .financeCards{grid-template-columns:repeat(2,minmax(0,1fr))}
.financePeriods{min-width:0;margin-top:22px;border-top:1px solid #e7e0eb;padding-top:14px}
.financePeriodsHead{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.financePeriodsHead h4{margin:0;font-size:14px}
.financeYearToggle{display:flex;gap:3px;border:1px solid #ded2e8;padding:3px;border-radius:8px}
.financeYearToggle>button{min-height:32px;padding:4px 9px;font-size:12px;background:transparent;color:#725288}
.financeYearToggle>button[aria-pressed=true]{background:#e5d6f1;color:#542b7b}
.financeYearScroll{max-height:290px;overflow:auto;scrollbar-gutter:stable}
.financeYearTable{border-collapse:collapse;width:100%;font-size:13px}
.financeYearTable caption{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
.financeYearTable th,.financeYearTable td{padding:9px 6px;border-bottom:1px solid #eee8f2;text-align:right;white-space:nowrap}
.financeYearTable th{font-size:11px;color:var(--muted);font-weight:600}

#login .signupDescription,#login .signupStatus{line-height:1.5}
#login .signupLink{margin:16px 0 0;font-size:14px}
#login .signupLink a{display:inline-block;padding-block:8px;color:var(--brand-link,#59367f);text-underline-offset:3px}
#login .signupStatus{margin:12px 0 0;color:var(--brand-link,#59367f);font-size:14px}
#login .signupStatus:empty{margin:0}
#login .signupFlow h1:focus{outline:none}
.financeYearTable :is(th,td):first-child{text-align:left}
.financeYearTable .financeYearButton{padding:2px 0;min-height:30px;font-size:13px;white-space:nowrap}
.financeMetricExpanded .financePeriods{grid-column:1/-1}
@media(max-width:760px){#insightsView .financeCards{grid-template-columns:minmax(0,1fr)}#insightsView .healthOverviewTools{width:210px}.financeYearTable :is(th,td){padding:8px 4px;font-size:11px}.financeYearTable .financeYearButton{font-size:12px}.financeYearScroll{scrollbar-gutter:auto}}

.contractorProfileHead{display:flex;align-items:center;justify-content:space-between;gap:12px}.contractorProfileHead h2{margin:0}.contractorProfileEdit{font-size:18px;min-width:40px;min-height:40px}.contractorProfileLine{display:flex;flex-direction:column;gap:5px;white-space:pre-wrap;overflow-wrap:anywhere}

#scheduleView .scheduleToolbar{margin-bottom:12px}
#scheduleView .plannerViewButton{background:transparent;color:var(--brand-link,#7142ac)}
#scheduleView .plannerViewButton:hover{background:var(--brand-soft,#eee7f7)}
#scheduleView .plannerViewButton[aria-pressed="true"]{background:white}
#scheduleView .scheduleMonthBar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
#scheduleView .scheduleMonthNav{display:flex;justify-content:center;align-items:center;gap:4px;min-width:0}
#scheduleView .scheduleMonthNav h2{margin:0;min-width:0;line-height:1.3;text-align:center;font-size:20px}
#scheduleView .scheduleMonthPickerButton{display:inline-flex;align-items:center;justify-content:center;gap:3px;max-width:100%;min-height:34px;padding:2px 4px;background:transparent;color:inherit;font:inherit;line-height:inherit}
#scheduleView .scheduleMonthPickerButton:is(:hover,:focus-visible){background:var(--brand-soft,#eee7f7)}
#scheduleView .scheduleMonthPickerButton:focus-visible{outline:2px solid var(--brand-link,#7142ac);outline-offset:2px}
#scheduleView .scheduleMonthPickerButton svg{flex:none;width:14px;height:14px;color:var(--brand-link,#7142ac)}
#scheduleView .scheduleMonthPicker{box-sizing:border-box;width:min(380px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid #e3dbea;border-radius:12px;background:#fff;color:inherit;box-shadow:0 12px 42px #241c3540}
#scheduleView .scheduleMonthPicker::backdrop{background:#241c3544}
#scheduleView .scheduleMonthPicker h2{margin:0 0 14px}
#scheduleView .scheduleMonthPicker form{margin:0}
#scheduleView .scheduleMonthPickerFields{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px}
#scheduleView .scheduleMonthPickerFields select{width:100%;min-width:0;box-sizing:border-box}
#scheduleView .scheduleMonthPickerActions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
#scheduleView .scheduleMonthArrow{width:34px;min-width:34px;height:34px}
#scheduleView .scheduleMonthArrow svg{width:18px;height:18px}
#scheduleView .scheduleThisMonth{justify-self:start;white-space:nowrap}
#scheduleView .scheduleThisMonth:focus-visible{outline:2px solid var(--brand-link,#7142ac);outline-offset:3px}
#scheduleView .scheduleMonthBar+.calendarGrid{margin-top:6px}
#scheduleView .calendarEventCompact{display:none}
@media(max-width:760px){
 #scheduleView .scheduleMonthBar{grid-template-columns:auto minmax(0,1fr);gap:4px}
 #scheduleView .scheduleMonthNav{gap:0}
 #scheduleView .scheduleMonthNav h2{font-size:clamp(14px,4.1vw,18px)}
 #scheduleView .scheduleMonthArrow,#scheduleView .scheduleViewChoice{width:44px;min-width:44px;height:44px}
 #scheduleView .scheduleMonthPickerButton{min-height:44px;padding-inline:1px;gap:2px}
 #scheduleView .scheduleMonthPickerButton svg{width:12px;height:12px}
 #scheduleView .scheduleThisMonth{min-height:44px}
 #scheduleView .scheduleMonthPicker :is(select,button){min-height:44px}
 #scheduleView .scheduleMonthPickerFields select{padding-inline:8px;font-size:16px}
 #scheduleView .calendarDay{padding:5px 3px}
 #scheduleView .calendarEvent{box-sizing:border-box;min-height:44px;margin-top:5px;padding:4px 2px;overflow:hidden}
 #scheduleView .calendarEvent:focus-visible{outline:2px solid var(--brand-link,#7142ac);outline-offset:-2px}
 #scheduleView .calendarEventWide{display:none}
 #scheduleView .calendarEventCompact{display:block;font-size:11px;line-height:1.12}
 #scheduleView .calendarEventCompact :is(.calendarEventCompactLine,.calendarEventCompactTime){display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 #scheduleView .calendarEventCompactTime{margin-top:3px;font-variant-numeric:tabular-nums}
}
