body {
  padding: 1rem 0;
}

.container {
  max-width: 1240px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-brand h1 {
  margin-bottom: 0;
}

/* The logo JPEG has a white background, so it sits on a white panel in both themes. */
.site-logo {
  width: 130px;
  height: auto;
  background: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 0.4rem;
}

@media (max-width: 600px) {
  .site-logo {
    width: 96px;
  }
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-nav button {
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.section-header h2,
.section-header h3 {
  margin-bottom: 0;
}

.session-footer {
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.login-card {
  max-width: 460px;
}

.grid.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.statement-meta {
  margin-top: 0.75rem;
}

.schema-warning {
  border-left: 4px solid #f59e0b;
}

.muted {
  color: #555;
}

.error {
  color: #b42318;
}

.text-right {
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
}

.row-actions {
  white-space: nowrap;
}

.row-actions button,
.repeater-inline button {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0;
}

button.danger {
  background: transparent;
  color: #d92d20;
  border-color: #d92d20;
}

button.danger-solid {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.muted-row td {
  color: #888;
}

.notice {
  border-left: 4px solid #d97706;
  background: #fffbeb;
  color: #78350f;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.notice span {
  display: block;
}

.notice-void {
  border-left-color: #b42318;
  background: #fef3f2;
  color: #7a271a;
}

.repeater {
  border: 1px solid #d0d7de;
  border-radius: 0.35rem;
  padding: 0.6rem 0.9rem 0.9rem;
  margin-bottom: 1rem;
}

.repeater legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

.repeater-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.repeater-inline input {
  margin-bottom: 0;
}

.repeater-table input,
.repeater-table select {
  margin-bottom: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.repeater-table td {
  padding: 0.3rem 0.4rem;
}

.input-narrow {
  max-width: 8rem;
}

.note-text {
  white-space: pre-wrap;
}

.inline-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1.5rem;
}

.form-summary {
  padding: 0.6rem 0.9rem;
  background: #f3f4f6;
  border-radius: 0.35rem;
}

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

@media print {
  .top-nav,
  button,
  input,
  textarea,
  select {
    display: none !important;
  }

  body {
    padding: 0;
  }

  article {
    border: 0 !important;
    box-shadow: none !important;
  }

  .session-footer,
  .no-print {
    display: none !important;
  }
}
