/* Shared rhythm for every Connect page. Containers own section spacing;
   cards in a grid must never inherit the margins of a document stack. */
:root {
  --workspace-section-gap: 22px;
  --workspace-content-inset: 22px;
}
.native-page:not(.flow-workspace) {
  display: flex;
  flex-direction: column;
  gap: var(--workspace-section-gap);
}
.native-page:not(.flow-workspace) > :not(dialog):not([hidden]) {
  min-width: 0;
  margin-block: 0;
}
.native-page:not(.flow-workspace) > :not(dialog) {
  flex-shrink: 0;
}
.native-report-body > :not(dialog):not([hidden]) {
  margin-block: 0;
  min-width: 0;
}
:is(.native-grid, .native-two-columns, .admin-app-grid,
    .console-two-columns, .console-integration-grid) > .native-panel {
  margin-block: 0;
}
:is(.native-grid, .native-two-columns, .admin-app-grid,
    .console-two-columns, .console-integration-grid) > * {
  min-width: 0;
}
.native-panel > .native-panel-body {
  padding: var(--workspace-content-inset);
}
.native-panel > .native-inline-form {
  padding-inline: var(--workspace-content-inset);
  flex-wrap: wrap;
  align-items: center;
}
.native-panel > .native-disclosure {
  padding-inline: var(--workspace-content-inset);
}
.native-panel > h2 {
  line-height: 1.4;
}
.native-panel > p {
  line-height: 1.6;
}
.native-panel.manager-form > .native-actions {
  margin-top: 16px;
}
.native-dialog :is(.dialog-body, .native-dialog-body) > p {
  line-height: 1.6;
  margin-bottom: 16px;
}
.native-dialog :is(.dialog-body, .native-dialog-body) > .native-actions {
  margin-top: 16px;
}
@media (max-width: 760px) {
  :root {
    --workspace-section-gap: 18px;
    --workspace-content-inset: 16px;
  }
  .native-panel > .native-inline-form > :is(input, select) {
    flex: 1 1 180px;
    max-width: 100%;
  }
}

/* Card actions follow their description even when the copy wraps. */
.integration-grid > .integration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.integration-grid > .integration-card > p {
  min-height: 0;
  margin-bottom: 16px;
}
.integration-grid > .integration-card > span {
  margin-top: auto;
}
.native-panel.native-editor > .native-panel-heading {
  padding: 0 0 20px;
}
.native-panel > .native-panel-body > p:not(:last-child) {
  margin-bottom: 16px;
  line-height: 1.6;
}
.native-dialog > :is(p, .native-help) {
  margin: 0;
  padding: 20px 24px 0;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .native-dialog > :is(p, .native-help) { padding: 16px 16px 0; }
}
