:root {
  --paper: #f7f5ef;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #696969;
  --line: #d8d5cc;
  --accent: #11615b;
  --accent-soft: #e0f0ed;
  --sky: #e9f3fb;
  --sky-line: #bfd7ea;
  --coral: #b84f3f;
  --coral-soft: #fff0ec;
  --gold: #7a4b00;
  --gold-soft: #fff7db;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.parkwood-embedded,
html.parkwood-embedded body {
  min-height: 0;
  background: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.portal-root {
  min-height: 100vh;
}

html.parkwood-embedded .portal-root {
  min-height: 0;
}

.portal-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  padding: 10px;
  gap: 10px;
}

.portal-topbar,
.login-card,
.portal-band,
.pet-card,
.visit-row,
.action-panel,
.empty-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-wrap {
  display: inline-grid;
  align-items: center;
  width: clamp(142px, 18vw, 190px);
  min-width: 142px;
  height: 58px;
}

.logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  padding: 0 10px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.05;
}

.logo-wrap.is-missing img {
  display: none;
}

.logo-wrap.is-missing .logo-fallback {
  display: flex;
}

.brand-lockup img {
  width: clamp(142px, 18vw, 190px);
  height: 58px;
  object-fit: contain;
}

.topbar-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.02;
}

h2 {
  font-size: 22px;
  line-height: 1.1;
}

h3 {
  font-size: 17px;
  line-height: 1.15;
}

.topbar-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.text-button,
.primary-button,
.secondary-button,
.tab-button,
.pet-switch,
.file-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  color: var(--accent);
}

.icon-button svg,
.text-button svg,
.primary-button svg,
.secondary-button svg,
.file-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-button,
.primary-button,
.secondary-button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  text-decoration: none;
}

.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.primary-button.danger-primary-button {
  border-color: var(--coral);
  background: var(--coral);
}

.secondary-button {
  background: #f8f7f2;
  color: var(--accent);
}

.secondary-button.danger-outline-button {
  border-color: #f0c9c2;
  background: var(--coral-soft);
  color: var(--coral);
}

.secondary-button.is-danger {
  border-color: #f0c9c2;
  background: #fff4f2;
  color: #a33a2b;
}

.text-button {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.portal-content {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  min-width: 0;
}

.portal-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.portal-main {
  display: grid;
  align-content: start;
  gap: 10px;
  container-type: inline-size;
  min-width: 0;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 10px;
}

html.parkwood-embedded .portal-frame,
html.parkwood-embedded .login-shell {
  min-height: 0;
  padding: 0;
}

html.parkwood-embedded .login-card {
  align-self: start;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  align-self: center;
  width: min(1040px, 100%);
  min-height: min(690px, calc(100vh - 20px));
  margin: 0 auto;
  overflow: hidden;
}

.login-card-simple {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  width: min(500px, 100%);
  min-height: 0;
}

.login-card-simple.is-signup-wide {
  grid-template-columns: minmax(0, 900px);
  width: min(960px, 100%);
}

.login-pane {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(22px, 4vw, 46px);
  background: #fff;
}

.login-card-simple .login-pane {
  justify-items: stretch;
  text-align: center;
}

.login-card-simple.is-signup-wide .login-pane {
  align-content: start;
  text-align: left;
}

.login-logo,
.login-logo-wrap {
  width: min(210px, 62vw);
  height: 112px;
  object-fit: contain;
}

.login-logo-wrap {
  min-width: min(210px, 62vw);
}

.login-card-simple .login-logo-wrap {
  justify-self: center;
}

.login-card-simple.is-signup-wide .login-logo-wrap {
  margin-bottom: 8px;
}

.login-copy {
  display: grid;
  gap: 10px;
}

.login-card-simple .login-copy {
  justify-items: center;
}

.login-card-simple.is-signup-wide .login-copy {
  justify-items: center;
}

.login-copy p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.agreement-check-list {
  display: grid;
  gap: 8px;
}

.terms-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.terms-check a {
  color: var(--accent);
  font-weight: 950;
}

.portal-agreement-required-list {
  display: grid;
  gap: 8px;
}

.portal-agreement-required-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.portal-agreement-required-row span,
.agreement-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.portal-agreement-required-row strong,
.portal-agreement-required-row small,
.agreement-row strong,
.agreement-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-agreement-required-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.portal-agreement-required-row small,
.agreement-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.field-grid {
  display: grid;
  gap: 10px;
}

.field-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-grid input,
.field-grid select,
.field-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}

.field-grid textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.field-grid input:focus,
.field-grid select:focus,
.field-grid textarea:focus,
.icon-button:focus-visible,
.text-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.tab-button:focus-visible,
.pet-switch:focus-visible,
.file-button:focus-visible,
.owner-pet-chip:focus-visible,
.dashboard-action-card:focus-visible,
.portal-mobile-menu-details summary:focus-visible,
.portal-mobile-menu button:focus-visible {
  border-color: #0b7cff;
  box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.16);
  outline: 0;
}

.code-input {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0.24em;
  text-align: center;
}

.login-aside {
  display: grid;
  align-content: end;
  min-height: 100%;
  background:
    linear-gradient(rgba(17, 97, 91, 0.12), rgba(17, 97, 91, 0.12)),
    url("/assets/dog-photos/dog-biscuit.jpg") center / cover;
}

