/* AURORA TOKENS v4.1: loaded after aurora.css and redesign-v4.css.
   Source: redesign/DesignFiles/blazor-handoff/wwwroot/css/aurora-tokens.css
   Adds the canonical neutral/jade/Kenya brand tokens, shadow and motion scales,
   the five .rx-* components, the brand lockup, and the v4.1 surface rule. */

:root {
  /* Neutral scale (warm) */
  --n-0:   #FFFFFF;
  --n-50:  #F4F3EF;
  --n-100: #E9E7E0;
  --n-200: #D9D5CB;
  --n-300: #BCB6A8;
  --n-400: #716B5D;
  --n-500: #6E6757;
  --n-600: #514B3E;
  --n-700: #3A3529;
  --n-800: #26221A;
  --n-900: #161310;

  /* Brand + semantic */
  --jade-50:  #EAF1ED; --jade-100: #CFE0D6; --jade-200: #A6C7B3;
  --jade-300: #6E9D7F; --jade-500: #2F5D52; --jade-700: #21443C; --jade-900: #142A25;
  --success: #1F7A47;
  --emerg:   #BF3F2A;  --emerg-tint: #F7E4DF;   /* emergency ONLY */
  --kvb:     #2C5F8D;  --kvb-tint:  #E5EDF5;    /* vet credential blue */
  --dvs:     #2A7D4F;  --dvs-tint:  #E4F1EA;    /* Dept. of Veterinary Services */
  --kmc:     #8A5A1F;  --kmc-tint:  #F4EADA;    /* Kenya Meat Commission */
  --mpesa:   #00A651;  --mpesa-deep: #007A3B; --mpesa-tint: #E4F4EB;
  --airtel:  #ED1C24;  --airtel-tint: #FBE6E7;
  --coral-text: #B26A3F;   /* coral as TEXT on light: 4.8:1. Never use --coral for text. */

  /* Shadows, tuned for the bone background */
  --sh-1: 0 1px 2px rgba(22,19,16,0.05);
  --sh-2: 0 1px 2px rgba(22,19,16,0.04), 0 4px 12px -4px rgba(22,19,16,0.07);
  --sh-3: 0 4px 8px rgba(22,19,16,0.05), 0 16px 32px -12px rgba(22,19,16,0.14);
  --sh-4: 0 20px 48px -16px rgba(22,19,16,0.24);

  /* Motion */
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 350ms;
  --ease-smooth: cubic-bezier(0.22, 0.85, 0.32, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --r-xs: 6px;
}

/* BRAND: stethoscope-paw mark (raster asset, never redrawn) + live wordmark.
   <BrandMark /> renders this. Wordmark: lowercase "pet n vet", the "n" in coral. */
.brand {
  --brand-size: 32px;
  display: inline-flex; align-items: center; gap: calc(var(--brand-size) * 0.26);
  text-decoration: none; color: var(--jade-700); line-height: 1; flex-shrink: 0;
}
.brand-mark-img { display: block; width: var(--brand-size); height: var(--brand-size); object-fit: contain; flex-shrink: 0; }
.brand-word {
  font-family: var(--au-display, Georgia, serif);
  font-variation-settings: 'opsz' 48, 'SOFT' 100;
  font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase;
  font-size: calc(var(--brand-size) * 0.64); color: var(--jade-700); white-space: nowrap;
}
.brand-word em { font-style: normal; color: var(--coral); }
.brand-light .brand-word { color: var(--n-0); }
.brand-stacked { flex-direction: column; gap: calc(var(--brand-size) * 0.14); }
.brand-stacked .brand-word { font-size: calc(var(--brand-size) * 0.4); }

/* SURFACE RULE (v4.1): inside the signed-in app, cards are white with a hairline
   border on warm bone. Glass is reserved for auth, landing, and modal overlays.
   Backdrop blur is also expensive on mid-range Android, so this is a perf win too. */
.app-main .glass, .app-main .au-glass, .app-main .glass-card, .app-main .au-glass-card,
.app-main .glass-subtle, .app-main .glass-thin, .app-main .glass-thick {
  background: var(--n-0);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--n-100);
  box-shadow: var(--sh-2);
}
.app-main .glass::before, .app-main .au-glass::before,
.app-main .glass-card::before, .app-main .au-glass-card::before { display: none; }
.app-main .glass-sage { background: var(--jade-50); border-color: var(--jade-100); }

/* Neutral placeholder shown while a protected page waits for the browser session (prerender). */
.boot-shell { max-width: 960px; margin: 0 auto; padding: 36px 24px; display: grid; gap: 14px; }
.boot-line { height: 18px; }
.boot-line-lg { height: 34px; width: 46%; }
.boot-line-sm { width: 62%; }

/* Public footer links: dark footer, so links need their own base colour. */
.footer-col a, .l-footer-col a { color: rgba(255,255,255,.74); text-decoration: none; transition: color var(--dur-fast) var(--ease-smooth); }
.footer-col a:hover, .l-footer-col a:hover { color: var(--n-0); text-decoration: underline; text-underline-offset: 3px; }

/* KENYA BRAND-MARK UTILITIES. We draw our OWN payment marks: an italic letter tile.
   Never embed official Safaricom or Airtel wordmark assets. */
