/* Scoped to the dedicated record. Legacy dialogs and new-client forms remain intact. */
html body #hotelModal.client-workspace-ready .hotel-modal-card{background:#f6f7f8!important;padding:0 32px 48px!important;color:#26343d}
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header{position:relative!important;top:auto!important;min-height:0!important;margin:0 -32px 24px!important;padding:20px 32px!important;gap:16px!important;display:flex!important;align-items:center!important}
html body #hotelModal.client-workspace-ready .customer-record-identity{flex:1 1 280px!important;order:0!important}
html body #hotelModal.client-workspace-ready .customer-record-header h2{font-size:30px!important;line-height:1.12!important}
html body #hotelModal.client-workspace-ready .customer-record-header [data-close]{order:-1!important}
html body #hotelModal.client-workspace-ready .customer-header-photo{flex:0 0 100px!important;width:100px!important;height:68px!important;min-height:0!important;aspect-ratio:auto!important;order:1!important;margin:0!important;border-radius:8px!important}
html body #hotelModal.client-workspace-ready .customer-header-photo:has(.customer-header-photo-placeholder){height:36px!important;border:1px solid #78838c!important;background:transparent!important}
html body #hotelModal.client-workspace-ready .customer-header-photo-placeholder{padding:6px!important;color:#fff!important;font-size:11px!important}
html body #hotelModal.client-workspace-ready .customer-header-photo:has(.customer-header-photo-placeholder) .customer-header-photo-change{display:none!important}
html body #hotelModal.client-workspace-ready .customer-record-menu,
html body #hotelModal.client-workspace-ready .crm-modern-section-nav,
html body #hotelModal.client-workspace-ready .crm-modern-overview,
html body #hotelModal.client-workspace-ready .customer-record-meta,
html body #hotelModal.client-workspace-ready .customer-record-assignment,
html body #hotelModal.client-workspace-ready .customer-journey,
html body #hotelModal.client-workspace-ready .customer-owner-panel,
html body #hotelModal.client-workspace-ready .customer-record-bottom-actions{display:none!important}
#hotelModal.client-workspace-ready #clientWorkspace [hidden],#hotelModal.client-workspace-ready #cwPanelSlot > [hidden]{display:none!important}
#hotelModal.client-workspace-ready #clientWorkspace{width:100%;max-width:none;box-sizing:border-box;margin:0;font:14px/1.5 'Red Hat Display',sans-serif}
#clientWorkspace h3{font:500 23px/1.2 Newsreader,Newsreader,serif;margin:0;color:#24343e}
#clientWorkspace .cw-card,#clientWorkspace #crmDiary,#clientWorkspace #cwPanelSlot > section,#clientWorkspace #hotelForm{background:#fff!important;border:1px solid #e0e5e8!important;border-radius:12px!important;box-shadow:none!important;padding:22px!important;margin:0!important;min-width:0}
#clientWorkspace .cw-summary{border-top:3px solid #657b88!important}
#clientWorkspace .cw-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
#clientWorkspace .cw-summary-note{margin:0;white-space:pre-line;max-width:100ch;line-height:1.65}
#clientWorkspace .cw-opportunities{margin-top:12px}#clientWorkspace .cw-opportunities ul{margin:7px 0 0;padding-left:19px;display:grid;gap:5px}
#clientWorkspace .cw-kicker,#clientWorkspace .cw-owner>span,#clientWorkspace .cw-field>span{display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#697781}
#clientWorkspace .cw-quicklinks{display:flex;flex-wrap:wrap;gap:6px;padding:18px 0;border:0;background:transparent;position:static}
#clientWorkspace button,#clientWorkspace a.btn{cursor:pointer;font:600 12px/1.3 'Red Hat Display',sans-serif}
#clientWorkspace button:focus-visible,#clientWorkspace a:focus-visible,#clientWorkspace summary:focus-visible{outline:2px solid #597789;outline-offset:3px}
#clientWorkspace .cw-quicklinks button{background:#fff;border:1px solid #dce2e5;border-radius:7px;padding:10px 14px;min-height:40px;color:#465863}
#clientWorkspace .cw-quicklinks button[aria-pressed=true]{background:#344650;border-color:#344650;color:#fff}
#clientWorkspace .cw-context{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;gap:20px;padding:0 0 22px;margin-bottom:0}
#clientWorkspace .cw-field{display:grid;gap:6px;min-width:0}#clientWorkspace .cw-field>span{display:flex;justify-content:space-between;gap:8px}
#clientWorkspace input,#clientWorkspace select,#clientWorkspace textarea{box-sizing:border-box;width:100%;min-width:0;background:#fff!important;border:1px solid #ced7dc!important;border-radius:7px!important;padding:10px 12px!important;font:400 14px/1.4 'Red Hat Display',sans-serif!important;color:#24343e!important;min-height:42px;box-shadow:none!important}
#clientWorkspace .cw-owner{align-self:center}#clientWorkspace #cwOwnerName{border:0;background:none;padding:8px 0;color:#263b49;text-align:left}
#clientWorkspace #cwFollowHint{text-transform:none;letter-spacing:0;font-size:11px;font-weight:500}#clientWorkspace #cwFollowHint.cw-overdue{color:#a34435;font-weight:700}
#clientWorkspace .cw-overview{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
#clientWorkspace .cw-primary{grid-column:2;grid-row:1}#clientWorkspace #cwDiarySlot{grid-column:1;grid-row:1;min-width:0}
#clientWorkspace .cw-contact-name{font-size:18px;display:block;font-weight:650;color:#263b49}#clientWorkspace #cwContactBody p{margin:4px 0;color:#697781}
#clientWorkspace .cw-contact-line{display:flex;align-items:center;gap:8px;margin:9px 0;overflow-wrap:anywhere;font-size:13px}
#clientWorkspace .cw-contact-line button,#clientWorkspace .cw-text-button{border:0;background:none;padding:0;color:#4a6576;text-decoration:underline;text-underline-offset:3px;font-size:12px}
#clientWorkspace .cw-contact-actions{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}
#clientWorkspace .cw-contact-actions button{border:1px solid #d6dfe4;background:#fff;padding:9px 10px;border-radius:6px;min-height:38px;color:#344650}
#clientWorkspace .cw-contact-actions button:first-child{background:#344650;border-color:#344650;color:#fff}
#clientWorkspace .crm-primary-contact-edit{margin:0 0 14px!important;border:0!important;background:none!important;padding:0!important;font-size:12px!important;color:#4a6576!important;text-decoration:underline;text-transform:none!important;min-height:0!important}
#clientWorkspace .cw-preferences{border-top:1px solid #e5e9ec;padding-top:14px;margin:14px 0}#clientWorkspace summary{cursor:pointer;font-size:12px;color:#465e6c}
#clientWorkspace .cw-preference-options{display:flex;flex-wrap:wrap;gap:6px}#clientWorkspace .cw-preference-options button{border:1px solid #dce3e7;border-radius:6px;background:#fff;padding:7px;font-size:11px}#clientWorkspace .cw-preference-options button[aria-pressed=true]{background:#e6edf0;border-color:#617f90}
#clientWorkspace .cw-muted{color:#77828b;font-size:12px;font-weight:400}#clientWorkspace #cwPanelSlot{display:grid;gap:20px}
#clientWorkspace #cwPanelHeading{margin:4px 0 16px}
#clientWorkspace #hotelForm{display:grid!important}#clientWorkspace #hotelForm[hidden]{display:none!important}
#clientWorkspace #hotelForm .crm-form-section{display:block!important;margin:0!important;padding:16px!important;border:1px solid #e1e6e9!important;border-radius:8px!important}
#clientWorkspace #hotelForm .crm-fields{display:grid!important}#clientWorkspace #hotelForm legend{font-size:14px!important;font-weight:700!important}
#clientWorkspace #crmDiary{display:block!important}#clientWorkspace #crmDiary[hidden]{display:none!important}
#clientWorkspace .crm-diary-head{margin:0 0 16px!important}#clientWorkspace .crm-diary-head .eyebrow{display:none!important}#clientWorkspace .crm-diary-head p:last-child{font-size:12px;color:#75838d;margin:5px 0}
#clientWorkspace #hotelActivityForm{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;background:#f8fafb!important;border:1px solid #e3e9ed!important;border-radius:9px!important;padding:14px!important;margin:0 0 20px!important}
#clientWorkspace #hotelActivityForm label{font-size:12px!important;color:#50636f!important;display:grid;gap:5px}
#clientWorkspace #hotelActivityForm .cw-entry-meta{display:grid;grid-template-columns:125px 1fr;gap:12px}
#clientWorkspace #hotelActivityForm .activity-notes-field{grid-column:auto!important;grid-row:auto!important}#clientWorkspace #hotelActivityForm textarea{min-height:82px!important;resize:vertical}
#clientWorkspace #hotelActivityForm .activity-image-field{grid-column:auto!important;grid-row:auto!important}#clientWorkspace #hotelActivityForm .activity-image-field input{font-size:11px!important;padding:6px!important;min-height:0!important;background:none!important;border:0!important}#clientWorkspace #hotelActivityForm .activity-image-field small{display:none!important}
#clientWorkspace #hotelActivityForm>button{position:static!important;grid-column:auto!important;grid-row:auto!important;justify-self:start!important;width:auto!important;padding:10px 18px!important;min-height:40px!important;border-radius:6px!important;font-size:12px!important;background:#344650!important;color:#fff!important}
#clientWorkspace #cwDiaryTools{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:8px;margin-bottom:18px}#clientWorkspace #cwDiaryTools input,#clientWorkspace #cwDiaryTools select{font-size:12px!important}#clientWorkspace #cwDiaryCount{grid-column:1/-1;font-size:11px;color:#75838d}
#clientWorkspace .crm-timeline{margin:0!important;padding:0!important;display:grid;gap:12px}#clientWorkspace .crm-timeline-item{display:block!important;padding:0!important;margin:0!important}#clientWorkspace .crm-timeline-item[hidden]{display:none!important}#clientWorkspace .crm-timeline-marker{display:none!important}
#clientWorkspace .crm-timeline-card{padding:16px!important;border:1px solid #e2e8eb!important;border-radius:8px!important;background:#fff!important;margin:0!important;min-width:0}
#clientWorkspace .crm-timeline-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px!important;color:#71818b}#clientWorkspace .crm-timeline-card p{font-size:13px!important;line-height:1.6!important;overflow-wrap:anywhere}
#clientWorkspace .cw-entry-preview{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}#clientWorkspace .crm-timeline-footer{font-size:10px;color:#81909a;margin-top:12px}
#clientWorkspace .crm-timeline-item.needs-review .crm-timeline-card{border-left:3px solid #b88c42!important}#clientWorkspace .crm-diary-image-grid{display:flex;flex-wrap:wrap;gap:8px}#clientWorkspace .crm-diary-image{max-width:180px}#clientWorkspace .crm-diary-image img{max-width:100%}
#clientWorkspace #cwNotice{font-size:12px;color:#4b6574}#clientWorkspace #cwNotice:empty{display:none}
@media(max-width:1150px){#clientWorkspace .cw-overview{grid-template-columns:minmax(0,1fr) 250px;gap:16px}}
@media(max-width:950px){#clientWorkspace .cw-overview{grid-template-columns:1fr}#clientWorkspace .cw-primary,#clientWorkspace #cwDiarySlot{grid-column:1;grid-row:auto}#clientWorkspace .cw-primary{order:-1}#clientWorkspace .cw-context{gap:12px;grid-template-columns:1fr 1fr}#clientWorkspace .cw-owner{grid-column:1/-1;display:flex;gap:12px;align-items:center}#clientWorkspace #cwOwnerName{padding:0}}
@media(max-width:600px){html body #hotelModal.client-workspace-ready .hotel-modal-card{padding:0 16px 32px!important}html body #hotelModal.client-workspace-ready .modal-head.customer-record-header{margin:0 -16px 16px!important;padding:16px!important}html body #hotelModal.client-workspace-ready .customer-record-header h2{font-size:26px!important}html body #hotelModal.client-workspace-ready .customer-record-identity{flex-basis:100%!important}html body #hotelModal.client-workspace-ready .customer-header-photo{position:absolute!important;top:16px!important;right:16px!important;width:90px!important;height:34px!important}#clientWorkspace .cw-card,#clientWorkspace #crmDiary{padding:16px!important}#clientWorkspace .cw-quicklinks{gap:6px;padding:14px 0}#clientWorkspace .cw-quicklinks button{padding:9px 10px;font-size:11px}#clientWorkspace #cwDiaryTools{grid-template-columns:1fr}#clientWorkspace #hotelActivityForm .cw-entry-meta{grid-template-columns:1fr}#clientWorkspace h3{font-size:22px}}
#hotelModal.client-workspace-ready #clientWorkspace .cw-quicklinks button[aria-pressed=true],#hotelModal.client-workspace-ready #clientWorkspace .cw-contact-actions button:first-child{color:#fff!important}
#hotelModal.client-workspace-ready #hotelForm input:not([type=hidden]),#hotelModal.client-workspace-ready #hotelForm select:not([hidden]),#hotelModal.client-workspace-ready #addCustomerContact{display:block!important}
#hotelModal.client-workspace-ready #hotelForm label:has([name=nextFollowUp]){display:none!important}
#hotelModal.client-workspace-ready #cwOwnerEditor{display:grid!important;gap:6px;margin-bottom:12px}
#hotelModal.client-workspace-ready #cwOwnerEditor select{display:block!important}
#hotelModal.client-workspace-ready #hotelForm .customer-contacts-head{display:flex!important}
#hotelModal.client-workspace-ready #hotelForm .crm-fields>label{display:grid!important;gap:6px}
#hotelModal.client-workspace-ready #clientWorkspace #hotelForm label:has([name=nextFollowUp]){display:none!important}
#hotelModal.client-workspace-ready[data-customer-panel=details] .cw-owner{display:none!important}
#clientWorkspace #cwDiaryComposer{margin:0 0 18px}#clientWorkspace #cwDiaryComposer>summary{display:inline-flex;align-items:center;min-height:38px;padding:9px 14px;background:#344650;color:#fff!important;font-size:12px;font-weight:600;border-radius:6px;cursor:pointer;box-sizing:border-box;list-style:none}
#clientWorkspace #cwDiaryComposer[open]>summary{margin-bottom:12px}
#clientWorkspace #cwDiaryComposer:not([open])>form{display:none!important}
#clientWorkspace .cw-section-head .crm-primary-contact-edit{margin:0!important;letter-spacing:0!important}
#clientWorkspace .cw-entry-meta label>span{display:block}#clientWorkspace .cw-entry-meta small{display:inline}
#hotelModal.client-workspace-ready #cwFollowHint.cw-overdue{color:#a34435!important}

#hotelModal.client-workspace-ready #crmCustomerSales .eyebrow{display:none!important}
#hotelModal.client-workspace-ready .crm-logo-feedback:not(.is-saved):not(.is-pending):not(.is-error){display:none!important}
/* Keep the empty upload action compact; give a saved photo its own preview. */
html body #hotelModal.client-workspace-ready .customer-header-photo:has(.customer-header-photo-placeholder[hidden]){position:relative!important;flex:0 0 220px!important;width:220px!important;max-width:100%!important;height:120px!important;border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important;overflow:hidden!important}
html body #hotelModal.client-workspace-ready .customer-header-photo img:not([hidden]){width:100%!important;height:120px!important;object-fit:cover!important;display:block!important}
html body #hotelModal.client-workspace-ready .customer-header-photo:has(.customer-header-photo-placeholder[hidden]) .customer-header-photo-change{display:flex!important;top:8px!important;bottom:auto!important;right:8px!important;left:auto!important;width:28px!important;height:28px!important;background:rgba(20,32,43,.75)!important;border-radius:50%!important}
html body #hotelModal.client-workspace-ready .customer-header-photo-change::after{content:none!important}
html body #hotelModal.client-workspace-ready .customer-header-photo-change svg{width:13px!important;height:13px!important}
html body #hotelModal.client-workspace-ready .customer-header-photo-badge{display:none!important}
@media(max-width:600px){html body #hotelModal.client-workspace-ready .customer-header-photo:has(.customer-header-photo-placeholder[hidden]){position:relative!important;top:auto!important;right:auto!important;flex-basis:100%!important;width:100%!important;height:160px!important;order:3!important}html body #hotelModal.client-workspace-ready .customer-header-photo img:not([hidden]){height:160px!important}}

#clientWorkspace .cw-opportunity-toggle{display:inline-flex;margin:8px 0 0 18px;padding:6px 0;font-size:12px}
/* Shared slate navigation and a compact, aligned client heading. */
html body #mobileSidebar{background:#303b46!important;color:#f5f7f8!important;border-right:1px solid #46525e!important;box-shadow:none!important}
html body #mobileSidebar .brand,html body #mobileSidebar .sidebar-footer,html body #mobileSidebar .team-tools{border-color:#4a5662!important}
html body #mobileSidebar .nav-item,html body #mobileSidebar .team-tool-link{color:#e2e7eb!important;background:transparent!important}
html body #mobileSidebar .nav-item.active,html body #mobileSidebar .nav-item:hover,html body #mobileSidebar .team-tool-link:hover{background:#465360!important;color:#fff!important}
html body #mobileSidebar .team-tool-link>span{background:#3b4855!important;border-color:#566471!important;color:#e2e7eb!important}
html body #mobileSidebar .team-tools-label,html body #mobileSidebar .brand-sub{color:#bfc9d1!important}
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header{background:#303b46!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'back photo' 'identity photo'!important;column-gap:32px!important;row-gap:16px!important;padding:24px 32px 28px!important;align-items:center!important}
html body #hotelModal.client-workspace-ready .customer-record-header [data-close]{grid-area:back!important;justify-self:start!important;align-self:start!important;width:auto!important;height:auto!important;min-height:28px!important;margin:0!important;padding:2px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#d7e0e7!important;font-size:13px!important;font-weight:500!important;line-height:1.4!important}
html body #hotelModal.client-workspace-ready .customer-record-header [data-close]:hover{color:#fff!important;text-decoration:underline!important}
html body #hotelModal.client-workspace-ready .customer-record-identity{grid-area:identity!important;min-width:0!important;margin:0!important;padding:0!important}
html body #hotelModal.client-workspace-ready .customer-record-header .eyebrow{color:#bdc9d3!important;font-size:10px!important;letter-spacing:.16em!important;margin:0 0 8px!important}
html body #hotelModal.client-workspace-ready .customer-record-header h2{font-size:clamp(28px,2.8vw,38px)!important;line-height:1.1!important;letter-spacing:-.025em!important;margin:0!important;color:#fff!important}
html body #hotelModal.client-workspace-ready .customer-record-address{margin-top:12px!important;color:#d0d9e0!important;font-size:13px!important;line-height:1.5!important;text-align:left!important}
html body #hotelModal.client-workspace-ready .customer-header-photo{grid-area:photo!important;align-self:center!important;position:relative!important;top:auto!important;right:auto!important}
@media(max-width:600px){html body #hotelModal.client-workspace-ready .modal-head.customer-record-header{padding:20px 16px 24px!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'back photo' 'identity identity'!important;gap:18px!important}html body #hotelModal.client-workspace-ready .customer-record-header:has(.customer-header-photo-placeholder[hidden]){grid-template-areas:'back back' 'identity identity' 'photo photo'!important}html body #hotelModal.client-workspace-ready .customer-record-header h2{font-size:28px!important}}
html body.client-record-page-open #hotelModal.client-workspace-ready .modal-head.customer-record-header button.icon-btn[data-close]{grid-area:back!important;justify-self:start!important;width:auto!important;height:auto!important;min-height:28px!important;min-width:0!important;padding:2px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#d7e0e7!important;font-size:13px!important;font-weight:500!important}
html body.client-record-page-open #hotelModal.client-workspace-ready .modal-head.customer-record-header button.icon-btn[data-close]::after{color:#d7e0e7!important;font-size:13px!important;font-weight:500!important}

/* Overview account fields share one label baseline and one control baseline. */
html body #hotelModal.client-workspace-ready #clientWorkspace .cw-context{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start!important;gap:18px!important}
html body #hotelModal.client-workspace-ready #clientWorkspace .cw-context[hidden]{display:none!important}
html body #hotelModal.client-workspace-ready #clientWorkspace .cw-context>.cw-field,html body #hotelModal.client-workspace-ready #clientWorkspace .cw-context>.cw-owner{display:grid!important;grid-template-rows:20px 46px!important;gap:8px!important;align-self:start!important;grid-column:auto!important;margin:0!important;min-width:0!important}
html body #hotelModal.client-workspace-ready #clientWorkspace .cw-context>*>span{line-height:20px!important;margin:0!important;align-items:center!important}
html body #hotelModal.client-workspace-ready #clientWorkspace #customerRecordStatus,html body #hotelModal.client-workspace-ready #clientWorkspace #customerRecordFollowUp,html body #hotelModal.client-workspace-ready #clientWorkspace #cwOwnerName{box-sizing:border-box!important;width:100%!important;height:46px!important;min-height:46px!important;margin:0!important;padding:10px 14px!important;border:1px solid #d5dde3!important;border-radius:8px!important;background:#fff!important;color:#263b49!important;font-size:14px!important;line-height:24px!important;text-align:left!important;box-shadow:none!important}
html body #hotelModal.client-workspace-ready #clientWorkspace #customerRecordStatus{appearance:none!important;-webkit-appearance:none!important;padding-right:34px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23546775' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center!important}
html body #hotelModal.client-workspace-ready #clientWorkspace #cwOwnerName:hover{border-color:#7c8e9b!important}
@media(max-width:600px){html body #hotelModal.client-workspace-ready #clientWorkspace .cw-context{grid-template-columns:1fr!important;gap:14px!important}}
/* Give wide wordmarks and square logos a full, uncropped preview. */
html body #hotelModal.client-workspace-ready #clientWorkspace .customer-asset-card:has(#customerLogoPreview){grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
html body #hotelModal.client-workspace-ready #clientWorkspace #customerLogoPreview{grid-column:1/-1!important;display:grid!important;place-items:center!important;width:100%!important;height:220px!important;min-height:220px!important;max-width:100%!important;padding:0!important;background:#fff!important;border:1px solid #e2e7eb!important;border-radius:10px!important;overflow:hidden!important}
html body #hotelModal.client-workspace-ready #clientWorkspace #customerLogoImage:not([hidden]){display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:220px!important;min-width:0!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:36px 24px 24px!important}
html body #hotelModal.client-workspace-ready #clientWorkspace #customerLogoPreview .crm-logo-save-badge{top:10px!important;right:10px!important;font-size:10px!important;line-height:1.2!important;padding:5px 8px!important}
@media(max-width:600px){html body #hotelModal.client-workspace-ready #clientWorkspace #customerLogoPreview{height:180px!important;min-height:180px!important}html body #hotelModal.client-workspace-ready #clientWorkspace #customerLogoImage:not([hidden]){max-height:180px!important;padding:32px 16px 16px!important}}
html body #hotelModal.client-workspace-ready #clientWorkspace article.customer-asset-card.logo-asset-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important}
html body #hotelModal.client-workspace-ready #clientWorkspace article.logo-asset-card #customerLogoPreview{flex:none!important;align-self:stretch!important;width:100%!important;max-width:none!important}

/* Important layered rules override the legacy component typography consistently. */
@layer client-record-typography {
  body.client-record-page-open,
  body.client-record-page-open *,
  body.client-record-page-open *::before,
  body.client-record-page-open *::after,
  #hotelModal.client-workspace-ready,
  #hotelModal.client-workspace-ready *,
  #hotelModal.client-workspace-ready *::before,
  #hotelModal.client-workspace-ready *::after {
    font-size:14pt!important;
  }
}

/* Square property photo beside the client identity and quicklinks. */
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header,
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header:has(.customer-header-photo-placeholder[hidden]) {
  grid-template-columns:minmax(0,1fr) clamp(300px,28vw,420px)!important;
  grid-template-areas:'back photo' 'identity photo' 'links photo' 'roger photo'!important;
}
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header #customerHeaderPhoto {
  grid-area:photo!important;position:relative!important;top:auto!important;right:auto!important;
  width:clamp(300px,28vw,420px)!important;max-width:100%!important;height:100%!important;min-height:0!important;contain:size;
  margin:0!important;border-radius:8px!important;align-self:stretch!important;justify-self:end!important;
  background:#26323c!important;aspect-ratio:auto!important;
}
html body #hotelModal.client-workspace-ready #customerHeaderPhoto img:not([hidden]) {
  width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;
}
html body #hotelModal.client-workspace-ready #customerHeaderPhoto .customer-header-photo-change {
  top:12px!important;
  right:12px!important;
  width:auto!important;
  height:auto!important;
  gap:7px!important;
  padding:8px 12px!important;
  border-radius:6px!important;
  color:#fff!important;
}
html body #hotelModal.client-workspace-ready #customerHeaderPhoto .customer-header-photo-change::after {
  content:'Change photo'!important;
}
@layer client-record-typography {
  body.client-record-page-open #customerRecordTitle,
  #hotelModal.client-workspace-ready #customerRecordTitle {font-size:18pt!important}
}
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header {
  grid-template-areas:'back photo' 'identity photo' 'links photo' 'roger photo'!important;
}
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header:has(.customer-header-photo-placeholder[hidden]) {
  grid-template-areas:'back photo' 'identity photo' 'links photo' 'roger photo'!important;
}
html body #hotelModal.client-workspace-ready .customer-record-header .cw-quicklinks {
  grid-area:links;display:flex;flex-wrap:wrap;gap:8px;min-width:0;
  padding:6px 0 0;margin:0;border:0;background:transparent;
}
html body #hotelModal.client-workspace-ready .customer-record-header .cw-quicklinks button {
  padding:9px 13px;min-height:42px;border:1px solid #71808d;border-radius:7px;
  background:transparent;color:#f5f7fa!important;font-family:inherit;line-height:1.3;cursor:pointer;
}
html body #hotelModal.client-workspace-ready .customer-record-header .cw-quicklinks button:hover,
html body #hotelModal.client-workspace-ready .customer-record-header .cw-quicklinks button:focus-visible {
  background:#465563;border-color:#ccd7df;
}
html body #hotelModal.client-workspace-ready .customer-record-header .cw-quicklinks button[aria-pressed=true] {
  background:#fff;color:#26343d!important;border-color:#fff;
}
@media(max-width:760px) {
  html body #hotelModal.client-workspace-ready .modal-head.customer-record-header,
  html body #hotelModal.client-workspace-ready .modal-head.customer-record-header:has(.customer-header-photo-placeholder[hidden]) {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:'back' 'identity' 'photo' 'links' 'roger'!important;
  }
  html body #hotelModal.client-workspace-ready .modal-head.customer-record-header #customerHeaderPhoto {
    width:min(420px,100%)!important;height:auto!important;aspect-ratio:4/3!important;contain:none;justify-self:start!important;
  }
}

