/* Cards without an icon must not put their body in the auto-sized icon track. */
.portal-dashboard .task-card > div:first-child {
  grid-column: 1 / -1;
  min-width: 0;
}
.portal-dashboard .task-card > div:first-child + .button {
  grid-column: 1 / -1;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 700px) {
  .product-portal .product-header {
    position: static;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    backdrop-filter: none;
  }
  .product-portal .product-header .brand-lockup > span:last-child { display: none; }
  .product-portal .portal-header-actions {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .product-portal .portal-header-actions .admin-preview-strip {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
  .product-portal .portal-header-actions select {
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
  .product-portal .portal-header-actions .button { min-height: 44px; }
  .portal-dashboard .task-card {
    min-height: 0;
    padding: 20px;
    gap: 14px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: start;
  }
  .portal-dashboard .task-card > div { min-width: 0; }
  .portal-dashboard .task-card h2 { font-size: 1.2rem; line-height: 1.25; }
  .portal-dashboard .task-card p { font-size: 1rem; line-height: 1.55; }
  .portal-dashboard .task-card > .button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    text-align: center;
    line-height: 1.35;
  }
  .portal-dashboard .workspace-status strong { overflow-wrap: anywhere; }
}