.login-aside-panel {
  display: grid;
  gap: 8px;
  margin: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.login-aside-panel strong {
  font-size: 22px;
  font-weight: 950;
}

.login-aside-panel span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.status-line {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.status-line.is-error {
  color: #b91c1c;
}

.status-line.is-ok {
  color: var(--accent);
}

.debug-code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  width: fit-content;
  border: 1px solid var(--sky-line);
  border-radius: 8px;
  background: var(--sky);
  color: #0c4160;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 950;
}

.tour-signup-shell,
.tour-info-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.tour-appointment-card,
.tour-selected-slot,
.tour-confirmation-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #b8d6d0;
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 14px;
}

.tour-appointment-card svg,
.tour-selected-slot svg,
.tour-confirmation-card svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tour-appointment-card h2,
.tour-confirmation-card h2 {
  margin-top: 2px;
}

.tour-appointment-card span,
.tour-selected-slot small,
.tour-confirmation-card p,
.tour-confirmation-card span {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.tour-selected-slot span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tour-selected-slot strong {
  font-weight: 950;
}

.tour-appointment-card em {
  justify-self: end;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.tour-location-picker {
  display: grid;
  gap: 12px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #f1fbf8;
  padding: 14px;
}

.tour-location-picker-head {
  display: grid;
  gap: 4px;
}

.tour-location-picker-head strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.tour-location-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tour-location-option {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 76px;
  border: 1px solid #b8d6d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.tour-location-option:hover {
  border-color: var(--accent);
  background: #fbfffd;
}

.tour-location-option.is-selected {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.tour-location-option strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.tour-location-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.tour-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tour-nav-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tour-nav-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.tour-day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tour-day-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.tour-day-head {
  display: grid;
  gap: 2px;
}

.tour-day-head strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-day-head span,
.tour-day-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tour-slot-grid {
  display: grid;
  gap: 7px;
}

.tour-slot-button {
  min-height: 40px;
  border: 1px solid #b8d6d0;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-weight: 950;
}

.tour-slot-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tour-no-slots {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tour-info-copy {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 12px;
}

.tour-info-copy strong {
  font-size: 16px;
  font-weight: 950;
}

.tour-info-copy p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.4;
}

.tour-precheck-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.tour-precheck-card > div:first-child {
  display: grid;
  gap: 4px;
}

.tour-precheck-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.tour-precheck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tour-precheck-option {
  background: #fbfffd;
}

.grooming-location-field {
  max-width: 360px;
}

.grooming-location-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.grooming-intake-form {
  width: 100%;
}

.intake-upload-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.intake-photo-upload {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.intake-photo-upload .pet-photo-upload-square {
  width: 72px;
}

.intake-file-button {
  width: 100%;
}

.intake-upload-card > small {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grooming-estimate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #b8d6d0;
  border-radius: 8px;
  background: #f8fffd;
  padding: 12px;
}

.grooming-estimate-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.grooming-estimate-card strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grooming-estimate-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.grooming-estimate-card b {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.signup-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.portal-band {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.owner-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  border-color: #b8d6d0;
  background: linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
}

.owner-summary-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.owner-summary-top > strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-summary-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.owner-summary-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.owner-summary-main {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.owner-summary-main > div {
  min-width: 0;
}

.owner-summary-photo {
  width: 82px;
  height: 82px;
  border: 1px solid #b8d6d0;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.owner-summary p {
  color: var(--muted);
  max-width: 760px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.45;
}

.owner-summary-next {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.owner-summary > .summary-actions,
.owner-summary .summary-actions {
  display: none !important;
}

.owner-pet-strip {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.owner-pet-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.owner-pet-strip-head strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.owner-pet-add {
  flex: 0 0 30px;
}

.owner-pet-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.owner-pet-chip {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 4px 9px 4px 4px;
  cursor: pointer;
  font-weight: 950;
  text-align: left;
}

.owner-pet-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.owner-pet-chip.has-alert:not(.is-active) {
  border-color: #efd691;
}

.owner-pet-chip.is-disabled {
  border-color: #e7cbc5;
  background: var(--coral-soft);
  color: var(--coral);
}

.owner-pet-chip.is-more {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 9px;
  color: var(--accent);
}

.owner-pet-chip.is-empty {
  grid-template-columns: 22px minmax(0, 1fr);
  padding-left: 9px;
  color: var(--accent);
}

.owner-pet-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.owner-pet-photo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f7f2;
  object-fit: cover;
}

.owner-pet-photo.pet-initials {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.owner-pet-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-summary .owner-pet-strip {
  display: none;
}

.portal-pets-panel {
  display: grid;
}

.owner-pet-chip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.owner-pet-chip-copy strong {
  overflow: hidden;
  color: currentColor;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-pet-chip-copy em {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #efd691;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  padding: 1px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.2;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f8f7f2;
  color: var(--muted);
  padding: 0 8px;
  text-align: center;
  white-space: nowrap;
}

.tab-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-button.is-action {
  border-color: #b8d6d0;
  background: var(--accent-soft);
  color: var(--accent);
}

.tab-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pet-list {
  display: grid;
  gap: 8px;
}

.pet-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 94px;
  padding: 10px;
  cursor: pointer;
  box-shadow: none;
}

.pet-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pet-card.is-disabled {
  border-color: #e7cbc5;
  background: var(--coral-soft);
}

.pet-card.is-disabled .pet-photo,
.pet-card.is-disabled .pet-initials,
.owner-pet-chip.is-disabled .owner-pet-photo {
  filter: grayscale(1);
  opacity: 0.72;
}

.pet-photo,
.pet-initials {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
}

.pet-photo {
  object-fit: cover;
}

.pet-initials {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
  font-weight: 950;
}

.owner-summary-photo.pet-initials {
  width: 82px;
  height: 82px;
}

.pet-card strong,
.visit-row strong,
.action-panel strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-card span,
.visit-row span,
.action-panel span,
.empty-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-tile {
  display: grid;
  align-content: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.metric-tile b {
  color: var(--accent);
  font-size: 25px;
  line-height: 1;
}

.metric-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-step-head {
  align-items: start;
}

.booking-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: end;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
}

.booking-head-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.booking-step-context {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.booking-draft-choice {
  display: grid;
  gap: 12px;
}

.booking-draft-card {
  display: grid;
  gap: 4px;
  max-width: 680px;
  border: 1px solid #bfded6;
  border-radius: 8px;
  background: #f5fbf8;
  padding: 14px;
}

.booking-draft-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.booking-draft-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.booking-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visit-list {
  display: grid;
  gap: 8px;
}

.visit-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(190px, 1.2fr) minmax(140px, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  box-shadow: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #cfe6df;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.status-pill svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-pill.is-ok {
  border-color: #cfe6df;
  background: var(--accent-soft);
  color: var(--accent);
}

.status-pill.is-warn {
  border-color: #efd691;
  background: var(--gold-soft);
  color: var(--gold);
}

.status-pill.is-bad {
  border-color: #f0b4aa;
  background: var(--coral-soft);
  color: var(--coral);
}

.vaccine-summary-pill {
  cursor: pointer;
  min-height: 38px;
  padding: 0 12px;
}

.vaccine-summary-pill:hover {
  filter: brightness(0.98);
}

.pet-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 10px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.medical-info-list {
  align-content: start;
  grid-template-columns: 1fr;
}

.medical-info-list .wide-info {
  grid-column: auto;
}

.info-item {
  display: grid;
  gap: 4px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

button.info-item {
  width: 100%;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.info-item:hover,
button.info-item:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.info-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-item strong {
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-action-item {
  position: relative;
  padding-right: 58px;
}

.info-action-item em {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.vaccine-list {
  display: grid;
  gap: 7px;
}

.vaccine-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.vaccine-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vaccine-row > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vaccine-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.panel-form {
  display: grid;
  gap: 10px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-grid .input-suffix {
  position: relative;
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.input-suffix input {
  padding-right: 52px;
}

.input-suffix em {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  transform: translateY(-50%);
}

.file-button {
  position: relative;
  min-height: 52px;
  background: var(--sky);
  color: #0c4160;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pet-form-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pet-form-basics {
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: start;
}

.pet-form-basics .form-grid-2 {
  grid-column: 2;
}

.pet-photo-upload-tile {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.pet-photo-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pet-photo-upload-square {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  border: 1px dashed #93c2bb;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  overflow: hidden;
}

.pet-photo-upload-square > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-photo-upload-square > svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pet-photo-upload-square em {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cfe6df;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
}

.pet-photo-upload-square em svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pet-photo-upload-tile strong,
.pet-photo-upload-tile small {
  display: block;
}

.pet-photo-upload-tile strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.pet-photo-upload-tile small {
  color: var(--muted);
}

.compact-switch {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.portal-owners-form {
  gap: 14px;
}

.portal-owner-pet {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.portal-owner-pet-head,
.portal-primary-owner,
.portal-owner-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.portal-owner-pet-photo,
.portal-owner-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.portal-owner-pet-head strong,
.portal-primary-owner strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.portal-owner-pet-head small,
.portal-primary-owner small,
.portal-owner-photo-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-primary-owner {
  border: 1px solid #cfe6df;
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 10px;
}

.portal-owner-list {
  display: grid;
  gap: 10px;
}

.portal-owner-row {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
  padding: 10px;
}

.portal-owner-photo-field {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  cursor: pointer;
}

.portal-owner-photo-plus {
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.portal-owner-photo-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.portal-owner-photo-field strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.portal-owner-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal-owner-permissions {
  align-self: end;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.permission-chip input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.portal-owner-remove {
  width: 34px;
  height: 34px;
}

.empty-panel {
  display: grid;
  gap: 6px;
  min-height: 110px;
  align-content: center;
  justify-items: center;
  padding: 16px;
  box-shadow: none;
  text-align: center;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.quick-action svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-action strong {
  display: block;
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.quick-action > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quick-action > span > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.message-bubble {
  width: fit-content;
  max-width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.message-bubble.is-owner {
  margin-left: auto;
  border-color: #cfe6df;
  background: var(--accent-soft);
}

.message-bubble.is-staff {
  margin-right: auto;
  border-color: #ded7c8;
  background: #fffdf7;
}

.message-bubble.is-email {
  max-width: min(680px, 100%);
}

.message-bubble.is-call {
  justify-self: center;
  width: min(520px, 100%);
  text-align: center;
  border-color: #cfded9;
  background: #f7fbfa;
}

.message-bubble span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-bubble strong {
  display: block;
  margin-top: 4px;
  font-weight: 900;
}

.message-bubble p {
  margin-top: 4px;
  font-weight: 760;
  line-height: 1.35;
}

.is-hidden {
  display: none !important;
}

.small-icon {
  width: 34px;
  min-height: 34px;
}

.tab-list-wide {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.portal-mobile-menu {
  display: none;
}

.portal-root.portal-nav-compact .tab-list-wide {
  display: none;
}

.portal-root.portal-nav-compact .owner-summary-top {
  display: none;
}

.portal-root.portal-nav-compact .portal-mobile-menu {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  min-height: 52px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.portal-root.portal-nav-compact .portal-mobile-menu-details {
  min-width: 0;
}

.portal-root.portal-nav-compact .portal-mobile-menu-details > summary {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 0 144px 0 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.portal-root.portal-nav-compact .portal-mobile-menu-details > summary::-webkit-details-marker {
  display: none;
}

.portal-root.portal-nav-compact .portal-mobile-menu-details > summary svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-root.portal-nav-compact .portal-mobile-menu-details > summary strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-root.portal-nav-compact .portal-mobile-actions {
  position: absolute;
  top: 5px;
  right: 6px;
  display: flex;
  gap: 6px;
}

.portal-root.portal-nav-compact .portal-mobile-actions .icon-button {
  width: 40px;
  min-height: 40px;
  background: #fff;
}

.portal-root.portal-nav-compact .portal-mobile-menu-list {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 8px;
}

.portal-root.portal-nav-compact .portal-mobile-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  cursor: pointer;
  font-weight: 950;
  text-align: left;
}

.portal-root.portal-nav-compact .portal-mobile-menu-row.has-leading-icon {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

.portal-root.portal-nav-compact .portal-mobile-menu-row.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.portal-root.portal-nav-compact .portal-mobile-menu-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.dashboard-actions {
  gap: 10px;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-package-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.dashboard-action-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.dashboard-action-card.is-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.dashboard-package-card {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.dashboard-package-card.has-add {
  border-color: #b8d6d0;
  background: var(--accent-soft);
}

.dashboard-package-add {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid #b8d6d0;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-style: normal;
}

.dashboard-action-card svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-action-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-action-card strong,
.dashboard-action-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-card strong {
  color: currentColor;
  font-size: 16px;
  font-weight: 950;
}

.dashboard-action-card small {
  color: currentColor;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.3;
  opacity: 0.76;
}

.dashboard-menu-list {
  margin-top: 2px;
}

.appointment-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.appointment-cta h2 {
  max-width: 760px;
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-row,
.appointment-summary {
  display: grid;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.menu-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
}

.menu-row strong,
.menu-row small,
.document-row strong,
.document-row small,
.payment-method strong,
.payment-method small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row small,
.document-row small,
.payment-method small,
.booking-pet-card small,
.choice-card span,
.detail-strip span,
.package-card span,
.package-card em,
.report-card span,
.report-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.menu-row svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.subtab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subtab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 950;
}

.subtab-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.subtab-button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border: 1px solid #d4d0c5;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "zero" 1;
  line-height: 1;
}

.subtab-button.is-active span {
  border-color: transparent;
  background: #fff;
  color: var(--accent);
}

.appointment-list,
.package-grid,
.report-list,
.agreement-list,
.document-list,
.payment-methods,
.addon-groups {
  display: grid;
  gap: 8px;
}

.appointment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.appointment-summary {
  grid-template-columns: minmax(170px, 1.1fr) minmax(130px, 0.8fr) minmax(150px, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
}

.appointment-summary strong,
.appointment-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.appointment-detail {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
  padding: 12px;
}

.detail-strip {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.booking-payment-panel {
  display: grid;
  gap: 10px;
}

.booking-date-grid {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.book-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.book-stepper span {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

.book-stepper span.is-active {
  background: var(--accent);
}

.choice-grid,
.booking-pet-grid,
.room-grid,
.review-grid,
.payment-summary {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-grid,
.booking-pet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card,
.booking-pet-card,
.addon-row,
.document-row,
.payment-method,
.package-card,
.report-card,
.agreement-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.choice-card,
.booking-pet-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.choice-card.is-active,
.booking-pet-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.room-choice-card {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  min-height: 118px;
  padding: 10px;
}

.room-card-media {
  display: grid;
  place-items: center;
  min-width: 0;
}

.room-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.room-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.room-card-copy strong,
.room-card-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card-copy small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.room-card-copy small.is-full,
.room-choice-card.is-unavailable .room-card-copy small {
  color: #b45309;
}

.room-choice-card.is-unavailable {
  cursor: not-allowed;
  opacity: 0.72;
}

.lodging-availability-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.lodging-availability-panel strong,
.lodging-availability-panel span {
  min-width: 0;
}

.lodging-availability-panel .secondary-button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.lodging-availability-panel.is-warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.lodging-availability-panel.is-full {
  border-color: #ef4444;
  background: #fef2f2;
}

.booking-pet-card {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 86px;
}

.booking-pet-card > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.booking-pet-card strong,
.booking-pet-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-pet-card input {
  position: absolute;
  opacity: 0;
}

.add-pet-card {
  grid-template-columns: 24px minmax(0, 1fr);
  justify-self: start;
  width: min(100%, 310px);
  min-height: 62px;
  padding: 10px 12px;
}

.add-pet-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.sticky-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  border: 1px solid #cfe6df;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 10px 12px;
  font-weight: 950;
}

.sticky-summary span {
  color: var(--accent);
  font-size: 13px;
}

.rebook-settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf3;
  padding: 10px 12px;
}

.rebook-settings-panel > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rebook-settings-panel strong,
.rebook-settings-panel small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rebook-settings-panel strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.rebook-settings-panel small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.addon-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.addon-group-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 12px;
  text-align: left;
}

.addon-group-toggle:hover,
.addon-group.is-open .addon-group-toggle {
  background: #f8f7f2;
}

.addon-group.is-open .addon-group-toggle {
  border-bottom: 1px solid var(--line);
}

.addon-group-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.addon-group-title strong {
  color: var(--ink);
  font-size: 17px;
}

.addon-group-title small,
.addon-group-title em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 780;
  line-height: 1.35;
}

.addon-group-title em {
  color: var(--accent);
}

.addon-group-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.addon-group-meta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.16s ease;
}

.addon-group.is-open .addon-group-meta svg {
  transform: rotate(90deg);
}

.addon-group-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.addon-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(240px, 320px);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
}

.addon-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.addon-row select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
}

.addon-times-control {
  display: grid;
  gap: 4px;
}

.addon-schedule-control {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 92px;
  gap: 8px;
  align-items: end;
}

.addon-schedule-control[data-addon-has-quantity="false"] {
  grid-template-columns: minmax(0, 1fr);
}

.addon-date-control {
  display: grid;
  gap: 4px;
  position: relative;
}

.addon-times-control > span,
.addon-date-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
	  text-transform: uppercase;
	}

.addon-date-rule-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.addon-date-rule-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 0 8px;
  text-align: left;
}

.addon-date-rule-trigger:disabled {
  background: #f4f3ef;
  color: var(--muted);
  opacity: 0.75;
}

.addon-date-rule-trigger [data-addon-date-rule-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.addon-date-rule-trigger svg {
  width: 15px;
  height: 15px;
  justify-self: end;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.addon-date-rule-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: max(100%, 300px);
  min-width: min(320px, 86vw);
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(28, 26, 21, 0.16);
  padding: 8px;
}

.addon-date-rule-menu[hidden],
.addon-date-options[hidden],
.addon-times-control[hidden] {
  display: none !important;
}

.addon-date-rule-option {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
}

.addon-date-rule-option:hover,
.addon-date-rule-option:focus-visible,
.addon-date-rule-option.is-selected {
  background: #fbf1e8;
  color: #1f1f1f;
}

.addon-date-rule-option.is-selected {
  font-weight: 950;
}

.addon-times-control input,
.addon-date-control select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 0 8px;
}

.addon-date-control .addon-date-rule-native {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
}

.addon-times-control.is-disabled input,
.addon-times-control input:disabled,
.addon-date-control select:disabled {
  background: #f4f3ef;
  color: var(--muted);
  opacity: 0.75;
}

.addon-date-options {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.addon-date-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.addon-date-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.addon-date-option:has(input:disabled) {
  background: #f4f3ef;
  color: var(--muted);
  cursor: default;
  opacity: 0.75;
}

.addon-row-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.addon-row-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.addon-schedule-note {
  display: grid;
  align-items: center;
  min-height: 38px;
  border: 1px solid #cfe6df;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.book-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.booking-feeding-confirmation {
  align-items: flex-start;
  min-height: 0;
  border-color: #bfded6;
  background: #f2fbf7;
  padding: 10px 12px;
}

.booking-feeding-confirmation input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.booking-feeding-confirmation span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.booking-feeding-confirmation strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.booking-feeding-confirmation small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.recurrence-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--sky-line);
  border-radius: 8px;
  background: var(--sky);
  padding: 12px;
}

.recurrence-panel-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.weekday-toggle-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.grooming-interval-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.weekday-toggle {
  position: relative;
  min-width: 0;
}

.weekday-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.weekday-toggle span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.weekday-toggle input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.weekday-toggle input:focus-visible + span {
  border-color: #0b7cff;
  box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.16);
}

.medication-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--sky-line);
  border-radius: 8px;
  background: var(--sky);
  padding: 12px;
}

.booking-care-section {
  display: grid;
  gap: 10px;
}

.booking-care-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
}

.booking-care-section-head span,
.booking-feeding-row label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-care-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.booking-care-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booking-care-head strong {
  font-size: 16px;
}

.booking-care-head .text-button {
  min-height: 34px;
  padding: 0 10px;
}

.booking-feeding-rows {
  display: grid;
  gap: 8px;
}

.booking-feeding-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fefefe;
  padding: 10px;
}

.booking-feeding-row label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.booking-feeding-row input,
.booking-feeding-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  font: inherit;
}

.booking-feeding-row input::placeholder {
  color: #8a8580;
}

.booking-feeding-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  color: var(--muted);
  padding: 0;
}

.booking-feeding-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pet-profile-head,
.account-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.pet-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pet-profile-inactive {
  border-color: #e7cbc5;
  background: #fffafa;
}

.pet-inactive-strip {
  border-color: #e7cbc5;
  background: var(--coral-soft);
}

.pet-profile-photo,
.account-avatar {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.pet-profile-head span,
.account-head span {
  color: var(--muted);
  font-weight: 800;
}

.wide-info {
  grid-column: 1 / -1;
}

.one-column {
  grid-template-columns: 1fr;
}

.location-list {
  display: grid;
  gap: 8px;
}

.facility-message-help,
.location-approval-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.location-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.location-card.is-unapproved {
  background: #f1f1ef;
  color: var(--muted);
  opacity: 0.72;
}

.location-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.location-card-head em {
  flex: 0 0 auto;
  border: 1px solid #b8d6d0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.location-card.is-unapproved .location-card-head em {
  border-color: #d6d1c8;
  background: #e4e2dd;
  color: #7c756d;
}

.location-card strong,
.location-card span,
.location-card a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-card strong {
  min-width: 0;
  font-weight: 950;
  white-space: nowrap;
}

.location-card span,
.location-address-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.location-address-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.location-phone-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.location-message-form textarea {
  min-height: 78px;
}

.location-message-form select option:disabled {
  color: #8a8580;
}

.document-row,
.payment-method {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
}

.document-row svg,
.payment-method svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.payment-setup-form {
  margin-top: 12px;
}

.portal-stripe-element {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.payment-setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.deposit-list {
  display: grid;
  gap: 8px;
}

.deposit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.deposit-row strong,
.deposit-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.deposit-row b {
  color: var(--accent);
  font-size: 18px;
}

.package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-card,
.report-card,
.agreement-row {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.agreement-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.package-card strong,
.report-card strong,
.agreement-row strong {
  font-size: 17px;
  font-weight: 950;
}

.package-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.package-card-head strong {
  min-width: 0;
}

.package-card.is-pending {
  border-color: #e6cf94;
  background: #fffcf4;
}

.package-history-list {
  display: grid;
  gap: 10px;
}

.package-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.package-history-row > div {
  min-width: 0;
}

.package-history-row strong,
.package-history-row b {
  display: block;
  font-weight: 950;
}

.package-history-row span,
.package-history-row small,
.package-history-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.package-history-row em {
  grid-column: 1 / -1;
}

.package-history-meta {
  text-align: right;
}

.package-card.is-full-day-package,
.package-option-card.is-full-day-package,
.package-purchase-summary.is-full-day-package {
  --package-bg-5: #edf8f1;
  --package-bg-10: #d7f0e2;
  --package-bg-20: #bde3d1;
  --package-border-5: #a9d9bd;
  --package-border-10: #70bd92;
  --package-border-20: #328457;
  --package-ink: #17402a;
}

.package-card.is-half-day-package,
.package-option-card.is-half-day-package,
.package-purchase-summary.is-half-day-package {
  --package-bg-5: #e7f7f5;
  --package-bg-10: #bfe9e5;
  --package-bg-20: #86d2ca;
  --package-border-5: #9fdad4;
  --package-border-10: #43aaa2;
  --package-border-20: #08756f;
  --package-ink: #073f42;
}

.package-card.is-5-credit-package,
.package-option-card.is-5-credit-package,
.package-purchase-summary.is-5-credit-package {
  border-color: var(--package-border-5, var(--line));
  background: var(--package-bg-5, #fff);
  color: var(--package-ink, var(--ink));
}

.package-card.is-10-credit-package,
.package-option-card.is-10-credit-package,
.package-purchase-summary.is-10-credit-package {
  border-color: var(--package-border-10, var(--line));
  background: var(--package-bg-10, #fff);
  color: var(--package-ink, var(--ink));
}

.package-card.is-20-credit-package,
.package-option-card.is-20-credit-package,
.package-purchase-summary.is-20-credit-package {
  border-color: var(--package-border-20, var(--line));
  background: var(--package-bg-20, #fff);
  color: var(--package-ink, var(--ink));
}

.package-card[class*="-package"] .package-meta,
.package-option-card[class*="-package"] b,
.package-purchase-summary[class*="-package"] b {
  color: currentColor;
}

.package-meta {
  display: flex;
  gap: 7px;
  align-items: baseline;
  color: var(--accent);
}

.package-meta b {
  font-size: 28px;
  line-height: 1;
}

.package-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.package-purchase-form {
  gap: 12px;
}

.package-account-scope {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.package-account-scope span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.package-account-scope strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.package-purchase-grid.is-columned {
  align-items: start;
  gap: 10px;
}

.package-option-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.package-option-column.is-other {
  grid-column: 1 / -1;
}

.package-option-column h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.package-option-stack {
  display: grid;
  gap: 8px;
}

.package-option-card,
.package-payment-option {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
}

.package-option-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
}

.package-option-card input,
.package-payment-option input {
  position: absolute;
  opacity: 0;
}

.package-option-card.is-active,
.package-payment-option.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.package-option-card.is-active.is-5-credit-package {
  background: var(--package-bg-5, var(--accent-soft));
}

.package-option-card.is-active.is-10-credit-package {
  background: var(--package-bg-10, var(--accent-soft));
}

.package-option-card.is-active.is-20-credit-package {
  background: var(--package-bg-20, var(--accent-soft));
}

.package-option-card span,
.package-payment-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.package-option-card strong,
.package-payment-option strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-option-card small,
.package-payment-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

.package-option-card b {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.package-payment-grid {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.package-payment-grid legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.package-payment-option {
  min-height: 64px;
}

.package-purchase-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid #cfe6df;
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 12px;
}

.package-purchase-summary strong,
.package-purchase-summary span {
  min-width: 0;
}

.package-purchase-summary strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-purchase-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.package-purchase-summary b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--accent);
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.preference-form {
  display: grid;
  width: min(100%, 680px);
  gap: 10px;
}

.preference-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px 12px;
  min-width: 0;
}

.preference-group legend {
  padding: 0 4px;
  font-weight: 950;
}

.preference-group .switch-row {
  min-height: 36px;
  min-width: 108px;
  padding: 0 12px;
}

.preference-note {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.preference-note.is-warning {
  border: 1px solid #e6cf94;
  border-radius: 8px;
  background: #fffcf4;
  color: #7a4f00;
  padding: 9px 10px;
  font-weight: 850;
}

.preference-group.has-warning {
  border-color: #e6cf94;
}

.payment-summary {
  grid-template-columns: minmax(170px, 0.28fr) minmax(170px, 0.28fr) minmax(0, 1fr);
}

.compact-form {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(23, 23, 23, 0.42);
  padding: 12px;
}

.modal-card {
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 24px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.wide-modal {
  width: min(820px, 100%);
}

.pet-disable-modal {
  width: min(620px, 100%);
}

.portal-reason-options {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.portal-reason-options legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-reason-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  font-weight: 900;
}

.portal-reason-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.agreement-modal {
  overflow: hidden;
}

.agreement-modal .modal-head h2 {
  margin: 0;
}

.agreement-modal .modal-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.agreement-document-scroll {
  min-height: 260px;
  max-height: min(48dvh, 440px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  padding: 16px;
}

.agreement-signature-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: 14px;
  align-items: stretch;
}

.agreement-drawn-signature {
  display: grid;
  gap: 8px;
}

.agreement-drawn-signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agreement-drawn-signature-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.agreement-signature-pad {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  touch-action: none;
}

.agreement-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.agreement-modal-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-camera-panel {
  border-color: #78b7ad;
  background: linear-gradient(135deg, #ffffff 0%, #e9f8f5 100%);
  box-shadow: 0 14px 36px rgba(17, 97, 91, 0.12);
}

.live-camera-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: start;
}

.live-camera-copy .live-camera-icon {
  display: none !important;
}

.live-camera-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.4;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.camera-grid.is-single {
  grid-template-columns: 1fr;
}

.camera-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #b8d6d0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.camera-grid.is-single .camera-card {
  background: #fbfffd;
}

.camera-card strong,
.camera-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.camera-card .primary-button {
  justify-self: stretch;
}

.live-camera-button {
  min-height: 50px;
  font-size: 16px;
}

.camera-modal {
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.camera-viewer {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: min(calc((100vw - 56px) * 0.5625), calc(100dvh - 168px));
  min-height: 0;
  max-height: calc(100dvh - 168px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  overflow: hidden;
}

.camera-viewer img,
.camera-viewer video,
.camera-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.camera-viewer .camera-logo-overlay {
  position: absolute;
  z-index: 2;
  width: var(--camera-logo-size, 16%);
  min-width: 58px;
  max-width: 180px;
  height: auto;
  opacity: var(--camera-logo-opacity, .86);
  object-fit: contain;
  pointer-events: none;
}

.camera-logo-overlay.is-top-left {
  top: 16px;
  left: 16px;
}

.camera-logo-overlay.is-top-right {
  top: 16px;
  right: 16px;
}

.camera-logo-overlay.is-bottom-left {
  bottom: 16px;
  left: 16px;
}

.camera-logo-overlay.is-bottom-right {
  right: 16px;
  bottom: 16px;
}

.camera-setup {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 520px;
  color: #fff;
  padding: 24px;
  text-align: center;
}

.camera-setup svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.camera-setup strong {
  font-size: 19px;
  font-weight: 950;
}

.camera-setup span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.45;
}

.camera-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.camera-caption p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pet-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral);
  padding: 2px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

@media (max-width: 1200px) {
  .owner-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .portal-content,
  .pet-detail-grid,
  .login-card {
    grid-template-columns: 1fr;
  }

  .portal-content {
    display: flex;
    flex-direction: column;
  }

  .portal-sidebar {
    display: contents;
  }

  .portal-main {
    display: contents;
  }

  .portal-main > .portal-mobile-menu {
    order: 1;
  }

  .portal-main > .owner-summary {
    order: 2;
  }

  .portal-main > .tab-list-wide {
    order: 3;
  }

  .portal-main > :not(.owner-summary):not(.tab-list-wide):not(.portal-mobile-menu) {
    order: 4;
  }

  .portal-sidebar > .portal-band {
    order: 5;
  }

  .portal-pets-panel {
    display: none !important;
  }

  .owner-summary .owner-pet-strip {
    display: grid;
  }

  .portal-sidebar > .portal-band,
  .portal-main > .portal-band,
  .portal-main > .owner-summary,
  .portal-main > .tab-list-wide,
  .portal-main > .portal-mobile-menu {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .login-aside {
    min-height: 260px;
  }

  .quick-actions,
  .metric-grid,
  .camera-grid,
  .choice-grid,
  .room-grid,
  .package-grid,
  .package-purchase-grid,
  .payment-summary,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .tour-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-frame,
  .login-shell {
    padding: 8px;
  }

  .portal-topbar,
  .owner-summary {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar-actions,
  .summary-actions {
    justify-content: stretch;
  }

  .topbar-actions > *,
  .summary-actions > * {
    flex: 1;
  }

  .owner-summary {
    gap: 10px;
    padding: 14px;
  }

  .owner-summary-top {
    display: none;
  }

  .owner-summary-top > strong {
    font-size: 24px;
  }

  .owner-summary-controls {
    gap: 6px;
  }

  .owner-summary-controls .icon-button {
    width: 42px;
    min-height: 42px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-lockup img,
  .brand-lockup .logo-wrap {
    width: min(158px, 48vw);
    height: 52px;
    min-width: min(158px, 48vw);
  }

  .owner-summary-main {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .owner-summary-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .owner-summary-photo {
    width: 52px;
    height: 52px;
  }

  .owner-summary-photo.pet-initials {
    width: 52px;
    height: 52px;
  }

  .owner-summary-next {
    white-space: normal;
  }

  .summary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-actions > * {
    width: 100%;
  }

  .summary-actions .primary-button,
  .summary-actions .vaccine-summary-pill {
    grid-column: 1 / -1;
  }

  .owner-pet-strip {
    border: 1px solid #cfe1dd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 8px;
  }

  .owner-pet-chip-list {
    flex-wrap: wrap;
  }

  .owner-pet-chip {
    flex: 1 1 150px;
    min-width: min(150px, 72vw);
  }

  .topbar-copy strong {
    font-size: 18px;
  }

  .tab-list,
  .form-grid-2,
  .form-grid-3,
  .info-list,
  .booking-pet-grid,
  .tour-location-options,
  .tour-precheck-grid,
  .tour-day-grid,
	  .tour-nav-row,
	  .tour-appointment-card,
	  .tour-selected-slot,
	  .tour-confirmation-card,
	  .intake-upload-card,
	  .grooming-estimate-card {
	    grid-template-columns: 1fr;
	  }

	  .intake-upload-card > small {
	    grid-column: 1;
	  }

  .tour-appointment-card em,
  .signup-form-actions {
    justify-self: stretch;
  }

  .signup-form-actions {
    flex-direction: column-reverse;
  }

  .appointment-cta,
  .live-camera-copy,
  .pet-profile-head,
  .account-head,
  .portal-owner-row,
  .portal-owner-fields {
    grid-template-columns: 1fr;
  }

  .portal-owner-photo-field {
    justify-items: start;
  }

  .camera-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px;
  }

  .camera-viewer {
    height: min(calc((100vw - 38px) * 0.5625), calc(100dvh - 150px));
    min-height: 0;
    max-height: calc(100dvh - 150px);
  }

  .booking-care-head {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-care-head .text-button {
    width: 100%;
  }

  .booking-feeding-row {
    grid-template-columns: 1fr;
  }

  .booking-feeding-remove {
    width: 100%;
  }

  .room-choice-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .package-option-card,
  .package-purchase-summary,
  .package-history-row {
    grid-template-columns: 1fr;
  }

  .package-history-meta {
    text-align: left;
  }

  .package-purchase-summary b {
    grid-row: auto;
    grid-column: auto;
  }

  .addon-group-toggle {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .addon-group-meta {
    justify-content: space-between;
    width: 100%;
  }

  .weekday-toggle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grooming-interval-grid {
    grid-template-columns: 1fr;
  }

		  .appointment-summary,
		  .addon-row,
		  .rebook-settings-panel,
		  .preference-group,
		  .portal-agreement-required-row,
	  .agreement-row,
	  .agreement-signature-grid,
	  .agreement-modal-actions {
	    grid-template-columns: 1fr;
	  }

	  .agreement-signature-grid {
	    grid-template-columns: minmax(0, 1fr);
	  }

	  .portal-agreement-required-row .primary-button,
	  .portal-agreement-required-row .secondary-button,
	  .agreement-row .primary-button,
	  .agreement-row .secondary-button,
	  .agreement-modal-actions .primary-button,
	  .agreement-modal-actions .secondary-button {
	    width: 100%;
	  }

  .addon-row select,
  .addon-times-control,
  .addon-schedule-control,
  .addon-schedule-note {
    width: 100%;
  }

  .addon-schedule-control {
    grid-template-columns: 1fr;
  }

  .book-controls {
    flex-direction: column;
  }

  .book-controls > * {
    width: 100%;
  }

  .pet-form-basics {
    grid-template-columns: 1fr;
  }

  .pet-form-basics .form-grid-2 {
    grid-column: auto;
  }

  .pet-photo-upload-square {
    width: 96px;
  }

  .visit-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .status-pill {
    width: 100%;
  }

  .login-pane {
    padding: 20px;
  }

  .login-aside {
    min-height: 220px;
  }

  .topbar-actions .secondary-button {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
  }

  .topbar-actions .secondary-button span {
    display: none;
  }

  html.parkwood-embedded .portal-topbar {
    align-items: center;
    flex-direction: row;
  }

  html.parkwood-embedded .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
  }

  html.parkwood-embedded .topbar-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  html.parkwood-embedded .topbar-actions > * {
    flex: 0 0 44px;
    width: 44px;
  }

  .tab-list-wide {
    display: none;
  }

  .portal-mobile-menu {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    min-height: 52px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .portal-mobile-menu-details {
    min-width: 0;
  }

  .portal-mobile-menu-details > summary {
    display: grid;
    grid-template-columns: 22px auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 0 144px 0 12px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 950;
    list-style: none;
  }

  .portal-mobile-menu-details > summary::-webkit-details-marker {
    display: none;
  }

  .portal-mobile-menu-details > summary svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .portal-mobile-menu-details > summary strong {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-mobile-actions {
    position: absolute;
    top: 5px;
    right: 6px;
    display: flex;
    gap: 6px;
  }

  .portal-mobile-actions .icon-button {
    width: 40px;
    min-height: 40px;
    background: #fff;
  }

  .portal-mobile-menu-list {
    display: grid;
    gap: 6px;
    border-top: 1px solid var(--line);
    padding: 8px;
  }

  .portal-mobile-menu-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 10px;
    cursor: pointer;
    font-weight: 950;
    text-align: left;
  }

  .portal-mobile-menu-row.has-leading-icon {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .portal-mobile-menu-row.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
  }

  .portal-mobile-menu-row svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .dashboard-action-grid,
  .dashboard-package-row {
    grid-template-columns: 1fr;
  }

  .dashboard-action-card {
    min-height: 64px;
  }

  .dashboard-action-card strong,
  .dashboard-action-card small {
    white-space: normal;
  }

  .appointment-cta {
    display: none;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 28px;
  }

  .pet-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .pet-photo,
  .pet-initials {
    width: 52px;
    height: 52px;
  }
}