.payment-mpesa  { background: var(--mpesa);  color: #fff; box-shadow: 0 10px 26px -10px rgba(0,166,81,0.5); }
.payment-airtel { background: var(--airtel); color: #fff; box-shadow: 0 10px 26px -10px rgba(237,28,36,0.4); }
.pay-mark {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--au-display, serif); font-style: italic; font-weight: 700; font-size: 18px; line-height: 1;
}
.pay-mark-mpesa  { background: #fff; color: var(--mpesa); }
.pay-mark-airtel { background: #fff; color: var(--airtel); }

.badge-kvb, .badge-dvs, .badge-kmc {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.badge-kvb { background: var(--kvb-tint); color: var(--kvb); }
.badge-dvs { background: var(--dvs-tint); color: var(--dvs); }
.badge-kmc { background: var(--kmc-tint); color: var(--kmc); }

/* COMPONENT 1: DATA TABLE (admin, seller orders, vet patients) */
.rx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rx-table thead th {
  text-align: left; padding: 10px 14px;
  font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--n-400);
  background: rgba(0,0,0,0.025); border-bottom: 1px solid var(--n-100);
}
.rx-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--n-100); color: var(--n-700); }
.rx-table tbody tr { transition: background var(--dur-fast) var(--ease-smooth); }
.rx-table tbody tr:hover { background: var(--n-50); }
.rx-table .num { font-family: var(--font-mono, monospace); text-align: right; font-variant-numeric: tabular-nums; }
.rx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* COMPONENT 2: TIMELINE (health records, chain of custody) */
.rx-tl { position: relative; padding-left: 6px; }
.rx-tl::before { content: ''; position: absolute; left: 21px; top: 16px; bottom: 16px; width: 1.5px; background: var(--n-200); }
.rx-tl-item { display: flex; gap: 14px; margin-bottom: 14px; position: relative; }
.rx-tl-dot {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--n-0); color: var(--jade-500); border: 1px solid var(--n-200);
}
.rx-tl-dot.current { background: var(--jade-500); color: #fff; border-color: var(--jade-500); }
.rx-tl-dot.alert   { background: var(--emerg-tint); color: var(--emerg); border-color: rgba(200,70,48,0.3); padding: 0; margin: 0; }   /* padding and margin undo the generic .alert banner rule */
.rx-tl-body { flex: 1; padding-top: 1px; min-width: 0; }
.rx-tl-title { font-size: 13.5px; font-weight: 700; color: var(--n-800); }
.rx-tl-sub   { font-size: 12px; color: var(--n-500); margin-top: 1px; }
.rx-tl-date  { font-family: var(--font-mono, monospace); font-size: 10px; color: var(--n-400); margin-top: 3px; letter-spacing: 0.04em; text-transform: uppercase; }

/* COMPONENT 3: PAYMENT OPTION (radio card). Use role="radio" and aria-checked. */
.rx-pay-option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px; border-radius: var(--r-md, 14px);
  background: var(--n-0); border: 1px solid var(--n-100); cursor: pointer;
  transition: all var(--dur-base) var(--ease-smooth); text-align: left; font: inherit; color: inherit;
}
.rx-pay-option:hover { background: var(--n-50); }
.rx-pay-option:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.rx-pay-option[aria-checked="true"], .rx-pay-option[aria-selected="true"] {
  border: 2px solid var(--mpesa); padding: 14px; background: linear-gradient(180deg, #fff, var(--mpesa-tint));
}
.rx-pay-option.airtel[aria-checked="true"] { border-color: var(--airtel); background: linear-gradient(180deg, #fff, var(--airtel-tint)); }
.rx-pay-option.card[aria-checked="true"]   { border-color: var(--jade-500); background: linear-gradient(180deg, #fff, var(--jade-50)); }
.rx-pay-option:disabled { opacity: 0.6; cursor: not-allowed; }
.rx-pay-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--n-300); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rx-pay-option[aria-checked="true"] .rx-pay-radio { background: var(--mpesa); border-color: var(--mpesa); color: #fff; }
.rx-pay-option.airtel[aria-checked="true"] .rx-pay-radio { background: var(--airtel); border-color: var(--airtel); }
.rx-pay-option.card[aria-checked="true"] .rx-pay-radio { background: var(--jade-500); border-color: var(--jade-500); }

/* COMPONENT 4: SKELETON (CSS-only shimmer). Always at the real content height. */
.rx-skel { background: linear-gradient(100deg, var(--n-100) 30%, var(--n-50) 50%, var(--n-100) 70%); background-size: 200% 100%; animation: rx-shimmer 1.3s infinite; border-radius: 8px; }
@keyframes rx-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* COMPONENT 5: TOAST (bottom-right, 4s auto-dismiss) */
.rx-toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.rx-toast {
  display: flex; align-items: center; gap: 11px; min-width: 280px; max-width: 380px;
  padding: 13px 16px; border-radius: var(--r-md, 14px);
  background: var(--n-900); color: var(--bone, #FAFAF7); box-shadow: var(--sh-4);
  animation: rx-toast-in var(--dur-slow) var(--ease-smooth);
}
.rx-toast.success { border-left: 3px solid var(--success); }
.rx-toast.error   { border-left: 3px solid var(--emerg); }
.rx-toast.info    { border-left: 3px solid var(--kvb); }
.rx-toast-body { flex: 1; font-size: 13px; line-height: 1.4; }
.rx-toast-title { font-weight: 700; }
.rx-toast-x { flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 8px; color: inherit; opacity: .75; cursor: pointer; }
.rx-toast-x:hover { opacity: 1; background: rgba(255,255,255,.1); }
.rx-toast-x:focus-visible { outline: 2px solid var(--jade-200); }
@media (max-width: 768px) {
  .rx-toast-stack { left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .rx-toast { min-width: 0; max-width: none; }
}
@keyframes rx-toast-in { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Countdown ring (slot hold, instant match) and radar */
.rx-ring { transform: rotate(-90deg); }
.rx-ring circle { transition: stroke-dashoffset 1s linear; }
@keyframes rx-radar { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rx-skel, .rx-toast, .rx-ring circle { animation: none; transition: none; }
}

/* Brand on dark surfaces: the dark-green stethoscope would vanish, so the mark sits on a cream plate. */
.brand-light .brand-mark-img { background: var(--paper, #F5EFE4); border-radius: 24%; padding: 14%; box-sizing: border-box; }
.footer-blurb { font-size: 14px; line-height: 1.6; max-width: 280px; color: rgba(255,255,255,.7); }
.footer-bottom a { color: rgba(255,255,255,.74); text-decoration: underline; text-underline-offset: 2px; }

/* Surface rule, continued: other card-like components inside the signed-in app. */
.app-main .pet-card { background: var(--n-0); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--n-100); box-shadow: var(--sh-2); }
.app-main .pet-card:hover { box-shadow: var(--sh-3); }

/* Assistant widget: brand icon colours, and clear of the mobile bottom navigation. */
.ai-avatar { color: #fff; }
.ai-mini-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--jade-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-close { color: var(--n-500); }
@media (max-width: 768px) {
  .ai-widget-fab { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); right: 14px; width: 48px; height: 48px; }
  .ai-widget-panel { left: 12px; right: 12px; width: auto; bottom: calc(136px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 220px); }
}

/* Page header bar: compact action button, no floating shadow. */
.topbar-right .btn-botanical, .topbar-right .btn { height: 38px; padding: 0 16px; box-shadow: none; }
@media (max-width: 480px) {
  .topbar { height: 56px; padding: 0 16px; }
  .topbar-title { font-size: 20px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE SAFETY NETS (phones)
   ════════════════════════════════════════════════════════════ */
/* Headings that sit beside an action button wrap instead of pushing the page wider. */
.section-heading { flex-wrap: wrap; gap: 8px 16px; }

/* Weekly schedule: 7 columns on desktop, a swipeable strip on phones. */
.sched-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 768px) {
  .sched-week {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(128px, 44%);
    overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; -webkit-overflow-scrolling: touch;
  }
  .sched-week > * { scroll-snap-align: start; }

  /* Wide tables scroll inside their own box instead of widening the whole page. */
  .app-main table:not(.rx-table) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ════════════════════════════════════════════════════════════
   PAYMENT SHEET (M-Pesa first, Airtel Money, card)
   ════════════════════════════════════════════════════════════ */
.pay-sheet { display: grid; gap: 14px; }
.pay-methods { display: grid; gap: 10px; }
.pay-option-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pay-option-text strong { font-size: 15px; color: var(--n-800); }
.pay-option-text small { font-size: 12.5px; color: var(--n-500); line-height: 1.35; }
.pay-mark-lg { width: 44px; height: 44px; border-radius: 12px; font-size: 26px; }
.pay-mark-xl { width: 46px; height: 46px; border-radius: 13px; font-size: 28px; }
.rx-pay-option .pay-mark-mpesa  { background: var(--mpesa);  color: #fff; }
.rx-pay-option .pay-mark-airtel { background: var(--airtel); color: #fff; }
.pay-mark-card { background: var(--jade-500); color: #fff; font-style: normal; }

.pay-phone { display: grid; gap: 6px; }
.pay-phone-label { font-size: 13px; font-weight: 600; color: var(--n-700); }
.pay-phone-field { display: flex; align-items: center; height: 52px; background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: 14px; overflow: hidden; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.pay-phone-field:focus-within { border-color: var(--jade-300); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }
.pay-phone-field.is-invalid { border-color: var(--emerg); }
.pay-phone-prefix { align-self: stretch; display: inline-flex; align-items: center; padding: 0 14px; background: var(--n-50); border-right: 1px solid var(--n-100); font-family: var(--font-mono, monospace); font-size: 15px; font-weight: 600; color: var(--n-600); }
.pay-phone-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px; font-family: var(--font-mono, monospace); font-size: 17px; letter-spacing: .02em; color: var(--n-800); }
.pay-hint { font-size: 12.5px; color: var(--n-500); line-height: 1.45; }
.pay-hint.is-error { color: var(--emerg); }
.pay-hint-block { margin: 0; padding: 12px 14px; background: var(--n-50); border-radius: 12px; }

.pay-cta { width: 100%; height: 54px; border: 0; border-radius: 14px; font: 700 15px var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: transform .08s ease, filter var(--dur-fast); }
.pay-cta:hover:not(:disabled) { filter: brightness(1.05); }
.pay-cta:active:not(:disabled) { transform: translateY(1px); }
.pay-cta:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pay-cta:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.pay-cta-card { background: var(--jade-500); color: #fff; box-shadow: 0 10px 26px -10px rgba(47,93,82,.5); }
.pay-back { justify-self: start; background: none; border: 0; padding: 6px 2px; color: var(--n-500); font: 600 13px var(--font-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pay-back:hover { color: var(--n-800); }
.pay-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }

.pay-wait, .pay-done, .pay-failed { text-align: center; padding: 18px 4px 6px; display: grid; justify-items: center; gap: 10px; }
.pay-title { font-family: var(--font-display, var(--au-display)); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 0; color: var(--n-800); }
.pay-copy { margin: 0; max-width: 340px; color: var(--n-600); font-size: 14.5px; line-height: 1.55; }
.pay-orb { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.pay-orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--mpesa-tint); border-top-color: var(--mpesa); animation: pay-spin 1.1s linear infinite; }
.pay-orb-ring.airtel { border-color: var(--airtel-tint); border-top-color: var(--airtel); }
.pay-count { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--n-500); margin-top: 4px; }
.pay-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pay-pulse 1.6s ease-in-out infinite; }
@keyframes pay-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.pay-wait-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pay-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--success); display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(42,157,92,.6); animation: pay-pop var(--dur-slow) var(--ease-bounce); }
@keyframes pay-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pay-receipt { display: flex; gap: 12px; justify-content: space-between; align-items: center; width: 100%; max-width: 340px; margin-top: 8px; padding: 12px 16px; background: var(--bone, #FAFAF7); border: 1px solid var(--n-100); border-radius: 12px; font-size: 12.5px; color: var(--n-500); }
.pay-receipt span { white-space: nowrap; }
.pay-receipt code { min-width: 0; text-align: right; overflow-wrap: anywhere; font-family: var(--font-mono, monospace); font-size: 15px; font-weight: 600; color: var(--n-800); letter-spacing: .04em; }
.pay-failed-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--emerg-tint); display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .pay-orb-ring, .pay-dot, .pay-spinner, .pay-done-icon { animation: none; } }

/* ════════════════════════════════════════════════════════════
   PLAN CARD (pricing page and in-app plan picker)
   ════════════════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto 20px; align-items: start; }
.pricing-card { position: relative; padding: 26px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 20px; box-shadow: var(--sh-2); }
.pricing-card.is-popular { border: 2px solid var(--jade-500); padding: 25px; }
.pricing-card.is-gold { border: 2px solid var(--amber); padding: 25px; background: linear-gradient(180deg, var(--n-0), #FDF8EC); }
.pricing-card.is-current { box-shadow: 0 0 0 3px var(--jade-100), var(--sh-2); }
.pricing-tag { position: absolute; top: -11px; left: 24px; background: var(--jade-500); color: var(--n-0); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.pricing-tag-gold { background: var(--amber); color: var(--n-800); }
.pricing-tag-current { background: var(--jade-100); color: var(--jade-700); }
.pricing-head { display: flex; align-items: center; gap: 10px; }
.pricing-icon { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; background: var(--jade-50); display: inline-flex; align-items: center; justify-content: center; }
.is-gold .pricing-icon { background: rgba(232,201,122,.28); }
.pricing-tier-name { font-family: var(--font-display, var(--au-display)); font-size: 20px; font-weight: 600; color: var(--n-800); }
.pricing-price { display: flex; align-items: baseline; gap: 5px; margin-top: 14px; }
.pricing-price-currency { font-size: 12px; color: var(--n-500); }
.pricing-price-amount { font-family: var(--font-mono, var(--au-mono)); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--n-800); line-height: 1; }
.pricing-price-period { font-size: 12px; color: var(--n-500); }
.pricing-desc { font-size: 13px; color: var(--n-500); margin: 10px 0 0; line-height: 1.5; min-height: 2.9em; }
.pricing-rule { height: 1px; background: var(--n-100); margin: 18px 0; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--n-700); line-height: 1.4; }
.pricing-check { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; background: var(--jade-50); display: inline-flex; align-items: center; justify-content: center; }
.is-gold .pricing-check { background: rgba(232,201,122,.3); }
.pricing-cta { width: 100%; box-sizing: border-box; height: 44px; font-weight: 600; text-align: center; }
.l-btn-coral { background: var(--coral-d); color: var(--n-0); }
.l-btn-coral:hover { background: #A04E32; box-shadow: var(--sh-2); }
.pricing-cta:disabled { opacity: .55; cursor: default; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ════════════════════════════════════════════════════════════
   MODAL (glass is allowed here) · UPGRADE PROMPT · PLAN CHECKOUT
   ════════════════════════════════════════════════════════════ */
.rx-modal-backdrop { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(22,19,16,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: rx-fade var(--dur-base) var(--ease-smooth); }
.rx-modal { position: relative; width: min(100%, 500px); max-height: 92vh; overflow-y: auto; padding: 28px; outline: none; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); border: 1px solid rgba(255,255,255,.75); border-radius: 24px; box-shadow: var(--sh-4); animation: rx-rise var(--dur-slow) var(--ease-smooth); }
.rx-modal-wide { width: min(100%, 1000px); }
.rx-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--n-50); color: var(--n-600); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rx-modal-close:hover { background: var(--n-100); color: var(--n-800); }
.rx-modal-close:focus-visible { outline: 3px solid var(--jade-200); }
@keyframes rx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rx-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .rx-modal-backdrop { align-items: flex-end; padding: 0; }
  .rx-modal { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)); animation-name: rx-sheet; }
  @keyframes rx-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .rx-modal, .rx-modal-backdrop { animation: none; } }

.upg-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--jade-50); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.upg-title { font-family: var(--font-display, var(--au-display)); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; color: var(--n-800); }
.upg-title em { font-style: italic; color: var(--jade-500); font-weight: 400; }
.upg-body { margin: 0 0 16px; color: var(--n-600); font-size: 14.5px; line-height: 1.6; }
.upg-list { list-style: none; margin: 0 0 20px; padding: 14px 16px; background: var(--jade-50); border-radius: 14px; display: grid; gap: 9px; }
.upg-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--jade-900); line-height: 1.4; }
.upg-actions { display: flex; gap: 10px; }
.upg-actions .btn { flex: 1; height: 46px; justify-content: center; }
.upg-actions .btn-primary { flex: 1.5; }
.upg-link { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--n-500); }

.plan-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 800px) { .plan-picker { grid-template-columns: 1fr; } }
.plan-checkout { display: grid; gap: 14px; }
.plan-checkout-head { display: flex; gap: 12px; align-items: center; padding-right: 36px; }
.plan-checkout-title { font-family: var(--font-display, var(--au-display)); font-size: 22px; font-weight: 600; color: var(--n-800); }
.plan-checkout-sub { font-size: 13px; color: var(--n-500); }
.plan-checkout-list { list-style: none; margin: 0; padding: 12px 14px; background: var(--n-50); border-radius: 12px; display: grid; gap: 7px; font-size: 13px; color: var(--n-700); }
.plan-checkout-list li { display: flex; gap: 8px; align-items: center; }

/* ════════════════════════════════════════════════════════════
   BOOKING (one page, three steps: details, confirm or pay, done)
   ════════════════════════════════════════════════════════════ */
.bk-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bk-steps li { position: relative; padding-top: 9px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--n-400); }
.bk-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--n-100); transition: background var(--dur-base); }
.bk-steps li.is-on { color: var(--jade-700); }
.bk-steps li.is-on::before { background: var(--jade-500); }

