#homeView .home-overview-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px 24px; margin-bottom:0; padding:24px 28px; border:1px solid #294764; border-top:4px solid #0866d9; border-radius:16px; background:#132d49; }
#homeView .home-overview-heading > div { min-width:0; }
#homeView .home-overview-heading h2 { margin:0; color:#fff; font-size:26px; font-weight:750; line-height:1.25; letter-spacing:-.02em; }
#homeView .home-overview-heading p { margin:6px 0 0; color:#d7e4f2; font-size:14px; line-height:1.5; }
#homeView .home-overview-heading .home-source-meta { display:block; width:auto; min-width:190px; padding:0; border:0; background:transparent; }
#homeView .home-overview-heading .home-cockpit-live { min-width:0; padding:10px 14px; border:1px solid #dce5ef; background:#f3f7fc; }
#homeView .home-overview-heading .home-cockpit-live.is-partial { background:#fff5df; border-color:#e8d3a5; }
#homeView .home-overview-heading .home-cockpit-live.is-loading { background:#eaf3ff; border-color:#bfd6f3; }
#homeView .home-overview-heading .home-cockpit-live strong { color:#344860; font-size:13px; }
#homeView .home-overview-heading .home-cockpit-live span { color:#53647a; font-size:13px; }
#homeView .home-overview-heading .home-cockpit-live > i { color:#138577; }
#homeView .home-overview-heading .home-cockpit-live.is-partial > i { color:#946000; }
#homeView .home-overview-heading .home-cockpit-live.is-loading > i { color:#3676af; }
#homeView .home-view-switch {
 display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
 width:100%; box-sizing:border-box; padding:7px; margin:0 0 24px;
 border:1px solid #d4dfeb; border-radius:16px; background:#e8edf5;
}
#homeView .home-view-switch .home-entry-tab {
 --home-entry-accent:#0866d9; --home-entry-ink:#0753b1; --home-entry-tint:#edf5ff; --home-entry-line:#bcd3ef; --home-entry-hover:#e2eeff;
 display:flex; align-items:center; gap:14px; min-width:0; min-height:92px;
 box-sizing:border-box; padding:16px 20px; border:1px solid var(--home-entry-line);
 border-radius:11px; color:var(--home-entry-ink); background:var(--home-entry-tint); text-decoration:none;
 transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
}
#homeView .home-view-switch #homePrioritiesTab { --home-entry-accent:#7148c8; --home-entry-ink:#603ab0; --home-entry-tint:#f4effb; --home-entry-line:#d6c7ed; --home-entry-hover:#ede3fb; }
#homeView .home-entry-tab-icon {
 display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px;
 border-radius:50%; background:#fff; color:var(--home-entry-ink); font-size:21px;
}
#homeView .home-entry-tab-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
#homeView .home-entry-tab-copy strong { color:inherit; font-size:18px; line-height:1.25; font-weight:750; }
#homeView .home-entry-tab-copy small { color:#4b5e74; font-size:13px; line-height:1.4; }
#homeView .home-view-switch .home-entry-tab[aria-current="page"] {
 background:var(--home-entry-accent); border-color:var(--home-entry-accent); color:#fff;
 box-shadow:0 4px 12px #19365424;
}
#homeView .home-entry-tab[aria-current="page"] .home-entry-tab-copy small { color:#fff; }
#homeView .home-business-nav {
 display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 24px;
}
#homeView .home-business-tab {
 display:flex; align-items:center; gap:10px; min-width:0; min-height:52px;
 box-sizing:border-box; padding:12px 16px; border:1px solid #dbe3ed;
 border-radius:10px; background:#fff; color:#4b5e74;
 text-decoration:none; font-size:14px; font-weight:650; line-height:1.35;
 transition:background-color 160ms ease,border-color 160ms ease;
}
#homeView .home-business-tab .bi { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border-radius:8px; background:#eaf2fb; font-size:18px; color:#0753b1; }
#homeView .home-business-tab[aria-current="page"] { background:#0866d9; border-color:#0866d9; color:#fff; }
#homeView .home-business-tab[aria-current="page"] .bi { background:#fff; color:#0753b1; }

