/* Home dashboard: premium sales command center */
body[data-page-section="overview"] {
  --home-ink: #162c45;
  --home-muted: #72839a;
  --home-gold: #d5b47d;
  --home-line: rgba(121, 147, 177, .2);
  background:
    radial-gradient(ellipse at 8% 5%, rgba(204, 170, 112, .13), transparent 30%),
    radial-gradient(ellipse at 92% 22%, rgba(47, 101, 153, .1), transparent 32%),
    var(--bg, #f2f5f8);
}

body[data-page-section="overview"] .main-content {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 22px 28px 36px;
  gap: 20px;
}

body[data-page-section="overview"] .topbar {
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin-inline: auto;
  padding: 15px 20px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface, #fff) 86%, transparent);
  box-shadow: 0 12px 32px rgba(20, 46, 74, .07), inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
}
body[data-page-section="overview"] .topbar h2 { color: var(--home-ink); font-size: clamp(1.15rem, 1.8vw, 1.55rem); letter-spacing: -.03em; }
body[data-page-section="overview"] .content-section.active { width: 100%; max-width: none; margin-inline: auto; gap: 20px; }

/* The compact stylesheet hid these dashboard areas. Keep the full dashboard available. */
body[data-page-section="overview"] #overview .dashboard-shortcuts { display: grid !important; width: 100%; grid-template-columns: minmax(0, 1fr); }
body[data-page-section="overview"] #overview .dashboard-grid > .wide:not(.overview-personal-plan-panel) { display: block !important; }

body[data-page-section="overview"] .hero-card {
  position: relative;
  isolation: auto;
  overflow: visible;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-page-section="overview"] .hero-card::before,
body[data-page-section="overview"] .hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(225, 199, 157, .19);
  border-radius: 50%;
  pointer-events: none;
}
body[data-page-section="overview"] .hero-card::before { width: 430px; height: 430px; inset: -300px auto auto 20%; box-shadow: 0 0 0 35px rgba(225,199,157,.035), 0 0 0 75px rgba(225,199,157,.025); }
body[data-page-section="overview"] .hero-card::after { width: 290px; height: 290px; inset: auto -120px -215px auto; box-shadow: 0 0 0 27px rgba(255,255,255,.035); }
body[data-page-section="overview"] .hero-card::before,
body[data-page-section="overview"] .hero-card::after { display: none; }
body[data-page-section="overview"] .hero-card h3 { color: #203a55; }
body[data-page-section="overview"] .overview-command { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr); gap: clamp(18px, 2vw, 28px); align-items: start; }
body[data-page-section="overview"] .overview-command-copy { display: grid; align-content: start; gap: 12px; min-width: 0; }
body[data-page-section="overview"] .overview-command-copy > .eyebrow { display: none; }
body[data-page-section="overview"] .sales-card-headline { padding: 14px 18px; border: 1px solid var(--home-line); border-radius: 15px; background: #fff; box-shadow: 0 5px 0 #e9edf0, 0 9px 18px rgba(20,46,74,.045); }
body[data-page-section="overview"] .sales-card-headline h3 { margin: 0 0 7px; color: #203a55 !important; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.35; }
body[data-page-section="overview"] .sales-card-bio { max-width: 790px; margin: 0; color: #64758a; font-size: .92rem; line-height: 1.7; }
body[data-page-section="overview"] .overview-command-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
body[data-page-section="overview"] .overview-command-chips .hero-chip,
body[data-page-section="overview"] .crm-home-notifications-trigger { min-height: 52px; padding: 10px 13px; border: 1px solid var(--home-line); border-radius: 12px; color: #35536b; background: linear-gradient(150deg,#fff,#f8fafb); box-shadow: 0 4px 0 #e9edf0, 0 8px 15px rgba(20,46,74,.045); }
body[data-page-section="overview"] .overview-command-chips .hero-chip { display: grid; align-content: center; font-size: .83rem; font-weight: 700; }
body[data-page-section="overview"] .crm-home-notifications-trigger { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 800; transition: border-color .18s ease, box-shadow .18s ease; }
body[data-page-section="overview"] .crm-notification-bell { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; color: #35536b; background: #edf2f5; }
body[data-page-section="overview"] .crm-notification-bell svg { display: block; width: 18px; height: 18px; }
body[data-page-section="overview"] .crm-notification-label { flex: 1; text-align: start; }
body[data-page-section="overview"] .crm-home-notifications-trigger > span[aria-hidden="true"],
body[data-page-section="overview"] .pro-contact-card .sales-share-arrow { display: none; }
body[data-page-section="overview"] .crm-home-notifications-trigger:hover { border-color: #bacbd4; box-shadow: 0 5px 0 #e6ecef, 0 10px 18px rgba(20,46,74,.08); }
body[data-page-section="overview"] .crm-home-notifications-trigger b { display: inline-grid; min-width: 23px; height: 23px; padding-inline: 5px; place-items: center; border-radius: 99px; color: #fff; background: #b84c50; font-size: .72rem; }
body[data-page-section="overview"] .crm-home-notifications-trigger { position: relative; }
body[data-page-section="overview"] .crm-home-notifications-trigger b { position: absolute; top: -7px; inset-inline-end: -7px; border: 2px solid #fff; }

body[data-page-section="overview"] .sales-profile-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
body[data-page-section="overview"] .sales-profile-summary-grid article { display: grid; align-content: start; gap: 7px; min-width: 0; min-height: 108px; padding: 15px 16px; border: 1px solid var(--home-line); border-radius: 14px; background: linear-gradient(150deg,#fff,#f8fafb); box-shadow: 0 5px 0 #e9edf0, 0 9px 18px rgba(20,46,74,.05); }
body[data-page-section="overview"] .sales-profile-summary-grid small { color: #718195; font-size: .78rem; }
body[data-page-section="overview"] .sales-profile-summary-grid strong { color: #1d3856; font-size: clamp(1.08rem, 1.55vw, 1.4rem); overflow-wrap: anywhere; }
body[data-page-section="overview"] .sales-profile-summary-grid span,
body[data-page-section="overview"] .sales-profile-reasons ul { color: #65768a; font-size: .78rem; line-height: 1.6; }
body[data-page-section="overview"] .sales-profile-reasons { grid-column: 1 / -1; }
body[data-page-section="overview"] .sales-profile-reasons ul { margin: 0; padding-inline-start: 20px; }

body[data-page-section="overview"] .pro-contact-shell { perspective: none; width: 100%; }
body[data-page-section="overview"] .pro-contact-card {
  min-height: 0;
  padding: clamp(17px, 1.7vw, 23px);
  width: 100%;
  max-width: none;
  animation: none !important;
  transform: none !important;
  transition: none !important;
  border: 1px solid rgba(244, 227, 199, .34);
  border-radius: 24px;
  background: linear-gradient(145deg, #294c6f, #10243a 73%);
  box-shadow: 0 22px 38px rgba(5,18,33,.27), inset 1px 1px rgba(255,255,255,.18), inset -1px -1px rgba(0,0,0,.16);
}
body[data-page-section="overview"] .pro-contact-top { margin-bottom: 12px; }
body[data-page-section="overview"] .pro-contact-top h4 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); }
body[data-page-section="overview"] .pro-contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
body[data-page-section="overview"] .pro-contact-item { min-width: 0; min-height: 72px; padding: 11px 12px; }
body[data-page-section="overview"] .pro-contact-item strong { min-width: 0; overflow-wrap: anywhere; word-break: break-word; font-size: clamp(.85rem,1.1vw,1rem); }
body[data-page-section="overview"] .pro-contact-card::before { background: radial-gradient(circle at 20% 15%, rgba(230,199,147,.2), transparent 42%); }
body[data-page-section="overview"] .pro-contact-badge { display: grid; place-items: center; border: 1px solid rgba(237,213,173,.55); color: #f4dfb8; background: linear-gradient(145deg, rgba(232,207,165,.22), rgba(255,255,255,.05)); box-shadow: 0 9px 20px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.22); }
body[data-page-section="overview"] .pro-contact-top .eyebrow { color: #d8c49e; }
body[data-page-section="overview"] .pro-contact-item { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.075); box-shadow: inset 0 1px rgba(255,255,255,.08); }
body[data-page-section="overview"] .pro-contact-item span { color: rgba(240,245,250,.6); }
body[data-page-section="overview"] .pro-contact-item strong { color: #fff; }
body[data-page-section="overview"] .sales-share-trigger { border: 1px solid rgba(237,213,173,.55); border-radius: 12px; color: #f6e7ca; background: rgba(218,187,136,.12); }

body[data-page-section="overview"] .dashboard-shortcut-card {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 96px;
  padding: 17px 20px;
  border: 1px solid rgba(200,164,107,.35);
  border-radius: 20px;
  background: linear-gradient(105deg, #fcf8f0, #fff 70%);
  box-shadow: 0 12px 28px rgba(31,54,77,.08), inset 0 1px #fff;
}
body[data-page-section="overview"] .dashboard-shortcut-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #193956; background: linear-gradient(145deg, #ead9b9, #cda96d); box-shadow: 0 9px 18px rgba(122,88,37,.19), inset 0 1px rgba(255,255,255,.65); }
body[data-page-section="overview"] .dashboard-shortcut-card .eyebrow { margin-bottom: 4px; color: #957344; }
body[data-page-section="overview"] .dashboard-shortcut-card strong { color: #1d354f; }
body[data-page-section="overview"] .dashboard-shortcut-actions { display: flex; flex-wrap: wrap; gap: 8px; }

body[data-page-section="overview"] #overviewStats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
body[data-page-section="overview"] .overview-filter-donut-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 14px; }
body[data-page-section="overview"] .overview-filter-donut-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 228px;
  padding: 18px 14px;
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: linear-gradient(150deg, #fff, #f8fafc);
  box-shadow: 0 13px 30px rgba(20,46,74,.075), inset 0 1px #fff;
  cursor: pointer;
}
body[data-page-section="overview"] .overview-filter-donut-ring { width: 122px; height: 122px; max-width: 122px; max-height: 122px; }
body[data-page-section="overview"] .overview-filter-donut-ring svg { width: 122px; height: 122px; max-width: 122px; max-height: 122px; }
body[data-page-section="overview"] .overview-filter-donut-ring .donut-track { stroke: #e9eef3; stroke-width: 11; }
body[data-page-section="overview"] .overview-filter-donut-ring .donut-segment { stroke-width: 11; transition: stroke-dasharray .7s cubic-bezier(.2,.7,.2,1); }
body[data-page-section="overview"] .overview-filter-donut-center strong { color: #18324d; font-size: 1.4rem; }
body[data-page-section="overview"] .overview-filter-donut-title { color: #243e59; font-size: .9rem; text-align: center; }
body[data-page-section="overview"] .overview-filter-donut-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: .69rem; }

body[data-page-section="overview"] .overview-work-analysis { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-page-section="overview"] .overview-work-analysis > .panel-head { padding-bottom: 12px; border-bottom: 1px solid var(--home-line); }
body[data-page-section="overview"] .overview-top-panels { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 16px; align-items: stretch; }
body[data-page-section="overview"] .overview-top-panels > .panel { width: 100%; min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--home-line); border-radius: 18px; box-shadow: 0 9px 22px rgba(20,46,74,.06), inset 0 1px rgba(255,255,255,.85); }
body[data-page-section="overview"] .overview-work-analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,165px), 1fr)); gap: 10px; }
body[data-page-section="overview"] .overview-work-analysis-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 144px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: linear-gradient(150deg, #fff, #f7f9fb);
  box-shadow: 0 10px 22px rgba(20,46,74,.06), inset 0 1px #fff;
}
body[data-page-section="overview"] .overview-work-analysis-card::after { content: ""; position: absolute; inset: auto -24px -45px auto; width: 100px; height: 100px; border-radius: 50%; background: currentColor; opacity: .035; }
body[data-page-section="overview"] .overview-work-analysis-card small { color: var(--home-muted); font-size: .73rem; }
body[data-page-section="overview"] .overview-work-analysis-card strong { color: #1d3856; font-size: clamp(1.1rem, 1.5vw, 1.45rem); }
body[data-page-section="overview"] .overview-work-analysis-card span { color: var(--home-muted); font-size: .7rem; line-height: 1.5; }
body[data-page-section="overview"] .overview-work-analysis-card i { height: 7px; margin-top: auto; overflow: hidden; border-radius: 99px; background: #e9eef3; }
body[data-page-section="overview"] .overview-work-analysis-card i b { border-radius: inherit; box-shadow: 0 0 10px currentColor; transition: width .7s cubic-bezier(.2,.7,.2,1); }

body[data-page-section="overview"] .dashboard-grid { width: 100%; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
body[data-page-section="overview"] .dashboard-grid > * { width: 100%; max-width: none; min-width: 0; padding: 20px; border: 1px solid var(--home-line); border-radius: 22px; box-shadow: 0 13px 30px rgba(20,46,74,.07), inset 0 1px rgba(255,255,255,.85); }
body[data-page-section="overview"] .dashboard-grid > .wide { grid-column: 1 / -1; }
body[data-page-section="overview"] .dashboard-grid .panel-head { padding-bottom: 12px; border-bottom: 1px solid var(--home-line); }
body[data-page-section="overview"] .dashboard-grid .panel-head h3 { color: #203a55; }
body[data-page-section="overview"] .overview-personal-plan-panel { background: linear-gradient(145deg, #fcf8f0, #fff); border-color: rgba(200,164,107,.28); }
body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-panel-head { align-items: center; }
body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-panel-head h3 { color: #233c56; }
body[data-page-section="overview"] .overview-meeting-report { overflow-x: auto; }
body[data-page-section="overview"] #overviewCurveChart { border: 1px solid rgba(121,147,177,.14); border-radius: 16px; background: linear-gradient(180deg, #fff, #f9fbfd); }

/* The KPI host wraps one grid of cards; keep the wrapper full-width. */
body[data-page-section="overview"] #overviewStats { display: block !important; width: 100%; min-width: 0; }
body[data-page-section="overview"] #overviewStats > .overview-filter-donut-grid {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 18px;
  align-items: stretch;
}
body[data-page-section="overview"] .overview-filter-donut-card { min-height: 236px; padding: 20px 16px; }
body[data-page-section="overview"] .dashboard-grid > article > .panel-head .eyebrow { color: #a27d48; }

/* Entrance and pointer tilt are enabled on desktop, while touch remains still. */
body[data-page-section="overview"] .home-motion-card { transform-style: preserve-3d; will-change: transform; transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s ease, border-color .24s ease; }
body[data-page-section="overview"] .home-motion-card.home-tilting { transform: perspective(1100px) rotateX(var(--home-tilt-x, 0deg)) rotateY(var(--home-tilt-y, 0deg)) translateY(-4px); }
body[data-page-section="overview"] .home-enter { animation: homeCardEnter .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--home-delay, 0ms); }
@keyframes homeCardEnter { from { opacity: 0; translate: 0 17px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }

html[data-theme="dark"] body[data-page-section="overview"] { --home-ink: #edf3f8; --home-muted: #aab9c9; --home-line: rgba(157,180,204,.18); background: radial-gradient(ellipse at 8% 5%, rgba(165,128,71,.1), transparent 30%), #101a26; }
html[data-theme="dark"] body[data-page-section="overview"] .topbar,
html[data-theme="dark"] body[data-page-section="overview"] .dashboard-grid > *,
html[data-theme="dark"] body[data-page-section="overview"] .overview-top-panels > .panel,
html[data-theme="dark"] body[data-page-section="overview"] .overview-filter-donut-card,
html[data-theme="dark"] body[data-page-section="overview"] .overview-work-analysis-card,
html[data-theme="dark"] body[data-page-section="overview"] .sales-card-headline,
html[data-theme="dark"] body[data-page-section="overview"] .sales-profile-summary-grid article,
html[data-theme="dark"] body[data-page-section="overview"] .overview-command-chips .hero-chip,
html[data-theme="dark"] body[data-page-section="overview"] .crm-home-notifications-trigger { background: linear-gradient(145deg, #1b2a3a, #152231); color: #edf3f8; }
html[data-theme="dark"] body[data-page-section="overview"] :is(.topbar h2, .overview-filter-donut-title, .overview-filter-donut-center strong, .overview-work-analysis-card strong, .dashboard-grid .panel-head h3) { color: #edf3f8; }
html[data-theme="dark"] body[data-page-section="overview"] :is(.sales-card-headline h3, .sales-profile-summary-grid strong) { color: #edf3f8 !important; }
html[data-theme="dark"] body[data-page-section="overview"] :is(.sales-card-bio, .sales-profile-summary-grid small, .sales-profile-summary-grid span) { color: #aab9c9; }
html[data-theme="dark"] body[data-page-section="overview"] .dashboard-shortcut-card { background: linear-gradient(105deg, #252b31, #1b2937); }
html[data-theme="dark"] body[data-page-section="overview"] .dashboard-shortcut-card strong { color: #edf3f8; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-personal-plan-panel { background: linear-gradient(145deg, #252b31, #1b2937); }
html[data-theme="dark"] body[data-page-section="overview"] #overviewCurveChart { background: linear-gradient(180deg, #1b2a3a, #152231); }

@media (max-width: 1050px) {
  body[data-page-section="overview"] .main-content { padding-inline: 18px; }
  body[data-page-section="overview"] .overview-command { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 18px; }
  body[data-page-section="overview"] .overview-top-panels { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  body[data-page-section="overview"] .overview-work-analysis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page-section="overview"] .overview-top-panels .overview-work-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  body[data-page-section="overview"] .main-content { padding: 14px 12px 28px; gap: 14px; }
  body[data-page-section="overview"] .content-section.active { gap: 14px; }
  body[data-page-section="overview"] .overview-command { grid-template-columns: 1fr; }
  body[data-page-section="overview"] .overview-top-panels { grid-template-columns: 1fr; }
  body[data-page-section="overview"] .overview-command-chips { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-page-section="overview"] .pro-contact-card { min-height: 0; }
  body[data-page-section="overview"] .overview-work-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-section="overview"] .dashboard-grid { grid-template-columns: 1fr !important; }
  body[data-page-section="overview"] .dashboard-grid > .wide { grid-column: auto; }
  body[data-page-section="overview"] .dashboard-grid > * { padding: 16px; }
}
@media (min-width: 781px) {
  body[data-page-section="overview"] .overview-command { grid-template-columns: minmax(0, 1fr) minmax(420px, 1.05fr); }
  body[data-page-section="overview"] .pro-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body[data-page-section="overview"] .topbar { padding: 11px 13px; border-radius: 16px; }
  body[data-page-section="overview"] .hero-card { padding: 0; border-radius: 0; }
  body[data-page-section="overview"] .sales-profile-summary-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  body[data-page-section="overview"] .sales-profile-summary-grid article { min-height: 82px; padding: 10px; }
  body[data-page-section="overview"] .sales-profile-reasons { grid-column: 1 / -1; }
  body[data-page-section="overview"] .dashboard-shortcut-card { grid-template-columns: auto 1fr; gap: 11px; padding: 13px; }
  body[data-page-section="overview"] .dashboard-shortcut-actions { grid-column: 1 / -1; }
  body[data-page-section="overview"] .dashboard-shortcut-actions > * { flex: 1; }
  body[data-page-section="overview"] .overview-work-analysis-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  body[data-page-section="overview"] .overview-work-analysis-card { min-height: 132px; padding: 11px; }
  body[data-page-section="overview"] #overviewStats > .overview-filter-donut-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  body[data-page-section="overview"] .overview-filter-donut-card { min-height: 190px; padding: 12px 8px; }
  body[data-page-section="overview"] .overview-filter-donut-ring,
  body[data-page-section="overview"] .overview-filter-donut-ring svg { width: 102px; height: 102px; max-width: 102px; max-height: 102px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page-section="overview"] *, body[data-page-section="overview"] *::before, body[data-page-section="overview"] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.overview-priority-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.overview-priority-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line, #e7dfd1); }
.overview-priority-row > span { color: var(--muted, #70695e); font-size: .78rem; font-weight: 700; }
.overview-priority-row > strong { color: var(--text, #172b45); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.overview-priority-row > a,.overview-priority-open { grid-column: 1 / -1; color: var(--primary, #17375f); font-size: .74rem; text-decoration: underline; text-underline-offset: 3px; }
.overview-schedule-range { display: flex; gap: 14px; }
.overview-schedule-range-btn { padding: 4px 0; border: 0; border-bottom: 1px solid transparent; color: var(--muted, #70695e); background: none; font: inherit; font-size: .76rem; cursor: pointer; }
.overview-schedule-range-btn.is-active { border-bottom-color: currentColor; color: var(--primary, #17375f); font-weight: 800; }
@media (max-width: 760px) { .overview-priority-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; } }
@media (max-width: 440px) { .overview-priority-actions { grid-template-columns: 1fr 1fr; } }

/* Overview visual development: pass 1 — clearer hierarchy and live dashboard states. */
body[data-page-section="overview"] .sales-card-headline {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(218,190,145,.35);
  border-radius: 20px;
  background: linear-gradient(120deg,#183653,#274c6c 70%,#315978);
  box-shadow: 0 14px 30px rgba(20,46,74,.15), inset 0 1px rgba(255,255,255,.14);
}
body[data-page-section="overview"] .sales-card-headline::after {
  content: "";
  position: absolute;
  inset-block: -44px;
  inset-inline-end: -38px;
  width: 128px;
  border: 1px solid rgba(231,202,158,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(231,202,158,.035), 0 0 0 38px rgba(231,202,158,.025);
  pointer-events: none;
}
body[data-page-section="overview"] .sales-card-headline h3 { position: relative; z-index: 1; color: #fff !important; }
body[data-page-section="overview"] .sales-card-bio { position: relative; z-index: 1; color: rgba(239,245,250,.76); }
body[data-page-section="overview"] .overview-filter-donut-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(121,147,177,.22);
  background: linear-gradient(155deg,#fff 15%,#f6f9fb 100%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body[data-page-section="overview"] .overview-filter-donut-card::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg,#d2ad70,#4b8bb2);
  opacity: .7;
}
body[data-page-section="overview"] .overview-filter-donut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74,132,172,.4);
  box-shadow: 0 15px 30px rgba(20,46,74,.12);
}
body[data-page-section="overview"] .overview-priority-panel {
  background: linear-gradient(140deg,#fff,#f8fafb 70%,#f7f1e7);
}
body[data-page-section="overview"] .overview-priority-row {
  padding: 13px 12px;
  border: 1px solid transparent;
  border-bottom-color: var(--home-line);
  border-radius: 12px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
body[data-page-section="overview"] .overview-priority-row:hover {
  transform: translateY(-1px);
  border-color: rgba(121,147,177,.18);
  background: rgba(255,255,255,.76);
}
body[data-page-section="overview"] .overview-schedule-range-btn { min-height: 34px; padding: 5px 10px; border-radius: 9px 9px 0 0; }
body[data-page-section="overview"] .overview-schedule-range-btn.is-active { background: rgba(50,111,160,.08); }
body[data-page-section="overview"] #overviewCurveChart { width: 100%; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-filter-donut-card { background: linear-gradient(155deg,#203246,#172738); }
html[data-theme="dark"] body[data-page-section="overview"] .overview-priority-panel { background: linear-gradient(140deg,#203246,#172738 70%,#2a2b2b); }
html[data-theme="dark"] body[data-page-section="overview"] .overview-priority-row:hover { background: rgba(255,255,255,.045); }
@media (max-width:780px) {
  body[data-page-section="overview"] .sales-card-headline { border-radius: 16px; }
  body[data-page-section="overview"] .overview-priority-row { padding-inline: 9px; }
  body[data-page-section="overview"] .overview-filter-donut-card:hover { transform: none; }
}

/* Overview visual development: pass 2 — maintain readable text on every surface. */
body[data-page-section="overview"] { color: #263b52; }
body[data-page-section="overview"] :is(.overview-top-panels .panel-head h3, .dashboard-grid .panel-head h3, .overview-personal-plan-panel h3) { color: #203a55; }
body[data-page-section="overview"] :is(.overview-top-panels .subtle, .dashboard-grid .subtle, .overview-schedule-summary, .overview-filter-donut-meta) { color: #52677d; }
body[data-page-section="overview"] .overview-priority-row > span { color: #465d74; }
body[data-page-section="overview"] .overview-priority-row > a,
body[data-page-section="overview"] .overview-priority-open { color: #174f78; font-weight: 700; }
body[data-page-section="overview"] .overview-schedule-range-btn { color: #50657a; }
body[data-page-section="overview"] .overview-schedule-range-btn.is-active { color: #174f78; }
body[data-page-section="overview"] .overview-meeting-report { color: #263b52; }
body[data-page-section="overview"] .overview-work-analysis-card small,
body[data-page-section="overview"] .overview-work-analysis-card span { color: #52677d; }
html[data-theme="dark"] body[data-page-section="overview"] { color: #e0e8f0; }
html[data-theme="dark"] body[data-page-section="overview"] :is(.overview-top-panels .panel-head h3, .dashboard-grid .panel-head h3, .overview-personal-plan-panel h3, .overview-filter-donut-title, .overview-filter-donut-center strong, .overview-work-analysis-card strong) { color: #f0f5fa; }
html[data-theme="dark"] body[data-page-section="overview"] :is(.overview-top-panels .subtle, .dashboard-grid .subtle, .overview-schedule-summary, .overview-filter-donut-meta, .overview-work-analysis-card small, .overview-work-analysis-card span) { color: #b7c5d3; }
html[data-theme="dark"] body[data-page-section="overview"] .dashboard-grid > article > .panel-head .eyebrow { color: #e1c58f; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-priority-row > span { color: #c4d0dc; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-priority-row > a,
html[data-theme="dark"] body[data-page-section="overview"] .overview-priority-open { color: #9bc9eb; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-schedule-range-btn { color: #b9c7d4; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-schedule-range-btn.is-active { color: #f2d8a9; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-report { color: #e0e8f0; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-filter-donut-center strong { color: #f5f8fb; }

/* Five consecutive Overview refinement stages. */
/* Stage 1: give the hero chips consistent depth and focus feedback. */
body[data-page-section="overview"] .overview-command-chips .hero-chip { border-color: rgba(121,147,177,.22); box-shadow: 0 3px 0 #e6ebef, 0 8px 18px rgba(20,46,74,.06); }
body[data-page-section="overview"] .overview-command-chips .hero-chip:hover { border-color: rgba(193,158,103,.55); background: linear-gradient(145deg,#fff,#f8f2e8); }
body[data-page-section="overview"] .overview-command-chips .hero-chip:focus-visible { outline: 3px solid rgba(62,132,179,.45); outline-offset: 3px; }
/* Stage 2: unify section headers and card spacing. */
body[data-page-section="overview"] .overview-top-panels > .panel,
body[data-page-section="overview"] .dashboard-grid > * { min-width: 0; }
body[data-page-section="overview"] .overview-top-panels .panel-head,
body[data-page-section="overview"] .dashboard-grid .panel-head { gap: 12px; }
body[data-page-section="overview"] .overview-top-panels .panel-head h3,
body[data-page-section="overview"] .dashboard-grid .panel-head h3 { line-height: 1.4; }
/* Stage 3: make the task and appointment lists easier to scan. */
body[data-page-section="overview"] :is(#overviewDueList, #overviewFollowupList) { display: grid; gap: 9px; }
body[data-page-section="overview"] :is(#overviewDueList, #overviewFollowupList) .stack-item { padding: 13px 14px; border: 1px solid rgba(121,147,177,.17); border-radius: 14px; background: linear-gradient(145deg,#fff,#f8fafb); box-shadow: 0 4px 12px rgba(20,46,74,.045); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
body[data-page-section="overview"] :is(#overviewDueList, #overviewFollowupList) .stack-item:hover { transform: translateY(-1px); border-color: rgba(62,132,179,.35); box-shadow: 0 8px 18px rgba(20,46,74,.08); }
body[data-page-section="overview"] .stack-item > :is(div,span) { line-height: 1.55; }
/* Stage 4: sharpen chart controls and meeting history. */
body[data-page-section="overview"] .dashboard-grid .toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
body[data-page-section="overview"] .dashboard-grid .toolbar select { min-height: 38px; border: 1px solid rgba(121,147,177,.3); border-radius: 10px; color: #29445f; background: #fff; }
body[data-page-section="overview"] .overview-meeting-table { width: 100%; border-collapse: separate; border-spacing: 0; }
body[data-page-section="overview"] .overview-meeting-table th { position: sticky; top: 0; z-index: 1; color: #334f69; background: #f0f5f8; }
body[data-page-section="overview"] .overview-meeting-table :is(th,td) { padding: 11px 12px; border-bottom: 1px solid var(--home-line); text-align: start; }
body[data-page-section="overview"] .overview-meeting-table tbody tr:hover { background: rgba(56,119,164,.055); }
body[data-page-section="overview"] .overview-meeting-table td small { display: block; margin-top: 3px; color: #61758a; }
/* Stage 5: preserve the improvements across themes, devices and keyboard use. */
body[data-page-section="overview"] :is(button,a,select):focus-visible { outline: 3px solid rgba(62,132,179,.5); outline-offset: 2px; }
html[data-theme="dark"] body[data-page-section="overview"] :is(#overviewDueList,#overviewFollowupList) .stack-item { border-color: rgba(157,180,204,.18); color: #e0e8f0; background: linear-gradient(145deg,#203246,#172738); }
html[data-theme="dark"] body[data-page-section="overview"] :is(#overviewDueList,#overviewFollowupList) .stack-item:hover { border-color: rgba(135,184,220,.4); }
html[data-theme="dark"] body[data-page-section="overview"] .dashboard-grid .toolbar select { color: #e0e8f0; border-color: rgba(157,180,204,.25); background: #1b2a3a; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-table th { color: #e0e8f0; background: #23364a; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-table td small { color: #b7c5d3; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-table tbody tr:hover { background: rgba(135,184,220,.07); }
@media (max-width:780px) {
  body[data-page-section="overview"] .overview-command-chips .hero-chip { min-width: 0; }
  body[data-page-section="overview"] .overview-meeting-report { border-radius: 12px; }
  body[data-page-section="overview"] .overview-meeting-table { min-width: 680px; }
  body[data-page-section="overview"] .dashboard-grid .toolbar { width: 100%; }
  body[data-page-section="overview"] .dashboard-grid .toolbar select { flex: 1; min-width: 0; }
}

/* Five more refinement stages: data emphasis, activity, and accessible finish. */
/* Stage 1: clarify that the donut indicators are interactive filters. */
body[data-page-section="overview"] .overview-filter-donut-card { position: relative; cursor: pointer; }
body[data-page-section="overview"] .overview-filter-donut-card::after { content: "↗"; position: absolute; inset-block-start: 12px; inset-inline-end: 13px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(121,147,177,.2); border-radius: 8px; color: #45647f; background: rgba(255,255,255,.72); font-size: .8rem; opacity: .75; transition: opacity .16s ease, transform .16s ease; }
body[data-page-section="overview"] .overview-filter-donut-card:hover::after,
body[data-page-section="overview"] .overview-filter-donut-card:focus-visible::after { opacity: 1; transform: translate(-1px,-1px); }
body[data-page-section="overview"] .overview-filter-donut-card:focus-visible { outline: 3px solid rgba(62,132,179,.48); outline-offset: 3px; }
/* Stage 2: make key totals and their labels easier to read at a glance. */
body[data-page-section="overview"] .overview-filter-donut-center strong { font-size: clamp(1.4rem,2vw,1.75rem); font-variant-numeric: tabular-nums; }
body[data-page-section="overview"] .overview-filter-donut-title { max-width: 22ch; font-weight: 800; line-height: 1.45; }
body[data-page-section="overview"] .overview-filter-donut-meta { font-size: .74rem; line-height: 1.5; }
/* Stage 3: give analysis cards stronger visual cues without relying on color alone. */
body[data-page-section="overview"] .overview-work-analysis-card { border-top: 3px solid rgba(60,121,164,.55); }
body[data-page-section="overview"] .overview-work-analysis-card:is(.tone-gold,.tone-amber) { border-top-color: #c1924f; }
body[data-page-section="overview"] .overview-work-analysis-card:is(.tone-green,.tone-success) { border-top-color: #3b8a6b; }
body[data-page-section="overview"] .overview-work-analysis-card:is(.tone-red,.tone-danger) { border-top-color: #c6545c; }
body[data-page-section="overview"] .overview-work-analysis-card strong { font-variant-numeric: tabular-nums; }
body[data-page-section="overview"] .overview-work-analysis-card i { height: 8px; }
/* Stage 4: improve scan order and status visibility in the agenda lists. */
body[data-page-section="overview"] .stack-item .top-summary { align-items: center; gap: 8px; }
body[data-page-section="overview"] .stack-item .top-summary strong { color: #203a55; font-size: .94rem; }
body[data-page-section="overview"] .stack-item .lamp { flex: 0 0 9px; box-shadow: 0 0 0 4px rgba(60,138,107,.1); }
body[data-page-section="overview"] .stack-item .lamp.red { box-shadow: 0 0 0 4px rgba(198,84,92,.1); }
body[data-page-section="overview"] .stack-item .subtle { margin-top: 4px; }
/* Stage 5: finish the report table, mobile overflow, and motion/accessibility states. */
body[data-page-section="overview"] .overview-meeting-table { font-size: .86rem; }
body[data-page-section="overview"] .overview-meeting-table tbody tr:last-child td { border-bottom: 0; }
body[data-page-section="overview"] .overview-meeting-table td strong { color: #203a55; }
body[data-page-section="overview"] .overview-meeting-status { display: inline-flex; padding: 4px 9px; border: 1px solid rgba(193,146,79,.24); border-radius: 999px; color: #765727; background: #faf3e7; font-size: .75rem; font-weight: 800; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-filter-donut-card::after { border-color: rgba(157,180,204,.22); color: #c2d9ec; background: rgba(27,42,58,.8); }
html[data-theme="dark"] body[data-page-section="overview"] .stack-item .top-summary strong,
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-table td strong { color: #f0f5fa; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-status { color: #f0d8aa; border-color: rgba(225,197,143,.25); background: rgba(193,146,79,.12); }
@media (max-width:560px) {
  body[data-page-section="overview"] .overview-filter-donut-card { min-height: 196px; }
  body[data-page-section="overview"] .overview-filter-donut-card::after { inset-block-start: 8px; inset-inline-end: 8px; }
  body[data-page-section="overview"] .overview-meeting-table :is(th,td) { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page-section="overview"] .overview-filter-donut-card,
  body[data-page-section="overview"] .overview-filter-donut-card::after,
  body[data-page-section="overview"] :is(#overviewDueList,#overviewFollowupList) .stack-item { transition: none !important; }
}

/* Five-stage visual pass: plans, activity, agenda, report, and chart polish. */
/* Stage 1 — keep today's plan cards legible and consistent in both themes. */
body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task { border-color: rgba(121,147,177,.2); border-radius: 13px; box-shadow: 0 3px 10px rgba(20,46,74,.035); transition: transform .16s ease, box-shadow .16s ease; }
body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(20,46,74,.08); }
body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task-copy small { color: #586d82; }
body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task-status { color: #50657a; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task { border-color: rgba(157,180,204,.2); background: linear-gradient(145deg,#203246,#1a2a3a); }
html[data-theme="dark"] body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task-copy strong { color: #f0f5fa; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task-copy small,
html[data-theme="dark"] body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task-status { color: #bcc9d6; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task.is-done { border-color: rgba(74,166,125,.4); background: rgba(38,116,81,.17); }
html[data-theme="dark"] body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task.is-missed { border-color: rgba(204,111,100,.4); background: rgba(163,69,60,.15); }
/* Stage 2 — add clear hierarchy to work-analysis values and progress. */
body[data-page-section="overview"] .overview-work-analysis-card { grid-template-rows: auto auto 1fr auto; }
body[data-page-section="overview"] .overview-work-analysis-card > small { font-weight: 800; letter-spacing: .01em; }
body[data-page-section="overview"] .overview-work-analysis-card > strong { align-self: end; font-size: clamp(1.25rem,1.7vw,1.65rem); }
body[data-page-section="overview"] .overview-work-analysis-card i { margin-top: 7px; box-shadow: inset 0 1px rgba(20,46,74,.06); }
body[data-page-section="overview"] .overview-work-analysis-card i b { display: block; min-width: 3px; height: 100%; background: linear-gradient(90deg,#4c8db5,#d0ac70); }
/* Stage 3 — make the schedule range and result count read as one control. */
body[data-page-section="overview"] #overviewScheduleSummary { display: inline-flex; align-items: center; width: fit-content; min-height: 30px; margin: 3px 0 12px; padding: 4px 10px; border: 1px solid rgba(62,132,179,.18); border-radius: 999px; color: #365a77; background: rgba(62,132,179,.07); font-size: .76rem; font-weight: 800; }
html[data-theme="dark"] body[data-page-section="overview"] #overviewScheduleSummary { color: #c5d9e9; border-color: rgba(135,184,220,.2); background: rgba(62,132,179,.12); }
body[data-page-section="overview"] .overview-schedule-range { align-items: center; padding: 3px; border: 1px solid rgba(121,147,177,.17); border-radius: 11px; background: rgba(121,147,177,.06); }
body[data-page-section="overview"] .overview-schedule-range-btn { border: 0; border-radius: 8px; }
body[data-page-section="overview"] .overview-schedule-range-btn.is-active { background: #fff; box-shadow: 0 2px 7px rgba(20,46,74,.1); }
html[data-theme="dark"] body[data-page-section="overview"] .overview-schedule-range { border-color: rgba(157,180,204,.17); background: rgba(255,255,255,.04); }
html[data-theme="dark"] body[data-page-section="overview"] .overview-schedule-range-btn.is-active { color: #f2d8a9; background: #2a4055; }
/* Stage 4 — polish the meeting report container and row rhythm. */
body[data-page-section="overview"] .overview-meeting-report { overflow: auto; border: 1px solid var(--home-line); border-radius: 14px; background: rgba(255,255,255,.48); scrollbar-width: thin; }
body[data-page-section="overview"] .overview-meeting-table thead th:first-child { border-start-start-radius: 12px; }
body[data-page-section="overview"] .overview-meeting-table tbody tr:nth-child(even) { background: rgba(121,147,177,.035); }
body[data-page-section="overview"] .overview-meeting-table tbody tr:hover { background: rgba(56,119,164,.075); }
body[data-page-section="overview"] .overview-meeting-table .overview-meeting-open { min-height: 34px; padding: 7px 10px; border-radius: 9px; }
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-report { border-color: rgba(157,180,204,.18); background: rgba(16,26,38,.4); }
html[data-theme="dark"] body[data-page-section="overview"] .overview-meeting-table tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
/* Stage 5 — improve chart controls, resize behavior, and keyboard visibility. */
body[data-page-section="overview"] #overviewCurveAnalysis { margin-block: 0 12px; }
body[data-page-section="overview"] #overviewCurveChart { display: block; max-width: 100%; }
body[data-page-section="overview"] .dashboard-grid .toolbar select { padding: 7px 30px 7px 10px; font: inherit; font-size: .82rem; }
body[data-page-section="overview"] :is(.overview-schedule-range-btn,.overview-meeting-open,.overview-priority-row a):focus-visible { outline: 3px solid rgba(62,132,179,.55); outline-offset: 2px; }
@media (max-width:780px) {
  body[data-page-section="overview"] .overview-meeting-report { max-width: 100%; }
  body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task { align-items: flex-start; }
}
@media (max-width:480px) {
  body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task { flex-direction: column; }
  body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task-actions { width: 100%; }
  body[data-page-section="overview"] .overview-personal-plan-panel .personal-plan-task-actions button { flex: 1; }
  body[data-page-section="overview"] .overview-schedule-range { width: fit-content; }
}