.bk-card { background: var(--n-0); border: 1px solid var(--n-100); border-radius: 18px; padding: 16px; box-shadow: var(--sh-1); }
.bk-vet { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.bk-vet-text { flex: 1; min-width: 0; }
.bk-vet-name { font-family: var(--font-display, var(--au-display)); font-size: 18px; font-weight: 600; color: var(--n-800); overflow-wrap: anywhere; }
.bk-vet-sub { font-size: 13px; color: var(--n-500); overflow-wrap: anywhere; }
.bk-vet-when { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--jade-700); }
.bk-fee { text-align: right; flex-shrink: 0; line-height: 1; }
.bk-fee small { display: block; font-size: 11px; color: var(--n-500); margin-bottom: 4px; }
.bk-fee span { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--n-800); }

.bk-section { margin-top: 22px; }
.bk-h { display: block; margin: 0 0 10px; font-family: var(--font-display, var(--au-display)); font-size: 17px; font-weight: 600; color: var(--n-800); }
.bk-opt { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--n-400); margin-left: 4px; }
.bk-empty { text-align: center; display: grid; gap: 10px; justify-items: center; }
.bk-empty p { margin: 0; color: var(--n-600); font-size: 14px; }

.bk-pets { display: grid; gap: 8px; }
.bk-pet { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; text-align: left; cursor: pointer; background: var(--n-0); border: 1.5px solid var(--n-100); border-radius: 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); font-family: inherit; }
.bk-pet:hover { border-color: var(--n-200); }
.bk-pet.is-on { border-color: var(--jade-500); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }
.bk-pet:focus-visible, .bk-type:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.bk-pet-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bk-pet-text strong { font-size: 15px; color: var(--n-800); }
.bk-pet-text small { font-size: 12.5px; color: var(--n-500); }

.bk-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk-type { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 92px; padding: 14px; text-align: left; cursor: pointer; background: var(--n-0); border: 1.5px solid var(--n-100); border-radius: 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); font-family: inherit; }
.bk-type:hover { border-color: var(--n-200); }
.bk-type.is-on { border-color: var(--jade-500); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }
.bk-type-name { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--n-800); }
.bk-type-fee { font-size: 12.5px; color: var(--n-500); }
.bk-lock { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(232,201,122,.3); color: var(--kmc); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }

