    /*
     * Shared panel header (Overview + Performance):
     * NW is in the app brand; meta left + date/range right on one row.
     * Mode rules only adjust action height / ledger slot — not placement.
     */
    .portfolio-mode-history .ds-portfolio-header-delta,
    .portfolio-mode-overview .ds-portfolio-header-ledger {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
      width: auto;
      max-width: 100%;
      min-width: 0;
      margin-left: 0;
    }
    .portfolio-mode-history .ds-portfolio-header-actions.portfolio-mode-history-only,
    .portfolio-mode-overview .ds-portfolio-header-actions.portfolio-mode-snapshot-only {
      grid-column: 2;
      grid-row: 1;
      justify-self: end;
      align-self: start;
      height: auto;
      min-height: var(--ds-control-h);
      width: auto;
      max-width: 100%;
      margin-left: 0;
      align-items: stretch;
    }
    .ds-portfolio-header-delta-sep {
      color: var(--ds-text-muted);
      margin: 0 0.15rem;
    }
