/* Mobile summary uses the same live cards and actions as the desktop Dashboard. */
.dashboard-values-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (width > 900px) {
  .dashboard-action-card[data-dashboard-card="balance"] { --overview-tone:var(--solid-purple); }
  .dashboard-action-card[data-dashboard-card="receivables"] { --overview-tone:var(--solid-amber); }
  .dashboard-action-card[data-dashboard-card="revenue"] { --overview-tone:var(--solid-green); }
  .dashboard-action-card[data-dashboard-card="expenses"] { --overview-tone:var(--solid-red); }
  body #content .dashboard-cards > .dashboard-action-card {
    --summary-bg:color-mix(in srgb,var(--overview-tone) 80%,black);
    background:var(--summary-bg); color:var(--solid-ink); border-color:var(--summary-bg);
  }
  body #content .dashboard-action-card .dashboard-card-copy :is(.card-label,.metric) { color:inherit!important; }
  body #content .dashboard-action-card :is(.dashboard-card-copy small,.dash-card-arrow) { color:inherit; }
  body #content .dashboard-action-card :is(.dash-icon,.dashboard-card-lock) { background:rgb(0 0 0 / 20%); color:inherit; }
  @media (hover:hover) and (forced-colors:none) {
    body #content .dashboard-cards > .dashboard-action-card:hover { background:color-mix(in srgb,var(--overview-tone) 92%,black); }
  }
  body #content .dashboard-cards > .dashboard-action-card:focus-visible { outline:3px solid var(--soft-purple-ink); outline-offset:3px; }
}
@media (max-width:900px) {
  body.mobile-dashboard-header-ready .topbar { height:0; min-height:0; padding:0; border:0; position:static; background:transparent; }
  body.mobile-dashboard-header-ready.mobile-dock-profile-open .topbar { position:relative; z-index:42; }
  body #content .mobile-dashboard-overview {
    --summary-line:#514959; --summary-label:#d7cfdf;
    --summary-balance:var(--soft-purple-ink); --summary-receivable:var(--soft-amber-ink); --summary-revenue:var(--soft-green-ink); --summary-expense:var(--soft-red-ink);
    margin:-16px -16px 24px; padding:16px 16px 22px; border-radius:0;
    background:transparent; color:#f5f1fa; position:relative;
  }
  body.light-theme #content .mobile-dashboard-overview {
    --summary-line:#ded4e8; --summary-label:#62566f;
    --summary-balance:var(--soft-purple-ink); --summary-receivable:var(--soft-amber-ink); --summary-revenue:var(--soft-green-ink); --summary-expense:var(--soft-red-ink);
    color:#30263b;
  }
  .dashboard-overview-top { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:6px; }
  .dashboard-overview-month { grid-column:2; justify-self:center; min-width:0; }
  body #content .mobile-dashboard-overview .month-selector-button { width:174px; height:44px; padding:0 22px; border:0; border-radius:12px; box-shadow:none; color:inherit; background:transparent; font-size:21px; font-weight:800; }
  body #content .mobile-dashboard-overview #dashMonthLabel { font-size:21px; color:inherit; }
  .mobile-dashboard-overview .month-selector-menu { max-width:calc(100vw - 32px); max-height:calc(100dvh - 96px); overflow-y:auto; }
  body:not(.light-theme) .mobile-dashboard-overview .month-selector-menu { background:#35303f; color:#f5f1fa; border:1px solid var(--soft-purple-border); }
  body:not(.light-theme) .mobile-dashboard-overview .month-selector-grid button { color:#e6dff0!important; }
  body:not(.light-theme) .mobile-dashboard-overview .month-selector-grid button.selected { background:var(--soft-purple)!important; color:var(--soft-purple-ink)!important; }
  body:not(.light-theme) .mobile-dashboard-overview .month-selector-footer button { color:var(--soft-purple-ink)!important; }
  body #content .dashboard-values-toggle { grid-column:3; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0!important; border-radius:50%; background:transparent!important; color:var(--summary-label)!important; }
  .dashboard-values-toggle svg { width:24px; height:24px; }
  .dashboard-values-toggle:focus-visible,.mobile-dashboard-overview .month-selector-button:focus-visible { outline:2px solid var(--soft-purple-ink); outline-offset:2px; }
  body #content .mobile-dashboard-overview > .dashboard-cards { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
  body #content .mobile-dashboard-overview :where(.dashboard-cards > [data-dashboard-card]) { grid-area:auto; min-height:0; margin:0; padding:0; border:0!important; border-radius:0; background:transparent!important; box-shadow:none; }
  body #content .mobile-dashboard-overview .dashboard-cards > [data-dashboard-card]:hover { filter:none; }
  .mobile-dashboard-overview .dash-card-arrow { display:none; }
  body #content .mobile-dashboard-overview .dashboard-card-copy { display:block; min-width:0; }
  body #content .mobile-dashboard-overview .card-label { display:block; margin:0 0 3px; font-size:16px; line-height:1.25; font-weight:600; color:var(--summary-label)!important; white-space:nowrap; }
  body #content .mobile-dashboard-overview .dashboard-card-copy > small:not(.card-label) { margin-top:3px; color:var(--summary-label); font-size:12px; line-height:1.3; white-space:normal; }
  body #content .mobile-dashboard-overview .dashboard-cards .metric { font-size:clamp(22px,5.8vw,28px); font-weight:800; line-height:1.2; letter-spacing:-.5px; white-space:normal; overflow-wrap:anywhere; }
  .mobile-dashboard-overview .dashboard-value-currency { font-size:.56em; font-weight:700; letter-spacing:0; }
  body #content .mobile-dashboard-overview [data-dashboard-card="balance"] { grid-column:1/-1; padding:22px 0 25px; text-align:center; }
  body #content .mobile-dashboard-overview [data-dashboard-card="balance"] .dashboard-card-body { display:block; }
  .mobile-dashboard-overview .dash-icon-balance { display:none; }
  body #content .mobile-dashboard-overview [data-dashboard-card="balance"] .card-label { margin-bottom:5px; font-size:16px; }
  body #content .mobile-dashboard-overview [data-dashboard-card="balance"] .metric { font-size:clamp(38px,10vw,48px); color:var(--summary-balance)!important; }
  body #content .mobile-dashboard-overview [data-dashboard-card="balance"] .metric.balance-negative { color:var(--summary-expense)!important; }
  body #content .mobile-dashboard-overview :is([data-dashboard-card="receivables"],[data-dashboard-card="revenue"],[data-dashboard-card="expenses"]) { grid-column:1/-1; padding:16px 0; border-top:1px solid var(--summary-line)!important; }
  body #content .mobile-dashboard-overview :is([data-dashboard-card="receivables"],[data-dashboard-card="revenue"],[data-dashboard-card="expenses"]) .dashboard-card-body { display:grid; grid-template-columns:38px minmax(80px,1fr) minmax(0,auto); gap:0 10px; align-items:center; }
  body #content .mobile-dashboard-overview :is([data-dashboard-card="receivables"],[data-dashboard-card="revenue"],[data-dashboard-card="expenses"]) .dashboard-card-copy { display:contents; }
  .mobile-dashboard-overview :is(.dash-icon-receivable,.dash-icon-revenue,.dash-icon-expense) { grid-area:1 / 1 / 3; }
  body #content .mobile-dashboard-overview :is([data-dashboard-card="receivables"],[data-dashboard-card="revenue"],[data-dashboard-card="expenses"]) .card-label { grid-area:1 / 2; margin:0; font-size:15px; }
  body #content .mobile-dashboard-overview :is([data-dashboard-card="receivables"],[data-dashboard-card="revenue"],[data-dashboard-card="expenses"]) .metric { grid-area:1 / 3 / 3; min-width:0; font-size:clamp(22px,5.8vw,26px); text-align:right; }
  .mobile-dashboard-overview .dashboard-card-copy > small:not(.card-label) { grid-area:2 / 2; }
  body #content .mobile-dashboard-overview [data-dashboard-card="receivables"] .metric { color:var(--summary-receivable)!important; }
  .mobile-dashboard-overview .dash-icon-receivable { width:38px; height:38px; flex-basis:38px; background:var(--solid-amber); color:#fff; }
  .mobile-dashboard-overview .dash-icon-receivable svg:not([data-mobile-clock]) { display:none; }
  .mobile-dashboard-overview .dashboard-card-lock { position:static; grid-column:2/-1; justify-self:end; font-size:11px; }
  .mobile-dashboard-overview .dash-icon-revenue,.mobile-dashboard-overview .dash-icon-expense { width:38px; height:38px; flex-basis:38px; color:#fff; }
  .mobile-dashboard-overview .dash-icon-revenue { background:var(--solid-green); }
  .mobile-dashboard-overview .dash-icon-expense { background:var(--solid-red); }
  .mobile-dashboard-overview .dash-icon svg { width:25px; height:25px; }
  body #content .mobile-dashboard-overview .metric.revenue { color:var(--summary-revenue)!important; }
  body #content .mobile-dashboard-overview .metric.expense { color:var(--summary-expense)!important; }
  @media(max-width:360px) {
    body #content .mobile-dashboard-overview :is([data-dashboard-card="receivables"],[data-dashboard-card="revenue"],[data-dashboard-card="expenses"]) .dashboard-card-body { column-gap:8px; }
    body #content .mobile-dashboard-overview :is([data-dashboard-card="receivables"],[data-dashboard-card="revenue"],[data-dashboard-card="expenses"]) .card-label { font-size:14px; }
  }
}