.bk-instant { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 16px; background: var(--jade-50); border: 1px solid var(--jade-100); border-radius: 16px; }
.bk-instant > div { flex: 1 1 200px; min-width: 0; }
.bk-instant strong { display: block; font-size: 14.5px; color: var(--jade-900); }
.bk-instant p { margin: 3px 0 0; font-size: 13px; color: var(--jade-700); line-height: 1.45; }
.bk-instant-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; background: var(--n-0); display: inline-flex; align-items: center; justify-content: center; }
.bk-pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--n-0); border: 1px solid var(--jade-100); color: var(--jade-700); font-size: 12px; font-weight: 600; white-space: nowrap; }

.bk-note { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: #FDF8EC; border: 1px solid rgba(232,201,122,.6); color: var(--n-700); font-size: 13px; line-height: 1.5; }
.bk-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--jade-500); text-decoration: underline; cursor: pointer; }

.bk-done { display: grid; justify-items: center; gap: 10px; padding: 30px 18px 22px; text-align: center; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 20px; box-shadow: var(--sh-2); }
.bk-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
@media (max-width: 360px) { .bk-types { grid-template-columns: 1fr; } }

/* Money, counts, codes: mono with even digit widths. */
.rx-mono { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════
   SHOP CHECKOUT DRAWER (white surface, not glass: it is inside the app)
   ════════════════════════════════════════════════════════════ */
.co-backdrop { position: fixed; inset: 0; z-index: 1250; background: rgba(22,19,16,.42); animation: rx-fade var(--dur-base) var(--ease-smooth); }
.co-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; display: flex; flex-direction: column; background: var(--n-0); box-shadow: var(--sh-4); outline: none; animation: co-slide var(--dur-slow) var(--ease-smooth); }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--n-100); flex-shrink: 0; }
.co-eyebrow { margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--n-400); }
.co-title { margin: 0; font-family: var(--font-display, var(--au-display)); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--n-800); }
.co-body { flex: 1; overflow-y: auto; display: grid; gap: 16px; align-content: start; padding: 18px 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
.co-lines { list-style: none; margin: 0; padding: 0; }
.co-lines li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--n-100); font-size: 13px; color: var(--n-800); }
.co-line-text { min-width: 0; display: grid; }
.co-line-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-line-text small { font-size: 11.5px; color: var(--n-400); }
.co-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 2px solid var(--n-200); font-size: 14px; font-weight: 600; color: var(--n-600); }
.co-total .rx-mono { font-size: 20px; font-weight: 700; color: var(--n-800); }
@keyframes co-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .co-drawer { top: auto; max-width: none; max-height: 94vh; border-radius: 24px 24px 0 0; animation-name: rx-sheet; } }
@media (prefers-reduced-motion: reduce) { .co-drawer, .co-backdrop { animation: none; } }

/* ════════════════════════════════════════════════════════════
   FORUM: community and Vets' lounge
   ════════════════════════════════════════════════════════════ */
.fo-wrap { max-width: 860px; }
.fo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fo-seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--n-50); border-radius: 999px; }
.fo-seg button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--n-500); font: 600 13.5px var(--font-body); cursor: pointer; }
.fo-seg button[aria-selected="true"] { background: var(--n-0); color: var(--jade-700); box-shadow: var(--sh-1); }
.fo-seg button:focus-visible, .fo-chip:focus-visible, .fo-vote button:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.fo-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.fo-chips::-webkit-scrollbar { display: none; }
@media (min-width: 641px) { .fo-chips { flex-wrap: wrap; overflow-x: visible; } }
.fo-chip { flex-shrink: 0; min-height: 36px; padding: 0 14px; border: 1px solid var(--n-200); border-radius: 999px; background: var(--n-0); color: var(--n-600); font: 500 13px var(--font-body); cursor: pointer; }
.fo-chip[aria-pressed="true"] { background: var(--jade-500); border-color: var(--jade-500); color: #fff; }
.fo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.fo-search { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.fo-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.fo-search input { width: 100%; height: 44px; box-sizing: border-box; padding: 0 14px 0 42px; border: 1.5px solid var(--n-200); border-radius: 14px; background: var(--n-0); font: 400 14px var(--font-body); color: var(--n-800); }
.fo-search input:focus { outline: 0; border-color: var(--jade-300); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }

.fo-list { display: grid; gap: 10px; }
.fo-post { position: relative; display: flex; gap: 14px; padding: 16px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 16px; box-shadow: var(--sh-1); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.fo-post:hover { border-color: var(--n-200); box-shadow: var(--sh-2); }
.fo-vote { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 40px; flex-shrink: 0; position: relative; z-index: 2; }
.fo-vote button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--n-100); border-radius: 10px; background: var(--n-0); color: var(--n-500); cursor: pointer; }
.fo-vote button:hover { border-color: var(--jade-200); color: var(--jade-700); }
.fo-vote button[aria-pressed="true"] { background: var(--jade-50); border-color: var(--jade-200); color: var(--jade-700); }
.fo-vote span { font: 600 13px var(--font-mono, monospace); color: var(--n-700); }
.fo-main { flex: 1; min-width: 0; }
.rx-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.rx-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--n-50); color: var(--n-600); font-size: 11px; font-weight: 600; }
.rx-badge-jade { background: var(--jade-50); color: var(--jade-700); }
.rx-badge-amber { background: rgba(232,201,122,.3); color: var(--kmc); }
.rx-badge-kvb { background: var(--kvb-tint); color: var(--kvb); }
.fo-title { margin: 0 0 4px; font-family: var(--font-display, var(--au-display)); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--n-800); }
.fo-title a { color: inherit; text-decoration: none; }
.fo-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.fo-title a:focus-visible { outline: none; }
.fo-title a:focus-visible::after { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.fo-excerpt { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--n-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--n-500); }
.fo-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.fo-avatar { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--jade-100); color: var(--jade-700); font: 700 10px var(--font-body); flex-shrink: 0; }

.fo-locked { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; text-align: center; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 20px; box-shadow: var(--sh-1); }
.fo-locked h3 { margin: 0; font-family: var(--font-display, var(--au-display)); font-size: 22px; font-weight: 600; color: var(--n-800); }
.fo-locked p { margin: 0; max-width: 420px; font-size: 14px; line-height: 1.55; color: var(--n-600); }

/* Post page */
.fo-detail { padding: 22px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 20px; box-shadow: var(--sh-1); }
.fo-h1 { margin: 6px 0 10px; font-family: var(--font-display, var(--au-display)); font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--n-800); overflow-wrap: anywhere; }
.fo-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; font-size: 13px; color: var(--n-500); }
.fo-byline strong { color: var(--n-800); }
.fo-body { margin: 0; font-size: 15px; line-height: 1.75; color: var(--n-700); white-space: pre-wrap; overflow-wrap: anywhere; }
.fo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--n-100); }
.fo-pill-btn { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid var(--n-200); border-radius: 999px; background: var(--n-0); color: var(--n-600); font: 600 13px var(--font-body); cursor: pointer; }
.fo-pill-btn:hover { border-color: var(--jade-200); color: var(--jade-700); }
.fo-pill-btn[aria-pressed="true"] { background: var(--jade-50); border-color: var(--jade-200); color: var(--jade-700); }
.fo-pill-btn:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.fo-report { padding: 14px; margin-top: 12px; border-radius: 14px; background: var(--emerg-tint); display: grid; gap: 8px; }

.fo-replies-h { margin: 26px 0 12px; font-family: var(--font-display, var(--au-display)); font-size: 20px; font-weight: 600; color: var(--n-800); }
.fo-reply { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 10px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 16px; }
.fo-reply.is-accepted { border-color: var(--jade-300); box-shadow: 0 0 0 3px rgba(47,93,82,.08); }
.fo-reply-main { flex: 1; min-width: 0; }
.fo-reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; font-size: 12.5px; color: var(--n-500); }
.fo-reply-head strong { font-size: 13.5px; color: var(--n-800); }
.fo-reply-body { margin: 0; font-size: 14px; line-height: 1.65; color: var(--n-700); white-space: pre-wrap; overflow-wrap: anywhere; }
.fo-compose { display: grid; gap: 10px; padding: 16px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 16px; }
.fo-compose textarea { width: 100%; min-height: 96px; box-sizing: border-box; padding: 12px 14px; resize: vertical; border: 1.5px solid var(--n-200); border-radius: 12px; background: var(--n-0); font: 400 14px/1.55 var(--font-body); color: var(--n-800); }
.fo-compose textarea:focus { outline: 0; border-color: var(--jade-300); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }

