/* Customer reference presentation. Historical filename retained for the existing
   stylesheet hook. Application content, markup and logic remain unchanged. */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/customer/rubik-latin.woff2') format('woff2'); }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay)),body[data-portal-role="customer"] #modal-auth-otp,body[data-portal-role="customer"] #toast) {
  --customer-font-body: 'Rubik',sans-serif; --customer-font-heading: 'Rubik',sans-serif;
  --brand: oklch(64% .19 36); --brand-dk: oklch(52% .17 34); --brand-lt: oklch(95.5% .03 40);
  --blue: oklch(50% .12 240); --blue-dk: oklch(45% .12 240); --blue-lt: oklch(95% .03 230);
  --success: oklch(55% .13 155); --success-lt: oklch(95% .04 155);
  --bg: oklch(98.5% .004 60); --surface: #fff; --surface-2: oklch(96.5% .006 60);
  --txt-h: oklch(22% .015 40); --txt-b: oklch(22% .015 40); --txt-m: oklch(52% .012 50); --txt-s: var(--txt-m);
  --border: oklch(92% .008 60); --border-soft: var(--border); --r: 18px; --r-md: 20px; --r-lg: 26px;
  --customer-hero: linear-gradient(135deg,oklch(66% .19 38),oklch(56% .18 30));
  --customer-dots: radial-gradient(oklch(100% 0 0 / .18) 1.2px,transparent 1.2px);
  --customer-shadow: 0 1px 2px oklch(30% .02 40 / .04),0 4px 16px -6px oklch(30% .02 40 / .08);
  --customer-primary-shadow: 0 8px 20px -8px oklch(60% .19 36 / .55);
  --customer-lift: 0 2px 4px oklch(30% .02 40 / .04),0 18px 40px -16px oklch(45% .12 36 / .22);
  --shadow-float: 0 12px 36px oklch(30% .02 40 / .12);
  color: var(--txt-b); font: 400 16px/1.5 var(--customer-font-body);
}
/* Measured shell: 256px navigation, 64px header, centered 1152px workspace. */
#screen-customer { background: var(--bg); }
#screen-customer .sidebar { width: 256px; flex-basis: 256px; padding: 24px 16px; background: var(--surface); border-right: 1px solid var(--border); }
#screen-customer .sb-brand { height: 44px; min-height: 44px; margin: 0 8px 40px; padding: 0; gap: 12px; }
#screen-customer .customer-brand-mark { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-basis: 44px; border-radius: 22px; background: var(--customer-hero); box-shadow: var(--customer-primary-shadow); }
#screen-customer .customer-brand-mark::before { content: 'BARK\A STYLE'; white-space: pre; color: oklch(99% 0 0); text-align: center; font: 900 10px/.9 var(--customer-font-body); }
#screen-customer .customer-brand-logo { display: none; }
#screen-customer .sb-brand-txt .bname { color: var(--txt-h); font: 600 18px/22.5px var(--customer-font-body); }
#screen-customer .sb-brand-txt .bsub { margin-top: 2px; color: var(--txt-m); font: 600 10px/15px var(--customer-font-body); letter-spacing: .12em; }
#screen-customer .sb-nav { padding: 0; }
#screen-customer .sb-label { margin: 0; padding: 0 12px 12px; color: var(--txt-m); font: 600 10px/16px var(--customer-font-body); letter-spacing: .12em; }
#screen-customer .nav-item { position: relative; height: 40px; min-height: 40px; margin: 0 0 4px; padding: 10px 12px; gap: 12px; border-radius: 18px; color: var(--txt-m); font: 400 14px/20px var(--customer-font-body); }
#screen-customer .nav-item .ni { width: 18px; font-size: 17px; }
#screen-customer .nav-item.active,#screen-customer .nav-item.active:hover { color: var(--brand-dk); background: var(--brand-lt); font-weight: 500; }
#screen-customer .nav-item.active::after { content: ''; position: absolute; top: 8px; bottom: 8px; left: -16px; width: 4px; border-radius: 0 999px 999px 0; background: var(--brand); }
#screen-customer .main-wrap { width: calc(100% - 256px); background: var(--bg); }
#screen-customer .topbar { height: 64px; min-height: 64px; padding: 0 32px; gap: 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
#screen-customer .customer-topbar-path { gap: 8px; color: var(--txt-m); font: 400 14px/20px var(--customer-font-body); }
#screen-customer .customer-topbar-path > i { width: 16px; font-size: 14px; opacity: .6; }
#screen-customer #cust-topbar-path-current { color: var(--txt-h); font-weight: 500; }
#screen-customer .topbar-right { gap: 8px; }
#screen-customer .topbar-btn { width: 40px; height: 40px; flex-basis: 40px; border-radius: 18px; color: var(--txt-m); }
#screen-customer .topbar-btn:hover { color: var(--txt-h); background: var(--surface-2); }
#screen-customer .topbar-dot { top: 10px; right: 10px; width: 8px; height: 8px; border: 0; background: var(--brand); box-shadow: 0 0 0 2px var(--bg); }
#screen-customer .customer-header-account { min-height: 44px; padding: 6px 12px 6px 6px; gap: 12px; border: 0; border-radius: 18px; background: transparent; }
#screen-customer .customer-header-account:hover,#screen-customer .customer-header-account.active { background: var(--surface-2); }
#screen-customer .customer-header-account .sb-ava { width: 32px; height: 32px; flex-basis: 32px; border-radius: 14px; color: var(--brand-dk); background: var(--brand-lt); font: 600 14px/20px var(--customer-font-body); }
#screen-customer .customer-header-account .uname { color: var(--txt-h); font: 500 14px/17.5px var(--customer-font-body); }
#screen-customer .customer-header-account .urole { color: var(--txt-m); font: 400 12px/16px var(--customer-font-body); }
#screen-customer .customer-account-chevron { width: 16px; margin: 0; font-size: 14px; }
#screen-customer .content-area { background: var(--bg); scrollbar-color: oklch(78% .015 50) transparent; }
#screen-customer .page-wrap { max-width: 1152px; margin-inline: auto; padding: 40px 32px; }
#screen-customer :is(.pg-hdr h1,.cust-home-greeting) { font: 600 36px/40px var(--customer-font-heading); letter-spacing: -.025em; }
#screen-customer .pg-hdr { align-items: flex-end; margin-bottom: 32px; gap: 16px; }
#screen-customer .cust-home-dashboard { gap: 32px; }