/* Family colour belongs to the section heading; figures retain their own meaning. */
#homeView .management-tone-vn { --home-section-header:#0866d9; }
#homeView .management-tone-vo { --home-section-header:#7148c8; }
#homeView .management-tone-internal { --home-section-header:#596579; }
#homeView .management-tone-aftersales { --home-section-header:#007b84; }
#homeView #homeActivityBrief .management-section {
 --home-section-pad-y:24px; --home-section-pad-x:28px;
 padding:var(--home-section-pad-y) var(--home-section-pad-x);
 border-color:color-mix(in srgb,var(--home-section-header) 30%,#dce2e9);
 border-top-color:var(--home-section-header); background:#fff;
}
#homeView #homeActivityBrief .management-section > .management-section-heading {
 margin:calc(-1 * var(--home-section-pad-y)) calc(-1 * var(--home-section-pad-x)) 20px;
 padding:20px var(--home-section-pad-x); border:0; border-radius:9px 9px 0 0;
 background:var(--home-section-header); color:#fff;
}
#homeView #homeActivityBrief .management-section-title h3,
#homeView #homeActivityBrief .management-section-heading > p { color:#fff; }
#homeView #homeActivityBrief .management-section-icon { background:#fff; color:var(--home-section-header); }
#homeView #homeManagementBrief .management-stock { padding:0; border:0; border-radius:0; background:transparent; }
#homeView #homeManagementBrief .management-stock > .management-section-heading { padding:0; border:0; }
#homeView #homeManagementBrief .management-table-block {
 --home-objectives-pad-y:24px; --home-objectives-pad-x:28px;
 min-width:0; padding:var(--home-objectives-pad-y) var(--home-objectives-pad-x);
 border:1px solid #d4b27e; border-radius:12px; background:#fff;
 box-shadow:0 5px 18px #1936540f;
}
#homeView #homeManagementBrief .management-table-heading {
 align-items:center; gap:10px 20px;
 margin:calc(-1 * var(--home-objectives-pad-y)) calc(-1 * var(--home-objectives-pad-x)) 20px;
 padding:20px var(--home-objectives-pad-x); border:0; border-radius:11px 11px 0 0;
 background:#edab48; color:#261b0c;
}
#homeView #homeManagementBrief .management-table-heading :is(h3,h4) { min-width:0; color:#261b0c; font-size:23px; line-height:1.35; }
#homeView #homeManagementBrief .management-table-date { color:#4b391d; }

/* Strengthen the existing chart headings without changing any plotted series. */
#homeView .home-performance-group-heading { background:#0753b1; border-left-color:#72b4ff; }
#homeView .home-performance-group[data-performance-group="post-sales"] .home-performance-group-heading { background:#006a71; border-left-color:#70d5cd; }
#homeView .home-performance-group[data-performance-group] .home-performance-group-heading :is(span,p) { color:#fff; }
#homeView .home-performance-group-heading > a { border-color:#d3e2f2; }