/* An anonymised case */
.fo-case { margin: 4px 0 18px; border: 1px solid var(--kvb-tint); border-radius: 16px; overflow: hidden; background: var(--n-0); }
.fo-case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; background: var(--kvb-tint); color: var(--kvb); }
.fo-case-head strong { font-size: 13px; letter-spacing: .02em; }
.fo-case-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--n-700); }
.fo-case-facts span { font-family: var(--font-mono, monospace); font-size: 12.5px; }
.fo-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.fo-case-cell { padding: 12px 16px; border-top: 1px solid var(--n-100); }
.fo-case-cell:nth-child(odd) { border-right: 1px solid var(--n-100); }
.fo-case-cell h4 { margin: 0 0 4px; font: 700 10.5px var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--n-400); }
.fo-case-cell p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--n-700); white-space: pre-wrap; overflow-wrap: anywhere; }
.fo-case-note { padding: 10px 16px; border-top: 1px solid var(--n-100); font-size: 12px; color: var(--n-500); background: var(--n-50); }
@media (max-width: 640px) {
  .fo-case-grid { grid-template-columns: 1fr; }
  .fo-case-cell:nth-child(odd) { border-right: 0; }
  .fo-post { padding: 14px 12px; gap: 10px; }
  .fo-detail { padding: 16px; }
  .fo-h1 { font-size: 22px; }
}

/* Composer */
.fo-modal { width: min(100%, 620px); }
.fo-form { display: grid; gap: 14px; margin-top: 14px; }
.fo-field { display: grid; gap: 6px; }
.fo-field > label, .fo-label { font-size: 13px; font-weight: 600; color: var(--n-700); }
.fo-field input, .fo-field select, .fo-field textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1.5px solid var(--n-200); border-radius: 12px; background: var(--n-0); font: 400 14px/1.5 var(--font-body); color: var(--n-800); }
.fo-field textarea { min-height: 130px; resize: vertical; }
.fo-field input:focus, .fo-field select:focus, .fo-field textarea:focus { outline: 0; border-color: var(--jade-300); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }
.fo-hint { font-size: 12px; color: var(--n-500); }
.fo-count { text-align: right; font: 500 11.5px var(--font-mono, monospace); color: var(--n-400); }
.fo-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--n-100); border-radius: 12px; background: var(--n-50); }
.fo-switch strong { display: block; font-size: 13.5px; color: var(--n-800); }
.fo-switch small { font-size: 12px; color: var(--n-500); }
.fo-case-list { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; padding: 2px; }
.fo-case-pick { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; border: 1.5px solid var(--n-100); border-radius: 12px; background: var(--n-0); cursor: pointer; font-family: inherit; }
.fo-case-pick[aria-checked="true"] { border-color: var(--jade-500); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }
.fo-case-pick strong { display: block; font-size: 13.5px; color: var(--n-800); }
.fo-case-pick small { font-size: 12px; color: var(--n-500); }
.fo-warn { padding: 10px 12px; border-radius: 12px; background: #FDF8EC; border: 1px solid rgba(232,201,122,.6); font-size: 12.5px; line-height: 1.5; color: var(--n-700); }
.fo-form-actions { display: flex; gap: 10px; }
.fo-form-actions .btn { flex: 1; height: 46px; justify-content: center; }
.fo-form-actions .btn-primary { flex: 1.5; }
.fo-switch input[type="checkbox"] { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--jade-500); cursor: pointer; }
.fo-case-head > div { flex: 1; min-width: 0; }
.rx-badge-emerg { background: var(--emerg-tint); color: var(--emerg); }
.rx-tl-dot.todo { color: var(--n-300); border-style: dashed; background: var(--n-50); }

/* ════════════════════════════════════════════════════════════
   BUYER ORDERS
   ════════════════════════════════════════════════════════════ */
.or-wrap { max-width: 760px; }
.or-list { display: grid; gap: 10px; }
.or-card { position: relative; padding: 16px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 16px; box-shadow: var(--sh-1); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.or-card:hover { border-color: var(--n-200); box-shadow: var(--sh-2); }
.or-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.or-ref { font-size: 12px; color: var(--n-500); letter-spacing: .04em; }
.or-title { margin: 0; font-family: var(--font-display, var(--au-display)); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--n-800); overflow-wrap: anywhere; }
.or-title a { color: inherit; text-decoration: none; }
.or-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.or-title a:focus-visible { outline: none; }
.or-title a:focus-visible::after { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.or-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--n-500); }
.or-meta strong { font-size: 15px; color: var(--n-800); }
.or-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.or-card-block { padding: 18px; margin-bottom: 14px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 18px; box-shadow: var(--sh-1); }
.or-h { margin: 0 0 12px; font-family: var(--font-display, var(--au-display)); font-size: 18px; font-weight: 600; color: var(--n-800); }
.or-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.or-head-ref { font-size: 12.5px; color: var(--n-500); letter-spacing: .04em; }
.or-head-status { margin: 4px 0 0; font-family: var(--font-display, var(--au-display)); font-size: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--n-800); }
.or-total { text-align: right; }
.or-total small { display: block; font-size: 11px; color: var(--n-500); }
.or-total span { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--n-800); }
.or-items { list-style: none; margin: 0; padding: 0; }
.or-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--n-100); font-size: 14px; color: var(--n-800); }
.or-items li:last-child { border-bottom: 0; }
.or-items small { display: block; font-size: 12px; color: var(--n-500); }
.or-kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.or-kv dt { color: var(--n-500); }
.or-kv dd { margin: 0; color: var(--n-800); overflow-wrap: anywhere; }
.or-problem { display: grid; gap: 10px; }
.or-problem textarea { width: 100%; min-height: 90px; box-sizing: border-box; padding: 12px 14px; resize: vertical; border: 1.5px solid var(--n-200); border-radius: 12px; font: 400 14px/1.55 var(--font-body); color: var(--n-800); background: var(--n-0); }
.or-problem textarea:focus { outline: 0; border-color: var(--jade-300); box-shadow: 0 0 0 3px rgba(47,93,82,.12); }
.or-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--emerg-tint); font-size: 13.5px; color: var(--n-700); }

/* Delivery step in the shop checkout */
.co-steps { display: flex; gap: 6px; margin-bottom: 4px; }
.co-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--n-100); }
.co-steps span.is-on { background: var(--jade-500); }
.co-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--n-50); font-size: 13px; color: var(--n-600); }
.co-summary strong { color: var(--n-800); }
.or-items li > .rx-mono { white-space: nowrap; flex-shrink: 0; }

/* Held booking time */
.bk-hold { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: var(--jade-50); border: 1px solid var(--jade-100); font-size: 13px; font-weight: 600; color: var(--jade-700); }
.bk-hold .rx-mono { margin-left: auto; font-size: 15px; }
.bk-hold.is-short { background: #FDF8EC; border-color: rgba(232,201,122,.6); color: var(--kmc); }
.bk-expired { display: grid; justify-items: center; gap: 10px; padding: 26px 18px; text-align: center; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 18px; box-shadow: var(--sh-1); }
.bk-expired .bk-instant-icon { background: rgba(232,201,122,.3); }
.bk-expired h3 { margin: 0; font-family: var(--font-display, var(--au-display)); font-size: 22px; font-weight: 600; color: var(--n-800); }
.bk-expired p { margin: 0; max-width: 340px; font-size: 14px; line-height: 1.55; color: var(--n-600); }
.bk-expired .pay-cta { max-width: 340px; }

/* ════════════════════════════════════════════════════════════
   LOST AND FOUND
   ════════════════════════════════════════════════════════════ */
.lp-calm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 14px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 16px; box-shadow: var(--sh-1); }
.lp-calm strong { display: block; font-size: 14.5px; color: var(--n-800); }
.lp-calm p { margin: 2px 0 0; font-size: 13px; color: var(--n-500); }
.lp-lost { display: grid; gap: 10px; padding: 18px; margin-bottom: 14px; background: var(--emerg-tint); border: 1px solid rgba(200,70,48,.3); border-radius: 18px; }
.lp-head { display: flex; align-items: center; gap: 10px; }
.lp-head h3 { margin: 0; font-family: var(--font-display, var(--au-display)); font-size: 20px; font-weight: 600; color: var(--n-800); }
.lp-note { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--n-800); }
.lp-sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--n-600); }
.lp-lost .btn { justify-self: start; }
.lp-reports { margin-bottom: 14px; }
.lp-reports h3 { margin: 0 0 10px; font-family: var(--font-display, var(--au-display)); font-size: 18px; font-weight: 600; color: var(--n-800); }
.lp-report { display: grid; gap: 6px; padding: 14px 16px; margin-bottom: 8px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 14px; }
.lp-report p { margin: 0; font-size: 14px; color: var(--n-700); }
.lp-report-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--n-500); }
.lp-report-top strong { font-size: 14px; color: var(--n-800); }
.lp-quote { font-style: italic; color: var(--n-600); }
.lp-report .btn { justify-self: start; }

