
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172d42;background:#f5f8fc}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55}header{padding:20px 18px 16px;background:#fff;border-bottom:1px solid #e2e9f1}.shell{max-width:800px;margin:auto}.eyebrow{font-size:12px;letter-spacing:.1em;color:#637d95;text-transform:uppercase;font-weight:750}.head{display:flex;align-items:center;justify-content:space-between;gap:12px}.head h1{margin:4px 0;font-size:27px;letter-spacing:-.7px}.iconbtn{border:1px solid #dae5ef;background:white;color:#1b4767;border-radius:13px;padding:11px}.main{padding:19px 16px 100px}.card{background:white;border:1px solid #e1e9f0;border-radius:20px;padding:18px;margin-bottom:14px;box-shadow:0 3px 14px #0b32530a}.card h2{font-size:19px;margin:0 0 9px;letter-spacing:-.3px}.muted{color:#647c90;font-size:14px;line-height:1.5}.hero{background:#eaf4ff;border:1px solid #d0e5fa}.btn{border:0;background:#176da7;color:white;border-radius:13px;padding:15px 17px;font-weight:750;min-height:48px}.btn.secondary{background:#eaf2f8;color:#194c70}.btn.outline{background:white;color:#176da7;border:1px solid #bcd5e7}.btn.full{width:100%}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice{padding:19px 11px;background:white;border:1px solid #dbe6ef;border-radius:16px;color:#18364e;text-align:center;font-weight:700;min-height:105px}.choice .emoji{font-size:28px;display:block;margin-bottom:9px}.label{display:block;font-size:13px;font-weight:700;color:#37566d;margin:15px 0 6px}.field{width:100%;border:1px solid #cbdbe6;border-radius:12px;background:#fff;padding:14px;min-height:48px;color:#16334b}.field:focus{outline:2px solid #6eb3e1;border-color:#176da7}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stack{display:flex;flex-direction:column;gap:11px}.screen{display:none}.screen.active{display:block}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.status{font-size:12px;color:#57768a}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2aa873;margin-right:6px}.progress{display:flex;gap:5px;margin:12px 0 18px}.progress span{flex:1;height:5px;border-radius:6px;background:#dbe7f0}.progress span.on{background:#1674ad}.customer{padding:12px 0;border-top:1px solid #edf1f5}.customer:first-child{border-top:0}.customer button{background:none;border:0;color:#176da7;font-weight:750;padding:9px 0}.pill{background:#eff6fb;color:#27688e;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #dce6ed;padding:9px max(16px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;z-index:10}.bottom button{border:0;background:transparent;color:#668095;font-size:12px;font-weight:700;padding:8px 16px}.bottom button.selected{color:#176da7}.bottom b{display:block;font-size:22px;margin-bottom:3px}.note{background:#f0f6fa;padding:12px;border-radius:12px;font-size:13px;color:#45657d}.photoGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.photoGrid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}.engine{width:100%;border:0;height:calc(100dvh - 195px);min-height:650px;background:#fff;border-radius:15px}#directLoad{height:1200px;min-height:0;overflow:hidden;border-radius:0;background:transparent}#engineScreen.loadMode{padding:0 0 60px}#engineScreen.loadMode>.card{border:0;background:transparent;box-shadow:none;padding:0;margin:0}#engineScreen.loadMode>.card>.row{padding:0 8px 10px}#engineScreen.loadMode #engineHint{font-size:13px}#engineScreen.loadMode #directLoad{display:block}.engineScreen{padding:0 8px 60px}.engineScreen .card{padding:10px}.small{font-size:12px}.hide{display:none!important}@media(min-width:680px){.main{padding:25px}.card{padding:23px}}@media(max-width:370px){.twocol{grid-template-columns:1fr}}
 .crmSuggestions{display:none;border:1px solid #c5d6e0;background:white;border-radius:12px;margin-top:4px;overflow:hidden;box-shadow:0 10px 20px #0c294021}.crmSuggestions button{display:block;width:100%;padding:12px;text-align:left;border:0;border-bottom:1px solid #e5edf3;background:white;color:#183248;font-size:15px}.crmSuggestions button:last-child{border-bottom:0} .mobile-home-option{display:flex;align-items:center;gap:13px;margin:16px 0 20px;padding:16px;border:1px solid #cddce5;border-radius:14px;font-size:17px;font-weight:650;color:#19374a}.mobile-home-option input{width:24px;height:24px;accent-color:#1876a9;flex:none}#engineScreen.installMode{padding:0 8px 60px}#engineScreen.installMode>.card{border:0;background:transparent;box-shadow:none;padding:0;margin:0}#engineScreen.installMode>.card>.row{padding:0 8px 10px}#engineScreen.installMode #engine{min-height:1200px;overflow:hidden;border-radius:0;background:transparent}.customerTop{margin:4px 0 16px}.customerTop h2,.settingsHeading h2{font-size:26px;margin:4px 0;letter-spacing:-.6px}.syncStrip{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;margin:0 0 16px;border:1px solid #e0eaf0;border-radius:12px;background:#fff;color:#47677e;text-align:left;font-size:13px}.syncStrip .dot{flex:none}.syncChevron{margin-left:auto;color:#1773a8;font-weight:700}.settingsHeading{margin-bottom:17px}#settings #cloudPanel{box-shadow:none}#settings #cloudActions .btn{min-height:44px;padding:12px 14px;margin-top:8px!important}#settings #cloudActions{display:grid;gap:3px}#settings #cloudActions.hide{display:none!important}header .head{justify-content:flex-start}header .head>div:first-child{flex:1}header .iconbtn{font-size:14px;padding:10px 12px;white-space:nowrap}@media(max-width:420px){header .iconbtn{font-size:12px;padding:9px 10px}.head h1{font-size:25px}} 
/* v53: one visual workspace for embedded install assistant */
#engineScreen.installMode{padding:0 0 70px!important}
#engineScreen.installMode>.row{padding:10px 4px 14px!important;align-items:center}
#engineScreen.installMode>.card>.row{display:none!important}
#engineScreen.installMode>.card{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
#engineScreen.installMode #engine{display:block;width:100%;border:0;border-radius:0;box-shadow:none;background:transparent}
@media(max-width:480px){#engineScreen.installMode>.row h2{font-size:23px;line-height:1.2;max-width:65%}}

/* Sales Hub 3.0 unified hybrid navigation */
#hybridWorkspace{display:none;position:sticky;top:0;z-index:9;background:#f5f8fcf5;backdrop-filter:blur(12px);padding:9px 0 11px;margin:-8px 0 16px;border-bottom:1px solid #dbe6ee}
#hybridWorkspace.visible{display:block}
.hybrid-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.hybrid-customer{font-size:13px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}
.hybrid-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.hybrid-stages button{font-size:12px;min-width:0;padding:10px 3px;border-radius:11px;border:1px solid #d3e2ec;background:#fff;color:#375a70;font-weight:700}
.hybrid-stages button.active{background:#176da7;color:white;border-color:#176da7}
.hybrid-links{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin-top:8px;padding-bottom:2px}
.hybrid-links button{white-space:nowrap;border:1px solid #d5e4ed;background:#edf5fa;color:#245574;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700}
.hybrid-links button.active{background:#d0eaf8;border-color:#7bb7d9}
.hybrid-foot{display:flex;gap:8px;margin-top:8px}
.hybrid-foot button{flex:1;border:0;border-radius:10px;padding:10px 8px;background:#e5f0f7;color:#205477;font-weight:750}
.hybrid-foot button.primary{background:#176da7;color:white}
@media(max-width:390px){.hybrid-stages button{font-size:11px}.hybrid-foot button{font-size:12px}}

/* Mobile navigation containment */
html,body{overflow-x:hidden;min-height:100%}
.screen:not(.active){display:none!important}
#engineScreen:not(.active){display:none!important}
.main{padding-bottom:calc(115px + env(safe-area-inset-bottom, 0px));min-height:0}
#hybridWorkspace:not(.visible){display:none!important}

/* Strong section isolation: only the active screen participates in layout. */
main.main > section.screen:not(.active), main.main > section.screen[hidden], section.screen:not(.active), section.screen[hidden] { display:none!important; height:0!important; min-height:0!important; margin:0!important; padding:0!important; overflow:hidden!important; }
main.main > section.screen.active:not([hidden]) { display:block!important; height:auto!important; min-height:0; overflow:visible; }

/* 3.0 unified mobile workspace — shared page rhythm */
:root{--hub-bg:#f5f8fc;--hub-line:#dae5ed;--hub-accent:#176da7}
html{scroll-padding-top:145px}body{background:var(--hub-bg)}
.shell{width:100%;max-width:800px;overflow:clip}
.main{padding:14px 14px calc(112px + env(safe-area-inset-bottom,0px))!important}
main.main>section.screen{width:100%;max-width:100%;margin:0;}
main.main>section.screen.active{animation:none}
.screen .card{margin:0 0 12px;border-radius:18px;box-shadow:0 2px 8px #0b325308;padding:17px}
.screen .card .card{border-radius:13px;box-shadow:none;padding:13px;margin:12px 0}
.screen>.row{margin:0 0 12px;min-height:36px}
.screen>.row h2{margin:0;font-size:22px;letter-spacing:-.4px}
.screen>.btn.full{margin:12px 0 14px}
.screen .label{margin:12px 0 5px;line-height:1.3}
.screen .field{min-width:0;max-width:100%}
.screen .twocol>*{min-width:0}
.screen details>summary{line-height:1.35;padding:4px 0}
#hybridWorkspace{position:sticky;top:0;margin:0 0 14px;padding:8px 0 10px;z-index:9}
.hybrid-foot button{min-height:44px}
.bottom{box-shadow:0 -2px 12px #1437500c}
#engineScreen .engine{max-width:100%;}
/* Inspection uses the shared Next control; do not duplicate it in the body. */
#equipment>button.btn.full[onclick*="openEngine('load')"]{display:none!important}
@media(max-width:440px){.main{padding-left:12px;padding-right:12px}.screen .card{padding:15px}.screen .twocol{gap:10px}.hybrid-stages button{padding:10px 2px}}
#engineScreen .card{margin-top:8px}#engineScreen>.row{padding-bottom:0!important}#engineScreen #engineHint{font-size:13px}#engineScreen .engine{margin-top:0}[hidden]{display:none!important}
.contact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 4px}.contact-action{display:flex;align-items:center;justify-content:center;min-width:0;min-height:50px;padding:10px 8px;border:1px solid #cbdede;border-radius:12px;background:#eff8f7;color:#086568;text-decoration:none;font-weight:750;font-size:15px;line-height:1.2;white-space:nowrap;touch-action:manipulation}.contact-action.unavailable{opacity:.48;pointer-events:none;background:#f2f5f5;color:#647c80}.contact-action:focus-visible{outline:3px solid #087f82;outline-offset:2px}.overview-note-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 14px}.overview-note-actions .btn{min-height:48px;padding:12px 10px;font-size:14px}.record-tools{display:flex;justify-content:flex-end;gap:8px;padding:8px 2px 18px;border-top:1px solid var(--rt-border);margin-top:2px}.record-tools .btn{min-height:36px;padding:7px 12px;font-size:13px;border-radius:10px}.record-tools .btn.danger{background:#fff5f5!important;color:#a33046!important;border:1px solid #efd6da!important}
.text-modal[hidden]{display:none!important}.text-modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:18px}.text-modal-backdrop{position:absolute;inset:0;background:#10253699}.text-modal-card{position:relative;width:min(100%,520px);max-height:90dvh;overflow:auto;background:#fff;border-radius:20px;padding:18px;box-shadow:0 16px 50px #10253655}.reminder-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer}.reminder-summary::-webkit-details-marker{display:none}.reminder-summary h2{margin:0!important}.reminder-summary:after{content:"＋";color:#0b7778;font-size:19px;font-weight:800}.reminder-card[open] .reminder-summary:after{content:"−"}.reminder-item{padding:12px 0;border-top:1px solid #e5edf2}.reminder-item:first-child{border-top:0}.reminder-item.done{opacity:.62}.reminder-actions{display:flex;gap:8px;margin-top:8px}.reminder-actions .btn{min-height:36px;padding:7px 11px;font-size:12px}


.home-new-appointment{font-size:18px;margin:4px 0 14px;min-height:64px}.home-due-card{border:2px solid #ffd39b!important}.home-due-card>.row{align-items:flex-start}.home-due-item{padding:14px 0;border-top:1px solid #e5edf2}.home-due-item:first-child{border-top:0}.home-due-open{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit}.home-due-name{font-size:17px;font-weight:800}.home-due-date{color:#b65d00;font-weight:750;margin-top:3px}.home-due-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.home-due-actions .btn,.home-due-actions a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px;border:1px solid #cbdede;border-radius:11px;background:#eff8f7;color:#086568;text-decoration:none;font-size:13px;font-weight:750}.home-due-actions .done{background:#ff8a18;color:#17334b;border-color:#ff8a18}.home-due-actions .unavailable{opacity:.45;pointer-events:none}.home-recent-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:15px 0;border:0;border-top:1px solid #e5edf2;background:transparent;text-align:left;color:inherit}.home-recent-row:first-child{border-top:0}.home-recent-name{font-size:17px;font-weight:800}.home-recent-meta{margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-recent-arrow{font-size:22px;color:#087f82;font-weight:800}

body:has(#home.active) header{padding:12px 16px 10px}body:has(#home.active) header .head>div:first-child{display:flex;align-items:center;gap:12px}body:has(#home.active) header .rt-brand{gap:6px}body:has(#home.active) header .rt-house{font-size:21px}body:has(#home.active) header .rt-brandname{font-size:11px}body:has(#home.active) header .rt-brandname small{font-size:7px}body:has(#home.active) header h1{font-size:22px;margin:0;letter-spacing:-.4px}body:has(#home.active) header .iconbtn{min-height:40px;padding:8px 10px;font-size:12px}body:has(#home.active) header .status{margin-top:7px;font-size:11px}.home-dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 1px 12px}.home-dashboard-top h2{font-size:26px;margin:3px 0 0;letter-spacing:-.6px}.home-dashboard-top .eyebrow{color:#087f82}.home-dashboard-top .home-new-appointment{width:auto;min-height:48px;margin:0;padding:12px 18px;border-radius:14px;background:#ff8a18;color:#17334b;font-size:15px;white-space:nowrap}.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 12px;background:var(--rt-surface,#fff);border:1px solid var(--rt-border,#dae5ed);border-radius:16px;box-shadow:0 2px 8px #0b325308;overflow:hidden}.home-stats>div{padding:12px 8px;text-align:center;border-left:1px solid var(--rt-border,#dae5ed)}.home-stats>div:first-child{border-left:0}.home-stats strong{display:block;color:#17334b;font-size:23px;line-height:1}.home-stats span{display:block;color:#647c90;font-size:11px;font-weight:750;margin-top:5px;text-transform:uppercase;letter-spacing:.05em}.home-continue{border-left:4px solid #087f82!important}.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 3px 10px}.home-section-heading h2{font-size:21px;margin:3px 0 0}.home-view-all{padding:7px 0;border:0;background:transparent;color:#087f82;font-size:13px;font-weight:800}.home-mtd-section{margin-top:18px}.home-mtd-card{padding:0!important;overflow:hidden}.home-mtd-primary{padding:18px;background:linear-gradient(135deg,#087f82,#0d6f72);color:#fff}.home-mtd-primary .home-mtd-label{color:#d8f3f1}.home-mtd-primary strong{display:block;font-size:31px;line-height:1.1;letter-spacing:-.8px;margin-top:6px}.home-mtd-grid{display:grid;grid-template-columns:1fr 1fr}.home-mtd-stat{padding:17px 18px;border-left:1px solid var(--rt-border,#dae5ed)}.home-mtd-stat:first-child{border-left:0}.home-mtd-stat strong{display:block;font-size:23px;line-height:1.15;color:#17334b;margin-top:6px}.home-mtd-label{display:block;color:#647c90;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.home-mtd-footer{display:flex;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--rt-border,#dae5ed);color:#647c90;font-size:12px;font-weight:700}.home-mtd-action{width:100%;min-height:48px;border:0;border-top:1px solid var(--rt-border,#dae5ed);background:#e8f4f3;color:#087275;font-weight:800;font-size:14px}.home-mtd-action:active{background:#d8eceb}.customer-list-tools{display:grid;gap:10px}.customer-list-tools .label,.customer-filter-row .label{margin-top:0}.customer-list-tools .field,.customer-filter-row .field{min-height:48px}.customer-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:430px){.home-mtd-primary strong{font-size:28px}}

.customer-list-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.customer-status-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#e8f2f4;color:#176568;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.customer-status-badge.sold{background:#e2f4e9;color:#24764d}.customer-status-badge.not-sold{background:#f8e7ea;color:#9b3049}.customer-status-badge.follow-up{background:#fff0dc;color:#a85a00}.customer-status-badge.in-progress{background:#e7f1f5;color:#21677a}.text-template-audience{padding:10px 12px;border-radius:11px;background:#eef6f6;color:#23686a;font-weight:700}.text-template-audience.sold{background:#e4f4e9;color:#24764d}.text-template-audience.unsold{background:#fff3e2;color:#9a5b0b}

#customerOverview button[onclick="revisitAppointment()"]{display:none!important}
#customerOverview button.btn.full[onclick="go('finish')"]{display:none!important}

/* 4.5 integrated installation presentation; retain the original workspace for PDF logic. */
#engineScreen.installMode{padding:0 0 90px!important}
#engineScreen.installMode>.row{display:none!important}
#engineScreen.installMode>.card{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#engineScreen.installMode #engine{display:block;width:100%;border:0;border-radius:0!important;background:transparent!important;min-height:900px}
#engineScreen.installMode .hub-install-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:8px 0 16px}
#engineScreen.installMode .hub-install-tab{font-size:15px;min-height:48px;padding:10px 8px;background:#e6f1f1;color:#0b696b}
#engineScreen.installMode .hub-install-tab.active{background:#087f82;color:#fff}
@media(max-width:480px){#engineScreen.installMode{margin-left:-12px;margin-right:-12px}#engineScreen.installMode .hub-install-tabs{margin:8px 12px 12px}#engineScreen.installMode #engine{width:100%}}

/* Customer cards: balanced mobile-friendly two-row action layout */
.customer-card-refined{padding:20px 16px!important;overflow:hidden}
.customer-card-refined .customer-list-heading{margin-bottom:5px}
.customer-card-refined .customer-contact-row{margin-top:16px}
.customer-card-refined .customer-contact-row .contact-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:100%}
.customer-card-refined .customer-contact-row .contact-actions>*{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.customer-card-refined .customer-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #e2ebed}
.customer-card-refined .customer-action{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:58px;padding:11px 8px;border:1px solid #d4e3e4;border-radius:15px;background:#f3f8f8;color:#173f4b;font:inherit;font-size:clamp(12px,3.5vw,16px);font-weight:750;line-height:1.2;text-align:center;white-space:normal;cursor:pointer}
.customer-card-refined .customer-action-campaign{background:#e4f3f0;border-color:#b7dcd5;color:#006e68}
.customer-card-refined .customer-action-icon{font-size:19px;flex-shrink:0;line-height:1}
.customer-card-refined .customer-action:focus-visible{outline:3px solid #087e7c;outline-offset:2px}
@media(max-width:380px){.customer-card-refined .customer-action{gap:5px;padding:10px 5px;font-size:12px}.customer-card-refined .customer-action-icon{font-size:16px}}