/* Reference controls. Existing enabled, validation and visibility states win. */
#screen-customer :is(.btn,.book-btn-primary,.book-btn-ghost),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .btn { min-height: 44px; padding: 11px 20px; gap: 8px; border-radius: 18px; font: 500 14px/20px var(--customer-font-body); }
#screen-customer :is(.btn-brand,.book-btn-primary),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .btn-brand { box-shadow: var(--customer-primary-shadow); }
#screen-customer .btn-xs,:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .btn-xs { min-height: 36px; padding: 7px 14px; font-size: 14px; }
#screen-customer .btn-outline:hover { color: var(--brand-dk); border-color: color-mix(in oklch,var(--brand) 40%,transparent); background: var(--brand-lt); }
#screen-customer .card,#screen-customer :is(.cust-bookings-empty,.customer-pets-empty,.cust-sync-empty) { border-radius: 20px; box-shadow: var(--customer-shadow); }
#screen-customer .card-hd h3 { font-size: 18px; font-weight: 600; }
#screen-customer :is(.bdg,.cust-status-chip) { border-radius: 999px; font-size: 12px; font-weight: 500; }
#screen-customer :is(.book-field,.book-select,.book-textarea),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .form-g :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea) { min-height: 44px; padding: 10px 14px; border-radius: 14px; font: 400 14px/22px var(--customer-font-body); }
#screen-customer :is(.book-mini-label,.pet-age-title),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .form-g > label { font-size: 12px; font-weight: 500; }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) :focus-visible { outline-color: var(--brand); }
#screen-customer :is(.book-field,.book-select,.book-textarea):focus { border-color: var(--brand); outline-color: var(--brand-lt); }
/* Booking has separate horizontal progress and service panels. */
#screen-customer .book-shell { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#screen-customer .book-stepper { display: flex; flex-wrap: nowrap; align-items: center; margin: 0 0 24px; padding: 20px 24px; gap: 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--customer-shadow); scrollbar-width: thin; }
#screen-customer .book-step-wrap { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; flex: 0 0 auto; width: auto; gap: 12px; }
#screen-customer .book-step { width: 36px; min-width: 36px; flex: 0 0 36px; }
#screen-customer .book-step-ind { width: 36px; height: 36px; border: 2px solid var(--border); font: 600 14px/20px var(--customer-font-body); }
#screen-customer .book-step-label { margin: 0; white-space: nowrap; color: var(--txt-m); font: 400 14px/20px var(--customer-font-body); }
#screen-customer .book-step-wrap.active .book-step-label { color: var(--txt-h); font-weight: 600; }
#screen-customer .book-step-wrap.active .book-step-ind { box-shadow: var(--customer-primary-shadow); }
#screen-customer .book-step-line { display: block; flex: 1 0 24px; min-width: 24px; height: 2px; margin: 0 16px; border-radius: 999px; background: var(--border); }
#screen-customer .book-pane.active { padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--customer-shadow); }
#screen-customer .book-pane > .book-section-title:first-child { margin-bottom: 20px; font: 600 20px/28px var(--customer-font-body); }
#screen-customer .book-section-title { font-size: 16px; font-weight: 600; }
#screen-customer .book-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#screen-customer :is(.book-service-card,.book-payment-card,.book-choice-card) { padding: 20px; border: 2px solid var(--border); border-radius: 22px; color: var(--txt-h); background: var(--surface); }
#screen-customer :is(.book-service-card,.book-payment-card,.book-choice-card).selected { border-color: var(--brand); background: var(--brand-lt); }
#screen-customer :is(.book-service-name,.book-choice-title,.book-payment-name) { font: 600 16px/24px var(--customer-font-body); }
#screen-customer .book-service-icon { width: 48px; height: 48px; border-radius: 18px; font-size: 20px; }
#screen-customer :is(#book-type-grooming,#book-type-boarding) { grid-template-columns: 48px minmax(0,1fr); gap: 16px; min-height: 92px; }
#screen-customer .book-service-card.selected .book-service-icon { color: oklch(99% 0 0) !important; background: var(--brand) !important; }
#screen-customer #book-pane-1 > .book-service-grid:has(#book-type-grooming) { margin-bottom: 40px !important; }
#screen-customer #book-service-options > .book-service-card { grid-template-columns: minmax(0,1fr) 20px; gap: 16px; }
#screen-customer :is(#book-type-grooming,#book-type-boarding)::after,
#screen-customer #book-service-options > .book-service-card::after { content: ''; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; }
#screen-customer :is(#book-type-grooming,#book-type-boarding)::after { grid-area: 1 / 3; align-self: center; justify-self: end; }
#screen-customer #book-service-options > .book-service-card::after { grid-area: 1 / 2; }
#screen-customer :is(#book-type-grooming,#book-type-boarding).selected::after,
#screen-customer #book-service-options > .book-service-card.selected::after { border: 6px solid var(--brand); }
#screen-customer #book-service-options > .book-service-card .book-service-price { grid-area: 2 / 1 / auto / -1; font: 600 18px/28px var(--customer-font-body); }
#screen-customer .customer-service-extras { margin-top: 16px; padding: 8px; border: 0; border-radius: 22px; background: color-mix(in oklch,var(--surface-2) 70%,transparent); }
#screen-customer .customer-service-extras > summary { position: relative; padding: 12px 16px; list-style: none; font: 600 16px/24px var(--customer-font-body); }
#screen-customer .customer-service-extras > summary::-webkit-details-marker { display: none; }
#screen-customer .customer-service-extras > summary::after { content: ''; position: absolute; top: 16px; right: 16px; width: 16px; height: 16px; background: currentColor; mask: url('../icons/owner/chevron-down.svg') center / contain no-repeat; }
#screen-customer .customer-service-extras[open] > summary::after { transform: rotate(180deg); }
#screen-customer .customer-service-extras .book-service-grid { gap: 8px; padding: 8px; }
#screen-customer .customer-service-extras .book-service-card { grid-template-columns: 20px minmax(0,1fr) auto; padding: 14px 16px; gap: 12px; border-width: 1px; border-radius: 18px; }
#screen-customer .customer-service-extras .book-service-card::before { content: ''; grid-area: 1 / 1; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; }
#screen-customer .customer-service-extras .book-service-card.selected::before { border-color: var(--brand); background: var(--brand); }
#screen-customer .customer-service-extras .book-service-name { grid-column: 2; font-size: 14px; font-weight: 500; }
#screen-customer .customer-service-extras .book-service-price { grid-column: 3; font-size: 14px; font-weight: 500; }
#screen-customer :is(.book-price-box,.book-terms-box,.book-stay-date-column) { border-radius: 18px; }
#screen-customer :is(.book-slot-card,.book-time-chip),#screen-customer #cust-page-book :is(.book-cage-card,.book-cage-metric-card,.book-cage-selection-strip) { border-radius: 18px; }
#screen-customer .book-nav { margin-top: 28px; padding-top: 24px; }
/* Full reservation information retained inside the reference's divided panel. */
#screen-customer #cust-page-bookings .cust-bookings-tabs { width: fit-content; max-width: 100%; margin-bottom: 24px; padding: 5px; gap: 4px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
#screen-customer #cust-page-bookings .cust-bookings-tab { min-height: 40px; padding: 9px 14px; border-radius: 14px; font-size: 14px; }
#screen-customer #cust-page-bookings .cust-bookings-list { gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--customer-shadow); }
#screen-customer #cust-page-bookings .res-card { margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
#screen-customer #cust-page-bookings .res-card:last-child { border-bottom: 0; }
#screen-customer #cust-page-bookings .res-card-hd { padding: 20px 24px 0; border: 0; background: var(--surface); }
#screen-customer #cust-page-bookings .res-card-bd { padding: 20px 24px; }
#screen-customer #cust-page-bookings .res-card-ft { padding: 0 24px 20px; border: 0; }
#screen-customer #cust-page-bookings .cust-bookings-field-main { font-size: 16px; font-weight: 500; }
#screen-customer #cust-page-bookings :is(.cust-bookings-field-label,.cust-bookings-field-sub,.res-card-id) { font-size: 12px; }
/* Pet cards: textured banner, overlapping avatar, metadata tiles and actions. */
#screen-customer #customer-pets-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 20px; }
#screen-customer .pcard { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0; padding: 48px 20px 20px; gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--customer-shadow); transition: transform 180ms ease,box-shadow 180ms ease; }
#screen-customer .pcard::before { content: ''; position: absolute; inset: 0 0 auto; z-index: -1; height: 80px; background: var(--customer-dots) 0 0 / 16px 16px,var(--customer-hero); }
#screen-customer .pcard:last-child { border-bottom: 1px solid var(--border); }
#screen-customer .pcard:hover { background: var(--surface); box-shadow: var(--customer-lift); transform: translateY(-2px); }
#screen-customer .pcard-ava { align-self: flex-start; flex-shrink: 0; width: 56px; height: 56px; margin: 0; border-radius: 50%; color: var(--brand-dk); background: var(--brand-lt); box-shadow: 0 0 0 4px var(--surface); font: 600 20px/28px var(--customer-font-body); }
#screen-customer .pcard-name { margin-top: 16px; overflow-wrap: anywhere; font: 600 20px/28px var(--customer-font-body); }
#screen-customer .pcard-sub { min-width: 0; color: var(--txt-m); font: 400 14px/20px var(--customer-font-body); overflow-wrap: anywhere; }
#screen-customer .pcard-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; margin-top: 16px; padding: 0; gap: 8px; border: 0; }
#screen-customer .pmeta-row { min-width: 0; min-height: 60px; padding: 10px; gap: 8px; border-radius: 18px; color: var(--txt-h); background: color-mix(in oklch,var(--surface-2) 70%,transparent); font: 500 14px/20px var(--customer-font-body); }
#screen-customer .pmeta-row i { flex-shrink: 0; color: var(--txt-m); font-size: 14px; }
#screen-customer .pmeta-row span { min-width: 0; overflow-wrap: anywhere; }
/* Keep Book below metadata and consume spare row height without fixing card height. */
#screen-customer .pcard-actions { display: grid; grid-template-columns: minmax(0,1fr); order: 1; margin-top: auto; padding-top: 20px; gap: 8px; }
#screen-customer .pcard-actions .btn { min-height: 36px; padding: 8px 13px; }
#screen-customer .customer-pets-empty { grid-column: 1 / -1; }
/* Profile: three distinct panels match the reference without moving any field. */
#screen-customer .customer-profile-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); align-items: start; gap: 24px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#screen-customer .customer-profile-summary { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 24px 28px; gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--customer-shadow); text-align: center; }
#screen-customer .customer-profile-summary::before { content: ''; align-self: stretch; height: 112px; flex: 0 0 112px; margin: 0 -24px -48px; background: var(--customer-dots) 0 0 / 16px 16px,var(--customer-hero); }
#screen-customer .customer-profile-summary #profile-ava-big { position: relative; z-index: 1; width: 96px; height: 96px; flex: 0 0 96px; margin: 0; border-radius: 50%; color: var(--brand-dk); background: var(--brand-lt); box-shadow: 0 0 0 4px var(--surface); font: 600 36px/40px var(--customer-font-body); }
#screen-customer .customer-profile-identity { align-self: stretch; min-width: 0; margin-top: 16px; }
#screen-customer #profile-fullname { font: 600 24px/32px var(--customer-font-body); overflow-wrap: anywhere; }
#screen-customer .customer-profile-identity p { margin: 0; color: var(--txt-m); font: 400 14px/20px var(--customer-font-body); }
#screen-customer #cust-page-profile .customer-profile-grid { display: flex; flex-direction: column; gap: 24px; }
#screen-customer #cust-page-profile .customer-profile-grid > .card { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--customer-shadow); }
#screen-customer #cust-page-profile .card-hd { padding: 32px 32px 0; }
#screen-customer #cust-page-profile .card-hd h3 { font: 600 18px/28px var(--customer-font-body); }
#screen-customer #cust-page-profile .card-bd { padding: 24px 32px 32px; }
#screen-customer .customer-profile-details-card .card-bd { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#screen-customer .customer-profile-name-grid { display: contents; }
#screen-customer .customer-profile-name-grid > div,#screen-customer .customer-profile-field { display: grid; grid-template-columns: 36px minmax(0,1fr); column-gap: 12px; align-content: center; margin: 0; padding: 16px; border: 0; border-radius: 18px; background: color-mix(in oklch,var(--surface-2) 70%,transparent); }
#screen-customer .customer-profile-name-grid > div::before,#screen-customer .customer-profile-field::before { content: ''; grid-area: 1 / 1 / span 2; align-self: center; width: 36px; height: 36px; border-radius: 14px; background: var(--surface) url('../icons/owner/user-round.svg') center / 16px no-repeat; opacity: .6; }
#screen-customer .customer-profile-field:has(#profile-email-value)::before { background-image: url('../icons/owner/mail.svg'); }
#screen-customer .customer-profile-field:has(#profile-mobile-value)::before { background-image: url('../icons/owner/phone.svg'); }
#screen-customer #cust-page-profile .customer-profile-label { grid-column: 2; margin: 0; color: var(--txt-m); font: 400 12px/16px var(--customer-font-body); }
#screen-customer .customer-profile-value { grid-column: 2; min-width: 0; font: 500 16px/24px var(--customer-font-body); overflow-wrap: anywhere; }
#screen-customer .customer-profile-field:last-child { padding: 16px; }
#screen-customer .customer-security-row { gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 22px; }
#screen-customer .customer-security-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 18px; color: var(--blue); background: var(--blue-lt); font-size: 20px; }
#screen-customer .customer-security-copy strong { font: 500 16px/24px var(--customer-font-body); }
/* Popovers and shared Customer dialogs use the same reference vocabulary. */
#screen-customer .customer-account-menu { top: calc(100% + 12px); width: 256px; padding: 8px; border-radius: 20px; box-shadow: var(--customer-shadow); }
#screen-customer .customer-account-menu :is(button,a) { min-height: 40px; padding: 10px 12px; gap: 12px; border-radius: 14px; font: 400 14px/20px var(--customer-font-body); }
#screen-customer #cust-notif { top: 56px; width: min(380px,calc(100vw - 304px)); border-radius: 20px; }
#screen-customer .customer-active-checkout-banner { max-width: 1088px; margin: 24px auto 0; padding: 20px; border-radius: 20px; }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal,body[data-portal-role="customer"] #modal-auth-otp .modal { border-radius: 20px; }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-hd { padding: 24px; }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-hd h3 { font: 600 22px/28px var(--customer-font-body); }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-bd { padding: 24px; }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-ft { padding: 16px 24px; }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-close { width: 36px; height: 36px; flex-basis: 36px; border-radius: 14px; }
body[data-portal-role="customer"] .otp-auth-submit { min-height: 44px; border-radius: 18px; font-size: 14px; }
body[data-portal-role="customer"] #toast { border-radius: 18px; }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode { position: static; inset: auto; flex: 0 0 auto; max-width: 100%; flex-wrap: wrap; }
@media (max-width:1279px) {
  #screen-customer #customer-pets-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1023px) {
  #screen-customer .sidebar { position: fixed; inset: auto 0 0; z-index: 35; width: 100%; height: auto; padding: 0 0 env(safe-area-inset-bottom,0px); border: 0; border-top: 1px solid var(--border); background: var(--surface); }
  #screen-customer .sb-brand,#screen-customer .sb-label { display: none; }
  #screen-customer .sb-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; }
  #screen-customer .nav-item { display: flex; flex-direction: column; justify-content: center; width: 100%; height: var(--customer-mobile-nav-height,59px); min-height: var(--customer-mobile-nav-height,59px); margin: 0; padding: 10px 4px; gap: 4px; border-radius: 0; font: 400 11px/15px var(--customer-font-body); white-space: normal; }
  #screen-customer .nav-item .ni { width: 20px; font-size: 18px; }
  #screen-customer .nav-item.active,#screen-customer .nav-item.active:hover { color: var(--brand); background: transparent; font-weight: 400; }
  #screen-customer .nav-item.active::after { display: none; }
  #screen-customer .main-wrap { width: 100%; }

  #screen-customer .page-wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)); }
  #screen-customer .customer-profile-layout { grid-template-columns: minmax(0,1fr); }
  #screen-customer .customer-header-account { padding: 6px 12px 6px 6px; }
  #screen-customer .customer-header-account .sb-user-info { display: inline-flex; }
  #screen-customer .customer-profile-summary { display: flex; padding: 0 24px 28px; border: 1px solid var(--border); border-radius: 20px; }
  #screen-customer #cust-notif { width: min(380px,calc(100vw - 48px)); }
  #screen-customer .customer-active-checkout-banner { margin-inline: 32px; }
}
@media (max-width:639px) {
  #screen-customer .topbar { padding-inline: 20px; }
  #screen-customer .customer-header-account .sb-user-info { display: none; }
  #screen-customer .customer-account-chevron { display: inline-flex; }
  #screen-customer .customer-topbar-path { gap: 0; font-size: 0; }
  #screen-customer .customer-topbar-path > i.fas { display: none; }
  #screen-customer #cust-topbar-path-current { max-width: 170px; font-size: 14px; }
  #screen-customer .page-wrap { padding: 32px 20px calc(96px + env(safe-area-inset-bottom,0px)); }
  #screen-customer :is(.pg-hdr h1,.cust-home-greeting) { font-size: 30px; line-height: 36px; }
  #screen-customer .cust-home-dashboard { gap: 32px; }


  #screen-customer .book-stepper { padding: 20px 24px; }
  #screen-customer .book-step-ind { width: 36px; height: 36px; font-size: 14px; }
  #screen-customer .book-step-label { font-size: 14px; white-space: nowrap; }
  #screen-customer .book-pane.active { padding: 24px; }
  #screen-customer .book-pane > .book-section-title:first-child { font-size: 20px; }
  #screen-customer :is(.book-grid-2,.book-grid-3,.book-summary-grid,.book-choice-grid,.book-payment-grid,.book-service-grid) { grid-template-columns: minmax(0,1fr); }
  #screen-customer .customer-service-extras .book-service-card { grid-template-columns: 20px minmax(0,1fr); }
  #screen-customer .customer-service-extras .book-service-price { grid-column: 2; }
  #screen-customer #cust-page-bookings .cust-bookings-tabs { width: 100%; gap: 2px; }
  #screen-customer #cust-page-bookings .cust-bookings-tab { flex: 1; padding: 8px 5px; font-size: 12px; }
  #screen-customer #cust-page-bookings :is(.res-card-hd,.res-card-bd) { padding: 20px; }
  #screen-customer #cust-page-bookings .res-card-hd { padding-bottom: 0; }
  #screen-customer #cust-page-bookings .res-card-ft { padding: 0 20px 20px; }
  #screen-customer #customer-pets-grid { grid-template-columns: minmax(0,1fr); }
  #screen-customer #cust-page-profile .card-hd { padding: 24px 24px 0; }
  #screen-customer #cust-page-profile .card-bd { padding: 24px; }
  #screen-customer .customer-profile-details-card .card-bd { grid-template-columns: minmax(0,1fr); }
  #screen-customer .customer-security-row { align-items: center; }
  #screen-customer .customer-security-row > button { width: 100%; }
  #screen-customer .customer-active-checkout-banner { margin-inline: 20px; }
  #screen-customer #cust-notif { width: min(380px,calc(100vw - 40px)); }
  :is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) :is(.modal-hd,.modal-bd) { padding: 20px; }
  :is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-ft { padding: 16px 20px; }
}
@media (max-width:359px) {


  #screen-customer .book-pane.active { padding: 18px; }
  #screen-customer #cust-page-bookings .cust-bookings-tab { font-size: 11px; padding-inline: 3px; }
  #screen-customer .pmeta-row { padding: 10px; font-size: 12px; }
}