/* The public passport page when a pet is lost */
.pp-lost { margin: 0 0 14px; padding: 20px; background: var(--emerg-tint); border: 1.5px solid rgba(200,70,48,.45); border-radius: 20px; text-align: center; }
.pp-lost-title { margin: 6px 0 4px; font-family: var(--font-display, var(--au-display)); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--emerg); }
.pp-lost p { margin: 4px 0; font-size: 14.5px; line-height: 1.55; color: var(--n-800); }
.pp-lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.pp-lost-actions .btn { min-height: 48px; }
.pp-found-link { display: block; margin: 18px auto 6px; padding: 10px; background: none; border: 0; font: 600 13.5px var(--font-body); color: var(--jade-700); text-decoration: underline; cursor: pointer; }

/* ── Onboarding (ob-*) ───────────────────────────────────────── */
.ob-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--au-bg); }
.ob-wrap { width: 100%; max-width: 480px; position: relative; }
.ob-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress-pill { flex: 1; height: 3px; border-radius: 2px; background: rgba(46,38,28,0.15); transition: background .25s; }
.progress-pill.filled { background: var(--au-ink); }
.ob-wait { display: flex; justify-content: center; padding: 60px 0; }
.ob-title { font-size: 48px; line-height: 0.94; letter-spacing: -0.035em; margin: 0; }
.ob-title em { font-style: italic; color: var(--au-jade); }
.ob-title-sm { font-size: 36px; line-height: 1; letter-spacing: -0.03em; margin-bottom: 6px; }
.ob-sub { font-size: 22px; color: var(--au-ink-3); margin-top: 8px; }
.ob-options { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.ob-option {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; min-height: 64px; text-align: left;
  font: inherit; cursor: pointer; border-radius: 18px; border: 2px solid transparent;
  background: rgba(255,255,255,0.62); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 20px rgba(46,38,28,0.06);
  transition: border-color .15s, background .15s;
}
.ob-option:hover { background: rgba(255,255,255,0.8); }
.ob-option:focus-visible, .ob-species-tile:focus-visible, .ob-jump:focus-visible, .ob-skip:focus-visible { outline: 2px solid var(--au-jade); outline-offset: 2px; }
.ob-option.on { border-color: var(--au-jade); background: linear-gradient(135deg, rgba(47,93,82,0.12), rgba(255,255,255,0.85)); }
.ob-chip { width: 44px; height: 44px; border-radius: 14px; background: rgba(47,93,82,0.10); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ob-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-option-title { font-size: 15px; font-weight: 500; color: var(--au-ink); }
.ob-option-sub { font-size: 12px; color: var(--au-ink-3); }
.ob-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(46,38,28,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ob-option.on .ob-tick { background: var(--au-jade); border-color: var(--au-jade); }
.ob-cta { width: 100%; margin-top: 24px; }
.ob-skip { display: block; margin: 14px auto 0; background: none; border: none; font: inherit; font-size: 13px; color: var(--au-ink-3); cursor: pointer; padding: 10px 14px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.ob-species { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.ob-species-tile {
  padding: 16px; text-align: center; cursor: pointer; font: inherit; border-radius: 18px; border: 2px solid transparent;
  background: rgba(255,255,255,0.62); backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(46,38,28,0.06);
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px;
}
.ob-species-tile.on { border-color: var(--au-jade); background: #fff; }
.ob-species-name { font-size: 13px; font-weight: 500; color: var(--au-ink); }
.ob-name-input { font-family: var(--au-display); font-size: 18px; }
.ob-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-age { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.ob-note { margin-top: 4px; padding: 14px; border-radius: 16px; background: rgba(47,93,82,0.10); border: 1px solid rgba(47,93,82,0.20); font-size: 12px; color: var(--au-jade); }
.ob-hero { padding: 20px; margin-top: 20px; }
.ob-hero-line { font-size: 14px; color: var(--au-jade); font-weight: 500; line-height: 1.4; }
.ob-hero-sub { font-size: 12px; color: var(--au-ink-3); margin-top: 6px; }
.ob-jump-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--au-ink-3); margin: 22px 0 8px; }
.ob-jump { width: 100%; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; margin-top: 8px; font: inherit; font-size: 13px; font-weight: 500; color: var(--au-ink); text-align: left; min-height: 48px; border: none; }
@media (max-width: 420px) { .ob-title { font-size: 40px; } .ob-title-sm { font-size: 30px; } .ob-two { grid-template-columns: 1fr; } }

/* ── Vet profile (vp-*) ──────────────────────────────────────── */
.vp-page { max-width: 920px; padding-bottom: 32px; }
.vp-hero {
  display: flex; align-items: center; gap: 16px; padding: 22px 20px; margin-bottom: 14px; border-radius: 24px;
  background: linear-gradient(180deg, var(--blush-1) 0%, rgba(245,224,211,0.45) 60%, rgba(245,224,211,0) 100%);
}
.vp-avatar {
  width: 84px; height: 84px; border-radius: 24px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--jade-400), var(--jade-700)); border: 3px solid #fff; box-shadow: 0 8px 22px rgba(47,93,82,0.22);
}
.vp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vp-avatar span { color: #fff; font-family: var(--font-display); font-style: italic; font-size: 36px; font-weight: 600; }
.vp-id { min-width: 0; flex: 1; }
.vp-name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 600; color: var(--ink-3); margin: 0 0 4px; overflow-wrap: anywhere; }
.vp-creds { font-size: 13px; color: var(--ink-1); }
.vp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,0.8); border: 1px solid var(--glass-cream-border); padding: 4px 10px; border-radius: 999px; }
.vp-chip strong { color: var(--ink-3); }
.vp-chip-ok { color: var(--au-jade); background: rgba(47,93,82,0.10); border-color: rgba(47,93,82,0.22); font-weight: 600; }
.vp-chip-live { color: var(--au-jade); }
.vp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-3); animation: vp-pulse 2s ease-in-out infinite; }
@keyframes vp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .vp-dot { animation: none; } }

.vp-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 4px; margin-bottom: 14px; }
.vp-stat { padding: 2px 14px; border-left: 1px solid var(--glass-cream-border); min-width: 0; }
.vp-stat:first-child { border-left: none; }
.vp-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-1); }
.vp-stat-value { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }
.vp-stat-sub { font-size: 10px; color: var(--ink-1); opacity: .75; margin-top: 1px; }

