:root {
  --pine-900: #142B21;
  --pine-700: #1F3A2E;
  --pine-500: #2C5240;
  --pine-300: #6B8C7C;
  --pine-100: #D9E4DC;
  --sand-100: #F7F3E7;
  --sand-200: #F2ECDD;
  --sand-300: #E8DFC8;
  --clay-600: #C1622D;
  --clay-700: #A24F22;
  --clay-100: #F4DFCD;
  --cream: #FCFAF4;
  --ink: #20231F;
  --ink-soft: #5B5F58;
  --line: #DDD5C0;
  --white: #FFFFFF;
  --error: #B3402F;
  --error-bg: #FBE9E4;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-card: 0 1px 2px rgba(20,43,33,0.06), 0 4px 16px rgba(20,43,33,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--sand-200);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Fraunces', serif; }

#app { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ===== Top-level layout switch (client form vs admin) ===== */
.mode-switch {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 4px;
  box-shadow: var(--shadow-card);
}
.mode-switch button {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.mode-switch button.active {
  background: var(--pine-700);
  color: var(--white);
}

/* ===== Client Intake App Shell ===== */
.intake-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  min-height: 100vh;
}
@media (max-width: 880px) {
  .intake-shell { grid-template-columns: 1fr; }
  .profile-rail { display: none; }
}

.form-col {
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar {
  width: 100%;
  background: var(--pine-700);
  color: var(--sand-100);
  padding: 22px 40px 18px;
}
.topbar-inner {
  max-width: 640px;
  margin: 0 auto;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clay-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.2px;
  color: var(--sand-100);
}
.brand-sub {
  font-size: 12.5px;
  color: var(--pine-100);
  margin: 0 0 0 40px;
  letter-spacing: 0.3px;
}

/* progress */
.progress-track {
  width: 100%;
  background: var(--sand-300);
}
.progress-bar {
  height: 3px;
  background: var(--clay-600);
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.steps-rail {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 40px 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.step-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pine-300);
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
}
.step-chip.done { color: var(--pine-700); }
.step-chip.current {
  color: var(--white);
  background: var(--pine-700);
}

.form-card {
  max-width: 640px;
  width: 100%;
  padding: 36px 40px 0;
  margin: 0 auto;
}

.step-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--clay-700);
  margin: 0 0 6px;
}
.step-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--pine-900);
}
.step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  line-height: 1.55;
  max-width: 520px;
}

.field-group { margin-bottom: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

label.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pine-900);
  margin-bottom: 6px;
}
.field-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 5px;
}
.required-mark { color: var(--clay-700); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  color: var(--ink);
  transition: border-color 0.15s;
}
textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pine-500);
  box-shadow: 0 0 0 3px var(--pine-100);
}
input.field-error, select.field-error, textarea.field-error {
  border-color: var(--error);
  background: var(--error-bg);
}
.error-text {
  font-size: 12.5px;
  color: var(--error);
  margin-top: 5px;
  font-weight: 500;
}

/* radio / pill groups */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-option {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.12s;
}
.pill-option:hover { border-color: var(--pine-300); }
.pill-option.selected {
  background: var(--pine-700);
  border-color: var(--pine-700);
  color: var(--white);
}

/* service cards (step 1) */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 18px;
  text-align: left;
  transition: all 0.12s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.service-card:hover { border-color: var(--pine-300); }
.service-card.selected {
  border-color: var(--clay-600);
  background: var(--clay-100);
}
.service-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--pine-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-card.selected .service-icon { background: var(--clay-600); }
.service-icon svg { width: 20px; height: 20px; stroke: var(--pine-700); }
.service-card.selected .service-icon svg { stroke: var(--white); }
.service-name { font-weight: 600; font-size: 15px; margin: 0 0 2px; color: var(--pine-900); }
.service-desc { font-size: 12.5px; color: var(--ink-soft); margin: 0; line-height: 1.4; }
.service-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
  margin-left: auto;
}
.service-card.selected .service-check {
  background: var(--clay-600);
  border-color: var(--clay-600);
  position: relative;
}
.service-card.selected .service-check::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* dog cards in step 3 */
.dog-entry {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  margin-bottom: 18px;
  background: var(--white);
  position: relative;
}
.dog-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dog-entry-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--pine-900);
}
.remove-dog-btn {
  border: none;
  background: transparent;
  color: var(--error);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 8px;
}
.add-dog-btn {
  width: 100%;
  border: 1.5px dashed var(--pine-300);
  background: transparent;
  border-radius: var(--radius-m);
  padding: 14px;
  color: var(--pine-700);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-dog-btn:hover { background: var(--pine-100); }

.photo-upload {
  width: 84px; height: 84px;
  border-radius: var(--radius-m);
  border: 1.5px dashed var(--line);
  background: var(--sand-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.photo-upload img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-label {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  text-align: center;
  padding: 0 6px;
}
.upload-row { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }

.file-upload-box {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 18px;
  text-align: center;
  background: var(--sand-100);
  cursor: pointer;
}
.file-upload-box.has-file {
  border-style: solid;
  border-color: var(--pine-300);
  background: var(--pine-100);
}
.file-upload-box svg { width: 22px; height: 22px; stroke: var(--pine-500); margin-bottom: 6px; }
.file-upload-text { font-size: 13px; font-weight: 600; color: var(--pine-700); }
.file-upload-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

/* checkbox rows for behavior */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand-300);
}
.check-row:last-child { border-bottom: none; }
.check-row input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--pine-700); }
.check-row-label { font-size: 14px; color: var(--ink); }