/* The client page uses the two Office brand fonts, including legacy controls. */
@layer client-record-typography {
  body.client-record-page-open,
  body.client-record-page-open *,
  body.client-record-page-open *::before,
  body.client-record-page-open *::after,
  #hotelModal.client-workspace-ready,
  #hotelModal.client-workspace-ready *,
  #hotelModal.client-workspace-ready *::before,
  #hotelModal.client-workspace-ready *::after {
    font-family:'Red Hat Display',sans-serif!important;
  }
  body.client-record-page-open :is(h1,h2,h3,h4,h5,h6),
  body.client-record-page-open :is(h1,h2,h3,h4,h5,h6) *,
  #hotelModal.client-workspace-ready :is(h1,h2,h3,h4,h5,h6),
  #hotelModal.client-workspace-ready :is(h1,h2,h3,h4,h5,h6) * {
    font-family:'Newsreader',serif!important;
  }
}

#clientWorkspace .customer-sales-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){#clientWorkspace .customer-sales-summary{grid-template-columns:1fr}}

/* Keep logo details and actions compact beneath the preview. */
html body #hotelModal.client-workspace-ready #clientWorkspace article.customer-asset-card.logo-asset-card{gap:12px!important}
#clientWorkspace .customer-logo-file{min-width:0;overflow-wrap:anywhere}
#clientWorkspace .customer-logo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#clientWorkspace .customer-logo-actions>.btn,#clientWorkspace .customer-logo-actions>.text-btn{width:auto!important;margin:0!important;min-height:40px;padding:8px 12px!important}

