/* Section (Sendplane design system): the panel that holds every block of page
 * content. A heading band, then flush bodies that share 20px side padding.
 * The imported dashboard's .card and .stat-card use the same surface. */

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.section-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.section-heading:last-child { border-bottom: 0; }
.section-heading > div:first-child { min-width: 0; }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { max-width: 640px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-heading > .button, .section-heading > .status, .section-heading > .inline-field, .section-heading > .list-actions { flex: 0 0 auto; }

/* Missionplane's free-form bodies inside a panel. */
.panel-body { display: grid; gap: 10px; padding: 16px 20px; }
.panel-body > * { margin: 0; }
.panel-note { color: var(--muted); font-size: 13px; }
.panel-body.panel-note { padding-block: 18px; }
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-elevated);
}
.panel-actions > .form-hint { flex: 1 1 280px; margin: 0; }
.panel-danger { border-color: var(--danger-border); }

/* Summary tiles: counts that open their page. */
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-tile {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 20px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.summary-tile:last-child { border-right: 0; }
.summary-tile h2 { margin: 0; color: var(--muted); font-size: 10px; font-weight: 680; letter-spacing: .045em; text-transform: uppercase; }
.summary-tile .hosted-count { margin: 2px 0 0; font-size: 28px; font-weight: 690; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary-note { color: var(--muted); font-size: 11px; }

/* The imported dashboard's cards. */
.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  transition: border-color 140ms ease;
}
.card-interactive { cursor: pointer; }
.card-glass, .card-accent { background: var(--surface); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--space-4); }
.card-title { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.card-subtitle { color: var(--muted); font-size: 12px; }
.card-body { font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; container-type: inline-size; }
@container (max-width: 500px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.stat-label { color: var(--quiet); font-size: 10px; font-weight: 680; letter-spacing: .045em; text-transform: uppercase; }
.stat-value { margin-top: var(--space-1); font-size: 28px; font-weight: 690; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-footer { margin-top: var(--space-2); color: var(--muted); font-size: 11px; }

@media (hover: hover) and (pointer: fine) {
  .summary-tile:hover { background: var(--soft); }
  .card-interactive:hover { border-color: var(--border-default); }
}

@media (max-width: 760px) {
  .section-heading { flex-wrap: wrap; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-tile:last-child { border-bottom: 0; }
}