/* nav buttons */
.nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--sand-300);
}
.btn {
  border: none;
  border-radius: var(--radius-s);
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary { background: var(--clay-600); color: var(--white); }
.btn-primary:hover { background: var(--clay-700); }
.btn-secondary { background: transparent; color: var(--pine-700); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--pine-300); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* waiver */
.waiver-box {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--sand-100);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.waiver-box h4 { font-size: 13.5px; color: var(--pine-900); margin: 14px 0 4px; }
.waiver-box h4:first-child { margin-top: 0; }
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.agree-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--pine-700); flex-shrink: 0; }
.agree-row label { font-size: 13.5px; color: var(--ink); line-height: 1.5; }

.sig-pad {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px;
  background: var(--white);
}
.sig-preview {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-style: italic;
  color: var(--pine-900);
  border-bottom: 1.5px solid var(--line);
  padding: 6px 2px 10px;
  min-height: 38px;
}

/* review screen */
.review-section {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--white);
}
.review-section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--clay-700);
  margin: 0 0 12px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 13.5px;
}
.review-row-label { color: var(--ink-soft); flex-shrink: 0; }
.review-row-val { color: var(--ink); text-align: right; font-weight: 500; }

/* success screen */
.success-screen {
  max-width: 520px;
  margin: 80px auto;
  text-align: center;
  padding: 0 24px;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--pine-700);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.success-icon svg { width: 30px; height: 30px; stroke: var(--white); }

/* ===== Profile rail (signature live-building card) ===== */
.profile-rail {
  background: var(--pine-900);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.rail-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pine-300);
  margin-bottom: 18px;
}
.id-card {
  background: var(--sand-100);
  border-radius: var(--radius-l);
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.id-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.id-card-brand {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--clay-700);
  text-transform: uppercase;
}
.id-card-num { font-size: 9.5px; color: var(--ink-soft); font-family: monospace; }
.id-photo {
  width: 100%;
  height: 130px;
  border-radius: var(--radius-m);
  background: var(--sand-300);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.id-photo img { width: 100%; height: 100%; object-fit: cover; }
.id-photo svg { width: 30px; height: 30px; stroke: var(--pine-300); }
.id-dog-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--pine-900);
  margin: 0 0 2px;
  min-height: 23px;
}
.id-dog-breed { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 14px; min-height: 16px; }
.id-divider { border-top: 1px dashed var(--line); margin: 12px 0; }
.id-field { display: flex; justify-content: space-between; font-size: 11.5px; padding: 3px 0; }
.id-field-label { color: var(--ink-soft); }
.id-field-val { color: var(--ink); font-weight: 600; text-align: right; }
.id-empty { color: var(--line); font-weight: 400; }
.id-badges { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.id-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--pine-100);
  color: var(--pine-700);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.rail-extra-count {
  text-align: center;
  font-size: 12px;
  color: var(--pine-300);
  margin-top: 4px;
}
.rail-note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  color: var(--pine-300);
  line-height: 1.6;
  border-top: 1px solid var(--pine-500);
}
.rail-note strong { color: var(--sand-100); }

/* ===== Admin Dashboard ===== */
.admin-shell { min-height: 100vh; display: flex; }
.admin-sidebar {
  width: 230px;
  background: var(--pine-900);
  padding: 24px 16px;
  flex-shrink: 0;
  color: var(--sand-100);
}
.admin-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 24px; }
.admin-brand .brand-mark { width: 26px; height: 26px; }
.admin-brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 15.5px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pine-100);
  margin-bottom: 2px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.admin-nav-item svg { width: 16px; height: 16px; }
.admin-nav-item.active { background: var(--pine-700); color: var(--white); }
.admin-nav-item:hover:not(.active) { background: var(--pine-700); opacity: 0.6; }
.admin-nav-badge {
  margin-left: auto;
  background: var(--clay-600);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}

