.view {
  animation: floatIn 0.4s ease;
}

/* ===== UI section canvas ===== */
.app-section-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 255, 0.9) 100%);
  border: 1px solid rgba(25, 42, 70, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(18, 34, 60, 0.06);
  backdrop-filter: blur(4px);
}

.app-section-panel > h1 {
  margin-bottom: 14px;
}

.app-section-panel > h1,
.section-title-row > h1 {
  font-size: 1.55rem;
  color: var(--section-title);
  line-height: 1.15;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title-row--stacked {
  align-items: flex-start;
}

.section-title-row > h1 {
  margin: 0;
}

.section-title-row > .btn-danger {
  margin-top: 0;
}

.section-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-actions.profile-actions {
  flex-direction: column;
  align-items: stretch;
}

.section-title-actions > button,
.dog-detail-actions button {
  margin-top: 0;
  width: auto;
}

.section-title-actions.profile-actions > button {
  width: 100%;
}

/* Keep profile heading and card visually close, matching other section spacing. */
#profileSection .section-title-row.section-title-row--stacked {
  margin-bottom: 8px;
}

@media (max-width: 1023px) {
  #profileSection .section-title-actions.profile-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #profileSection .section-title-actions.profile-actions > button {
    width: auto;
    flex: 1 1 170px;
  }
}

@media (min-width: 1024px) {
  #profileSection .section-title-row.section-title-row--stacked {
    position: relative;
    min-height: 0;
    padding-right: 186px;
    margin-bottom: 8px;
  }

  #profileSection .section-title-actions.profile-actions {
    position: absolute;
    top: 0;
    right: 0;
    width: 170px;
  }
}

.dialog-inline-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dialog-inline-actions button {
  width: auto;
  min-width: 130px;
}

.dialog-inline-actions .btn-primary-action,
.dialog-inline-actions .btn-outline-accent,
.dialog-inline-actions .btn-danger,
.dialog-inline-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 700;
}

.app-dialog-prompt-input {
  width: 100%;
  margin-top: 8px;
}

.app-dialog-field + .app-dialog-field {
  margin-top: 10px;
}

.app-dialog-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
}

.app-dialog-checkbox-input {
  margin-top: 2px;
}

.app-dialog-checkbox-text {
  line-height: 1.45;
}

.third-party-message-card {
  max-width: 860px;
  margin: 6px auto 0;
}

.third-party-message-text {
  margin-top: 0;
  font-size: calc(0.85rem + 2pt);
  text-align: center;
}

.dog-detail-actions button {
  min-width: 140px;
}