/* Owner visual inheritance over the established Customer composition.
   This layer changes appearance only: grids, dimensions, positions, responsive
   breakpoints, content, visibility states and application behavior stay above. */
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay)),body[data-portal-role="customer"] #modal-auth-otp,body[data-portal-role="customer"] #toast) {
  --customer-font-body: 'Manrope',sans-serif;
  --customer-font-heading: 'Plus Jakarta Sans',sans-serif;
  --brand: oklch(64.6% .188 35); --brand-dk: oklch(59% .188 35); --brand-lt: oklch(96.5% .026 40);
  --brand-mid: var(--brand);
  --blue: oklch(54.3% .122 239); --blue-dk: oklch(48% .122 239); --blue-lt: oklch(94.6% .031 235);
  --success: oklch(45% .115 154); --success-lt: oklch(95.6% .025 155);
  --amber: oklch(75% .148 70); --amber-dk: oklch(45% .105 70); --amber-lt: oklch(96.6% .035 75);
  --danger: #ad3540; --danger-lt: #fcecef;
  --bg: #fff; --surface: #fff; --surface-2: oklch(97.5% 0 0);
  --txt-h: oklch(27% 0 0); --txt-b: oklch(32% 0 0); --txt-m: oklch(49% 0 0); --txt-s: var(--txt-m);
  --border: oklch(90.7% 0 0); --border-soft: oklch(93% 0 0);
  --r: 6px; --r-md: 7px; --r-lg: 7px;
  --customer-hero: var(--surface-2); --customer-dots: none;
  --customer-shadow: 0 1px 2px oklch(25% 0 0 / .025),0 4px 14px oklch(25% 0 0 / .025);
  --customer-primary-shadow: none; --customer-lift: var(--customer-shadow);
  --shadow-float: 0 12px 32px rgb(29 29 29 / .12);
  color: var(--txt-b); font: 400 13px/1.6 var(--customer-font-body);
}
#screen-customer .sidebar { background: #fafaf9; }
#screen-customer .customer-brand-mark { border-radius: 0; background: url('../images/bark-style-logo-transparent.png') center / 32px 32px no-repeat; box-shadow: none; }
#screen-customer .customer-brand-mark::before { content: none; }
#screen-customer .sb-brand-txt .bname { font: 800 17px/22.5px var(--customer-font-heading); }
#screen-customer .sb-brand-txt .bsub { font: 400 10px/15px var(--customer-font-body); letter-spacing: 0; }
#screen-customer .sb-label { font-weight: 800; letter-spacing: 0; }
#screen-customer .nav-item { border-radius: 6px; font: 500 12px/20px var(--customer-font-body); }
#screen-customer .nav-item.active,#screen-customer .nav-item.active:hover { color: var(--brand); font-weight: 800; }
#screen-customer .nav-item.active::after { background: transparent; }
#screen-customer .topbar-btn { border-radius: 6px; }
#screen-customer .customer-header-account { border-radius: 6px; }
#screen-customer .customer-header-account .sb-ava { border-radius: 50%; font: 800 12px/20px var(--customer-font-body); }
#screen-customer .customer-header-account .uname { font: 700 12px/17.5px var(--customer-font-body); }
#screen-customer .customer-header-account .urole { font-size: 10px; }
#screen-customer :is(.pg-hdr h1,.cust-home-greeting) { font: 800 28px/40px var(--customer-font-heading); letter-spacing: 0; }
#screen-customer :is(.card,.cust-home-card,.pcard,.book-stepper,.book-pane.active,.customer-profile-summary,.customer-active-checkout-banner,.cust-bookings-empty,.customer-pets-empty,.cust-sync-empty) { border-radius: 7px; }
#screen-customer :is(.cust-home-card-label,.cust-home-card-link,.book-service-name,.book-payment-name,.book-choice-title,.customer-security-copy strong) { letter-spacing: 0; }