/* Consistent uppercase labels and clear separation below the summary. */
@layer client-record-typography {
  html body #hotelModal.client-workspace-ready :is(h1,h2,h3,h4,h5,h6),
  html body #hotelModal.client-workspace-ready :is(h1,h2,h3,h4,h5,h6) *,
  html body #hotelModal.client-workspace-ready :is(.cw-kicker,.cw-field>span,.cw-owner>span,.eyebrow,.cw-quicklinks button),
  html body #hotelModal.client-workspace-ready #clientWorkspace label {
    font-family:'Red Hat Display',sans-serif!important;
    text-transform:uppercase!important;
    font-weight:700!important;
    letter-spacing:.04em!important;
  }
  html body #hotelModal.client-workspace-ready #clientWorkspace :is(input,select,textarea,option,label small) {
    text-transform:none!important;
    letter-spacing:normal!important;
  }
}
html body #hotelModal.client-workspace-ready #clientWorkspace .cw-context{margin-top:24px!important}

#clientWorkspace #cwDetailsEditor{margin-top:22px;border:1px solid #e0e5e8;border-radius:12px;background:#fff;padding:18px 22px}
#clientWorkspace #cwDetailsEditor>summary{cursor:pointer;font-weight:700;text-transform:uppercase}
#clientWorkspace #cwDetailsEditor>.cw-section-head{justify-content:flex-end;margin:16px 0}

