/* v1.21 Home Command Center. Scoped to .svh-dashboard to avoid changing Growth and CRUD views. */
body.sv-mode .ucsh-content:has(.svh-dashboard){background:#f9fbfa;padding:22px 23px 60px}
.svh-dashboard{display:flex;flex-direction:column;gap:16px;color:#142d39;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px}
.svh-dashboard button{font-family:inherit;cursor:pointer}.svh-dashboard button:focus-visible{outline:3px solid #31b89c!important;outline-offset:3px}
.svh-dashboard .svh-card,.svh-dashboard .svh-quick{background:#fff;border:1px solid #e4edea;border-radius:14px;box-shadow:0 6px 25px rgba(16,65,61,.035)}
body.sv-mode .svh-dashboard .svh-hero{padding:0;min-height:0;display:block;border:1px solid #e0ede9;background:#fff;color:#142d39;border-radius:15px;overflow:hidden;box-shadow:0 6px 25px rgba(16,65,61,.04)}
.svh-hero-banner{position:relative;min-height:135px;background:linear-gradient(107deg,#f9fefc 5%,#e6f8f2 62%,#d8f3eb 100%);overflow:hidden;padding:23px 32px 18px}
.svh-hero-copy{position:relative;z-index:1;max-width:67%}.svh-kicker{font-size:11px;letter-spacing:.7px;text-transform:uppercase;font-weight:800;color:#587879;margin-bottom:6px}
body.sv-mode .svh-dashboard .svh-hero h1{font-size:clamp(24px,2.45vw,35px);line-height:1.16;color:#102434;margin:0 0 6px;letter-spacing:-1.2px;font-weight:800}
body.sv-mode .svh-dashboard .svh-hero p{font-size:13px;color:#6b8191;line-height:1.5;margin:0}
.svh-date{position:absolute;right:19px;top:18px;z-index:2;display:flex;align-items:center;gap:7px;color:#3f676d;font-size:11px;font-weight:700}
.svh-hero-art{position:absolute;right:0;bottom:-3px;z-index:0;width:47%;height:124px;object-fit:contain;object-position:right bottom;pointer-events:none}
.svh-hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;min-height:78px;padding:0 12px}
body.sv-mode .svh-dashboard .svh-hero-stat{border:0;border-right:1px solid #e9efed;border-radius:0;background:#fff;box-shadow:none;transform:none;min-height:0;padding:15px 18px;display:flex;flex-direction:row;gap:12px;align-items:center;text-align:left;color:#173f42}
.svh-hero-stat:last-child{border-right:0!important}.svh-hero-stat:hover{background:#f7fcfa!important}
.svh-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:50%;background:#e5f7ef;color:#079879}.svh-icon.svh-red{background:#fff0f0;color:#e24a55}.svh-icon.svh-amber{background:#fff5e3;color:#ed9d18}.svh-icon.svh-blue{background:#e8f3ff;color:#3387df}.svh-icon.svh-green{background:#e1f7f0;color:#069778}
.svh-stat-text{display:grid;grid-template-columns:min-content 1fr;align-items:center;gap:0 11px;min-width:0}.svh-stat-text strong{grid-row:span 2;color:#10273a;font-size:24px;letter-spacing:-1px;font-weight:820;white-space:nowrap}.svh-stat-text>span{align-self:end;font-size:11px;font-weight:730;line-height:1.4}.svh-stat-text small{align-self:start;font-size:10px;font-weight:450;color:#8798a1;line-height:1.45}
.svh-hero-foot{border-top:1px solid #eaf1ed;background:#fbfefd;display:flex;justify-content:flex-end;align-items:center;min-height:31px;padding:5px 22px;color:#91a7a0;font-size:10px}
.svh-gabriel-link{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#22816c;font-size:10.5px;font-weight:700}.svh-gabriel-link:hover{color:#0b5f50}
.svh-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:15px;align-items:stretch}
.svh-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px 13px;border-bottom:1px solid #eef2f1;min-height:54px}
.svh-panel-head h2,.svh-quick h2{display:flex;align-items:center;gap:10px;margin:0;color:#10293b;font-size:16px;font-weight:790;letter-spacing:-.4px}.svh-panel-head h2 svg,.svh-quick h2 svg{color:#0d7e70;flex:none}
.svh-link{display:inline-flex;align-items:center;gap:6px;padding:4px 0;border:0;background:transparent;color:#10836e;font-size:10.5px;font-weight:730;white-space:nowrap}.svh-link:hover{text-decoration:underline}
.svh-visit-list{padding:0 18px 9px}.svh-visit-row.sv-visit-row{display:grid;grid-template-columns:79px 9px 37px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 3px!important;min-height:67px;border:0;border-bottom:1px solid #edf1f1;background:transparent;box-shadow:none;width:100%;color:inherit;text-align:left}
.svh-visit-row:last-child{border-bottom:0}.svh-visit-row:hover{background:#f6fbf9!important;border-radius:7px}
.svh-slot{display:flex;flex-direction:column;gap:3px;color:#102e3b}.svh-slot strong{font-size:12px;font-weight:790;white-space:nowrap}.svh-slot small{font-size:10px;color:#8297a5}
.svh-visit-line{position:relative;border-radius:100%;width:8px;height:8px;background:#19b89b}.svh-visit-line:after{content:'';height:44px;width:1px;background:#bce7dd;position:absolute;top:8px;left:3.5px}
.svh-person{display:grid;place-items:center;flex:none;background:#e5f5f0;color:#187667;border-radius:50%;width:34px;height:34px;overflow:hidden}.svh-initials{display:grid;place-items:center;font-size:10px;font-weight:820;letter-spacing:.4px;background:#caebe1;color:#176b5f;width:100%;height:100%;border-radius:50%;flex-shrink:0}
.svh-job{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.3}.svh-job strong{font-size:12px;color:#173143;font-weight:780;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.svh-job span{font-size:11px;color:#6a8492;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.svh-job small{font-size:10px;color:#8298a3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svh-status{display:inline-flex;align-items:center;justify-content:center;text-transform:capitalize;white-space:nowrap;min-width:79px;padding:7px 9px;border-radius:8px;color:#136c62;background:#e6f8ef;font-size:10px;font-weight:750}
.svh-status[data-status="scheduled"]{background:#e8f3ff;color:#2773b2}.svh-status[data-status="cancelled"],.svh-status[data-status="no_show"]{background:#fff0ec;color:#b94e40}
.svh-status[data-status="completed"]{background:#eaf9ed;color:#2c8454}
.svh-show-more{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border:0;border-top:1px solid #eaf0ee;background:#fff;color:#15957c;width:100%;font-size:11px;font-weight:750}
.svh-priority-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 16px 17px}
.svh-priority-tile{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-height:137px;padding:14px;border:1px solid #f4e8e6;border-radius:12px;background:#fff8f8}.svh-priority-tile.svh-amber{background:#fffdf7;border-color:#f5ebd8}.svh-priority-tile.svh-blue{background:#f4f9ff;border-color:#e1eefb}.svh-priority-tile.svh-green{background:#f3fcf8;border-color:#def1e8}
.svh-priority-main{display:flex;gap:12px;align-items:center;min-width:0}.svh-priority-main .svh-icon{width:43px;height:43px;background:#ffe7e8;color:#d9424d}.svh-amber .svh-icon{color:#ed9713;background:#fff0d0}.svh-blue .svh-icon{color:#348ce3;background:#e1f0ff}.svh-green .svh-icon{color:#00a17e;background:#dbf8ed}
.svh-priority-main>div{display:flex;flex-direction:column;gap:3px;min-width:0}.svh-priority-main strong{font-size:25px;font-weight:810;color:#0e2636;line-height:1}.svh-priority-main span:not(.svh-icon){color:#203e4e;font-weight:700;font-size:11px;line-height:1.3}.svh-priority-main small{color:#8b9da6;font-size:10px;line-height:1.4}
.svh-priority-tile>button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:34px;background:transparent;border:1px solid #efc7c6;border-radius:8px;color:#ad3340;font-size:11px;font-weight:770}.svh-amber>button{border-color:#f0d39b;color:#7f5a21}.svh-blue>button{border-color:#b9d9f5;color:#2978ad}.svh-green>button{border-color:#b7e6d4;color:#16735b}
.svh-priority-tile>button:hover{background:#ffffffb9}
.svh-task-hint{display:flex;align-items:center;gap:8px;border-top:1px solid #e9f0ee;padding:10px 16px;color:#5d7381;font-size:11px}.svh-task-hint button{display:flex;align-items:center;gap:5px;margin-left:auto;border:0;background:none;color:#187a69;font-weight:750;font-size:11px}
.svh-quick{padding:11px 17px;display:flex;align-items:center;gap:16px}.svh-quick h2{flex:none;font-size:15px}.svh-quick-buttons{flex:1;display:flex;align-items:stretch;gap:9px;min-width:0}.svh-quick-button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;min-width:0;border:1px solid #e1ebe9;background:#fff;border-radius:9px;padding:8px 9px;font-size:11px;font-weight:770;color:#224255;white-space:nowrap}.svh-quick-button svg{color:#0d907a}.svh-quick-button:hover{background:#f0faf7;border-color:#b4d9cb}.svh-quick-button.is-primary{background:linear-gradient(110deg,#09866f,#13b998);color:#fff;border-color:#069777}.svh-quick-button.is-primary svg{color:#fff}
.svh-bottom-grid{display:grid;grid-template-columns:1.17fr 1.05fr .9fr;gap:13px;align-items:start}.svh-bottom-grid>.svh-card{min-width:0}.svh-bottom-grid:has(>.svh-card:only-child){grid-template-columns:1fr}
.svh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:12px}.svh-kpi{border:1px solid #e8efee;background:#fff;border-radius:10px;text-align:left;display:flex;flex-direction:column;gap:6px;padding:13px 9px;min-width:0}.svh-kpi:hover{border-color:#acd9ca}.svh-kpi strong{font-size:19px;letter-spacing:-.8px;color:#122d40;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.svh-kpi>span{color:#536e7b;font-size:10px}.svh-kpi small{color:#168a70;font-size:9px}.svh-kpi-bar{display:block;margin-top:10px!important;height:3px;width:100%;background:linear-gradient(90deg,#b6e8dc 15%,#13b195 55%,#65d2b9 100%);border-radius:5px}
.svh-team-list,.svh-activity-list{display:flex;flex-direction:column;padding:7px 13px 11px}.svh-team-row{display:flex;align-items:center;gap:8px;border:0;border-bottom:1px solid #eef1ef;background:#fff;text-align:left;min-height:43px;padding:7px 2px;width:100%}.svh-team-row:hover{background:#f8fcf9}.svh-team-row:last-child{border-bottom:0}.svh-team-row .svh-initials{width:28px;height:28px;font-size:9px}.svh-team-row strong{color:#21404e;font-size:10.5px;width:96px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.svh-team-detail{flex:1;min-width:0;font-size:9.5px;color:#6c8795;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.svh-team-time{color:#93a7ae;font-size:9px;white-space:nowrap}
.svh-activity-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid #eff3f0;padding:7px 0;min-height:43px}.svh-activity-row:last-child{border-bottom:0}.svh-activity-icon{display:grid;place-items:center;color:#12a181;background:#e8f9f1;width:29px;height:29px;border-radius:50%;flex:none}.svh-activity-description{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.svh-activity-description strong{color:#23414b;font-size:10.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.svh-activity-description small{color:#879daa;font-size:9.5px;text-transform:capitalize}.svh-activity-row time{font-size:9px;color:#94a6ad;flex:none}
.svh-empty{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-height:180px;text-align:center;color:#829d9b;padding:24px}.svh-empty strong{font-size:13px;color:#2e5652}.svh-empty p{font-size:11px;margin:0}.svh-action-btn{padding:8px 12px;border-radius:8px;border:1px solid #b9dcd1;background:#edf9f3;color:#136e59;font-size:11px;font-weight:750}.svh-priority-empty{min-height:220px}.svh-start-hint{font-size:12px;color:#62867c;text-align:center;padding:13px}
/* Shared shell now controls the header/sidebar on every screen. */
@media(max-width:1440px){.svh-bottom-grid{grid-template-columns:1.1fr 1fr}.svh-activity{grid-column:span 2}.svh-hero-stat.sv-metric-card{padding-left:11px!important;padding-right:11px!important}.svh-kpis{gap:5px}}
@media(max-width:1100px){.svh-main-grid{grid-template-columns:1fr}.svh-bottom-grid{grid-template-columns:1fr 1fr}.svh-activity{grid-column:span 2}.svh-quick{align-items:flex-start;flex-direction:column}.svh-quick-buttons{width:100%}.svh-hero-art{width:54%}.svh-stat-text{display:flex;flex-direction:column;align-items:start;gap:1px}.svh-stat-text strong{font-size:23px}}
@media(max-width:760px){body.sv-mode .ucsh-content:has(.svh-dashboard){padding:12px 12px 100px}.svh-dashboard{gap:12px}.svh-hero-banner{min-height:146px;padding:20px 17px}.svh-hero-copy{max-width:90%}.svh-hero-art{width:64%;opacity:.32}.svh-date{position:relative;top:auto;right:auto;margin-top:10px}.svh-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px}.svh-hero-stat.sv-metric-card{padding:10px!important;min-height:66px!important}.svh-hero-stat:nth-child(even){border-right:0!important}.svh-hero-stat:nth-child(-n+2){border-bottom:1px solid #eaf0ed!important}.svh-hero-stat .svh-icon{width:36px;height:36px}.svh-hero-stat .svh-icon svg{width:19px}.svh-stat-text>span{font-size:10px}.svh-stat-text small{font-size:9px}.svh-main-grid,.svh-bottom-grid{grid-template-columns:1fr}.svh-activity{grid-column:auto}.svh-quick-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.svh-quick-button{white-space:normal}.svh-quick-button:last-child:nth-child(odd){grid-column:span 2}.svh-panel-head{padding:15px}.svh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.svh-priority-grid{grid-template-columns:1fr}.svh-priority-tile{min-height:105px}.svh-visit-row.sv-visit-row{grid-template-columns:68px 7px 29px minmax(0,1fr);gap:6px}.svh-visit-row .svh-status{grid-column:4;justify-self:start;font-size:9px;min-width:0;padding:4px 7px}.svh-person,.svh-person .svh-initials{width:27px;height:27px}.svh-hero-banner{min-height:160px}.svh-hero h1{font-size:25px!important}.svh-hero-foot{justify-content:start;padding:9px}.svh-kicker{font-size:10px}.svh-hero-stat .svh-icon{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.svh-dashboard *{transition:none!important;animation:none!important}}

/* v1.23: the global header owns the brand on Home too. */

/* v1.24 — three clear reading zones; quick actions before the working schedule. */
body.sv-mode .svh-dashboard{gap:16px}
body.sv-mode .svh-dashboard .svh-stage{display:flex;flex-direction:column;gap:11px;min-width:0;border:1px solid #e2ece8;border-radius:18px;padding:15px;background:#fff;box-shadow:0 6px 25px #123d3210}
body.sv-mode .svh-dashboard .svh-stage-immediate{background:#eaf6f0;border-color:#cce5da}
body.sv-mode .svh-dashboard .svh-stage-today{background:#f9fcfa;border-color:#d6e8dd}
body.sv-mode .svh-dashboard .svh-stage-performance{background:#f5f8fa;border-color:#e0e9ec}
body.sv-mode .svh-dashboard .svh-stage-label{display:flex;align-items:center;gap:9px;padding:0 4px 2px;color:#375e55;font-size:11px;letter-spacing:.065em;text-transform:uppercase;font-weight:800}
body.sv-mode .svh-dashboard .svh-stage-number{display:grid;place-items:center;min-width:27px;height:24px;background:#d3eee1;border:1px solid #a9d7c1;border-radius:7px;color:#116953;font-size:10px;letter-spacing:0}
body.sv-mode .svh-dashboard .svh-stage-today .svh-stage-number{background:#e3f1ed}
body.sv-mode .svh-dashboard .svh-stage-performance .svh-stage-number{background:#e7edf3;border-color:#d0dce6;color:#3a627b}
body.sv-mode .svh-dashboard .svh-stage .svh-card{box-shadow:0 2px 12px #163d3210}
body.sv-mode .svh-dashboard .svh-stage .svh-quick{order:2;padding:14px 17px;background:#fff;border:2px solid #93ceb8;box-shadow:0 5px 17px #086e5120}
body.sv-mode .svh-dashboard .svh-quick h2{color:#0e6655;font-weight:840}
body.sv-mode .svh-dashboard .svh-quick-button{min-height:45px}
body.sv-mode .svh-dashboard .svh-hero{order:1}
body.sv-mode .svh-dashboard .svh-hero-stat:not(:hover){background:#fff}
body.sv-mode .svh-dashboard .svh-main-grid{gap:12px}
body.sv-mode .svh-dashboard .svh-schedule{border-top:3px solid #1b927d}
body.sv-mode .svh-dashboard .svh-priority{border-top:3px solid #d7a159}
body.sv-mode .svh-dashboard .svh-snapshot,body.sv-mode .svh-dashboard .svh-team,body.sv-mode .svh-dashboard .svh-activity{border-top:3px solid #9dafc2}
@media(max-width:760px){body.sv-mode .svh-dashboard .svh-stage{padding:10px;gap:9px;border-radius:14px}body.sv-mode .svh-dashboard .svh-stage .svh-quick{padding:13px;border-width:1.5px}body.sv-mode .svh-dashboard .svh-stage-label{font-size:10px}}