/* The annual overview keeps each metric and its breakdown visible together. */
#homeView #homeCockpitKpis { grid-template-columns:minmax(0,1fr); gap:28px; }
#homeView .home-cockpit-kpi.home-kpi-expanded {
 --home-kpi-pad-y:28px; --home-kpi-pad-x:32px; --home-kpi-header:var(--home-family-accent); --home-kpi-header-text:#fff;
 display:block; grid-column:auto; min-height:0; padding:var(--home-kpi-pad-y) var(--home-kpi-pad-x); border-top-width:1px; background:#fff; cursor:default;
}
#homeView .home-cockpit-kpi.home-kpi-expanded[data-family="operations"] { --home-kpi-header:#007b84; }
#homeView .home-cockpit-kpi.home-kpi-expanded[data-family="inventory"] { --home-kpi-header:#edab48; --home-kpi-header-text:#261b0c; }
#homeView .home-kpi-expanded:hover { transform:none; }
#homeView .home-kpi-expanded .home-cockpit-kpi-top { justify-content:flex-start; gap:10px; margin:calc(-1 * var(--home-kpi-pad-y)) calc(-1 * var(--home-kpi-pad-x)) 24px; padding:18px var(--home-kpi-pad-x); border-radius:12px 12px 0 0; background:var(--home-kpi-header); color:var(--home-kpi-header-text); }
#homeView .home-kpi-expanded .home-cockpit-kpi-icon { background:#fff; color:var(--home-family-ink); }
#homeView .home-kpi-expanded .home-kpi-top--explained { flex-wrap:wrap; column-gap:14px; }
#homeView .home-kpi-top--explained .home-kpi-heading-label { font-size:16px; }
#homeView .home-kpi-heading-note { flex:1 1 300px; min-width:0; margin:0; color:var(--home-kpi-header-text); font-size:15px; font-weight:500; line-height:1.55; text-transform:none; }
#homeView .home-kpi-expanded-body { display:grid; grid-template-columns:minmax(210px,.65fr) minmax(0,1.5fr); gap:32px; align-items:center; }
#homeView .home-kpi-overview { min-width:0; }
#homeView .home-kpi-overview .home-cockpit-kpi-reading { display:grid; gap:10px; margin:0; }
#homeView .home-kpi-overview .home-cockpit-kpi-reading>span { font-size:16px; }
#homeView .home-kpi-overview .home-cockpit-kpi-reading>strong { font-size:clamp(30px,3.1vw,42px); overflow-wrap:anywhere; }
#homeView .home-kpi-overview .home-cockpit-kpi-reading>small { justify-self:start; font-size:13px; }
#homeView .home-kpi-overview .home-sales-kpi-baseline { font-size:13px; line-height:1.5; }
#homeView .home-kpi-overview .home-sales-units-reading { margin:22px 0 0; padding-top:20px; }
#homeView .home-kpi-overview .home-sales-units-scope { font-size:12px; }
#homeView .home-kpi-overview .home-margin-baseline { margin-top:22px; padding:16px; }
#homeView .home-kpi-overview .home-cockpit-kpi-reading+div { width:auto; grid-column:auto; grid-row:auto; margin-top:22px; }
#homeView .home-kpi-breakdown { min-width:0; border-left:1px solid #e2e8f0; padding-left:32px; }
#homeView .home-kpi-breakdown-body { display:grid; grid-template-columns:136px minmax(0,1fr); gap:20px; align-items:center; }
#homeView .home-kpi-breakdown--rate .home-kpi-breakdown-body,
#homeView .home-kpi-breakdown--rating .home-kpi-breakdown-body { grid-template-columns:minmax(0,1fr); }
#homeView .home-brand-rating-track { display:block; height:6px; margin-top:6px; overflow:hidden; border-radius:4px; background:#e4eaf1; }
#homeView .home-brand-rating-fill { display:block; height:100%; background:var(--brand-color); border-radius:inherit; }
#homeView .home-kpi-breakdown .home-brand-donut { width:136px; height:136px; }
#homeView .home-kpi-breakdown .home-brand-rows>li { gap:12px; padding:16px 0; grid-template-columns:40px minmax(0,1fr) auto; }
#homeView .home-kpi-breakdown .home-brand-rows>li:first-child { border-top:0; }
#homeView .home-kpi-breakdown .home-brand-name>strong { font-size:14px; }
#homeView .home-kpi-breakdown .home-brand-name>small { font-size:12px; }
#homeView .home-kpi-breakdown .home-brand-values>strong { font-size:20px; }
#homeView .home-kpi-breakdown .home-brand-values>span { font-size:13px; white-space:normal; }
#homeView .home-kpi-breakdown .home-brand-note { margin:20px 0 0; padding-top:14px; font-size:12px; }
#homeView .home-kpi-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:24px; margin-top:28px; padding-top:18px; border-top:1px solid #e2e8f0; }
#homeView .home-kpi-footer p { margin:0; color:#607089; font-size:13px; line-height:1.5; }
#homeView .home-kpi-footer a { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; color:#184e80; font-size:14px; font-weight:700; text-decoration:none; }
#homeView .home-kpi-footer a:focus-visible { outline:3px solid #3676af; outline-offset:4px; }
#homeView .home-kpi-breakdown-unavailable { margin:0; padding:24px; background:#f5f8fb; border-radius:10px; color:#607089; }
@media(max-width:1050px) {
 #homeView .home-business-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #homeView .home-kpi-expanded-body { grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr); gap:28px; }
 #homeView .home-kpi-breakdown { padding-left:24px; }
 #homeView .home-kpi-breakdown-body { grid-template-columns:1fr; gap:18px; }
 #homeView .home-kpi-breakdown .home-brand-donut { justify-self:center; }
}
@media(max-width:800px) {
 #homeView .home-cockpit-kpi.home-kpi-expanded { --home-kpi-pad-y:24px; --home-kpi-pad-x:24px; }
 #homeView .home-kpi-expanded-body { grid-template-columns:1fr; gap:28px; }
 #homeView .home-kpi-breakdown { padding:24px 0 0; border-left:0; border-top:1px solid #e2e8f0; }
 #homeView .home-kpi-breakdown-body { grid-template-columns:136px minmax(0,1fr); }
 #homeView .home-kpi-footer { align-items:flex-start; flex-direction:column; gap:14px; }
}
@media(max-width:480px) {
 #homeView .home-cockpit-kpi.home-kpi-expanded { --home-kpi-pad-y:20px; --home-kpi-pad-x:18px; }
 #homeView .home-kpi-breakdown-body { grid-template-columns:1fr; }
 #homeView .home-kpi-breakdown .home-brand-rows>li { grid-template-columns:30px minmax(0,1fr); gap:8px; }
 #homeView .home-kpi-breakdown .home-brand-mark { width:28px; }
 #homeView .home-kpi-breakdown .home-brand-mark img { width:24px; }
 #homeView .home-kpi-breakdown .home-brand-values { grid-column:2; text-align:left; }
}
#homeView .home-view-switch .home-entry-tab:focus-visible,
#homeView .home-business-tab:focus-visible { outline:3px solid #172b45; outline-offset:3px; }
@media(hover:hover) {
 #homeView .home-view-switch .home-entry-tab:hover { background:var(--home-entry-hover); border-color:var(--home-entry-accent); }
 #homeView .home-view-switch .home-entry-tab[aria-current="page"]:hover { background:var(--home-entry-accent); box-shadow:0 6px 16px #19365432; }
 #homeView .home-business-tab:hover { background:#f2f7fc; border-color:#0866d9; }
 #homeView .home-business-tab[aria-current="page"]:hover { background:#0753b1; }
}
@media(prefers-reduced-motion:reduce) {
 #homeView .home-view-switch .home-entry-tab,#homeView .home-business-tab { transition:none; }
}
#homeView [hidden], .intel-return-to-topic[hidden] { display:none !important; }
#homeView .home-cockpit-hero { margin-bottom:24px; padding:24px 28px; }
#homeView .home-cockpit-hero h2 { max-width:750px; margin:0 0 12px; font-size:clamp(25px,2.7vw,34px); line-height:1.2; }
#homeView .home-cockpit-hero p { max-width:740px; font-size:16px; }
#homeView .home-cockpit-agenda-count { display:none; }
#homeView .home-cockpit-decisions { margin-top:0; }
#homeView .home-recommendation-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
#homeView .home-recommendation-actions p { margin:0; color:#596579; font-size:13px; }
#homeView .home-recommendation-actions a { margin-left:auto; }
#homeView .home-cockpit-featured-heading { display:none; }
#homeView .home-simple-decision { padding:22px; gap:16px; min-height:0; text-decoration:none; }
#homeView .home-simple-decision h3 { font-size:20px; line-height:1.3; }
#homeView .home-simple-decision-main p { font-size:15px; line-height:1.55; margin:8px 0; color:#415168; }
.home-proposal-label { display:block; font-size:12px; font-weight:700; color:#57677c; margin-top:14px; }
.home-proposal-scope { display:block; color:#607089; font-size:12px; line-height:1.5; margin-top:14px; }
.home-proposal-action { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:16px; border-top:1px solid #e3e9f0; color:#184e80; font-weight:700; font-size:15px; }
.home-all-priorities { margin:24px 0; padding:18px 22px; border:1px solid #dbe3ed; border-radius:12px; background:white; }
.home-all-priorities>summary { cursor:pointer; color:#234969; font-size:16px; font-weight:700; }
.home-all-priorities[open]>summary { margin-bottom:20px; }
.home-business-intro { margin-bottom:24px; }
.home-business-intro h2 { font-size:28px; margin:0 0 10px; }
.home-business-intro p { color:#607089; font-size:16px; }
.home-conversation-entry { display:flex; justify-content:space-between; gap:20px; align-items:center; background:#f3f7fb; border:1px solid #dbe4ef; padding:22px 26px; margin:24px 0; border-radius:12px; }
.home-conversation-entry strong { font-size:18px; }
.home-conversation-entry p { margin:7px 0 0; color:#5c6c80; }
.intel-return-to-topic { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; border:1px solid #d7e2ef; border-radius:10px; background:#eff6fb; padding:12px 18px; margin-bottom:20px; }
.intel-return-to-topic a { font-weight:700; color:#214d77; }
@media(max-width:760px) {
 #homeView .home-overview-heading { padding:20px; }
 #homeView .home-view-switch .home-entry-tab { gap:10px; padding:14px; }
 #homeView .home-entry-tab-icon { flex-basis:36px; width:36px; height:36px; font-size:18px; }
 #homeView .home-entry-tab-copy strong { font-size:16px; }
 #homeView .home-business-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 #homeView .home-business-tab { min-height:48px; padding:11px 14px; }
 #homeView #homeActivityBrief .management-section { --home-section-pad-y:20px; --home-section-pad-x:16px; }
 #homeView #homeManagementBrief .management-table-block { --home-objectives-pad-y:20px; --home-objectives-pad-x:16px; }
 #homeView #homeManagementBrief .management-table-heading :is(h3,h4) { font-size:21px; }
 #homeView .home-cockpit-hero { padding:20px; }
 #homeView .home-source-meta { grid-template-columns:minmax(0,1fr); }
 .home-conversation-entry { flex-direction:column; align-items:flex-start; padding:20px; }
 #homeView .home-cockpit-decision-grid { grid-template-columns:1fr; }
 #homeView .home-simple-decision { padding:20px; }
}
@media(max-width:480px) {
 #homeView .home-overview-heading { gap:12px; }
 #homeView .home-overview-heading .home-source-meta { width:100%; }
 #homeView .home-business-tab { padding:10px; gap:8px; font-size:13px; }
 #homeView .home-business-tab .bi { flex-basis:28px; width:28px; height:28px; font-size:16px; }
 #homeView .home-view-switch { gap:6px; padding:5px; border-radius:14px; }
 #homeView .home-view-switch .home-entry-tab { flex-direction:column; align-items:flex-start; padding:12px; }
 #homeView .home-entry-tab-icon { flex-basis:32px; width:32px; height:32px; font-size:17px; }
 #homeView .home-entry-tab-copy strong { font-size:clamp(13px,4vw,15px); }
 #homeView .home-entry-tab-copy small { font-size:12px; }
}

#homeView .home-simple-decision-main { padding:20px 22px; }
#homeView .home-simple-decision-main p { font-size:14px; line-height:1.5; }
#homeView .home-simple-decision .home-proposal-action { padding:15px 22px; }
#homeView .home-simple-decision { display:flex; flex-direction:column; gap:0; }
#homeView .home-simple-decision-main { flex:1; }
#homeView .home-cockpit-hero { min-height:0; }
#homeView .home-cockpit-section-heading { margin-bottom:18px; }
#homeView .home-cockpit-section-heading h2 { margin:0; color:#172b45; font-size:24px; font-weight:750; line-height:1.25; letter-spacing:-.02em; }
/* Override the existing agenda grid only inside the three featured cards. */
#homeView .home-cockpit-decision-grid .home-simple-decision { display:flex; flex-direction:column; gap:0; padding:0; }
#homeView .home-cockpit-decision-grid .home-simple-decision-head { min-height:54px; padding:12px 20px; }
#homeView .home-cockpit-decision-grid .home-simple-decision-rank { width:30px; height:30px; flex-basis:30px; }
#homeView .home-cockpit-decision-grid .home-simple-decision-main { display:block; margin:0; padding:20px; }
#homeView .home-cockpit-decision-grid .home-simple-decision-main h3 { font-size:20px; line-height:1.3; }
#homeView .home-cockpit-decision-grid .home-simple-decision .home-proposal-action { padding:14px 20px; }

/* Optional analysis stays available after reading a recommendation's evidence. */
.intel-analyze-proposal {
 position:fixed; right:max(24px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom)); z-index:25;
 display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px;
 max-width:calc(100vw - 32px); box-sizing:border-box; padding:12px 18px;
 border:1px solid #b7cfe5; border-radius:24px; background:#fff; color:#214d77;
 box-shadow:0 4px 16px #173b6026; font-size:15px; line-height:1.35; font-weight:700; text-decoration:none;
}
.intel-analyze-proposal[hidden] { display:none !important; }
.intel-analyze-proposal:hover { background:#edf5ff; border-color:#214d77; }
.intel-analyze-proposal:focus-visible { outline:3px solid #0866d9; outline-offset:3px; }
body.has-proposal-evidence main { padding-bottom:88px; }
@media (max-width:600px) {
 .intel-analyze-proposal { right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); font-size:14px; padding:12px 16px; }
}
#homeView .home-decision-state { display:inline-block; margin:10px 0 6px; padding:4px 9px; border-radius:7px; font-size:12px; font-weight:700; line-height:1.45; color:#185448; background:#e9f4ee; }
#homeView .home-decision-state.is-pending { color:#78500c; background:#fff1d6; }
#homeView :is(.home-decision-notice,.home-decision-validation,.home-decision-benefit,.home-decision-validity) { margin:7px 0; font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
#homeView .home-decision-notice { color:#78500c; }
#homeView .home-decision-facts { display:flex; flex-wrap:wrap; gap:10px 18px; margin:10px 0; }
#homeView .home-decision-facts > div { flex:1 1 135px; min-width:0; }
#homeView .home-decision-facts dt { font-size:12px; color:#4b5e74; line-height:1.4; }
#homeView .home-decision-facts dd { margin:3px 0; font-size:18px; font-weight:750; color:#233e59; }
#homeView .home-decision-facts small { display:block; font-size:11px; line-height:1.5; color:#4b5e74; overflow-wrap:anywhere; }
#homeView .home-compact-decision .home-proposal-label { display:block; margin-top:9px; }
@media (min-width:1181px) {
  #homeView .home-compact-decision.is-typed { grid-template-columns:32px minmax(0,1fr) minmax(170px,.28fr) minmax(125px,.2fr) 18px; align-items:start; }
}