#clientWorkspace #cwResearch{margin-top:22px;border:1px solid #e0e5e8;border-radius:12px;background:#fff;padding:18px 22px}
#clientWorkspace #cwResearch>summary{cursor:pointer;font-weight:700;text-transform:uppercase}
#clientWorkspace #cwResearchSlot{margin-top:16px}
#clientWorkspace #cwDesignerSlot{margin-top:22px}
#clientWorkspace #customerProductDesigns{display:none!important}
#hotelModal #clientEmailRecoveryModal.inline-contact-editor{position:static;inset:auto;background:transparent;padding:0;margin-top:18px;z-index:auto;display:none}
#hotelModal #clientEmailRecoveryModal.inline-contact-editor.open{display:block}
#hotelModal #clientEmailRecoveryModal.inline-contact-editor .client-contact-popup{width:100%;max-height:none;padding:18px 0 0;border:0;border-top:1px solid #e0e5e8;box-shadow:none;overflow:visible}
#hotelModal #clientEmailRecoveryModal.inline-contact-editor #clientEmailRecoveryCopy{display:none}

#clientWorkspace .cw-contact-actions button,#clientWorkspace .cw-contact-line [data-cw-action="copy-email"]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex-shrink:0;text-decoration:none;border-radius:6px}
#clientWorkspace .cw-contact-line>span{min-width:0;overflow-wrap:anywhere}
#clientWorkspace .cw-contact-actions svg,#clientWorkspace .cw-contact-line svg{display:block;flex-shrink:0;pointer-events:none}
#clientWorkspace .cw-contact-line [data-cw-action="copy-email"]:hover{background:#eef2f4}