#screen-customer :is(.btn,.book-btn-primary,.book-btn-ghost),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .btn { border-radius: 6px; font: 600 12px/20px var(--customer-font-body); box-shadow: none; }
#screen-customer .btn-xs,:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .btn-xs { font-size: 11px; }
#screen-customer .btn-outline:hover { color: var(--txt-h); border-color: var(--border); background: var(--surface-2); }
#screen-customer :is(.bdg,.cust-status-chip) { border-radius: 4px; font: 600 11px/16px var(--customer-font-body); }
#screen-customer :is(.book-field,.book-select,.book-textarea),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .form-g :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea) { border-radius: 6px; font: 400 13px/22px var(--customer-font-body); }
#screen-customer :is(.book-mini-label,.pet-age-title),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .form-g > label { font-weight: 600; }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) :focus-visible { outline-color: var(--blue); }
#screen-customer :is(.book-field,.book-select,.book-textarea):focus { border-color: var(--blue); outline-color: var(--blue-lt); }
#screen-customer .book-step-label { font: 500 12px/20px var(--customer-font-body); }
#screen-customer .book-step-wrap.active .book-step-label { font-weight: 700; }
#screen-customer .book-step-ind { font: 700 12px/20px var(--customer-font-body); }
#screen-customer .book-step-wrap.active .book-step-ind { box-shadow: none; }
#screen-customer .book-pane > .book-section-title:first-child { font: 800 18px/28px var(--customer-font-heading); }
#screen-customer .book-section-title { font: 700 14px/24px var(--customer-font-body); }
#screen-customer :is(.book-service-card,.book-payment-card,.book-choice-card) { border-radius: 6px; border-color: var(--border); }
#screen-customer :is(.book-service-name,.book-payment-name,.book-choice-title) { font: 700 14px/24px var(--customer-font-body); }
#screen-customer :is(.book-service-icon,.book-payment-icon) { border-radius: 5px; }
#screen-customer .book-service-card.selected .book-service-icon { color: var(--brand-dk) !important; background: transparent !important; }
#screen-customer #book-service-options > .book-service-card .book-service-price { font: 700 16px/28px var(--customer-font-body); }
#screen-customer .customer-service-extras { border-radius: 6px; background: var(--surface-2); }
#screen-customer .customer-service-extras > summary { font: 700 14px/24px var(--customer-font-body); }
#screen-customer .customer-service-extras .book-service-card { border-radius: 6px; }
#screen-customer .customer-service-extras .book-service-name,#screen-customer .customer-service-extras .book-service-price { font-size: 12px; font-weight: 600; }
#screen-customer .customer-service-extras .book-service-card::before { border-radius: 4px; }
#screen-customer :is(.book-price-box,.book-terms-box,.book-stay-date-column,.book-slot-card,.book-time-chip),#screen-customer #cust-page-book :is(.book-cage-card,.book-cage-metric-card,.book-cage-selection-strip) { border-radius: 6px; }
#screen-customer #cust-page-bookings .cust-bookings-tabs { border-radius: 7px; }
#screen-customer #cust-page-bookings .cust-bookings-tab { border-radius: 6px; font: 600 12px/20px var(--customer-font-body); }
#screen-customer #cust-page-bookings .cust-bookings-list { border-radius: 7px; }
#screen-customer #cust-page-bookings .cust-bookings-field-main { font: 600 13px/24px var(--customer-font-body); }
#screen-customer #cust-page-bookings .res-card-id { font-weight: 600; }
#screen-customer .pcard::before { background: var(--surface-2); }
#screen-customer .pcard-ava { color: var(--brand-dk); background: var(--brand-lt); font: 800 20px/28px var(--customer-font-body); }
#screen-customer .pcard-name { font: 800 18px/28px var(--customer-font-heading); }
#screen-customer .pcard-sub { font: 400 12px/20px var(--customer-font-body); }
#screen-customer .pmeta-row { border-radius: 6px; background: var(--surface-2); font: 600 12px/20px var(--customer-font-body); }
#screen-customer .customer-profile-summary::before { background: var(--surface-2); }
#screen-customer .customer-profile-summary #profile-ava-big { font: 800 32px/40px var(--customer-font-body); }
#screen-customer #profile-fullname { font: 800 22px/32px var(--customer-font-heading); }
#screen-customer .customer-profile-identity p { font: 400 12px/20px var(--customer-font-body); }
#screen-customer #cust-page-profile .customer-profile-grid > .card { border-radius: 7px; }
#screen-customer #cust-page-profile .card-hd h3 { font: 800 15px/28px var(--customer-font-heading); }
#screen-customer .customer-profile-name-grid > div,#screen-customer .customer-profile-field { border-radius: 6px; background: var(--surface-2); }
#screen-customer .customer-profile-name-grid > div::before,#screen-customer .customer-profile-field::before { border-radius: 5px; }
#screen-customer .customer-profile-value { font: 600 13px/24px var(--customer-font-body); }
#screen-customer .customer-security-row { border-radius: 6px; }
#screen-customer .customer-security-icon { border-radius: 5px; }
#screen-customer .customer-security-copy strong { font: 600 13px/24px var(--customer-font-body); }
#screen-customer .customer-account-menu,#screen-customer #cust-notif { border-radius: 7px; box-shadow: var(--shadow-float); }
#screen-customer .customer-account-menu :is(button,a) { border-radius: 5px; font: 500 12px/20px var(--customer-font-body); }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal,body[data-portal-role="customer"] #modal-auth-otp .modal { border-radius: 7px; }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-hd h3 { font: 800 18px/28px var(--customer-font-heading); }
:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .modal-close { border-radius: 5px; }
body[data-portal-role="customer"] .otp-auth-submit { border-radius: 6px; font-size: 12px; }
body[data-portal-role="customer"] #toast { border-radius: 6px; }
@media (max-width:1023px) {
  #screen-customer .sidebar { background: var(--surface); }
  #screen-customer .nav-item { font-size: 11px; font-weight: 500; line-height: 15px; }
  #screen-customer .nav-item.active,#screen-customer .nav-item.active:hover { font-weight: 700; }
  #screen-customer .customer-profile-summary { border-radius: 7px; }
}
@media (max-width:639px) {
  #screen-customer :is(.pg-hdr h1,.cust-home-greeting) { font-size: 25px; line-height: 36px; }

  #screen-customer :is(.book-field,.book-select,.book-textarea),:is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) .form-g :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea) { font-size: 16px; }
}

/* Requested Customer refinements. Preserve the established shell, navigation,
   pet composition, identity/photo card and every application state binding. */
#screen-customer .customer-topbar-path { gap: 0; color: var(--txt-h); font: 700 15px/1.5 var(--customer-font-heading); }
#screen-customer #cust-topbar-path-current { max-width: none; color: var(--txt-h); font-weight: 700; white-space: normal; }
#screen-customer #cust-topbar-path-current:focus { outline: none; }
#screen-customer :is(#cust-page-book,#cust-page-bookings,#cust-page-profile) > .pg-hdr { display: none; }
#screen-customer #cust-page-pets > .pg-hdr { justify-content: flex-end; margin-bottom: 18px; }
#screen-customer #cust-page-pets > .pg-hdr > div:first-child { display: none; }



/* Compact booking controls retain the existing fields, selections and steps. */
#screen-customer .book-pane.active { padding: 22px; }
#screen-customer .book-pane > .book-section-title:first-child { font-size: 16px; line-height: 24px; }
#screen-customer :is(.book-service-card,.book-payment-card,.book-choice-card) { padding: 16px; border-width: 1px; }
#screen-customer :is(.book-service-name,.book-choice-title,.book-payment-name) { font-size: 12px; line-height: 20px; }
#screen-customer .book-service-icon { width: 32px; height: 32px; font-size: 16px; }
#screen-customer :is(#book-type-grooming,#book-type-boarding) { min-height: 66px; grid-template-columns: 32px minmax(0,1fr) 20px; align-items: center; gap: 14px; }
#screen-customer #book-pane-1 > .book-service-grid:has(#book-type-grooming) { margin-bottom: 24px !important; }
#screen-customer #book-service-options > .book-service-card .book-service-price { font-size: 12px; line-height: 20px; }
#screen-customer .customer-service-extras > summary { font-size: 12px; line-height: 20px; }

/* Supplied booking reference: individual records, three columns, action footer. */
#screen-customer #cust-page-bookings .cust-bookings-tabs { width: 100%; margin-bottom: 18px; padding: 0 0 10px; gap: 4px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
#screen-customer #cust-page-bookings .cust-bookings-tab { flex: 0 1 auto; min-height: 36px; padding: 8px 12px; font: 600 12px/20px var(--customer-font-body); }
#screen-customer #cust-page-bookings .cust-bookings-list { display: grid; gap: 16px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#screen-customer #cust-page-bookings .res-card { margin: 0; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); box-shadow: var(--customer-shadow); }
#screen-customer #cust-page-bookings .res-card:last-child { border-bottom: 1px solid var(--border); }
#screen-customer #cust-page-bookings .res-card.is-booking-target {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  scroll-margin-block: 20px;
}
#screen-customer #cust-page-bookings .res-card.is-booking-target .res-card-hd { background: var(--brand-lt); }
#screen-customer #cust-page-bookings .res-card-hd { padding: 12px 18px; border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
#screen-customer #cust-page-bookings .res-card-bd { padding: 16px 18px; }
#screen-customer #cust-page-bookings .res-card-ft { padding: 10px 18px; border-top: 1px solid var(--border-soft); background: var(--surface); }
#screen-customer #cust-page-bookings .cust-bookings-field-label { margin-bottom: 6px; font: 600 10px/15px var(--customer-font-body); }
#screen-customer #cust-page-bookings .cust-bookings-field-main { font: 700 13px/20px var(--customer-font-body); }
#screen-customer #cust-page-bookings .cust-bookings-field-sub { font: 400 11px/18px var(--customer-font-body); }
#screen-customer #cust-page-bookings .res-card-id { font: 600 11px/16px var(--customer-font-body); }
#screen-customer #cust-page-bookings .res-card .btn { min-height: 32px; padding: 6px 11px; font-size: 11px; }

/* One account container; the existing profile identity card is untouched. */
#screen-customer #cust-page-profile .customer-profile-grid { gap: 0; }
#screen-customer #cust-page-profile .customer-profile-account .card-hd { padding: 24px 26px 0; }
#screen-customer #cust-page-profile .customer-profile-account .card-bd { display: block; padding: 22px 26px 26px; }
#screen-customer .customer-profile-list { margin: 0; }
#screen-customer .customer-profile-row { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: baseline; gap: 12px 24px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
#screen-customer .customer-profile-row:first-child { padding-top: 0; }
#screen-customer .customer-profile-row:last-child { padding-bottom: 0; border-bottom: 0; }
#screen-customer #cust-page-profile .customer-profile-row .customer-profile-label { grid-column: 1; margin: 0; font: 500 12px/1.5 var(--customer-font-body); }
#screen-customer .customer-profile-row .customer-profile-value { grid-column: 2; margin: 0; font-size: 12px; }
#screen-customer #cust-page-profile .customer-profile-account .customer-security-card { border-top: 1px solid var(--border); }
#screen-customer .customer-profile-account .customer-security-row { padding: 0; border: 0; border-radius: 0; }

