/* Scoped to overview; admin/points metric cards keep their existing layout. */
body.webapp-page.is-authenticated #dashboard-overview.metric-grid {
  display: grid; grid-template-columns: 1.04fr .85fr 1.27fr 1.15fr !important;
  gap: 10px !important; margin: 0 0 14px !important; align-items: stretch;
}
#dashboard-overview .overview-card {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  min-width: 0; min-height: 126px; padding: 13px 12px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 17px; color: var(--ink); text-decoration: none;
  background: radial-gradient(ellipse at 100% 0%, var(--accent-soft), transparent 65%), var(--card);
  box-shadow: 0 5px 18px color-mix(in srgb,var(--ink) 5%,transparent);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
#dashboard-overview .overview-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 7px 20px color-mix(in srgb,var(--accent) 13%,transparent); }
#dashboard-overview .overview-card:focus-visible,
#dashboard-overview button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#dashboard-overview .overview-card-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 28px; }
#dashboard-overview .overview-card-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; overflow-wrap: anywhere; }
#dashboard-overview .overview-card-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); }
#dashboard-overview svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#dashboard-overview .overview-card-value { display: flex; align-items: center; gap: 6px; margin: auto 0 0; }
#dashboard-overview .overview-card-value strong { font-size: 25px; letter-spacing: -.045em; line-height: 1.15; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
#dashboard-overview #metric-plan { font-size: 20px; }
#dashboard-overview #metric-today,
#dashboard-overview .is-text-value #metric-lists { font-size: 17px; letter-spacing: -.025em; }
#dashboard-overview .overview-card-arrow { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; margin-left: auto; border-radius: 8px; background: var(--surface); color: var(--accent-ink); }
#dashboard-overview .overview-card-arrow svg { width: 14px; height: 14px; }
#dashboard-overview .overview-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; min-height: 16px; margin: 0; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
#overview-member-pips { display: flex; gap: 2px; max-width: 54px; flex: 0 0 auto; }
#overview-member-pips:empty { display: none; }
#overview-member-pips i { display: block; width: 5px; height: 7px; border-radius: 2px; background: var(--line); }
#overview-member-pips i.is-filled { background: var(--accent); }
#dashboard-overview .overview-earned { color: var(--accent-ink); background: var(--accent-soft); border-radius: 5px; padding: 1px 5px; font-weight: 800; }
#dashboard-overview .overview-toolbar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
#dashboard-overview .overview-page-title { margin: 0; font-size: 1.5rem; line-height: 1.3; }
#dashboard-overview .overview-quick-create { position: relative; }
#dashboard-overview #overview-create { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 68px; min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--white); background: var(--accent-fill); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
#dashboard-overview #overview-create-menu { position: absolute; z-index: 25; right: 0; top: calc(100% + 7px); width: 244px; max-width: calc(100vw - 44px); padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-soft); }
#dashboard-overview #overview-create-menu[hidden] { display: none !important; }
#dashboard-overview #overview-create-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; white-space: normal; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
#dashboard-overview #overview-create-menu button:hover { background: var(--accent-soft); }
@media (max-width: 1100px) {
  body.webapp-page.is-authenticated #dashboard-overview.metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 420px) {
  #dashboard-overview .overview-card { padding: 11px 10px; gap: 8px; }
  #dashboard-overview .overview-card-label { font-size: 10px; }
  #dashboard-overview #metric-plan { font-size: 18px; }
  #dashboard-overview #metric-today, #dashboard-overview .is-text-value #metric-lists { font-size: 16px; }
  #dashboard-overview .overview-card-foot { font-size: 10px; }
  #dashboard-overview #overview-create { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #dashboard-overview .overview-card { transition: none; }
  #dashboard-overview .overview-card:hover { transform: none; }
}