html body #hotelModal.client-workspace-ready #clientWorkspace #cwOwnerSlot #customerRecordOwner{display:block!important;position:static!important;width:100%!important;max-width:none!important;height:46px!important;min-height:46px!important;padding:8px 32px 8px 14px!important;border:1px solid #d6dfe4!important;border-radius:6px!important;background-color:#fff!important;color:#344650!important;appearance:auto!important}
html body #hotelModal.client-workspace-ready #hotelForm .relationship-section{display:none!important}

@layer client-record-typography {
 html body #hotelModal.client-workspace-ready #clientWorkspace .crm-ai-finding,
 html body #hotelModal.client-workspace-ready #clientWorkspace .crm-ai-finding :is(ul,li,li span,li a) {
  text-transform:none!important;font-weight:400!important;letter-spacing:normal!important;
 }
 html body #hotelModal.client-workspace-ready #clientWorkspace .crm-ai-finding>span>strong {text-transform:uppercase!important;font-weight:700!important;}
 .crm-ai-finding li+li {margin-top:.5em;}
}

/* Compact record facts occupy existing identity space; editing floats above the page. */
html body #hotelModal.client-workspace-ready .customer-record-identity {position:relative!important}
#cwHeaderMeta {display:flex;align-items:center;gap:8px;margin-top:8px;color:#d7e0e7;line-height:1.4}
#cwHeaderMetaText {font-style:italic;text-transform:none;letter-spacing:normal;font-weight:400}
.cw-edit-icon {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;padding:5px;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:5px}
.cw-edit-icon:hover {background:#78838c33}
.cw-edit-icon:focus-visible {outline:2px solid currentColor;outline-offset:2px}
html body #hotelModal.client-workspace-ready #cwHeaderMetaEditor {position:absolute;z-index:30;top:100%;left:0;display:grid;grid-template-columns:1fr;gap:12px;width:min(360px,100%);box-sizing:border-box;margin:8px 0 0;padding:18px;border:1px solid #cbd1d7;border-radius:8px;background:#fff;color:#26343d;box-shadow:0 8px 28px #0003}
html body #hotelModal.client-workspace-ready #cwHeaderMetaEditor[hidden] {display:none!important}
#cwHeaderMetaEditor label {display:grid;gap:6px}
#cwHeaderMetaEditor :is(input,select) {width:100%;min-width:0;color:#26343d;background:#fff}

/* Inline summary and clear separation from the diary. */
#clientWorkspace .cw-summary {position:relative;margin-bottom:24px!important;padding-right:64px!important}
#clientWorkspace .cw-summary-edit {position:absolute;top:16px;right:16px}
#clientWorkspace #cwSummaryBody>p {display:block;margin:0;max-width:none}
@layer client-record-typography {
 html body #hotelModal.client-workspace-ready #cwSummaryTitle {display:inline!important;text-transform:none!important;letter-spacing:normal!important}
 html body #hotelModal.client-workspace-ready #cwHeaderMetaEdit,
 html body #hotelModal.client-workspace-ready #cwHeaderMetaEdit * {color:#fff!important}
 html body #hotelModal.client-workspace-ready #cwHeaderMetaEdit svg,
 html body #hotelModal.client-workspace-ready #cwHeaderMetaEdit path {stroke:#fff!important}
}

@layer client-record-typography {
 html body #hotelModal.client-workspace-ready #cwHeaderMetaText {font-size:12pt!important}
 html body #hotelModal.client-workspace-ready #cwSummaryTitle,
 html body #hotelModal.client-workspace-ready #cwDiaryCollapse>summary {font-weight:700!important}
}
#cwDiaryCollapse {grid-column:1;grid-row:1;border:1px solid #e0e5e8;border-radius:12px;background:#fff;padding:18px}
#cwDiaryCollapse>summary {cursor:pointer;font-family:'Red Hat Display',sans-serif;text-transform:uppercase;padding:4px 0}
#cwDiaryCollapse[open]>summary {margin-bottom:14px}
#clientWorkspace #cwDiaryCollapse #crmDiary {border:0!important;padding:0!important;background:transparent!important}
#clientWorkspace #cwDiaryCollapse .crm-diary-head {display:none!important}
#clientWorkspace #hotelActivityTimeline>.empty, #clientWorkspace #hotelActivityTimeline>.crm-diary-empty {display:none!important}
#hotelModal #cwSearchDialog,#hotelModal #cwDetailsEditor {position:fixed!important;inset:0!important;margin:auto!important;width:min(760px,calc(100vw - 32px))!important;max-height:85dvh;overflow:auto;padding:24px!important;background:#fff!important;color:#26343d!important;border:1px solid #cbd1d7!important;border-radius:12px!important;z-index:10060}
#hotelModal #cwSearchDialog:not([open]),#hotelModal #cwDetailsEditor:not([open]) {display:none!important}
#cwSearchDialog::backdrop,#cwDetailsEditor::backdrop {background:#14263c80}
.cw-dialog-close {float:right;background:transparent;border:0;font-size:24px;cursor:pointer;color:#26343d}
#cwSearchDialog #cwDiaryTools {display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0}
@media(max-width:950px){#cwDiaryCollapse{grid-column:1;grid-row:auto}}

/* Let the header content set the photo height, with one shared bottom edge. */
html body #hotelModal.client-workspace-ready .modal-head.customer-record-header {
  row-gap:12px!important;grid-template-rows:auto auto auto auto!important;
}
html body #hotelModal.client-workspace-ready #rogerAutoResearchStatus {
  grid-area:roger;min-width:0;margin:0!important;
}

/* Keep research aligned with the diary column. */
#clientWorkspace #cwResearch{box-sizing:border-box;width:calc(100% - 322px);padding:18px}
#clientWorkspace #cwResearch #crmAiResearch{margin:0!important;padding:0!important;border:0!important;width:100%!important;max-width:none!important}
#clientWorkspace #crmAiResearch .crm-ai-head>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
#clientWorkspace #crmAiResearch .crm-ai-head :is(h3,.eyebrow){margin:0!important;white-space:nowrap}
#clientWorkspace #researchHotelButton{text-transform:none!important}
html body #hotelModal.client-workspace-ready #customerHeaderPhoto .customer-header-photo-change{display:flex!important;width:36px!important;height:36px!important;padding:7px!important;box-sizing:border-box}
html body #hotelModal.client-workspace-ready #customerHeaderPhoto .customer-header-photo-change::after{content:none!important}
html body #hotelModal.client-workspace-ready #customerHeaderPhoto .customer-header-photo-placeholder{font-size:0!important}
#customerLogoPreview{position:relative}
#customerLogoPreview>.client-logo-upload{position:absolute;right:8px;top:8px;display:flex!important;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:6px;z-index:2}
#clientWorkspace .tae-url-details[hidden]{display:none!important}
@layer client-record-typography {
 html body #hotelModal.client-workspace-ready #rogerAutoResearchStatus,
 html body #hotelModal.client-workspace-ready #rogerAutoResearchStatus *{font-size:11px!important;line-height:1.35!important}
 html body #hotelModal.client-workspace-ready #rogerAutoResearchStatus{padding:6px 10px!important}
}
@media(max-width:1150px){#clientWorkspace #cwResearch{width:calc(100% - 266px)}}
@media(max-width:950px){#clientWorkspace #cwResearch{width:100%}}
#clientWorkspace #crmAiResearch .crm-ai-head>div{flex-wrap:nowrap!important;min-width:0!important}
#clientWorkspace #crmAiResearch .crm-ai-head :is(h3,.eyebrow){width:auto!important;flex:0 0 auto!important;max-width:none!important}
@layer client-record-typography {
 html body #hotelModal.client-workspace-ready #crmAiResearch .crm-ai-head .eyebrow{font-size:11px!important}
 html body #hotelModal.client-workspace-ready #crmAiResearch .crm-ai-head h3{font-size:16px!important}
}
@media(max-width:480px){#clientWorkspace #crmAiResearch .crm-ai-head>div{flex-wrap:wrap!important}}


/* Dedicated same-tab client record page. */
html body.client-record-page-open{overflow:hidden!important}
html body.client-record-page-open>.app-shell{visibility:hidden!important}
html body.client-record-page-open #hotelModal.client-workspace-ready{
  display:block!important;
  position:fixed!important;
  inset:0!important;
  z-index:10000!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  background:#f6f7f8!important;
}
html body.client-record-page-open #hotelModal.client-workspace-ready>.hotel-modal-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-height:100dvh!important;
  max-height:none!important;
  height:auto!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body.client-record-page-open #hotelModal.client-workspace-ready .customer-record-header [data-close]{
  display:inline-flex!important;
  align-items:center!important;
  color:#d7e0e7!important;
}


/* Client-record typography: Red Hat Display for UI, Newsreader for headings. */
html body #hotelModal.client-workspace-ready,
html body #hotelModal.client-workspace-ready :is(button,input,select,textarea,label,p,span,small,strong,a,summary,li,div){
  font-family:'Red Hat Display',sans-serif!important;
}
html body #hotelModal.client-workspace-ready :is(h1,h2,h3,h4,h5,h6),
html body #hotelModal.client-workspace-ready :is(h1,h2,h3,h4,h5,h6) *{
  font-family:'Newsreader',serif!important;
}

/* Keep uploaded artwork intact and avoid magnifying small client logos. */
html body #hotelModal.client-workspace-ready #customerHeaderPhoto[data-image-source="upload"] img:not([hidden]) {
  object-fit:scale-down!important;object-position:center!important;padding:24px!important;box-sizing:border-box!important;
}
