.dash-page-shell {
  padding: 16px;
}

.dash-page-shell-auth {
  padding: 24px;
}

.dash-section-stack {
  margin-top: 16px;
}

.dash-section-padded {
  padding: 20px;
}

/* Default template width for single-section pages: centered and content-aware. */
.dash-page-shell > .section:not(.dash-section-stack):not(.dash-section-centered) {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Common pages with padded single sections follow the same template width. */
.dash-page-shell .dash-section-padded {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.dash-section-centered {
  max-width: 600px;
  margin: 0 auto;
}

.dash-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.dash-m0 {
  margin: 0;
}

.dash-title-compact {
  margin: 0 0 8px;
}

.dash-subtitle {
  margin-top: 8px;
}

.dash-hint {
  margin-top: 6px;
}

.dash-mt-6 {
  margin-top: 6px;
}

.dash-hint-wide {
  max-width: 980px;
}

.dash-grid-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.dash-form-compact {
  display: grid;
  gap: 10px;
  max-width: 600px;
}

.dash-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dash-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.dash-flex-end-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.dash-minw-320 {
  min-width: 320px;
  flex: 1;
}

.dash-minw-280 {
  min-width: 280px;
  flex: 1;
}

.dash-minw-260 {
  min-width: 260px;
  flex: 1;
}

.dash-row {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.dash-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-divider {
  margin: 20px 0;
  border-color: #e5e7eb;
}

.dash-feedback {
  margin-top: 10px;
}

.dash-feedback-small {
  margin-top: 8px;
  font-size: 0.9rem;
}

.dash-feedback-md {
  margin-top: 12px;
}

.dash-preserve {
  white-space: pre-wrap;
}

.dash-hidden {
  display: none;
}

.dash-btn-center {
  justify-content: center;
}

.dash-btn-mt-8 {
  margin-top: 8px;
}

.dash-btn-mt-16 {
  margin-top: 16px;
}

.dash-mt-12 {
  margin-top: 12px;
}

.dash-mt-10 {
  margin-top: 10px;
}

.dash-mt-14 {
  margin-top: 14px;
}

.dash-mt-20 {
  margin-top: 20px;
}

.dash-subtitle-compact {
  margin-top: -2px;
  margin-bottom: 12px;
}

.dash-label-tight {
  margin-top: 2px;
}

.dash-danger {
  color: #dc2626;
}

.dash-hidden-section {
  display: none;
}

.dash-inline-pad {
  padding: 12px;
}

.dash-grid-span-2 {
  grid-column: span 2;
}

.dash-flex-center {
  display: flex;
  gap: 14px;
  align-items: center;
}

.dash-grid-two-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 700px) {
  .dash-grid-two {
    grid-template-columns: 1fr;
  }
}