.admin-main { flex: 1; padding: 32px 40px; max-width: 1180px; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.admin-title { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; color: var(--pine-900); margin: 0 0 4px; }
.admin-sub { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 880px) { .stat-row { grid-template-columns: repeat(2,1fr); } }
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
}
.stat-num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; color: var(--pine-900); }
.stat-label { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.search-input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 9px 13px 9px 36px;
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%235B5F58" stroke-width="2"><circle cx="6.5" cy="6.5" r="5"/><line x1="10.5" y1="10.5" x2="14" y2="14"/></svg>') no-repeat 12px center;
}
.filter-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 9px 12px;
  background: var(--white);
  font-size: 13.5px;
}

.table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  padding: 12px 16px;
  background: var(--sand-100);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--line);
}
td { padding: 13px 16px; border-bottom: 1px solid var(--sand-300); color: var(--ink); }
tr:last-child td { border-bottom: none; }
tr.clickable-row:hover { background: var(--sand-100); cursor: pointer; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
}
.badge-green { background: #DCEEE2; color: #1F6B3D; }
.badge-amber { background: #FBEAD2; color: #94590E; }
.badge-red { background: var(--error-bg); color: var(--error); }
.badge-gray { background: var(--sand-300); color: var(--ink-soft); }
.badge-blue { background: #D6E8FF; color: #1A4B8C; }
.service-tag {
  display: inline-block;
  font-size: 11px;
  background: var(--pine-100);
  color: var(--pine-700);
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  font-weight: 500;
}

/* detail drawer */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20,43,33,0.35);
  z-index: 90;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: 480px;
  max-width: 92vw;
  background: var(--sand-200);
  height: 100vh;
  overflow-y: auto;
  padding: 28px 32px 60px;
}
.drawer-close {
  border: none; background: var(--white); border: 1px solid var(--line);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.drawer-dog-header { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.drawer-photo {
  width: 64px; height: 64px; border-radius: var(--radius-m);
  background: var(--sand-300); object-fit: cover;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.drawer-photo img { width: 100%; height: 100%; object-fit: cover; }
.drawer-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--pine-900); margin: 0; }
.drawer-meta { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }

.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* ===== Safety flags ===== */
.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-right: 4px;
  margin-bottom: 4px;
}
.flag-red { background: var(--error-bg); color: var(--error); }
.flag-amber { background: #FBEAD2; color: #94590E; }
.flag-gray { background: var(--sand-300); color: var(--ink-soft); }
.flag-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-pill {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.flag-pill.active.flag-red { background: var(--error); border-color: var(--error); color: var(--white); }
.flag-pill.active.flag-amber { background: #C17A1F; border-color: #C17A1F; color: var(--white); }
.flag-pill.active.flag-gray { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--white); }

/* ===== Check-in status ===== */
.checkin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}
.checkin-pill.in { background: #DCEEE2; color: #1F6B3D; }
.checkin-pill.out { background: var(--sand-300); color: var(--ink-soft); }
.checkin-pill svg { width: 11px; height: 11px; }

.today-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.today-card-left { display: flex; align-items: center; gap: 12px; }
.today-dog-photo {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--sand-300);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.today-dog-photo img { width: 100%; height: 100%; object-fit: cover; }
.today-name { font-weight: 600; font-size: 14.5px; color: var(--pine-900); margin: 0; }
.today-sub { font-size: 12px; color: var(--ink-soft); margin: 1px 0 0; }
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
.empty-state svg { width: 36px; height: 36px; stroke: var(--line); margin-bottom: 10px; }

/* payment row */
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--sand-300);
  font-size: 13.5px;
}
.payment-amount { font-weight: 700; color: var(--pine-900); }
.payment-unpaid { color: var(--error); font-weight: 600; font-size: 11.5px; }

/* ===== Calendar / capacity view ===== */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.cal-month-label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--pine-900);
  min-width: 160px;
  text-align: center;
}
.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-soft); align-items: center; }
.cal-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-bottom: 4px;
}
.cal-cell {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  min-height: 92px;
  padding: 7px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.12s;
}
.cal-cell:hover { border-color: var(--pine-300); }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.today { border-color: var(--clay-600); border-width: 2px; }
.cal-cell.over-cap { background: var(--error-bg); border-color: var(--error); }
.cal-cell.at-cap { background: #FBEAD2; border-color: #C17A1F; }
.cal-date-num { font-size: 12.5px; font-weight: 700; color: var(--pine-900); margin-bottom: 5px; }
.cal-cell.over-cap .cal-date-num, .cal-cell.at-cap .cal-date-num { color: var(--ink); }
.cal-count-row { font-size: 10.5px; color: var(--ink-soft); line-height: 1.5; }
.cal-count-row b { color: var(--ink); }
.cal-count-row.warn b { color: var(--error); }

.daybook-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.daybook-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 13px;
}
.daybook-item.rover { border-left: 3px solid #2F6FB3; }
.daybook-item.direct { border-left: 3px solid var(--pine-700); }
.daybook-source {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
}
.cap-bar-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cap-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
}
.cap-bar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.cap-bar-label { font-weight: 600; color: var(--pine-900); }
.cap-bar-count { font-weight: 700; }
.cap-bar-track { height: 8px; background: var(--sand-300); border-radius: 4px; overflow: hidden; }
.cap-bar-fill { height: 100%; border-radius: 4px; transition: width 0.2s; }
.cap-bar-fill.ok { background: var(--pine-500); }
.cap-bar-fill.warn { background: #C17A1F; }
.cap-bar-fill.over { background: var(--error); }

.override-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--error-bg);
  border: 1px solid var(--error);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--error);
  font-weight: 600;
  margin-bottom: 14px;
}
.override-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Client portal ===== */
.portal-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}
.portal-lookup-card {
  max-width: 420px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  align-self: flex-start;
  margin-top: 40px;
}
.portal-lookup-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--pine-100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.portal-lookup-icon svg { width: 26px; height: 26px; stroke: var(--pine-700); }
.portal-title { font-family: 'Fraunces', serif; font-size: 23px; font-weight: 600; text-align: center; color: var(--pine-900); margin: 0 0 8px; }
.portal-sub { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin: 0 0 28px; line-height: 1.5; }
.portal-not-found { font-size: 13px; color: var(--error); text-align: center; margin-top: 12px; }

