/* HR home cards: scoped to HR, with live details below the header. */
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry]){
 --hr-card-bg:#0a1826;--hr-card-line:#253a50;--hr-card-text:#f1f5fa;--hr-card-muted:#94a4ba;--hr-card-accent:#35a6ff;--hr-card-icon-bg:#0c3158;
 display:grid!important;grid-template-columns:52px minmax(0,1fr) 20px!important;grid-template-rows:auto auto!important;align-content:start!important;align-items:center!important;gap:0 16px!important;
 padding:24px!important;border:1px solid var(--hr-card-line)!important;border-radius:22px!important;background:var(--hr-card-bg)!important;color:var(--hr-card-text)!important;text-align:left!important;min-height:104px!important;height:auto!important;box-shadow:none!important;overflow:hidden!important;transition:border-color .18s,transform .18s!important;
}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry]):hover{border-color:var(--hr-card-accent)!important;transform:translateY(-2px)}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry]):focus-visible{outline:3px solid var(--hr-card-accent)!important;outline-offset:3px}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry])>span:first-child{grid-column:1!important;grid-row:1!important;width:52px!important;height:52px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:var(--hr-card-icon-bg)!important;color:var(--hr-card-accent)!important;border:0!important;border-radius:15px!important;margin:0!important}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry])>strong{grid-column:2!important;grid-row:1!important;font-size:20px!important;line-height:1.25!important;color:var(--hr-card-text)!important;margin:0!important;font-weight:650!important}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry])>:is(i,svg):last-child{grid-column:3!important;grid-row:1!important;position:static!important;width:20px!important;height:20px!important;color:var(--hr-card-muted)!important;margin:0!important}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry])>small{grid-column:1/-1!important;grid-row:2!important;display:flex!important;align-items:center!important;gap:20px!important;margin:24px 0 0!important;padding:24px 0 0!important;border-top:1px solid var(--hr-card-line)!important;white-space:normal!important;font-size:15px!important;line-height:1.45!important;color:var(--hr-card-muted)!important;min-width:0!important}
#dashboardSection#dashboardSection .hr-card-date{display:flex;flex:0 0 70px;min-height:88px;flex-direction:column;align-items:center;justify-content:center;border-radius:15px;background:var(--hr-card-line);color:var(--hr-card-accent);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
#dashboardSection#dashboardSection .hr-card-date b{font-size:32px;line-height:1.25;color:var(--hr-card-text)}
#dashboardSection#dashboardSection .hr-card-copy{display:flex;flex-direction:column;gap:10px;min-width:0}
#dashboardSection#dashboardSection .hr-card-person{font-size:23px;color:var(--hr-card-text);line-height:1.3;font-weight:650;overflow-wrap:anywhere}
#dashboardSection#dashboardSection .hr-card-countdown{color:var(--hr-card-accent);font-size:16px}
#dashboardSection#dashboardSection .hr-card-caption{color:var(--hr-card-muted);font-size:15px;line-height:1.5}
#dashboardSection#dashboardSection .hr-card-main{color:var(--hr-card-text);font-size:18px;line-height:1.4}
#dashboardSection#dashboardSection .hr-card-number{font-size:32px;color:var(--hr-card-accent);margin-right:6px}
html:is([data-theme="light"],[data-visual-theme="light"]) #dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry]){--hr-card-bg:#fff;--hr-card-line:#dae6ef;--hr-card-text:#17283a;--hr-card-muted:#64758a;--hr-card-accent:#0878df;--hr-card-icon-bg:#e4f2ff}
html[data-theme="light"][data-accent-theme="soft"] #dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry]){--hr-card-bg:#faf7ff;--hr-card-line:#e2dbee;--hr-card-text:#302742;--hr-card-muted:#766887}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is(.desktop-store-grid,.dashboard-store-tools-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important;align-items:start!important;gap:18px!important}
@media(max-width:600px){#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is([data-dashboard-admin-action],[data-mr-entry]){padding:20px!important;gap:0 12px!important}#dashboardSection#dashboardSection .hr-card-person{font-size:21px}}
#dashboardSection#dashboardSection .hr-card-caption,#dashboardSection#dashboardSection .hr-card-countdown{font-weight:450!important}
#dashboardSection#dashboardSection .hr-card-person{font-weight:650!important}

html[data-karen-top-manager-dashboard] #dashboardSection#dashboardSection .hr-priority-source{display:none!important}
html[data-karen-top-manager-dashboard] #dashboardSection#dashboardSection [data-personal-team-requests]{display:none!important}
html[data-karen-top-manager-dashboard] #dashboardSection#dashboardSection .hr-sales-overview{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start!important;gap:22px!important;order:0!important;grid-column:1/-1!important}
#dashboardSection#dashboardSection .hr-sales-overview>.bryam-home-sales{grid-column:1!important;grid-row:1!important;min-width:0!important}
#dashboardSection#dashboardSection .hr-sales-overview>.hr-priority-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-column:2!important;grid-row:1!important;gap:16px!important;min-width:0!important}
#dashboardSection#dashboardSection .hr-priority-cards :is([data-dashboard-admin-action],[data-mr-entry]){padding:18px!important;grid-template-columns:42px minmax(0,1fr) 16px!important;gap:0 10px!important}
#dashboardSection#dashboardSection .hr-priority-cards :is([data-dashboard-admin-action],[data-mr-entry])>span:first-child{width:42px!important;height:42px!important}
#dashboardSection#dashboardSection .hr-priority-cards :is([data-dashboard-admin-action],[data-mr-entry])>strong{font-size:17px!important}
#dashboardSection#dashboardSection .hr-priority-cards :is([data-dashboard-admin-action],[data-mr-entry])>small{gap:12px!important}
#dashboardSection#dashboardSection .hr-priority-cards .hr-card-date{flex-basis:54px;min-height:74px}
#dashboardSection#dashboardSection .hr-priority-cards .hr-card-person{font-size:18px}
@media(max-width:1100px){#dashboardSection#dashboardSection .hr-sales-overview>.hr-priority-cards{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:700px){html[data-karen-top-manager-dashboard] #dashboardSection#dashboardSection .hr-sales-overview{grid-template-columns:minmax(0,1fr)!important}#dashboardSection#dashboardSection .hr-sales-overview>.hr-priority-cards{grid-column:1!important;grid-row:2!important}}

html[data-karen-top-manager-dashboard] #dashboardSection#dashboardSection .hr-overview-heading{display:flex!important;align-items:center;gap:14px;grid-column:1/-1;order:0!important;padding:20px 0 16px;color:inherit}
#dashboardSection#dashboardSection .hr-overview-heading h2{margin:0;font-size:24px;line-height:1.25}
#dashboardSection#dashboardSection .hr-overview-heading p{margin:6px 0 0;font-size:13px;opacity:.7}
#dashboardSection#dashboardSection .hr-overview-heading>.desktop-icon{color:#2196ff!important;background:rgba(33,150,255,.12)!important}
html[data-karen-top-manager-dashboard] #dashboardSection#dashboardSection .desktop-hr-home-dashboard>.desktop-ref-title,html[data-karen-top-manager-dashboard] #dashboardSection#dashboardSection .racing-karen-dashboard-card>.racing-section-title{display:none!important}

/* Keep the remaining HR tools together instead of separate category rows. */
#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) .rm-tool-category-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:0!important;padding:0!important}
#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) :is(.rm-tool-category,.desktop-store-grid,.dashboard-store-tools-grid){display:contents!important}
#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) .rm-tool-category-title{display:none!important}
#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) :is([data-dashboard-admin-action],[data-mr-entry]){padding:18px!important;grid-template-columns:42px minmax(0,1fr) 16px!important;gap:0 12px!important;min-height:90px!important;align-content:center!important}
#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) :is([data-dashboard-admin-action],[data-mr-entry])>span:first-child{width:42px!important;height:42px!important}
#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) :is([data-dashboard-admin-action],[data-mr-entry])>strong{font-size:17px!important}
#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) [data-mr-entry]>small{display:none!important}
@media(max-width:700px){#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) .rm-tool-category-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){#dashboardSection#dashboardSection :is(.desktop-hr-home-dashboard,.racing-karen-dashboard-card) .rm-tool-category-list{grid-template-columns:minmax(0,1fr)!important}}

/* Nested summary text must override the legacy button's white text rules. */
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is(.hr-card-person,.hr-card-main,.hr-card-date b){color:var(--hr-card-text)!important;-webkit-text-fill-color:var(--hr-card-text)!important}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) :is(.hr-card-number,.hr-card-countdown,.hr-card-date){color:var(--hr-card-accent)!important;-webkit-text-fill-color:var(--hr-card-accent)!important}
#dashboardSection#dashboardSection :is([data-hr-home-dashboard],[data-karen-home-dashboard]) .hr-card-caption{color:var(--hr-card-muted)!important;-webkit-text-fill-color:var(--hr-card-muted)!important}
