:root {
  --purple: #6b3fa0;
  --purple-dark: #3e1f66;
  --purple-soft: #efe7f8;
  --blue: #2f6fd0;
  --blue-dark: #1d4f9e;
  --blue-soft: #e3edfc;
  --cocoa: #8b5a3c;
  --cocoa-dark: #3b2a22;
  --cocoa-soft: #f4e8dc;
  --honey: #f2a93b;
  --honey-soft: #fcebcc;
  --paper: #faf6f0;
  --card: #ffffff;
  --ink: #2a2233;
  --ink-soft: #675e72;
  --line: #e7dfda;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 34, 51, .06), 0 4px 16px rgba(62, 31, 102, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 650;
  line-height: 1.15;
  color: var(--purple-dark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: .4em 0; }
a { color: var(--purple); }
img { max-width: 100%; }
small { font-size: .85em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 24px; padding-bottom: 64px; min-height: 60vh; }
.narrow { max-width: 560px; }
.center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46rem; }
.hint { color: var(--ink-soft); font-size: .88rem; }
.big-line { font-size: 1.05rem; }
.danger-link { color: var(--danger); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.site-head {
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cocoa)) top / 100% 4px no-repeat, var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--purple-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.paw { font-size: 1.3rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-nav > a, .site-nav .linklike { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; padding: 4px 0; }
.site-nav .badge { margin-left: 2px; }
.site-nav > a:hover { color: var(--purple); }
.nav-book {
  background: var(--honey);
  color: var(--ink) !important;
  padding: 7px 16px !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-book:hover { background: #d9942f; }
.site-nav > a.btn { padding: 7px 16px; }
.site-nav > a.btn-primary, .site-nav > a.btn-primary:hover { color: #fff; }
.badge {
  background: var(--honey);
  color: var(--ink);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 7px;
  vertical-align: middle;
}
.inline-form { display: inline; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.subnav { background: var(--purple); }
.admin-subnav { background: var(--blue-dark); }
.subnav .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding-top: 6px; padding-bottom: 6px; }
/* Phones: one scrollable row; a fade on the right edge shows there is more (class set by app.js). */
@media (max-width: 640px) {
  .subnav .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .subnav .wrap::-webkit-scrollbar { display: none; }
  .subnav .wrap.more-right { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
                             mask-image: linear-gradient(to right, #000 82%, transparent); }
  .subnav .wrap.more-left { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent);
                            mask-image: linear-gradient(to left, #000 82%, transparent); }
  .subnav .wrap.more-left.more-right {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
}
.subnav a {
  color: #ece4f7;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.subnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.subnav a.on { background: var(--honey); color: var(--ink); }
.subnav-label {
  color: var(--honey);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 8px;
  white-space: nowrap;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 20px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-invert { background: var(--paper); color: var(--purple-dark); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple-soft); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: rgba(192, 57, 43, .08); }
.btn-sm { padding: 5px 13px; font-size: .85rem; }
.btn-lg { padding: 13px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 14px; }
.linklike { background: none; border: none; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; padding: 4px 0; }
.linklike:hover { color: var(--purple); }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.prose { max-width: 50rem; }
.prose h2 { margin-top: 0; font-size: 1.25rem; }
.prose ul { padding-left: 1.2rem; margin: 0; }
.prose li { margin-bottom: 8px; line-height: 1.55; }
.prose li:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero { padding: 56px 0 26px; max-width: 46rem; }
.eyebrow {
  color: var(--cocoa);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  margin: 0 0 10px;
}
.hero h1 { margin-bottom: .35em; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.trust-line {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cocoa-soft);
  color: var(--cocoa-dark);
  font-weight: 600;
  font-size: .9rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin: 34px 0;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { opacity: .92; }

.ticks { list-style: none; padding: 0; margin: .6em 0; }
.ticks li { padding-left: 26px; position: relative; margin: .35em 0; }
.ticks li::before { content: '🐾'; position: absolute; left: 0; font-size: .8rem; top: .35em; }

.steps { counter-reset: step; padding-left: 0; list-style: none; display: grid; gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.steps.compact li { padding: 10px 14px; }
ol.steps { counter-reset: n; }
ol.steps li::before {
  counter-increment: n;
  content: counter(n);
  display: inline-flex;
  width: 26px; height: 26px;
  background: var(--honey);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  margin-right: 10px;
}

.review-card { border-left: 4px solid var(--cocoa); }
.stars { color: var(--honey); letter-spacing: 2px; font-size: 1.05rem; }
.review-card footer { color: var(--cocoa); font-size: .88rem; }
.promo-card { border-top: 4px solid var(--blue); }
.note-card { background: var(--cocoa-soft); border-color: #e3cdb8; }
.note-card h3 { color: var(--cocoa-dark); }

.flash {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-weight: 500;
  border: 1px solid;
}
.flash-success { background: #e8f3ea; border-color: #bcdcc4; color: #22543d; }
.flash-error { background: #fbeae6; border-color: #eec5bc; color: #7c2d1e; }

.pill {
  display: inline-block;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pill-green { background: #dff0e3; color: #22543d; }
.pill-red { background: #fbe3de; color: #7c2d1e; }
.pill-amber { background: var(--honey-soft); color: #7a5514; }
.pill-pending { background: var(--honey-soft); color: #7a5514; }
.pill-approved, .pill-paid, .pill-active, .pill-confirmed { background: #dff0e3; color: #22543d; }
.pill-completed { background: var(--blue-soft); color: var(--blue-dark); }
.pill-cancelled, .pill-declined { background: #fbe3de; color: #7c2d1e; }
.pill-unpaid { background: #fbe3de; color: #7c2d1e; }
.pill-refunded { background: #eee; color: #555; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
.form-wide { max-width: 720px; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fffdf9;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0; }
legend { font-weight: 700; color: var(--purple-dark); padding: 0 6px; }
.field-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field-grid.two-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; font-weight: 500 !important; }
.choice input { width: auto; }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.wraplist { align-items: stretch; }
.choice-row .choice {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fffdf9;
  cursor: pointer;
}
.choice-row .choice:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); }
.rate-panel {
  margin-top: 12px;
  background: var(--honey-soft);
  border: 1px dashed #d9b87e;
  border-radius: 10px;
  padding: 12px 16px;
}
.star-picker { display: flex; gap: 8px; flex-wrap: wrap; border: none; padding: 0; }
.star-opt { display: flex; flex-direction: row !important; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--honey); font-size: 1.1rem; }
.star-opt input { width: auto; }
.auth-card { max-width: 460px; margin: 40px auto; }

.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.table th {
  text-align: left;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  background: #f6efe8;
  padding: 10px 12px;
}
.table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.table tr:hover td { background: #faf7fd; }
.table a { font-weight: 600; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; }
.tabs a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}
.tabs a.on { background: var(--purple); color: #fff; border-color: var(--purple); }

.def-list { margin: 0; }
.def-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.def-list dt { font-weight: 600; color: var(--ink-soft); font-size: .88rem; }
.def-list dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: .4em 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }

.pass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
  max-width: 640px;
}
.pass-head {
  background: var(--purple);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 650;
  padding: 12px 20px;
  font-size: 1.02rem;
}
.pass-body { padding: 18px 20px; }
.pass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 12px; }
.pass-grid dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.pass-grid dd { margin: 2px 0 0; font-weight: 600; }
.perf {
  border-top: 2px dashed var(--line);
  margin: 14px -20px 10px;
  position: relative;
}
.perf::before, .perf::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.perf::before { left: -11px; }
.perf::after { right: -11px; }
.price-lines { width: 100%; border-collapse: collapse; }
.price-lines td { padding: 7px 0; vertical-align: top; }
.price-lines td.num { text-align: right; white-space: nowrap; font-weight: 600; }
.price-lines tr.total td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.05rem; padding-top: 10px; }
.total-band { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 16px; }
.big-price { font-size: 1.5rem; color: var(--purple-dark); }

.wizard .step { margin-bottom: 16px; }
.stepnum {
  display: inline-flex;
  width: 30px; height: 30px;
  background: var(--honey);
  color: var(--ink);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 480px; }
.cal-dow-cell { text-align: center; font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); padding: 4px 0; }
.cal-dow { display: contents; }
.admin-cal .cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow span { text-align: center; font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf9;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-day.blank { border: none; background: none; cursor: default; }
.cal-day.is-free:hover { border-color: var(--purple); }
.cal-day.is-full { background: #f0ede4; color: #b0aa98; cursor: not-allowed; text-decoration: line-through; }
.cal-day.is-past { background: transparent; color: #c9c4b4; cursor: not-allowed; }
.cal-day.is-holiday::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--honey);
}
.cal-day.is-holiday:not(.is-full):not(.is-past) { background: var(--honey-soft); border-color: var(--honey); font-weight: 700; }
.cal-holidays { margin: -4px 0 14px; max-width: 480px; }
.cal-holidays ul { margin: 2px 0 0; }
.cal-holidays li { padding: 3px 0; font-size: .9rem; }
.cal-day.is-start, .cal-day.is-end { background: var(--purple); color: #fff; border-color: var(--purple); }
.cal-day.in-range { background: var(--blue-soft); border-color: var(--blue); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); margin: 10px 0 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.dot-free { background: #fffdf9; border: 1px solid var(--line); }
.dot-full { background: #f0ede4; }
.dot-hol { background: var(--honey); }
.dot-sel { background: var(--purple); }
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }

/* Owner calendar: a column of week rows (it must not inherit the 7-column grid of .calendar). */
.calendar.admin-cal { display: block; max-width: 100%; overflow-x: auto; }
.admin-cal .cal-dow, .admin-cal .cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 6px;
  min-width: 700px;
}
.admin-cal .cal-dow { margin-bottom: 6px; }
.admin-cal .cal-week { margin-bottom: 6px; }
.cal-cell {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 104px;
  padding: 6px 7px;
  background: var(--card);
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cal-cell-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.cal-out { background: transparent; border-style: dashed; opacity: .55; }
.cal-daynum { font-weight: 700; color: var(--ink-soft); }
.cal-count { font-weight: 700; color: var(--blue); font-size: .74rem; }
.cal-count.is-zero { color: #b9b0c4; font-weight: 500; }
.cal-cell.is-today { border: 2px solid var(--purple); }
.cal-cell.is-today .cal-daynum { color: var(--purple); }
.cal-cell.is-holiday { background: var(--honey-soft); border-color: var(--honey); }
.cal-cell.is-full { background: #fbe9e5; border-color: #eec5bc; }
.cal-cell.is-full .cal-count { color: var(--danger); }
.cal-ev {
  display: block;
  border-radius: 6px;
  padding: 2px 6px;
  text-decoration: none;
  color: #fff;
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-ev.is-pending { opacity: .7; outline: 1px dashed rgba(255, 255, 255, .8); outline-offset: -3px; }
.cal-boarding { background: var(--purple); }
.cal-daycare { background: var(--blue); }
.cal-more { font-size: .72rem; color: var(--ink-soft); }
.hol-tag {
  display: block;
  font-size: .68rem;
  color: #7a5514;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
}
.admin-cal-legend { margin: 8px 0 14px; }
.dot-boarding { background: var(--purple); }
.dot-daycare { background: var(--blue); }
.subnav + h1, .subnav + .row-between, .subnav + * { margin-top: 22px; }
@media (max-width: 640px) {
  .admin-cal .cal-dow, .admin-cal .cal-week { grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; gap: 3px; }
  .admin-cal .cal-week { margin-bottom: 3px; }
  .admin-cal .cal-dow span { font-size: .62rem; letter-spacing: 0; }
  .cal-cell { min-height: 70px; padding: 3px; border-radius: 7px; gap: 2px; font-size: .66rem; }
  .cal-cell-head { flex-direction: column-reverse; align-items: flex-end; gap: 0; }
  .cal-count { font-size: .58rem; }
  .cal-ev { font-size: .58rem; padding: 1px 3px; border-radius: 4px; }
  .hol-tag { font-size: .55rem; }
}

.chat-card { display: flex; flex-direction: column; }
.help-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.chat-log {
  background: #f3effa;
  border-radius: 12px;
  padding: 14px;
  height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.msg { display: flex; flex-direction: column; max-width: 85%; }
.msg.bot { align-self: flex-start; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 13px;
  font-size: .93rem;
}
.msg.me .bubble { background: var(--purple); color: #fff; border-color: var(--purple); }
.msg-meta { font-size: .72rem; color: var(--ink-soft); margin-top: 3px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.chat-thread { max-height: 480px; overflow-y: auto; }

.faq { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 11px 14px; }
.faq p { padding: 0 14px 12px; margin: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-grid figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.photo-admin { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }

.pet-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--purple-soft);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 2px var(--purple-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.pet-avatar.small { width: 44px; height: 44px; font-size: 1.3rem; margin: 0; border-width: 2px; }
.pet-photo-field { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pet-photo-field .form-stack { flex: 1; min-width: 220px; }
.pet-row { display: flex; gap: 12px; align-items: center; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { text-align: center; padding: 16px 10px; margin-bottom: 0; }
.stat strong { display: block; font-size: 1.7rem; font-family: 'Fraunces', Georgia, serif; color: var(--purple-dark); }
.stat span { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 14px 18px; }
.filter-bar input, .filter-bar select { width: auto; min-width: 150px; }
.filter-bar label { font-size: .82rem; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }

.ticket { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fffdf9; }
.action-card { background: var(--blue-soft); }
.inline-decline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-decline input { width: 240px; }
.day-label { margin-top: 18px; color: var(--blue); }

.site-foot { background: var(--cocoa-dark); color: #eadccd; margin-top: 40px; border-top: 4px solid var(--purple); }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-top: 34px; padding-bottom: 20px; }
.site-foot strong { color: #fff; font-family: 'Fraunces', Georgia, serif; }
.site-foot a { color: var(--honey); }
.fineprint { font-size: .8rem; opacity: .65; padding-bottom: 22px; }

/* OAuth sign-in */
.oauth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--ink-soft); font-size: .85rem; }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.oauth-row { display: grid; gap: 10px; }
.btn-oauth { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-oauth:hover { border-color: var(--blue); background: #fff; }
.conn-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.conn-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }

/* Below this width the full header no longer fits on one line, so it collapses into the menu button. */
@media (max-width: 1080px) {
  .head-in { padding-top: 14px; padding-bottom: 10px; row-gap: 10px; }
  .nav-toggle { display: block; order: 3; }
  .site-nav {
    display: none;
    order: 4;               /* the open menu drops below the logo and the menu button */
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 4px;
    gap: 10px;
  }
  .site-nav.open { display: flex; }
}
@media (max-width: 860px) {
  .help-grid { grid-template-columns: 1fr; }
  .def-list > div { grid-template-columns: 1fr; gap: 2px; }
  .hero { padding-top: 30px; }
}

/* Owner view of a text conversation */
.sms-thread { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.sms { display: flex; flex-direction: column; max-width: 80%; }
.sms-in { align-self: flex-start; }
.sms-out { align-self: flex-end; align-items: flex-end; }
.sms-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; white-space: pre-line; font-size: .93rem; }
.sms-out .sms-bubble { background: var(--purple); color: #fff; border-color: var(--purple); }
.sms-meta { font-size: .72rem; color: var(--ink-soft); margin-top: 2px; }
.setup-card { border-left: 4px solid var(--danger); }
.setup-card ul { margin: .4em 0; padding-left: 20px; }
