/* Home is scoped to the existing CRM shell and uses the shared date picker. */
.nav .homeOnly{display:none!important}
#homeScreen{--home-ink:#193b3a;--home-muted:#6b8788;--home-line:#d4e5df;--home-teal:#168577;color:var(--home-ink);padding:2px 0 30px;min-width:0}
#homeScreen [hidden],.homeDetails [hidden]{display:none!important}
#homeScreen button,.homeDetails button{font:inherit}
#homeScreen button:focus-visible,.homeDetails button:focus-visible,.brand[role=link]:focus-visible{outline:3px solid #378e83;outline-offset:3px}
.brand[role=link]{cursor:pointer;border-radius:8px}
.nav .homeOnly:before{content:"";display:inline-block;width:20px;height:20px;flex:none;background:currentColor;mask:center/20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1Z'/%3E%3C/svg%3E")}
.homeToolbar,.homePeriod,.homePresetGroup,.homeRange,.homeCaption,.homePanelHead,.homeMetricHead,.homeMetricFoot,.homePeopleTabs,.homeDetailHead,.homeDetailFoot{display:flex;align-items:center;gap:8px}
.homeToolbar{justify-content:space-between;flex-wrap:wrap;margin-bottom:14px;gap:12px}
.homePeriod{flex-wrap:wrap;gap:12px}.homePresetGroup{background:#e7f0ec;padding:4px;border-radius:10px;gap:2px}
#homeScreen .homePreset{padding:8px 12px;border:0;background:transparent;color:#547173;border-radius:7px;white-space:nowrap;font-weight:600;box-shadow:none}
#homeScreen .homePreset[aria-pressed=true]{background:#fff;color:#126e64;box-shadow:0 1px 4px #183d3b13}
.homeRange{gap:7px}.homeRange label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--home-muted)}
#homeScreen .homeRange input,#homeScreen .homePresenceDate{width:145px;min-width:0;height:37px;border:1px solid var(--home-line);border-radius:8px;background:#fff;padding:7px 10px;color:#325558;font-size:13px}
#homeScreen .homeRefresh{padding:8px 12px;border:1px solid #b9d7cf;background:#fff;color:#266f66;border-radius:8px;box-shadow:none;white-space:nowrap}
#homeScreen .homeRefresh svg{width:15px;height:15px;vertical-align:-3px;margin-right:5px}
.homeCaption{justify-content:space-between;align-items:flex-start;margin:0 0 13px;color:var(--home-muted);font-size:12px;flex-wrap:wrap;min-height:18px}
.homeError{color:#ad3a32;font-size:13px;margin:0 0 12px}.homeStatus{font-size:12px;color:var(--home-muted)}.homeStatus.is-error{color:#a45129}
.homeMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
#homeScreen .homeMetric{border:1px solid var(--home-line);border-radius:14px;background:#fff;padding:17px 18px;text-align:left;color:var(--home-ink);min-width:0;box-shadow:0 3px 12px #173e3b03;min-height:142px}
#homeScreen button.homeMetric:hover{border-color:#9cc8bd;background:#fcfefd}
.homeMetricHead{justify-content:space-between;font-size:13px;font-weight:600;color:#5e7b7c;gap:8px}
.homeMetricHead svg,.homeMetricFoot svg{width:18px;height:18px;flex:none;color:#4d9087}
.homeMetricValue{display:block;font-size:34px;font-weight:750;letter-spacing:-1px;line-height:1.25;font-variant-numeric:tabular-nums;margin:10px 0 5px}
.homeMetricFoot{font-size:12px;color:var(--home-muted);justify-content:space-between;line-height:1.4;min-height:18px}
#homeScreen button:disabled{cursor:default;opacity:.55}.homeWarm{color:#ac6e25}
.homeDashboardGrid{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:18px;align-items:start}
.homeColumn{display:grid;gap:18px;min-width:0}.homePanel{border:1px solid var(--home-line);border-radius:14px;background:#fff;padding:20px;min-width:0;box-shadow:0 3px 12px #173e3b03}
.homePanelHead{justify-content:space-between;align-items:flex-start;margin-bottom:16px;gap:10px}.homePanelHead h3{font-size:16px;line-height:1.25;margin:0 0 4px;letter-spacing:-.2px}.homePanelHead p{font-size:12px;line-height:1.4;color:var(--home-muted);margin:0}
.homePanelHead>svg{width:20px;height:20px;color:#75a79d}.homeAttentionList{display:grid;gap:0}
#homeScreen .homeAttentionRow{display:grid;grid-template-columns:35px minmax(0,1fr) auto 14px;align-items:center;gap:12px;background:none;border:0;border-top:1px solid #edf3f0;padding:15px 0;color:inherit;text-align:left;border-radius:0;box-shadow:none}
#homeScreen .homeAttentionRow:first-child{border-top:0;padding-top:2px}#homeScreen .homeAttentionRow:last-child{padding-bottom:1px}
.homeAttentionRow b{font-size:13px;line-height:1.4;display:block;font-weight:650}.homeAttentionRow small{display:block;font-size:11px;color:var(--home-muted);line-height:1.4;margin-top:3px}
.homeAttentionRow>svg{width:14px;height:14px;color:#89a59d}.homeRowIcon{background:#edf5f2;color:#4e9588;border-radius:10px;height:35px;display:grid;place-items:center}.homeRowIcon svg{width:18px;height:18px}.homeRowIcon.warm{background:#fff5e6;color:#b57c30}.homeRowIcon.danger{background:#fdf0ee;color:#c16658}
.homeCount{font-size:12px;font-weight:650;border-radius:6px;background:#edf5f2;padding:4px 8px;min-width:28px;text-align:center;font-variant-numeric:tabular-nums}.homeCount.alert{color:#a35f21;background:#fff3e4}
.homeSource{padding:12px 0;border-top:1px solid #edf3f0}.homeSource:first-child{border-top:0;padding-top:0}.homeSourceTitle{display:flex;justify-content:space-between;gap:10px;font-size:13px;font-weight:650;margin-bottom:8px}.homeSourceTrack{height:5px;border-radius:5px;background:#edf4f1;overflow:hidden}.homeSourceTrack span{display:block;height:100%;background:#359c8c;border-radius:5px;width:var(--home-share,0%)}.homeChannels{font-size:11px;line-height:1.6;color:var(--home-muted);margin-top:7px;display:flex;flex-wrap:wrap;gap:3px 12px}
.homePresenceDate{max-width:145px}.homePresenceSummary{display:flex;align-items:baseline;gap:8px;margin-bottom:14px;color:var(--home-muted);font-size:12px}.homePresenceSummary strong{font-size:29px;letter-spacing:-.8px;line-height:1;font-variant-numeric:tabular-nums;color:#247c69}
.homePeopleTabs{gap:5px;flex-wrap:wrap;margin-bottom:12px}#homeScreen .homePeopleTab{padding:5px 8px;border:1px solid #e1ebe6;border-radius:7px;background:#fff;font-size:11px;color:#65807e;box-shadow:none}#homeScreen .homePeopleTab[aria-pressed=true]{background:#e9f5ef;color:#26775e;border-color:#c2dfd0}
.homePerson{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #edf3f0}.homePersonInfo{display:flex;align-items:center;gap:10px;min-width:0}.homeAvatar{height:31px;width:31px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:11px;font-weight:650;color:#5a8880;background:#eff5f2}.homePersonName{font-size:13px;line-height:1.3;overflow-wrap:anywhere}.homePersonTime{font-size:11px;margin-top:3px;color:var(--home-muted)}.homePersonStatus{font-size:11px;white-space:nowrap;color:#6e8984}.homePersonStatus.present{color:#23785b}.homePersonStatus.absent{color:#a4855f}
#homeScreen .homeTextButton{display:flex;align-items:center;gap:5px;padding:10px 0 0;border:0;background:none;color:#2c8375;font-size:12px;font-weight:600;box-shadow:none}#homeScreen .homeTextButton svg{width:14px;height:14px}
.homeShipment{display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:12px;border-top:1px solid #edf3f0;padding:13px 0}.homeShipment:first-child{border-top:0;padding-top:0}.homeShipmentDate{font-size:11px;color:#73908a;text-align:center;background:#f0f6f2;border-radius:8px;padding:7px 3px}.homeShipmentDate b{display:block;font-size:19px;line-height:1.1;color:#3c7669;font-variant-numeric:tabular-nums}.homeShipmentTitle{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.homeShipment small{font-size:11px;color:var(--home-muted);display:block;margin-top:3px}#homeScreen .homeOpenItem{border:0;background:none;padding:5px;color:#478c7f;box-shadow:none}#homeScreen .homeOpenItem svg{width:16px;height:16px}
.homeEmpty{color:var(--home-muted,#6b8788);font-size:13px;line-height:1.6;padding:15px 0}.homeAttendanceNote{font-size:11px;color:var(--home-muted);line-height:1.6;margin:12px 0 0}.homeSr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.homeDetails{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:85dvh;border:1px solid #c9ded5;border-radius:15px;padding:0;color:#193b3a;background:#fff;box-shadow:0 16px 70px #0d2f3340}.homeDetails::backdrop{background:#102a2c80}.homeDetailHead{justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e2ece6}.homeDetailHead h3{margin:0;font-size:18px}.homeDetailHead p{margin:4px 0 0;font-size:12px;color:#718984}.homeDetailHead button{border:1px solid #d3e4da;border-radius:8px;background:#fff;width:32px;height:32px;font-size:22px;color:#507d72;padding:0;box-shadow:none}.homeDetailBody{padding:0 20px;max-height:56dvh;overflow:auto}.homeDetailItem{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf3ef}.homeDetailItem b{font-size:13px;line-height:1.5;display:block;overflow-wrap:anywhere}.homeDetailItem small{display:block;color:#708984;font-size:11px;line-height:1.6;margin-top:3px}.homeDetailItem button{border:1px solid #c8e0d4;background:#fff;color:#2f7a66;border-radius:7px;padding:6px 10px;font-size:12px;box-shadow:none;white-space:nowrap}.homeDetailFoot{justify-content:space-between;gap:12px;padding:14px 20px;color:#6d8580;font-size:12px}.homeDetailFoot button{border:1px solid #c8e0d4;border-radius:7px;background:#fff;color:#2f7a66;font-size:12px;padding:7px 12px;box-shadow:none}.homeDetails .homeError{padding:14px 20px;margin:0}
@media(hover:hover){#homeScreen .homeAttentionRow:not(:disabled):hover b,#homeScreen .homeTextButton:not(:disabled):hover{text-decoration:underline;text-underline-offset:3px}.homeDetails .homeDetailItem button:hover{background:#edf6f1}}
@media(max-width:1150px){.homeMetrics{gap:10px}#homeScreen .homeMetric{padding:14px;min-height:145px}.homeDashboardGrid{gap:14px}.homePanel{padding:17px}}
@media(max-width:960px){.homeMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}.homeDashboardGrid{grid-template-columns:1fr}.homeColumn{gap:14px}.homePresenceDate{width:145px}.homeToolbar{align-items:flex-start}.homePeriod{gap:10px}}
@media(max-width:480px){.homeToolbar{gap:10px}.homePeriod{width:100%;display:block}.homePresetGroup{width:max-content;max-width:100%;margin-bottom:10px}#homeScreen .homePreset{padding:7px 10px;font-size:12px}.homeRange{width:100%}.homeRange label{flex:1;min-width:0}#homeScreen .homeRange input{width:100%;font-size:12px}.homeMetrics{gap:9px;margin-bottom:12px}#homeScreen .homeMetric{padding:13px;min-height:142px}.homeMetricHead{font-size:12px}.homeMetricHead svg{width:16px;height:16px}.homeMetricValue{font-size:30px;margin-top:9px}.homeMetricFoot{font-size:11px;flex-wrap:wrap;gap:4px}.homePanel{padding:16px;border-radius:12px}.homePanelHead h3{font-size:15px}.homePanelHead{gap:7px}.homePresenceDate{width:133px!important;font-size:12px!important}.homeAttentionRow b{font-size:12px}.homeAttentionRow small{font-size:10px}.homePersonStatus{max-width:105px;white-space:normal;text-align:right}.homeDetailHead{padding:16px}.homeDetailBody{padding:0 16px}.homeDetailFoot{padding:12px 16px}.homeDetailItem{gap:8px}.homeDetailItem button{font-size:11px;padding:6px 7px}}

/* Reference-led Home finish. All new styling stays inside this screen.
   Static alpha surfaces provide depth without blur, filters or ambient motion. */
#homeScreen{
 --home-ink:#18343e;
 --home-muted:#526b73;
 --home-line:rgba(96,129,139,.16);
 --home-teal:#246f70;
 box-sizing:border-box;
 padding:22px;
 border:1px solid rgba(255,255,255,.88);
 border-radius:24px;
 background:
  radial-gradient(ellipse 54% 48% at 89% 12%,rgba(255,216,101,.48),transparent 79%),
  radial-gradient(ellipse 62% 58% at 1% 20%,rgba(143,192,224,.35),transparent 75%),
  radial-gradient(ellipse 66% 58% at 64% 98%,rgba(188,215,152,.33),transparent 76%),
  linear-gradient(145deg,#eaf0f2,#f2f4ee);
 box-shadow:inset 0 1px 0 #fff,0 8px 32px rgba(27,58,67,.035);
}

#homeScreen .homeToolbar{margin-bottom:17px;gap:14px}
#homeScreen .homePeriod{gap:14px}
#homeScreen .homePresetGroup{gap:3px;padding:4px;border:1px solid rgba(255,255,255,.76);border-radius:12px;background:rgba(255,255,255,.43)}
#homeScreen .homePreset{border-radius:8px;color:#405f69;padding:8px 12px}
#homeScreen .homePreset[aria-pressed=true]{color:#fff;background:#285f68;box-shadow:0 2px 5px rgba(26,69,78,.12)}
#homeScreen .homeRange input,#homeScreen .homePresenceDate{height:38px;color:#344f59;background:rgba(255,255,255,.81);border-color:rgba(104,135,145,.22);box-shadow:0 1px 2px rgba(50,75,80,.025)}
#homeScreen .homeRefresh{color:#285e67;background:rgba(255,255,255,.8);border-color:rgba(255,255,255,.95);border-radius:10px;box-shadow:0 2px 7px rgba(38,67,76,.045)}
#homeScreen .homeCaption{margin-bottom:16px;color:#4e6873}
#homeScreen .homeStatus{color:#526a74}
#homeScreen .homeStatus.is-error{color:#934526}
#homeScreen .homeError{color:#a13832}
#homeScreen .homeMetrics{gap:14px;margin-bottom:18px}
#homeScreen .homeMetric,#homeScreen .homePanel{
 border:1px solid rgba(255,255,255,.94);
 background:rgba(255,255,255,.72);
 border-radius:18px;
 box-shadow:inset 0 0 0 1px rgba(111,139,149,.13),0 5px 18px rgba(36,64,73,.035);
}
#homeScreen .homeMetric{padding:18px 20px;min-height:160px;display:flex;flex-direction:column}
#homeScreen .homeMetric:nth-child(1){background:rgba(247,251,255,.79)}
#homeScreen .homeMetric:nth-child(2){background:rgba(255,253,244,.8)}
#homeScreen .homeMetric:nth-child(3){background:rgba(251,248,255,.78)}
#homeScreen .homeMetric:nth-child(4){background:rgba(245,253,247,.79)}
#homeScreen .homeMetricHead{color:#405b66;font-size:13px;line-height:1.4;min-height:42px;align-items:flex-start;font-weight:650}
#homeScreen .homeMetricHead svg{width:19px;height:19px;color:#4c7886;opacity:.86}
#homeScreen .homeMetricValue{font-size:42px;font-weight:700;letter-spacing:-1.45px;line-height:1.1;margin:9px 0 10px;overflow-wrap:anywhere}
#homeScreen .homeMetricFoot{color:#526b73;min-height:19px;margin-top:auto;line-height:1.45}
#homeScreen .homeMetricFoot svg{width:16px;height:16px;color:#557b84}
#homeScreen .homeWarm{color:#8c622d}
#homeScreen .homeDashboardGrid{gap:18px}
#homeScreen .homeColumn{gap:18px}
#homeScreen .homePanel{padding:22px}
#homeScreen .homePanelHead{margin-bottom:17px}
#homeScreen .homePanelHead h3{font-size:17px;font-weight:700;line-height:1.3;letter-spacing:-.3px}
#homeScreen .homePanelHead p{color:#526b73}
#homeScreen .homePanelHead>svg{color:#607f88}
#homeScreen .homeAttentionRow{border-top-color:rgba(92,123,132,.13);padding:16px 0;gap:12px}
#homeScreen .homeAttentionRow b{color:#26434e;font-weight:650}
#homeScreen .homeAttentionRow small{color:#566f77;font-size:11px}
#homeScreen .homeAttentionRow>svg{color:#64808a}
#homeScreen .homeRowIcon{color:#487b83;background:rgba(216,235,236,.7);border-radius:11px}
#homeScreen .homeRowIcon.warm{color:#9d6b2a;background:rgba(249,229,192,.7)}
#homeScreen .homeRowIcon.danger{color:#a05f54;background:rgba(247,221,216,.68)}
#homeScreen .homeCount{color:#385f66;background:rgba(224,238,236,.78);border-radius:7px}
#homeScreen .homeCount.alert{color:#8d5b21;background:rgba(248,231,199,.75)}
#homeScreen .homeSource{border-top-color:rgba(92,123,132,.13);padding:13px 0}
#homeScreen .homeSourceTitle{color:#2b4954;margin-bottom:9px}
#homeScreen .homeSourceTrack{height:6px;background:rgba(79,120,131,.09)}
#homeScreen .homeSourceTrack span{background:#5c959d}
#homeScreen .homeSource:nth-child(2) .homeSourceTrack span{background:#b9a469}
#homeScreen .homeSource:nth-child(3) .homeSourceTrack span{background:#8b9f87}
#homeScreen .homeChannels{color:#536c75}
#homeScreen .homePresenceSummary{color:#4c6771;margin-bottom:16px}
#homeScreen .homePresenceSummary strong{color:#2f736b;font-size:34px;letter-spacing:-1px}
#homeScreen .homePeopleTab{background:rgba(255,255,255,.67);border-color:rgba(103,132,142,.17);color:#506b75;border-radius:8px}
#homeScreen .homePeopleTab[aria-pressed=true]{background:rgba(220,237,227,.92);border-color:rgba(87,140,119,.22);color:#2f6759}
#homeScreen .homePerson{border-top-color:rgba(92,123,132,.13);padding:11px 0}
#homeScreen .homeAvatar{color:#496e7b;background:rgba(224,237,241,.86);border:1px solid rgba(255,255,255,.8)}
#homeScreen .homePersonName{color:#2a4651;font-weight:550}
#homeScreen .homePersonTime{color:#526c76}
#homeScreen .homePersonStatus{color:#536d76}
#homeScreen .homePersonStatus.present{color:#286749}
#homeScreen .homePersonStatus.absent{color:#84613a}
#homeScreen .homeTextButton{color:#286d71}
#homeScreen .homeShipment{border-top-color:rgba(92,123,132,.13);padding:14px 0}
#homeScreen .homeShipmentDate{color:#566f78;background:rgba(224,237,234,.85);border:1px solid rgba(255,255,255,.7);border-radius:10px}
#homeScreen .homeShipmentDate b{color:#3d6d6a}
#homeScreen .homeShipmentTitle{color:#284752}
#homeScreen .homeShipment small{color:#536d76}
#homeScreen .homeOpenItem{color:#3d777e}
#homeScreen .homeEmpty,#homeScreen .homeAttendanceNote{color:#536c75}
#homeScreen button:focus-visible{outline-color:#297781;outline-offset:3px}
#homeScreen button:not(:disabled):active{transform:translateY(1px)}
@media(hover:hover) and (pointer:fine){
 #homeScreen button.homeMetric:not(:disabled):hover{background:rgba(255,255,255,.91);border-color:#fff}
 #homeScreen .homeRefresh:not(:disabled):hover{background:#fff;border-color:rgba(106,147,153,.36)}
 #homeScreen .homePeopleTab:not(:disabled):hover{background:rgba(255,255,255,.9)}
}
@media(min-width:961px){
 #homeScreen:has(#homeAttendancePanel[hidden]) .homeColumn{display:contents}
 #homeScreen:has(#homeAttendancePanel[hidden]) .homeColumn:first-child>.homePanel:first-child{grid-column:1;grid-row:1 / span 2;align-self:stretch;display:flex;flex-direction:column}
 #homeScreen:has(#homeAttendancePanel[hidden]) .homeColumn:first-child>.homePanel:first-child .homeAttentionList{flex:1;grid-template-rows:repeat(4,minmax(0,1fr))}
 #homeScreen:has(#homeAttendancePanel[hidden]) .homeColumn:first-child>.homePanel:last-child{grid-column:2;grid-row:1}
 #homeScreen:has(#homeAttendancePanel[hidden]) .homeColumn:last-child>.homePanel:last-child{grid-column:2;grid-row:2}
}
@media(max-width:1150px){
 #homeScreen{padding:18px;border-radius:21px}
 #homeScreen .homeMetric{padding:16px;min-height:158px}
 #homeScreen .homeMetricValue{font-size:39px}
 #homeScreen .homePanel{padding:19px}
}
@media(max-width:960px){
 #homeScreen .homeToolbar{align-items:flex-start;gap:12px}
 #homeScreen .homeDashboardGrid,#homeScreen .homeColumn{gap:15px}
 #homeScreen .homeMetric{min-height:151px}
}
@media(max-width:480px){
 #homeScreen{padding:13px 12px 16px;border-radius:17px;background:radial-gradient(ellipse 95% 35% at 100% 4%,rgba(255,219,113,.38),transparent 78%),radial-gradient(ellipse 100% 40% at 0% 22%,rgba(155,197,224,.28),transparent 75%),linear-gradient(145deg,#edf2f3,#f2f5ef)}
 #homeScreen .homeToolbar{gap:10px;margin-bottom:14px}
 #homeScreen .homePeriod{gap:10px}
 #homeScreen .homePresetGroup{padding:4px;margin-bottom:10px;border-radius:11px}
 #homeScreen .homePreset{padding:7px 9px;font-size:12px}
 #homeScreen .homeRange input{font-size:12px;padding:7px 9px}
 #homeScreen .homeRefresh{padding:8px 10px;font-size:12px}
 #homeScreen .homeCaption{font-size:11px;line-height:1.5;margin-bottom:13px}
 #homeScreen .homeMetrics{gap:9px;margin-bottom:13px}
 #homeScreen .homeMetric{padding:13px 12px;min-height:150px;border-radius:14px}
 #homeScreen .homeMetricHead{font-size:12px;min-height:42px;gap:6px}
 #homeScreen .homeMetricHead svg{width:16px;height:16px}
 #homeScreen .homeMetricValue{font-size:35px;letter-spacing:-1.1px;margin:9px 0}
 #homeScreen .homeMetricFoot{font-size:11px;gap:4px}
 #homeScreen .homePanel{padding:16px 14px;border-radius:15px}
 #homeScreen .homePanelHead h3{font-size:16px}
 #homeScreen .homePanelHead p{font-size:11px}
 #homeScreen .homePresenceDate{width:126px!important;font-size:12px!important;padding:7px!important}
 #homeScreen .homeAttentionRow{gap:9px;grid-template-columns:33px minmax(0,1fr) auto 12px}
 #homeScreen .homeAttentionRow b{font-size:12px}
 #homeScreen .homeAttentionRow small{font-size:11px}
 #homeScreen .homeRowIcon{height:33px;border-radius:10px}
 #homeScreen .homeCount{padding:4px 7px}
 #homeScreen .homePersonInfo{gap:8px}
 #homeScreen .homePersonName{font-size:12px}
 #homeScreen .homePersonTime{font-size:11px}
 #homeScreen .homePersonStatus{font-size:11px;max-width:83px}
 #homeScreen .homePresenceSummary strong{font-size:31px}
}

/* Controls share one icon vocabulary; functional rows are single native buttons. */
#homeScreen button{line-height:1.4}
#homeScreen svg,#homeDetailsDialog svg{display:block;width:18px;height:18px;min-width:18px;flex:0 0 18px;pointer-events:none}
#homeScreen .homeRefresh{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px}
#homeScreen .homeRefresh svg{margin:0;width:16px;height:16px;min-width:16px;flex-basis:16px}
#homeScreen .homeTextButton{min-height:36px;padding-top:0;align-self:flex-start;flex-shrink:0}
#homeScreen .homeMetricHead,#homeScreen .homeMetricFoot{width:100%}
#homeScreen .homeMetricHead{min-height:36px;align-items:center}
#homeScreen .homeMetricHead svg{width:18px;height:18px}
#homeScreen .homePanelHead>svg,#homeScreen .homeRowIcon svg,#homeScreen .homeTextButton svg{width:18px;height:18px;min-width:18px;flex-basis:18px}
#homeScreen .homeMetricFoot svg{width:16px;height:16px;min-width:16px;flex-basis:16px}
#homeScreen .homeAttentionRow>svg{width:16px;height:16px;min-width:16px;flex-basis:16px}
#homeScreen .homeShipment.homeRecordRow{width:100%;text-align:left;box-sizing:border-box;border:0;border-top:1px solid rgba(92,123,132,.13);border-radius:0;background:transparent;box-shadow:none;color:#284752;margin:0;padding:14px 0;cursor:pointer}
#homeScreen .homeShipment.homeRecordRow:first-child{border-top:0}
#homeScreen .homeShipmentTitle{display:block}
#homeScreen .homeRowArrow,#homeDetailsDialog .homeRowArrow{display:grid;place-items:center;flex:none;width:24px;height:24px;color:#386e77}
#homeScreen .homeActivityPanel{margin:0 0 18px}
#homeScreen .homeActivityPanel .homePanelHead{align-items:center;flex-wrap:wrap;gap:12px}
.homeChartLegend{display:flex;align-items:center;gap:16px;font-size:12px;color:#405f69}
.homeChartLegend>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.homeChartLegend>span:before{content:"";width:9px;height:9px;border-radius:3px;background:#427e89}
.homeChartLegend>.inquiries:before{background:#c59f43}
.homeActivity{display:flex;gap:9px;min-width:0;min-height:192px}
.homeChartScale{display:flex;flex-direction:column;justify-content:space-between;padding:5px 0 33px;color:#526b73;min-width:24px;font-size:11px;font-variant-numeric:tabular-nums}
.homeChartScroll{min-width:0;flex:1;overflow-x:auto;overscroll-behavior-x:contain;padding:5px 0 0}
.homeChartBars{display:flex;justify-content:center;align-items:flex-end;gap:10px;min-height:180px;min-width:100%;width:max-content;background:repeating-linear-gradient(to top,transparent 0,transparent 35px,rgba(70,105,117,.08) 35px,rgba(70,105,117,.08) 36px);border-bottom:1px solid rgba(77,118,130,.15)}
.homeChartDay{flex:1 0 46px;max-width:90px;min-width:46px;display:grid;gap:7px;text-align:center}
.homeChartMeasures{height:144px;display:flex;justify-content:center;gap:4px;align-items:stretch}
#homeScreen .homeChartMeasure{position:relative;display:flex;align-items:flex-end;justify-content:center;flex:1;min-width:20px;max-width:36px;height:144px;border:0;border-radius:7px 7px 2px 2px;padding:0 2px 20px;background:transparent;box-shadow:none;color:#335c68;cursor:pointer}
#homeScreen .homeChartMeasure:focus-visible{outline-offset:0}
.homeChartBar{display:block;width:100%;max-width:24px;border-radius:5px 5px 1px 1px;background:#598f99;min-height:0}
.homeChartMeasure.inquiries .homeChartBar{background:#cbb36e}
.homeChartValue{position:absolute;bottom:0;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;line-height:16px;color:#335c68}
.homeChartDate{font-size:11px;color:#536b74;line-height:20px;white-space:nowrap}
#homeScreen[data-loading=true] .homeMetricValue{position:relative;color:transparent}
#homeScreen[data-loading=true] .homeMetricValue:after{content:"";position:absolute;inset:3px auto 3px 0;width:58px;border-radius:6px;background:rgba(76,113,124,.13);animation:homeLoadingPulse 1s linear infinite alternate}
@keyframes homeLoadingPulse{from{opacity:.45}to{opacity:.85}}

/* Generic dialog styles and CRM card-motion hooks use !important globally.
   These overrides apply only to Home's native dialog; other cards are untouched. */
dialog#homeDetailsDialog.homeDetails{position:fixed!important;inset:0!important;margin:auto!important;width:min(700px,calc(100% - 32px))!important;max-width:calc(100% - 32px)!important;height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 40px)!important;box-sizing:border-box!important;padding:0!important;border:1px solid #d6e3df!important;border-radius:18px!important;background:#fcfdfc!important;color:#1e4148!important;box-shadow:0 24px 80px #102d3b42!important;overflow:hidden!important;filter:none!important;backdrop-filter:none!important;transform:none!important;transform-origin:center!important;transition:none!important;animation:none!important;opacity:1!important}
dialog#homeDetailsDialog.homeDetails[open]{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;opacity:1!important;transform:none!important}
dialog#homeDetailsDialog.homeDetails:not([open]){display:none!important}
dialog#homeDetailsDialog.homeDetails::backdrop{background:rgba(14,35,42,.5)!important;backdrop-filter:blur(2px)!important;opacity:1!important;transition:none!important;animation:none!important}
#homeDetailsDialog .homeDetailHead{flex:none;display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px;gap:18px;margin:0;background:#f5f9f7;border:0;border-bottom:1px solid #e1eae5;border-radius:0}
#homeDetailsDialog .homeDetailHead h3{color:#213f47;font-size:18px;line-height:1.4;letter-spacing:-.2px;margin:0}
#homeDetailsDialog .homeDetailHead p{font-size:12px;color:#536e75;line-height:1.5;margin:5px 0 0}
#homeDetailsDialog .homeDetailHead>button{display:grid!important;place-items:center!important;position:static!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;padding:0!important;margin:0!important;border:1px solid #cbded6!important;border-radius:10px!important;background:#fff!important;color:#345e67!important;box-shadow:none!important;line-height:1!important;transform:none!important}
#homeDetailsDialog .homeDetailBody{flex:1 1 auto;min-height:0;overflow:auto;max-height:58dvh;padding:0 22px;overscroll-behavior:contain;background:#fcfdfc}
#homeDetailsDialog .homeDetailItem{box-sizing:border-box;width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px;border:0;border-bottom:1px solid #e2ece6;border-radius:0;padding:14px 0;margin:0;text-align:left;background:transparent;box-shadow:none;color:#264951;line-height:1.5;white-space:normal}
#homeDetailsDialog button.homeDetailItem{cursor:pointer}
#homeDetailsDialog .homeDetailItem b{font-size:14px;color:#264951;font-weight:650;line-height:1.5}
#homeDetailsDialog .homeDetailItem small{font-size:12px;color:#536e75;line-height:1.6;margin-top:4px}
#homeDetailsDialog .homeDetailFoot{flex:none;display:flex;align-items:center;justify-content:space-between;min-height:66px;padding:14px 22px;margin:0;gap:14px;border-top:1px solid #e2eae5;background:#f7faf8;font-size:12px;color:#536e75}
#homeDetailsDialog .homeDetailFoot button{position:static;display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:7px 13px;border:1px solid #bfd7cc;border-radius:9px;box-shadow:none;background:#fff;color:#2c625c;font-size:13px;line-height:1.4}
#homeDetailsDialog .homeError{padding:13px 22px;font-size:13px;line-height:1.5;background:#fff4ed;color:#9b452f;margin:0}
#homeDetailsDialog button:focus-visible{outline:3px solid #297781;outline-offset:-3px}
#homeDetailsDialog button:disabled{opacity:.55;cursor:default}
@media(hover:hover) and (pointer:fine){#homeScreen .homeRecordRow:not(:disabled):hover,#homeDetailsDialog button.homeRecordRow:not(:disabled):hover{background:rgba(222,238,233,.45)}#homeScreen .homeChartMeasure:not(:disabled):hover{background:rgba(255,255,255,.65)}}
@media(prefers-reduced-motion:reduce){#homeScreen[data-loading=true] .homeMetricValue:after{animation:none;opacity:.65}#homeScreen button:not(:disabled):active{transform:none}}
@media(max-width:480px){#homeScreen .homeMetricHead{font-size:12px;min-height:36px}#homeScreen .homeAttentionRow small{font-size:11px}.homeChartLegend{font-size:11px;gap:12px}.homeChartBars{gap:5px}.homeChartDay{min-width:43px;flex-basis:43px}.homeActivity{min-height:190px}dialog#homeDetailsDialog.homeDetails{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;max-height:calc(100dvh - 32px)!important;border-radius:15px!important}#homeDetailsDialog .homeDetailHead{padding:16px;gap:12px}#homeDetailsDialog .homeDetailHead h3{font-size:17px}#homeDetailsDialog .homeDetailBody{padding:0 16px;max-height:58dvh}#homeDetailsDialog .homeDetailItem{gap:10px;min-height:65px}#homeDetailsDialog .homeDetailItem b{font-size:13px}#homeDetailsDialog .homeDetailItem small{font-size:11px}#homeDetailsDialog .homeDetailFoot{padding:12px 16px;font-size:11px}#homeDetailsDialog .homeError{padding:12px 16px}}