.portal-dash {
  max-width: 720px;
  width: 100%;
  padding: 0 0 60px;
}
.portal-header {
  background: var(--pine-700);
  padding: 28px 32px 24px;
  color: var(--sand-100);
}
.portal-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.portal-logout { background: transparent; border: 1px solid var(--pine-300); color: var(--sand-100); font-size: 12px; padding: 6px 12px; border-radius: 16px; }
.portal-greeting { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; margin: 10px 0 2px; }
.portal-greeting-sub { font-size: 13px; color: var(--pine-100); }

.portal-body { padding: 24px 32px; }
.portal-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.portal-alert.warn { background: #FBEAD2; color: #7A4A0E; border: 1px solid #E0A958; }
.portal-alert.info { background: var(--pine-100); color: var(--pine-900); border: 1px solid var(--pine-300); }
.portal-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.portal-alert strong { display: block; margin-bottom: 2px; }

.portal-section-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--pine-900);
  margin: 28px 0 12px;
}
.portal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.portal-booking-row { display: flex; justify-content: space-between; align-items: center; }
.portal-booking-dog { font-weight: 600; color: var(--pine-900); font-size: 14.5px; }
.portal-booking-dates { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.portal-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.portal-photo-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.portal-photo-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.portal-photo-caption { padding: 8px 10px; font-size: 12px; color: var(--ink-soft); }
.portal-photo-date { font-size: 10.5px; color: var(--clay-700); font-weight: 700; text-transform: uppercase; }

.portal-empty { font-size: 13px; color: var(--ink-soft); padding: 8px 0; }

/* ===== Inquiry pipeline additions ===== */
.inq-match-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pine-100);
  border: 1px solid var(--pine-300);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--pine-700);
  font-weight: 500;
  margin-bottom: 16px;
}
.inq-match-notice svg { width: 16px; height: 16px; stroke: var(--pine-700); flex-shrink: 0; }

.inq-dashboard-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #D6E8FF;
  border: 1px solid #4A90D9;
  border-radius: var(--radius-m);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #1A4B8C;
  font-weight: 600;
  margin-bottom: 20px;
  cursor: pointer;
}
.inq-dashboard-banner svg { width: 16px; height: 16px; stroke: #1A4B8C; flex-shrink: 0; }

/* ===== Inquiry form page (inquire.html) ===== */
.inq-page { min-height: 100vh; background: var(--sand-200); }
.inq-topbar {
  background: var(--pine-700);
  color: var(--sand-100);
  padding: 20px 40px;
}
.inq-topbar .brand-row { margin-bottom: 0; }
.inq-topbar .brand-sub { margin-top: 2px; }
.inq-progress {
  height: 3px;
  background: var(--sand-300);
  width: 100%;
}
.inq-progress-fill {
  height: 3px;
  background: var(--clay-600);
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.inq-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.inq-step-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--clay-700);
  margin: 0 0 6px;
}
.inq-confirm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--pine-700);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.inq-confirm-icon svg { width: 30px; height: 30px; stroke: var(--white); }
.inq-continue-box {
  background: var(--pine-100);
  border: 1px solid var(--pine-300);
  border-radius: var(--radius-l);
  padding: 24px 28px;
  margin-top: 28px;
  text-align: center;
}
.inq-continue-box h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--pine-900);
  margin: 0 0 8px;
}
.inq-continue-box p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  line-height: 1.55;
}
.inq-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clay-600);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-s);
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
}
.inq-continue-link:hover { background: var(--clay-700); }
