/* Customer portal — the Rally look: navy sidebar, purple accent, tinted cards. Loads after styles.css. */
:root { --pp-purple: #6950e8; --pp-purple-soft: #b7aafb; --pp-tint: #f1eefc; --pp-line: #e4e0f5; }
.pp-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 0px); background: #f7f5ff; }
.pp-side { background: var(--navy); color: #fff; padding: 1.4rem 1.1rem; display: flex; flex-direction: column; gap: 1.2rem; }
.pp-side .brand { color: #fff; }
.pp-side .brand strong, .pp-side .brand small { color: #fff; }
.pp-side nav a, .pp-side nav button { display: block; width: 100%; text-align: left; padding: .6rem .75rem; margin: .15rem 0; border: 0; border-radius: 9px; background: transparent; color: #dfe4f7; font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer; }
.pp-side nav a:hover, .pp-side nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.pp-side nav a[aria-current="page"] { background: var(--pp-purple); color: #fff; }
.pp-side .pp-eyebrow { color: var(--pp-purple-soft); }
.pp-side footer { margin-top: auto; font-size: .78rem; color: #aeb7d6; }
.pp-main { padding: 2rem clamp(1rem, 4vw, 3rem); }
.pp-main h1 { font-family: "Source Serif 4", Georgia, serif; color: var(--navy); font-size: 2rem; margin: .2rem 0 .3rem; font-weight: 500; letter-spacing: -.02em; }
.pp-lede { color: #5b6473; margin: 0 0 1.6rem; }
.pp-eyebrow { color: var(--pp-purple); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .3rem; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; align-items: start; }
.pp-card { background: #fff; border: 1px solid var(--pp-line); border-radius: 16px; padding: 1.2rem 1.3rem; box-shadow: 0 6px 20px rgba(41, 28, 120, .06); }
.pp-card h3 { margin: 0; color: var(--navy); font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 1.35rem; }
.pp-pet { background: linear-gradient(180deg, var(--pp-tint), #fff 60%); }
.pp-card-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .8rem; }
.pp-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--pp-purple); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; flex: none; }
img.pp-avatar { object-fit: cover; }
.pp-sub { margin: .1rem 0 0; color: #5b6473; font-size: .92rem; }
.pp-notes { margin: .2rem 0 .8rem; color: var(--ink); font-size: .95rem; }
.pp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem .9rem; margin: .6rem 0 0; }
.pp-facts dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #7a8394; }
.pp-facts dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; word-break: break-word; }
.pp-btn { display: inline-block; margin-top: .9rem; padding: .55rem .95rem; border-radius: 9px; border: 1px solid var(--pp-purple); background: var(--pp-purple); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.pp-btn.ghost { background: transparent; color: var(--pp-purple); }
.pp-btn.ghost:hover { background: var(--pp-tint); }
.pp-editor { margin-top: 1.2rem; }
.pp-editor form { display: grid; gap: .5rem; max-width: 520px; }
.pp-editor input, .pp-editor select, .pp-editor textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #cfd5e2; border-radius: 9px; font: inherit; }
.pp-editor .pp-actions { display: flex; gap: .6rem; }
.pp-empty { color: #7a8394; }
.pp-customer { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--pp-line); }
.pp-customer .pp-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.pp-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pp-toolbar input { padding: .6rem .8rem; border: 1px solid #cfd5e2; border-radius: 9px; font: inherit; min-width: 260px; }
.pp-count { color: #5b6473; font-weight: 600; }
.account-form select { width: 100%; padding: .6rem .7rem; border: 1px solid #cfd5e2; border-radius: 9px; font: inherit; background: #fff; }
.account-form .form-two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.form-section { margin: 1rem 0 .3rem; color: var(--pp-purple); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 760px) { .pp-shell { grid-template-columns: 1fr; } .pp-side { flex-direction: row; flex-wrap: wrap; align-items: center; } .pp-side footer { display: none; } .pp-customer { grid-template-columns: 1fr; } .account-form .form-two { grid-template-columns: 1fr; } }

/* Admin grid: customers fill the width in columns instead of one wide row each. */
[data-portal="admin"] [data-customers] { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; align-items: start; }
.pp-customer { display: grid; grid-template-columns: 1fr; gap: .7rem; padding: 0; border: 0; }
.pp-customer .pp-owner { padding: 1rem 1.1rem; }
.pp-customer .pp-pet { padding: 1rem 1.1rem; }
.pp-facts a { color: var(--pp-purple); text-decoration: none; }
.pp-facts a:hover { text-decoration: underline; }
.pp-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; }
.pp-tools .pp-btn { margin-top: 0; }
.pp-upload { cursor: pointer; }
.pp-status { font-size: .82rem; color: #5b6473; }
.pp-status.ok { color: #1f8a4c; }
.pp-status.error { color: #a13b3b; }
.pp-diary-form { display: grid; gap: .5rem; margin-top: .7rem; }
.pp-diary-form textarea, .pp-diary-form select { width: 100%; padding: .55rem .65rem; border: 1px solid #cfd5e2; border-radius: 9px; font: inherit; }
.pp-attach { font-size: .82rem; color: #5b6473; display: grid; gap: .25rem; }
.pp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin-top: .8rem; }
.pp-photo { position: relative; margin: 0; }
.pp-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.pp-photo figcaption { font-size: .72rem; color: #5b6473; margin-top: .2rem; }
.pp-x { position: absolute; top: .25rem; right: .25rem; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(27,51,84,.75); color: #fff; font-size: .95rem; line-height: 1; cursor: pointer; }
.pp-timeline { list-style: none; margin: .9rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--pp-purple-soft); }
.pp-timeline li { position: relative; margin: 0 0 .9rem; }
.pp-timeline li::before { content: ""; position: absolute; left: -1.35rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--pp-purple); }
.pp-timeline time { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #7a8394; }
.pp-timeline p { margin: .15rem 0 .3rem; color: var(--ink); }
.pp-timeline img { max-width: 260px; width: 100%; border-radius: 10px; display: block; margin: .3rem 0; }
.pp-timeline small { color: #7a8394; }
.pp-link { background: none; border: 0; padding: 0; color: var(--pp-purple); font: inherit; font-size: inherit; cursor: pointer; text-decoration: underline; }
.pp-diary-host { display: grid; gap: 1rem; margin-top: 1.2rem; }
.pp-diary h3 { margin-bottom: .3rem; }
@media (max-width: 760px) { [data-portal="admin"] [data-customers] { grid-template-columns: 1fr; } }

/* The hidden attribute must beat the display rules above (diary forms start closed; the admin link only shows for admins). */
.pp-shell [hidden], .pp-diary-form[hidden] { display: none !important; }
.pp-care { display: grid; gap: .45rem; margin: .5rem 0 .2rem; padding: .7rem .8rem; background: #f7f5ff; border-radius: 10px; }
.pp-care dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #7a8394; }
.pp-care dd { margin: 0; color: var(--ink); font-size: .92rem; white-space: pre-line; }
.pp-editor .form-section { margin: .6rem 0 0; }

/* ===== Customer dashboard (account.html main area only). Everything below is scoped to
   [data-portal="account"] .pp-main / .pp-dash so the sidebar and the admin page are untouched. ===== */
[data-portal="account"] .pp-main { background: #f7f4ee; padding: 2.4rem clamp(1.1rem, 4vw, 3.5rem) 3.5rem; min-width: 0; }
.pp-dash { max-width: 1400px; margin: 0 auto; display: grid; gap: 1.4rem; min-width: 0; }
.pp-dash h1, .pp-dash h2, .pp-dash h3, .pp-modal h2 { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; color: var(--navy); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.pp-dash .pp-kicker, .pp-kicker { margin: 0 0 .35rem; color: #33456a; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pp-dash-head h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.05; margin: .1rem 0 .45rem; letter-spacing: -.02em; }
.pp-dash-sub { margin: 0; color: #4a5680; font-size: 1.12rem; }

/* Row 1 */
.pp-row1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.pp-pets-card { background: #fff; border: 1px solid var(--pp-line); border-radius: 12px; padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pp-pets-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pp-pets-head h2 { font-size: 1.7rem; display: inline-flex; align-items: center; gap: .6rem; }
.pp-pill { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; border-radius: 7px; background: #ece7fb; color: var(--navy); font-family: "Manrope", "Segoe UI", sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: 0; }

/* Buttons */
.pp-primary, .pp-secondary, .pp-danger { display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1.05rem; border-radius: 9px; border: 1px solid transparent; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.pp-primary { background: var(--pp-purple); border-color: var(--pp-purple); color: #fff; }
.pp-primary:hover { background: #5a41d8; border-color: #5a41d8; }
.pp-secondary { background: #fff; border-color: #cfd5e2; color: var(--navy); }
.pp-secondary:hover { background: #f4f2fc; }
.pp-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.pp-danger:hover { background: #9a1f18; }
.pp-primary svg, .pp-secondary svg { width: 1.05em; height: 1.05em; flex: none; }
.pp-primary[disabled], .pp-danger[disabled] { opacity: .6; cursor: progress; }
.pp-textlink { background: none; border: 0; padding: .4rem .2rem; color: var(--navy); font: inherit; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pp-textlink:hover { color: var(--pp-purple); }
.pp-dash :is(button, a, summary, [tabindex]):focus-visible, .pp-modal :is(button, a, input, select, textarea, summary):focus-visible, .pp-lightbox button:focus-visible { outline: 3px solid rgba(105, 80, 232, .55); outline-offset: 2px; }

/* Pet chips */
.pp-chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.pp-chip { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; max-width: 100%; padding: .55rem 1rem .55rem .55rem; border-radius: 12px; border: 1px solid var(--pp-line); background: #fff; color: var(--navy); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: background .15s, border-color .15s; }
.pp-chip:hover { background: #faf9fe; border-color: #cbc2f3; }
.pp-chip[aria-selected="true"] { border-color: var(--pp-purple); box-shadow: inset 0 0 0 1px var(--pp-purple); background: #f6f3fe; }
.pp-chip-thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; background: #ece7fb; display: grid; place-items: center; color: var(--pp-purple); font-weight: 700; font-size: 1.15rem; }
.pp-chip-text { display: grid; min-width: 0; line-height: 1.25; }
.pp-chip-text strong { font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-chip-text span { font-size: .9rem; color: #5b6570; }
.pp-chip svg { width: 1rem; height: 1rem; margin-left: .6rem; color: var(--pp-purple); flex: none; }

/* Profile panel */
.pp-profile { background: #f3effc; border-radius: 12px; padding: 1.2rem; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.4rem; align-items: start; min-width: 0; }
.pp-profile-photo { width: 200px; height: 200px; border-radius: 12px; object-fit: cover; display: block; background: #e2dbf8; }
.pp-profile-photo.is-placeholder { display: grid; place-items: center; color: var(--pp-purple); font-family: "Source Serif 4", Georgia, serif; font-size: 4rem; font-weight: 600; }
.pp-profile h3 { font-size: 2rem; line-height: 1.1; margin: 0 0 .2rem; }
.pp-profile-meta { margin: 0 0 1rem; color: #33456a; font-size: 1.05rem; }
.pp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.2rem; margin: 0 0 .9rem; }
.pp-two > div + div { border-left: 1px solid #d4cbf0; padding-left: 1.2rem; }
.pp-label { margin: 0 0 .15rem; color: #5b6570; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pp-value { margin: 0; color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.pp-value.is-empty { color: #6b7385; font-style: italic; }
.pp-profile-notes { margin: 0 0 1.1rem; color: var(--ink); font-size: 1.02rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.pp-profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; }
.pp-empty-state { background: #f3effc; border-radius: 12px; padding: 2rem 1.4rem; text-align: center; display: grid; justify-items: center; gap: .7rem; }
.pp-empty-state h3 { font-size: 1.5rem; }
.pp-empty-state p { margin: 0; color: #4a5680; max-width: 36ch; }

/* About you */
.pp-about { background: #e9f0fb; border: 1px solid #d6e2f5; border-radius: 12px; padding: 1.4rem; display: flex; flex-direction: column; min-width: 0; }
.pp-about-head { display: flex; align-items: center; gap: 1.1rem; }
.pp-owner-avatar { width: 74px; height: 74px; border-radius: 50%; background: #cfdff5; color: var(--navy); display: grid; place-items: center; flex: none; }
.pp-owner-avatar svg { width: 40px; height: 40px; }
.pp-about-head h2 { font-size: 1.9rem; line-height: 1.1; overflow-wrap: anywhere; }
.pp-about-sub { margin: .2rem 0 0; color: #33456a; font-size: 1.02rem; }
.pp-rule { border: 0; border-top: 1px solid #cfdcf0; margin: 1.1rem 0 1rem; }
.pp-details { margin: 0 0 1.3rem; display: grid; gap: 1rem; }
.pp-details dt { margin: 0 0 .15rem; color: #5b6570; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pp-details dd { margin: 0; color: var(--ink); font-size: 1.05rem; overflow-wrap: anywhere; white-space: pre-line; }
.pp-details dd.is-empty { color: #6b7385; font-style: italic; }
.pp-about .pp-primary { align-self: flex-start; margin-top: auto; }

/* Photo diary */
.pp-diary-card { background: #fff; border: 1px solid var(--pp-line); border-radius: 12px; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.pp-diary-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pp-diary-head h2 { font-size: 1.7rem; overflow-wrap: anywhere; }
.pp-diary-note { margin: 0; color: #5b6570; font-size: .9rem; }
.pp-diary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.pp-photo-card { margin: 0; background: #fff; border: 1px solid var(--pp-line); border-radius: 12px; overflow: hidden; display: grid; }
.pp-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: #ece7fb; cursor: zoom-in; }
.pp-photo-btn img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pp-photo-card figcaption { padding: .8rem 1rem 1rem; display: grid; gap: .2rem; }
.pp-photo-card time { color: #5b6570; font-size: .88rem; }
.pp-photo-card strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.pp-diary-more { display: flex; justify-content: center; margin-top: 1.2rem; }
.pp-diary-empty { margin: .4rem 0 0; padding: 1.6rem 1rem; border-radius: 12px; background: #f7f5ff; color: #4a5680; text-align: center; }

/* Modals */
.pp-modal { border: 0; border-radius: 14px; padding: 0; width: min(92vw, 560px); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(18, 36, 60, .28); }
.pp-modal-sm { width: min(92vw, 440px); }
.pp-modal::backdrop, .pp-lightbox::backdrop { background: rgba(18, 36, 60, .55); }
.pp-form { display: grid; gap: 1rem; padding: 1.4rem 1.5rem 1.5rem; }
.pp-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pp-modal-head h2 { font-size: 1.55rem; }
.pp-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d9d4ef; background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.pp-close:hover { background: #f4f2fc; }
.pp-fields { display: grid; gap: .85rem; }
.pp-fields label { display: grid; gap: .3rem; color: var(--navy); font-size: .9rem; font-weight: 600; }
.pp-fields input, .pp-fields select, .pp-fields textarea { width: 100%; padding: .65rem .75rem; border: 1px solid #cfd5e2; border-radius: 9px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.pp-fields input[disabled] { background: #f1f3f7; color: #5b6570; }
.pp-fields :is(input, select, textarea):focus { outline: 3px solid rgba(105, 80, 232, .35); outline-offset: 1px; border-color: var(--pp-purple); }
.pp-fields :is(input, select, textarea)[aria-invalid="true"] { border-color: #b3261e; }
.pp-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pp-more summary { cursor: pointer; color: var(--pp-purple); font-weight: 600; font-size: .92rem; padding: .2rem 0; }
.pp-more[open] summary { margin-bottom: .6rem; }
.pp-more label + label { margin-top: .7rem; }
.pp-hint { margin: -.4rem 0 0; color: #5b6570; font-size: .82rem; }
.pp-hint a { color: var(--pp-purple); }
.pp-form-error { margin: 0; min-height: 1.2em; color: #b3261e; font-size: .9rem; }
.pp-form-error:empty { display: none; }
.pp-modal-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.pp-confirm-text { margin: 0; color: var(--ink); line-height: 1.55; }
.pp-lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 96vh; overflow: visible; }
.pp-lightbox figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; display: grid; }
.pp-lightbox img { display: block; max-width: min(96vw, 1100px); max-height: 78vh; width: auto; height: auto; object-fit: contain; margin: 0 auto; background: #0f172a; }
.pp-lightbox figcaption { padding: .8rem 1.1rem 1rem; display: grid; gap: .15rem; }
.pp-lightbox figcaption span { color: #5b6570; font-size: .88rem; }
.pp-lightbox figcaption strong { color: var(--ink); font-weight: 600; }
.pp-lightbox-close { position: absolute; top: -14px; right: -14px; z-index: 1; }

/* Profile photo controls */
.pp-photo-block { display: grid; gap: .5rem; width: 200px; }
.pp-photo-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .9rem; }
.pp-photo-change { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 8px; border: 1px solid #cfc6f0; background: #fff; color: var(--navy); font-size: .88rem; font-weight: 600; cursor: pointer; }
.pp-photo-change:hover { background: #f6f3fe; border-color: var(--pp-purple); }
.pp-photo-change:focus-within { outline: 3px solid rgba(105, 80, 232, .55); outline-offset: 2px; }
.pp-photo-change svg { width: 1.05em; height: 1.05em; }
.pp-photo-remove { font-size: .88rem; padding: .2rem 0; }
.pp-photo-status { margin: 0; min-height: 1.1em; font-size: .82rem; color: #5b6570; }
.pp-photo-status.ok { color: #1f7a45; }
.pp-photo-status.error { color: #b3261e; }

/* Responsive */
@media (max-width: 1024px) {
  .pp-row1 { grid-template-columns: 1fr; }
  .pp-diary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  [data-portal="account"] .pp-main { padding: 1.6rem 1rem 2.4rem; }
  .pp-profile { grid-template-columns: 1fr; padding: 1rem; }
  .pp-photo-block { width: 100%; }
  .pp-profile-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .pp-two { grid-template-columns: 1fr; gap: .8rem; }
  .pp-two > div + div { border-left: 0; padding-left: 0; border-top: 1px solid #d4cbf0; padding-top: .8rem; }
  .pp-diary-grid { grid-template-columns: 1fr; }
  .pp-chip { flex: 1 1 100%; }
  .pp-two-fields { grid-template-columns: 1fr; }
  .pp-lightbox-close { top: 8px; right: 8px; }
}

/* ===== Owner details + care details (additive rows/fields in the same style) ===== */
.pp-owner-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pp-owner-avatar-sm { width: 56px; height: 56px; }
.pp-owner-avatar-sm svg { width: 30px; height: 30px; }
.pp-details dd .pp-line2 { display: block; color: #33456a; font-size: .95rem; margin-top: .1rem; }
.pp-pill-wa { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: #e3f5e9; color: #1f7a45; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.pp-care-head { margin: 1rem 0 .5rem; padding-top: .8rem; border-top: 1px solid #d4cbf0; }
.pp-care-row { margin: 0 0 .8rem; }
.pp-form-heading { margin: .4rem 0 0; font-family: "Manrope", "Segoe UI", sans-serif; color: #33456a; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pp-form-heading:first-child { margin-top: 0; }
.pp-check { display: flex !important; flex-direction: row; align-items: center; gap: .5rem; font-weight: 500 !important; color: var(--ink) !important; margin-top: -.3rem; }
.pp-check input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--pp-purple); }
.pp-two-fields-ext { grid-template-columns: 2fr 1fr; }
.pp-photo-field { display: flex; align-items: center; gap: 1rem; }
.pp-photo-field .pp-photo-tools { flex-direction: column; align-items: flex-start; gap: .3rem; }
/* Admin read-only rows (no restructure: same .pp-facts / .pp-care lists, one emphasised row) */
.pp-owner .pp-owner-head { display: flex; align-items: center; gap: .8rem; }
.pp-owner .pp-owner-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.pp-emergency { margin: .7rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: #fff4e5; border-left: 4px solid #e0862a; }
.pp-emergency dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #8a4b0f; font-weight: 700; }
.pp-emergency dd { margin: .1rem 0 0; color: var(--ink); font-weight: 600; }
.pp-emergency dd small { display: block; font-weight: 500; color: #5b6570; }
@media (max-width: 640px) { .pp-two-fields-ext { grid-template-columns: 1fr; } }

/* Pet card: the customer already knows the details, so list the fields with a tick or a dash. */
.pp-label-hint { font-weight: 400; color: #5b6570; text-transform: none; letter-spacing: 0; font-size: .82rem; }
.pp-profile-age { margin: 0 0 1rem; color: #33456a; font-size: 1.05rem; }
.pp-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.6rem; margin: 0 0 1.1rem; padding-top: .9rem; border-top: 1px solid #d4cbf0; }
.pp-checklist div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .32rem 0; border-bottom: 1px solid rgba(212, 203, 240, .55); }
.pp-checklist dt { color: #5b6570; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pp-checklist dd { margin: 0; font-size: 1rem; line-height: 1; flex: none; }
.pp-checklist .yes { color: #1f7a45; font-weight: 700; }
.pp-checklist .no { color: #6b7385; }
@media (max-width: 640px) { .pp-checklist { grid-template-columns: 1fr; } }

/* Phone: the account sidebar collapses to a slim bar with a burger, matching the public site's menu. */
.pp-burger { display: none; }
@media (max-width: 760px) {
  .pp-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem 1rem; }
  .pp-side .brand { flex: 1 1 auto; min-width: 0; flex-direction: row; text-align: left; gap: .6rem; }
  .pp-side .brand img { width: 44px; height: 44px; }
  .pp-side .brand strong { font-size: 1rem; }
  .pp-burger { display: block; margin-left: auto; flex: none; background: transparent; border-color: rgba(255, 255, 255, .38); color: #fff; }
  .pp-burger span { background: #fff; }
  .pp-burger:hover { background: rgba(255, 255, 255, .1); }
  .pp-side.pp-nav-open .pp-burger { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
  .pp-side nav { display: none; flex-basis: 100%; }
  .pp-side.pp-nav-open nav { display: block; }
}


/* Standalone booking entry point in the customer portal. */
.pp-booking-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 30px;margin:0 0 24px;border:1px solid #cbdaca;border-radius:18px;background:#edf3e8}.pp-booking-cta h2{font-family:'Source Serif 4',serif;font-size:27px;margin:5px 0 8px}.pp-booking-cta p{margin:0;font-size:13px;color:#526b5d}.pp-booking-cta .pp-primary{white-space:nowrap;text-decoration:none}@media(max-width:600px){.pp-booking-cta{align-items:flex-start;flex-direction:column;padding:22px}}

/* Separate, prominent owner permissions; no preselected photo consent. */
.pp-preferences { margin: 1.5rem 0; padding: 1.4rem; border: 2px solid #b8a5e9; border-radius: 14px; background: #faf8ff; }
.pp-preferences h2 { margin: .2rem 0 .6rem; font-size: 1.7rem; }
.pp-preferences > p { max-width: 75ch; }
.pp-preferences fieldset { margin: 1rem 0; padding: 0; border: 0; min-width: 0; }
.pp-preferences legend { font-weight: 700; margin-bottom: .5rem; }
.pp-preference { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; margin-bottom: .7rem; background: #fff; border: 1px solid #ded5ee; border-radius: 10px; cursor: pointer; }
.pp-preference input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: 0 0 auto; accent-color: #6950e8; }
.pp-preference strong, .pp-preference span span { display: block; }
.pp-preference span span { margin-top: .4rem; font-size: .92rem; line-height: 1.6; color: #485363; }
.pp-preference:focus-within { outline: 3px solid #6950e8; outline-offset: 2px; }
.pp-preferences button { min-height: 44px; }
@media (max-width: 500px) { .pp-preferences { padding: 1rem; } .pp-preference { padding: .8rem; } }

.pp-btn.pp-btn-danger{background:#9b2c2c;color:#fff;border-color:#9b2c2c}.pp-delete-customer{display:block;margin-top:.6rem;color:#9b2c2c!important}#delete-customer-dialog{max-width:560px}#delete-customer-warning{line-height:1.65}#delete-customer-status{overflow-wrap:anywhere}
/* Pet photo drop zone at the top of the add / edit pet form */
.pp-pet-photo-field { display: grid; gap: .4rem; margin-bottom: .2rem; }
.pp-photo-field-label { color: var(--navy); font-size: .9rem; font-weight: 600; }
.pp-fields label.pp-dropzone { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 2px dashed #b9acee; border-radius: 14px; background: #faf8ff; cursor: pointer; font-weight: 400; transition: background-color .15s, border-color .15s; }
.pp-fields label.pp-dropzone:hover, .pp-fields label.pp-dropzone.is-dragover { border-color: var(--pp-purple); background: #f1ecff; }
.pp-fields label.pp-dropzone.is-dragover { border-style: solid; }
.pp-dropzone:focus-within { outline: 3px solid rgba(105, 80, 232, .55); outline-offset: 2px; }
.pp-dropzone-preview { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #e6defc; color: var(--pp-purple); }
.pp-dropzone-preview svg { width: 34px; height: 34px; }
.pp-dropzone-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-dropzone-text { display: grid; gap: .15rem; color: var(--navy); font-size: .92rem; }
.pp-dropzone-text strong { font-size: 1rem; font-weight: 700; }
.pp-dropzone-link { color: var(--pp-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pp-dropzone-text small { color: #5b6570; font-size: .8rem; }
.pp-dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
