:root {
    --ink: #16151A;
    --text: #242126;
    --surface: #FAF6E8;
    --surface-muted: #F0EBE2;
    --paper: #FFFCF5;
    --pink: #F0B9DA;
    --yellow: #F3DA69;
    --peach: #EEBEAA;
    --lavender: #D6C7EF;
    --mint: #BCE7D5;
    --blue: #B5CBEB;
    --gold: #EFD6A5;
    --rose: #EDB2C5;
    --border: #E5DED1;
    --muted-text: #706A64;
    --shadow: 0 12px 40px rgba(36, 33, 38, .045);
    font-family: "Noto Sans Thai", "IBM Plex Sans Thai", "Tahoma", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* The saved shop color is an admin preference. Public pages intentionally keep their own palette. */
.app-page .sidebar {
    color: var(--admin-on-primary);
    background: var(--admin-primary);
}
.app-page .sidebar .brand,
.app-page .sidebar-bottom strong,
.app-page .logout-link { color: var(--admin-on-primary); }
.app-page .sidebar-toggle {
    border-color: color-mix(in srgb, var(--admin-on-primary) 28%, transparent);
    color: var(--admin-on-primary);
    background: color-mix(in srgb, var(--admin-on-primary) 12%, transparent);
}
.app-page .nav-item { color: color-mix(in srgb, var(--admin-on-primary) 76%, transparent); }
.app-page .nav-item:hover,
.app-page .nav-item.active {
    color: var(--admin-on-primary);
    background: color-mix(in srgb, var(--admin-on-primary) 16%, transparent);
}
.app-page .nav-item.active svg { color: var(--admin-on-primary); }
.app-page .nav-count-badge {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}
.app-page .nav-item.active .nav-count-badge { border-color: var(--admin-primary); }
.app-page .button-primary,
.app-page .btn-primary,
.app-page .icon-button,
.app-page .module-tabs a.is-active,
.app-page .pagination-number.is-current,
.app-page .popup-payment button.is-selected,
.app-page .period-pill {
    border-color: var(--admin-primary);
    color: var(--admin-on-primary);
    background: var(--admin-primary);
}
.app-page .button-primary:hover,
.app-page .btn-primary:hover,
.app-page .icon-button:hover,
.app-page .module-tabs a.is-active:hover,
.app-page .pagination-number.is-current:hover {
    color: var(--admin-on-primary);
    background: color-mix(in srgb, var(--admin-primary) 86%, #000000);
}
.app-page .remember input,
.app-page .role-picker input,
.app-page .permission-list input,
.app-page .accent-option input { accent-color: var(--admin-primary); }
.app-page .input-wrap input:focus,
.app-page .field textarea:focus,
.app-page .field select:focus,
.app-page .filter-bar input:focus,
.app-page .filter-bar select:focus,
.app-page .field input[type="file"]:focus-visible {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--admin-primary) 22%, transparent);
}
.app-page :focus-visible { outline-color: var(--admin-primary); }
.app-page .skip-link {
    color: var(--admin-on-primary);
    background: var(--admin-primary);
}
/* Public website / CMS: share the application's pastel palette and dark actions. */
.care-notice { margin-bottom: 24px; }
.care-alerts ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.care-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--surface-muted); font-size: .86rem; overflow-wrap: anywhere; }
.care-alert .icon { flex-shrink: 0; }
.care-alert-content { min-width: 0; flex: 1; }
.care-alert-content strong { display: block; }
.care-alert-content p { margin: 7px 0 0; padding-top: 7px; border-top: 1px solid rgba(36, 33, 38, .14); color: #242126; font-weight: 500; line-height: 1.55; }
.care-alert-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.vaccination-summary-heading { align-items: flex-start; gap: 18px; }
.vaccination-summary-heading .form-actions { justify-content: flex-end; margin-top: 0; }
.vaccination-summary-table { margin-top: 14px; }
.pet-record-tabs { width: fit-content; max-width: 100%; margin-top: -7px; }
.care-level-danger { border: 1px solid #efaaa3; color: #8d2f2a; background: #fff0ed; font-weight: 800; }
.care-level-danger .icon { color: #c7352e; }
.care-level-high { background: var(--peach); }
.care-level-medium { background: var(--gold); }
.care-level-low, .care-level-notice { background: var(--blue); }
.care-status-valid { background: var(--mint); }
.care-status-due_soon { background: var(--gold); }
.care-status-expired { background: var(--peach); }
.care-status-unknown, .care-status-voided, .care-status-superseded { background: var(--surface-muted); }
.pet-list-name { display: flex; gap: 12px; align-items: center; }
.pet-list-name img, .pet-avatar { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--mint); }
.pet-avatar { display: grid; place-items: center; }
.pet-owner-picker { border: 1px solid var(--border); border-radius: 16px; max-height: 320px; overflow-y: auto; margin: 18px 0 10px; padding: 12px; }
.pet-owner-picker legend { padding: 0 8px; font-size: .85rem; }
.pet-owner-picker label { display: flex; align-items: center; min-height: 48px; gap: 10px; padding: 8px; border-radius: 10px; overflow-wrap: anywhere; }
.pet-owner-picker label:has(input:checked) { background: var(--mint); }
.pet-owner-picker [hidden] { display: none; }
.pet-owner-picker small { font-size: .7rem; color: var(--muted-text); }
.pet-profile-photo { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; min-height: 210px; margin-bottom: 24px; border-radius: 22px; background: var(--lavender); font-size: .85rem; }
.pet-profile-photo > .icon { width: 62px; height: 62px; }
.pet-profile-photo img { display: block; max-height: 330px; width: 100%; object-fit: contain; border-radius: 22px; }
.pet-owner-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.pet-owner-card .text-link { display: flex; align-items: center; min-height: 44px; font-size: .8rem; }
.cms-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 22px; padding: 6px; border: 1px solid var(--border); border-radius: 20px; background: var(--paper); }
.cms-tabs button { min-height: 48px; padding: 10px; border: 0; border-radius: 14px; background: transparent; color: var(--muted-text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.cms-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.cms-tab-panel[hidden] { display: none; }
.cms-builder-intro { margin: 0 0 22px; padding: 22px; border-radius: 20px; background: var(--mint); }
.cms-builder-intro strong { font-size: 1.05rem; }
.cms-builder-intro p { margin: 8px 0 0; font-size: .83rem; line-height: 1.8; }
.cms-section { margin: 12px 0; border: 1px solid var(--border); border-radius: 20px; background: var(--paper); overflow: hidden; }
.cms-section > summary, .cms-repeat-item > summary { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 18px 22px; cursor: pointer; list-style: none; }
.cms-section summary::-webkit-details-marker, .cms-repeat-item summary::-webkit-details-marker { display: none; }
.cms-section-label { flex: 1; min-width: 0; font-size: .93rem; font-weight: 650; overflow-wrap: anywhere; }
.cms-section-state { font-size: .7rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-muted); }
.cms-expand { font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
details[open] > summary > .cms-expand { transform: rotate(45deg); }
.cms-section[open] > summary { border-bottom: 1px solid var(--border); background: var(--surface-muted); }
.cms-section-body { padding: 24px; }
.cms-section-controls, .cms-item-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 24px; font-size: .78rem; }
.cms-section-controls > label, .cms-item-tools > label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.cms-section-controls input[type="number"], .cms-item-tools input[type="number"] { width: 76px; height: 44px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--text); font: inherit; }
.cms-move-buttons { display: flex; gap: 6px; margin-left: auto; }
.cms-move-buttons button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--paper); font: inherit; cursor: pointer; }
.cms-move-buttons button:disabled { opacity: .4; cursor: default; }
.cms-repeater { margin-top: 20px; }
.cms-repeater > .help-text { display: block; margin-top: 12px; }
.cms-repeat-item { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 16px; background: white; overflow: hidden; }
.cms-repeat-item > summary { min-height: 56px; padding: 14px 18px; justify-content: space-between; font-size: .84rem; font-weight: 600; }
.cms-repeat-item [data-item-heading] { min-width: 0; overflow-wrap: anywhere; }
.cms-repeat-body { padding: 18px; border-top: 1px solid var(--border); }
.cms-repeat-body > .field:last-child { margin-bottom: 0; }
.cms-service-picker { padding: 18px; margin: 20px 0 10px; border: 1px solid var(--border); border-radius: 16px; }
.cms-service-picker legend { font-size: .85rem; font-weight: 600; padding: 0 6px; }
.cms-service-picker label { min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; }
.cms-service-picker input { flex-shrink: 0; }
.cms-savebar { padding: 22px 0; }
.cms-savebar > .help-text { flex: 1; max-width: 500px; }
.public-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.public-content-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px; border-radius: 24px; color: var(--text); overflow-wrap: anywhere; }
.public-content-card h3 { margin: 18px 0 10px; font-size: 1.14rem; font-weight: 650; line-height: 1.55; }
.public-content-card p { margin: 0; line-height: 1.9; font-size: .9rem; }
.public-card-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.48); }
.public-card-symbol .icon { width: 24px; height: 24px; }
.public-step-number { font-size: 2rem; font-weight: 600; letter-spacing: -.05em; }
.public-content-steps .public-content-card { background: var(--paper); border: 1px solid var(--border); }
.public-review-rating { display: inline-flex; gap: 12px; font-size: .85rem; font-weight: 600; }
.public-content-card blockquote { margin: 22px 0; font-size: 1.05rem; line-height: 1.9; }
.public-content-card > .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-size: .8rem; }
.public-team-role { display: block; margin-bottom: 14px; font-size: .86rem; }
.public-section-intro { max-width: 800px; color: var(--muted-text); font-size: .95rem; line-height: 1.8; }
.public-faq { display: grid; gap: 12px; }
.public-faq details { border: 1px solid var(--border); border-radius: 20px; background: var(--paper); }
.public-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 64px; padding: 20px 26px; list-style: none; cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.public-faq summary::-webkit-details-marker { display: none; }
.public-faq summary span { font-size: 1.3rem; }
.public-faq details[open] summary span { transform: rotate(45deg); }
.public-faq p { margin: 0; padding: 0 26px 24px; line-height: 1.9; color: var(--muted-text); }
.public-promotion-dates { display: block; margin: 20px 0 0; font-size: .8rem; }
.public-content-card > .button-secondary { margin-top: 22px; }
.public-social-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.public-social-links a { display: flex; align-items: center; min-height: 44px; font-size: .85rem; overflow-wrap: anywhere; }
.public-footer > div { min-width: 0; max-width: 650px; }
@media (max-width: 900px) {
    .public-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .cms-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cms-section > summary { padding: 16px; gap: 8px; }
    .cms-section-label { font-size: .84rem; }
    .cms-section-body, .cms-builder-intro { padding: 18px; }
    .cms-repeat-body { padding: 14px; }
    .cms-item-tools { gap: 8px; }
    .cms-item-tools .cms-move-buttons { width: 100%; margin-left: 0; }
    .cms-section-controls .cms-move-buttons { margin-left: 0; }
    .cms-savebar { flex-direction: column; align-items: stretch; }
    .cms-savebar .button-primary { width: 100%; }
    .public-content-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .public-content-card { padding: 24px; }
    .public-faq summary { padding: 18px 20px; }
    .public-faq p { padding: 0 20px 22px; }
}
.tone-pink { background: var(--pink); }
.tone-mint { background: var(--mint); }
.tone-lavender { background: var(--lavender); }
.tone-blue { background: var(--blue); }
.tone-peach { background: var(--peach); }
.tone-gold { background: var(--gold); }
.field-error { display: block; color: #8A3029; margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.booking-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.booking-form { margin-bottom: 60px; }
.booking-form .public-contact-grid { margin-bottom: 22px; }
.booking-pet-profile-card { margin-top: 22px; padding: 18px; border: 1px solid #ded5c8; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(240,235,226,.48)); }
.booking-pet-profile-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.booking-pet-profile-heading strong { font-size: .93rem; }
.booking-pet-profile-heading span { color: var(--muted-text); font-size: .7rem; }
.booking-pet-profile-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(130px, .65fr); gap: 15px; }
.booking-pet-profile-grid .field { margin: 0; }
.booking-pet-age { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.booking-pet-age legend { margin-bottom: 8px; font-size: .78rem; font-weight: 800; }
.booking-age-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.booking-input-shell { display: flex; align-items: center; min-height: 58px; border: 1px solid var(--border); border-radius: 16px; background: var(--paper); overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.booking-input-shell:focus-within { border-color: #9e8f83; box-shadow: 0 0 0 3px rgba(158,143,131,.12); }
.booking-input-shell > span { flex: 0 0 auto; padding: 0 14px; color: var(--muted-text); font-size: .72rem; font-weight: 800; }
.booking-input-shell > span:first-child { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--border); background: var(--surface-muted); }
.booking-input-shell input { min-width: 0; height: 56px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.booking-input-shell input:focus { outline: none; box-shadow: none; }
.booking-number-shell input { text-align: right; font-variant-numeric: tabular-nums; }
.booking-number-shell > span:last-child { padding-left: 6px; }
.booking-pet-age .help-text { display: block; margin-top: 8px; }
.booking-service-multiselect { min-width: 0; margin: 0; padding: 0; border: 0; }
.booking-service-multiselect > legend { margin-bottom: 9px; font-size: .86rem; font-weight: 800; }
.booking-service-multiselect details { border: 1px solid var(--border); border-radius: 18px; background: var(--paper); overflow: hidden; }
.booking-service-multiselect details[open] { border-color: #ab9e92; box-shadow: 0 10px 28px rgba(36,33,38,.08); }
.booking-service-multiselect summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 13px 16px; cursor: pointer; font-weight: 750; list-style: none; }
.booking-service-multiselect summary::-webkit-details-marker { display: none; }
.booking-service-multiselect summary::after { content: '⌄'; flex: 0 0 auto; margin-left: 2px; font-size: 1.1rem; transition: transform .18s ease; }
.booking-service-multiselect details[open] summary::after { transform: rotate(180deg); }
.booking-service-multiselect summary > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-service-count { flex: 0 0 auto; margin-left: auto; padding: 5px 9px; border-radius: 999px; color: var(--muted-text); background: var(--surface-muted); font-size: .65rem; }
.booking-service-multiselect.has-selection .booking-service-count { color: #245b47; background: #e8f7f0; }
.booking-service-options { display: grid; gap: 8px; max-height: 330px; padding: 10px; overflow-y: auto; border-top: 1px solid var(--border); }
.booking-service-options label { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 11px; min-height: 58px; padding: 10px 12px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; }
.booking-service-options label:hover { border-color: var(--border); background: var(--surface-muted); }
.booking-service-options label:has(input:checked) { border-color: #8bc9b0; background: #e8f7f0; }
.booking-service-options input { width: 20px; height: 20px; accent-color: var(--ink); }
.booking-service-options strong, .booking-service-options small { display: block; }
.booking-service-options strong { font-size: .82rem; }
.booking-service-options small { margin-top: 3px; color: var(--muted-text); font-size: .67rem; }
.booking-service-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 11px 14px; border-radius: 14px; background: var(--surface-muted); font-size: .74rem; }
.booking-service-total strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.booking-consent { padding: 30px; }
.booking-consent > p { max-width: 850px; color: var(--muted-text); line-height: 1.85; font-size: .85rem; }
.booking-consent > label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .86rem; }
.booking-consent input { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--ink); }
.booking-receipt { max-width: 800px; padding: 32px; margin: 24px 0 60px; overflow-wrap: anywhere; }
.booking-cancel { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); }
.booking-cancel summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.booking-cancel form { font-size: .85rem; }
.booking-cancel button { display: flex; margin-top: 16px; }
.cms-note { padding: 18px; border-radius: 16px; background: var(--surface-muted); font-size: .85rem; }
.cms-note p { margin: 6px 0 12px; }
.accent-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.accent-picker legend { margin-bottom: 10px; font-size: .83rem; font-weight: 800; }
.accent-option { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 12px; border-radius: 14px; font-size: .78rem; }
.accent-option input { accent-color: var(--ink); }
.cms-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 18px; }
.cms-logo img { width: 80px; height: 80px; border-radius: 16px; object-fit: contain; background: white; }
.cms-hero-image-field { margin-top: 22px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); }
.cms-hero-image-current > div { display: grid; gap: 8px; }
.cms-hero-image-current img, .cms-hero-image-preview img { width: 150px; height: 100px; border-radius: 14px; object-fit: cover; background: white; }
.cms-hero-image-preview { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--muted-text); font-size: .85rem; font-weight: 600; }
.cms-hero-image-preview[hidden] { display: none; }
.cms-logo-image-preview { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--muted-text); font-size: .85rem; font-weight: 600; }
.cms-logo-image-preview img { width: 100px; height: 100px; border-radius: 16px; object-fit: contain; background: white; }
.cms-logo-image-preview[hidden] { display: none; }
.cms-gallery-manager { margin-top: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); }
.cms-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.cms-gallery label { overflow: hidden; border-radius: 14px; background: var(--surface-muted); }
.cms-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cms-gallery span { display: flex; align-items: center; min-height: 44px; padding: 8px; font-size: .75rem; }
.cms-gallery-preview figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); }
.cms-gallery-preview figcaption { overflow: hidden; padding: 8px; color: var(--muted-text); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.cms-gallery-preview[hidden] { display: none; }
.field input[type="file"] { display: block; width: 100%; max-width: 100%; min-height: 58px; padding: 9px; border: 1px dashed #c9c0b7; border-radius: 14px; color: var(--text); background: #fffdf8; font-size: .8rem; transition: border-color .18s ease, box-shadow .18s ease; }
.field input[type="file"]:hover { border-color: #7f747c; }
.field input[type="file"]:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(241,167,209,.24); }
.field input[type="file"]::file-selector-button { min-height: 38px; margin-right: 12px; padding: 8px 15px; border: 0; border-radius: 999px; color: #fff; background: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.public-site { --accent: var(--pink); max-width: 1360px; margin: 0 auto; padding: 0 42px; }
.public-site.accent-mint { --accent: var(--mint); }
.public-site.accent-lavender { --accent: var(--lavender); }
.public-site.accent-blue { --accent: var(--blue); }
.public-site.accent-peach { --accent: var(--peach); }
.public-site.accent-gold { --accent: var(--gold); }
.public-site .eyebrow::before, .public-site .brand-mark { background: var(--accent); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.public-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-height: 110px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.public-header .brand { max-width: 240px; overflow-wrap: anywhere; }
.public-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.public-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.public-navigation a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; font-size: .83rem; }
.public-navigation a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.public-navigation a:not([aria-current]):hover { background: var(--surface-muted); }
.public-staff-link { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .78rem; }
.public-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--ink); color: var(--paper); }
.public-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding: 76px 0 70px; }
.public-hero-copy h1, .public-page-heading h1 { margin: 18px 0 22px; font-size: clamp(2.4rem, 4.4vw, 4.1rem); line-height: 1.25; font-weight: 600; letter-spacing: -.05em; overflow-wrap: anywhere; }
.public-hero-copy p { max-width: 520px; color: var(--muted-text); font-size: 1rem; line-height: 1.85; }
.public-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.public-tags { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.public-tags span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-text); font-size: .73rem; }
.public-tags .ui-icon { width: 17px; }
.public-hero-art { position: relative; display: grid; place-items: center; min-height: 430px; padding: 32px; border-radius: 100px 100px 28px 28px; background: var(--accent); }
.paw-emblem { display: grid; place-items: center; width: 245px; height: 245px; border-radius: 50%; background: var(--paper); transform: rotate(-12deg); }
.paw-emblem .ui-icon { width: 145px; height: 145px; stroke-width: 1; }
.hero-gallery-image { width: 100%; height: 350px; object-fit: cover; border-radius: 80px 80px 20px 20px; }
.hero-note { position: absolute; bottom: -22px; left: -25px; padding: 20px 25px; min-width: 220px; border: 5px solid var(--surface); border-radius: 23px; transform: rotate(-5deg); background: var(--yellow); }
.hero-note span { font-size: .66rem; }
.hero-note strong { display: block; margin-top: 5px; font-size: 1.2rem; line-height: 1.5; font-weight: 600; }
.hero-note .ui-icon { position: absolute; right: 18px; bottom: 20px; width: 28px; height: 28px; }
.hero-orbit { position: absolute; right: -12px; top: 8px; font-size: 5rem; line-height: 1; }
.public-section { margin: 40px 0 65px; }
.public-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.public-site h2 { margin: 8px 0 12px; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.4; letter-spacing: -.03em; font-weight: 600; }
.public-section-heading .text-link { font-size: .83rem; padding: 12px 0; }
.public-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.public-service-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border-radius: 22px; }
.service-card-top { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ffffff80; }
.public-service-card h3 { margin: 26px 0 8px; font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.public-service-card > p { margin: 0 0 18px; font-size: .83rem; flex: 1; }
.service-card-price { margin-top: auto; font-size: .78rem; }
.service-card-price strong { font-size: 1.45rem; font-weight: 600; }
.service-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.service-sizes div { display: flex; gap: 8px; padding: 6px 10px; border-radius: 10px; font-size: .73rem; background: #ffffff70; }
.service-sizes dd { margin: 0; }
.service-contact { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #24212630; font-size: .8rem; font-weight: 600; }
.public-empty { grid-column: 1 / -1; padding: 40px 28px; border: 1px dashed var(--border); border-radius: 24px; background: var(--paper); text-align: center; }
.public-empty > .ui-icon { width: 38px; height: 38px; margin-bottom: 4px; }
.public-empty h3 { margin: 10px 0; font-size: 1.2rem; font-weight: 600; }
.public-empty p { margin: 8px auto 20px; max-width: 520px; color: var(--muted-text); }
.public-story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; margin: 55px 0; padding: 46px; border-radius: 26px; background: var(--surface-muted); }
.public-story p { color: var(--muted-text); line-height: 1.9; }
.public-story .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.public-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 0; margin: 35px 0; }
.public-cta p { color: var(--muted-text); max-width: 600px; overflow-wrap: anywhere; }
.public-page-heading { max-width: 770px; padding: 65px 0 16px; }
.public-page-heading p { color: var(--muted-text); max-width: 620px; line-height: 1.85; }
.about-story { align-items: start; }
.about-symbol { display: grid; place-items: center; min-height: 320px; border-radius: 24px; padding: 40px; }
.about-symbol .ui-icon { width: 130px; height: 130px; }
.about-symbol span { font-size: 1.05rem; }
.public-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.public-gallery figure { margin: 0; }
.public-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: var(--surface-muted); }
.public-gallery figcaption { padding: 12px 4px; font-size: .73rem; color: var(--muted-text); }
.public-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 22px 0 70px; }
.public-contact-grid .panel { padding: 34px; }
.public-contact-list div { margin: 20px 0; }
.public-contact-list dt { font-size: .76rem; color: var(--muted-text); }
.public-contact-list dd { margin: 4px 0; overflow-wrap: anywhere; }
.public-contact-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.public-line-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 42px; overflow: hidden; background: linear-gradient(135deg, #e8f8ef 0%, #f8efe6 55%, #f7dcec 100%); }
.public-line-copy { max-width: 650px; }
.public-line-label { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: #0d6535; background: #d6f3e2; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.public-line-copy h2 { margin: 14px 0 10px; }
.public-line-copy > p:not(.public-line-id) { max-width: 620px; color: var(--muted-text); line-height: 1.8; }
.public-line-id { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.public-line-id span { color: var(--muted-text); font-size: .76rem; }
.public-line-id strong { font-size: 1.08rem; }
.public-line-button { width: max-content; }
.public-line-qr { display: grid; justify-items: center; gap: 8px; padding: 14px; border: 1px solid #ffffffd9; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 16px 40px #5f80661f; text-decoration: none; }
.public-line-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.public-line-qr span { font-size: .72rem; font-weight: 700; }
.public-hours dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.public-hours dd { margin: 0; font-weight: 600; }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 40px; border-top: 1px solid var(--border); }
.public-footer p, .public-footer small { display: block; font-size: .73rem; color: var(--muted-text); margin: 12px 0 0; }
.public-footer .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; }
@media (max-width: 1100px) {
    .public-site { padding: 0 28px; }
    .public-hero { gap: 36px; }
    .public-hero-art { min-height: 380px; }
    .public-staff-link { font-size: .7rem; }
    .public-navigation a { padding: 8px 9px; font-size: .76rem; }
}
@media (max-width: 900px) {
    .public-header { display: grid; grid-template-columns: minmax(0, 1fr) 44px; min-height: 88px; }
    .public-header .brand { max-width: 100%; }
    .public-toggle:not([hidden]) { display: inline-flex; }
    .public-navigation { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
    .public-navigation a { justify-content: center; font-size: .85rem; }
    .public-staff-link { grid-column: 1 / -1; justify-content: center; }
    .public-header[data-navigation-ready="true"] .public-navigation, .public-header[data-navigation-ready="true"] .public-staff-link { display: none; }
    .public-header[data-menu-open="true"] .public-navigation, .public-header[data-menu-open="true"] .public-staff-link { display: flex; }
    .public-hero { gap: 28px; padding: 55px 0; }
    .public-hero-art { min-height: 330px; padding: 20px; border-radius: 65px 65px 24px 24px; }
    .paw-emblem { width: 185px; height: 185px; }
    .paw-emblem .ui-icon { width: 100px; height: 100px; }
    .hero-gallery-image { height: 290px; }
    .hero-note { left: -12px; padding: 14px 18px; min-width: 180px; }
    .hero-note strong { font-size: 1rem; }
    .public-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-story { padding: 30px; gap: 30px; }
}
@media (max-width: 650px) {
    .public-site { padding: 0 20px; }
    .data-table.responsive-cards thead { display: none; }
    .data-table.responsive-cards tbody { display: grid; gap: 16px; }
    .data-table.responsive-cards tr { display: block; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
    .data-table.responsive-cards td { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-bottom: 0; overflow-wrap: anywhere; }
    .data-table.responsive-cards td::before { content: attr(data-label); grid-column: 1; color: var(--muted-text); font-size: .72rem; }
    .data-table.responsive-cards td > * { grid-column: 2; }
    .data-table.responsive-cards td.empty-state { display: block; }
    .data-table.responsive-cards .status-pill { justify-self: start; }
    .public-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 35px 0 50px; }
    .public-hero-copy h1, .public-page-heading h1 { font-size: 2.35rem; line-height: 1.35; }
    .public-hero-copy p { font-size: .9rem; }
    .public-tags { gap: 12px; margin-top: 22px; }
    .public-hero-art { margin: 0 8px; min-height: 310px; }
    .public-actions { gap: 10px; }
    .public-actions > a { flex: 1; }
    .public-section-heading { display: block; }
    .public-service-grid, .public-story, .public-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .public-story { padding: 25px; margin: 30px 0; gap: 16px; }
    .public-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .public-gallery img { border-radius: 16px; }
    .public-cta { display: block; margin: 15px 0; padding: 25px 0; }
    .public-cta > a { margin-top: 14px; }
    .public-page-heading { padding-top: 36px; }
    .public-contact-grid .panel { padding: 24px; }
    .public-line-card { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .public-line-qr { width: min(100%, 240px); justify-self: center; }
    .public-line-button { width: 100%; }
    .public-footer { display: block; }
    .public-footer > div + div { margin-top: 22px; }
    .cms-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-symbol { min-height: 260px; }
}

/* Compact row actions and the shared, non-destructive confirmation dialog. */
.table-actions { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.table-action { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-text); }
.table-action + .table-action::before { content: '/'; color: #b4aaa2; font-size: .82rem; font-weight: 500; }
.table-action > button,
a.table-action { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 8px; border: 0; border-radius: 10px; color: var(--muted-text); background: transparent; cursor: pointer; }
.table-action > button:hover,
.table-action > button:focus-visible,
a.table-action:hover,
a.table-action:focus-visible { outline: none; color: var(--ink); background: var(--surface-muted); }
.table-action .ui-icon { width: 19px; height: 19px; }
.confirm-overlay { position: fixed; z-index: 21000; inset: 0; display: grid; place-items: center; box-sizing: border-box; padding: 18px; background: rgba(22,21,26,.55); backdrop-filter: blur(6px); }
.confirm-overlay[hidden] { display: none !important; }
.confirm-card { width: min(430px, 100%); padding: 30px; border: 1px solid rgba(255,255,255,.65); border-radius: 26px; background: var(--paper); box-shadow: 0 28px 90px rgba(22,21,26,.28); text-align: center; }
.confirm-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; color: #8d2f2a; background: #fff0ed; }
.confirm-icon .ui-icon { width: 27px; height: 27px; }
.confirm-card h2 { margin: 0; font-size: 1.25rem; }
.confirm-card > p { margin: 10px 0 0; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.confirm-actions .button-primary,
.confirm-actions .button-secondary { width: 100%; min-width: 0; margin: 0; }
@media (max-width: 650px) {
    .table-actions { gap: 5px; }
    .table-action { gap: 5px; }
    .confirm-card { padding: 24px 20px; border-radius: 22px; }
    .confirm-actions { grid-template-columns: 1fr; }
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface); }
body { margin: 0; color: var(--text); background: var(--surface); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.ui-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: var(--pink); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-size: 1.4rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-text); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 3px; border-radius: 999px; background: var(--pink); }

/* Auth */
.auth-page { min-height: 100vh; padding: 26px; background: var(--surface-muted); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); max-width: 1240px; min-height: calc(100vh - 52px); margin: 0 auto; padding: 12px; gap: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.auth-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 640px; padding: 36px; overflow: hidden; border-radius: 21px; color: var(--ink); background: var(--surface); }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.auth-visual::before { width: 240px; height: 240px; top: -155px; right: -95px; background: var(--lavender); }
.auth-visual::after { width: 190px; height: 190px; bottom: -150px; left: -90px; background: var(--peach); }
.auth-visual .brand { color: var(--ink); }
.auth-visual .brand-mark { color: var(--paper); background: var(--ink); }
.visual-copy { max-width: 550px; margin-top: 40px; }
.visual-copy .eyebrow { color: var(--muted-text); }
.visual-copy h1 { max-width: 530px; margin: 18px 0 17px; font-size: clamp(2rem, 3.3vw, 3.1rem); font-weight: 600; line-height: 1.38; letter-spacing: -.045em; }
.visual-copy p { max-width: 455px; margin: 0; color: var(--muted-text); font-size: .93rem; }
.feature-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.feature-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 999px; color: var(--text); background: var(--paper); font-size: .75rem; }
.feature-chip i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--mint); }
.feature-chip:nth-child(2) i { background: var(--yellow); }
.feature-chip:nth-child(3) i { background: var(--pink); }
.visual-footer { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.visual-note { max-width: 220px; color: var(--muted-text); font-size: .8rem; }
.visual-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: .92rem; }
.pet-card { position: relative; width: 170px; height: 130px; padding: 18px; overflow: hidden; border-radius: 20px; color: var(--ink); background: var(--mint); }
.pet-card::after { content: "✦"; position: absolute; right: 16px; bottom: 4px; color: rgba(22,21,26,.27); font-size: 4.8rem; line-height: 1; }
.pet-card span { position: relative; z-index: 1; display: block; font-size: .76rem; font-weight: 800; }
.pet-card b { position: relative; z-index: 1; display: block; margin-top: 7px; font-size: 1.3rem; line-height: 1.15; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 4vw, 60px); background: var(--paper); }
.form-wrap { width: min(100%, 390px); }
.form-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-text); font-size: .83rem; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.form-wrap h2 { margin: 0 0 8px; color: var(--ink); font-size: 2.05rem; font-weight: 600; line-height: 1.4; letter-spacing: -.04em; }
.form-intro { margin: 0 0 30px; color: var(--muted-text); }
.alert { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #e2a291; border-radius: 12px; color: #7c342b; background: #fff0eb; font-size: 1rem; line-height: 1.65; }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 8px; color: var(--text); font-size: .83rem; font-weight: 800; }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; left: 15px; width: 18px; height: 18px; color: #8c828b; transform: translateY(-50%); pointer-events: none; }
.input-wrap input { width: 100%; height: 50px; padding: 0 15px 0 46px; border: 1px solid var(--border); border-radius: 13px; outline: none; color: var(--text); background: var(--paper); transition: .2s ease; }
.input-wrap input::placeholder { color: #afa6ad; }
.input-wrap input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(241,167,209,.28); }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 25px; font-size: .82rem; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-text); }
.remember input { width: 16px; height: 16px; accent-color: var(--ink); }
.text-link { color: var(--ink); font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 999px; color: #fff; background: var(--ink); font-weight: 600; transition: background .2s ease; }
.btn-primary:hover { background: #36343B; }
.secure-note { display: flex; justify-content: center; gap: 7px; margin-top: 25px; color: #908791; font-size: .76rem; }

/* Application shell */
.app-page { min-height: 100vh; background: var(--surface-muted); }
.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 32px); max-width: 1760px; margin: 16px auto; padding: 12px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); }
.sidebar { display: flex; flex-direction: column; min-width: 0; padding: 25px 14px 18px; border-radius: 18px; color: #fff; background: var(--ink); }
.sidebar .brand { padding: 0 12px 36px; color: #fff; }
.sidebar .brand-mark { width: 32px; height: 32px; background: var(--pink); }
.sidebar .brand-name { font-size: 1.7rem; letter-spacing: -.06em; }
.sidebar-header { display: flex; align-items: flex-start; justify-content: space-between; }
.sidebar-menu { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sidebar-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #504952; border-radius: 12px; color: var(--paper); background: #29272E; }
.sidebar-toggle[hidden] { display: none; }
.sidebar-toggle:focus-visible { outline-color: var(--pink); }
.menu-close-icon { display: none; }
.sidebar[data-menu-open="true"] .menu-open-icon { display: none; }
.sidebar[data-menu-open="true"] .menu-close-icon { display: block; }
.nav-label { padding: 0 13px; color: #B4ADB7; font-size: .62rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; margin: 10px 0 25px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #C8C3CB; font-size: .78rem; font-weight: 400; }
.nav-item:hover { color: #fff; background: #29272E; }
.nav-item.active { color: var(--pink); background: #2D252E; }
.nav-item.active svg { color: var(--pink); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item-with-badge { position: relative; padding-right: 38px; }
.nav-item-with-badge > span:not(.nav-count-badge) { min-width: 0; }
.nav-count-badge { position: absolute; top: 5px; right: 7px; display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--pink); font-size: .62rem; font-weight: 900; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.nav-item.active .nav-count-badge { border-color: #2D252E; }
.nav-dropdown { min-width: 0; }
.nav-dropdown > summary { list-style: none; cursor: pointer; user-select: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown-toggle span { min-width: 0; flex: 1; }
.nav-dropdown-toggle .nav-dropdown-arrow { width: 14px; height: 14px; margin-left: auto; transition: transform .18s ease; }
.nav-dropdown[open] .nav-dropdown-arrow { transform: rotate(90deg); }
.nav-submenu { display: grid; gap: 3px; margin: 3px 0 6px 21px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.14); }
.nav-subitem { min-height: 34px; padding: 8px 10px; font-size: .73rem; }
.module-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; padding: 6px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.48); }
.module-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border-radius: 12px; color: var(--muted-text); font-size: .76rem; font-weight: 800; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.module-tabs a:hover { color: var(--ink); background: var(--surface-muted); }
.module-tabs a.is-active { color: #fff; background: var(--ink); box-shadow: 0 7px 18px rgba(22,21,26,.16); }
.form-optional { margin: 8px 0 20px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.42); }
.form-optional > summary { min-height: 50px; padding: 13px 17px; list-style: none; color: var(--ink); font-size: .8rem; font-weight: 900; cursor: pointer; }
.form-optional > summary::-webkit-details-marker { display: none; }
.form-optional > summary::before { content: "+"; display: inline-block; width: 20px; margin-right: 7px; font-size: 1.1rem; }
.form-optional[open] > summary::before { content: "−"; }
.form-optional-body { padding: 3px 17px 17px; border-top: 1px solid var(--border); }
.sidebar-bottom { margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: #C8C3CB; font-size: .73rem; }
.sidebar-bottom strong { display: block; margin-bottom: 3px; color: #fff; font-size: .86rem; }
.sidebar-bottom, .sidebar-bottom strong { min-width: 0; overflow-wrap: anywhere; }
.app-main { min-width: 0; padding: 22px clamp(20px, 2.5vw, 42px) 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.topbar h1 { margin: 5px 0 0; color: var(--ink); font-size: clamp(1.7rem, 2.5vw, 2.3rem); font-weight: 600; line-height: 1.4; letter-spacing: -.045em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--paper); background: var(--ink); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--lavender); font-weight: 900; }
.hero-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 180px; padding: 30px 34px; overflow: hidden; border-radius: 23px; background: var(--pink); }
.hero-banner::after { content: "✦"; position: absolute; right: 9%; bottom: -45px; color: rgba(255,255,255,.3); font-size: 13rem; line-height: 1; }
.hero-banner h2 { position: relative; z-index: 1; max-width: 550px; margin: 0 0 7px; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.045em; }
.hero-banner p { position: relative; z-index: 1; margin: 0; color: rgba(22,21,26,.7); }
.hero-badge { position: relative; z-index: 1; flex: 0 0 auto; padding: 13px 16px; border-radius: 15px; color: var(--ink); background: var(--yellow); font-size: .8rem; font-weight: 900; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 22px 0; }
.stat-card { min-height: 126px; padding: 19px; border: 1px solid rgba(22,21,26,.06); border-radius: 18px; background: var(--yellow); }
.stat-card:nth-child(2) { background: var(--lavender); }
.stat-card:nth-child(3) { background: var(--mint); }
.stat-card:nth-child(4) { background: var(--blue); }
.stat-card span { color: rgba(22,21,26,.67); font-size: .78rem; font-weight: 800; }
.stat-card strong { display: block; margin-top: 10px; color: var(--ink); font-size: 1.9rem; line-height: 1; letter-spacing: -.06em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 18px; }
.panel { padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: var(--paper); }
.app-main > .panel { margin-bottom: 20px; }
.app-main > .panel:last-child { margin-bottom: 0; }
.app-main > .panel + .panel { margin-top: 0; }
.app-main > .panel:has(+ .button-primary), .app-main > .panel:has(+ .button-secondary) { margin-bottom: 0; }
.app-main > .panel + .button-primary, .app-main > .panel + .button-secondary { margin-top: 20px; }
.app-main > .cashier-metrics { margin-bottom: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.panel-heading h3 { margin: 0; color: var(--ink); font-size: 1.05rem; }
.panel-heading a { color: #776f78; font-size: .78rem; font-weight: 800; }
.appointment { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--surface-muted); }
.appointment:first-of-type { border-top: 0; padding-top: 0; }
.appointment-time { min-width: 53px; color: var(--ink); font-size: .8rem; font-weight: 900; }
.appointment-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.appointment:nth-of-type(3) .appointment-dot { background: var(--mint); }
.appointment:nth-of-type(4) .appointment-dot { background: var(--yellow); }
.appointment-copy { min-width: 0; flex: 1; }
.appointment-copy strong { display: block; color: var(--text); font-size: .88rem; }
.appointment-copy span { color: #8b828b; font-size: .75rem; }
.status { padding: 5px 9px; border-radius: 999px; color: #4d4350; background: var(--surface-muted); font-size: .7rem; font-weight: 800; }
.status.ready { background: var(--mint); }
.quick-actions { display: grid; gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 11px; padding: 12px; border: 0; border-radius: 15px; color: var(--text); background: var(--surface-muted); font-size: .8rem; font-weight: 500; }
.quick-action:hover { background: var(--lavender); }
.quick-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--peach); }
.quick-action:nth-child(2) .quick-icon { background: var(--lavender); }
.quick-action:nth-child(3) .quick-icon { background: var(--mint); }
.logout-link { display: inline-flex; width: 100%; margin-top: 13px; padding: 10px 13px; border: 0; border-radius: 10px; color: #bdb5be; background: transparent; font-size: .78rem; font-weight: 700; text-align: left; }
.logout-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.toast-region { position: fixed; z-index: 10000; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 3px; pointer-events: none; }
.success-toast { display: flex; align-items: flex-start; gap: 11px; padding: 16px; border: 1px solid #91C9AC; border-radius: 20px; color: var(--text); background: #F0FBF5; box-shadow: 0 8px 30px rgba(36,33,38,.18); pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
.toast-icon { display: grid; flex: 0 0 30px; place-items: center; height: 30px; margin-top: 4px; border-radius: 50%; color: #20563E; background: var(--mint); font-weight: 700; }
.toast-copy { flex: 1; min-width: 0; }
.toast-copy strong { display: block; color: #20563E; font-size: 1.125rem; line-height: 1.45; }
.toast-copy p { margin: 5px 0 0; color: #385246; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.toast-close { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; margin: -4px -5px -4px 0; border: 0; border-radius: 10px; color: #385246; background: transparent; }
.toast-close[hidden] { display: none; }
.toast-close:hover { background: var(--mint); }
.success-toast.is-dismissing { opacity: 0; transform: translateY(8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .success-toast { transition: none; } }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 9px 0 4px; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.4; letter-spacing: -.045em; }
.page-header p, .muted { margin: 0; color: var(--muted-text); }
.button-primary, .button-secondary, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.button-primary { border: 1px solid var(--ink); color: #fff; background: var(--ink); }
.button-primary:hover { background: #36343B; }
.button-secondary { border: 1px solid var(--border); color: var(--text); background: var(--paper); }
.button-secondary:hover { border-color: var(--ink); }
.button-link { color: var(--muted-text); }
.button-link:hover { color: var(--ink); text-decoration: underline; }
.full { width: 100%; }
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.filter-bar input { min-width: min(100%, 370px); height: 43px; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; outline: none; background: #fff; }
.filter-bar input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(241,167,209,.25); }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 13px 12px; color: var(--muted-text); background: var(--surface-muted); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table th:first-child { border-radius: 12px 0 0 12px; }
.data-table th:last-child { border-radius: 0 12px 12px 0; }
.data-table tbody tr:hover { background: var(--surface); }
.data-table td { padding: 15px 12px; border-bottom: 1px solid var(--surface-muted); font-size: .83rem; vertical-align: middle; }
.data-table td strong { display: block; color: var(--text); }
.data-table td small { display: block; margin-top: 2px; color: #8e858e; }
.table-action { text-align: right; white-space: nowrap; }
.table-action a { color: var(--ink); font-weight: 800; }
.status-pill, .status-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 29px; padding: 5px 11px; border: 1px solid transparent; border-radius: 999px; color: #615a61; background: #ece8e5; font-size: .7rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.status-pill::before, .status-badge::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(97,90,97,.1); }
.status-pill.is-active,
.status-pill[data-tone="success"], .status-badge[data-tone="success"] { color: #17633f; border-color: #9bd2b4; background: #dff4e8; }
.status-pill[data-tone="warning"], .status-badge[data-tone="warning"], .status-pill.pending { color: #7a5200; border-color: #eac768; background: #fff1bd; }
.status-pill[data-tone="info"], .status-badge[data-tone="info"] { color: #185f8d; border-color: #9bcbe8; background: #dff1fc; }
.status-pill[data-tone="danger"], .status-badge[data-tone="danger"] { color: #9f2929; border-color: #efa3a3; background: #ffe0e0; }
.status-pill[data-tone="neutral"], .status-badge[data-tone="neutral"] { color: #615a61; border-color: #d6d0cc; background: #ece8e5; }
.status-pill.care-status-valid { color: #17633f; border-color: #9bd2b4; background: #dff4e8; }
.status-pill.care-status-due_soon { color: #7a5200; border-color: #eac768; background: #fff1bd; }
.status-pill.care-status-expired, .status-pill.care-status-unknown { color: #9f2929; border-color: #efa3a3; background: #ffe0e0; }
.empty-state { padding: 34px 16px !important; color: #938a93; text-align: center; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr); gap: 18px; align-items: start; }
.form-side { display: grid; gap: 18px; }
.input-wrap.plain input { padding-left: 15px; }
.role-picker { display: grid; gap: 9px; margin: 25px 0; padding: 0; border: 0; }
.role-picker legend { margin-bottom: 8px; font-size: .83rem; font-weight: 800; }
.role-picker label { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.role-picker input { width: 17px; height: 17px; accent-color: var(--ink); }
.role-picker span strong, .role-picker span small { display: block; }
.role-picker span small { color: var(--muted-text); font-size: .72rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.promotion-action-row { display: block; width: 100%; margin-top: 16px; }
.promotion-action-row > button { display: inline-flex; }
.promotion-status-form { display: block; margin-top: 10px; }
.promotion-status-form > button { display: inline-flex; }
.form-submit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 18px; min-width: 0; }
.form-submit-row > .remember,
.form-submit-row > .checkbox-field,
.form-submit-row > .check-row { min-width: 0; margin: 0; }
.form-submit-row > .button-primary,
.form-submit-row > .button-secondary { white-space: nowrap; }
/* Keep confirmation text and its action together on detail forms. The row
   remains compact on desktop and becomes a clear stacked action on phones. */
form > .remember + .button-primary,
form > .remember + .button-secondary,
form > .checkbox-field + .button-primary,
form > .checkbox-field + .button-secondary,
form > .check-row + .button-primary,
form > .check-row + .button-secondary { display: inline-flex; vertical-align: middle; margin-top: 14px; white-space: nowrap; flex: 0 0 auto; }
form > .remember:has(+ .button-primary),
form > .remember:has(+ .button-secondary),
form > .checkbox-field:has(+ .button-primary),
form > .checkbox-field:has(+ .button-secondary),
form > .check-row:has(+ .button-primary),
form > .check-row:has(+ .button-secondary) { display: inline-flex; width: auto; max-width: calc(100% - 180px); margin-bottom: 0; vertical-align: middle; }
.self-note { padding: 10px 12px; border-radius: 10px; color: #675d66; background: var(--surface-muted); font-size: .77rem; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role-card { display: flex; flex-direction: column; min-height: 290px; padding: 24px; border: 0; border-radius: 22px; background: var(--lavender); }
.role-card:nth-child(3n + 2) { background: var(--peach); }
.role-card:nth-child(3n + 3) { background: var(--mint); }
.role-card h2 { margin: 13px 0 0; color: var(--ink); font-size: 1.3rem; }
.role-card code { color: #8b828b; font-size: .75rem; }
.role-card p { color: var(--muted-text); font-size: .8rem; }
.role-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: auto 0 17px; }
.role-card dl div { padding: 10px; border-radius: 11px; background: rgba(255,252,245,.55); }
.role-card dt { color: #827982; font-size: .68rem; }
.role-card dd { margin: 2px 0 0; color: var(--ink); font-size: 1.2rem; font-weight: 900; }
.role-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; margin-bottom: 17px; }
.role-meta .wide { grid-column: 1 / -1; }
.role-meta textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 12px; outline: none; background: #fff; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.permission-group .panel-heading span { color: var(--muted-text); font-size: .72rem; }
.permission-list { display: grid; gap: 8px; }
.permission-list label { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--surface-muted); border-radius: 11px; cursor: pointer; }
.permission-list label:hover { border-color: var(--border); background: var(--surface); }
.permission-list input { width: 17px; height: 17px; accent-color: var(--ink); }
.permission-list strong, .permission-list small { display: block; }
.permission-list strong { font-size: .8rem; }
.permission-list small { color: var(--muted-text); font-size: .68rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-hours { margin-top: 18px; }
.pet-delete-panel { margin-top: 34px; }
.pet-delete-actions { display: flex; width: 100%; margin-top: 16px; }
.detail-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; }
.detail-list > div { min-width: 0; padding: 14px; border-radius: 14px; background: var(--surface-muted); }
.detail-list dt { color: var(--muted-text); font-size: .72rem; }
.detail-list dd { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 5px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 900; overflow-wrap: anywhere; }
.deposit-inline-edit, .deposit-summary-readonly { display: inline-grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--muted-text); background: var(--paper); }
.deposit-inline-edit:hover, .deposit-inline-edit:focus-visible { border-color: var(--ink); color: var(--ink); background: #fff; }
.deposit-inline-edit .ui-icon, .deposit-summary-readonly .ui-icon { width: 14px; height: 14px; }
.deposit-summary-readonly { border-color: transparent; color: var(--muted-text); background: transparent; cursor: help; }
.deposit-summary-panel .panel-heading { align-items: flex-start; }
.deposit-details-editor { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.deposit-details-editor > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); }
.deposit-details-editor > summary::after { content: '⌄'; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--lavender); transition: transform .2s ease; }
.deposit-details-editor[open] > summary { border-color: #b8a5d6; background: #fbf7ff; }
.deposit-details-editor[open] > summary::after { transform: rotate(180deg); }
.deposit-details-editor form { margin-top: 16px; padding: 16px; border-radius: 15px; background: var(--surface-muted); }
.deposit-details-editor form .help-text { margin: 0 0 13px; }
.deposit-details-editor summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 12px; outline: none; color: var(--text); background: #fff; }
.field select, .filter-bar select { width: 100%; padding: 8px 46px 8px 12px; border: 1px solid var(--border); border-radius: 12px; outline: none; color: var(--text); background-color: #fff; }
.field select, .filter-bar select { height: 44px; min-height: 44px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23242126' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px 18px; }
.field textarea:focus, .field select:focus, .filter-bar select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(241,167,209,.25); }
.color-field { display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.color-field input { width: 100%; min-height: 48px; padding: 5px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.help-text { display: block; margin-top: 6px; color: var(--muted-text); font-size: .72rem; }
.hours-list { display: grid; gap: 9px; }
.hours-row { display: grid; grid-template-columns: 100px 80px minmax(110px, 1fr) 30px minmax(110px, 1fr); align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; background: var(--surface-muted); }
.hours-row input[type="time"] { min-height: 40px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.auth-shell-compact { min-height: min(720px, calc(100vh - 40px)); }
.session-list { display: grid; gap: 10px; }
.session-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--surface-muted); border-radius: 14px; }
.session-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--ink); background: var(--mint); }
.session-row strong, .session-row span, .session-row small { display: block; }
.session-row span, .session-row small { margin-top: 3px; color: var(--muted-text); font-size: .74rem; }
.filter-grid { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(170px, .7fr) 150px 150px auto auto; }
.filter-grid input, .filter-grid select { min-width: 0; }
details summary { color: var(--ink); font-weight: 800; cursor: pointer; }
details pre { max-width: 440px; max-height: 220px; overflow: auto; padding: 10px; border-radius: 9px; color: #eee8ee; background: var(--ink); font-size: .7rem; }
.table-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.pagination-summary { margin: 0; color: var(--muted-text); font-size: .74rem; }
.pagination-controls, .pagination-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination-step, .pagination-number { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--paper); font-size: .76rem; white-space: nowrap; }
.pagination-number { padding: 8px; }
.pagination-step:hover, a.pagination-number:hover { border-color: var(--pink); background: var(--pink); }
.pagination-number.is-current { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.pagination-step.is-disabled { color: var(--muted-text); background: var(--surface-muted); }
.pagination-ellipsis { padding: 4px; color: var(--muted-text); }
.pagination-mobile-status { display: none; color: var(--muted-text); font-size: .7rem; text-align: center; }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.system-item { padding: 18px; border-radius: 16px; background: var(--surface-muted); }
.system-item:nth-child(6n + 1) { background: var(--gold); }
.system-item:nth-child(6n + 2) { background: var(--blue); }
.system-item:nth-child(6n + 3) { background: var(--lavender); }
.system-item span, .system-item strong { display: block; }
.system-item span { color: var(--muted-text); font-size: .72rem; }
.system-item strong { margin-top: 5px; color: var(--ink); overflow-wrap: anywhere; }
.health-badge { padding: 9px 13px; border-radius: 999px; color: #285b46; background: var(--mint); font-size: .76rem; font-weight: 900; }
.system-note { margin-top: 18px; border-left: 5px solid var(--yellow); }
.system-note p { margin-bottom: 0; color: var(--muted-text); font-size: .82rem; }
.customer-pets-section { margin-top: 24px; }
.customer-pets-section > .panel-heading h2 { margin: 0; font-size: 1.05rem; }
.customer-pet-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--paper); }
.customer-pet-history, .customer-pet-vaccines { min-width: 0; padding: 24px; }
.customer-pet-vaccines { border-left: 1px solid var(--border); background: #fffbf2; }
.pet-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pet-section-heading h3 { margin: 0; font-size: 1rem; }
.customer-pet-summary { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 22px; align-items: start; }
.customer-pet-summary > img, .customer-pet-photo { display: grid; place-items: center; width: 125px; height: 125px; border-radius: 16px; object-fit: cover; background: var(--lavender); }
.customer-pet-photo svg { width: 48px; height: 48px; }
.customer-pet-summary dl { margin: 0; }
.customer-pet-summary dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 9px; margin-bottom: 8px; }
.customer-pet-summary dt { color: var(--muted-text); font-size: .72rem; }
.customer-pet-summary dd { margin: 0; font-size: .78rem; font-weight: 600; }
.vaccine-check { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-muted); }
.vaccine-check > span { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; background: #31ad58; font-weight: 900; }
.vaccine-check strong, .vaccine-check small { display: block; }
.vaccine-check strong { font-size: .78rem; }
.vaccine-check small { margin-top: 3px; color: var(--muted-text); font-size: .65rem; }
.vaccine-expired > span, .vaccine-unknown > span { background: #e4483d; }
.vaccine-due_soon > span { background: #dda91e; }
.vaccine-empty { padding: 24px; border: 1px dashed var(--border); border-radius: 16px; text-align: center; }
.vaccine-empty p { margin: 0 0 14px; color: var(--muted-text); }
.vaccine-add-more { margin-top: 5px; }
.customer-booking-history { padding: 24px; overflow: hidden; background: #fffbf2; }
.customer-booking-history .panel-heading { margin-bottom: 4px; }
.customer-booking-history .panel-heading h3 { font-size: 1.05rem; }
.history-count { color: var(--muted-text); font-size: .72rem; }
.customer-history-wrap { margin-top: 15px; border-radius: 18px; background: var(--paper); box-shadow: 0 8px 28px rgba(36,33,38,.05); }
.customer-history-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.customer-history-table th { padding: 13px 16px; color: var(--muted-text); background: #eeeae2; font-size: .7rem; font-weight: 800; text-align: left; white-space: nowrap; }
.customer-history-table th:first-child { border-radius: 16px 0 0; }
.customer-history-table th:last-child { border-radius: 0 16px 0 0; text-align: center; }
.customer-history-table td { padding: 18px 16px; border-top: 1px solid rgba(36,33,38,.07); vertical-align: middle; font-size: .75rem; }
.customer-history-table tbody tr:first-child td { border-top: 0; }
.customer-history-table tbody tr:hover { background: rgba(241,167,209,.07); }
.customer-history-table td:first-child { min-width: 205px; }
.customer-history-table td:last-child { min-width: 150px; text-align: center; }
.history-time { white-space: nowrap; color: #544e54; }
.history-price { color: #ff3d3d; font-size: .9rem !important; font-weight: 900; white-space: nowrap; }
.history-payment, .history-status { display: inline-flex; align-items: center; justify-content: center; min-width: 104px; padding: 7px 13px; border-radius: 999px; white-space: nowrap; font-size: .68rem; font-weight: 800; }
.history-payment.payment-paid { color: #fff; background: #cfc8c4; }
.history-payment.payment-bond { color: #fff; background: #efd052; }
.history-payment.payment-unpaid { color: #fff; background: #ff4141; }
.history-payment.payment-refunded, .history-payment.payment-forfeited { color: #84312b; background: var(--peach); }
.history-status { color: #ef7426; background: #eee8e4; }
.history-status.status-in-progress { color: #12ac65; }
.history-status.status-done { color: #767076; }
.history-status.status-ready { color: #4a6798; background: var(--blue); }
.history-status.status-cancelled { color: #8a3029; opacity: .72; }
.history-open { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 78px; padding: 7px 13px; border: 0; border-radius: 999px; color: var(--ink); background: #eee8e4; font: inherit; font-weight: 800; cursor: pointer; }
.history-open:hover { background: var(--pink); }
.booking-charge-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 26px; color: var(--text); background: #fbf7ed; box-shadow: 0 28px 90px rgba(36,33,38,.3); }
.booking-charge-dialog::backdrop { background: rgba(29,26,31,.52); backdrop-filter: blur(5px); }
.booking-charge-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 20px; background: rgba(251,247,237,.96); border-bottom: 1px solid rgba(36,33,38,.08); backdrop-filter: blur(12px); }
.booking-charge-header h2 { margin: 7px 0 2px; font-size: 1.35rem; }
.booking-charge-header p { margin: 0; color: var(--muted-text); font-size: .75rem; }
.dialog-close { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--ink); background: #eee8e4; font-size: 1.4rem; cursor: pointer; }
.dialog-close:hover { background: var(--pink); }
.booking-charge-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 18px; padding: 24px 28px 28px; }
.booking-charge-picker, .booking-charge-summary { padding: 22px; border-radius: 20px; background: var(--paper); box-shadow: 0 8px 28px rgba(36,33,38,.05); }
.booking-charge-picker h3, .booking-charge-summary h3 { margin: 0 0 5px; font-size: 1rem; }
.popup-list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.popup-list-heading .help-text { margin-bottom: 0; }
.popup-add-button { flex: 0 0 auto; min-height: 36px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); background: #fff; font-weight: 800; cursor: pointer; }
.popup-add-button:hover { border-color: var(--ink); background: var(--pink); }
.popup-add-button:disabled { color: #aaa2aa; border-color: var(--border); background: var(--surface-muted); cursor: not-allowed; opacity: .7; }
.popup-limit-message { margin: 9px 2px 0; color: #9f2929; font-size: .7rem; font-weight: 700; }
.popup-service-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 13px 14px; border-radius: 13px; background: var(--surface); cursor: pointer; }
.popup-service-option:has(input:checked) { background: #eef8f2; box-shadow: inset 0 0 0 1px #acd5bd; }
.popup-service-option > input[type="checkbox"] { width: 18px; height: 18px; accent-color: #248a57; }
.popup-service-option strong { font-size: .76rem; white-space: nowrap; }
.popup-addon { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.popup-editable-row { grid-template-columns: 22px minmax(130px, 1fr) auto 34px; cursor: default; }
.popup-editable-row > input[type="text"], .popup-price-input input, .popup-discount input, .popup-discount select { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.popup-price-input { display: grid; grid-template-columns: 82px auto; align-items: center; gap: 6px; white-space: nowrap; }
.popup-remove-row { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #9f2929; background: #ffe0e0; font-size: 1.1rem; cursor: pointer; }
.popup-remove-row:hover { color: #fff; background: #c83c3c; }
.popup-empty { padding: 22px; border-radius: 13px; color: var(--muted-text); background: var(--surface); text-align: center; }
.popup-summary-list { min-height: 130px; margin-top: 17px; }
.popup-summary-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--surface-muted); font-size: .77rem; }
.popup-summary-list > div strong { white-space: nowrap; }
.popup-discount { display: grid; grid-template-columns: auto minmax(90px, 1fr) 130px; align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface-muted); }
.popup-discount label { font-size: .78rem; font-weight: 800; }
.popup-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; padding: 17px; border-radius: 15px; background: var(--yellow); }
.popup-total span { font-weight: 800; }
.popup-total strong { font-size: 1.35rem; }
.popup-payment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0 0; padding: 0; border: 0; }
.popup-payment legend { margin-bottom: 9px; font-size: .76rem; font-weight: 800; }
.popup-payment button { min-height: 45px; border: 1px solid var(--border); border-radius: 13px; color: var(--ink); background: #fff; font-weight: 800; cursor: pointer; }
.popup-payment button:hover, .popup-payment button.is-selected { border-color: var(--ink); color: #fff; background: var(--ink); }
.popup-continue { width: 100%; margin-top: 13px; }
.booking-charge-draft { margin-bottom: 18px; background: #fff9e9; box-shadow: inset 5px 0 0 var(--yellow); }
.booking-charge-draft .panel-heading { align-items: flex-start; }
.booking-charge-draft .panel-heading h2 { margin: 6px 0 0; font-size: 1.05rem; }
.booking-charge-draft-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 24px; margin-top: 18px; }
.booking-charge-draft-grid [data-charge-items] > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--surface-muted); }
.booking-charge-draft-grid dl { margin: 0; padding: 14px 17px; border-radius: 15px; background: var(--paper); }
.booking-charge-draft-grid dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.booking-charge-draft-grid dd { margin: 0; font-weight: 800; }
.booking-charge-draft-grid .draft-grand-total { margin-top: 7px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 1rem; }
.booking-service-profile-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.booking-service-profile-form .help-text { margin: 4px 0 14px; }
@media (max-width: 760px) { .booking-charge-layout { grid-template-columns: 1fr; padding: 16px; } .booking-charge-header { padding: 20px; } .popup-discount { grid-template-columns: 1fr 1fr; } .popup-discount label { grid-column: 1 / -1; } .popup-editable-row { grid-template-columns: 22px minmax(0, 1fr) 34px; } .popup-editable-row .popup-price-input { grid-column: 2 / 3; } .popup-editable-row .popup-remove-row { grid-column: 3; grid-row: 1; } }
@media (max-width: 760px) { .booking-charge-draft-grid { grid-template-columns: 1fr; } }

/* Soft cream canvas, flat pastel cards and black navigation from the reference. */
.logout-link { align-items: center; gap: 11px; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.workspace-label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-text); font-size: .76rem; }
.workspace-label > svg { box-sizing: content-box; padding: 8px; border-radius: 50%; color: var(--ink); background: var(--pink); }
.date-pill { padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-text); font-size: .7rem; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 254px; gap: 28px; align-items: start; }
.dashboard-main { display: flex; min-width: 0; flex-direction: column; }
.dashboard-greeting { margin: 6px 0 30px; }
.dashboard-greeting h1 { margin: 10px 0 6px; color: var(--ink); font-size: clamp(1.8rem, 2.8vw, 2.65rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.4; overflow-wrap: anywhere; }
.dashboard-greeting p { margin: 0; color: var(--muted-text); font-size: .84rem; }
.greeting-spark { color: #9675A4; font-size: .7em; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.section-heading h2 { margin: 0; font-size: .95rem; font-weight: 600; }
.period-pill { padding: 4px 15px; border-radius: 999px; color: var(--paper); background: var(--ink); font-size: .7rem; }
.summary-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.dashboard-ops-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-rows: 1.2fr .8fr; grid-template-areas: "remaining working available" "minis working available"; gap: 11px; min-height: 255px; }
.ops-card { position: relative; overflow: hidden; padding: 18px; border-radius: 18px; color: #17151a; }
.ops-card h3 { margin: 4px 0 0; font-size: .83rem; font-weight: 700; }
.ops-card p { margin: auto 0 0; font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ops-card small { font-size: .76rem; font-weight: 700; }
.ops-en { color: rgba(23,21,26,.55); font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ops-remaining { grid-area: remaining; display: flex; flex-direction: column; background: #ff7a19; }
.ops-working { grid-area: working; display: flex; flex-direction: column; background: #f5dc65; }
.ops-available { grid-area: available; display: flex; flex-direction: column; background: #b5fa61; }
.ops-all, .ops-done { align-self: stretch; padding: 11px 13px; }
.ops-all { grid-area: minis; width: calc(50% - 5px); background: #62dce3; }
.ops-done { grid-area: minis; width: calc(50% - 5px); margin-left: auto; background: #b8e5d1; }
.ops-all h3, .ops-done h3 { margin-top: 2px; font-size: .65rem; }
.ops-all p, .ops-done p { margin-top: 5px; font-size: 2rem; }
.ops-all .ops-en, .ops-done .ops-en { display: none; }
.dashboard-money-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin-top: 11px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); color: var(--muted-text); font-size: .68rem; }
.dashboard-money-note span { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-money-note svg { width: 15px; height: 15px; color: var(--ink); }
.dashboard-money-note strong { color: var(--ink); }
.dashboard-money-note small { margin-left: auto; }
.summary-card { position: relative; isolation: isolate; min-width: 0; min-height: 181px; padding: 21px; overflow: hidden; border-radius: 21px; }
.summary-yellow { background: var(--yellow); }
.summary-pink { background: var(--pink); }
.summary-mint { background: var(--mint); }
.summary-blue { background: var(--blue); }
.summary-card-label { display: flex; align-items: center; gap: 9px; }
.summary-card-label h3 { margin: 0; font-weight: 500; font-size: .85rem; }
.summary-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: rgba(255,252,245,.5); }
.summary-icon svg { width: 17px; height: 17px; }
.summary-value { margin: 14px 0 0; font-size: 2.35rem; font-weight: 500; line-height: 1.2; }
.summary-value span { font-size: .75rem; font-weight: 400; }
.summary-caption { margin: 8px 0 0; color: #48434A; font-size: .7rem; }
.card-decoration { position: absolute; z-index: -1; right: -22px; bottom: -18px; width: 128px; height: 128px; color: rgba(36,33,38,.1); fill: currentColor; stroke: none; transform: rotate(15deg); }
.summary-pink .card-decoration { right: -6px; top: 40px; bottom: auto; transform: rotate(-20deg); }
.summary-blue .card-decoration { transform: rotate(30deg); }
.card-orbit { position: absolute; z-index: -1; right: -25px; bottom: -50px; width: 150px; height: 150px; border: 24px solid rgba(36,33,38,.075); border-radius: 50%; }
.dashboard-bottom { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; margin-top: 20px; }
.dashboard-bottom-wide { grid-template-columns: 1fr; }
.dashboard-today-queue { overflow: hidden; }
.dashboard-queue-table { min-width: 800px; }
.dashboard-queue-table th { white-space: nowrap; }
.dashboard-queue-table td { vertical-align: middle; }
.dashboard-queue-table td:nth-child(4) { max-width: 220px; color: var(--muted-text); font-size: .72rem; }
.dashboard-queue-table small { display: block; margin-top: 3px; color: var(--muted-text); font-size: .65rem; }
.queue-time-link { display: block; color: inherit; }
.queue-time-link:hover strong { text-decoration: underline; }
.queue-status-arrived { background: rgba(255, 216, 181, .22); }
.queue-status-done { opacity: .68; }
.payment-state { display: inline-flex; padding: 5px 9px; border-radius: 999px; white-space: nowrap; color: #6b4d18; background: var(--yellow); font-size: .65rem; font-weight: 700; }
.payment-paid { color: #285b46; background: var(--mint); }
.payment-refunded, .payment-forfeited { color: #8a3029; background: var(--peach); }
.dashboard-outstanding { margin-top: 20px; }
.dashboard-outstanding .panel-heading { align-items: flex-end; }
.dashboard-outstanding .panel-heading h3 { margin: 4px 0 0; }
.dashboard-outstanding-table { min-width: 760px; }
.dashboard-outstanding-table td { vertical-align: middle; }
.dashboard-outstanding-table small { display: block; margin-top: 3px; color: var(--muted-text); font-size: .65rem; }
.outstanding-amount { color: #b8342c; font-weight: 800; }
.dashboard-daily-section { margin-top: 25px; padding: 23px; border-radius: 22px; background: #f6eddf; }
.dashboard-daily-first { order: 99; margin-top: 25px; margin-bottom: 0; }
.daily-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.daily-section-heading h2 { margin: 5px 0 13px; font-size: 1.05rem; }
.daily-section-heading h3 { margin: 0; font-size: .84rem; }
.daily-queue-card { border-radius: 15px; background: var(--paper); box-shadow: 0 7px 24px rgba(36,33,38,.045); }
.dashboard-reference-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.dashboard-reference-table th { padding: 12px 13px; color: var(--muted-text); font-size: .64rem; font-weight: 700; text-align: left; }
.dashboard-reference-table td { padding: 10px 13px; border-top: 1px solid rgba(36,33,38,.055); vertical-align: middle; font-size: .72rem; }
.dashboard-reference-table th:nth-child(2), .dashboard-reference-table td:nth-child(2), .dashboard-reference-table th:last-child, .dashboard-reference-table td:last-child { text-align: center; }
.dashboard-reference-table tr.queue-status-done { opacity: .48; }
.pet-queue-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; color: inherit; }
.pet-queue-cell img, .pet-queue-placeholder { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: var(--lavender); }
.pet-queue-placeholder svg { width: 20px; height: 20px; }
.pet-queue-cell strong, .pet-queue-cell small { display: block; }
.pet-queue-cell strong { font-size: .75rem; }
.pet-queue-cell small { margin-top: 2px; color: var(--muted-text); font-size: .6rem; }
.queue-state, .queue-payment { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 7px 11px; border-radius: 999px; white-space: nowrap; font-weight: 800; }
.queue-state { color: #ef7426; background: #eee8e4; }
.queue-state.state-in-process { color: #22b871; }
.state-arrived { color: #ec721d; }
.state-done { color: #777; }
.queue-status-arrived .queue-state, .queue-status-booked .queue-state, .queue-status-confirmed .queue-state { color: #ef7426; }
.queue-payment.payment-paid { color: #fff; background: #d8d1cd; }
.queue-payment.payment-bond { color: #fff; background: #f2d655; }
.queue-payment.payment-unpaid { color: #fff; background: #ff3d3d; }
.queue-price { color: #ff3d3d; font-size: .84rem !important; font-weight: 800; white-space: nowrap; }
.queue-price small { display: block; margin-top: 3px; color: #a53b36; font-size: .58rem; }
.queue-services span { display: block; margin-bottom: 3px; white-space: nowrap; }
.queue-services small { display: block; color: #ff3d3d; font-size: .58rem; }
.queue-grooming-cell { min-width: 165px; }
.queue-grooming-link { min-height: 36px; padding: 6px 13px; white-space: nowrap; }
.queue-no-job { color: var(--muted-text); font-size: .65rem; white-space: nowrap; }
.inventory-stock-submit { display: flex; align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 14px; }
.inventory-stock-submit .check-row { width: auto; max-width: 100%; margin: 0; }
.dashboard-bottom .panel { padding: 18px; }
.dashboard-bottom .panel-heading h3 { font-size: .87rem; font-weight: 600; }
.soft-label { color: var(--muted-text); font-size: .65rem; }
.queue-empty { display: flex; flex-direction: column; align-items: center; padding: 20px 5px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 18px; background: var(--lavender); }
.empty-icon svg { width: 28px; height: 28px; }
.queue-empty strong { font-size: .8rem; font-weight: 500; }
.queue-empty p { margin: 5px 0 0; color: var(--muted-text); font-size: .72rem; }
.shortcuts-panel { background: #F6EDDF; }
.shortcuts-panel .quick-action { padding: 8px 10px; background: var(--paper); font-size: .75rem; }
.shortcuts-panel .quick-action:hover { background: var(--lavender); }
.shortcut-arrow { width: 16px; margin-left: auto; }
.dashboard-rail { padding: 16px; border-radius: 24px; background: var(--surface-muted); }
.profile-card { text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 65px; height: 65px; margin: 5px auto 12px; border: 5px solid var(--paper); border-radius: 50%; color: var(--ink); background: var(--lavender); font-size: 1.5rem; }
.profile-card h2 { margin: 0; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-card > p { margin: 3px 0 17px; color: var(--muted-text); font-size: .7rem; }
.profile-link { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 999px; background: var(--paper); font-size: .72rem; }
.profile-link svg:last-child { width: 15px; margin-left: auto; }
.calendar-card { margin: 20px 0; padding: 16px 12px; border-radius: 19px; background: var(--paper); }
.calendar-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; }
.calendar-heading h2 { margin: 0; font-size: .8rem; font-weight: 600; }
.calendar-heading > span { padding: 3px 9px; border-radius: 999px; background: var(--pink); font-size: .65rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px 2px; text-align: center; font-size: .65rem; }
.calendar-weekday { margin-bottom: 4px; color: var(--muted-text); }
.calendar-day { display: grid; place-items: center; min-height: 25px; border-radius: 50%; }
.calendar-day.is-today { color: var(--ink); background: var(--pink); font-weight: 700; }
.calendar-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; color: var(--muted-text); font-size: .65rem; }
.calendar-note i { width: 6px; height: 6px; border-radius: 50%; background: #A85A8E; }
.care-note { position: relative; overflow: hidden; padding: 21px 17px; border-radius: 18px; background: var(--peach); }
.care-note .eyebrow { font-size: .53rem; letter-spacing: .04em; }
.care-note .eyebrow::before { display: none; }
.care-note h2 { position: relative; z-index: 1; margin: 12px 0; font-size: 1.2rem; font-weight: 500; line-height: 1.6; }
.care-note > svg { position: absolute; right: -14px; bottom: 16px; width: 85px; height: 85px; opacity: .1; transform: rotate(-15deg); }
.care-note p { margin: 0; font-size: .71rem; color: #514641; }
.promotion-note h2 { margin-bottom: 7px; }
.promotion-note p strong { color: var(--ink); font-size: .78rem; letter-spacing: .04em; }
.promotion-note small { position: relative; z-index: 1; display: block; margin-top: 9px; color: #6a5b54; font-size: .61rem; }
.promotion-note a { position: relative; z-index: 1; display: inline-flex; margin-top: 12px; color: var(--ink); font-size: .66rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.care-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.care-card { position: relative; min-height: 117px; padding: 17px; border-radius: 18px; background: var(--pink); }
.care-card:nth-child(2) { background: var(--gold); }
.care-card:nth-child(3) { background: var(--lavender); }
.care-card:nth-child(4) { background: var(--mint); }
.care-card > svg { box-sizing: content-box; width: 17px; height: 17px; margin-bottom: 10px; padding: 6px; border-radius: 50%; background: var(--paper); }
.care-card strong, .care-card small { display: block; }
.care-card strong { font-size: .8rem; font-weight: 500; }
.care-card small { margin-top: 3px; font-size: .64rem; color: #514B52; }
.cashier-source-table .amount-column { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cashier-source-table tbody td { vertical-align: middle; }
.cashier-source-table tfoot { border-top: 2px solid var(--border); }
.cashier-source-table tfoot th, .cashier-source-table tfoot td { padding-top: 16px; font-weight: 800; }
.cashier-direction { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.cashier-direction.is-in { color: #285B46; background: var(--mint); }
.cashier-direction.is-out { color: #8A3029; background: var(--peach); }
@media (max-width: 1190px) {
    .dashboard-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }
    .dashboard-bottom { grid-template-columns: 1fr; }
    .app-shell { grid-template-columns: 202px minmax(0, 1fr); }
    .summary-card { padding: 17px; }
    .dashboard-ops-grid { min-height: 190px; }
    .ops-card { padding: 14px; }
    .ops-card p { font-size: clamp(2.35rem, 4.6vw, 3.6rem); }
    .customer-pet-profile { grid-template-columns: 1fr; }
    .customer-pet-vaccines { border-top: 1px solid var(--border); border-left: 0; }
}
@media (max-width: 900px) {
    .auth-page { padding: 12px; }
    .auth-shell { grid-template-columns: 1fr; min-height: auto; border-radius: 22px; }
    .auth-visual { min-height: 390px; padding: 30px; }
    .visual-copy { margin-top: 32px; }
    .visual-copy h1 { font-size: 2.3rem; }
    .visual-footer { margin-top: 35px; }
    .auth-panel { grid-row: 1; padding: 42px 25px 48px; }
    /* Keep the collapsed header intrinsic; only the content row fills spare height. */
    .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; margin: 8px; padding: 8px; }
    .sidebar { min-height: auto; padding: 15px; }
    .sidebar-header { align-items: center; }
    .sidebar .brand { padding: 0; }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-menu { margin-top: 22px; }
    .sidebar[data-navigation-ready="true"] .sidebar-menu { display: none; }
    .sidebar[data-menu-open="true"] .sidebar-menu { display: flex; }
    .nav-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 8px 0 18px; }
    .nav-item { min-height: 44px; }
    .app-main { padding: 25px 18px 40px; }
    .form-grid, .settings-grid { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-grid { grid-template-columns: 1fr 1fr; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .system-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-layout { grid-template-columns: minmax(0, 1fr) 220px; }
    .sidebar .logout-link { width: auto; margin-top: 6px; }
}
@media (max-width: 650px) {
    .button-primary, .button-secondary, .button-link { box-sizing: border-box; flex: 0 0 100% !important; width: 100% !important; max-width: 100%; text-align: center; }
    .form-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .detail-list { grid-template-columns: 1fr; }
    .toast-region { position: fixed; left: 9px; right: 9px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; margin: 0; }
    .success-toast { padding: 14px; gap: 9px; }
    .table-pagination { flex-direction: column; align-items: stretch; gap: 12px; }
    .pagination-summary { text-align: center; }
    .pagination-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
    .pagination-pages { display: none; }
    .pagination-mobile-status { display: block; }
    .pagination-step { padding: 8px 10px; font-size: .7rem; }
    .page-header { align-items: stretch; flex-direction: column; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar input { width: 100%; min-width: 0; }
    .form-submit-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
    .form-submit-row > .button-primary,
    .form-submit-row > .button-secondary { width: 100%; }
    form > .remember:has(+ .button-primary),
    form > .remember:has(+ .button-secondary),
    form > .checkbox-field:has(+ .button-primary),
    form > .checkbox-field:has(+ .button-secondary),
    form > .check-row:has(+ .button-primary),
    form > .check-row:has(+ .button-secondary) { display: flex; width: 100%; max-width: none; }
    form > .remember + .button-primary,
    form > .remember + .button-secondary,
    form > .checkbox-field + .button-primary,
    form > .checkbox-field + .button-secondary,
    form > .check-row + .button-primary,
    form > .check-row + .button-secondary { width: 100%; }
    .role-grid, .permission-groups, .role-meta, .two-columns, .filter-grid, .system-grid { grid-template-columns: 1fr; }
    .role-meta .wide { grid-column: auto; }
    .topbar { align-items: flex-start; margin-bottom: 25px; }
    .topbar-actions .icon-button { display: none; }
    .hero-banner { align-items: flex-start; flex-direction: column; min-height: 210px; padding: 25px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid { grid-template-columns: 1fr; }
    .status { display: none; }
    .hours-row { grid-template-columns: 1fr 1fr; }
    .hours-row > span { display: none; }
    .session-row { grid-template-columns: 36px 1fr; }
    .session-row form, .session-row > .status-pill { grid-column: 2; justify-self: start; }
    .app-main { padding: 24px 10px; }
    .workspace-label { font-size: .65rem; }
    .date-pill { display: none; }
    .topbar-actions { gap: 7px; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-greeting .eyebrow { font-size: .56rem; }
    .dashboard-greeting h1 { font-size: 1.85rem; }
    .dashboard-greeting p { font-size: .77rem; }
    .summary-cards { gap: 10px; }
    .dashboard-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; grid-template-areas: "remaining working" "available available" "minis minis"; min-height: auto; }
    .ops-card { min-height: 135px; }
    .ops-available { min-height: 115px; }
    .ops-all, .ops-done { min-height: 92px; }
    .summary-card { padding: 14px 12px; min-height: 172px; border-radius: 17px; }
    .summary-card-label { align-items: flex-start; flex-direction: column; gap: 8px; }
    .summary-card-label h3 { font-size: .76rem; }
    .summary-value { font-size: 1.9rem; margin-top: 10px; }
    .summary-caption { font-size: .61rem; }
    .card-decoration { width: 85px; height: 85px; }
    .dashboard-rail { display: grid; grid-template-columns: 1fr; }
    .auth-page { padding: 8px; }
    .auth-shell { padding: 8px; gap: 0; }
    .auth-visual { padding: 24px; }
    .visual-copy h1 { font-size: 1.9rem; }
    .auth-panel { padding: 36px 18px; }
    .care-card { padding: 13px; }
    .care-card strong { font-size: .73rem; }
    .cashier-source-table thead { display: none; }
    .cashier-source-table, .cashier-source-table tbody, .cashier-source-table tr, .cashier-source-table td, .cashier-source-table tfoot, .cashier-source-table tfoot tr, .cashier-source-table tfoot th, .cashier-source-table tfoot td { display: block; }
    .cashier-source-table tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .cashier-source-table tbody tr:last-child { border-bottom: 0; }
    .cashier-source-table td, .cashier-source-table tfoot th, .cashier-source-table tfoot td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 0; text-align: right; }
    .cashier-source-table td::before { content: attr(data-label); color: var(--muted-text); font-size: .72rem; text-align: left; }
    .cashier-source-table tfoot { margin-top: 4px; }
    .cashier-source-table tfoot th { border: 0; }
    .dashboard-daily-section { padding: 15px 10px; }
    .daily-section-heading { align-items: flex-start; flex-direction: column; }
    .customer-pet-history, .customer-pet-vaccines { padding: 17px 13px; }
    .customer-pet-summary { grid-template-columns: 82px minmax(0, 1fr); gap: 13px; }
    .customer-pet-summary > img, .customer-pet-photo { width: 82px; height: 82px; }
    .customer-pet-summary dl > div { grid-template-columns: 1fr; gap: 1px; margin-bottom: 7px; }
}
/* Searchable customer, pet and staff selects */
.search-select { position: relative; min-width: 0; }
.search-select-native { position: absolute !important; inset: auto auto 0 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none; }
.search-select-input { box-sizing: border-box; width: 100%; min-height: 50px; padding: 0 48px 0 15px !important; border: 1px solid var(--border); border-radius: 13px; outline: none; color: var(--text); background: #fffdf8; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.search-select-input::placeholder { color: #8f868d; opacity: 1; }
.search-select-input:hover { border-color: #9d949a; background: #fff; }
.search-select-input:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(241,167,209,.24); }
.search-select-toggle { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; color: var(--ink); background: transparent; font: inherit; font-size: 1.1rem; cursor: pointer; }
.search-select-toggle:hover { background: var(--surface-muted); }
.search-select.is-open .search-select-toggle { transform: translateY(-50%) rotate(180deg); }
.search-select-options { position: absolute; z-index: 80; top: calc(100% + 7px); left: 0; width: 100%; max-height: 280px; overflow: auto; padding: 7px; border: 1px solid var(--border); border-radius: 16px; background: #fffdf8; box-shadow: 0 18px 46px rgba(36,33,38,.2); }
.search-select-options[hidden] { display: none; }
.search-select-option { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.search-select-option:hover, .search-select-option:focus { outline: none; background: var(--surface-muted); }
.search-select-option.is-selected { background: var(--pink); font-weight: 800; }
.search-select-empty { margin: 0; padding: 12px; color: var(--muted-text); font-size: .75rem; text-align: center; }
@media (max-width: 650px) {
    .search-select-options { max-height: 230px; }
    .module-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
    .module-tabs a { flex: 0 0 auto; width: auto; white-space: nowrap; }
}

/* Shared image preview for admin records, galleries and uploaded evidence. */
main img:not([data-image-lightbox="off"]) { cursor: zoom-in; }
.image-lightbox { position: fixed; z-index: 20000; inset: 0; display: grid; place-items: center; box-sizing: border-box; width: 100%; height: 100%; padding: 14px; overflow: auto; border: 0; color: #fff; background: rgba(17,15,19,.76); backdrop-filter: blur(7px); }
.image-lightbox[hidden] { display: none !important; }
.image-lightbox-shell { display: grid; grid-template-rows: auto minmax(0,1fr); width: min(1120px, calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); overflow: hidden; border-radius: 24px; background: #17151a; box-shadow: 0 30px 100px rgba(0,0,0,.48); }
.image-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 10px 12px 10px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.image-lightbox-header strong { min-width: 0; overflow: hidden; font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.image-lightbox-close { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font: inherit; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.image-lightbox-close:hover, .image-lightbox-close:focus-visible { outline: none; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.16); }
.image-lightbox-stage { display: grid; grid-template-rows: minmax(0,1fr) auto; min-height: 0; margin: 0; padding: 18px; }
.image-lightbox-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 145px); margin: auto; object-fit: contain; cursor: default; }
.image-lightbox-stage figcaption { min-height: 24px; padding: 12px 4px 0; color: rgba(255,255,255,.76); font-size: .74rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 650px) {
    .image-lightbox { padding: 8px; }
    .image-lightbox-shell { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
    .image-lightbox-header { min-height: 56px; padding-left: 16px; }
    .image-lightbox-stage { padding: 10px; }
    .image-lightbox-stage img { max-height: calc(100dvh - 125px); }
}

/* Public conversion flow: clear booking CTA, three-step guide and live slot picker. */
.public-navigation .public-booking-link { margin-left: 6px; padding-inline: 18px; border: 1px solid transparent; color: var(--ink); background: var(--pink); font-weight: 750; box-shadow: 0 8px 22px rgba(124,65,101,.14); }
.public-navigation .public-booking-link[aria-current="page"] { color: var(--ink); background: var(--pink); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240,185,218,.42), 0 8px 22px rgba(124,65,101,.14); }
.public-navigation .public-booking-link:not([aria-current]):hover { color: var(--ink); background: var(--rose); transform: translateY(-1px); }
.public-hero-booking { min-width: 170px; box-shadow: 0 14px 30px rgba(22,21,26,.16); }
.public-hero-assurance { display: flex; align-items: center; gap: 9px; margin: 16px 0 0; color: var(--muted-text); font-size: .78rem !important; line-height: 1.6 !important; }
.public-hero-assurance::before { content: '✓'; display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; color: #205c47; background: var(--mint); font-size: .72rem; font-weight: 800; }
.booking-guide-section { position: relative; padding: 38px; border: 1px solid var(--border); border-radius: 30px; background: linear-gradient(135deg, rgba(188,231,213,.48), rgba(255,252,245,.95) 60%, rgba(240,185,218,.25)); box-shadow: var(--shadow); overflow: hidden; }
.booking-guide-section::after { content: ''; position: absolute; right: -55px; top: -65px; width: 190px; height: 190px; border: 34px solid rgba(255,255,255,.4); border-radius: 50%; pointer-events: none; }
.booking-guide-section .public-section-heading { position: relative; z-index: 1; }
.booking-guide-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.booking-guide-grid li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 14px; min-width: 0; padding: 23px; border: 1px solid rgba(229,222,209,.8); border-radius: 22px; background: rgba(255,252,245,.88); }
.booking-guide-grid li:not(:last-child)::after { content: '→'; position: absolute; z-index: 2; right: -14px; top: 33px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: var(--paper); box-shadow: 0 5px 14px rgba(36,33,38,.08); font-weight: 800; }
.booking-guide-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--paper); background: var(--ink); font-size: 1.15rem; font-weight: 800; }
.booking-guide-grid h3 { margin: 1px 0 8px; font-size: 1rem; font-weight: 750; line-height: 1.5; }
.booking-guide-grid p { margin: 0; color: var(--muted-text); font-size: .8rem; line-height: 1.75; }
.booking-guide-action { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 22px; }
.booking-guide-action span { color: var(--muted-text); font-size: .76rem; }
.booking-guide-section.is-compact { margin-top: 24px; padding: 28px; }
.booking-guide-section.is-compact .public-section-heading { margin-bottom: 0; }
.booking-guide-section.is-compact .booking-guide-grid { margin-top: 20px; }
.booking-faq-section { padding: 8px 0 18px; }
.booking-faq-section.is-compact { max-width: 960px; margin: 28px auto 70px; }
.booking-faq-section .public-faq details[open] { border-color: #d8cdbf; box-shadow: 0 8px 24px rgba(36,33,38,.05); }
.booking-faq-section .public-faq summary { transition: background-color .18s ease; }
.booking-faq-section .public-faq summary:hover { background: rgba(240,235,226,.55); }
.booking-slot-field { margin-top: 20px; }
.booking-slot-status { display: flex; align-items: center; min-height: 54px; padding: 13px 16px; border: 1px dashed #cabfb2; border-radius: 16px; color: var(--muted-text); background: rgba(255,255,255,.42); font-size: .79rem; line-height: 1.6; }
.booking-slot-status[data-state="loading"]::before { content: ''; flex: 0 0 16px; width: 16px; height: 16px; margin-right: 10px; border: 2px solid #d7cec3; border-top-color: var(--ink); border-radius: 50%; animation: booking-slot-spin .8s linear infinite; }
.booking-slot-status[data-state="selected"] { border-style: solid; border-color: #8bc9b0; color: #245b47; background: #e8f7f0; font-weight: 700; }
.booking-slot-status[data-state="full"], .booking-slot-status[data-state="closed"], .booking-slot-status[data-state="schedule_unavailable"], .booking-slot-status[data-state="error"] { border-style: solid; border-color: #e4b29f; color: #7b3b2d; background: #fff1eb; }
.booking-slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 288px; margin-top: 12px; padding: 12px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.52); scrollbar-gutter: stable; }
.booking-slot-grid[hidden] { display: none; }
.booking-slot-button { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 54px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 14px; color: var(--ink); background: var(--paper); font: inherit; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.booking-slot-button strong { font-size: .91rem; }
.booking-slot-button small { color: var(--muted-text); font-size: .62rem; white-space: nowrap; }
.booking-slot-button:hover, .booking-slot-button:focus-visible { outline: none; border-color: #9e8f83; transform: translateY(-1px); }
.booking-slot-button.is-selected { border-color: var(--ink); color: var(--paper); background: var(--ink); box-shadow: 0 8px 18px rgba(22,21,26,.14); }
.booking-slot-button.is-selected small { color: rgba(255,255,255,.72); }
.booking-request-confirmation { display: flex; align-items: flex-start; gap: 18px; max-width: 800px; margin: 24px 0 18px; padding: clamp(22px, 4vw, 32px); border: 1px solid #b7dec9; border-radius: 22px; color: #164d36; background: linear-gradient(135deg, #e8f7ef, #f8fbf3); box-shadow: 0 16px 38px rgba(32,91,65,.09); }
.booking-request-confirmation-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: #fff; background: #217957; font-size: 1.2rem; font-weight: 900; }
.booking-request-confirmation .eyebrow { color: #397961; }
.booking-request-confirmation h2 { margin: 5px 0 8px; color: #143f2e; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.booking-request-confirmation p { margin: 0 0 10px; color: #3f6556; line-height: 1.7; }
.booking-request-confirmation strong { display: inline-block; padding: 7px 11px; border-radius: 9px; background: rgba(255,255,255,.7); font-size: .8rem; }
.line-booking-gate { max-width: 960px; margin: 20px 0; padding: 14px 18px; border: 1px solid #b8d9ca; border-radius: 16px; color: #275d48; background: #eaf7f1; font-size: .8rem; line-height: 1.6; }
.line-booking-gate[data-state="error"] { border-color: #e4b29f; color: #7b3b2d; background: #fff1eb; }
.line-booking-gate a { color: inherit; font-weight: 800; }
.booking-deposit-quote { margin-top: 20px; padding: 20px; border: 1px solid #d9c99c; border-radius: 20px; background: linear-gradient(135deg, #fff8de, #fffdf8); }
.booking-deposit-quote[hidden] { display: none; }
.booking-deposit-quote h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0; font-size: 1rem; }
.booking-deposit-quote h3 strong { font-size: 1.5rem; }
.booking-deposit-quote p { color: var(--muted-text); font-size: .78rem; line-height: 1.7; }
.booking-payment { max-width: 960px; }
.booking-payment-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.booking-payment-summary h2 { margin: 6px 0; font-size: clamp(2rem, 6vw, 3.4rem); }
.booking-payment-summary p { margin: 0; color: var(--muted-text); }
.booking-payment-qr { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 54px); padding: 32px 0; }
.booking-payment-qr img { display: block; width: min(100%, 360px); height: auto; margin: auto; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.booking-payment-qr h3 { margin: 0 0 10px; }
.booking-payment-qr ol { margin: 0; padding-left: 22px; color: var(--muted-text); line-height: 1.9; }
.booking-payment-countdown { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 13px 16px; border-radius: 14px; background: var(--surface-muted); }
.booking-payment-countdown strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.booking-payment-problem { margin: 28px 0; padding: 24px; border: 1px solid #e4b29f; border-radius: 20px; background: #fff1eb; }
@media (max-width: 700px) {
    .booking-payment-summary { flex-direction: column; }
    .booking-payment-qr { grid-template-columns: minmax(0, 1fr); }
    .booking-payment-qr img { width: min(88vw, 340px); }
}
@media (max-width: 640px) {
    .booking-request-confirmation { gap: 13px; }
    .booking-request-confirmation-icon { flex-basis: 38px; width: 38px; height: 38px; }
}
@keyframes booking-slot-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .public-navigation .public-booking-link { order: -1; margin: 8px 0 4px; }
    .booking-guide-grid { grid-template-columns: minmax(0, 1fr); }
    .booking-guide-grid li:not(:last-child)::after { content: '↓'; right: auto; top: auto; left: 33px; bottom: -14px; }
}
@media (max-width: 650px) {
    .public-hero-assurance { align-items: flex-start; }
    .booking-guide-section, .booking-guide-section.is-compact { padding: 24px 20px; border-radius: 24px; }
    .booking-guide-grid li { grid-template-columns: 42px minmax(0, 1fr); padding: 18px; }
    .booking-guide-number { width: 42px; height: 42px; border-radius: 14px; }
    .booking-guide-grid li:not(:last-child)::after { left: 25px; }
    .booking-guide-action { align-items: stretch; flex-direction: column; }
    .booking-guide-action .button-primary { justify-content: center; width: 100%; }
    .booking-faq-section { padding-top: 0; }
    .booking-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 268px; padding: 9px; }
    .booking-slot-button { align-items: flex-start; flex-direction: column; justify-content: center; gap: 1px; }
    .booking-pet-profile-card { padding: 15px; }
    .booking-pet-profile-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .booking-pet-profile-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .booking-pet-age { grid-column: auto; }
    .booking-service-multiselect summary { min-height: 60px; padding: 12px; }
    .booking-service-multiselect summary > span:first-child { white-space: normal; }
    .booking-service-count { display: none; }
}
