/* Opt-in mobile density for the portal. Touch controls retain their 44px height. */
@media (max-width: 640px) {
  .ds-root.ds-mobile-compact {
    --ds-text-2xl: 20px;
    --ds-text-xl: 16px;
    --ds-radius-lg: 10px;
    --ds-weight-bold: 600;
    font-size: 14px;
  }
  :where(.ds-root).ds-mobile-compact .ds-main {
    padding: 16px 12px;
  }
  :where(.ds-root).ds-mobile-compact .ds-card {
    padding: 16px;
  }
  :where(.ds-root).ds-mobile-compact .ds-hint {
    color: var(--ds-text-secondary);
    line-height: 1.5;
  }
  :where(.ds-root).ds-mobile-compact .ds-form-grid {
    gap: 16px;
  }
  :where(.ds-root).ds-mobile-compact .cp-dashboard-tasks,
  :where(.ds-root).ds-mobile-compact .cp-dashboard-stages {
    gap: 8px;
  }
  :where(.ds-root).ds-mobile-compact .cp-dashboard-metric strong {
    font-size: 24px;
    font-weight: 600;
  }
  :where(.ds-root).ds-mobile-compact .cp-dashboard-metric {
    gap: 8px;
  }
  :where(.ds-root).ds-mobile-compact .cp-card-heading {
    gap: 8px;
    margin-bottom: 12px;
  }
  :where(.ds-root).ds-mobile-compact .ds-card > dl.cp-customer-info {
    gap: 1px;
  }
  :where(.ds-root).ds-mobile-compact .ds-card > dl.cp-customer-info > div {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    border: 0;
  }
  :where(.ds-root).ds-mobile-compact .ds-card > dl.cp-customer-info dt,
  :where(.ds-root).ds-mobile-compact .ds-card > dl.cp-customer-info dd {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