.vp-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.vp-card { padding: 18px; margin-bottom: 14px; }
.vp-eyebrow { margin-bottom: 12px; }
.vp-bio { font-size: 14px; line-height: 1.7; color: var(--ink-1); margin: 0; font-weight: 300; }
.vp-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.vp-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vp-type {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; min-height: 76px; text-align: left; font: inherit; cursor: pointer;
  background: rgba(255,255,255,0.6); border: 1.5px solid var(--glass-cream-border); border-radius: 16px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.vp-type:hover { background: #fff; }
.vp-type.on { background: #fff; border-color: var(--au-jade); box-shadow: 0 6px 16px rgba(47,93,82,0.14); }
.vp-type:focus-visible, .vp-day:focus-visible, .vp-slot:focus-visible { outline: 2px solid var(--au-jade); outline-offset: 2px; }
.vp-type-name { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.vp-type-price { font-size: 11px; color: var(--ink-1); }
.vp-type.on .vp-type-price { color: var(--au-jade); font-weight: 600; }
.vp-where { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-1); flex-wrap: wrap; }
.vp-where a { color: var(--au-jade); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.vp-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.vp-day {
  flex: 0 0 auto; min-width: 54px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: inherit; cursor: pointer;
  background: rgba(255,255,255,0.7); color: var(--ink-2); border: 1px solid var(--glass-cream-border); border-radius: 14px; padding: 6px 10px;
}
.vp-day.on { background: var(--au-jade); color: #fff; border-color: var(--au-jade); }
.vp-day-name { font-size: 9px; text-transform: uppercase; opacity: .75; letter-spacing: .06em; }
.vp-day-num { font-size: 18px; font-weight: 700; line-height: 1.15; }
.vp-day-mon { font-size: 9px; opacity: .75; }
.vp-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-slot { min-height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; background: rgba(255,255,255,0.85); color: var(--ink-2); border: 1px solid var(--glass-cream-border); }
.vp-slot.on { background: var(--au-jade); color: #fff; border-color: var(--au-jade); }
.vp-book-slot { width: 100%; margin-top: 14px; }

.vp-reviews-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vp-rating { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink-3); }
.vp-rating small { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--ink-1); }
.vp-review { padding: 12px 0; border-top: 1px solid var(--glass-cream-border); }
.vp-review:first-of-type { border-top: none; }
.vp-review-top { display: flex; align-items: center; gap: 8px; }
.vp-review-name { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.vp-review-date { font-size: 10px; color: var(--ink-1); }
.vp-stars { display: flex; gap: 1px; }
.vp-quote { margin: 8px 0 0; font-family: var(--font-display); font-style: italic; font-size: 15px; line-height: 1.55; color: var(--ink-1); }

/* The bar that sticks to the bottom exists for phones only; wider screens have the button in the top bar. */
.vp-sticky { display: none; }
@media (min-width: 900px) {
  .vp-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .vp-name { font-size: 30px; }
  .vp-hero { padding: 28px 28px; gap: 22px; }
  .vp-avatar { width: 100px; height: 100px; }
}
@media (max-width: 640px) {
  .vp-topbook { display: none; }
  .vp-page { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 96px); }
  .vp-sticky {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 12px; right: 12px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 10px); z-index: 1100; padding: 10px 10px 10px 16px; border-radius: 22px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-cream-border); box-shadow: 0 12px 36px rgba(61,46,30,0.18);
  }
  .vp-sticky-price { display: flex; flex-direction: column; min-width: 0; }
  .vp-sticky-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-1); }
  .vp-sticky-amount { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink-3); line-height: 1.1; }
  .vp-sticky .btn-botanical { min-height: 44px; white-space: nowrap; }
  .vp-hero { padding: 18px 14px; }
  .vp-name { font-size: 24px; }
}

/* ── Chat: a finished consultation ──────────────────────────── */
.chat-ended { margin: 8px 16px 16px; padding: 14px 16px; border-radius: 16px; text-align: center; font-size: 13px; color: var(--au-ink-3); background: rgba(255,255,255,0.7); border: 1px solid var(--glass-cream-border); }

.chat-wait { margin: 0 16px 6px; font-size: 11px; color: var(--au-ink-3); text-align: center; }
.chat-wait.is-error { color: var(--emerg, #b3261e); }

/* ═══ PET PAGE (/pets/{id}) ═══════════════════════════════════════════════
   Cover and avatar, an "Up next" card, one segmented control, and the .rx-tl timeline. */
.pd-cover {
  height: 150px; display: flex; align-items: flex-start; padding: 16px 20px; gap: 10px;
  background: linear-gradient(180deg, rgba(244,168,184,.30) 0%, rgba(232,201,122,.18) 60%, transparent 100%);
}
.pd-hero { display: flex; flex-direction: column; align-items: center; margin: -76px 0 20px; padding: 0 20px; text-align: center; }
.pd-avatar { position: relative; }
.pd-photo-btn {
  position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--n-0); color: var(--jade-500); border: 1px solid var(--n-200); box-shadow: var(--sh-2);
}
.pd-photo-btn:hover { background: var(--n-50); }
.pd-photo-btn:focus-within { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.pd-photo-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.pd-name { font-size: 40px; line-height: 1; letter-spacing: -0.035em; margin: 14px 0 0; }
.pd-sub { font-size: 14px; color: var(--n-500); margin-top: 6px; }
.pd-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.pd-chips:empty { display: none; }
.pd-chip { font-size: 12px; font-weight: 600; color: var(--n-600); background: var(--n-100); padding: 4px 12px; border-radius: 999px; }
.pd-chip.is-jade { color: var(--jade-700); background: var(--jade-50); }
.pd-chip.is-coral { color: #8A4520; background: rgba(224,120,86,.14); }
.pd-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.pd-alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 12px; font-size: 13px; color: var(--n-800);
  background: rgba(224,120,86,.08); border: 1px solid rgba(224,120,86,.25); border-radius: var(--r-md, 14px);
}

.pd-upnext {
  padding: 18px; margin-bottom: 20px; border-radius: 20px; border: 1px solid var(--jade-100);
  background: linear-gradient(180deg, var(--jade-50), var(--n-0));
}
.pd-upnext.is-alert { border-color: rgba(200,70,48,.3); background: linear-gradient(180deg, var(--emerg-tint), var(--n-0)); }
.pd-upnext-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--jade-700);
}
.pd-upnext.is-alert .pd-upnext-eyebrow { color: var(--emerg); }
.pd-upnext-pill { padding: 3px 10px; border-radius: 999px; background: var(--jade-500); color: #fff; letter-spacing: .02em; text-transform: none; font-family: var(--font-body, inherit); }
.pd-upnext.is-alert .pd-upnext-pill { background: var(--emerg); }
.pd-upnext-title { font-size: 20px; font-weight: 700; color: var(--n-800); letter-spacing: -.01em; }
.pd-upnext-sub { font-size: 13px; color: var(--n-500); margin: 4px 0 14px; }

.pd-tabs { overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs .seg { width: max-content; }

.pd-card { display: block; padding: 18px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: 18px; box-shadow: var(--sh-2); color: inherit; text-decoration: none; }
.pd-card-head { font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--jade-700); margin-bottom: 10px; }
.pd-card-text { font-size: 13px; color: var(--n-600); line-height: 1.6; margin: 0 0 14px; }
.pd-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--n-100); }
.pd-row:last-child { border-bottom: none; }
.pd-row-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--jade-50); color: var(--jade-500); border: 1px solid var(--jade-100); }
.pd-row-icon.is-alert { background: var(--emerg-tint); color: var(--emerg); border-color: rgba(200,70,48,.3); }
.pd-row-main { flex: 1; min-width: 0; }
.pd-row-title { font-size: 14px; font-weight: 600; color: var(--n-800); }
.pd-row-sub { font-size: 12px; color: var(--n-500); margin-top: 2px; }
.pd-row-end { text-align: right; flex-shrink: 0; }
.pd-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--n-100); color: var(--n-600); }
.pd-pill.is-jade { background: var(--jade-50); color: var(--jade-700); }
.pd-pill.is-alert { background: var(--emerg-tint); color: var(--emerg); }
.pd-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--n-100); }

.pd-visit { display: flex; align-items: center; gap: 14px; padding: 14px; }
.pd-visit:hover { background: var(--n-50); }
.pd-visit-date { flex-shrink: 0; min-width: 52px; text-align: center; padding: 8px 12px; border-radius: 12px; background: var(--jade-50); }
.pd-visit-date span { display: block; font-size: 11px; font-weight: 600; color: var(--jade-700); }
.pd-visit-date strong { font-size: 22px; color: var(--n-800); }

.pd-tl-card { display: block; padding: 12px 14px; margin-top: -2px; border-radius: 14px; background: var(--n-0); border: 1px solid var(--n-100); color: inherit; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth); }
.pd-tl-card:hover { border-color: var(--jade-200); box-shadow: var(--sh-2); }
.pd-tl-card:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.pd-tl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pd-tl-line { font-size: 12px; color: var(--n-700); margin-top: 6px; }
.pd-tl-text { font-size: 13px; color: var(--n-600); line-height: 1.6; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-tl-cost { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--n-500); margin-top: 8px; }
@media (max-width: 520px) { .pd-name { font-size: 34px; } }

/* ═══ MEAT TRACEABILITY (/lots/{token}) ═══════════════════════════════════
   One verdict, the most serious fact wins. Red means do not eat. */
