:root {
  --ob-bg: #f7f3ec;
  --ob-bg-accent: #e8f0f2;
  --ob-card: #ffffff;
  --ob-ink: #1f2a2e;
  --ob-muted: #5d6a71;
  --ob-border: #e5e0d7;
  --ob-accent: #1f7a8c;
  --ob-accent-2: #f0b36a;
  --ob-danger: #c24d4d;
  --ob-shadow: 0 18px 45px rgba(24, 35, 39, 0.12);
}

body.ob-body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #ffffff 0%, var(--ob-bg) 55%, var(--ob-bg-accent) 100%);
  color: var(--ob-ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.ob-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.ob-card {
  background: var(--ob-card);
  border: 1px solid var(--ob-border);
  border-radius: 24px;
  box-shadow: var(--ob-shadow);
  overflow: hidden;
  animation: ob-rise 0.6s ease;
}

.ob-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--ob-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.ob-title {
  font-family: "Sora", "Source Sans 3", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.ob-subtitle {
  color: var(--ob-muted);
  font-size: 0.95rem;
  margin: 4px 0 0;
}

.ob-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ob-muted);
}

.ob-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ob-border);
  font-weight: 600;
  background: #fff;
}

.ob-stepper span.active {
  border-color: var(--ob-accent);
  color: var(--ob-accent);
  background: rgba(31, 122, 140, 0.08);
}

.ob-body-content {
  padding: 28px 32px 32px;
}

.ob-step {
  display: none;
  animation: ob-fade 0.4s ease;
}

.ob-step.active {
  display: block;
}

.ob-field {
  margin-bottom: 18px;
}

.ob-field label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  display: block;
}

.ob-field input,
.ob-field select,
.ob-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--ob-border);
  padding: 12px 14px;
  font-size: 0.95rem;
  background: #fff;
}

.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus {
  border-color: var(--ob-accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.1);
  outline: none;
}

.ob-btn {
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ob-btn-primary {
  background: var(--ob-accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(31, 122, 140, 0.2);
}

.ob-btn-secondary {
  background: #f1f0ec;
  color: var(--ob-ink);
}

.ob-btn-accent {
  background: var(--ob-accent-2);
  color: #3a2a1b;
}

.ob-btn:hover {
  transform: translateY(-1px);
}

.ob-foot {
  border-top: 1px solid var(--ob-border);
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.ob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ob-pet-card {
  border: 1px solid var(--ob-border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.ob-pet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ob-pet-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ob-pet-icon {
  width: 24px;
  height: 24px;
}

.ob-remove-pet {
  padding: 6px 12px;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--ob-border);
  color: var(--ob-muted);
  font-weight: 600;
  box-shadow: none;
}

.ob-remove-pet:hover {
  border-color: rgba(194, 77, 77, 0.35);
  color: var(--ob-danger);
  background: rgba(194, 77, 77, 0.08);
}

.ob-weight-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ob-muted);
}

.ob-pet-card h6 {
  font-family: "Sora", "Source Sans 3", sans-serif;
  font-size: 1rem;
  margin: 0 0 12px;
}

.ob-chip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-chip {
  border: 1px solid var(--ob-border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  background: #fff;
  display: inline-flex;
  align-items: center;
}

.ob-chip.active {
  border-color: var(--ob-accent);
  background: rgba(31, 122, 140, 0.08);
  color: var(--ob-accent);
}

.ob-chip-label {
  display: inline;
}

.ob-addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ob-addon-info {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ob-border);
  background: #fff;
  color: var(--ob-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.ob-addon-info:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.15);
}

.ob-chip.active .ob-addon-info {
  border-color: var(--ob-accent);
  color: var(--ob-accent);
}

.ob-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ob-slot {
  border: 1px solid var(--ob-border);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
}

.ob-slot.active {
  border-color: var(--ob-accent);
  background: rgba(31, 122, 140, 0.1);
  color: var(--ob-accent);
}

.ob-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.ob-day-title {
  font-family: "Sora", "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  margin: 0;
}

.ob-summary {
  background: #f9f7f1;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--ob-border);
}

.ob-summary h6 {
  font-family: "Sora", "Source Sans 3", sans-serif;
  margin-bottom: 10px;
}

.ob-muted {
  color: var(--ob-muted);
  font-size: 0.9rem;
}

.ob-alert {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(194, 77, 77, 0.08);
  color: var(--ob-danger);
  font-weight: 600;
  margin-bottom: 16px;
}

.ob-recurrence {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid var(--ob-border);
  padding: 16px;
  background: #fff;
}

.ob-recurrence h6 {
  font-family: "Sora", "Source Sans 3", sans-serif;
  margin-bottom: 12px;
}

.ob-repeat-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ob-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.ob-repeat-options {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.ob-repeat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ob-repeat-row input[type="number"],
.ob-repeat-row input[type="date"],
.ob-repeat-row select {
  border-radius: 12px;
  border: 1px solid var(--ob-border);
  padding: 8px 10px;
  font-size: 0.9rem;
  background: #fff;
}

.ob-repeat-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.ob-repeat-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ob-border);
  background: #fff;
  font-size: 0.85rem;
}

.ob-day-pill input {
  margin: 0;
}

.ob-repeat-summary {
  margin-top: 10px;
}

@keyframes ob-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ob-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .ob-header,
  .ob-body-content,
  .ob-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ob-stepper {
    width: 100%;
    justify-content: flex-start;
  }
}