#screen-customer #cust-notif { top: calc(100% + 8px); right: 32px; }
@media (max-width:1023px) {
  #screen-customer #cust-notif { width: min(380px,calc(100vw - 64px)); }
}
@media (max-width:639px) {
  #screen-customer .customer-topbar-path,#screen-customer #cust-topbar-path-current { font-size: 14px; line-height: 1.35; }


  #screen-customer .book-pane.active { padding: 18px; }
  #screen-customer #cust-page-bookings .cust-bookings-tab { padding: 7px 8px; font-size: 11px; }
  #screen-customer #cust-page-bookings :is(.res-card-hd,.res-card-bd,.res-card-ft) { padding: 14px 16px; }
  #screen-customer #cust-page-profile .customer-profile-account .card-hd { padding: 20px 18px 0; }
  #screen-customer #cust-page-profile .customer-profile-account .card-bd { padding: 18px; }
  #screen-customer .customer-profile-row { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
  #screen-customer #cust-notif { right: 20px; width: min(380px,calc(100vw - 40px)); }
}

/* Customer polish: one contained scroller and Owner-scale frames/controls. */
body[data-portal-role="customer"] { height: 100dvh; min-height: 0; overflow: hidden; }
#screen-customer { position: relative; height: 100dvh; min-height: 0; overflow: hidden; }
#screen-customer .main-wrap { height: 100%; min-height: 0; overflow: hidden; }
#screen-customer .content-area { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
#screen-customer .page-wrap { padding: 30px 32px 28px; }
#screen-customer .topbar { height: 72px; min-height: 72px; flex: 0 0 72px; }
#screen-customer .customer-topbar-path,#screen-customer #cust-topbar-path-current { font-size: 16px; line-height: 24px; }
#screen-customer .customer-header-account .urole { display: none; }
#screen-customer .customer-header-account .uname { font-size: 12px; line-height: 20px; }
#screen-customer :is(.btn,.book-btn-primary,.book-btn-ghost) { min-height: 36px; padding: 8px 13px; }
#screen-customer :is(.book-field,.book-select,.book-textarea) { min-height: 38px; padding: 9px 11px; }

/* The existing cancellation icon is its own fixed, centered visual container. */
#screen-customer #cust-page-bookings .danger-box:has(> .fa-circle-xmark) { display: flex; align-items: flex-start; gap: 10px; line-height: 22px; }
#screen-customer #cust-page-bookings .danger-box > .fa-circle-xmark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; margin: 0 !important; border-radius: 5px; background: var(--surface); line-height: 1; }
#screen-customer #cust-page-bookings .danger-box > .fa-circle-xmark::before { width: 14px; height: 14px; }

