/* Compact experience only. Tour Lab 1 and Tour Lab 2 keep their existing UI. */
.compact-back-to-tour{display:none}
body.compact-experience .topbar{background:#fff;border-bottom:1px solid #dfe6ed}
body.compact-experience .topbar .layout-switch{display:none!important}
body.workspace-on.compact-experience .topbar-inner{
 display:grid!important;grid-template-columns:minmax(160px,1fr) repeat(5,auto);
 height:auto!important;min-height:58px!important;gap:8px 12px!important;padding:8px 24px!important;
}
body.compact-experience .topbar .brand{grid-column:1/4;grid-row:1;justify-self:start;white-space:nowrap}
body.compact-experience .topbar .brand img{width:auto!important;max-height:30px!important}
body.compact-experience #compactHeaderStatus{display:block!important;grid-column:4/6;grid-row:1;margin:0!important;color:#61778a;font-size:12px;font-weight:650;white-space:nowrap}
body.compact-experience #compactHeaderToggle{display:inline-flex!important;grid-column:6;grid-row:1;align-items:center;justify-content:center;margin:0!important;min-height:38px!important;padding:8px 12px!important;border:1px solid #cfdae5;border-radius:8px;background:#f8fafc;color:#315270;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
body.compact-experience .topbar-inner>#syncSummary{grid-column:1;grid-row:2;max-width:none!important;width:auto!important;margin:0!important;min-width:0;line-height:1.4}
body.compact-experience .topbar-inner>#quickRefreshBtn{grid-column:2;grid-row:2}
body.compact-experience .topbar-inner>#openIssueReportBtn{grid-column:3;grid-row:2}
body.compact-experience .topbar-inner>#openAdminBtn{grid-column:4;grid-row:2}
body.compact-experience .topbar-inner>[data-app-setup]{grid-column:5;grid-row:2}
body.compact-experience .topbar-inner>.hub-link{grid-column:6;grid-row:2}
body.compact-experience.compact-header-collapsed .topbar-inner>*:not(.brand):not(#compactHeaderToggle):not(#compactHeaderStatus):not(.team-profile):not(.tl-header-actions):not(.tl-version){display:none!important}
body.compact-experience.compact-header-collapsed .topbar :is(.main-nav,.workspace-main-nav,.workflow-context,.mobile-nav){display:none!important}
body.compact-experience .workspace-main-nav button{min-height:44px;padding-top:10px;padding-bottom:10px;font-size:15px}
body.workspace-on.compact-experience .shell{padding-top:18px}

/* Keep the tour controls aligned with the accordion, with room for every action. */
body.workspace-on.compact-tour-active .tour-page-heading{max-width:1020px;margin:0 auto 10px!important}
body.compact-tour-active #page-tour.compact-tour-mode #tour-details{max-width:none!important;margin:0!important}
body.compact-tour-active #page-tour.compact-tour-mode #tourTypeChips .home-type-name{font-size:13px!important;white-space:nowrap}
body.compact-tour-active #page-tour.compact-tour-mode .ct-step-copy>small{max-width:100%;text-overflow:ellipsis}
body.compact-tour-active #page-tour .schedule-disclosure-action{flex-shrink:0;white-space:nowrap}
body.compact-tour-active .print-units-popover{z-index:30}
@media(min-width:960px){
 body.workspace-on.compact-tour-active #page-tour.compact-tour-mode .tour-setup-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:22px!important;padding:14px!important;align-items:start}
 body.workspace-on.compact-tour-active #page-tour.compact-tour-mode .tour-setup-section+.tour-setup-section{border-top:0!important;border-left:1px solid #e5ebf0!important;padding:0 0 0 22px!important}
 body.workspace-on.compact-tour-active #page-tour.compact-tour-mode .tour-setup-section input:not([type=checkbox]),
 body.workspace-on.compact-tour-active #page-tour.compact-tour-mode .tour-setup-section select{height:38px!important;min-height:38px!important}
}

/* Follow-up starts with the email, without another tour landing header. */
body.compact-experience[data-workspace-step=followup] #workspaceTourHeader{display:none!important}
body.compact-experience .compact-back-to-tour{display:inline-flex;align-items:center;min-height:36px;margin:0 0 8px;padding:4px 0;font-size:12px;color:#315b73}
body.compact-experience #page-followup .followup-page-heading{align-items:center;margin-bottom:16px;gap:12px}
body.compact-experience #page-followup .followup-page-heading h1{font-size:26px}
body.compact-experience #page-followup .followup-page-heading :is(.eyebrow,.page-lede){display:none}
body.compact-experience #page-followup .mailbox-provider{display:none}
body.compact-experience #page-followup .mailbox-badge{min-width:0;padding:8px 12px;text-align:left}
body.compact-experience #page-followup .panel-head{padding:14px 16px}
body.compact-experience #page-followup .panel-head .panel-kicker{display:none}
body.compact-experience #page-followup .panel-head h2{font-size:17px}
body.compact-experience #page-followup .followup-internal-notes{background:#fbfaf6;border-color:#e6dfcd}
body.compact-experience #page-followup .note-safety-copy{font-size:11px;line-height:1.5}
body.compact-experience #page-followup .email-view-switch{margin:0 0 14px}
@media(max-width:1180px){
 body.workspace-on.compact-experience #page-followup .followup-layout{display:block!important}
 body.workspace-on.compact-experience #page-followup .email-view-switch{display:grid!important;grid-template-columns:1fr 1fr;background:#e9eef3;padding:4px;border-radius:10px;gap:4px}
 body.compact-experience #page-followup .email-view-switch button{min-height:42px;border:0;border-radius:7px;background:transparent;color:#536b7e;font:inherit;font-weight:700;font-size:13px}
 body.compact-experience #page-followup .email-view-switch button.active{background:#fff;color:#244c68;box-shadow:0 1px 4px #23374b14}
 body.workspace-on.compact-experience[data-email-view=setup] #emailSetupPane{display:block!important}
 body.workspace-on.compact-experience[data-email-view=setup] #emailPreviewPane{display:none!important}
 body.workspace-on.compact-experience[data-email-view=preview] #emailSetupPane{display:none!important}
 body.workspace-on.compact-experience[data-email-view=preview] #emailPreviewPane{display:block!important}
 body.workspace-on.compact-experience #page-followup .email-next-button{display:flex!important;width:100%;justify-content:center}
}

/* Small inventory shortcuts leave the homes themselves in view. */
body.compact-experience .home-type-nav-panel .panel-head{padding:10px 14px}
body.compact-experience .home-type-nav-panel .panel-head :is(h2,.panel-sub){display:none}
body.compact-experience .home-type-nav-panel .panel-kicker{margin:0}
body.compact-experience .home-type-nav-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;padding:10px!important}
body.compact-experience .home-type-nav-card{min-height:64px!important;padding:9px!important;display:flex;flex-direction:column;justify-content:center;gap:3px}
body.compact-experience .home-type-nav-card>.prospect-audience-type{font-size:12px;line-height:1.2}
body.compact-experience .home-type-nav-card>strong{font-size:22px;line-height:1.1}
body.compact-experience .home-type-nav-card>small,
body.compact-experience .home-type-nav-card>b{display:none}
body.compact-experience .workspace-inventory-nav{margin-bottom:16px}
body.compact-experience .prospect-overview-card{padding:12px!important;min-height:80px!important;gap:3px}
body.compact-experience .prospect-overview-card>span{font-size:11px!important;line-height:1.3}
body.compact-experience .prospect-overview-card>strong{font-size:23px!important;line-height:1.15}
body.compact-experience .prospect-overview-card>small{font-size:11px;line-height:1.4}
body.compact-experience .specials-page .panel{padding:16px}
body.compact-experience .specials-table th,body.compact-experience .specials-table td{padding:8px 12px}
body.compact-experience .specials-table-tools{display:grid;grid-template-columns:1fr minmax(180px,260px) auto;align-items:end;gap:12px}
body.compact-experience .specials-table-tools input{width:100%}
body.compact-experience .specials-savebar{bottom:max(10px,env(safe-area-inset-bottom));box-shadow:0 3px 14px #162c4212}

@media(max-width:760px){
 body.workspace-on.compact-experience .topbar-inner{grid-template-columns:minmax(0,1fr) auto auto!important;padding:8px 14px!important}
 body.compact-experience .topbar .brand{grid-column:1;grid-row:1;gap:7px}
 body.compact-experience .topbar .brand img{max-height:26px!important}
 body.compact-experience #compactHeaderStatus{grid-column:2;font-size:11px}
 body.compact-experience #compactHeaderToggle{grid-column:3;font-size:11px}
 body.compact-experience .topbar-inner>#syncSummary{grid-column:1/3;grid-row:2;justify-self:stretch}
 body.compact-experience .topbar-inner>#quickRefreshBtn{grid-column:3;grid-row:2}
 body.compact-experience .topbar-inner>#openIssueReportBtn{grid-column:1/3;grid-row:3;justify-self:start}
 body.compact-experience .topbar-inner>#openAdminBtn{grid-column:3;grid-row:3}
 body.compact-experience .topbar .workspace-main-nav button{font-size:13px;padding:10px 8px;min-height:44px}
 body.workspace-on.compact-tour-active .tour-page-heading{flex-direction:column!important;align-items:stretch!important;gap:8px!important}
 body.workspace-on.compact-tour-active .simple-tour-heading-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important;width:100%!important}
 body.workspace-on.compact-tour-active #compactTourModeToggle{grid-column:1/-1;display:flex;justify-content:center}
 body.workspace-on.compact-tour-active #compactTourModeToggle button{flex:1;min-height:36px}
 body.workspace-on.compact-tour-active .simple-tour-heading-actions .print-units-menu{grid-column:1;width:100%!important}
 body.workspace-on.compact-tour-active .simple-tour-heading-actions .print-units-menu summary{width:100%!important;min-height:38px!important;white-space:nowrap}
 body.workspace-on.compact-tour-active .simple-tour-heading-actions .new-tour-button{grid-column:2;width:100%!important;min-height:38px!important}
 body.compact-experience .specials-table-tools{grid-template-columns:1fr auto}
 body.compact-experience .specials-table-tools>label{grid-column:1/-1;grid-row:2}
 body.compact-experience .specials-table-tools>strong{align-self:center}
 body.compact-experience #page-followup .followup-page-heading{flex-direction:row;align-items:center;justify-content:space-between}
 body.compact-experience #page-followup .mailbox-badge{font-size:11px}
}
@media(max-width:600px){
 body.compact-tour-active #page-tour.compact-tour-mode #ctIntakeStage.ct-current>.ct-step-toggle{padding-right:14px!important}
 body.compact-tour-active #page-tour .ct-intake-quick-next{position:static;padding:8px 0 0;display:flex;justify-content:stretch}
 body.compact-tour-active #page-tour .ct-intake-quick-next .button{width:100%;min-height:40px}
 body.compact-tour-active #page-tour .scheduled-tour-panel>.schedule-disclosure>span:first-child{flex-direction:column;align-items:flex-start;gap:3px}
 body.compact-tour-active #page-tour .schedule-disclosure-action{font-size:11px}
 body.compact-experience .home-type-nav-grid{gap:5px!important;padding:8px!important}
 body.compact-experience .home-type-nav-card{padding:7px 4px!important;text-align:center;align-items:center}
 body.compact-experience .home-type-nav-card>.prospect-audience-type{font-size:11px}
 body.compact-experience .specials-savebar{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px}
 body.compact-experience .specials-savebar .specials-step{display:none}
 body.compact-experience .specials-savebar label{grid-column:1/-1;justify-content:space-between}
 body.compact-experience .specials-savebar input{width:190px}
 body.compact-experience .specials-savebar .button.primary{margin:0;white-space:nowrap}
 body.compact-experience #page-followup .followup-page-heading h1{font-size:23px}
}
@media(max-width:480px){
 body.compact-experience .topbar .brand{grid-column:1/3}
 body.compact-experience #compactHeaderStatus{display:none!important}
 body.compact-experience #page-followup .followup-page-heading{align-items:flex-start;flex-direction:column;gap:8px}
}
@media print{
 body.compact-experience .topbar,body.compact-experience .compact-back-to-tour{display:none!important}
 body.compact-experience #page-followup .email-view-switch{display:none!important}
}
/* Empty lists need less space; ResizeObserver keeps the page padding in sync. */
body.compact-tour-active .compact-tour-bar:not(:has(.ct-bar-chip)) .ct-bar-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:20px!important}
body.compact-tour-active .compact-tour-bar:not(:has(.ct-bar-chip)) .ct-bar-group{grid-template-columns:minmax(0,1fr)!important;row-gap:1px!important;min-height:0!important}
body.compact-tour-active .compact-tour-bar:not(:has(.ct-bar-chip)) .ct-bar-chips{padding:0!important}

/* Internal notes remain visible in the original modes and optional in Compact. */
#followupNotesDisclosure>summary{list-style:none;pointer-events:none}
#followupNotesDisclosure>summary::-webkit-details-marker{display:none}
body.compact-experience #followupNotesDisclosure>summary{pointer-events:auto;cursor:pointer;min-height:32px;margin:0}
body.compact-experience #followupNotesDisclosure>summary::after{content:'⌄';margin-left:auto;font-size:16px;color:#7a715e}
body.compact-experience #followupNotesDisclosure[open]>summary{margin-bottom:10px}
body.compact-experience #followupNotesDisclosure[open]>summary::after{transform:rotate(180deg)}
body.compact-experience #followupNotesDisclosure:not([open]){padding-top:6px;padding-bottom:6px}
body.workspace-on.compact-tour-active #page-tour.compact-tour-mode .tour-setup-section input:not([type=checkbox]),
body.workspace-on.compact-tour-active #page-tour.compact-tour-mode .tour-setup-section select{font-size:16px!important}

.team-profile{display:flex;flex-direction:column;gap:2px;min-width:0}.team-profile>span{font-size:9px;color:#64757c}.team-profile select{min-height:44px;max-width:175px;border:1px solid #d9e2e6;border-radius:8px;background:#fff;padding:6px;font-size:12px;color:#294750}body.compact-experience .topbar .brand{grid-column:1/3!important}body.compact-experience .topbar .team-profile{display:flex!important;grid-column:3/5;grid-row:1;justify-self:end}body.compact-experience #compactHeaderStatus{grid-column:5!important;font-size:10px}body.compact-experience #compactHeaderToggle{grid-column:6!important}@media(max-width:600px){body.compact-experience #compactHeaderStatus{display:none!important}body.compact-experience .topbar .team-profile{grid-column:3/6}.team-profile select{max-width:150px}.team-profile>span{display:none}}
