/* Only the project-progress widget in the original dashboard. */
#dashboardPanel .pulse-card:has(#dashboardProjectPreviewList) { background:#fff;border:1px solid #dfe7f3;border-radius:17px;padding:22px;box-shadow:0 4px 18px #29456b05; }
#dashboardPanel .pulse-card:has(#dashboardProjectPreviewList) .pulse-card-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px; }
#dashboardPanel .pulse-card:has(#dashboardProjectPreviewList) h3 { font-size:17px;font-weight:600;color:#304e77; }
#dashboardPanel #dashboardProjectSort { min-height:35px;border:1px solid #d8e4f4;border-radius:8px;background:#f6f9ff;color:#5f7fae;padding:6px 10px;font:inherit;font-size:11px; }
#dashboardPanel #dashboardProjectPreviewList { display:flex;flex-direction:column;gap:10px; }
#dashboardPanel #dashboardProjectPreviewList .dp-project-row { display:grid;grid-template-columns:39px minmax(120px,1fr) minmax(160px,.8fr) 28px;align-items:center;gap:14px;padding:14px 16px;border:1px solid #e3eaf5;border-radius:11px;background:#fcfdff; }
#dashboardPanel .dp-project-icon { display:grid;place-items:center;width:39px;height:39px;border:1px solid color-mix(in srgb,var(--dp-color) 20%,white);border-radius:11px;background:color-mix(in srgb,var(--dp-color) 10%,white);color:color-mix(in srgb,var(--dp-color) 75%,#24344e);font-size:17px;font-weight:600; }
#dashboardPanel .dp-project-copy { display:flex;flex-direction:column;gap:7px;min-width:0; }
#dashboardPanel .dp-project-copy a { color:#38567e;text-decoration:none;font-size:14px;font-weight:600;overflow-wrap:anywhere; }
#dashboardPanel .dp-project-copy a:hover { color:#426fc4; }
#dashboardPanel .dp-project-copy > span { font-size:11px;color:#8197b4; }
#dashboardPanel .dp-project-meter > div:first-child { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px; }
#dashboardPanel .dp-project-state { color:#8198b7;font-size:10px; }
#dashboardPanel .dp-project-meter strong { font-size:13px;color:#587ba9;font-weight:600; }
#dashboardPanel .dp-project-track { height:5px;border-radius:8px;background:#e9eff8;overflow:hidden; }
#dashboardPanel .dp-project-track > span { display:block;height:100%;border-radius:8px;background:var(--dp-color); }
#dashboardPanel .dp-project-open { display:grid;place-items:center;width:28px;height:28px;color:#7a98c1;background:#f0f5fc;border-radius:8px;text-decoration:none; }
#dashboardPanel .dp-project-row.is-complete .dp-project-icon { background:#e7f6ee;border-color:#c7e7d7;color:#27926c;font-size:22px; }
#dashboardPanel .dp-project-row.is-complete .dp-project-state { color:#3b9777; }
#dashboardPanel .dp-project-row.is-complete .dp-project-track > span { background:#57ad8c; }
#dashboardPanel .dp-project-row:hover { border-color:#b7cdec;background:#f8fbff; }
#dashboardPanel .dp-project-row a:focus-visible { outline:2px solid #85a9e7;outline-offset:3px; }
@media(max-width:650px) { #dashboardPanel .pulse-card:has(#dashboardProjectPreviewList) { padding:16px; } #dashboardPanel #dashboardProjectPreviewList .dp-project-row { grid-template-columns:35px minmax(0,1fr) 25px;gap:10px;padding:13px; } #dashboardPanel .dp-project-icon { width:35px;height:35px; } #dashboardPanel .dp-project-meter { grid-column:2;grid-row:2; } #dashboardPanel .dp-project-open { grid-column:3;grid-row:1/3; } #dashboardPanel .dp-project-copy a { font-size:13px; } }

/* Dashboard KPI area: clean surfaces and deliberate, consistent hierarchy. */
#dashboardPanel .pulse-kpis { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px; }
#dashboardPanel .pulse-kpis .pulse-kpi { position:relative;display:flex;flex-direction:column;justify-content:flex-start;min-width:0;min-height:151px;padding:22px 20px 18px;border:1px solid #dfe7f4;border-top:3px solid var(--dk-accent);border-radius:15px;background:linear-gradient(145deg,var(--dk-tint),#fff 75%);box-shadow:0 3px 12px #26446c05;overflow:hidden;color:#385477; }
#dashboardPanel .pulse-kpi.kpi-purple { --dk-accent:#8171db;--dk-tint:#f3f0ff; }
#dashboardPanel .pulse-kpi.kpi-green { --dk-accent:#36a787;--dk-tint:#eaf8f2; }
#dashboardPanel .pulse-kpi.kpi-orange { --dk-accent:#e3a445;--dk-tint:#fff7e9; }
#dashboardPanel .pulse-kpi.kpi-blue { --dk-accent:#5397d9;--dk-tint:#edf6ff; }
#dashboardPanel .pulse-kpis .pulse-kpi::before,#dashboardPanel .pulse-kpis .pulse-kpi::after,#dashboardPanel .pulse-kpis .kpi-glow { display:none; }
#dashboardPanel .pulse-kpis .kpi-icon { position:absolute;inset-inline-end:18px;top:17px;display:grid;place-items:center;width:34px;height:34px;background:#fff;border:1px solid color-mix(in srgb,var(--dk-accent) 22%,white);border-radius:10px;color:var(--dk-accent);font-size:19px;font-style:normal;box-shadow:none; }
#dashboardPanel .pulse-kpis .pulse-kpi > small { display:block;align-self:flex-start;margin:0 0 20px;padding:0;background:transparent;color:#6c83a4;font-size:12px;line-height:1.7;font-weight:500; }
#dashboardPanel .pulse-kpis .pulse-kpi > strong { display:block;color:#304e79;font-size:28px;font-weight:600;line-height:1.3;letter-spacing:0;margin:0 0 8px; }
#dashboardPanel .pulse-kpis .pulse-kpi > span { color:#8196b4;font-size:11px;line-height:1.8;margin:0; }
#dashboardPanel .pulse-kpis #dashboardKpiTimeRemaining { color:#aa8755;font-size:10px;margin-top:3px; }
#dashboardPanel .pulse-kpis .kpi-two-col { display:grid;grid-template-columns:1fr 1fr;gap:15px;width:100%;margin:0; }
#dashboardPanel .pulse-kpis .kpi-two-col-item { display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0; }
#dashboardPanel .pulse-kpis .kpi-two-col-item + .kpi-two-col-item { border-inline-start:1px solid color-mix(in srgb,var(--dk-accent) 18%,white);padding-inline-start:16px; }
#dashboardPanel .pulse-kpis .kpi-two-col-item strong { color:#34547f;font-size:26px;font-weight:600;line-height:1.35; }
#dashboardPanel .pulse-kpis .kpi-two-col-item span { color:#7e94b1;font-size:11px;line-height:1.7; }
#dashboardPanel #dashboardActionGrid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card { display:grid;grid-template-columns:1fr auto;align-items:center;gap:9px;min-height:89px;padding:16px 19px;border:1px solid #e0e8f4;border-radius:12px;background:#fff;box-shadow:none; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card::before,#dashboardPanel #dashboardActionGrid .dashboard-action-card::after { display:none; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card > small { grid-column:1;grid-row:1;color:#6a83a5;font-size:12px;font-weight:500; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card > strong { grid-column:2;grid-row:1/3;display:grid;place-items:center;min-width:38px;height:38px;padding:5px 8px;border-radius:10px;color:#558ac0;background:#edf6ff;font-size:21px;font-weight:600;line-height:1.4; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card > span { grid-column:1;grid-row:2;color:#8ca0bc;font-size:10px;line-height:1.8; }
#dashboardPanel #dashboardActionGrid .is-overdue > strong { background:#fff0ed;color:#c27e72; }
#dashboardPanel #dashboardActionGrid .is-time > strong { background:#fff6e7;color:#b58d4f;font-size:16px; }
#dashboardPanel #dashboardActionGrid .is-message > strong { background:#f1edfc;color:#9179c5; }
@media(max-width:1100px) { #dashboardPanel .pulse-kpis,#dashboardPanel #dashboardActionGrid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; } }
@media(max-width:480px) { #dashboardPanel .pulse-kpis .pulse-kpi { padding:16px 14px;min-height:145px; } #dashboardPanel .pulse-kpis .kpi-icon { width:27px;height:27px;top:13px;inset-inline-end:12px;font-size:16px; } #dashboardPanel .pulse-kpis .pulse-kpi > small { font-size:11px;margin-bottom:18px; } #dashboardPanel .pulse-kpis .pulse-kpi > strong { font-size:24px; } #dashboardPanel .pulse-kpis .kpi-two-col { gap:8px; } #dashboardPanel .pulse-kpis .kpi-two-col-item + .kpi-two-col-item { padding-inline-start:9px; } #dashboardPanel .pulse-kpis .kpi-two-col-item strong { font-size:21px; } #dashboardPanel .pulse-kpis .kpi-two-col-item span { font-size:10px; } #dashboardPanel #dashboardActionGrid .dashboard-action-card { padding:13px;gap:7px; } #dashboardPanel #dashboardActionGrid .dashboard-action-card > small { font-size:11px; } #dashboardPanel #dashboardActionGrid .dashboard-action-card > strong { font-size:18px;min-width:31px;height:33px; } #dashboardPanel #dashboardActionGrid .is-time > strong { font-size:13px; } }

#dashboardPanel .pulse-kpis .kpi-purple { display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:20px;row-gap:7px;align-content:start; }
#dashboardPanel .pulse-kpis .kpi-purple > small { grid-column:1/-1;margin-bottom:8px; }
#dashboardPanel .pulse-kpis .kpi-purple > strong { grid-column:1;grid-row:2;align-self:end;margin:0; }
#dashboardPanel .pulse-kpis .kpi-purple > span { grid-column:1;grid-row:3; }
#dashboardPanel .dk-project-breakdown { grid-column:2;grid-row:2/4;display:flex;flex-direction:column;justify-content:center;gap:10px;padding-inline-start:16px;border-inline-start:1px solid #e0dff3; }
#dashboardPanel .dk-project-breakdown > span { display:flex;align-items:center;gap:6px;color:#7b8daf;font-size:10px;white-space:nowrap; }
#dashboardPanel .dk-project-breakdown b { margin-inline-start:auto;color:#5c7197;font-size:12px;font-weight:600; }
#dashboardPanel .dk-project-breakdown i { width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#aab7ce; }
#dashboardPanel .dk-project-breakdown .is-active { background:#719ae0; }
#dashboardPanel .dk-project-breakdown .is-done { background:#54aa86; }
@media(max-width:480px) { #dashboardPanel .pulse-kpis .kpi-purple { column-gap:10px; } #dashboardPanel .dk-project-breakdown { padding-inline-start:9px;gap:9px; } #dashboardPanel .dk-project-breakdown > span { gap:4px;font-size:9px; } }

/* Higher-contrast dashboard summary colors. */
#dashboardPanel .pulse-kpi.kpi-purple { --dk-accent:#7957d5;--dk-tint:#e9dfff; }
#dashboardPanel .pulse-kpi.kpi-green { --dk-accent:#159475;--dk-tint:#d6f1e5; }
#dashboardPanel .pulse-kpi.kpi-orange { --dk-accent:#dc931e;--dk-tint:#ffebc8; }
#dashboardPanel .pulse-kpi.kpi-blue { --dk-accent:#3387d7;--dk-tint:#dceeff; }
#dashboardPanel .pulse-kpis .pulse-kpi { border-color:color-mix(in srgb,var(--dk-accent) 27%,white);background:linear-gradient(135deg,var(--dk-tint),color-mix(in srgb,var(--dk-tint) 35%,white)); }
#dashboardPanel .pulse-kpis .pulse-kpi > small { color:#4e6384; }
#dashboardPanel .pulse-kpis .pulse-kpi > strong,#dashboardPanel .pulse-kpis .kpi-two-col-item strong { color:#263e65; }
#dashboardPanel .pulse-kpis .pulse-kpi > span,#dashboardPanel .pulse-kpis .kpi-two-col-item span { color:#5d7394; }
#dashboardPanel .pulse-kpis .kpi-icon { background:var(--dk-accent);color:#fff;border-color:transparent; }
#dashboardPanel .dk-project-breakdown > span { color:#5b5c86; }
#dashboardPanel .dk-project-breakdown b { color:#51417d; }
#dashboardPanel .dk-project-breakdown .is-active { background:#397cdb; }
#dashboardPanel .dk-project-breakdown .is-done { background:#15966b; }
#dashboardPanel .dk-project-breakdown .is-empty { background:#8f81b2; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card { border-color:#cedbee; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card > small { color:#4d6689; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card > span { color:#6d83a2; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card > strong { background:#d7eaff;color:#2867ad; }
#dashboardPanel #dashboardActionGrid .is-overdue > strong { background:#ffddd7;color:#b45143; }
#dashboardPanel #dashboardActionGrid .is-time > strong { background:#ffe8bd;color:#9b691b; }
#dashboardPanel #dashboardActionGrid .is-message > strong { background:#e8dcff;color:#7446b9; }

/* Mobile dashboard must grow with its content instead of a clipped flex panel. */
@media(max-width:800px) {
 body:has(#dashboardPanel.active) { height:auto;min-height:100vh;min-height:100dvh;overflow-y:auto; }
 body:has(#dashboardPanel.active) #dashboardApp,
 body:has(#dashboardPanel.active) .app-layout,
 body:has(#dashboardPanel.active) .content { height:auto;min-height:100vh;min-height:100dvh;max-height:none;overflow:visible; }
 #dashboardPanel.page-panel.active { flex:1 0 auto;height:auto;min-height:calc(100vh - 90px);min-height:calc(100dvh - 90px);max-height:none;overflow:visible;padding-bottom:calc(28px + env(safe-area-inset-bottom)); }
}

/* Hybrid KPI cards: expressive icons, quiet decoration and structured numbers. */
#dashboardPanel .pulse-kpis .pulse-kpi { border:1px solid color-mix(in srgb,var(--dk-accent) 24%,white);border-top:3px solid var(--dk-accent);background:linear-gradient(125deg,color-mix(in srgb,var(--dk-tint) 75%,white),#fff 85%);isolation:isolate; }
#dashboardPanel .pulse-kpis .pulse-kpi::after { content:'';display:block;position:absolute;width:125px;height:125px;border-radius:50%;inset-inline-end:-42px;bottom:-66px;background:color-mix(in srgb,var(--dk-accent) 9%,transparent);pointer-events:none;z-index:-1; }
#dashboardPanel .pulse-kpis .kpi-icon { width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--dk-accent) 70%,white),var(--dk-accent));color:#fff;border:1px solid #ffffff70;box-shadow:0 4px 10px color-mix(in srgb,var(--dk-accent) 17%,transparent);font-size:20px; }
#dashboardPanel .pulse-kpis .pulse-kpi > small { align-self:flex-start;display:inline-flex;padding:3px 8px;border-radius:6px;background:color-mix(in srgb,var(--dk-accent) 10%,white);color:color-mix(in srgb,var(--dk-accent) 65%,#243652);font-size:11px;font-weight:500; }
#dashboardPanel .pulse-kpis .kpi-two-col-item { background:#ffffffa6;border-radius:10px;padding:10px 12px; }
#dashboardPanel .pulse-kpis .kpi-two-col-item + .kpi-two-col-item { border-inline-start:0;padding-inline-start:12px; }
#dashboardPanel .pulse-kpis .kpi-two-col { gap:10px; }
#dashboardPanel .pulse-kpis .pulse-kpi > strong { color:#2c456e;font-size:29px; }
#dashboardPanel .pulse-kpis .kpi-purple > small { justify-self:start; }
#dashboardPanel .dk-project-breakdown { background:#ffffff9c;border:1px solid #e3dff2;border-radius:10px;padding:10px 12px;gap:8px; }
#dashboardPanel #dashboardActionGrid .dashboard-action-card { border-inline-start:3px solid #5c9edc;background:linear-gradient(105deg,#fff,#f6faff); }
#dashboardPanel #dashboardActionGrid .is-overdue { border-inline-start-color:#d88278; }
#dashboardPanel #dashboardActionGrid .is-time { border-inline-start-color:#dda044; }
#dashboardPanel #dashboardActionGrid .is-message { border-inline-start-color:#9874d4; }
@media(max-width:480px) { #dashboardPanel .pulse-kpis .kpi-icon { width:30px;height:30px;border-radius:9px;font-size:17px; } #dashboardPanel .pulse-kpis .pulse-kpi > small { font-size:10px;padding:2px 6px; } #dashboardPanel .pulse-kpis .kpi-two-col-item { padding:10px 8px; } #dashboardPanel .pulse-kpis .kpi-two-col-item + .kpi-two-col-item { padding-inline-start:8px; } #dashboardPanel .dk-project-breakdown { padding:9px 7px; } }