/* Native age-method radios, with balanced targets and unchanged handlers. */
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-heading .pet-age-title { margin: 0; font: 600 12px/18px var(--customer-font-body); }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode { position: static; inset: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 272px; max-width: 100%; margin: 0; padding: 3px; gap: 3px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode label,
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode label:has(input:checked) { display: block; min-width: 0; margin: 0; padding: 0; border-radius: 4px; background: transparent; }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode span { display: flex; align-items: center; justify-content: center; min-height: 34px; height: 100%; padding: 7px 10px; border: 1px solid transparent; border-radius: 4px; color: var(--txt-m); text-align: center; white-space: normal; font: 600 11px/18px var(--customer-font-body); }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode input:checked + span { border-color: var(--border); color: var(--txt-h); background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
:is(#screen-customer,:is(body[data-portal-role="customer"] .modal-overlay, :where(body.is-management-portal #modal-add-pet.customer-modal.modal-overlay))) .pet-age-mode label:hover span { color: var(--txt-h); }

/* A quiet service list: duration below the name, price visible without disclosure. */
#screen-customer #book-service-options,
#screen-customer .customer-service-extras .book-service-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
#screen-customer #book-service-options .book-service-card { grid-template-columns: minmax(0,1fr) 24px; align-items: start; gap: 4px 20px; padding: 20px; }
#screen-customer #book-service-options .book-service-name { grid-column: 1; color: var(--txt-h); font: 600 14px/22px var(--customer-font-body); }
#screen-customer .book-service-facts { grid-column: 1; display: grid; gap: 4px; min-width: 0; }
#screen-customer #book-service-options .book-service-facts > .book-service-price { grid-area: auto; margin: 10px 0 0; padding: 0; border-radius: 0; color: var(--txt-h); background: transparent; font: 700 15px/24px var(--customer-font-body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#screen-customer .book-service-duration { color: var(--txt-b); font: 400 12px/20px var(--customer-font-body); }
#screen-customer .book-service-basis,#screen-customer .book-service-unavailable { color: var(--txt-m); font: 400 11px/18px var(--customer-font-body); }
#screen-customer #book-service-options > .book-service-card::after { grid-area: 1 / 2 / 3; align-self: end; justify-self: end; }
#screen-customer .customer-service-extras { margin-top: 0; padding: 0; background: transparent; }
#screen-customer .customer-service-extras > summary { display: flex; align-items: center; min-height: 64px; padding: 20px 80px 20px 20px; border: 1px solid var(--border); border-radius: 6px; color: var(--txt-h); background: var(--surface); cursor: pointer; font: 600 14px/22px var(--customer-font-body); }
#screen-customer .customer-service-extras > summary:hover { border-color: var(--txt-m); background: var(--surface-2); }
#screen-customer .customer-service-extras > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#screen-customer .customer-service-extras > summary::after { top: 50%; right: 20px; transform: translateY(-50%); }
#screen-customer .customer-service-extras[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
#screen-customer .customer-service-extras.selected > summary { border-color: var(--brand); color: var(--brand-dk); background: var(--brand-lt); }
#screen-customer .customer-service-extras.selected > summary::before { content: ''; position: absolute; top: 50%; right: 48px; width: 20px; height: 20px; transform: translateY(-50%); border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
#screen-customer .customer-service-extras .book-service-grid { padding: 8px 0 0; }
#screen-customer .customer-service-extras .book-service-card::before { grid-area: 1 / 2 / 3; align-self: end; justify-self: end; border-radius: 4px; }
#screen-customer .customer-service-extras .book-service-card.selected::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Recorded amounts and their actions occupy separate, stable grid tracks. */
body[data-portal-role="customer"] #modal-payment-receipt .payment-entry { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--border-soft); }
body[data-portal-role="customer"] #modal-payment-receipt .payment-entry-copy { min-width: 0; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-entry-meta { margin-top: 4px; color: var(--txt-m); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-entry-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-entry-action { margin: 0; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-summary-line > span { min-width: 0; overflow-wrap: anywhere; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-document-header > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width:1023px) {
  #screen-customer .main-wrap { height: calc(100dvh - 59px - env(safe-area-inset-bottom,0px)); }
  #screen-customer .page-wrap { padding-bottom: 24px; }
}
@media (max-width:639px) {
  #screen-customer .page-wrap { padding: 24px 20px; }
  #screen-customer :is(.book-field,.book-select,.book-textarea) { min-height: 44px; font-size: 16px; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-entry { grid-template-columns: minmax(0,1fr) auto; gap: 12px 16px; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-entry-action { grid-column: 1 / -1; justify-self: start; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-document-header > div:last-child { text-align: left !important; }
}

/* Restored six-step progress: circles above labels, with level connecting lines. */
#screen-customer .book-stepper { display: grid; grid-template-columns: repeat(5,minmax(0,1fr) minmax(12px,1.2fr)) minmax(0,1fr); align-items: start; gap: 0; margin: 0 0 24px; padding: 16px 0 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#screen-customer .book-step-wrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; flex: none; min-width: 0; width: 100%; gap: 8px; }
#screen-customer .book-step { width: 30px; min-width: 30px; height: 30px; flex: 0 0 30px; }
#screen-customer .book-step-ind { width: 30px; height: 30px; border-width: 1px; border-radius: 50%; font: 500 12px/20px var(--customer-font-body); }
#screen-customer .book-step-label { margin: 0; color: var(--txt-m); text-align: center; white-space: nowrap; letter-spacing: 0; text-transform: none; font: 500 11px/16px var(--customer-font-body); }
#screen-customer .book-step-wrap.active .book-step-label { color: var(--brand-dk); font-weight: 500; }
#screen-customer .book-step-line { width: auto; min-width: 0; height: 2px; margin: 14px 0 0; border-radius: 0; background: var(--border); }
@media (max-width:639px) {
  #screen-customer .book-stepper { grid-template-columns: repeat(5,minmax(0,1fr) minmax(4px,.2fr)) minmax(0,1fr); padding-right: 6px; padding-left: 6px; }
  #screen-customer .book-step-label { max-width: 100%; white-space: normal; overflow-wrap: normal; font-size: 10px; line-height: 14px; }
}

/* Requested Customer finishing details; existing handlers and data remain authoritative. */
#screen-customer #cust-page-bookings .danger-box > .fa-circle-xmark { display: none; }
#screen-customer #customer-pets-grid .pcard-actions > button[onclick^="openCustomerPetModal"] { position: absolute; top: 16px; right: 16px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; font-size: 0; }
#screen-customer #customer-pets-grid .pcard-actions > button[onclick^="openCustomerPetModal"] i { margin: 0; font-size: 14px; }
#screen-customer .customer-account-menu { width: min(320px,calc(100vw - 40px)); padding: 10px; }
#screen-customer .customer-account-menu :is(button,a) { min-height: 44px; padding: 12px 14px; font-size: 13px; }
#screen-customer .customer-service-extras.selected > summary::before { content: none; }
#screen-customer .customer-service-extras > summary { padding-right: 52px; flex-wrap: wrap; column-gap: 4px; }
#screen-customer .customer-service-duration { min-width: 0; color: var(--txt-m); font-size: inherit; font-weight: 400; overflow-wrap: anywhere; }
#screen-customer .customer-service-duration:empty { display: none; }

/* Notification footer stays outside the scrolling list. */
#screen-customer #cust-notif.show { display: flex; flex-direction: column; max-height: min(520px,calc(100dvh - 104px)); }
#screen-customer #cust-notif .notif-panel-hd { flex: 0 0 auto; justify-content: space-between; }
#screen-customer #cust-notif .notif-list { flex: 1 1 auto; min-height: 0; max-height: 360px; overflow-y: auto; }
#screen-customer .customer-notif-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 0 auto; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
#screen-customer .customer-notif-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px; border: 0; border-radius: 5px; color: var(--txt-b); background: transparent; text-align: left; cursor: pointer; font: 600 11px/18px var(--customer-font-body); }
#screen-customer .customer-notif-footer button:hover { color: var(--brand-dk); background: var(--brand-lt); }
#screen-customer .customer-notif-footer button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
#screen-customer .customer-notif-footer .disabled { color: var(--txt-m); }
body[data-portal-role="customer"] #modal-customer-notifications .modal { max-width: 640px; }
body[data-portal-role="customer"] #modal-customer-notifications .modal-bd { padding: 0; }
body[data-portal-role="customer"] #customer-all-notifications { max-height: none; overflow: visible; }
body[data-portal-role="customer"] #customer-all-notifications .notif-item { padding: 18px 24px; }
body[data-portal-role="customer"] #customer-all-notifications .notif-main { min-width: 0; }
body[data-portal-role="customer"] #customer-all-notifications .notif-txt { overflow-wrap: anywhere; font-size: 13px; line-height: 21px; }
body[data-portal-role="customer"] #customer-all-notifications .notif-item:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }



/* Customer payment documents: aligned identity, quiet totals and explicit rhythm. */
body[data-portal-role="customer"] #modal-payment-receipt .modal { width: min(700px,calc(100vw - 40px)); }
body[data-portal-role="customer"] #modal-payment-receipt .modal-bd { padding: 24px; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-document { line-height: 1.65; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-document-header { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(160px,auto); align-items: start !important; gap: 16px 24px !important; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-business h2 { margin: 0 0 6px !important; color: var(--txt-h); font: 700 20px/28px var(--customer-font-heading); }
body[data-portal-role="customer"] #modal-payment-receipt .payment-document-identity { max-width: 260px; justify-self: end; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-document-identity > strong { display: block; color: var(--txt-m); font-size: 11px !important; line-height: 18px; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-reservation-code { margin-top: 8px !important; color: var(--txt-h) !important; font-size: 13px !important; font-weight: 700; line-height: 20px; overflow-wrap: anywhere; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-test-warning { margin: 20px 0 0; padding: 12px 14px !important; border-radius: 6px !important; background: var(--amber-lt) !important; color: var(--amber-dk) !important; text-align: left !important; font-size: 12px; font-weight: 600 !important; line-height: 20px; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-document > hr { margin: 20px 0 !important; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-booking-details { gap: 16px !important; margin-bottom: 20px !important; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-booking-details > div > span { display: block; margin-bottom: 4px; font-size: 11px; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-totals { padding: 14px 18px !important; border-radius: 6px !important; background: var(--surface-2) !important; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-summary-line { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px !important; margin: 10px 0 !important; line-height: 21px; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-entry { gap: 14px 24px; padding: 18px 0; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-entry-action { min-height: 36px; padding: 8px 12px; }
body[data-portal-role="customer"] #modal-payment-receipt .payment-back-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; margin: 0 0 20px; padding: 0; }
@media (max-width:639px) {

  #screen-customer #customer-pets-grid .pcard-actions > button[onclick^="openCustomerPetModal"] { width: 40px; height: 40px; min-height: 40px; }
  #screen-customer .customer-notif-footer button { min-height: 44px; }
  body[data-portal-role="customer"] #modal-payment-receipt .modal-bd { padding: 20px; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-document-header { grid-template-columns: minmax(0,1fr); gap: 12px !important; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-document-identity { justify-self: start; text-align: left !important; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-entry { gap: 12px 16px; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-entry-action { min-height: 44px; }
  body[data-portal-role="customer"] #modal-payment-receipt .payment-back-button { width: 44px; height: 44px; min-height: 44px; }
}

/* Final refinement: consistent identity controls and unboxed supporting information. */
body[data-portal-role="customer"] #modal-customer-feedback .customer-feedback-summary { margin: 0 0 22px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-portal-role="customer"] #modal-customer-feedback .customer-feedback-summary strong { display: block; font-size: 13px; line-height: 22px; }
body[data-portal-role="customer"] #modal-customer-feedback .customer-feedback-summary span { display: block; margin-top: 6px; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }



/* Date and time groups retain every configured slot in a bounded, accessible grid. */
#screen-customer .book-stay-date-grid { gap: 20px; align-items: start; }
#screen-customer .book-stay-date-column { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
#screen-customer .book-stay-date-column .book-mini-label { display: block; margin-bottom: 8px; font: 600 11px/18px var(--customer-font-body); }
#screen-customer .book-stay-date-column input[type="date"] { width: 100%; min-width: 0; min-height: 40px; }
#screen-customer .book-time-options { margin-top: 16px; padding-top: 16px; }
#screen-customer .book-time-heading { margin-bottom: 12px; color: var(--txt-h); font: 600 12px/20px var(--customer-font-body); }
#screen-customer #cust-page-book .book-stay-date-column .book-time-chip-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 40px; align-content: start; gap: 8px; max-height: min(332px,45dvh); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
#screen-customer #cust-page-book .book-stay-date-column .book-time-chip { width: 100%; min-width: 0; min-height: 40px; height: 40px; padding: 8px 6px; font: 600 11px/18px var(--customer-font-body); }
#screen-customer .book-stay-date-grid.is-daycare { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: 'date date' 'arrival departure'; }
#screen-customer .book-stay-date-grid.is-daycare > .book-stay-date-column { display: contents; }
#screen-customer .book-stay-date-grid.is-daycare > .book-stay-date-column:first-child > .fgroup { grid-area: date; }
#screen-customer .book-stay-date-grid.is-daycare > .book-stay-date-column > .book-time-options { margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
#screen-customer .book-stay-date-grid.is-daycare > .book-stay-date-column:first-child > .book-time-options { grid-area: arrival; }
#screen-customer .book-stay-date-grid.is-daycare > .book-stay-date-column:last-child > .book-time-options { grid-area: departure; }
#screen-customer #book-cage-result { margin-top: 28px !important; }
#screen-customer #cust-page-book .book-cage-metrics-row { gap: 14px; margin: 18px 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
#screen-customer #cust-page-book .book-cage-metric-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
#screen-customer #cust-page-book .book-cage-metric-card + .book-cage-metric-card { border: 1px solid var(--border); }
#screen-customer #cust-page-book .book-cage-metric-card strong { font-size: 24px; line-height: 32px; }
#screen-customer #cust-page-book .book-cage-legend { flex-wrap: wrap; gap: 10px 16px; margin: 16px 0; }
#screen-customer #cust-page-book .book-cage-grid { gap: 16px; margin-top: 18px; }
#screen-customer #cust-page-book .book-cage-card { min-width: 0; min-height: 100px; padding: 16px; }
#screen-customer #cust-page-book .book-cage-card-footer { flex-wrap: wrap; gap: 8px; }
#screen-customer #cust-page-book .book-cage-card em { min-width: 0; max-width: 100%; white-space: normal; }
#screen-customer .customer-nav-book-short { display: none; }
@media (max-width:1023px) {
  #screen-customer .customer-header-account :is(.sb-user-info,.customer-account-chevron) { display: none !important; }
  #screen-customer .customer-header-account { width: 40px; min-width: 40px; height: 40px; padding: 4px; border-radius: 50%; }
  #screen-customer .nav-item { padding: 8px 4px; gap: 4px; white-space: nowrap; }
  #screen-customer .nav-item .ni { display: inline-flex; align-items: center; justify-content: center; height: 20px; flex: 0 0 20px; line-height: 20px; }
  #screen-customer .customer-nav-book-full { display: none; }
  #screen-customer .customer-nav-book-short { display: block; line-height: 15px; }
}
@media (max-width:639px) {
  #screen-customer .cust-home-greeting { font-size: 26px; line-height: 34px; }


  #screen-customer .book-stay-date-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  #screen-customer .book-stay-date-column { padding: 14px; }
  #screen-customer .book-stay-date-grid.is-daycare { grid-template-columns: minmax(0,1fr); grid-template-areas: 'date' 'arrival' 'departure'; }
  #screen-customer .book-stay-date-grid.is-daycare > .book-stay-date-column > .book-time-options { padding: 14px; }
  #screen-customer #cust-page-book .book-stay-date-column .book-time-chip-row { grid-auto-rows: 44px; }
  #screen-customer #cust-page-book .book-stay-date-column .book-time-chip { height: 44px; min-height: 44px; }
  #screen-customer #cust-page-book .book-cage-metrics-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  #screen-customer #cust-page-book .book-cage-metric-card { padding: 12px; }
  #screen-customer #cust-page-book .book-cage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  #screen-customer #cust-page-book .book-cage-card { min-height: 96px; padding: 14px; }
  #screen-customer #cust-page-book .book-cage-card-head { gap: 8px; }
  #screen-customer #cust-page-book .book-cage-card strong { font-size: 14px; }
  #screen-customer #cust-page-bookings .cust-bookings-tabs { flex-wrap: wrap; overflow: visible; }
  body[data-portal-role="customer"] .customer-modal :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { min-height: 44px; font-size: 16px; }
}
@media (max-width:359px) {
  #screen-customer #cust-page-book .book-stay-date-column .book-time-chip-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Mobile uses document scrolling so native browser overscroll can refresh. */
@media (max-width:1023px) {
  body[data-portal-role="customer"] {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: visible;
    overscroll-behavior-y: auto;
  }
  #screen-customer { height: auto; min-height: 100dvh; overflow: visible; }
  #screen-customer .main-wrap { height: auto; min-height: 100dvh; overflow: visible; }
  #screen-customer .content-area { flex: 1 1 auto; min-height: auto; overflow: visible; overscroll-behavior-y: auto; }
  #screen-customer .page-wrap { padding-bottom: calc(83px + env(safe-area-inset-bottom,0px)); }

  /* Keep existing dialog locks, including shared receipt and OTP overlays. */
  body[data-portal-role="customer"]:has(.modal-overlay.show, dialog[open]) { overflow: hidden; }
  :is(body[data-portal-role="customer"] .modal-overlay, body.is-management-portal #modal-add-pet.customer-modal.modal-overlay) { overscroll-behavior: contain; }
}


/* Empty cards stay compact; populated Current Bookings grows until its list scrolls. */
#screen-customer .cust-home-grid { --cust-home-compact-height: 15rem; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); align-items: start; gap: 20px; }
#screen-customer .cust-home-card { display: flex; flex-direction: column; min-width: 0; min-height: var(--cust-home-compact-height); margin: 0; padding: 22px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); box-shadow: none; }
#screen-customer :is(#cust-home-next-appointment[data-booking-mode="empty"], #cust-home-completed) { height: var(--cust-home-compact-height); }
#screen-customer #cust-home-next-appointment { overflow: hidden; }
#screen-customer .cust-home-card > .cust-home-card-top { flex-shrink: 0; }
#screen-customer .cust-home-card > .cust-home-card-link { flex-shrink: 0; align-self: flex-start; margin-top: auto; }
#screen-customer .cust-home-card-top,#screen-customer .cust-home-card-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
#screen-customer .cust-home-card-top { justify-content: space-between; }
#screen-customer .cust-home-card-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 5px; font-size: 16px; }
#screen-customer .cust-home-card-icon.appointment { color: var(--brand-dk); background: var(--brand-lt); }
#screen-customer .cust-home-card-icon.completed { color: var(--success); background: var(--success-lt); }
#screen-customer .cust-home-card-label { margin: 0; color: var(--txt-h); font: 700 14px/20px var(--customer-font-body); }
#screen-customer .cust-home-card-badge { color: var(--txt-h); font: 800 24px/32px var(--customer-font-heading); font-variant-numeric: tabular-nums; }
#screen-customer .cust-home-current-list { display: grid; flex: 0 1 auto; min-height: 0; max-height: 22rem; align-content: start; margin: 12px -6px; padding: 0 6px; list-style: none; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; }
#screen-customer .cust-home-current-list > li { display: grid; grid-template-columns: minmax(0,1fr) auto 36px; align-items: center; gap: 12px; padding: 8px 0; }
#screen-customer .cust-home-current-list > li + li { border-top: 1px solid var(--border-soft); }
#screen-customer .cust-home-current-copy { min-width: 0; }
#screen-customer .cust-home-booking-title { display: block; color: var(--txt-h); font: 700 13px/21px var(--customer-font-body); overflow-wrap: anywhere; }
#screen-customer .cust-home-card-meta { display: block; margin: 4px 0 0; color: var(--txt-m); font: 400 12px/20px var(--customer-font-body); overflow-wrap: anywhere; }
#screen-customer .cust-home-empty { margin-top: 18px; }
#screen-customer .cust-home-current-list .cust-status-chip { justify-self: start; align-self: center; margin: 0; padding: 4px 8px; white-space: normal; }
#screen-customer .cust-home-current-list .cust-status-attention { color: var(--amber-dk); background: var(--amber-lt); }
#screen-customer .cust-home-booking-action { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 6px; color: var(--brand-dk); background: var(--surface); cursor: pointer; }
#screen-customer .cust-home-booking-action:hover { border-color: var(--brand); background: var(--brand-lt); }
#screen-customer .cust-home-card-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 12px; padding: 8px 0; border: 0; border-radius: 6px; color: var(--brand-dk); background: transparent; font: 600 12px/20px var(--customer-font-body); cursor: pointer; }
#screen-customer .cust-home-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
#screen-customer .cust-home-current-list:focus-visible,#screen-customer .cust-home-booking-action:focus-visible,#screen-customer .cust-home-card-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
#screen-customer .cust-home-completed-summary { flex: 1; padding-block: 12px; }
#screen-customer #cust-home-completed .cust-home-card-badge { margin-top: 0; font-size: 36px; line-height: 44px; }
#screen-customer #cust-home-completed .cust-home-card-title { margin: 4px 0 0; color: var(--txt-m); font: 400 13px/20px var(--customer-font-body); }
@media (max-width:1023px) {
  #screen-customer .cust-home-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:639px) {
  #screen-customer .cust-home-card { padding: 20px; }
  #screen-customer .cust-home-current-list > li { grid-template-columns: minmax(0,1fr) 44px; grid-template-areas: 'copy action' 'status action'; gap: 8px 12px; }
  #screen-customer .cust-home-current-copy { grid-area: copy; }
  #screen-customer .cust-home-current-list .cust-status-chip { grid-area: status; }
  #screen-customer .cust-home-booking-action { grid-area: action; width: 44px; height: 44px; }
  #screen-customer .cust-home-card-link { min-height: 44px; }
}

/* Keep Home geometry visible while authenticated reservation data is loading. */
#cust-page-home[data-home-state="loading"] .cust-home-card-badge { min-width: 2ch; }
#cust-page-home:not([data-home-state="ready"]) .cust-home-card-title { min-height: 1.5em; }
#cust-page-home[data-home-state="error"] .cust-home-card-meta,
#cust-page-home[data-home-state="error"] .cust-home-card-title { visibility: hidden; }
#screen-customer #cust-page-home:not([data-home-state="ready"]) .cust-home-card-title[hidden] { display: block !important; visibility: hidden; }

/* Shared Customer toast: keep the existing messages, icons and show/hide lifecycle. */
body[data-portal-role="customer"] #toast {
  left: auto;
  right: 24px;
  bottom: 24px;
  max-width: min(320px,calc(100vw - 48px));
  box-sizing: border-box;
  padding: 12px 16px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--txt-b);
  box-shadow: var(--shadow-float);
  font: 500 13px/1.5 var(--customer-font-body);
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-portal-role="customer"] #toast-msg { min-width: 0; flex: 1; }
body[data-portal-role="customer"] #toast-icon { flex: 0 0 auto; margin-top: 3px; color: var(--blue); }
body[data-portal-role="customer"] #toast-icon:is(.fa-check,.fa-check-circle,.fa-circle-check) { color: var(--success); }
body[data-portal-role="customer"] #toast-icon:is(.fa-triangle-exclamation,.fa-exclamation-triangle,.fa-circle-exclamation,.fa-exclamation-circle,.fa-ban) { color: var(--amber-dk); }
body[data-portal-role="customer"] #toast-icon:is(.fa-circle-xmark,.fa-times-circle,.fa-xmark,.fa-times) { color: var(--danger); }
@media (max-width:1023px) {
  body[data-portal-role="customer"] { --customer-mobile-nav-height: 59px; }
  body[data-portal-role="customer"] #toast {
    left: max(16px,env(safe-area-inset-left,0px));
    right: max(16px,env(safe-area-inset-right,0px));
    /* Navigation height, its 1px top border, and a 12px visual gap. */
    bottom: calc(var(--customer-mobile-nav-height) + 1px + 12px + env(safe-area-inset-bottom,0px));
    max-width: none;
  }
}


/* Customer refinements integrated from the OLD project. */
/* Customer edit controls keep the glyph centered, including hidden text nodes. */
#screen-customer :is(button,a.btn):has(> :is(.fa-pen,.fa-pen-to-square,.fa-edit)),
body[data-portal-role="customer"] .customer-modal :is(button,a.btn):has(> :is(.fa-pen,.fa-pen-to-square,.fa-edit)) { display: inline-flex; align-items: center; justify-content: center; }
#screen-customer #customer-pets-grid .pcard-actions > button[onclick^="openCustomerPetModal"] { gap: 0; font-size: 0; line-height: 1; }
#screen-customer #customer-pets-grid .pcard-actions > button[onclick^="openCustomerPetModal"] i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0; font-size: 14px; line-height: 1; }

/* Increase the existing mark within its unchanged header alignment. */
#screen-customer .customer-brand-mark { background-size: 38px 38px; }

/* Duration and size basis share one row; the price retains its own line. */
#screen-customer .book-service-facts { grid-template-columns: max-content minmax(0,1fr); align-items: baseline; column-gap: 12px; }
#screen-customer :is(.book-service-duration,.book-service-basis) { white-space: nowrap; }
#screen-customer #book-service-options .book-service-facts > .book-service-price { grid-column: 1 / -1; }
#screen-customer .customer-service-extras .book-service-facts > .book-service-price { grid-column: 1 / -1; }

/* Empty states use natural height and the full group width, without scrolling. */
#screen-customer #cust-page-book .book-stay-date-column .book-time-chip-row:has(> .book-time-empty) { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; max-height: none; overflow: visible; scrollbar-gutter: auto; }
#screen-customer .book-time-empty { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--txt-m); font: 400 12px/20px var(--customer-font-body); overflow-wrap: anywhere; }
#screen-customer #book-slot-grid:empty { display: none; }
#screen-customer .book-time-options > .book-inline-error { width: 100%; margin: 12px 0 0; padding: 0; border: 0; background: transparent; line-height: 20px; overflow-wrap: anywhere; }
#screen-customer .book-inline-error { min-width: 0; max-width: 100%; box-sizing: border-box; }

/* Keep contact icons aligned while long addresses wrap within the dialog. */

/* Existing availability controls whether the schedule action can be used. */
#screen-customer #book-pane-3 .book-btn-primary:disabled { border: 1px solid var(--border); background: var(--surface-2); color: var(--txt-m); opacity: 1; box-shadow: none; cursor: not-allowed; }

/* Per-cage badges already communicate status; retain the data and card details. */
#screen-customer #book-cage-result .book-cage-overview > .mini-badge,
#screen-customer #book-cage-result .book-cage-overview > div > span,
#screen-customer #book-cage-result .book-cage-legend { display: none; }

/* OLD toast appearance, with NEW's wrapping, safe-area spacing and lifecycle. */
body[data-portal-role="customer"] #toast { background: var(--txt-h); color: #fff; }
body[data-portal-role="customer"] #toast #toast-icon { color: inherit; }

#screen-customer .book-pet-contact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:20px; margin-bottom:22px; }
#screen-customer .book-pet-details-column { display:grid; gap:18px; min-width:0; }
#screen-customer .booking-contact { display: flex; flex-direction: column; align-items: flex-start; }
#screen-customer .booking-contact > label.booking-contact-confirm { display: inline-flex; width: fit-content; max-width: 100%; align-items: flex-start; gap: 9px; margin-top: 10px; margin-bottom: 0; color: var(--txt-b); font-size: 12px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: normal; cursor: pointer; }
#screen-customer .booking-contact-confirm input { flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); }
/* Network radios must not inherit the rounded text-field sizing/focus treatment. */
#screen-customer :is(#book-emergency-network,#profile-emergency-network) .contact-network-options { display:flex; flex-wrap:wrap; gap:12px 18px; margin:8px 0; }
#screen-customer :is(#book-emergency-network,#profile-emergency-network) .contact-network-options label { display:inline-flex; align-items:center; gap:8px; margin:0; cursor:pointer; }
#screen-customer :is(#book-emergency-network,#profile-emergency-network) input[type="radio"] { appearance:auto; -webkit-appearance:radio; flex:0 0 16px; width:16px; min-width:16px; max-width:16px; height:16px; min-height:16px; padding:0; margin:0; border:0; border-radius:50%; background:transparent; box-shadow:none; outline:none; accent-color:var(--brand); }
#screen-customer :is(#book-emergency-network,#profile-emergency-network) input[type="radio"]:focus { box-shadow:none; outline:none; }
#screen-customer :is(#book-emergency-network,#profile-emergency-network) input[type="radio"]:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
#screen-customer #book-updates-confirm[aria-invalid="true"]:not(:checked) + span { color: var(--danger); }
@media (max-width: 1023px) { #screen-customer .book-pet-contact-grid { grid-template-columns: minmax(0, 1fr); } }
/* Keep cage surfaces neutral; status colors belong only to the badges. */
#screen-customer #book-boarding-schedule {
  --customer-cleaning-ink: #6b3fa0;
  --customer-cleaning-surface: #f3edfa;
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card {
  --cage-status-ink: var(--txt-m);
  --cage-status-surface: var(--surface-2);
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card.available {
  --cage-status-ink: var(--success);
  --cage-status-surface: var(--success-lt);
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card.booked {
  --cage-status-ink: var(--danger);
  --cage-status-surface: var(--danger-lt);
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card.pending {
  --cage-status-ink: var(--amber-dk);
  --cage-status-surface: var(--amber-lt);
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card.turnover {
  --cage-status-ink: var(--customer-cleaning-ink);
  --cage-status-surface: var(--customer-cleaning-surface);
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card {
  color: var(--txt-b);
  border-color: var(--border);
  background: var(--surface);
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card.available.selected { border-color: var(--blue); }
#screen-customer #cust-page-book #book-cage-result .book-cage-card em {
  color: var(--cage-status-ink);
  background: var(--cage-status-surface);
}
#screen-customer #cust-page-book #book-cage-result .book-cage-card > strong > i { color: inherit; }
#screen-customer #cust-page-book #book-cage-result .book-cage-card .book-cage-icon { color: var(--txt-b); background: var(--surface); }
/* Every cage card shows only its icon, number, and status badge. */
#screen-customer #cust-page-book #book-cage-result .book-cage-card :is(.book-cage-description,p,.book-cage-type,.book-cage-tag) { display: none; }
/* Keep cage names consistent across statuses and selected states. */
#screen-customer #cust-page-book #book-cage-result .book-cage-card strong { color: var(--txt-b); }

/* Reflect existing availability states without dimming their status labels. */
#screen-customer #cust-page-book {
  --booking-unavailable-surface: #e0e3e7;
  --booking-unavailable-border: #afb6bf;
  --booking-unavailable-ink: #4b5563;
}
#screen-customer #cust-page-book :is(.book-slot-card,.book-time-chip):is(.taken,.disabled,:disabled,[aria-disabled="true"]),
#screen-customer #cust-page-book #book-cage-result .book-cage-card:is(.booked,.blocked,.maintenance,.pending,.turnover) {
  background: var(--booking-unavailable-surface);
  border-color: var(--booking-unavailable-border);
  color: var(--booking-unavailable-ink);
  opacity: 1;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
#screen-customer #cust-page-book .book-slot-card:is(.taken,.disabled,:disabled,[aria-disabled="true"]) :is(strong,span) { color: var(--booking-unavailable-ink); }
#screen-customer #cust-page-book #book-cage-result .book-cage-card:is(.booked,.blocked,.maintenance,.pending,.turnover) :is(strong,.book-cage-icon) { color: var(--booking-unavailable-ink); }
#screen-customer #cust-page-book #book-cage-result .book-cage-card:is(.booked,.blocked,.maintenance,.pending,.turnover) .book-cage-icon { background: var(--booking-unavailable-surface); }

/* Shared booking/profile contact spacing; keep OTP feedback visible in the existing theme. */
#screen-customer .contact-verification { width:100%; min-width:0; margin:12px 0 0; }
#screen-customer .contact-verification > .booking-contact { width:100%; min-width:0; }
#screen-customer :is(#book-emergency, #profile-emergency) .emergency-contact-help { display:block; font-size:12px; line-height:1.5; color:var(--txt-m, #64748b); margin:6px 0 0; }
#screen-customer :is(#book-emergency, #profile-emergency) .emergency-contact-help:empty { display:none; }
#screen-customer .contact-verification[hidden], #screen-customer .contact-verification [hidden] { display:none !important; }
#screen-customer .contact-actions { display:flex; gap:8px; flex-wrap:wrap; }
#screen-customer .contact-otp-actions { gap:12px; margin-top:12px; }
#screen-customer .contact-otp-actions > label.booking-contact-confirm { margin:0; }
#screen-customer .contact-otp-entry { display:flex; flex-direction:column; align-items:flex-start; gap:8px; width:100%; min-width:0; margin-top:12px; }
#screen-customer .contact-otp-entry > .book-mini-label { margin:0; }
#screen-customer .contact-verified > button { display:flex; margin-top:8px; }
#screen-customer .contact-verified > strong { margin-right:6px; }
#screen-customer #profile-contact .book-field,
#screen-customer .contact-otp-entry .book-field { width:100%; box-sizing:border-box; margin:0; }
.customer-modal.contact-otp-modal [hidden] { display:none !important; }
.customer-modal.contact-otp-modal .emergency-contact-help { display:block; margin:12px 0; font-size:12px; line-height:1.5; color:var(--txt-m); overflow-wrap:anywhere; }
.customer-modal.contact-otp-modal .emergency-contact-help:empty { display:none; }
.customer-modal.contact-otp-modal .contact-otp-entry { margin:20px 0 0; }
.customer-modal.contact-otp-modal .contact-otp-actions { margin-top:12px; }
#screen-customer .customer-contact-card[hidden] { display:none !important; }
#screen-customer .customer-contact-card { border-top:1px solid var(--border); }
#screen-customer .book-payment-options { margin-bottom:18px; }
#screen-customer .book-payment-options .book-payment-card { display:flex; align-items:flex-start; gap:10px; text-align:left; cursor:pointer; }
#screen-customer .book-payment-options input { flex:0 0 auto; margin-top:4px; accent-color:var(--brand); }
#screen-customer .book-payment-option-desc { display:block; margin-top:5px; color:var(--txt-m); font-size:12px; font-weight:400; line-height:1.5; }
#screen-customer .book-payment-options .book-payment-card:has(input:checked) { border-color:var(--brand); }
#screen-customer .book-payment-warning { margin:12px 0 0; color:var(--txt-b); font-size:12px; line-height:1.5; }
#screen-customer #book-payment-due-box .book-price-row strong { flex:0 0 auto; white-space:nowrap; }

/* Pet Details contact states share one rhythm; profile verification keeps its existing layout. */
#screen-customer .book-pet-contact-grid :is(.book-field,.book-select) { min-height:44px; box-sizing:border-box; line-height:20px; }
#screen-customer .book-pet-details-column > .fgroup:first-child > .book-mini-label { margin:0 0 8px; }
#screen-customer #book-contact { min-width:0; }
#screen-customer #book-contact > .book-mini-label { margin:0 0 8px; }
#screen-customer #book-contact > .booking-contact-confirm { margin:12px 0 0; }
#screen-customer #book-emergency { gap:12px; }
#screen-customer #book-emergency-verified { display:flex; align-items:center; flex-wrap:wrap; gap:8px; width:100%; }
#screen-customer #book-emergency-verified > strong { margin:0; }
#screen-customer #book-emergency-verified > button { margin:0 0 0 auto; }
#screen-customer #book-emergency-editor { display:grid; gap:12px; }
#screen-customer #book-emergency .contact-actions { align-items:center; gap:8px; }
#screen-customer #book-emergency :is(.book-btn-ghost,.book-btn-primary) { min-height:44px; padding:10px 14px; box-sizing:border-box; font-size:12px; line-height:20px; }
#screen-customer #book-emergency .book-contact-verification-controls { display:grid; gap:12px; min-width:0; padding-top:12px; border-top:1px solid var(--border); }
#screen-customer #book-emergency .contact-otp-actions { width:100%; gap:12px; margin:0; }
#screen-customer #book-emergency .contact-otp-entry { gap:8px; margin:0; }
#screen-customer #book-emergency .emergency-contact-help { width:100%; margin:0; overflow-wrap:anywhere; }
#screen-customer #book-contact .booking-contact-error { color:var(--danger); font-size:12px; line-height:1.5; margin:0; }
@media (max-width:480px) {
  #screen-customer #book-emergency-verified > button { flex-basis:100%; margin:0; }
  #screen-customer #book-emergency .contact-actions > button { flex:1 1 auto; }
  #screen-customer #book-emergency :is(.contact-otp-actions,.contact-otp-entry) > button { width:100%; }
}

/* Booking review: keep service names separate from the monetary breakdown. */
#screen-customer .book-summary-grid { align-items:start; }
#screen-customer #book-summary-box .book-price-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}
#screen-customer #book-summary-box .book-price-row > :last-child {
  justify-self:end;
  min-width:0;
  max-width:100%;
  text-align:right;
  overflow-wrap:anywhere;
}
#screen-customer :is(#book-summary-box, #book-pricing-box) .reservation-service-list {
  list-style:none;
  padding-inline-start:0;
  text-align:start;
  font-weight:600;
}
#screen-customer #book-summary-box .reservation-service-list { text-align:inherit; }
#screen-customer #book-summary-box .reservation-service-value,
#screen-customer #book-pricing-box .book-selected-services > div { font-weight:600; }
#screen-customer #book-pricing-box .book-selected-services {
  padding:8px 0 16px;
  margin-bottom:8px;
  border-bottom:1px solid var(--border);
  color:var(--txt-b);
  overflow-wrap:anywhere;
}
#screen-customer #book-pricing-box .book-selected-services h5 {
  margin:0 0 8px;
  font:inherit;
  font-size:12px;
  color:var(--txt-m);
}
#screen-customer #book-pricing-box .book-price-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
}
#screen-customer #book-pricing-box .book-price-row > strong {
  white-space:nowrap;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
#screen-customer #book-pricing-box .book-service-total > span { font-weight:600; color:var(--txt-h); }
#screen-customer #book-pricing-box .book-price-row.muted > :is(span,strong) { color:var(--txt-b); }
@media (max-width:640px) {
  #screen-customer #book-summary-box .book-price-row { grid-template-columns:minmax(0,1fr); gap:4px; }
  #screen-customer #book-summary-box .book-price-row > :last-child { justify-self:stretch; text-align:left; }
}
