#homeDashboard.hidden,
#homeDashboard [hidden] { display: none !important; }
#setupPracticeAiHeaderTitle:not(.hidden) { display: block !important; }
body.home-dashboard-practice-view-active #setupView #workspaceHeader { display: none !important; }
body.home-dashboard-view-active .app-shell { padding-bottom: 24px; }
body.home-dashboard-view-active #setupView:not([hidden]) .workspace-main { padding-bottom: 40px; }

@media (max-width: 900px), (max-width: 980px) and (max-height: 500px) {
  body.home-dashboard-view-active #setupView:not([hidden]) .workspace-main {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  }
}

#homeDashboard {
  --home-ink: #182b4c;
  --home-muted: #66758e;
  --home-blue: #4669e5;
  --home-mint: #2c8fd6;
  --home-orange: #e29c40;
  --home-line: #e8edf4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  width: 100%;
  max-width: none;
  container-type: inline-size;
  color: var(--home-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
#homeDashboard button,
#homeDashboard a,
#homeDashboard select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#homeDashboard button,
#homeDashboard a { -webkit-user-select: none; user-select: none; }
#homeDashboard button { font-family: inherit; cursor: pointer; }
#homeDashboard button:disabled { cursor: default; }
#homeDashboard button:focus-visible,
#homeDashboard a:focus-visible,
#homeDashboard select:focus-visible { outline: 3px solid #738cf0; outline-offset: 3px; }
#homeDashboard button:active:not(:disabled),
#homeDashboard a:active { transform: scale(.985); }
.home-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
#homeDashboard svg:not(.home-icon-defs) { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.home-dashboard-main { display: contents; }
.home-operational { display: contents; }
.home-dashboard-card,
.home-operation-section { min-width: 0; border: 1px solid var(--home-line); border-radius: 20px; background: #fff; color: inherit; text-align: left; box-shadow: 0 3px 9px #24385d03; }
.home-dashboard-heading { display: flex; grid-column: 1 / -1; align-items: center; gap: 16px; min-width: 0; order: 0; padding: 2px 0 7px; }
.home-dashboard-heading h1 { margin: 0; font-family: inherit; font-size: 29px; line-height: 1.2; font-weight: 710; letter-spacing: -.045em; color: var(--home-ink); }
.home-dashboard-date { margin-left: auto; color: var(--home-muted); font-size: 12px; font-weight: 500; }
.home-section-heading { display: flex; align-items: center; gap: 8px; margin: 0; font-family: inherit; font-size: 15px; line-height: 1.3; font-weight: 670; letter-spacing: -.025em; color: var(--home-ink); }
.home-operation-section { padding: 20px; }
.home-operation-heading { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 16px; }
.home-operation-heading .home-section-heading { flex: 1; min-width: 0; }
.home-operation-period { color: var(--home-muted); font-size: 11px; white-space: nowrap; }
.home-operation-open,
.home-widget-link { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -10px -8px -10px auto; padding: 12px; border: 0; border-radius: 11px; background: transparent; color: #8997ae; }
#homeDashboard .home-operation-open svg,
#homeDashboard .home-widget-link svg { width: 17px; height: 17px; }
.home-overview-label { grid-column: 1 / -1; margin-bottom: -5px; color: #8290a7; font-size: 11px; }
.home-overview-metrics { display: grid; grid-column: 1 / -1; order: 20; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-operation-metric { --kpi-accent: var(--home-blue); --kpi-tint: #eef1ff; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; min-height: 130px; padding: 20px; border: 1px solid var(--home-line); border-radius: 17px; background: #fff; color: inherit; text-align: left; transition: background 140ms ease, transform 140ms ease-out; }
.home-tone-mint { --kpi-accent: var(--home-mint); --kpi-tint: #eaf2fc; }
.home-tone-orange { --kpi-accent: var(--home-orange); --kpi-tint: #fff4e4; }
.home-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.home-kpi-label { min-width: 0; color: #728099; font-size: 12px; font-weight: 520; line-height: 1.4; }
.home-kpi-icon { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; padding: 8px; border-radius: 10px; background: var(--kpi-tint); color: var(--kpi-accent); }
.home-kpi-number { font-size: 35px; line-height: 1; font-weight: 690; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.home-activity-panel { display: flex; flex-direction: column; grid-column: span 8; order: 30; align-self: stretch; }
.home-activity-panel .home-activity-chart { flex: 1; min-height: 177px; }
.home-chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 16px; }
.home-chart-summary { display: grid; gap: 6px; }
.home-chart-summary strong { font-size: 31px; font-weight: 680; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.home-chart-summary > span { color: var(--home-muted); font-size: 11px; }
.home-series-tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 11px; background: #f5f7fb; }
.home-series-tabs button { min-height: 36px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--home-muted); font: inherit; font-size: 11px; font-weight: 550; }
.home-series-tabs button.is-selected { background: #fff; color: var(--home-ink); box-shadow: 0 1px 5px #24385d10; }
.home-activity-chart { --chart-color: #5979e9; --chart-color-end: #b9c8ff; display: flex; align-items: stretch; gap: 12px; height: 177px; padding: 19px 4px 0; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #eff2f7 calc(25% - 1px), #eff2f7 25%); border-bottom: 0; }
.home-series-qualified { --chart-color: #1f4b9d; --chart-color-end: #bdd3ef; }
.home-series-visits { --chart-color: #e9ab58; --chart-color-end: #f9dbae; }
.home-chart-column { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.home-chart-track { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; flex: 1; min-height: 0; border-bottom: 1px solid #dfe6f2; }
.home-chart-bar { position: relative; display: block; width: min(100%, 39px); height: var(--bar-height); border-radius: 7px 7px 0 0; background: linear-gradient(to top, var(--chart-color-end), var(--chart-color)); }
.home-chart-value { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); color: #7e8aa1; font-size: 10px; font-weight: 550; font-variant-numeric: tabular-nums; }
.home-chart-date { color: #8390a7; font-size: 10px; text-transform: capitalize; }
.home-chart-column.is-missing .home-chart-track { border-bottom-style: dashed; }
.home-chart-note { display: block; margin-top: 8px; color: var(--home-muted); font-size: 10px; }
.home-calendar-panel { grid-column: span 4; order: 30; align-self: stretch; }
.home-operation-calendar-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 2px 0 12px; }
.home-operation-calendar-metrics .home-operation-metric { min-height: 83px; padding: 12px; gap: 10px; background: #f7f9fd; border-color: transparent; border-radius: 12px; }
.home-operation-calendar-metrics .home-kpi-head { display: block; }
.home-operation-calendar-metrics .home-kpi-icon { display: none; }
.home-operation-calendar-metrics .home-kpi-label { font-size: 10px; }
.home-operation-calendar-metrics .home-kpi-number { font-size: 23px; }
.home-operation-appointments { display: grid; }
.home-operation-appointment { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 70px; padding: 12px 0; border: 0; border-bottom: 1px solid #f0f3f8; background: transparent; color: inherit; font: inherit; text-align: left; }
.home-operation-appointment:last-child { border-bottom: 0; }
.home-appointment-date { display: grid; gap: 1px; align-content: center; justify-items: center; flex: 0 0 39px; width: 39px; height: 43px; border: 1px solid #e7edf7; border-radius: 10px; background: #f9fbff; }
.home-appointment-date strong { color: #4f6b9d; font-size: 16px; line-height: 1; font-weight: 650; }
.home-appointment-date > span { color: #8c9bb3; font-size: 9px; text-transform: uppercase; }
.home-operation-appointment-copy { display: grid; gap: 6px; flex: 1; min-width: 0; }
.home-operation-appointment-copy > strong { overflow: hidden; color: var(--home-ink); font-size: 12px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.home-operation-appointment-copy > span { color: #8b97ab; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.home-operation-appointment-arrow { color: #9caac0; font-size: 21px; }
.home-team-panel { grid-column: span 8; order: 40; align-self: start; }
.home-team-table { display: grid; }
.home-team-table-head,
.home-team-row { display: grid; grid-template-columns: minmax(130px, 1fr) repeat(3, minmax(45px, .4fr)); align-items: center; gap: 12px; }
.home-team-table-head { padding: 0 0 14px; color: #9aa5b5; font-size: 10px; }
.home-team-table-head > :not(:first-child),
.home-team-row > :not(:first-child) { text-align: center; }
.home-team-row { width: 100%; min-width: 0; min-height: 67px; padding: 10px 0; border: 0; border-top: 1px solid #f0f3f8; background: transparent; color: #65738c; font: inherit; font-size: 12px; }
.home-team-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-person-avatar { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 50%; background: #edf2fb; color: #6281b8; font-size: 10px; font-weight: 600; }
.home-team-row:nth-child(3n) .home-person-avatar { background: #eaf2fc; color: #1f4b9d; }
.home-team-row:nth-child(3n + 1) .home-person-avatar { background: #fff3e4; color: #c1975d; }
.home-team-name { display: grid; gap: 7px; flex: 1; min-width: 0; }
.home-team-name > strong { overflow: hidden; color: #394d70; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.home-team-volume { display: block; width: min(100%, 130px); height: 3px; border-radius: 4px; background: linear-gradient(to right, #9eb5ef var(--team-volume), #f0f4fa var(--team-volume)); }
.home-team-closed { color: var(--home-mint); }
.home-operation-audits { grid-column: span 4; order: 40; }
.home-audit-distribution { display: flex; align-items: center; justify-content: space-around; gap: 15px; padding: 2px 0 12px; }
.home-audit-ring { display: grid; place-items: center; flex: 0 0 114px; width: 114px; height: 114px; border-radius: 50%; background: conic-gradient(#2c8fd6 0 var(--audit-approved), #eeb770 var(--audit-approved) var(--audit-pending), #e892a0 var(--audit-pending) 100%); }
.home-audit-ring.is-empty { background: #e9eef5; }
.home-audit-ring > span { display: grid; place-content: center; gap: 5px; width: 87px; height: 87px; border-radius: 50%; background: #fff; text-align: center; }
.home-audit-ring strong { font-size: 26px; line-height: 1; font-weight: 640; letter-spacing: -.04em; }
.home-audit-ring > span > span { color: #96a0b1; font-size: 9px; }
.home-audit-legend { display: grid; gap: 14px; flex: 1; }
.home-audit-legend > span { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-left: 10px; color: #8d99ad; font-size: 10px; }
.home-audit-legend > span::before { position: absolute; top: 4px; left: 0; width: 5px; height: 5px; border-radius: 50%; content: ""; background: #2c8fd6; }
.home-audit-legend > .home-legend-orange::before { background: #eeb770; }
.home-audit-legend > .home-legend-rose::before { background: #e892a0; }
.home-audit-legend strong { color: #556781; font-size: 11px; font-weight: 600; }
.home-audit-items { display: grid; margin-top: 10px; }
.home-audit-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 10px 0; border: 0; border-top: 1px solid #f0f3f8; background: transparent; color: #8d99ad; font: inherit; text-align: left; }
.home-audit-item > span:nth-child(2) { display: grid; flex: 1; min-width: 0; gap: 5px; }
.home-audit-item strong { overflow: hidden; color: #4d5f7b; font-size: 11px; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.home-audit-item > span > span { font-size: 10px; }
.home-audit-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #efba76; }
.home-people-panel { grid-column: span 4; order: 40; }
.home-people-total { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 20px; }
.home-people-total strong { font-size: 42px; font-weight: 660; letter-spacing: -.05em; line-height: 1; }
.home-people-total > span { color: #8d99ad; font-size: 11px; }
.home-people-breakdown { display: grid; gap: 10px; }
.home-people-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: 10px; background: #f2f6fd; color: #7988a2; font-size: 11px; }
.home-people-breakdown > .home-people-mint { background: #edf3fb; }
.home-people-breakdown strong { color: #4c6383; font-weight: 600; }
#homeDashboard[data-persona="admin"] .home-operation-audits { grid-column: span 8; order: 30; }
#homeDashboard[data-persona="admin"] .home-calendar-panel { grid-column: span 4; order: 30; align-self: stretch; }
#homeDashboard[data-persona="admin"] .home-activity-panel { grid-column: span 8; order: 40; }
#homeDashboard[data-persona="admin"] .home-team-panel { grid-column: span 8; order: 50; }
#homeDashboard[data-persona="admin"] .home-audit-distribution { justify-content: flex-start; padding: 5px 0 13px; gap: 35px; }
#homeDashboard[data-persona="admin"] .home-audit-legend { max-width: 240px; }
#homeDashboard[data-persona="manager"] .home-people-panel { grid-column: span 4; order: 50; }
.home-next-visit { grid-column: span 7; order: 20; padding: 23px; background: #1a3155; border-color: #1a3155; color: #fff; }
.home-next-visit .home-section-heading,
.home-next-visit .home-operation-open { color: #b9c9e2; }
.home-next-visit .home-operation-heading { margin-bottom: 24px; }
.home-next-when { display: inline-flex; padding: 6px 10px; border: 1px solid #456086; border-radius: 8px; color: #c9d6e9; font-size: 11px; }
.home-next-content h3 { margin: 17px 0 6px; color: #fff; font-family: inherit; font-size: 27px; font-weight: 640; line-height: 1.2; letter-spacing: -.04em; }
.home-next-modality { color: #9eb3d0; font-size: 10px; letter-spacing: .03em; }
.home-next-address { margin: 17px 0 10px; color: #c1cfe2; font-size: 13px; line-height: 1.5; }
.home-next-notes { display: -webkit-box; overflow: hidden; max-width: 520px; margin: 0 0 20px; color: #9db1cf; font-size: 12px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.home-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.home-next-open,
.home-contact-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 15px; border: 0; border-radius: 10px; background: #fff; color: #2f4a74; font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; }
#homeDashboard .home-next-actions svg { width: 15px; height: 15px; }
.home-contact-link { background: #2b456a; color: #d0dcef; }
.home-schedule-panel { display: flex; flex-direction: column; grid-column: span 5; order: 20; align-self: stretch; }
.home-schedule-panel .home-activity-chart { flex: 1; min-height: 218px; margin-top: 18px; }
#homeDashboard[data-persona="closer"] .home-calendar-panel { grid-column: 1 / -1; order: 30; }
#homeDashboard[data-persona="closer"] .home-operation-calendar-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#homeDashboard[data-persona="closer"] .home-operation-appointments { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
#homeDashboard[data-persona="closer"] .home-operation-calendar-metrics .home-operation-metric { min-height: 90px; }
#homeDashboard[data-persona="closer"] .home-operation-appointment { min-height: 83px; }
.home-operation-state { margin: 15px 0; color: var(--home-muted); font-size: 12px; line-height: 1.5; }
.home-loading-state { grid-column: 1 / -1; min-height: 100px; }
.home-operation-error { display: flex; grid-column: 1 / -1; align-items: center; gap: 15px; order: 70; }
.home-operation-retry { min-height: 44px; padding: 10px 15px; border: 1px solid #dfe6f2; border-radius: 10px; background: #fff; color: var(--home-blue); font: inherit; font-size: 12px; font-weight: 600; }
.home-operation-retry:disabled { opacity: .5; cursor: wait; }

/* Personal activity retains the operational goals already used by AMESS. */
.home-dashboard-top { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; order: 10; }
.home-dashboard-top.only-metrics,
.home-dashboard-top.only-tip { grid-template-columns: 1fr; }
.home-dashboard-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 178px; padding: 24px; border-color: #1a3155; background: #1a3155; color: #fff; }
.home-metric { --home-progress: 0%; position: relative; display: grid; align-content: start; justify-items: start; gap: 14px; min-width: 0; padding: 0 24px 20px 0; border: 0; background: transparent; color: #fff; text-align: left; }
.home-metric + .home-metric { padding-left: 24px; border-left: 1px solid #375071; }
.home-metric::after { position: absolute; bottom: 0; left: 0; right: 24px; height: 4px; border-radius: 4px; background: linear-gradient(to right, #9bb4ff var(--home-progress), #395173 var(--home-progress)); content: ""; }
.home-metric + .home-metric::after { left: 24px; right: 0; background: linear-gradient(to right, #2c8fd6 var(--home-progress), #395173 var(--home-progress)); }
.home-metric-label { color: #aec0d9; font-size: 12px; font-weight: 500; }
.home-metric-value { display: block; color: #fff; font-size: 40px; line-height: 1; font-weight: 620; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.home-metric-result { display: flex; align-items: center; gap: 7px; color: #99b1d2; font-size: 11px; }
.home-metric-icon { display: block; width: 13px; height: 13px; color: #99b1d2; }
.home-metric-goal { font-size: 11px; font-weight: 500; }
.home-tip { display: flex; flex-direction: column; min-height: 178px; padding: 23px; background: #fcf7ed; border-color: #f2e9d9; }
.home-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; color: #c5a270; }
.home-section-icon { display: block; width: 23px; height: 23px; color: #7c91bd; }
.home-tip .home-section-icon { color: #bc985f; }
.home-card-arrow { display: block; width: 16px; height: 16px; margin-left: auto; color: #93a4bf; }
.home-tip-quote { display: block; margin-top: 20px; font-size: 19px; line-height: 1.4; font-weight: 540; letter-spacing: -.025em; color: #8f7654; }
.home-appointment-stats,
.home-extra-stats { grid-column: 1 / -1; padding: 20px; order: 20; }
.home-extra-stats-period { margin-left: auto; color: #8b97aa; font-size: 11px; font-weight: 500; }
.home-extra-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.home-extra-stats-grid button { display: grid; gap: 9px; min-height: 80px; padding: 14px; border: 0; border-radius: 12px; background: #f6f8fc; color: #75839b; font: inherit; font-size: 12px; text-align: left; }
.home-extra-stats-grid strong { color: #2f456c; font-size: 29px; font-weight: 650; letter-spacing: -.04em; }
.home-news,
.home-updates { display: flex; grid-column: span 6; order: 60; flex-direction: column; gap: 10px; min-height: 112px; padding: 20px; }
.home-news .home-section-heading,
.home-updates .home-section-heading { width: 100%; }
.home-news .home-section-icon { color: #d9ae6e; }
.home-updates .home-section-icon { color: #2c8fd6; }
.home-news-time { margin-left: auto; color: #9da8ba; font-size: 10px; font-weight: 500; }
.home-news-body { min-width: 0; margin-top: 3px; color: #8c98ab; font-size: 12px; line-height: 1.6; }
.home-news-copy { font-size: 12px; font-weight: 400; }
.home-news-copy strong { color: #5f7292; font-weight: 580; }
.home-shortcuts { grid-column: 1 / -1; order: 70; padding: 20px; }
.home-shortcuts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 12px; margin-top: 18px; }
.home-shortcuts button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 66px; padding: 13px; border: 1px solid #eef1f6; border-radius: 12px; background: #f9fafd; color: #657a9d; font: inherit; font-size: 11px; line-height: 1.4; text-align: left; }
.home-shortcut-icon { display: block; width: 23px; height: 23px; flex: 0 0 23px; color: #8b9dcc; }
.home-mastermind-mobile-detail { font-size: 9px; }
.home-shortcuts button[data-home-target="mastermind"] { flex-wrap: wrap; }
.home-shortcuts button:disabled { opacity: .5; }
.home-rail-mobile-shortcut { display: none !important; }
.home-dashboard-rail { display: contents; }
#homeDashboard[data-single-column="true"] .home-dashboard-rail { display: none; }
.home-rail-card { grid-column: span 4; order: 40; min-width: 0; padding: 20px; }
.home-rail-appointment { display: none !important; }
#homeDashboard[data-persona="agent"][data-rail-count="1"] .home-rail-card { grid-column: 1 / -1; }
#homeDashboard[data-persona="agent"][data-rail-count="1"] .home-followups-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
#homeDashboard[data-persona="agent"][data-rail-count="1"] .home-followups-overview { grid-column: 1 / -1; }
#homeDashboard[data-persona="agent"][data-rail-count="2"] .home-rail-card { grid-column: span 6; }
#homeDashboard[data-persona="manager"] .home-rail-followups { grid-column: span 4; order: 30; }
#homeDashboard[data-persona="manager"] .home-calendar-panel { grid-column: span 4; order: 40; }
#homeDashboard[data-persona="manager"] .home-operation-audits { grid-column: span 8; order: 50; }
#homeDashboard[data-persona="admin"] .home-rail-followups { grid-column: span 4; order: 50; }
.home-rail-head { display: flex; align-items: center; gap: 10px; }
.home-rail-card strong { font-size: 15px; font-weight: 650; line-height: 1.4; }
.home-rail-icon { display: block; width: 28px; height: 28px; padding: 5px; color: #8297ba; }
.home-rail-detail { display: block; margin-top: 16px; color: #9ba7b9; font-size: 12px; }
.home-rail-practice { display: grid; gap: 18px; }
.home-practice-avatar { display: block; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.home-practice-fields { display: grid; gap: 12px; }
.home-practice-fields label { display: grid; gap: 7px; color: #8a98ae; font-size: 11px; }
.home-practice-fields select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #e1e7f1; border-radius: 10px; background: #fff; color: #627797; font: inherit; font-size: 13px; }
.home-widget-primary { width: 100%; min-height: 44px; padding: 12px; border: 0; border-radius: 10px; background: #4669e5; color: #fff; font: inherit; font-size: 12px; font-weight: 600; }
.home-widget-close { display: none; }
.home-widget-backdrop { display: none; }
.home-followups-list { display: grid; gap: 5px; margin-top: 15px; color: #8a97ad; font-size: 12px; }
.home-followups-list.is-empty { padding: 20px 0; text-align: center; color: #6aa18b; }
.home-followups-overview { display: flex; align-items: center; gap: 28px; padding: 5px 0 13px; }
.home-followups-overview > span { display: grid; gap: 6px; }
.home-followups-overview strong { color: #4e668c; font-size: 26px; font-weight: 620; line-height: 1; }
.home-followups-overview > span > span { color: #98a5b9; font-size: 10px; }
.home-followups-overview > .is-overdue strong { color: #d09a57; }
.home-followup-item.is-overdue .home-followup-date { color: #b48b57; }
.home-followup-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 5px 8px; padding: 11px 0; border-bottom: 1px solid #edf1f7; }
.home-followup-name { grid-column: 1; overflow: hidden; color: #526887; font-size: 12px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.home-followup-date { grid-column: 1; color: #9da9bb; font-size: 10px; }
.home-followup-menu-toggle { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #8a9bb5; font: inherit; font-size: 23px; }
.home-followup-menu { position: absolute; z-index: 6; top: calc(100% - 6px); right: 0; display: grid; width: 180px; padding: 5px; border: 1px solid #e3e9f2; border-radius: 13px; background: #fff; box-shadow: 0 12px 32px #1a31551f; }
.home-followup-menu button { min-height: 44px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #5f7394; font: inherit; font-size: 12px; text-align: left; }
.home-followups-status { margin-top: 8px; color: #7d8eaa; font-size: 11px; }
.home-followups-status:empty { display: none; }
.home-mastermind-live { display: inline-flex; margin-left: auto; padding: 4px 7px; border-radius: 6px; background: #fce8e9; color: #cc7b83; font-size: 9px; }
.home-office { grid-column: 1 / -1; order: 70; }
.home-office-scene { height: 280px; overflow: hidden; }

@media (hover: hover) and (pointer: fine) {
  .home-operation-open:hover,
  .home-widget-link:hover,
  .home-followup-menu button:hover,
  .home-followup-menu-toggle:hover { background: #f2f5fa; }
  .home-operation-metric:hover { background: #f8faff; }
  .home-operation-appointment:hover,
  .home-team-row:hover,
  .home-audit-item:hover { background: #fafbfe; }
  .home-shortcuts button:hover { border-color: #d9e2f3; background: #f3f6fd; }
  .home-contact-link:hover { background: #3a567e; }
}

@container (max-width: 950px) {
  .home-dashboard-main { display: contents; }
  .home-operation-section { padding: 18px; }
  .home-activity-panel { grid-column: span 7; }
  .home-calendar-panel { grid-column: span 5; }
  .home-team-panel { grid-column: 1 / -1; }
  .home-operation-audits,
  .home-people-panel { grid-column: span 6; }
  #homeDashboard[data-persona="admin"] .home-operation-audits { grid-column: span 7; }
  #homeDashboard[data-persona="admin"] .home-calendar-panel { grid-column: span 5; }
  #homeDashboard[data-persona="admin"] .home-activity-panel { grid-column: span 7; }
  #homeDashboard[data-persona="admin"] .home-people-panel { grid-column: span 5; }
  #homeDashboard[data-persona="admin"] .home-team-panel { grid-column: span 7; }
  #homeDashboard[data-persona="admin"] .home-rail-followups { grid-column: span 5; }
  #homeDashboard[data-persona="manager"] .home-activity-panel,
  #homeDashboard[data-persona="manager"] .home-team-panel,
  #homeDashboard[data-persona="manager"] .home-operation-audits { grid-column: span 7; }
  #homeDashboard[data-persona="manager"] .home-rail-followups,
  #homeDashboard[data-persona="manager"] .home-calendar-panel,
  #homeDashboard[data-persona="manager"] .home-people-panel { grid-column: span 5; }
  .home-audit-distribution { gap: 12px; }
  .home-audit-ring { width: 103px; height: 103px; flex-basis: 103px; }
  .home-audit-ring > span { width: 79px; height: 79px; }
}

@container (max-width: 720px) {
  .home-activity-panel,
  .home-calendar-panel,
  .home-team-panel,
  .home-operation-audits,
  .home-people-panel,
  .home-next-visit,
  .home-schedule-panel,
  #homeDashboard[data-persona="admin"] .home-operation-audits,
  #homeDashboard[data-persona="admin"] .home-calendar-panel,
  #homeDashboard[data-persona="admin"] .home-activity-panel,
  #homeDashboard[data-persona="admin"] .home-team-panel,
  #homeDashboard[data-persona="admin"] .home-people-panel,
  #homeDashboard[data-persona="admin"] .home-rail-followups,
  #homeDashboard[data-persona="manager"] .home-activity-panel,
  #homeDashboard[data-persona="manager"] .home-team-panel,
  #homeDashboard[data-persona="manager"] .home-people-panel,
  #homeDashboard[data-persona="manager"] .home-calendar-panel,
  #homeDashboard[data-persona="manager"] .home-operation-audits,
  #homeDashboard[data-persona="manager"] .home-rail-followups { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body.home-dashboard-view-active #setupView .workspace-main { gap: 12px; }
  body.home-dashboard-view-active #setupView #workspaceHeader { display: none; }
  body.home-dashboard-view-active .workspace-mobile-topbar { min-height: 60px; padding: 9px 13px; border-radius: 16px; }
  body.home-dashboard-view-active .workspace-mobile-brand { gap: 9px; }
  body.home-dashboard-view-active .workspace-mobile-brand > img { width: 36px; height: 36px; }
  body.home-dashboard-view-active .workspace-mobile-brand-copy > strong { font-size: 15px; }
  body.home-dashboard-view-active .workspace-mobile-brand-copy > span { font-size: 10px; }
  body.home-dashboard-view-active .workspace-mobile-menu-toggle { width: 44px; height: 44px; min-height: 44px; border-radius: 12px; }
  #homeDashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-dashboard-main { display: contents; }
  .home-dashboard-heading { flex-wrap: wrap; gap: 10px; padding: 4px 1px 6px; }
  .home-dashboard-heading h1 { font-size: 25px; }
  .home-dashboard-date { order: 3; width: 100%; margin-left: 0; font-size: 11px; }
  .home-preview-select { margin-left: auto; max-width: 150px; min-height: 44px; font-size: 16px; }
  .home-dashboard-top { gap: 12px; grid-template-columns: 1fr; }
  .home-dashboard-metrics { min-height: 167px; padding: 21px; }
  .home-metric { gap: 12px; padding-right: 20px; }
  .home-metric + .home-metric { padding-left: 20px; }
  .home-metric::after { right: 20px; }
  .home-metric + .home-metric::after { left: 20px; }
  .home-metric-label { font-size: 11px; }
  .home-metric-value { font-size: 34px; }
  .home-tip { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 16px 19px; }
  .home-tip-head { width: 23px; flex: 0 0 23px; }
  .home-tip-head .home-card-arrow { display: none; }
  .home-tip-quote { margin-top: 0; font-size: 15px; line-height: 1.4; }
  .home-overview-metrics { gap: 8px; }
  .home-overview-metrics .home-operation-metric { min-height: 119px; padding: 13px 11px; gap: 15px; border-radius: 14px; }
  .home-overview-metrics .home-kpi-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 9px; }
  .home-overview-metrics .home-kpi-icon { width: 25px; height: 25px; flex-basis: 25px; padding: 6px; border-radius: 8px; }
  .home-overview-metrics .home-kpi-label { font-size: 11px; line-height: 1.4; }
  .home-overview-metrics .home-kpi-number { font-size: 27px; }
  .home-operation-section { padding: 18px 16px; border-radius: 17px; }
  .home-section-heading { font-size: 14px; }
  .home-operation-heading { margin-bottom: 14px; }
  .home-activity-panel,
  .home-calendar-panel,
  .home-team-panel,
  .home-operation-audits,
  .home-people-panel,
  .home-next-visit,
  .home-schedule-panel,
  #homeDashboard[data-persona="admin"] .home-operation-audits,
  #homeDashboard[data-persona="admin"] .home-calendar-panel,
  #homeDashboard[data-persona="admin"] .home-activity-panel,
  #homeDashboard[data-persona="admin"] .home-team-panel,
  #homeDashboard[data-persona="admin"] .home-people-panel,
  #homeDashboard[data-persona="manager"] .home-people-panel { grid-column: 1 / -1; }
  #homeDashboard[data-persona="manager"] .home-people-panel .home-operation-heading { margin-bottom: 14px; }
  .home-chart-toolbar { gap: 10px; }
  .home-chart-summary strong { font-size: 28px; }
  .home-series-tabs button { min-height: 44px; padding: 9px 10px; font-size: 10px; }
  .home-chart-summary > span { font-size: 10px; }
  .home-activity-chart { height: 166px; gap: 10px; }
  .home-chart-value { font-size: 9px; }
  .home-chart-date { font-size: 9px; }
  .home-operation-calendar-metrics { gap: 10px; margin-bottom: 8px; }
  .home-operation-calendar-metrics .home-operation-metric { min-height: 78px; padding: 12px; }
  .home-operation-appointment { min-height: 72px; }
  .home-operation-appointment-copy > strong { font-size: 12px; }
  .home-operation-appointment-copy > span { font-size: 11px; }
  .home-team-table-head,
  .home-team-row { grid-template-columns: minmax(98px, 1fr) repeat(3, minmax(35px, .35fr)); gap: 5px; }
  .home-team-table-head { font-size: 8px; }
  .home-team-row { font-size: 11px; }
  .home-team-person { gap: 7px; }
  .home-person-avatar { width: 27px; height: 27px; flex-basis: 27px; font-size: 9px; }
  .home-team-name > strong { font-size: 10px; }
  .home-audit-ring { width: 122px; height: 122px; flex-basis: 122px; }
  .home-audit-ring > span { width: 94px; height: 94px; }
  .home-audit-distribution,
  #homeDashboard[data-persona="admin"] .home-audit-distribution { justify-content: flex-start; gap: 25px; padding-top: 5px; }
  .home-audit-legend { gap: 17px; }
  .home-audit-legend > span { font-size: 11px; }
  .home-next-visit { padding: 20px; }
  .home-next-content h3 { font-size: 25px; }
  .home-next-notes { font-size: 12px; }
  .home-next-actions { gap: 8px; }
  .home-next-open,
  .home-contact-link { font-size: 11px; padding: 11px 13px; }
  .home-schedule-panel .home-activity-chart { min-height: 168px; margin-top: 13px; }
  #homeDashboard[data-persona="closer"] .home-operation-appointments { grid-template-columns: 1fr; }
  .home-news,
  .home-updates { grid-column: 1 / -1; min-height: 106px; padding: 18px 16px; }
  .home-shortcuts { padding: 18px 16px; }
  .home-shortcuts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
  .home-shortcuts button { min-height: 70px; font-size: 11px; padding: 12px; }
  .home-dashboard-rail { display: contents; }
  .home-rail-card,
  #homeDashboard[data-persona="agent"][data-rail-count="2"] .home-rail-card,
  #homeDashboard[data-persona="manager"] .home-rail-followups,
  #homeDashboard[data-persona="manager"] .home-calendar-panel,
  #homeDashboard[data-persona="manager"] .home-operation-audits,
  #homeDashboard[data-persona="admin"] .home-rail-followups { grid-column: 1 / -1; padding: 18px 16px; }
  #homeDashboard[data-persona="agent"][data-rail-count="1"] .home-followups-list { grid-template-columns: 1fr; }
  .home-practice-fields select { font-size: 16px; }
  .home-rail-mobile-shortcut { display: none !important; }
}

@media (max-width: 360px) {
  .home-overview-metrics .home-kpi-number { font-size: 25px; }
  .home-overview-metrics .home-kpi-label { font-size: 10px; }
  .home-audit-distribution,
  #homeDashboard[data-persona="admin"] .home-audit-distribution { gap: 16px; }
  .home-audit-ring { width: 103px; height: 103px; flex-basis: 103px; }
  .home-audit-ring > span { width: 79px; height: 79px; }
  .home-next-actions { gap: 6px; }
  .home-next-open,
  .home-contact-link { gap: 7px; padding: 11px; }
}

@media (pointer: coarse) {
  #homeDashboard select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #homeDashboard button,
  #homeDashboard a { transition: none; }
  #homeDashboard button:active:not(:disabled),
  #homeDashboard a:active { transform: none; }
}

/* Secondary data stays readable at compact dashboard sizes. */
.home-dashboard-date,
.home-kpi-label,
.home-overview-label,
.home-chart-summary > span,
.home-chart-value,
.home-chart-date,
.home-operation-appointment-copy > span,
.home-appointment-date > span,
.home-team-table-head,
.home-audit-legend > span,
.home-audit-ring > span > span,
.home-audit-item,
.home-people-total > span,
.home-people-breakdown > div,
.home-news-time,
.home-news-body,
.home-followups-list,
.home-followup-date,
.home-followups-overview > span > span,
.home-extra-stats-period,
.home-practice-fields label,
.home-rail-detail { color: var(--home-muted); }
.home-person-avatar { color: #4b6796; }
.home-team-row:nth-child(3n) .home-person-avatar { color: #1f4b9d; }
.home-team-row:nth-child(3n + 1) .home-person-avatar { color: #89673c; }
.home-tip-quote { color: #7a6449; }
.home-followup-item.is-overdue .home-followup-date,
.home-followups-overview > .is-overdue strong { color: #927040; }

.home-calendar-panel .home-operation-calendar-metrics .home-operation-metric { flex-direction: row; align-items: center; min-height: 54px; gap: 9px; padding: 11px; }
.home-calendar-panel .home-operation-calendar-metrics .home-kpi-head { flex: 1; }
.home-calendar-panel .home-operation-calendar-metrics .home-kpi-label { font-size: 10px; line-height: 1.4; }
.home-calendar-panel .home-operation-calendar-metrics .home-kpi-number { flex: 0 0 auto; font-size: 22px; }
.appointment-report-item[tabindex="-1"]:focus { outline: 2px solid #315fb2; outline-offset: 3px; }

/* Setter home: today's minimums, comparable results, compact commitments. */
body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) { background: #fafbfd; }
body.home-dashboard-view-active .workspace-nav { gap: 2px; }
body.home-dashboard-view-active .workspace-nav-button { min-height: 42px; padding-block: 8px; }
body.home-dashboard-view-active .workspace-logo { margin-bottom: 10px; }
@media (min-width: 1101px) {
  body.home-dashboard-view-active:not(.workspace-sidebar-collapsed):has(#homeDashboard[data-persona="agent"]) #setupView:not([hidden]) .workspace-shell {
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 24px;
  }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #setupView:not([hidden]) #workspaceSidebar { padding: 24px 12px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-logo { padding: 8px 4px 4px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-logo img { width: 32px; height: 32px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-sidebar-toggle { gap: 8px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-logo-copy strong { font-size: 12px; letter-spacing: .035em; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-nav-button { gap: 9px; padding-inline: 10px; border-radius: 9px; font-size: 13px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-nav-icon { width: 20px; flex-basis: 20px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-profile { gap: 8px; padding-inline: 0; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-profile-avatar { width: 30px; height: 30px; font-size: 11px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-profile-copy strong { font-size: 12px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #workspaceSidebar .workspace-profile-copy span { font-size: 11px; }
}
#homeDashboard[data-persona="agent"] { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 14px; --home-ink: #101f3c; --home-muted: #58677e; --home-blue: var(--primary-deep, #1f4b9d); --home-brand: var(--primary, #2c8fd6); --home-orange: #e56e35; --home-success: #12835a; --home-line: #e4e9f1; --home-surface-shadow: 0 4px 16px #0d1b3e08, 0 1px 2px #0d1b3e04; }
#homeDashboard[data-persona="agent"] .home-dashboard-heading { flex-wrap: nowrap; gap: 10px; margin: 0; padding: 0 0 2px; }
#homeDashboard[data-persona="agent"] .home-dashboard-heading h1 { flex: 1 1 auto; min-width: 0; font-size: 25px; font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.home-quickbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.home-quickbar button { display: inline-flex; align-items: center; justify-content: center; flex-direction: row-reverse; gap: 7px; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--home-blue); font: inherit; font-size: 12px; font-weight: 650; }
.home-quickbar > [data-home-target="new-appointment"] { background: var(--home-blue); color: #fff; }
#homeDashboard .home-quickbar svg { width: 15px; height: 15px; }
.home-tools { position: relative; }
.home-quickbar .home-tools-toggle { flex-direction: row; padding-inline: 8px; }
.home-tools-toggle::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.home-tools-menu { position: absolute; z-index: 100; top: calc(100% + 6px); right: 0; display: grid; width: 184px; max-width: calc(100vw - 32px); padding: 5px; border: 1px solid #dbe4f0; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px #0d1b3e1f; }
.home-quickbar .home-tools-menu button { flex-direction: row; justify-content: flex-start; width: 100%; min-height: 44px; padding: 10px; border-radius: 6px; color: var(--home-blue); font-size: 12px; font-weight: 550; text-align: left; }
.home-performance-band { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: stretch; gap: 14px; order: 10; min-width: 0; padding: 8px; border: 1px solid var(--home-line); border-radius: 18px; background: #fff; box-shadow: var(--home-surface-shadow); }
#homeDashboard[data-persona="agent"] .home-performance-band > .home-dashboard-top { display: block; grid-column: auto; order: initial; min-width: 0; }
#homeDashboard[data-persona="agent"] .home-dashboard-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; height: 100%; min-height: 128px; padding: 14px 18px 16px; border: 0; border-radius: 12px; background: #102345; box-shadow: none; }
.home-operational-label { grid-column: 1 / -1; color: #b9cdeb; font-size: 11px; font-weight: 700; }
#homeDashboard[data-persona="agent"] .home-metric { display: grid; gap: 6px; padding: 0; min-width: 0; }
#homeDashboard[data-persona="agent"] .home-metric + .home-metric { padding: 0; border-left: 0; }
#homeDashboard[data-persona="agent"] .home-metric::after { display: none; }
#homeDashboard[data-persona="agent"] .home-metric-label { display: flex; align-items: center; gap: 6px; color: #edf3ff; font-size: 12px; font-weight: 700; }
.home-metric-check { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #34d39926; color: #6ce0b2; font-size: 11px; font-weight: 800; }
.home-metric-amount { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 11px; min-width: 0; }
#homeDashboard[data-persona="agent"] .home-metric-value { display: inline; color: #fff; font-size: 44px; line-height: 1.06; font-weight: 800; letter-spacing: -.045em; }
#homeDashboard[data-persona="agent"] .home-metric-goal { color: #adbed8; font-size: 17px; line-height: 1.1; white-space: nowrap; font-weight: 500; }
.home-metric-progress { display: block; width: 100%; height: 8px; border-radius: 5px; background: linear-gradient(to right, var(--home-brand, #2c8fd6) var(--home-progress), #3e5172 var(--home-progress)); }
.home-metric.is-complete .home-metric-progress { background: linear-gradient(to right, var(--home-brand, #2c8fd6) var(--home-progress), #3e5172 var(--home-progress)); }
.home-results-panel { display: flex; flex-direction: column; grid-column: auto; min-width: 0; }
#homeDashboard .home-results-select { appearance: auto; min-height: 40px; max-width: 140px; margin-left: auto; padding: 7px 12px; border: 1px solid var(--home-line); border-radius: 9px; background: #fff; color: var(--home-blue); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.home-results-metrics { position: relative; display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 128px; gap: 0; padding: 0; border: 0; background: transparent; }
.home-result-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; row-gap: 8px; min-width: 0; min-height: 0; padding: 12px 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-result-card + .home-result-card::before { display: none; }
.home-result-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
#homeDashboard .home-result-head svg { flex: 0 0 15px; width: 15px; height: 15px; color: var(--home-brand); }
.home-result-head h2 { min-width: 0; margin: 0; color: var(--home-ink); font: inherit; font-size: 13px; font-weight: 750; }
.home-result-card.is-qualified { background: transparent; }
.home-result-card.is-qualified h2 { color: #a94721; }
#homeDashboard .home-result-card.is-qualified .home-result-head svg { color: var(--home-orange); }
#homeDashboard .home-result-card:last-child .home-result-head svg { color: var(--home-blue); }
.home-result-amount { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 2px; }
.home-metric-info { display: grid; place-content: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #5b7191; font: inherit; font-size: 11px; font-weight: 600; }
.home-result-value { display: block; flex: 1; min-width: 0; min-height: 44px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--home-blue); font: inherit; font-size: clamp(34px, 4.5cqw, 52px); line-height: 1; letter-spacing: -.045em; font-weight: 800; text-align: left; font-variant-numeric: tabular-nums; }
#homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading { position: relative; min-height: 44px; gap: 6px; padding-right: 44px; margin-bottom: 0; }
#homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading > .home-section-heading { flex: 0 0 auto; }
#homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading > .home-metric-info { position: absolute; right: -8px; top: 0; width: 44px; height: 44px; min-height: 44px; }
#homeDashboard .home-activity-select { appearance: auto; flex: 0 1 150px; min-width: 0; width: 150px; min-height: 44px; margin-left: auto; padding: 6px 8px; border: 0; border-radius: 8px; background: #f6f8fc; color: var(--home-blue); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.home-result-card.is-qualified .home-result-value { color: #c65325; }
.home-result-trend-wrap { position: static; flex: 0 0 44px; align-self: center; }
.home-result-trend { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #65758c; font: inherit; font-size: 14px; line-height: 1; font-weight: 800; white-space: nowrap; }
.home-result-trend.is-up { color: var(--home-blue, #1f4b9d); }
.home-result-trend.is-down { color: var(--danger, #cf4f4a); }
.home-trend-tooltip { position: fixed; z-index: 15010; display: grid; gap: 7px; width: min(300px, calc(100vw - 32px)); max-height: min(360px, calc(100dvh - 32px)); overflow-y: auto; padding: 14px; border: 1px solid #dbe4f0; border-radius: 10px; background: #fff; box-shadow: 0 10px 32px #0d1b3e26; color: #0d1b3e; font-size: 12px; line-height: 1.45; text-align: left; font-weight: 400; }
.home-trend-summary { font-size: 13px; font-weight: 700; }
.home-trend-counts { color: #384e6d; }
.home-trend-range, .home-trend-cutoff { color: #53637a; font-size: 11px; }
#homeDashboard[data-persona="agent"] .home-activity-panel { display: block; grid-column: span 8; order: 30; align-self: start; padding: 16px 18px; border: 1px solid var(--home-line); border-radius: 14px; box-shadow: var(--home-surface-shadow); }
#homeDashboard[data-persona="agent"] .home-operation-heading { margin-bottom: 10px; }
#homeDashboard[data-persona="agent"] .home-section-heading { font-size: 16px; font-weight: 800; color: var(--home-ink); }
.home-chart-scroll { overflow-x: auto; overscroll-behavior-inline: contain; padding: 10px 0 8px; }
#homeDashboard[data-persona="agent"] .home-activity-chart { position: relative; flex: none; height: 146px; min-height: 146px; max-height: 146px; padding-top: 24px; gap: 9px; background: none; }
.home-activity-chart.is-month { min-width: 700px; }
.home-compliance-chart.is-fortnight { min-width: 420px; }
#homeDashboard[data-persona="agent"] .home-compliance-chart.is-fortnight .home-chart-column.is-current,
#homeDashboard[data-persona="agent"] .home-compliance-chart.is-month .home-chart-column.is-current { flex: 0 0 34px; }
#homeDashboard[data-persona="agent"] .home-chart-bar { z-index: 1; background: var(--home-brand); border-radius: 5px 5px 0 0; }
#homeDashboard[data-persona="agent"] .home-chart-column.is-current .home-chart-bar { background: var(--home-blue); outline: none; }
#homeDashboard[data-persona="agent"] .home-chart-column.is-current .home-chart-value { color: var(--home-blue, #1f4b9d); font-weight: 700; }
#homeDashboard[data-persona="agent"] .home-chart-value { z-index: 2; padding-inline: 2px; background: #fff; color: #405574; font-size: 12px; font-weight: 750; }
#homeDashboard[data-persona="agent"] .home-chart-track { border-bottom: 0; }
#homeDashboard[data-persona="agent"] .home-chart-missing-label { width: 39px; padding: 0; color: #66758c; font-size: 10px; line-height: 1.3; text-align: center; white-space: normal; }
#homeDashboard[data-persona="agent"] .home-chart-column.is-current .home-chart-missing-label { left: auto; right: 0; transform: none; text-align: right; }
#homeDashboard[data-persona="agent"] .home-chart-column { position: relative; gap: 8px; padding-bottom: 0; }
#homeDashboard[data-persona="agent"] .home-chart-date { position: relative; flex: 0 0 16px; width: 100%; height: 16px; line-height: 16px; font-size: 11px; font-weight: 600; text-align: center; white-space: nowrap; }
#homeDashboard[data-persona="agent"] .home-chart-column.is-current .home-chart-date { border-radius: 5px; background: #eaf3fc; color: var(--home-blue); font-weight: 800; }
#homeDashboard[data-persona="agent"] .home-compliance-chart { --home-rise-ease: cubic-bezier(.23, 1, .32, 1); padding-top: 27px; }
.home-compliance-track { isolation: isolate; }
.home-compliance-mask { position: absolute; inset-block: 0; left: 50%; width: min(100%, 39px); transform: translateX(-50%); overflow: hidden; border-radius: 6px 6px 0 0; background: #f0f5fb; }
.home-compliance-fill { position: absolute; inset: 0; display: block; border-radius: 6px 6px 0 0; background: var(--home-brand, #2c8fd6); opacity: .38; }
.home-chart-column.is-complete .home-compliance-fill { opacity: 1; }
.home-chart-column.is-current .home-compliance-fill { background: var(--home-blue, #1f4b9d); opacity: .6; }
.home-chart-column.is-current.is-complete .home-compliance-fill { opacity: 1; }
#homeDashboard[data-persona="agent"] .home-compliance-value { margin-bottom: 5px; color: #6a7c95; font-size: 11px; line-height: 16px; font-weight: 700; white-space: nowrap; }
#homeDashboard[data-persona="agent"] .home-compliance-check { display: grid; place-items: center; width: 20px; height: 20px; margin-bottom: 6px; padding: 0; border-radius: 50%; background: #e6f2fc; color: var(--home-blue); font-size: 12px; font-weight: 800; }
.home-compliance-chart.is-entering .home-compliance-fill { animation: home-compliance-rise 160ms var(--home-rise-ease) backwards; }
.home-compliance-chart.is-entering .home-compliance-check { animation: home-compliance-check-in 60ms ease backwards; }
#homeDashboard[data-persona="agent"] .home-compliance-chart.is-month .home-compliance-value { padding-inline: 0; font-size: 9px; }
@keyframes home-compliance-rise { from { transform: translateY(100%); } }
@keyframes home-compliance-check-in { from { opacity: 0; } }
@keyframes home-compliance-soft-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .home-compliance-chart.is-entering .home-compliance-fill { animation-name: home-compliance-soft-in; animation-duration: 100ms; animation-delay: 0ms !important; }
  .home-compliance-chart.is-entering .home-compliance-check { animation-delay: 0ms !important; }
}
.home-commitments-column { display: grid; grid-template-columns: minmax(0, 1fr); grid-column: span 4; order: 30; align-self: start; min-width: 0; gap: 12px; }
.home-commitments-column > section { grid-column: 1 / -1; order: initial; }
#homeDashboard[data-persona="agent"] .home-calendar-panel, #homeDashboard[data-persona="agent"] .home-actions-panel { min-width: 0; padding: 14px 16px; border: 1px solid var(--home-line); border-radius: 14px; background: #fff; box-shadow: var(--home-surface-shadow); }
#homeDashboard[data-persona="agent"] .home-operation-appointment.home-compact-appointment { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 47px; padding: 8px 0; border-bottom: 0; }
.home-compact-when { color: #58677e; font-size: 11px; line-height: 1.5; }
.home-compact-name { overflow: hidden; color: var(--home-ink); font-size: 13px; line-height: 1.4; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.home-confirmation-state { color: #9b491d; font-size: 10px; line-height: 1.3; padding: 4px 6px; border-radius: 6px; background: #fff0e5; }
.home-confirmation-state.is-confirmed { color: #106c4a; background: #e6f5ee; }
.home-calendar-footer { display: flex; justify-content: space-between; gap: 10px; }
.home-definition-link { min-height: 36px; padding: 6px 0; border: 0; background: transparent; color: var(--home-blue); font: inherit; font-size: 12px; font-weight: 700; text-align: left; }
.home-calendar-empty, .home-action-empty { margin: 7px 0; color: #53637a; font-size: 12px; }
.home-action-row { display: flex; align-items: center; gap: 9px; min-height: 55px; padding: 7px 0; border-bottom: 0; }
.home-action-row:last-child { border-bottom: 0; }
.home-action-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.home-action-copy strong { overflow: hidden; color: var(--home-ink); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.home-action-copy > span { color: #58677e; font-size: 11px; line-height: 1.4; }
.home-overdue-label { justify-self: start; padding: 3px 6px; border-radius: 5px; background: #fff0e5; color: #9b491d; font-size: 10px; line-height: 1.3; font-style: normal; }
.home-action-open { min-height: 36px; padding: 7px 11px; border: 1px solid #c6d8ef; border-radius: 8px; background: #edf4fc; color: var(--home-blue); font: inherit; font-size: 12px; font-weight: 750; }
.home-source-status { display: block; grid-column: span 10; order: 40; justify-self: start; min-height: 36px; margin: -6px 0 0; padding: 5px 0; border: 0; background: transparent; color: #53637a; font: inherit; font-size: 10px; text-align: left; }
.home-compact-retry { grid-column: span 2; order: 40; justify-self: end; min-height: 32px; padding: 6px 10px; font-size: 10px; }
.home-bulletin { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; order: 60; padding: 16px 20px; }
.home-bulletin > h2 { grid-column: 1 / -1; }
.home-bulletin .home-news, .home-bulletin .home-updates { grid-column: auto; min-height: 0; padding: 9px 0; border: 0; background: transparent; color: inherit; text-align: left; }
#homeDashboard[data-persona="agent"] .home-agent-main-column { display: flex; flex-direction: column; grid-column: span 8; order: 30; align-self: stretch; min-width: 0; gap: 12px; }
#homeDashboard[data-persona="agent"] .home-agent-main-column > * { order: initial; margin-top: 0; }
#homeDashboard[data-persona="agent"] .home-agent-main-column > .home-activity-panel { display: flex; flex: 1; flex-direction: column; align-self: stretch; width: 100%; }
#homeDashboard[data-persona="agent"] .home-agent-main-column .home-chart-scroll { display: flex; flex: 1; min-height: 164px; }
#homeDashboard[data-persona="agent"] .home-agent-main-column .home-activity-chart { flex: 1; height: auto; min-height: 146px; max-height: none; }
#homeDashboard[data-persona="agent"] .home-commitments-column { display: flex; flex-direction: column; align-self: stretch; }
#homeDashboard[data-persona="agent"] .home-commitments-column > .home-calendar-panel { flex: 1; }
.home-agent-footer { display: flex; grid-column: 1 / -1; order: 40; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; min-width: 0; }
.home-agent-footer > .home-source-status { order: initial; flex: 1 1 180px; margin: 0; }
#homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar { display: flex; flex: 0 0 auto; flex-wrap: nowrap; width: auto; margin: 0; gap: 8px; }
#homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar button { min-height: 44px; padding: 10px 12px; border: 1px solid #c6d8ef; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; }
#homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar > [data-home-target="new-appointment"] { border-color: var(--home-blue); background: var(--home-blue); color: #fff; box-shadow: 0 3px 8px #1f4b9d22; }
#homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar .home-tools-menu button { border: 0; background: transparent; }
#homeDashboard[data-persona="agent"] .home-bulletin { display: block; min-width: 0; max-width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
#homeDashboard[data-persona="agent"] .home-bulletin > h2, #homeDashboard[data-persona="agent"] .home-updates { display: none; }
#homeDashboard[data-persona="agent"] .home-news { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; min-width: 0; width: 100%; max-width: 100%; padding: 14px 18px; border: 1px solid var(--home-line); border-radius: 14px; background: #fff; box-shadow: inset 4px 0 0 var(--home-orange), var(--home-surface-shadow); color: var(--home-ink); text-align: left; }
#homeDashboard[data-persona="agent"] .home-news .home-section-heading { width: 100%; gap: 8px; font-size: 16px; font-weight: 800; color: var(--home-ink); }
#homeDashboard[data-persona="agent"] .home-news .home-section-icon { display: block; width: 20px; height: 20px; color: var(--home-orange); }
#homeDashboard[data-persona="agent"] .home-news .home-card-arrow { display: block; flex: 0 0 16px; margin-left: 3px; color: var(--home-blue); }
#homeDashboard[data-persona="agent"] .home-news-body { display: block; min-width: 0; max-width: 100%; margin: 0; color: #384e6d; font-size: 13px; line-height: 1.5; white-space: normal; }
#homeDashboard[data-persona="agent"] .home-news-copy { display: block; min-width: 0; max-width: 100%; color: inherit; font: inherit; white-space: normal; }
#homeDashboard[data-persona="agent"] .home-news-author { display: block; margin-bottom: 4px; color: var(--home-ink); font-size: 12px; font-weight: 700; }
#homeDashboard[data-persona="agent"] .home-news-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
#homeDashboard[data-persona="agent"] .home-news-time { margin-left: auto; color: var(--home-muted); font-size: 11px; font-weight: 500; }
#homeDashboard[data-persona="agent"] .home-dashboard-rail { display: none; }
.home-detail-open { overflow: hidden; }
.home-detail-overlay { position: fixed; z-index: 14000; inset: 0; display: grid; place-items: center; padding: 24px; background: #12254266; overscroll-behavior: contain; }
.home-detail-sheet { display: flex; flex-direction: column; width: min(100%, 620px); max-height: min(85dvh, 780px); padding: 22px; border: 1px solid #e0e8f4; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px #11274433; color: #162b4b; text-align: left; }
.home-detail-heading { display: flex; align-items: center; gap: 15px; }
.home-detail-heading h2 { flex: 1; min-width: 0; margin: 0; color: inherit; font: inherit; font-size: 19px; line-height: 1.4; font-weight: 650; }
.home-detail-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 9px; background: #f1f5fb; color: #466188; font-size: 25px; }
.home-metric-definition { margin: 15px 0 5px; color: #53637a; font-size: 13px; line-height: 1.6; }
.home-source-time { display: block; color: #53637a; font-size: 10px; line-height: 1.5; margin: 8px 0 0; }
.home-detail-records { flex: 1; min-height: 0; overflow-y: auto; margin: 14px 0; overscroll-behavior: contain; }
.home-detail-record { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f7; font-size: 12px; }
.home-detail-record > span { display: grid; min-width: 0; gap: 4px; }
.home-detail-record span > span { color: #53637a; font-size: 11px; }
.home-detail-prior-heading { margin: 8px 0 0; font-size: 12px; }
.home-detail-report { align-self: flex-start; min-height: 44px; padding: 11px 15px; border: 0; border-radius: 9px; background: #2563eb; color: #fff; font: inherit; font-size: 12px; }
.home-checkout-sheet { width: min(100%, 440px); overflow-y: auto; overscroll-behavior: contain; }
#homeDashboard .home-checkout-report { display: block; flex: 0 0 auto; width: 100%; min-height: 240px; margin: 16px 0; padding: 14px; border: 1px solid var(--home-line); border-radius: 10px; background: #f7f9fc; color: var(--home-ink); font: inherit; font-size: 16px; line-height: 1.6; resize: vertical; user-select: text; -webkit-user-select: text; }
.home-checkout-copy { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--home-blue); cursor: pointer; }
#homeDashboard .home-checkout-copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-checkout-copy:disabled { opacity: .55; cursor: default; }
.home-checkout-send { align-self: stretch; margin-top: 14px; font-size: 14px; font-weight: 700; }
.home-checkout-send:disabled { opacity: .6; cursor: default; }
.home-checkout-status { margin: 14px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.5; }
.home-checkout-status:empty { display: none; }
.home-checkout-generate:active, .home-checkout-copy:active, .home-checkout-send:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .home-quickbar button:hover, .home-action-open:hover { background: #edf3ff; }
  .home-quickbar > [data-home-target="new-appointment"]:hover, .home-detail-report:hover { background: #153d83; }
  .home-metric-info:hover { background: #eef3fa; }
  .home-definition-link:hover { color: #2563eb; }
  .home-result-trend:hover { background: #f1f5fa; }
  #homeDashboard[data-persona="agent"] .home-news:hover { border-color: #d4deed; background: #fffdfb; }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar > [data-home-target="new-appointment"]:hover { background: #173d80; }
  #homeDashboard[data-persona="agent"] .home-action-open:hover { border-color: #86addb; background: #e2eefb; }
}
@container (max-width: 850px) {
  #homeDashboard[data-persona="agent"] .home-agent-main-column { grid-column: span 7; }
  .home-commitments-column { grid-column: span 5; }
  .home-compact-appointment { grid-template-columns: 65px minmax(0, 1fr) auto; }
}
@container (max-width: 650px) {
  #homeDashboard[data-persona="agent"] .home-agent-main-column, .home-commitments-column { grid-column: 1 / -1; }
}
@container (min-width: 760px) {
  #homeDashboard[data-persona="agent"] .home-metric-value { font-size: 44px; }
  #homeDashboard[data-persona="agent"] .home-metric-goal { font-size: 16px; }
  #homeDashboard[data-persona="agent"] .home-metric-amount { gap: 8px; }
}
@container (max-width: 900px) and (min-width: 760px) {
  .home-performance-band { gap: 8px; }
  #homeDashboard[data-persona="agent"] .home-metric-label { font-size: 11px; }
  #homeDashboard[data-persona="agent"] .home-metric-value { font-size: 38px; }
  .home-result-card { padding-inline: 8px; }
  .home-result-head h2 { font-size: 12px; }
}
@container (max-width: 759px) {
  .home-performance-band { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-results-metrics { min-height: 104px; }
  .home-result-card { padding-block: 16px 8px; }
}
@container (max-width: 900px) {
  #homeDashboard[data-persona="agent"] .home-agent-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  #homeDashboard[data-persona="agent"] .home-agent-heading h1 { grid-column: 1; grid-row: 1; }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-results-select { grid-column: 2; grid-row: 1; margin: 0; }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #setupView .workspace-shell { gap: 16px; }
  body.home-dashboard-view-active:has(#homeDashboard[data-persona="agent"]) #setupView .workspace-main { gap: 0; }
}
@media (max-width: 760px) {
  #homeDashboard[data-persona="agent"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  #homeDashboard[data-persona="agent"] .home-dashboard-heading { gap: 8px; }
  #homeDashboard[data-persona="agent"] .home-dashboard-heading h1 { flex: 1 1 auto; font-size: 22px; }
  .home-quickbar { flex-basis: auto; gap: 4px; }
  .home-quickbar button { min-height: 44px; padding: 9px; font-size: 11px; }
  #homeDashboard[data-persona="agent"] .home-dashboard-metrics { gap: 6px 15px; padding: 13px 16px 14px; border-radius: 14px; }
  #homeDashboard[data-persona="agent"] .home-metric + .home-metric { padding-left: 0; }
  #homeDashboard[data-persona="agent"] .home-metric-value { font-size: 36px; }
  #homeDashboard[data-persona="agent"] .home-metric-goal { font-size: 16px; }
  .home-metric-amount { gap: 7px; }
  #homeDashboard[data-persona="agent"] .home-metric-label { font-size: 11px; }
  #homeDashboard .home-results-select { width: 115px; min-height: 44px; padding-inline: 6px; }
  .home-results-metrics { gap: 0; }
  .home-result-card { padding: 14px 10px 4px; }
  .home-result-head h2 { font-size: 12px; }
  .home-metric-info { flex-basis: 24px; width: 24px; min-height: 30px; }
  .home-result-value { font-size: 34px; }
  #homeDashboard[data-persona="agent"] .home-agent-main-column { grid-column: 1 / -1; }
  #homeDashboard[data-persona="agent"] .home-activity-panel { padding: 14px; }
  .home-commitments-column { grid-column: 1 / -1; gap: 10px; }
  .home-source-status { grid-column: span 1; min-height: 44px; }
  .home-bulletin { grid-template-columns: 1fr; }
  .home-compact-retry { grid-column: span 1; }
  .home-definition-link, .home-action-open { min-height: 44px; }
  .home-detail-overlay { padding: 12px; }
  .home-detail-sheet { padding: 17px; max-height: calc(100dvh - 35px - env(safe-area-inset-bottom, 0px)); }
  .home-detail-heading h2 { font-size: 17px; }
  .home-agent-footer { flex-direction: column; align-items: stretch; gap: 6px; }
  .home-agent-footer > .home-source-status { order: 2; flex-basis: auto; }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar { flex-wrap: wrap; width: 100%; }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar > * { flex: 1 0 auto; }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar button { padding: 9px 6px; gap: 5px; font-size: 11px; }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar:has(.home-tools) > * { flex: 1 1 calc(50% - 4px); }
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-tools-toggle { width: 100%; }
}
@container (max-width: 420px) {
  #homeDashboard[data-persona="agent"] .home-agent-heading .home-quickbar > button:not([data-home-target="new-appointment"]) svg { display: none; }
  .home-result-card { align-content: start; gap: 4px; padding: 14px 8px 0; }
  .home-result-head { gap: 4px; }
  #homeDashboard .home-result-head svg { flex-basis: 13px; width: 13px; height: 13px; }
  .home-result-head h2 { font-size: 11px; }
  .home-result-amount { flex-wrap: wrap; gap: 0; }
  .home-result-value { flex-basis: 100%; font-size: 38px; }
  .home-result-trend-wrap { margin-left: -8px; }
  .home-result-trend { height: 44px; }
  #homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading > .home-section-heading { font-size: 14px; }
  #homeDashboard .home-activity-select { flex-basis: 132px; width: 132px; font-size: 11px; }
}
@media (max-width: 360px) {
  #homeDashboard[data-persona="agent"] .home-metric-value { font-size: 30px; }
  #homeDashboard[data-persona="agent"] .home-metric-goal { font-size: 14px; }
  #homeDashboard[data-persona="agent"] .home-dashboard-metrics { gap: 8px 11px; padding-inline: 13px; }
  #homeDashboard[data-persona="agent"] .home-metric + .home-metric { padding-left: 0; }
  #homeDashboard[data-persona="agent"] .home-metric-label { min-height: 28px; }
  #homeDashboard .home-activity-select { padding-inline: 6px; font-size: 11px; }
  #homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading { display: grid; grid-template-columns: minmax(0, 1fr) 44px; padding-right: 0; gap: 0 6px; }
  #homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading > .home-section-heading { grid-row: 1; grid-column: 1; }
  #homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading > .home-metric-info { position: static; grid-row: 1; grid-column: 2; }
  #homeDashboard .home-activity-select { grid-row: 2; grid-column: 1 / -1; justify-self: end; width: 132px; min-height: 36px; margin-left: 0; }
  #homeDashboard[data-persona="agent"] .home-chart-missing-label { width: 36px; font-size: 9px; }
  .home-result-card { padding-inline: 6px; }
  .home-result-head h2 { font-size: 11px; }
}
@media (pointer: coarse) and (max-width: 760px) {
  #homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading { display: grid; grid-template-columns: minmax(0, 1fr) 44px; padding-right: 0; gap: 0 6px; }
  #homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading > .home-section-heading { grid-row: 1; grid-column: 1; }
  #homeDashboard[data-persona="agent"] .home-activity-panel > .home-operation-heading > .home-metric-info { position: static; grid-row: 1; grid-column: 2; }
  #homeDashboard .home-activity-select { grid-row: 2; grid-column: 1 / -1; justify-self: end; width: 180px; min-height: 44px; margin-left: 0; font-size: 16px; }
}

/* Agent actions sit after the dashboard; Miami stays beside today's figures. */
.home-agent-footer .home-quickbar { margin: 0; gap: 8px; }
.home-agent-footer .home-tools-menu { top: auto; bottom: calc(100% + 6px); }
.home-performance-band.has-miami-context { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 140px; gap: 10px; }
#homeDashboard[data-persona="agent"] .has-miami-context .home-dashboard-metrics { min-height: 112px; padding: 12px 14px; }
#homeDashboard[data-persona="agent"] .has-miami-context .home-metric-value { font-size: 38px; }
#homeDashboard[data-persona="agent"] .has-miami-context .home-metric-goal { font-size: 15px; }
#homeDashboard[data-persona="agent"] .has-miami-context .home-metric-amount { gap: 7px; }
.has-miami-context .home-results-metrics { min-height: 112px; }
.has-miami-context .home-result-card { padding-inline: 10px; }
.has-miami-context .home-result-value { font-size: 38px; }
.home-miami-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-width: 0; padding: 12px 14px; border-radius: 11px; background: #f4f7fc; color: var(--home-ink); }
.home-miami-city { font-size: 11px; font-weight: 650; color: var(--home-muted); }
.home-miami-time { white-space: nowrap; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.home-miami-weather { white-space: nowrap; font-size: 14px; font-weight: 550; }
@container (max-width: 900px) {
  .home-performance-band.has-miami-context { grid-template-columns: minmax(0, 1fr) 132px; }
  #homeDashboard[data-persona="agent"] .has-miami-context > .home-dashboard-top { grid-column: 1 / -1; }
}
@container (max-width: 540px) {
  .home-performance-band.has-miami-context { grid-template-columns: minmax(0, 1fr); }
  .home-miami-card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px; }
  .home-miami-city { margin-right: auto; }
  .home-miami-time { font-size: 18px; }
}
@media (max-width: 760px) {
  .home-agent-footer .home-quickbar { width: 100%; gap: 4px; }
}

/* The entire Miami tile reflects the observed sky. */
.home-miami-card { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(145deg, #deefff, #a5cef1); color: #123557; --miami-art: none; }
.home-miami-card::before, .home-miami-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-miami-card::before { background: var(--miami-art) right center / auto 125% no-repeat; }
.home-miami-card::after { background: linear-gradient(90deg, #edf6ffb8, #edf6ff38 70%, transparent); }
.home-miami-city { color: inherit; opacity: .8; }
.home-miami-weather { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.home-miami-card[data-weather="sunny"] { background: linear-gradient(145deg, #fff0c5, #b8ddf8); }
.home-miami-card[data-weather="cloudy"], .home-miami-card[data-weather="fog"] { background: linear-gradient(145deg, #e5edf5, #b4c9dc); }
.home-miami-card[data-weather="rain"], .home-miami-card[data-weather="snow"] { background: linear-gradient(145deg, #c6e0f4, #83a9cb); }
.home-miami-card[data-weather="storm"] { background: linear-gradient(145deg, #b6cbdc, #6e8ba7); }
.home-miami-card[data-weather="sunny"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Ccircle%20cx%3D%22180%22%20cy%3D%2265%22%20r%3D%2255%22%20fill%3D%22%23ffe39b%22%20opacity%3D%22.38%22%2F%3E%3Ccircle%20cx%3D%22180%22%20cy%3D%2265%22%20r%3D%2240%22%20fill%3D%22%23ffd265%22%2F%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="partly"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Ccircle%20cx%3D%22180%22%20cy%3D%2265%22%20r%3D%2255%22%20fill%3D%22%23ffe39b%22%20opacity%3D%22.38%22%2F%3E%3Ccircle%20cx%3D%22180%22%20cy%3D%2265%22%20r%3D%2240%22%20fill%3D%22%23ffd265%22%2F%3E%3Cpath%20d%3D%22M105%20139c-20%200-32-13-32-28s11-27%2027-29c5-24%2024-40%2048-40%2027%200%2048%2018%2051%2043%2023-5%2043%2010%2043%2029%200%2015-12%2025-28%2025z%22%20fill%3D%22%23fff%22%20opacity%3D%22.88%22%2F%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="cloudy"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Cpath%20d%3D%22M105%20139c-20%200-32-13-32-28s11-27%2027-29c5-24%2024-40%2048-40%2027%200%2048%2018%2051%2043%2023-5%2043%2010%2043%2029%200%2015-12%2025-28%2025z%22%20fill%3D%22%23fff%22%20opacity%3D%22.88%22%2F%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="rain"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Cpath%20d%3D%22M105%20139c-20%200-32-13-32-28s11-27%2027-29c5-24%2024-40%2048-40%2027%200%2048%2018%2051%2043%2023-5%2043%2010%2043%2029%200%2015-12%2025-28%2025z%22%20fill%3D%22%23fff%22%20opacity%3D%22.88%22%2F%3E%3Cpath%20d%3D%22m112%20150-7%2016m40-16-7%2016m40-16-7%2016m40-16-7%2016%22%20stroke%3D%22%23549cda%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="storm"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Cpath%20d%3D%22M105%20139c-20%200-32-13-32-28s11-27%2027-29c5-24%2024-40%2048-40%2027%200%2048%2018%2051%2043%2023-5%2043%2010%2043%2029%200%2015-12%2025-28%2025z%22%20fill%3D%22%23fff%22%20opacity%3D%22.88%22%2F%3E%3Cpath%20d%3D%22m162%20125-22%2039h22l-14%2031%2043-48h-24l18-22z%22%20fill%3D%22%23ffda6b%22%2F%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="snow"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Cpath%20d%3D%22M105%20139c-20%200-32-13-32-28s11-27%2027-29c5-24%2024-40%2048-40%2027%200%2048%2018%2051%2043%2023-5%2043%2010%2043%2029%200%2015-12%2025-28%2025z%22%20fill%3D%22%23fff%22%20opacity%3D%22.88%22%2F%3E%3Cg%20fill%3D%22%23d0e5fa%22%3E%3Ccircle%20cx%3D%22112%22%20cy%3D%22158%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%22151%22%20cy%3D%22174%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%22190%22%20cy%3D%22155%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="fog"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Cpath%20d%3D%22M105%20139c-20%200-32-13-32-28s11-27%2027-29c5-24%2024-40%2048-40%2027%200%2048%2018%2051%2043%2023-5%2043%2010%2043%2029%200%2015-12%2025-28%2025z%22%20fill%3D%22%23fff%22%20opacity%3D%22.88%22%2F%3E%3Cpath%20d%3D%22M77%20154h142M96%20169h143M70%20184h121%22%20stroke%3D%22%23b8c9d9%22%20stroke-width%3D%226%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="night"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Cpath%20d%3D%22M195%2020a45%2045%200%201%200%2031%2071%2040%2040%200%200%201-31-71z%22%20fill%3D%22%23f5e6b9%22%2F%3E%3Cg%20fill%3D%22%23e7efff%22%20opacity%3D%22.8%22%3E%3Ccircle%20cx%3D%22111%22%20cy%3D%2228%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22246%22%20cy%3D%2243%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%22112%22%20r%3D%221.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-night="true"] { background: linear-gradient(145deg, #243d68, #11213f); color: #f5f8ff; }
.home-miami-card[data-night="true"]::after { background: linear-gradient(90deg, #11213fba, #11213f22 75%, transparent); }
.home-miami-card[data-night="true"][data-weather="partly"], .home-miami-card[data-night="true"][data-weather="cloudy"] { --miami-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20280%20210%22%3E%3Cpath%20d%3D%22M195%2020a45%2045%200%201%200%2031%2071%2040%2040%200%200%201-31-71z%22%20fill%3D%22%23f5e6b9%22%2F%3E%3Cg%20fill%3D%22%23e7efff%22%20opacity%3D%22.8%22%3E%3Ccircle%20cx%3D%22111%22%20cy%3D%2228%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22246%22%20cy%3D%2243%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%22112%22%20r%3D%221.5%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M105%20139c-20%200-32-13-32-28s11-27%2027-29c5-24%2024-40%2048-40%2027%200%2048%2018%2051%2043%2023-5%2043%2010%2043%2029%200%2015-12%2025-28%2025z%22%20fill%3D%22%23fff%22%20opacity%3D%22.32%22%2F%3E%3C%2Fsvg%3E"); }
.home-miami-card[data-weather="unavailable"] { background: #f4f7fc; color: var(--home-ink); --miami-art: none; }
.home-miami-card[data-weather="unavailable"]::after { background: none; }
.home-miami-card[data-weather="unavailable"] .home-miami-weather { font-size: 16px; font-weight: 550; }
@container (max-width: 540px) { .home-miami-weather { font-size: 20px; } }

/* Qualitative conditions replace numerical temperatures. */
.home-miami-weather { white-space: normal; overflow-wrap: break-word; font-size: 13px; font-weight: 650; line-height: 1.3; }
.home-miami-card[data-weather="unavailable"] .home-miami-weather { font-size: 12px; }
@container (max-width: 540px) { .home-miami-weather { max-width: 150px; font-size: 12px; } }