.tr-hero { text-align: center; padding: 24px 20px; margin-bottom: 14px; border-radius: 20px; border: 1px solid var(--jade-200); background: var(--jade-50); color: var(--n-600); }
.tr-hero-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--jade-100); color: var(--jade-700); }
.tr-hero-title { font-size: 20px; line-height: 1.25; font-weight: 700; margin: 0 0 6px; color: var(--jade-900); }
.tr-hero-text { font-size: 14px; line-height: 1.6; max-width: 380px; margin: 0 auto; }
.tr-hero-lot { margin-top: 16px; font-size: 14px; }
.tr-hero-lotno { font-family: var(--font-mono, monospace); font-size: 22px; font-weight: 700; color: var(--jade-900); }
.tr-hero-reason { margin: 12px auto 0; max-width: 420px; padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: left; background: rgba(0,0,0,.2); }
.tr-hero-note { margin-top: 8px; font-size: 13px; }
.tr-hero.is-incomplete { background: rgba(212,160,86,.12); border-color: rgba(212,160,86,.4); }
.tr-hero.is-incomplete .tr-hero-icon { background: rgba(212,160,86,.25); color: #6B4416; }
.tr-hero.is-incomplete .tr-hero-title, .tr-hero.is-incomplete .tr-hero-lotno { color: #6B4416; }
.tr-hero.is-recalled, .tr-hero.is-failedinspection, .tr-hero.is-pastuseby { background: var(--emerg); border-color: var(--emerg); color: #fff; }
.tr-hero.is-recalled .tr-hero-icon, .tr-hero.is-failedinspection .tr-hero-icon, .tr-hero.is-pastuseby .tr-hero-icon { background: rgba(255,255,255,.2); color: #fff; }
.tr-hero.is-recalled .tr-hero-title, .tr-hero.is-failedinspection .tr-hero-title, .tr-hero.is-pastuseby .tr-hero-title,
.tr-hero.is-recalled .tr-hero-lotno, .tr-hero.is-failedinspection .tr-hero-lotno, .tr-hero.is-pastuseby .tr-hero-lotno { color: #fff; }
.tr-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.tr-badge { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; background: var(--n-100); color: var(--n-600); }
.tr-badge.is-ok { background: var(--dvs-tint); color: var(--jade-700); }

/* ═══ RECONNECT DIALOG (the connection to the server dropped) ═════════════
   Blazor puts components-reconnect-show / -retrying / -failed / -paused / -resume-failed on the dialog. */
.rc-dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); margin: auto; color: var(--n-800); }
.rc-dialog:focus, .rc-dialog:focus-visible { outline: none; }
.rc-dialog::backdrop { background: rgba(22,19,16,.45); backdrop-filter: blur(3px); }
.rc-card { width: min(380px, calc(100vw - 32px)); padding: 28px 24px 24px; text-align: center; background: var(--n-0); border-radius: 22px; box-shadow: var(--sh-4); }
.rc-icon { position: relative; width: 56px; height: 56px; margin: 0 auto 16px; }
.rc-icon span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--jade-500); opacity: .6; animation: rc-pulse 1.6s var(--ease-smooth) infinite; }
.rc-icon span + span { animation-delay: .8s; }
@keyframes rc-pulse { from { transform: scale(.4); opacity: .7; } to { transform: scale(1); opacity: 0; } }
.rc-state { display: none; }
.rc-state h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: var(--n-800); }
.rc-state p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--n-600); }
.rc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.rc-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 14px var(--font-body, inherit); cursor: pointer; border: 1px solid var(--n-200); background: var(--n-0); color: var(--n-700); }
.rc-btn:hover { background: var(--n-50); }
.rc-btn:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
.rc-btn-primary { background: var(--jade-500); border-color: var(--jade-500); color: #fff; }
.rc-btn-primary:hover { background: var(--jade-700); }
.rc-dialog.components-reconnect-show .rc-s-show { display: block; }
.rc-dialog.components-reconnect-retrying .rc-s-show { display: none; }
.rc-dialog.components-reconnect-retrying .rc-s-retrying { display: block; }
.rc-dialog.components-reconnect-failed .rc-s-show, .rc-dialog.components-reconnect-failed .rc-s-retrying { display: none; }
.rc-dialog.components-reconnect-failed .rc-s-failed { display: block; }
.rc-dialog.components-reconnect-failed .rc-icon span { animation: none; opacity: .25; transform: none; }
.rc-dialog.components-reconnect-paused .rc-s-show, .rc-dialog.components-reconnect-paused .rc-s-retrying { display: none; }
.rc-dialog.components-reconnect-paused .rc-s-paused { display: block; }
.rc-dialog.components-reconnect-resume-failed .rc-s-show, .rc-dialog.components-reconnect-resume-failed .rc-s-retrying, .rc-dialog.components-reconnect-resume-failed .rc-s-paused { display: none; }
.rc-dialog.components-reconnect-resume-failed .rc-s-resume-failed { display: block; }
@media (prefers-reduced-motion: reduce) { .rc-icon span { animation: none; opacity: .35; transform: none; } }

/* ═══ FIND A VET: the map ═════════════════════════════════════════════════
   Pins are small labels above the point, "you are here" is a dot with a ring, and on a phone the list and the map take turns. */
.vl-pin { width: 0; height: 0; }
.vl-pin-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 9px));
  padding: 4px 10px; border-radius: 10px; border: 2px solid #fff; white-space: nowrap; cursor: pointer;
  font: 600 11px/1.3 var(--font-body, system-ui); color: #fff; background: var(--jade-500); box-shadow: 0 3px 10px rgba(33,68,60,.35);
}
.vl-pin-label::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 8px; height: 8px; background: inherit;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(-50%) rotate(45deg);
}
.vl-pin:hover .vl-pin-label { background: var(--jade-700); }
.vl-pin.is-selected .vl-pin-label { background: var(--coral-d); z-index: 5; }
.vl-me { position: relative; }
.vl-me-halo { position: absolute; inset: 0; border-radius: 50%; background: rgba(47,93,82,.14); border: 1px solid rgba(47,93,82,.35); }
.vl-me-dot { position: absolute; left: 19px; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--jade-500); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(47,93,82,.45); }
.vl-map-note {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000; max-width: calc(100% - 32px);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; text-align: center; color: var(--n-800);
  background: rgba(255,255,255,.95); border: 1px solid var(--n-200); box-shadow: var(--sh-2);
}
.leaflet-container { font-family: var(--font-body, system-ui); }

.vl-locnote { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 20px; font-size: 13px; color: var(--n-600); background: var(--n-50); border-bottom: 1px solid var(--n-100); }
.vl-locnote-btn { background: none; border: none; padding: 4px 0; cursor: pointer; font: 600 13px var(--font-body, inherit); color: var(--jade-700); text-decoration: underline; text-underline-offset: 2px; }
.vl-locnote-btn:hover { color: var(--jade-500); }

.vl-toggle { display: none; }
@media (max-width: 760px) {
  .vl-toggle {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 20px; border-radius: 999px; border: none; cursor: pointer;
    font: 600 14px var(--font-body, inherit); color: #fff; background: var(--n-800); box-shadow: var(--sh-3);
  }
  .vl-toggle:focus-visible { outline: 3px solid var(--jade-200); outline-offset: 2px; }
  .vl-map-pane.vl-map-visible { height: calc(100vh - 130px); min-height: 320px; }
}

/* Cancel dialog, refund line, and the cancellation policy shown on a vet's profile and at booking */
.cx-loading { display: flex; align-items: center; gap: 10px; padding: 18px 0 8px; font-size: 14px; color: var(--n-600); }
.cx-rows { margin: 0 0 14px; padding: 4px 16px; background: var(--n-50); border-radius: 14px; }
.cx-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--n-600); }
.cx-row + .cx-row { border-top: 1px solid var(--n-100); }
.cx-row dt, .cx-row dd { margin: 0; }
.cx-row dd { font-weight: 600; color: var(--n-800); white-space: nowrap; }
.cx-row.is-total { color: var(--n-800); font-weight: 600; }
.cx-row.is-total dd { color: var(--jade-700); }
.cx-policy { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--n-600); }
.cx-policy strong { color: var(--n-800); }
.cx-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--jade-50); color: var(--jade-900); font-size: 13.5px; line-height: 1.5; }
.cx-note svg { flex-shrink: 0; margin-top: 2px; }
.upg-actions .btn-danger { flex: 1.4; height: 46px; justify-content: center; }

/* Practice settings (vet) */
.pp-card { background: var(--n-0); border: 1px solid var(--n-100); border-radius: 18px; padding: 20px; margin-bottom: 18px; box-shadow: var(--sh-1); }
.pp-card .bk-h { margin-bottom: 14px; }
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; color: var(--n-800); cursor: pointer; }
.pp-check input { width: 20px; height: 20px; accent-color: var(--jade-500); }
@media (max-width: 560px) { .pp-grid { grid-template-columns: 1fr; } }
