/* Kibble & Keys: the Ink theme on warm paper (the default brand; Admin → Settings → Brand can change the colors,
   which are applied over these tokens at load). Display: Fraunces (matches the wordmark). Body: Figtree (r308; replaced
   Atkinson Hyperlegible and Nunito: one friendly sans, plain zeros in dates and prices). Button colors keep white text at 4.5:1 or better. */

:root {
  /* Ink by day: the default until the brand loads (Admin -> Settings -> Brand sets these per theme, day and night) */
  --ink: #22262E;
  --muted: #5F6573;
  --paper: #F5F2EC;          /* page canvas */
  --card: #FFFFFF;           /* cards, inputs, raised surfaces */
  --line: #E3DDD3;
  --field: #2F3A4F;          /* primary: buttons */
  --field-dark: #232C3D;     /* primary deep: links, hover, focus */
  --on-field: #FFFFFF;       /* text on primary */
  --mint: #E9EBEF;           /* wash: soft panels */
  --gold: #B07156;           /* accent: highlights, ratings, notices */
  --art-bg: #F5F2EC;         /* the day page color the artwork is drawn on (same at night) */
  --danger: #B3402E;
  color-scheme: light;
  /* Mixed from the theme, so every theme and night mode carries through */
  --fog: color-mix(in srgb, var(--ink) 6%, var(--paper));          /* quiet buttons, chips */
  --lvl-standard: color-mix(in srgb, var(--ink) 7%, var(--card));
  --chalk: var(--paper);
  --coral-wash: color-mix(in srgb, var(--gold) 12%, var(--card));   /* notices */
  --coral-soft: color-mix(in srgb, var(--gold) 24%, var(--card));   /* "waiting" tags, soft highlights */
  --coral-mid: color-mix(in srgb, var(--gold) 50%, var(--card));    /* lines, connectors */
  --navy-wash: color-mix(in srgb, var(--ink) 6%, var(--card));      /* success, confirmations */
  --navy-soft: color-mix(in srgb, var(--ink) 11%, var(--card));     /* "confirmed" tags, neutral chips */
  --danger-wash: color-mix(in srgb, var(--danger) 10%, var(--card));
  --danger-soft: color-mix(in srgb, var(--danger) 22%, var(--card));
  --body-ink: color-mix(in srgb, var(--ink) 86%, var(--paper));     /* long-form body text */
  --stripe-a: color-mix(in srgb, var(--ink) 5%, var(--card));
  --stripe-b: color-mix(in srgb, var(--ink) 10%, var(--card));
  --stripe-ink: color-mix(in srgb, var(--ink) 45%, var(--card));
  --lvl-busy: var(--coral-soft);
  --lvl-peak: var(--coral-mid);
  --radius-panel: 18px;
  --radius-cell: 8px;
  --display: "Young Serif", Georgia, "Times New Roman", serif;   /* r309: headings (one weight; never faked bold) */
  --wordmark: "Fraunces", Georgia, "Times New Roman", serif;     /* the business name beside the logo stays as it was */
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;   /* r308: warm, modern and very legible; plain zeros */
  --round: "Figtree", system-ui, sans-serif;   /* prices, clocks and counters: same family, tabular figures */
}
/* Hearth by night (until the brand loads). Night follows the device unless the day/night switch picks one. */
:root[data-mode="night"] { --ink: #ECE8E1; --muted: #A9ADB8; --paper: #171A21; --card: #1F232C; --line: #323745; --field: #9DB0D0; --field-dark: #BFCDE4; --on-field: #171A21; --mint: #262D3B; --gold: #D49A7F; --danger: #F08A78; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="day"]) { --ink: #ECE8E1; --muted: #A9ADB8; --paper: #171A21; --card: #1F232C; --line: #323745; --field: #9DB0D0; --field-dark: #BFCDE4; --on-field: #171A21; --mint: #262D3B; --gold: #D49A7F; --danger: #F08A78; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--field-dark); }
:focus-visible { outline: 3px solid var(--field-dark); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: var(--fs-md); }
.rosette { width: 30px; height: 30px; flex: none; }
.topbar nav { display: flex; gap: 8px; align-items: center; }
.topbar nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink); }
.topbar nav a:hover { background: var(--fog); }

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 20px; font: 700 1rem var(--body);
  background: var(--field); color: var(--on-field); cursor: pointer; text-decoration: none; min-height: 46px;
}
.btn:hover { background: var(--field-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.quiet { background: var(--fog); color: var(--ink); }
.btn.quiet:hover { background: var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 8px 16px; min-height: 36px; font-size: var(--fs-sm); }

label { display: block; font-weight: 700; margin: 16px 0 8px; }
label .hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--card);
}
input:focus, select:focus, textarea:focus { border-color: var(--field); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--field) 22%, transparent); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 1fr 1fr 1fr; } }

.panel { background: var(--mint); border-radius: var(--radius-panel); padding: 20px; margin: 16px 0; }
.panel.white { background: var(--card); border: 1.5px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.notice { border-left: 4px solid var(--gold); background: var(--coral-wash); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.error { border-left: 4px solid var(--danger); background: var(--danger-wash); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.ok { border-left: 4px solid var(--ink); background: var(--navy-wash); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.hidden { display: none !important; }

/* Hero */
.hero { padding: 40px 0 32px; }
.hero .wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 24px; } }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: var(--fs-md); color: var(--muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Price calendar: the signature piece */
.cal { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.cal-head h2 { font-size: var(--fs-md); margin: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: var(--fs-xs); color: var(--muted); text-align: center; padding-bottom: 2px; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-cell); border: 0; padding: 4px;
  font: 600 .95rem var(--body); color: var(--ink); background: var(--lvl-standard); cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-width: 0;
}
.cal-day.busy { background: var(--lvl-busy); }
.cal-day.peak { background: var(--lvl-peak); }
.cal-day.blank { background: transparent; cursor: default; }
.cal-day.past { opacity: .35; cursor: default; }
.cal-day .pct { font-weight: 400; font-size: var(--fs-xs); }
.cal-day .fill { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(40,44,71,.12); }
.cal-day .fill i { display: block; height: 100%; border-radius: 2px; background: var(--ink); }
.cal-day .ribbon { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.cal-day[aria-pressed="true"] { outline: 3px solid var(--field); outline-offset: 1px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-detail { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--fog); font-size: var(--fs-sm); min-height: 3.2em; }

/* Sections on the landing page */
.band { padding: 40px 0; }
.band.fog { background: var(--fog); }
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service h3 { margin-bottom: 4px; }
.service .price { font-family: var(--round); font-size: var(--fs-md); font-weight: 700; color: var(--field-dark); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; padding-left: 46px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center; font-family: var(--round); font-weight: 700;
}
.policy { display: grid; gap: 16px; }
@media (min-width: 760px) { .policy { grid-template-columns: 1fr 1fr; } }

/* App shell */
.app-main { padding: 24px 0 60px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.tabs a { white-space: nowrap; text-decoration: none; color: var(--ink); padding: 8px 16px; border-radius: 999px; background: var(--fog); font-weight: 700; }
.tabs a.on { background: var(--field); color: var(--on-field); }
.list { display: grid; gap: 12px; }
.item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.item:hover { border-color: var(--field); box-shadow: 0 10px 24px -16px rgba(30,34,46,.5); }
.item .meta { color: var(--muted); font-size: var(--fs-sm); }
.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: var(--fs-xs); background: var(--fog); }
.tag.requested, .tag.quoted { background: var(--lvl-busy); }
.tag.confirmed, .tag.paid, .tag.completed { background: var(--navy-soft); }
.tag.cancelled, .tag.declined, .tag.failed, .tag.conflict { background: var(--danger-soft); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: var(--fs-xs); }
.checklist .done .dot { background: var(--field); border-color: var(--field); color: var(--on-field); }
.lines { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; }
.lines tr.total td { font-weight: 700; border-bottom: 0; padding-top: 12px; }
.lines tr.dynamic td:first-child { color: var(--field-dark); }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; max-height: 60vh; overflow: auto; }
.doc h2 { font-size: var(--fs-base); margin-top: 1em; }
.doc.release { border: 3px solid var(--ink); }
.doc.release h1 { font-size: 1.5rem; }
.times { display: flex; gap: 8px; flex-wrap: wrap; }
.times input { width: auto; }
#checkout { margin-top: 12px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; }
.chip[aria-pressed="true"] { background: var(--mint); color: var(--field-dark); border-color: var(--field); font-weight: 700; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: var(--fs-sm); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--muted); }
.footer .build-stamp { margin-top: 8px; font-size: var(--fs-xs); opacity: .7; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* visit check-ins (caretaker) and report cards (client) */
.checkins { margin: 12px 0; display: grid; gap: 8px; }
.ci { display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); }
.ci.arrived { border-color: var(--ink); background: var(--navy-wash); }
.ci-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ci-state { color: var(--muted); }
.ci.late { border-color: var(--danger); }
.ci .small:not(.btn) { color: var(--muted); }   /* not .btn.small: those keep white text */
.ci-actions { display: flex; gap: 8px; flex-wrap: wrap; }
dialog.report { border: 0; border-radius: var(--radius-panel); padding: 24px; width: min(560px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; }
dialog.report::backdrop { background: rgba(40, 44, 71, .45); }
dialog.report textarea { width: 100%; }
.report-card { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 16px; margin: 12px 0; background: var(--card); }
.report-card .when { font-family: var(--display); font-weight: 700; }
.report-card .done-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.report-card .done-list li { background: var(--lvl-standard); border-radius: 999px; padding: 4px 12px; font-size: var(--fs-sm); }
.report-card .notes { white-space: pre-line; margin: 8px 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.media-grid img, .media-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-cell); background: var(--fog); }
.media-grid a { display: block; }
.late-row { border-left: 4px solid var(--danger); }

/* care plan builder */
.plan { display: grid; gap: 8px; }
.plan-row { display: grid; grid-template-columns: 7.5rem 1fr 1fr auto auto; gap: 8px; align-items: center; }
.plan-row input, .plan-row select { margin: 0; }
@media (max-width: 560px) { .plan-row { grid-template-columns: 1fr 1fr; } }

/* before your stay */
.prep-steps li > div { flex: 1; }
.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 16px; border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.upload input { max-width: 100%; }
.rate { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.emerg { border: 2px solid var(--danger); border-radius: var(--radius-panel); padding: 16px; margin: 12px 0; background: var(--danger-wash); }
.emerg h3 { margin: 0 0 8px; color: var(--danger); }
.lvl-note { border-left: 4px solid var(--line); } .lvl-concern { border-left: 4px solid var(--gold); } .lvl-urgent, .lvl-emergency { border-left: 4px solid var(--danger); }

/* settings: number with unit */
.unit { display: flex; align-items: center; gap: 8px; }
.unit input { max-width: 7rem; margin: 0; }
.unit span { color: var(--muted); font-size: var(--fs-sm); }
.ladder { margin-top: 12px; padding-left: 1.2em; }
#safef h3 { margin: 24px 0 4px; }
#safef .chip-row { margin-bottom: 4px; }

/* walk maps and the caretaker walk screen */
.walkmap { height: 220px; border-radius: var(--radius-cell); margin-top: 12px; background: var(--fog); z-index: 0; }
.walk-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-weight: 700; }
.walk-stats span { font-weight: 400; color: var(--muted); }
.walk-live { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--coral-wash); border-left: 4px solid var(--gold); padding: 12px 12px; border-radius: 0 10px 10px 0; margin-top: 8px; }
.walk-ev { font-size: 20px; line-height: 24px; text-align: center; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.walkscreen { position: fixed; inset: 0; z-index: 1000; background: var(--paper); display: flex; flex-direction: column; }
.walkscreen .ws-map { flex: 1; min-height: 40vh; }
.walkscreen .ws-top { padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.walkscreen .ws-clock { font-family: var(--round); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.walkscreen .ws-dist { font-family: var(--round); font-size: 1.4rem; font-weight: 700; color: var(--field-dark); }
.walkscreen .ws-btns { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 8px; padding: 12px 16px; }
.walkscreen .ws-btns button { min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: .9rem; cursor: pointer; }
.walkscreen .ws-btns button b { display: block; font-size: 1.5rem; line-height: 1.2; }
.walkscreen .ws-btns button:active { background: var(--fog); }
.walkscreen .ws-end { padding: 0 16px 16px; }
.walkscreen .ws-end .btn { width: 100%; min-height: 54px; }
.walkscreen .ws-note { padding: 0 16px 8px; font-size: .85rem; color: var(--muted); }
.setup-row { display: grid; grid-template-columns: 1.5em 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); word-break: break-word; }

/* care checklist */
.todo { margin-top: 4px; }
.task { align-items: flex-start; padding: 8px 0; margin: 0; font-weight: 400; border-top: 1px dashed var(--line); }
.task.must b:first-child { color: var(--ink); }
.task input { margin-top: 4px; }
.ci .todo { flex-basis: 100%; }
.care-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.care-row .chip-row { grid-column: 1 / -1; }
.care-row .full { grid-column: 1 / -1; }

.task-list { list-style: none; padding: 0; margin: 8px 0; font-size: var(--fs-sm); }
.task-list li { padding: 4px 0; }
.task-list .miss-t { color: var(--danger); }

/* pet photos */
.pet-av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--mint); border: 2px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); }
.pet-av-none { display: inline-grid; place-items: center; font-family: var(--round); font-weight: 900; color: var(--field-dark); }
.pet-chips { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 8px 0 12px; }
.pet-chip { display: inline-flex; align-items: center; gap: 8px; }
.pet-chip b { font-family: var(--display); }
.task-pet { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; font-family: var(--round); font-weight: 800; }
.pet-photo-edit { display: flex; align-items: center; gap: 16px; margin: 8px 0 16px; }

/* pay */
.team-item { flex-wrap: wrap; align-items: flex-start; }
.team-item > div:first-child { flex: 1 1 220px; }
.team-item > .score, .team-item > .small, .team-item > .unit { flex: 1 1 100%; }
.team-item .unit input { max-width: 5rem; }
.score { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.score div { background: var(--mint); border-radius: 12px; padding: 8px; text-align: center; }
.score div.bad { background: var(--coral-soft); }
.score b { display: block; font-family: var(--round); font-weight: 900; font-size: var(--fs-md); }
.score span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.2; display: block; }
.earn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.earn b { display: block; font-family: var(--round); font-size: 1.5rem; font-weight: 900; color: var(--field-dark); }
.pay-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.pay-row .meta { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-sm); }

/* assistant */
.assist-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--lvl-standard); }
.proposal { padding: 8px 0; border-bottom: 1px solid var(--line); }
.proposal:last-child { border-bottom: 0; }
#amic.rec { background: var(--danger); color: var(--on-field); }

/* Client and caretaker apps: tab bar moves to the bottom on phones, where thumbs are */
@media (max-width: 640px) {
  body.app-shell .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; gap: 4px; justify-content: space-around;
    background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  body.app-shell .tabs a { background: transparent; padding: 8px 12px; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); }
  body.app-shell .tabs a.on { background: var(--lvl-standard); color: var(--field-dark); }
  body.app-shell main { padding-bottom: 84px; }
}

/* ===================================================================
   Landing page: friendly marketplace layout (photo-led hero, booking
   widget, service tiles, guarantee band, steps, reviews, prices).
   =================================================================== */
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

body.lp { background: var(--card); }
.lp-top { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.lp-top .brand { font-weight: 900; }
.lp-top nav a:not(.btn) { font-weight: 700; color: var(--ink); }
.lp-top nav .btn { color: var(--on-field); }
.lp-top nav .btn:hover { background: var(--field-dark); }

/* Sections */
.lp-band { padding: 56px 0; }
.lp-band h2 { margin-bottom: .6em; }
.lp-mint { background: var(--mint); }
.lp-sub { font-size: 1.1rem; color: var(--muted); }
.lp-btn-big { min-height: 54px; padding: 14px 28px; font-size: 1.08rem; }
.lp-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--field-dark); display: inline-grid; place-items: center; flex: none; }
.lp-ico svg { width: 28px; height: 28px; }
.lp-ico.sm { width: 42px; height: 42px; } .lp-ico.sm svg { width: 22px; height: 22px; }
.lp-mint .lp-ico { background: var(--card); }

/* Hero */
.lp-hero { padding: 36px 0 64px; background: var(--mint); overflow: hidden; border-radius: 0 0 50% 50% / 0 0 48px 48px; }
.lp-hero-grid { display: grid; gap: 34px; align-items: center; }
.lp-hero-grid > * { min-width: 0; }
@media (min-width: 940px) { .lp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 48px; } .lp-hero { padding: 56px 0 72px; } }
.lp-hero h1 { max-width: 13ch; margin-bottom: .35em; }
.lp-lede { font-size: 1.15rem; color: var(--body-ink); max-width: 34em; }

/* Booking widget */
.lp-book { background: var(--card); border-radius: 22px; padding: 20px; margin-top: 22px; box-shadow: 0 18px 40px -18px rgba(30,34,46,.35), 0 2px 6px rgba(40,44,71,.06); max-width: 560px; }
.lp-book-q { font-family: var(--round); font-weight: 800; font-size: 1.15rem; margin: 0 0 12px; }
.lp-svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.lp-svc-opt { margin: 0; font-weight: 700; cursor: pointer; position: relative; }
.lp-svc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-svc-opt span { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 6px 10px; border: 2px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .9rem; line-height: 1.15; height: 100%; transition: border-color .15s, background .15s, color .15s; }
.lp-svc-opt span b { color: var(--ink); }
.lp-svc-opt:hover span { border-color: var(--coral-mid); }
.lp-svc-opt input:checked + span { border-color: var(--field); background: var(--mint); color: var(--field-dark); }
.lp-svc-opt input:focus-visible + span { outline: 3px solid var(--field-dark); outline-offset: 2px; }
.lp-book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.lp-book-row label { margin: 10px 0 4px; font-size: .9rem; color: var(--muted); }
.lp-book .lp-btn-big { width: 100%; }
.lp-book-note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; text-align: center; max-width: none; }

/* Photo collage: the memorable piece. Rounded blobs, like a scrapbook of the pets she cares for. */
.lp-photos { position: relative; aspect-ratio: 1 / .95; max-width: 520px; width: 100%; margin: 0 auto; }
.lp-ph { position: absolute; object-fit: cover; box-shadow: 0 20px 40px -20px rgba(40,44,71,.45); border: 6px solid var(--card); background: var(--mint); }
.lp-ph0 { left: 0; top: 4%; width: 62%; height: 74%; border-radius: 46% 54% 44% 56% / 52% 46% 54% 48%; }
.lp-ph1 { right: 0; top: 0; width: 42%; height: 46%; border-radius: 50%; }
.lp-ph2 { right: 4%; bottom: 0; width: 46%; height: 48%; border-radius: 28px 28px 120px 28px; }
.lp-ph-fill { display: grid; place-items: center; color: var(--on-field); background: radial-gradient(circle at 30% 25%, #2bb57a, var(--field) 55%, var(--field-dark)); }
.lp-ph-fill > span { display: grid; place-items: center; width: 100%; height: 100%; }
.lp-ph-fill > span > svg { width: 42%; height: 42%; stroke-width: 1.3; }
.lp-ph-fill.alt { background: radial-gradient(circle at 35% 30%, var(--coral-soft), var(--gold)); color: var(--ink); }
.lp-ph-fill.gold { background: var(--card); }
.lp-ph-rosette .rosette { width: 52%; height: auto; margin: auto; }
.lp-ph-rosette { display: grid; place-items: center; width: 100%; height: 100%; }
.lp-badge { position: absolute; left: 6%; bottom: 3%; background: var(--card); border-radius: 16px; padding: 10px 14px 10px 44px; box-shadow: 0 12px 28px -12px rgba(40,44,71,.4); font-size: .85rem; color: var(--muted); line-height: 1.25; }
.lp-badge::before { content: ""; position: absolute; left: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23282C47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lp-badge b { display: block; color: var(--ink); font-family: var(--display); font-size: .98rem; }
/* Small paw-print accents behind the collage */
.lp-photos::before, .lp-photos::after { content: ""; position: absolute; width: 54px; height: 54px; opacity: .5; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4.2'/%3E%3Cellipse cx='5.5' cy='10' rx='2' ry='2.6'/%3E%3Cellipse cx='9.5' cy='6' rx='2' ry='2.6'/%3E%3Cellipse cx='14.5' cy='6' rx='2' ry='2.6'/%3E%3Cellipse cx='18.5' cy='10' rx='2' ry='2.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4.2'/%3E%3Cellipse cx='5.5' cy='10' rx='2' ry='2.6'/%3E%3Cellipse cx='9.5' cy='6' rx='2' ry='2.6'/%3E%3Cellipse cx='14.5' cy='6' rx='2' ry='2.6'/%3E%3Cellipse cx='18.5' cy='10' rx='2' ry='2.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.lp-photos::before { left: 58%; top: 50%; transform: rotate(18deg); width: 40px; height: 40px; }
.lp-photos::after { left: -2%; top: -6%; transform: rotate(-20deg); opacity: .3; }

/* One orchestrated entrance: the collage pieces settle in, then the badge. */
@media (prefers-reduced-motion: no-preference) {
  .lp-ph { animation: lp-pop .7s cubic-bezier(.2,.9,.3,1.25) both; }
  .lp-ph1 { animation-delay: .12s; } .lp-ph2 { animation-delay: .24s; }
  .lp-badge { animation: lp-rise .5s ease-out .5s both; }
  .lp-route { stroke-dasharray: 600; stroke-dashoffset: 600; animation: lp-draw 2.2s ease-out .3s forwards; }
}
@keyframes lp-pop { from { opacity: 0; transform: scale(.85) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }

/* Service tiles */
.lp-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lp-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px 18px; border: 1.5px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.lp-tile:hover { border-color: var(--field); box-shadow: 0 14px 30px -18px rgba(30,34,46,.5); transform: translateY(-2px); }
.lp-tile .lp-ico { margin-bottom: 8px; }
.lp-tile h3 { margin: 0; }
.lp-tile p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.lp-from { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.lp-from b { font-family: var(--round); font-weight: 900; font-size: 1.25rem; color: var(--field-dark); }

/* Peace of mind */
.lp-trust-grid { display: grid; gap: 26px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .lp-trust-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-trust-item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.lp-trust-item .lp-ico { grid-row: span 2; }
.lp-trust-item h3 { margin: 4px 0 4px; }
.lp-trust-item p { margin: 0; color: var(--body-ink); font-size: .97rem; }

/* Steps: a real sequence, so numbered */
.lp-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; counter-reset: st; }
@media (min-width: 800px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.lp-steps li { counter-increment: st; position: relative; padding: 64px 0 0; }
.lp-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font: 900 1.35rem var(--round); }
@media (min-width: 800px) { .lp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 60px; right: -16px; border-top: 3px dotted var(--coral-mid); } }
.lp-steps b { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 4px; }
.lp-steps span { color: var(--muted); }

/* Example report */
.lp-report-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .lp-report-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-checks li { position: relative; padding-left: 34px; font-weight: 700; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lp-report { margin: 0; max-width: 420px; justify-self: center; width: 100%; }
.lp-report-card { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: 0 24px 50px -24px rgba(30,34,46,.45); transform: rotate(-1.2deg); }
.lp-report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.lp-report-head b { display: block; font-family: var(--display); font-size: 1.1rem; }
.lp-report-head span:not(.lp-pill) { font-size: .88rem; color: var(--muted); }
.lp-pill { background: var(--mint); color: var(--field-dark); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; }
.lp-map { height: 150px; border-radius: 14px; background: var(--fog); overflow: hidden; }
.lp-map svg { width: 100%; height: 100%; display: block; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; text-align: center; }
.lp-stats b { display: block; font-family: var(--round); font-size: 1.35rem; font-weight: 900; }
.lp-stats span { font-size: .8rem; color: var(--muted); }
.lp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; }
.lp-chips li { background: var(--mint); color: var(--field-dark); border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 700; }
.lp-note { font-size: .95rem; margin: 0; color: var(--body-ink); }
.lp-report figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Reviews */
.lp-reviews { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lp-review { margin: 0; padding: 20px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.lp-stars { display: flex; gap: 2px; color: var(--gold); }
.lp-stars svg { width: 20px; height: 20px; fill: var(--gold); }
.lp-review blockquote { margin: 0; flex: 1; }
.lp-review figcaption { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-tag { background: var(--mint); color: var(--field-dark); font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* Prices */
.lp-prices-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .lp-prices-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.lp-price-list { display: grid; gap: 10px; }
.lp-price { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); }
.lp-price h3 { margin: 0; font-size: 1.05rem; }
.lp-price p { margin: 0; font-size: .9rem; color: var(--muted); }
.lp-amount { text-align: right; line-height: 1.1; }
.lp-amount b { display: block; font-family: var(--round); font-weight: 900; font-size: 1.5rem; color: var(--field-dark); }
.lp-amount small { display: block; font-size: .75rem; color: var(--muted); }
.lp-fine { margin-top: 18px; }

/* Meet Sommer */
.lp-about-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 820px) { .lp-about-grid { grid-template-columns: .8fr 1.2fr; gap: 52px; } }
.lp-about-photo { max-width: 360px; width: 100%; justify-self: center; }
.lp-about-photo img, .lp-photo-fallback { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 180px 180px 28px 28px; box-shadow: 0 24px 44px -24px rgba(40,44,71,.45); }
.lp-photo-fallback { display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, var(--card) 0, var(--mint) 70%); }
.lp-photo-fallback .rosette { width: 45%; height: auto; }
.lp-about h2 { margin-bottom: .1em; }
.lp-role { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--muted); margin: 0 0 18px; }
.lp-about blockquote { margin: 0 0 18px; font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.3; color: var(--field-dark); max-width: 30em; }
.lp-handle a { font-weight: 700; }

/* App */
.lp-app-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 820px) { .lp-app-grid { grid-template-columns: 1.3fr .7fr; } }
.lp-phone { justify-self: center; width: 190px; aspect-ratio: 9 / 18; border-radius: 34px; background: var(--ink); padding: 12px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--on-field); box-shadow: 0 30px 50px -26px rgba(40,44,71,.6); }
.lp-phone::before { content: ""; position: absolute; inset: 10px; border-radius: 26px; background: linear-gradient(170deg, var(--field) 0, var(--field-dark) 100%); }
.lp-phone > * { position: relative; }
.lp-phone .lp-ico { background: rgba(255,255,255,.15); color: var(--on-field); }
.lp-phone #appmark { width: 72px; height: 72px; border-radius: 18px; background: var(--card); display: grid; place-items: center; }
.lp-phone #appmark .rosette { width: 50px; height: 50px; }
.lp-phone b { font-family: var(--display); }

/* FAQ */
.lp-faq details { border-bottom: 1.5px solid var(--line); padding: 4px 0; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 14px 36px 14px 0; font-family: var(--display); font-weight: 800; font-size: 1.1rem; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--field-dark); display: grid; place-items: center; font-weight: 900; transition: transform .2s; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--body-ink); }

/* Final call to action */
.lp-final { background: var(--field); color: var(--on-field); text-align: center; padding: 60px 0; position: relative; overflow: hidden; }
.lp-final h2 { color: var(--on-field); }
.lp-final p { margin: 0 auto 22px; color: color-mix(in srgb, var(--on-field) 92%, transparent); font-size: 1.1rem; }
.lp-btn-light { background: var(--card); color: var(--field-dark); }
.lp-btn-light:hover { background: var(--mint); }
.lp-final::before, .lp-final::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.lp-final::before { width: 320px; height: 320px; left: -120px; top: -140px; }
.lp-final::after { width: 220px; height: 220px; right: -60px; bottom: -110px; }

@media (max-width: 520px) {
  .lp-band { padding: 44px 0; }
  .lp-book { padding: 16px; border-radius: 18px; }
  .lp-svc { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .lp-svc-opt { flex: 0 0 86px; scroll-snap-align: start; }
  .lp-photos { max-width: 330px; }
  .lp-about-photo { max-width: 240px; }
  .lp-tiles { gap: 10px; }
  .lp-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; }
  .lp-tile .lp-ico { grid-row: span 3; margin: 0; }
  .lp-from { margin-top: 4px; }
  .lp-price { grid-template-columns: auto 1fr; }
  .lp-amount { grid-column: 2; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .lp-amount b { display: inline; font-size: 1.25rem; }
  .lp-amount small { display: inline; }
  .lp-report-card { transform: none; }
}

/* App screens share the landing page's look: rounded cards, mint panels, Nunito headings */
body.app-shell .app-main h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
body.app-shell .report-card, body.app-shell .ci { border-width: 1.5px; border-radius: 18px; }

/* receipts (screen and print) */
.receipt { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 560px; }
.receipt-head { display: flex; align-items: center; gap: 12px; background: var(--field); color: var(--on-field); padding: 16px 16px; }
.receipt-head b { display: block; font-family: var(--display); font-size: var(--fs-md); }
.receipt-head span { font-size: var(--fs-sm); opacity: .9; }
/* r174: the app icon at its own size, rounded like a home-screen icon (it was a 72px picture squeezed into a 44px circle) */
.receipt-logo { width: 56px; height: 56px; flex: none; display: block; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28), 0 1px 3px rgba(0, 0, 0, .25); }
.receipt-logo img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }
.receipt-body { padding: 16px; }
.receipt-amount { background: var(--mint); border-radius: 14px; padding: 16px 16px; }
.receipt-amount span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.receipt-amount b { font-family: var(--round); font-size: 2rem; font-weight: 900; color: var(--field-dark); }
@media print {
  .topbar, .tabs, .footer, .no-print { display: none !important; }
  body, body.app-shell main { padding: 0 !important; background: #fff; }
  .receipt { border: 0; max-width: none; }
  .receipt-head, .receipt-amount { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* r32: admin pets with photos and dog pricing */
.adm-pet { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; }
.adm-pet p { margin: 0; }
.adm-pet.off { opacity: .6; }
.risk-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--danger-soft); color: var(--ink); }
.risk-tag.large { background: var(--navy-soft); color: var(--ink); }
.table-scroll { overflow-x: auto; }
.dogp input { width: 90px; padding: 8px 8px; }
.lines.dogp th, .lines.dogp td, .lines.dogp td:last-child { text-align: left; padding-right: 12px; }
.dogp th { font-size: var(--fs-xs); font-weight: 600; }
.pet-with-av { display: flex; gap: 12px; align-items: flex-start; }
.pet-with-av > div { min-width: 0; }
.visit .pet-chips { margin: 8px 0 4px; }

/* r32: add a visit */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.head-row h1 { margin-bottom: 8px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 8px; }
.seg label { position: relative; margin: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--field-dark); color: var(--on-field); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--field-dark); outline-offset: 2px; }
.pet-pick { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pet-pick-item { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; cursor: pointer; }

/* r34: reviews */
.rv-pets { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 4px 0 8px; }
.rv-stars { border: 0; padding: 0; margin: 0 0 8px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rv-stars legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.rv-stars label { position: relative; cursor: pointer; font-size: 2.6rem; line-height: 1; color: var(--line); margin: 0; padding: 0 2px; }
.rv-stars label.on { color: var(--gold); }
.rv-stars input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rv-stars label:has(input:focus-visible) { outline: 2px solid var(--field-dark); outline-offset: 2px; border-radius: 6px; }
.rv-word { margin-left: 12px; font-weight: 700; color: var(--field-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-review-reply { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--line); font-size: .92rem; }
.lp-rating { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; font-weight: 700; }
/* r269: stars drawn to the exact score (RemuApp style): a grey row of five with a gold row clipped to the score */
.kk-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.kk-stars-base, .kk-stars-fill { display: inline-flex; gap: 2px; white-space: nowrap; }
.kk-stars svg { width: var(--sz, 20px); height: var(--sz, 20px); }
.kk-stars-base { color: var(--line, #d9d4cc); }
.kk-stars-fill { position: absolute; inset: 0 auto 0 0; width: var(--pct, 100%); overflow: hidden; color: var(--gold); }
.kk-score { font-size: 1.6em; font-weight: 800; line-height: 1; }
.review-row { display: grid; gap: 8px; }
.review-row .stars { color: var(--gold); letter-spacing: 1px; }

/* r35: peak dates that open at an announced time */
.cal-day.locked { background: repeating-linear-gradient(135deg, var(--navy-wash) 0 6px, var(--navy-soft) 6px 12px); color: var(--muted); }
.cal-day.locked .pct { font-size: var(--fs-xs); }
.lock-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--navy-wash) 0 3px, var(--navy-soft) 3px 6px); vertical-align: -2px; }
.lines.peakt td, .lines.peakt th, .lines.peakt td:last-child { text-align: left; padding-right: 8px; }
.peakt input { width: 150px; padding: 8px 8px; }
.peakt input.t { width: 110px; }
.peakt td:first-child input { width: 170px; }
.peakt th { font-size: var(--fs-xs); font-weight: 600; }
.cal-day.held { background: repeating-linear-gradient(135deg, var(--coral-wash) 0 6px, var(--coral-soft) 6px 12px); }

/* ---------------------------------------------------------------- brand mark and mascot */
.rosette.brand-mark { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: inline-block; vertical-align: middle; }
.lp-photo-fallback .brand-mark { width: 72px; height: 72px; border-radius: 16px; }
.kibble { display: block; height: auto; margin: 0 auto 12px; }
.kibble.sm { width: 120px; } .kibble.md { width: 170px; } .kibble.lg { width: 230px; }
.empty-kibble { text-align: center; padding: 16px 12px; color: var(--muted); }
.lp-logo { display: block; width: clamp(150px, 22vw, 220px); height: auto; margin: 0 0 10px; }
.lp-logo-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin: -6px 0 10px; color: var(--ink); }
#services .kibble { margin: 0 0 8px; }

/* Stripe sandbox mode (set by STRIPE_MODE=test) */
.sandbox-banner { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--field) 10%, var(--card)) 0 12px, color-mix(in srgb, var(--field) 4%, var(--card)) 12px 24px);
  color: var(--field-dark); text-align: center; font-size: 13px; font-weight: 700; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--field) 28%, var(--line)); }
.sandbox-banner::before { content: 'Test'; background: var(--field); color: var(--on-field); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
/* the header sticks just under the banner instead of sliding beneath it */
.topbar { top: var(--sbh, 0px); }
.pay-mode { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pay-mode.test { background: #fff3c4; color: #5a4300; }
.pay-mode.live { background: var(--navy-soft); color: var(--ink); }
.code-copy { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--fog); padding: 2px 8px; border-radius: 6px; word-break: break-all; }
.sandbox-tools { border: 2px dashed var(--gold); background: var(--coral-wash); }
.lp-ico.art { width: 96px; height: 96px; border-radius: 18px; background: none; overflow: hidden; }
.lp-ico.art img { width: 100%; height: 100%; display: block; }
.lp-ico.sm.art { width: 64px; height: 64px; border-radius: 12px; }
.lp-svc-art { width: 56px; height: 56px; border-radius: 10px; }
.cal-day.closed { background: repeating-linear-gradient(135deg, var(--stripe-a), var(--stripe-a) 5px, var(--stripe-b) 5px, var(--stripe-b) 10px); color: var(--stripe-ink); text-decoration: line-through; }
.cal-day.closed .pct { text-decoration: none; }
.cal-legend .avail-swatch { background: var(--card); border: 1px solid var(--line); }
.cal-legend .closed-swatch { background: repeating-linear-gradient(135deg, var(--stripe-a), var(--stripe-a) 3px, var(--stripe-b) 3px, var(--stripe-b) 6px); }

/* Codes masked like passwords, with an eye to show them */
.secret-wrap { display: flex; align-items: center; gap: 8px; }
.secret-wrap input { flex: 1; min-width: 0; }
input.secret:not(.shown) { -webkit-text-security: disc; text-security: disc; }
.eye { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 8px;
  background: none; border: 1px solid transparent; border-radius: 10px; color: var(--muted); cursor: pointer; }
.eye:hover, .eye:focus-visible { color: var(--ink); border-color: var(--line); outline: none; }
.eye.inline { min-width: 34px; min-height: 34px; padding: 8px; vertical-align: middle; }
.secret-dd { display: flex; align-items: center; gap: 4px; }
.secret-val { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; font-size: 1.05em; }
.secret-val.shown { letter-spacing: 3px; font-weight: 800; font-size: 1.5rem; color: var(--ink); font-family: var(--round); }
/* r157: long codes (gate + door, Wi-Fi passwords) break between characters instead of spilling or splitting oddly */
.secret-val.shown { display: inline-block; max-width: 100%; letter-spacing: .08em; font-size: clamp(1.15rem, 5.2vw, 1.5rem); overflow-wrap: anywhere; line-height: 1.25; }
.entry-out dt { padding-top: 4px; }

/* Safety sharing */
.safety-bar { border-left-color: var(--ink); background: var(--navy-wash); }
.safety-bar.alert { border-left-color: var(--danger); }
.btn.sos { touch-action: none; user-select: none; -webkit-user-select: none; position: relative; overflow: hidden; }
.btn.sos.holding::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.35); transform-origin: left; animation: sos-fill 1.5s linear forwards; }
@keyframes sos-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .btn.sos.holding::after { animation: none; transform: scaleX(1); opacity: .5; } }

/* Visit card: one clear next step */
.btn.big-step { width: 100%; min-height: 56px; font-size: var(--fs-md); border-radius: 16px; }
.step-hint { text-align: center; margin-top: -4px; }
.entry-row { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-row .btn { flex: 1 1 auto; }
.visit .care { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.visit .care > summary, .visit-more summary { cursor: pointer; padding: 8px 0; }
.visit-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; font-size: var(--fs-sm); }
.visit-more details { flex: 1 1 60%; }
.linkish { background: none; border: 0; padding: 8px 0; color: var(--field-dark); text-decoration: underline; font: inherit; cursor: pointer; }
.settings-head { font-size: var(--fs-md); margin: 32px 0 4px; color: var(--muted); }
.settings-head + details { margin-top: 8px; }

/* Get ready (one-time setup) */
.getready { display: flex; gap: 16px; align-items: flex-start; }
.getready .kibble.xs { width: 64px; margin: 0; flex: none; }
.gr-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.gr-steps li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; }
.gr-steps li.done { opacity: .6; }
.gr-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--coral-mid); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; color: var(--on-field); }
.gr-steps li.done .gr-dot { background: var(--ink); border-color: var(--ink); }
@media (max-width: 420px) { .getready .kibble.xs { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Little celebrations */
dialog.celebrate { text-align: center; max-width: 340px; border: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
dialog.celebrate h2 { margin: 8px 0; }
dialog.celebrate p { color: var(--body-ink); }
dialog.celebrate::backdrop { background: color-mix(in srgb, var(--ink) 35%, transparent); }

/* Settings: raw settings tucked under Advanced */
details.advanced > summary { cursor: pointer; list-style: revert; padding: 2px 0; }
details.advanced .adv-item { border-top: 1px solid var(--line, #E6DCCB); padding: 8px 0; }
details.advanced .adv-item:first-of-type { margin-top: 12px; }
details.advanced .adv-item > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.menut td:first-child { white-space: nowrap; }
.menut input[type="checkbox"] { width: auto; margin: 0; }
.jump { background: var(--coral-wash, #FCE9E4); border-radius: 12px; padding: 12px 16px; margin: 8px 0 16px; line-height: 2; }
.jump a { white-space: nowrap; }
h2.section-head { margin: 32px 0 8px; }
.menut th { text-align: left; }
.menut input::placeholder { font-style: italic; opacity: .6; }

/* Look-up-as-you-type (addresses, vets, businesses) */
.lookup-wrap { position: relative; }
.lookup-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--card); border: 1px solid var(--line, #E6DCCB); border-radius: 12px; box-shadow: 0 10px 28px rgba(40,44,71,.16); overflow: hidden; }
.lookup-item { padding: 12px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line, #E6DCCB); }
.lookup-item span { font-size: 13px; color: var(--muted, #5C6080); }
.lookup-item.on, .lookup-item:hover { background: var(--coral-wash, #FCE9E4); }
.lookup-foot { padding: 8px 16px; font-size: 11px; color: var(--muted, #5C6080); background: var(--fog); }
/* Vaccine record reading */
.vax-snap { display: inline-flex; gap: 8px; align-items: center; font-size: 16px; padding: 12px 16px; cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input.ai-filled { background: var(--coral-soft); border-color: var(--gold); }

/* Several pets side by side */
.pgrid { display: grid; grid-template-columns: minmax(140px, 190px) repeat(var(--pets), minmax(0, 1fr)); gap: 8px 12px; align-items: start;
  background: var(--card); border: 1px solid var(--line, #E6DCCB); border-radius: 16px; padding: 16px; }
.pg-head { position: sticky; top: 0; background: var(--card); padding: 4px 0 8px; border-bottom: 2px solid var(--line, #E6DCCB); z-index: 1; }
.pg-label { padding-top: 8px; }
.pg-label b { display: block; font-size: 14px; }
.pg-same { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0 0; }
.pg-same input { width: auto; margin: 0; }
.pg-cell input, .pg-cell select, .pg-cell textarea { width: 100%; margin: 0; }
.pg-cap, .pg-name { display: none; font-size: 12px; color: var(--muted, #5C6080); }
.pg-mirror { padding-top: 12px; }
@media (max-width: 719px) {
  .pgrid { grid-template-columns: 1fr; padding: 12px; }
  .pg-head { display: none; }
  .pg-label { border-top: 1px solid var(--line, #E6DCCB); padding-top: 12px; }
  .pg-cap { display: block; margin-bottom: 2px; }
  .pg-mirror { display: none; }
}

/* Trademark symbol on the brand name */
sup.tm { font-size: .5em; line-height: 0; vertical-align: super; margin-left: 1px; font-weight: 700; letter-spacing: 0; }
/* ™ placed at the top-right of a logo image (the image itself is untouched) */
.tm-wrap { position: relative; display: inline-block; max-width: 100%; }
.tm-wrap > img { display: block; max-width: 100%; height: auto; }
sup.tm-corner { position: absolute; top: 6%; right: -4px; font-size: 18px; color: var(--ink, #282C47); }
/* On the full logo the name is drawn along the bottom: the ™ goes just after "Keys", at its top right */
.tm-wordmark sup.tm-corner { top: 77%; right: 1%; font-size: 14px; }
/* Trademarks page */
.tm-list { display: grid; gap: 12px; }
.tm-item { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; margin: 0; }
.tm-art { display: flex; justify-content: center; align-items: center; min-height: 100px; }
.tm-art img { max-height: 140px; width: auto; }
.tm-word { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
@media (max-width: 560px) { .tm-item { grid-template-columns: 1fr; text-align: center; } }

/* franchise switcher (team and admin pages) */
.fr-switch select { font: inherit; font-size: var(--fs-sm); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line, #d9d4c7); background: var(--card, #fff); color: inherit; max-width: 46vw; }
.topbar #frswitch { margin-left: auto; margin-right: 12px; }
.fr-row label { display: block; margin-top: 8px; }
.fr-row input.fr-claims { width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.grid2 .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* Day / night switch: right end of every top bar */
.topbar .wrap > nav { margin-left: auto; }
.topbar #frswitch:not([hidden]) ~ nav { margin-left: 0; }
.mode-switch { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; padding: 0; }
.mode-switch:hover { background: var(--fog); }
@media (max-width: 420px) { .mode-switch { width: 36px; height: 36px; } }
/* The drawings are painted on the theme's day page color. They sit on that same color everywhere: invisible on the
   page, a soft tile on cards, and at night a small paper plate so the dark outlines don't disappear into a dark page
   (the artwork itself is never changed) */
img[src*="/assets/brand/"]:not([src*="mark"]) { background: var(--art-bg); border-radius: 14px; }
.lp-photo-fallback { background: var(--art-bg); }
:root[data-mode="night"] img[src*="/assets/brand/"]:not([src*="mark"]) { border-radius: 20px; padding: 12px; box-sizing: border-box; box-shadow: 0 4px 16px rgba(0, 0, 0, .28); }
:root[data-mode="night"] img[src*="/assets/brand/"][src*="/icons/"] { border-radius: 16px; padding: 8px; }
:root[data-mode="night"] img.lp-logo, :root[data-mode="night"] .lp-photo-fallback img { border-radius: 24px; padding: 16px; }
:root[data-mode="night"] .lp-photo-fallback img { box-shadow: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="day"]) img[src*="/assets/brand/"]:not([src*="mark"]) { border-radius: 20px; padding: 12px; box-sizing: border-box; box-shadow: 0 4px 16px rgba(0, 0, 0, .28); }
  :root:not([data-mode="day"]) img[src*="/assets/brand/"][src*="/icons/"] { border-radius: 16px; padding: 8px; }
  :root:not([data-mode="day"]) img.lp-logo, :root:not([data-mode="day"]) .lp-photo-fallback img { border-radius: 24px; padding: 16px; }
  :root:not([data-mode="day"]) .lp-photo-fallback img { box-shadow: none; }
}
/* the app mark already has its own solid tile: just round it */
img[src*="/assets/brand/"][src*="mark"]:not(.brand-mark) { border-radius: 22%; }
/* Phone headers with a franchise picker and the day/night button: keep everything on one line */
.topbar .brand span, .topbar nav a, .topbar nav button { white-space: nowrap; }
@media (max-width: 480px) {
  .topbar .wrap { gap: 8px; }
  .topbar #frswitch { margin-right: 4px; min-width: 0; }
  .topbar #frswitch select { max-width: 104px; }
  .topbar #frswitch:not([hidden]) ~ * .brand span:last-child, .topbar:has(#frswitch:not([hidden])) .brand span:not(#mark) { display: none; }
}

/* ===================================================================
   Buttons with depth, and selected states that never rely on color alone.
   Every "on" state has at least two cues besides hue: a solid fill, bolder
   text and a check mark or raised edge. Disabled is grey and flat, so it can
   never be mistaken for a lighter "on".
   =================================================================== */
:root {
  --lift: 0 1px 2px rgba(23, 20, 40, .10), 0 2px 6px rgba(23, 20, 40, .06);
  --btn-glow: 0 1px 2px color-mix(in srgb, var(--field-dark) 35%, transparent), 0 6px 14px -6px color-mix(in srgb, var(--field) 70%, transparent);
  --btn-edge: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .14);
  --edge-strong: color-mix(in srgb, var(--ink) 22%, var(--line));
}
:root[data-mode="night"] { --lift: 0 1px 2px rgba(0, 0, 0, .45), 0 3px 8px rgba(0, 0, 0, .30); --btn-glow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px -6px color-mix(in srgb, var(--field) 55%, transparent); --btn-edge: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="day"]) { --lift: 0 1px 2px rgba(0, 0, 0, .45), 0 3px 8px rgba(0, 0, 0, .30); --btn-glow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px -6px color-mix(in srgb, var(--field) 55%, transparent); --btn-edge: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .18); } }

/* primary: solid, lit from above, sits on a soft colored shadow */
.btn { background: linear-gradient(180deg, color-mix(in srgb, #fff 9%, var(--field)), var(--field)); box-shadow: var(--btn-edge), var(--btn-glow);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; letter-spacing: .005em; }
.btn:hover { background: linear-gradient(180deg, var(--field), var(--field-dark)); transform: translateY(-1px); box-shadow: var(--btn-edge), var(--btn-glow), 0 8px 18px -8px color-mix(in srgb, var(--field) 60%, transparent); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); }
.btn:focus-visible { outline: 3px solid var(--field-dark); outline-offset: 3px; }
.btn.danger { background: linear-gradient(180deg, color-mix(in srgb, #fff 9%, var(--danger)), var(--danger)); box-shadow: var(--btn-edge), 0 6px 14px -6px color-mix(in srgb, var(--danger) 70%, transparent); }
/* secondary: a real button on a card, with an edge and a lift, not grey fog */
.btn.quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge-strong), var(--lift); }
.btn.quiet:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--field), var(--lift); color: var(--field-dark); }
.btn.quiet:active { box-shadow: inset 0 0 0 1.5px var(--field), inset 0 2px 4px rgba(0, 0, 0, .12); }
/* disabled: flat, grey, dashed edge, no brand color at all */
.btn[disabled], .btn[disabled]:hover, .btn.quiet[disabled] { opacity: 1; background: var(--fog); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); transform: none; cursor: not-allowed; background-image: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none; transition: none; } }

/* tab rows: off = outlined, on = filled, raised and bolder */
.tabs a { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; color: var(--muted); }
.tabs a:hover { box-shadow: inset 0 0 0 1.5px var(--edge-strong); color: var(--ink); }
.tabs a.on { background: var(--field); color: var(--on-field); font-weight: 800; box-shadow: var(--btn-edge), var(--btn-glow); }
@media (max-width: 640px) {
  body.app-shell .tabs a { box-shadow: none; font-weight: 600; position: relative; }
  body.app-shell .tabs a.on { background: var(--field); color: var(--on-field); font-weight: 800; box-shadow: var(--btn-glow); }
}

/* chips: on = filled with a check mark */
.chip { box-shadow: var(--lift); }
.chip[aria-pressed="true"] { background: var(--field); color: var(--on-field); border-color: var(--field-dark); font-weight: 800; box-shadow: var(--btn-edge), var(--btn-glow); }
.chip[aria-pressed="true"]::before { content: '✓'; margin-right: 8px; font-weight: 900; }

/* segmented choices: the chosen one is raised */
.seg { background: var(--fog); border-color: var(--line); }
.seg label { color: var(--muted); font-weight: 600; }
.seg label:has(input:checked) { background: var(--field); color: var(--on-field); font-weight: 800; box-shadow: var(--btn-edge), var(--btn-glow); }

/* service tiles on the home page: chosen = colored edge, raised, check badge */
.lp-svc-opt span { background: var(--card); box-shadow: var(--lift); }
.lp-svc-opt input:checked + span { border-color: var(--field); background: var(--mint); color: var(--ink); box-shadow: 0 0 0 1px var(--field), var(--btn-glow); transform: translateY(-1px); }
.lp-svc-opt input:checked + span::after { content: '✓'; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--field); color: var(--on-field); font-size: .8rem; font-weight: 900; box-shadow: 0 0 0 2px var(--card); }
.cal-day[aria-pressed="true"] { outline: 3px solid var(--field); box-shadow: var(--btn-glow); font-weight: 800; }
/* Admin -> Brand preview */
.bprev-head { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.bprev-head .seg { margin: 0; }
.bprev { border-radius: 16px; padding: 16px; max-width: 460px; margin-top: 8px; transition: background-color .2s; }
.bprev-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.bprev-tabs span { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); }
.bprev-card { border-radius: 12px; padding: 16px; }
.bprev-title { font-family: var(--display); font-weight: 700; font-size: var(--fs-md); }
.bprev-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bprev-btn { display: inline-block; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: var(--fs-sm); }

/* Browser autofill: keep the theme's field colors instead of the browser's yellow */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px color-mix(in srgb, var(--field) 6%, var(--card)) inset; box-shadow: 0 0 0 1000px color-mix(in srgb, var(--field) 6%, var(--card)) inset;
  transition: background-color 9999s ease-out 0s; }
input:autofill { background: color-mix(in srgb, var(--field) 6%, var(--card)); color: var(--ink); }
/* Admin: every section stays in view (tabs wrap onto a second line instead of hiding off the side) */
body:not(.app-shell) #tabs.tabs { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
@media (max-width: 640px) { body:not(.app-shell) #tabs.tabs a { padding: 8px 12px; font-size: var(--fs-sm); } }
.geo-miss { color: var(--danger); font-weight: 700; margin-top: 8px; }
.geo-ok { margin-top: 8px; }
/* Directions button with the chosen map app beside it */
.dir { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; vertical-align: middle; }
.dir-go svg { margin-right: 2px; }
.dir-app { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: var(--fs-sm); color: var(--field-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
dialog.map-pick { max-width: 360px; }
.map-pick-list { display: grid; gap: 12px; margin: 12px 0 16px; }
.map-pick-list .btn { width: 100%; }
dialog { background: var(--card); color: var(--ink); }
.changes { margin: 8px 0 12px; padding-left: 16px; } .changes li { margin: 4px 0; }
/* Quick add and final bill */
.qadd { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0 4px; }
.qadd select { max-width: 320px; }
.qadd-disc { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qadd-disc input { width: 76px; }
.qline.added input:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.fb-sum { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; max-width: 460px; }
.fb-sum div { display: flex; justify-content: space-between; gap: 12px; }
.fb-due { font-size: var(--fs-base); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.billbox { margin: 12px 0; border: 1.5px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.billbox summary { cursor: pointer; }
.bill-adds { list-style: none; padding: 0; margin: 8px 0; }
.bill-adds li { display: flex; align-items: center; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.bill-adds li span { flex: 1; }
@media (min-width: 640px) { .row.four { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; } }
.nc-pet { margin-bottom: 8px; }
/* Calendar: legend matches the days, trip ranges, two months, part days */
.cal-legend .avail-swatch { background: var(--lvl-standard); border: 0; }
.cal-legend .part-swatch { background: linear-gradient(135deg, var(--lvl-standard) 50%, var(--stripe-a) 50%); }
.cal-legend .pick-swatch { background: var(--field); }
.cal:not(.range) .cal-mlabel { display: none; }
.cal-mlabel { font-size: var(--fs-base); margin: 0 0 8px; }
.cal.two .cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cal-day.partial { background: linear-gradient(135deg, var(--lvl-standard) 55%, var(--stripe-a) 55%); }
.cal-day.partial .pct { font-size: var(--fs-xs); }
.cal.range .cal-day[aria-pressed="true"] { outline: 0; }
.cal-day.in-range { color: var(--ink); font-weight: 800; border-radius: 6px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--field) 55%, transparent); }
.cal-day.in-range:not(.closed):not(.locked) { background: color-mix(in srgb, var(--field) 34%, var(--card)); }   /* r301: the days between read as selected too */
.cal-day.in-range .pct { color: var(--ink); }
.cal-day.in-range.range-start:not(.closed):not(.locked), .cal-day.in-range.range-end:not(.closed):not(.locked) { background: var(--field); color: var(--on-field); box-shadow: var(--btn-glow); }
.cal-day.in-range.range-start .pct, .cal-day.in-range.range-end .pct { color: var(--on-field); }
.cal-day.range-start, .cal-day.range-end { background: var(--field); color: var(--on-field); font-weight: 800; box-shadow: var(--btn-glow); }
.cal-day.range-start { border-radius: var(--radius-cell) 6px 6px var(--radius-cell); }
.cal-day.range-end { border-radius: 6px var(--radius-cell) var(--radius-cell) 6px; }
.cal-day.range-start.range-end { border-radius: var(--radius-cell); }
.cal-day.range-start .pct, .cal-day.range-end .pct { color: var(--on-field); }
.cal:not(.range) .cal-day[aria-pressed="true"] { outline: 3px solid var(--field); background: color-mix(in srgb, var(--field) 18%, var(--card)); font-weight: 800; }
.trip-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: var(--fs-base); }
.trip-n { background: var(--field); color: var(--on-field); border-radius: 999px; padding: 2px 12px; font-weight: 800; font-size: var(--fs-sm); }
/* Live estimate */
.estimate { margin-top: 16px; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); }
.estimate h3 { margin: 0 0 8px; font-size: var(--fs-base); }
.estimate .est-total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-md); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.estimate .est-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); padding: 4px 0; }
.estimate.loading { opacity: .6; }
.cal-day.partial:not(.range-start):not(.range-end):not(.in-range) { background: linear-gradient(135deg, var(--lvl-standard) 52%, color-mix(in srgb, var(--field) 30%, var(--card)) 52%); }
.cal-legend .part-swatch { background: linear-gradient(135deg, var(--lvl-standard) 50%, color-mix(in srgb, var(--field) 30%, var(--card)) 50%); }
/* Quarter-hour time pickers */
.plan-row { grid-template-columns: 8.5rem 1fr 1fr auto auto; }
select.qtime { min-width: 8.5rem; }
@media (max-width: 560px) { .plan-row { grid-template-columns: 1fr 1fr; } }
.info-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--field-dark); color: var(--field-dark); background: transparent; font: 800 .75rem var(--body); cursor: pointer; vertical-align: 1px; margin-left: 4px; padding: 0; }
.info-dot[aria-expanded="true"] { background: var(--field); color: var(--on-field); border-color: var(--field); }
.info-text { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; background: var(--fog); border-radius: 10px; padding: 8px 12px; }

/* ---------------------------------------------------------------- calmer finish
   Quiet, tailored surfaces: modest corners instead of pills, solid buttons with a crisp edge and a small contact
   shadow (no colored glow, no hover jump), lighter display weights. Chosen states still change four ways at once
   (fill, text color, weight, and a check mark or edge), so "on" stays easy to see. */
:root {
  --radius-panel: 12px;
  --radius-ctl: 10px;
  --radius-chip: 8px;
  --lift: 0 1px 2px rgba(20, 22, 30, .07);
  --btn-glow: 0 1px 2px rgba(20, 22, 30, .20);
  --btn-edge: inset 0 0 0 1px color-mix(in srgb, #000 12%, transparent);
}
:root[data-mode="night"] { --lift: 0 1px 2px rgba(0, 0, 0, .40); --btn-glow: 0 1px 2px rgba(0, 0, 0, .55); --btn-edge: inset 0 0 0 1px rgba(255, 255, 255, .10); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="day"]) { --lift: 0 1px 2px rgba(0, 0, 0, .40); --btn-glow: 0 1px 2px rgba(0, 0, 0, .55); --btn-edge: inset 0 0 0 1px rgba(255, 255, 255, .10); } }

h1, h2 { font-weight: 600; }
h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); }

.btn { border-radius: var(--radius-ctl); background: var(--field); box-shadow: var(--btn-edge), var(--btn-glow); transition: background-color .12s ease, box-shadow .12s ease; }
.btn:hover { background: var(--field-dark); transform: none; box-shadow: var(--btn-edge), var(--btn-glow); }
.btn:active { transform: none; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); }
.btn.danger { background: var(--danger); box-shadow: var(--btn-edge), var(--btn-glow); }
.btn.danger:hover { background: color-mix(in srgb, #000 12%, var(--danger)); }
.btn.quiet { box-shadow: inset 0 0 0 1px var(--edge-strong), var(--lift); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1px var(--field), var(--lift); }
.btn.quiet:active { box-shadow: inset 0 0 0 1px var(--field), inset 0 1px 3px rgba(0, 0, 0, .12); }
.btn.big-step { border-radius: 12px; }

.topbar nav a, .tabs a { border-radius: var(--radius-chip); }
.tabs a { box-shadow: inset 0 0 0 1px var(--line); }
.tabs a:hover { box-shadow: inset 0 0 0 1px var(--edge-strong); }
.tabs a.on { box-shadow: var(--btn-edge), var(--btn-glow); }
.chip { border-width: 1px; border-radius: var(--radius-chip); }
.seg { border-width: 1px; border-radius: var(--radius-ctl); }
.seg label { border-radius: 7px; }
.tag, .lp-pill, .lp-chips li, .lp-tag, .risk-tag, .pay-mode, .report-card .done-list li { border-radius: 6px; }
.panel.white { border-width: 1px; }
.lp-svc-opt input:checked + span { transform: none; box-shadow: 0 0 0 1px var(--field), var(--lift); }
.cal-day[aria-pressed="true"] { box-shadow: none; }
.lp-hero { background: var(--paper); border-radius: 0; border-bottom: 1px solid var(--line); }
body.lp { background: var(--paper); }
.lp-tile, .lp-review, .lp-price { border-width: 1px; border-radius: var(--radius-panel); }
.lp-book { border-radius: 16px; }
.lp-report-card { border-radius: 16px; }
.lp-tile:hover { transform: none; }
.bprev { border-radius: var(--radius-panel); }
.bprev-tabs span { border-radius: var(--radius-chip); }
.bprev-btn { border-radius: var(--radius-ctl); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--field); }
/* home booking box: the date picker sits inside the card, so no second card around it */
.lp-bcal { margin: 4px 0 12px; }
.lp-bcal .cal { border: 0; padding: 0; background: transparent; }
.lp-bcal .cal-head h2 { font-size: 1rem; font-family: var(--body); font-weight: 700; }
.lp-bcal .cal-mlabel { font-size: .95rem; margin: 2px 0 6px; }
.lp-bcal .cal-day { min-height: 38px; }
.lp-bcal .cal-day .pct { display: none; }
.lp-book-err { color: var(--danger); margin: -4px 0 10px; font-weight: 700; }
/* hero: one way in, then the three promises */
.lp-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.lp-pillars { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; max-width: 560px; }
.lp-pillars li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.lp-pillars .lp-ico { width: 40px; height: 40px; }
.lp-pillars b { display: block; font-family: var(--display); font-size: 1.08rem; font-weight: 600; }
.lp-pillars span:not(.lp-ico) { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.lp-hero .lp-logo { max-width: 160px; height: auto; }
.lp-hero h1 { max-width: 18ch; }
.lp-hero .lp-book-note { text-align: left; margin: 4px 0 0; }
/* who we're right for */
.lp-fit-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lp-fit-list { grid-template-columns: 1fr 1fr; } }
.lp-fit-list li { border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; }
.lp-fit-list b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.lp-fit-list span { color: var(--muted); font-size: .95rem; }
/* the invitation page */
.invite { text-align: center; padding: 32px 0 12px; }
.invite-art { width: 150px; height: auto; margin: 0 auto 8px; display: block; }
.invite .lp-lede { max-width: 34ch; margin: 0 auto 18px; }
.invite-form { max-width: 380px; margin: 0 auto 16px; text-align: left; }
.invite-form input { font-size: var(--fs-md); letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.invite-form .btn { width: 100%; margin-top: 12px; }
.nav-short { display: none; }
@media (max-width: 560px) { .nav-long { display: none; } .nav-short { display: inline; } }
.topbar nav a.btn, .topbar nav a.btn:hover { color: var(--on-field); }

/* Date and time fields: iPhone Safari gives them a fixed built-in width and centered text, so in a narrow card they
   stick out past the edge. Let them shrink to the field like every other input, keep the text left, and keep height. */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
  -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 46px; line-height: 1.3; text-align: left;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }
.row > *, .lp-book-row > *, .start-pet > * { min-width: 0; }
.panel, .card, .item, .report-card { min-width: 0; overflow-wrap: break-word; }
/* wide price tables in Settings: scroll sideways inside their card on a phone instead of sticking out of it */
@media (max-width: 640px) { .panel table.lines, .panel table.small { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
select { max-width: 100%; text-overflow: ellipsis; }
/* Settings → Brand: the four themes as cards (artwork, day and night swatches, name) */
.theme-pick { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
@media (min-width: 760px) { .theme-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 8px 12px; text-align: left; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-panel); cursor: pointer; position: relative; }
.theme-card:hover { border-color: var(--edge-strong); }
.theme-card[aria-checked="true"] { border-color: var(--field); box-shadow: 0 0 0 2px var(--field); }
.theme-card[aria-checked="true"]::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--field); color: var(--on-field); font-size: var(--fs-xs); font-weight: 900; }
.theme-art { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.theme-art img { width: 78%; height: auto; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; }
.theme-sw { display: flex; gap: 4px; margin: 4px 0 2px; }
.theme-sw i { width: 18px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.theme-sw i:nth-child(4) { margin-left: 8px; }
.theme-card b { font-family: var(--display); font-weight: 600; }
#bcustom-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--field); }
/* the copy-code page opened from the sign-in email */
.copy-page { text-align: center; padding-top: 40px; }
.copy-code { font: 800 2.4rem/1.2 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .2em; padding: 16px 16px; margin: 16px auto; display: inline-block;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; -webkit-user-select: all; user-select: all; }
.copy-page .btn { display: block; width: min(320px, 100%); margin: 0 auto 12px; }
/* while you wait (after a new family's first request) */
.wait-panel .wait-step { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.wait-panel h3 { margin: 0 0 4px; font-size: var(--fs-base); }
.wait-pet { margin: 8px 0; }
.mg-row { margin-bottom: 8px; }
.mg-row.row.two { grid-template-columns: 1.3fr 1fr; gap: 0 8px; }
.wait-panel h2 .hint { display: block; font-family: var(--body); font-size: var(--fs-sm); font-weight: 400; margin-top: 2px; }
.mg-row .mg-note { grid-column: 1 / -1; margin: 2px 0 4px; }
.mg-row.mg-ok .mg-note { color: var(--field-dark); font-weight: 700; }
.mg-row.mg-no .mg-note { color: var(--danger); }
.mg-row.mg-no input, .mg-row.mg-no select { border-color: var(--danger); }
.mg-offer { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 12px 16px 12px; margin: 16px 0 0; }
.mg-offer legend { font-weight: 700; padding: 0 8px; }
/* requests are never mistaken for bookings */
.h1-sub { font-family: var(--body); font-size: .5em; font-weight: 700; color: var(--muted); text-transform: none; vertical-align: middle; }
h2 .h1-sub { font-size: .55em; }
.not-booked { border: 1px dashed var(--edge-strong); border-radius: var(--radius-ctl); padding: 12px 12px; margin: 8px 0 16px; background: var(--card); }
.list.requests .item { border-style: dashed; }
.tag.requested, .tag.quoted { background: transparent; box-shadow: inset 0 0 0 1px var(--edge-strong); }
.tag.confirmed { background: var(--field); color: var(--on-field); }
h2 .info-text, h3 .info-text { display: block; font-family: var(--body); font-size: var(--fs-sm); font-weight: 400; line-height: 1.45; color: var(--muted); margin-top: 8px; }
h2 .info-text.hidden, h3 .info-text.hidden { display: none; }
.wait-panel h2 .hint { display: block; }
.wait-panel h2 .hint { color: var(--muted); }

/* Market check (Admin) */
.mkt-sum { margin-top: 16px; }
.mkt-big { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.mkt-big > div { display: grid; gap: 2px; }
.mkt-big b { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.mkt-big .mkt-range { font-size: var(--fs-md); }
.mkt-strip { position: relative; height: 26px; margin: 16px 0 4px; border-radius: 999px; background: var(--fog); }
.mkt-strip i { position: absolute; top: 8px; width: 10px; height: 10px; margin-left: -4px; border-radius: 999px; background: var(--muted); opacity: .55; }
.mkt-strip b { position: absolute; top: 3px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--field); box-shadow: 0 0 0 3px var(--card); }
.mkt-axis { display: flex; justify-content: space-between; }
.mkt-list { display: grid; gap: 8px; margin-top: 8px; }
.mkt-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-ctl, 10px); }
.mkt-row > summary { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 12px 12px; cursor: pointer; list-style: none; }
.mkt-row > summary::-webkit-details-marker { display: none; }
.mkt-row .mkt-unk { grid-column: 1 / -1; color: var(--muted); }
.mkt-row.off { opacity: .7; }
.mkt-you { margin-top: 12px; border-color: var(--field); }
.mkt-detail { padding: 0 12px 12px; }
.mkt-l { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px dashed var(--line); }
.mkt-line { margin: 4px 0 12px; }
.mkt-card { border-top: 1px solid var(--line); padding: 8px 0; }
.mkt-card textarea { font: .82rem/1.4 ui-monospace, Menlo, monospace; width: 100%; }
.mkt-card textarea.bad { outline: 2px solid var(--danger); }
#mkdata { margin-top: 16px; }

.mkt-job .row.two { display: grid; grid-template-columns: 1fr 1fr; }
.mkt-none { margin-top: 12px; }
.mkt-none > summary { cursor: pointer; color: var(--muted); padding: 8px 0; }

.mkt-grade { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 700 .72rem var(--body); vertical-align: 1px; border: 1px solid var(--line); }
.mkt-grade.gA { background: var(--field); color: var(--on-field); border-color: var(--field); }
.mkt-grade.gB { background: var(--fog); color: var(--ink); }
.mkt-grade.gC { background: transparent; color: var(--muted); border-style: dashed; }
.mkt-strip i.gC { opacity: .3; } .mkt-strip i.gA { opacity: .8; }
.mkt-l.est span:last-child { font-style: italic; }
.mk-load input[type=file] { padding: 8px; }
.mk-res { margin: 8px 0 0; padding-left: 16px; }
.mk-res li { margin: 4px 0; }
.earn .earn-direct { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }

/* ---- messages (r104) */
.chat-badge { display: inline-block; min-width: 18px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
.chat-list { display: grid; gap: 8px; }
.chat-row { position: relative; display: grid; gap: 2px; padding: 12px 48px 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; }
.chat-row.unread { border-color: var(--gold); }
.chat-row-top { display: flex; justify-content: space-between; gap: 12px; }
.chat-row .chat-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.chat-row .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log { max-height: min(60vh, 560px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper, var(--card)); display: flex; flex-direction: column; gap: 8px; }
.chat-day { align-self: center; margin: 12px 0 2px; font-size: var(--fs-xs); color: var(--muted); }
.chat-event { align-self: center; max-width: 92%; text-align: center; padding: 4px 12px; border-radius: 999px; background: var(--fog); color: var(--body-ink); }
.chat-msg { align-self: flex-start; max-width: 82%; display: grid; gap: 2px; }
.chat-msg.mine { align-self: flex-end; justify-items: end; }
.chat-bubble { padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; }
.chat-msg.mine .chat-bubble { border-radius: 16px 16px 4px 16px; background: var(--field); border-color: var(--field); color: #fff; }
.chat-bubble p { margin: 0; }
.chat-bubble img { display: block; max-width: min(260px, 100%); border-radius: 10px; margin: 2px 0 8px; }
.chat-compose { margin-top: 12px; }
.chat-compose textarea { width: 100%; resize: none; }
.chat-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.chat-tools select { max-width: 220px; flex: 1 1 140px; }
.chat-tools #chatsend { margin-left: auto; }
.chat-photo { cursor: pointer; }
.chat-pic { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.chat-pic img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }

/* ---- calendar links (r107) */
.cal-apps { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- caretaker schedule at a glance (r108) */
.sched { margin: 8px 0 16px; }
.sched-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sched-head h2 { margin: 0; }
.sched-nav { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.sched-nav b { flex: 1; text-align: center; }
.sched-week, .sched-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sched-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.sched-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; min-height: 62px; }
.sched-month .sched-day { min-height: 50px; padding: 8px 0 4px; border-radius: 10px; }
.sched-day.out { opacity: .45; }
.sched-day.past { color: var(--muted); }
.sched-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.sched-day.on { background: var(--field); border-color: var(--field); color: #fff; }
.sched-day.on .sched-dow { color: #fff; }
.sched-dow { font-size: var(--fs-xs); color: var(--muted); }
.sched-num { font-weight: 700; font-size: var(--fs-base); line-height: 1.1; }
.sched-dots { display: flex; gap: 4px; min-height: 7px; align-items: center; }
.sched-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.sched-dots b { font-size: var(--fs-xs); line-height: 1; }
.sched-day.on .sched-dots i { box-shadow: 0 0 0 1.5px #fff; }
.sched-dots .k-walk, .ag-row.k-walk { --k: var(--field); }
.sched-dots .k-drop, .ag-row.k-drop { --k: var(--gold); }
.sched-dots .k-stay, .ag-row.k-stay { --k: color-mix(in srgb, var(--ink) 55%, var(--card)); }
.sched-dots .k-meet, .ag-row.k-meet { --k: var(--coral-mid); }
.sched-dots .k-taxi, .ag-row.k-taxi { --k: color-mix(in srgb, var(--field) 50%, var(--gold)); }
.sched-dots i { background: var(--k, var(--gold)); }
.sched-agenda { margin-top: 16px; }
.sched-agenda h3 { margin: 0 0 8px; }
.ag-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 12px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 5px solid var(--k, var(--gold)); border-radius: 10px; background: var(--card); color: inherit; text-decoration: none; }
.ag-row.done { opacity: .6; }
.ag-time { font-weight: 600; font-size: var(--fs-sm); }
.ag-what { display: grid; min-width: 0; }
.ag-what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) { .ag-row { grid-template-columns: 78px 1fr; } .sched-dow { font-size: var(--fs-xs); } }
.fam-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px 16px; margin-bottom: 12px; }
.fam-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fam-card header .pet-chips, .fam-card header > div:first-child { margin: 0; }
.fam-line { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.fam-line li { position: relative; padding: 2px 0 8px 12px; }
.fam-line li::before { content: ''; position: absolute; left: -21px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--k, var(--gold)); box-shadow: 0 0 0 3px var(--card); }
.fam-line li.k-walk { --k: var(--field); } .fam-line li.k-drop { --k: var(--gold); } .fam-line li.k-stay { --k: color-mix(in srgb, var(--ink) 55%, var(--card)); } .fam-line li.k-meet { --k: var(--coral-mid); } .fam-line li.k-taxi { --k: color-mix(in srgb, var(--field) 50%, var(--gold)); }
.fam-line li.past { opacity: .55; }
.fam-line summary { cursor: pointer; list-style: none; padding: 8px 0; }
.fam-line summary::-webkit-details-marker { display: none; }
.fam-what { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fam-line details[open] summary { margin-bottom: 8px; }

/* ---- home guide (r111) */
.guide-list { display: grid; gap: 12px; margin-bottom: 16px; }
.guide-item { display: grid; gap: 8px; }
.guide-item.edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); }
.guide-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guide-media { width: 100%; max-width: 420px; max-height: 320px; border-radius: 10px; background: #000; object-fit: contain; }
img.guide-media { background: transparent; object-fit: cover; }
.guide-topic { margin: 12px 0; }
.guide-topic h4 { margin: 0 0 8px; }
.guide-topic .guide-item { margin-bottom: 12px; }
.guide-topic .guide-item p { margin: 0; }
.guide-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.guide-pick .btn { cursor: pointer; }
.guide-add textarea { width: 100%; margin-top: 8px; }

/* ---- admin second step (r113) */
.mfa-dlg { max-width: 380px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--card); color: var(--ink); }
.mfa-dlg::backdrop { background: rgba(0, 0, 0, .45); }

/* ---- market: where the difference is (r114) */
.mkt-parts table td:nth-child(n+2), .mkt-parts table th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.mkt-over { color: var(--danger, #b3261e); font-weight: 600; }
.mkt-under { color: var(--field); }
.mkt-worst td { background: var(--coral-wash); }
.mkt-parts table { width: 100%; table-layout: auto; font-size: var(--fs-sm); }
.mkt-parts table td:first-child { min-width: 7em; }
.mkt-parts table th, .mkt-parts table td { padding-left: 8px; padding-right: 8px; }

/* r118 storefronts: the location's area beside the brand, a partner's own logo, the ZIP finder */
.lp-area { font-family: var(--display); font-weight: 600; color: var(--field); margin-left: 4px; }
.lp-hero .lp-logo.lp-logo-own { width: auto; max-width: 200px; max-height: 140px; object-fit: contain; }
.lp-zip { margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #fff); max-width: 520px; }
.lp-zip label { display: block; font-weight: 700; margin-bottom: 8px; }
.lp-zip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lp-zip-row input { width: 9.5em; font-size: 1.1rem; letter-spacing: .04em; }
.lp-zip #zipout { margin-top: 8px; min-height: 1.2em; }
.topbar .brand #mark, .topbar .brand .rosette, .topbar .brand .brand-mark { flex-shrink: 0; }
.topbar .brand #mark .rosette { width: 34px; min-width: 34px; }
.lp-zip #zipout:empty { display: none; }
@media (max-width: 480px) { .lp-area { display: block; font-size: .78em; margin: 1px 0 0; line-height: 1; } .topbar .brand #dba { line-height: 1.1; } }

/* r126 caretaker "now" card: only what this phase of the visit needs */
.now { border: 2px solid var(--field); border-radius: 16px; padding: 16px 16px; margin: 0 0 16px; background: var(--card, #fff); }
.now-door, .now-wrap { border-color: var(--ink); }
.now-done { border-style: dashed; border-color: var(--line); }
.now-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.now-phase { font-size: var(--fs-xs); font-weight: 700; color: var(--field); }
.now-head b { font-size: var(--fs-md); }
.now .big-step { width: 100%; margin-top: 8px; }
.now .ci-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.now .leave-list { margin: 8px 0 12px; padding-left: 1.2em; }
.now .leave-list li { margin: 2px 0; }
.now .warn { margin: 4px 0; }

/* r127 safety: a quiet shield, always there; lit while sharing, red on an alert */
.shield-btn { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.shield-btn .shield-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--field); border: 2px solid var(--card, #fff); }
.shield-btn.alert { background: #b3261e; color: #fff; border-color: #b3261e; }
.shield-btn.alert .shield-dot { background: #fff; }
.safety-dlg { max-width: 460px; width: calc(100% - 32px); }
.safety-dlg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.safety-dlg .sos { width: 100%; }
.locked-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 12px 12px; border: 1px dashed var(--line); border-radius: 12px; font-size: var(--fs-sm); }

/* r130 messages: notification offer and one-tap starters */
.push-card { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chat-quick .chip { white-space: nowrap; }
.now .now-msg { margin-top: 12px; display: inline-block; }
.urgent-box { margin: 12px 0; padding: 12px 12px; border: 1px solid var(--field); border-radius: 12px; }

/* r136 mode switch (Client · Caretaker · Admin), top right */
.mode-sw select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 32px 8px 12px; font: inherit; font-weight: 700; font-size: var(--fs-sm);
  background: var(--card, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); cursor: pointer; }
.mode-sw { margin-right: 8px; }
.topbar .wrap { gap: 8px; } .mode-sw { margin-left: auto; } .mode-sw + nav { margin-left: 0; }
.topbar .mode-sw select { min-width: 7.6em; width: auto; height: auto; color: var(--ink); font-size: var(--fs-sm); line-height: 1.2; }
@media (max-width: 520px) {
  .topbar:has(.mode-sw) .brand > span:not(#mark) { display: none; }
  .topbar:has(.mode-sw) nav a { font-size: var(--fs-sm); }
}
@media (max-width: 520px) { .topbar:has(.mode-sw) nav { gap: 12px; } .topbar:has(.mode-sw) nav a { font-size: var(--fs-sm); } .topbar:has(.mode-sw) .wrap { gap: 8px; } }

/* r137 friends circle */
.circle-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.circle-bal { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--field); white-space: nowrap; }
.circle-bal.neg { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Profile as a saved record: values shown as text, one section edited at a time */
.rec{margin-bottom:16px}
.rec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.rec-head h2{margin:0;font-size:var(--fs-md)}
.rec-line{display:flex;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.rec-line:first-child{border-top:0}
.rec-k{flex:0 0 38%;max-width:200px;color:var(--muted);font-size:var(--fs-sm)}
.rec-v{flex:1;min-width:0;overflow-wrap:anywhere}
.rec.editing{outline:2px solid var(--field);outline-offset:-2px}
.rec-actions{display:flex;gap:12px;margin-top:16px;position:sticky;bottom:0;padding:12px 0;background:var(--card)}
.rec-saved{margin-top:8px}
@media (max-width:520px){.rec-line{flex-direction:column;gap:2px}.rec-k{max-width:none}}
.rec-note{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.rec-pets{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
/* Caretaker app: no signal / saved steps on their way */
.offbar{margin:0 0 12px;padding:12px 16px;border-radius:12px;background:var(--mint);border:1px solid var(--line);font-size:var(--fs-sm);line-height:1.4}
.offbar.off{background:var(--card);border-color:var(--gold);border-width:2px}
.offbar a{font-weight:700;margin-left:4px}

/* Admin on wide screens: list on the left, what she opens on the right */
body.split-on .wrap { max-width: 1440px; }
.split { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.listpane { position: sticky; top: 12px; width: 100%; height: calc(100vh - 24px); height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.split > #view { min-width: 0; }
.pane-empty { display: grid; place-items: center; min-height: 50vh; border: 1px dashed var(--line); border-radius: 16px; }
/* the left pane itself: just the list */
body.pane-list .topbar, body.pane-list #tabs, body.pane-list .footer { display: none; }
body.pane-list .app-main { padding-top: 8px; }
body.pane-list .app-main > .wrap { padding: 0 12px; }
body.pane-list a.pane-on { outline: 2px solid var(--field); outline-offset: -2px; border-radius: 12px; background: var(--card); }

/* E-signature: the typed name shown as a signature */
.sig-preview { min-height: 8px; margin: 8px 0 2px; display: flex; flex-direction: column; }
.sig-script { font: italic 2rem/1.2 'Snell Roundhand', 'Segoe Script', 'Brush Script MT', 'Apple Chancery', cursive; color: var(--ink); border-bottom: 1px solid var(--ink); padding: 0 4px 2px; align-self: flex-start; min-width: 60%; }

/* r151: the area map on the admin booking screen */
.area-map { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card) }
.area-map img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 240; object-fit: cover; max-width: 100% }
.area-map figcaption { padding: 8px 12px; line-height: 1.45 }

/* r155: small layout fixes from the UX review */
/* list rows: long names and emails wrap instead of pushing the button past the card edge */
.list .item > div { min-width: 0; overflow-wrap: anywhere; }
.list .item > .btn, .list .item > button { flex: none; }
/* top bar on small phones: everything fits (the day/night switch stuck out 18px, so pages scrolled sideways) */
@media (max-width: 440px) {
  .topbar .wrap { gap: 8px; }
  .topbar nav { gap: 0; min-width: 0; }
  .topbar nav a { padding: 8px 8px; }
  .brand { font-size: var(--fs-base); min-width: 0; }
}
/* never let a stray wide element make the whole page scroll sideways (clip keeps sticky headers working) */
html, body { overflow-x: clip; }
/* messages: the quick replies scroll sideways inside their row, and on phones the conversation scrolls with the
   page instead of inside a box */
.chat-quick { max-width: 100%; min-width: 0; }
@media (max-width: 640px) { .chat-log { max-height: none; overflow: visible; } }

/* ================================================================== r156: v2 foundation (UX review, build 1)
   One look across the three apps, matching the emails (r150): a 6-step type scale, a status chip, a facts box,
   tappable list rows, a lead card for the screen's one job, a sticky action bar on phones, and a text-link button.
   Appended last so it wins over the older layers above. */
:root {
  /* r310: four sizes (title, heading, body, small) plus a tiny one for chips. Everything outside the
     marketing pages uses these tokens. */
  --fs-xs: .78rem;    /* 12.5px: chips, badges */
  --fs-sm: .875rem;   /* 14px: secondary text, hints */
  --fs-base: 1.0625rem; /* 17px: body */
  --fs-md: 1.25rem;   /* 20px: section headings and card titles */
  --fs-lg: 1.25rem;   /* same step as md: one heading size */
  --fs-xl: 1.75rem;   /* 28px: page titles in the apps */
}
/* app screens (not the marketing home page): calmer page titles, so content starts higher up */
.app-main h1 { font-size: clamp(1.6rem, 5vw, var(--fs-xl)); line-height: 1.15; margin-bottom: .35em; }
.app-main h2 { font-size: var(--fs-lg); line-height: 1.2; }
.app-main h3 { font-size: var(--fs-md); }
.small { font-size: var(--fs-sm); }
.h1-sub { display: none; }   /* the status chip says it now */

/* status chip: one per screen, plain words, color by meaning (same colors as the emails) */
.st { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font: 800 .72rem/1 var(--body, inherit);
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.st.ok { background: #E1EFE6; color: #24613D; }
.st.pending, .st.action { background: #F8EDD3; color: #7A5300; }
.st.urgent { background: #FBE2DF; color: #9E2A22; }
.st.info { background: var(--fog); color: var(--muted); }
[data-theme="dark"] .st.ok, .night .st.ok { background: #1D3327; color: #8FD3A8; }
[data-theme="dark"] .st.pending, [data-theme="dark"] .st.action { background: #3A2F14; color: #E8C26A; }
[data-theme="dark"] .st.urgent { background: #3D1F1C; color: #F29A90; }
.st-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 8px; }
.st-row .muted { font-size: var(--fs-sm); }

/* facts box: label / value pairs in a soft panel */
.facts { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 8px 16px; background: var(--fog); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: var(--fs-sm); }
.facts dt { color: var(--muted); } .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts dd b, .facts dd.strong { font-weight: 800; }

/* the lead card: the one thing to do on this screen */
.lead-card { background: var(--card); border: 2px solid var(--field); border-radius: 16px; padding: 16px 16px; margin: 0 0 16px; }
.lead-card .big { font: 900 1.9rem/1.05 var(--body, inherit); font-variant-numeric: tabular-nums; }
.lead-card .lead-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }

/* text-link button: secondary actions that shouldn't compete with the main one */
.btn.link, button.link { background: none !important; box-shadow: none !important; color: var(--field-dark); padding: 8px 2px; min-height: 0;
  text-decoration: underline; text-underline-offset: 3px; font-weight: 700; border-radius: 4px; }
.btn.link:hover { color: var(--ink); transform: none; }

/* tappable list rows (one line per item, chevron at the end) */
.rows { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; margin: 0 0 16px; }
.rows > a, .rows > .row-item, .rows > details > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.rows > :first-child, .rows > details:first-child > summary { border-top: 0; }
.rows > a:hover, .rows > details > summary:hover { background: var(--fog); }
.rows .grow { flex: 1; min-width: 0; }
.rows .sub { font-size: var(--fs-sm); color: var(--muted); }
.rows > a::after, .rows > details > summary::after { content: '›'; color: var(--muted); font-weight: 800; font-size: var(--fs-md); }
.rows > details[open] > summary::after { transform: rotate(90deg); }
.rows > details > summary { list-style: none; cursor: pointer; }
.rows > details > summary::-webkit-details-marker { display: none; }
.rows > details > .row-body { padding: 4px 16px 16px; }

/* sticky action bar on phones: the main button stays in reach while scrolling */
@media (max-width: 720px) {
  .actionbar { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tabbar-h, 0px)); z-index: 5; background: var(--card); border-top: 1px solid var(--line);
    margin: 16px -16px 0; padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 -6px 18px -12px rgba(0, 0, 0, .25); }
  .actionbar .btn:not(.link) { flex: 1; }
}

/* folded sections: details that open on tap, same look everywhere */
details.fold { border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 12px; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-weight: 800; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .sub { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: var(--fs-sm); margin-left: 6px; }
details.fold > summary > span:first-child { font-family: var(--display); font-weight: 400; font-size: 1.08rem; }   /* r351: card titles match the section headings */
details.fold > summary::after { content: '›'; color: var(--muted); font-size: var(--fs-md); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(90deg); }
details.fold > .fold-body { padding: 0 16px 16px; }
details.fold > .fold-body > .panel:first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { details.fold > summary::after { transition: none; } }

/* r156: admin navigation, four places and a More menu */
#tabs.tabs { flex-wrap: nowrap !important; overflow: visible !important; align-items: center; }
.tabs-more { position: relative; }
.tabs-more > summary { list-style: none; cursor: pointer; white-space: nowrap; padding: 8px 16px; border-radius: var(--radius-chip, 999px); font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.tabs-more > summary::-webkit-details-marker { display: none; }
.tabs-more > summary::after { content: ' ▾'; font-size: .8em; }
.tabs-more.on > summary { background: var(--field); color: var(--on-field); font-weight: 800; box-shadow: var(--btn-edge), var(--btn-glow); }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px; display: flex; flex-direction: column; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .35); }
#tabs .more-menu a { box-shadow: none; background: transparent; border-radius: 8px; padding: 12px 12px; color: var(--ink); font-weight: 600; }
#tabs .more-menu a:hover { background: var(--fog); }
#tabs .more-menu a.on { background: var(--fog); color: var(--field-dark); font-weight: 800; box-shadow: none; }
@media (max-width: 640px) {
  #tabs.tabs { gap: 4px; }
  #tabs.tabs > a, .tabs-more > summary { padding: 8px 12px; font-size: var(--fs-sm); }
}
@media (max-width: 440px) {   /* five tabs fit a phone without pushing the page sideways */
  #tabs.tabs { gap: 4px; justify-content: space-between; }
  body:not(.app-shell) #tabs.tabs > a, body:not(.app-shell) #tabs .tabs-more > summary { padding: 8px 8px; font-size: var(--fs-xs); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #tabs.tabs > a .badge, #tabs.tabs > a .count { transform: scale(.85); margin-left: 2px; }
  .tabs-more > summary::after { content: '▾'; margin-left: 2px; }
}

/* r156: list rows keep their status chip inside the card; the text side shrinks instead */
.item > :first-child { flex: 1 1 auto; min-width: 0; }
.item > :last-child:not(:first-child) { flex: none; text-align: right; }
.item .st { font-size: var(--fs-xs); padding: 4px 8px; }
/* small uppercase section labels inside a page */
.kicker { font: 800 var(--fs-xs)/1.2 var(--body, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.kicker.danger { color: var(--danger); }
/* quote lines on phones: the line name gets the full width, quantity and price go underneath */
@media (max-width: 560px) {
  .qline { grid-template-columns: 1fr 1fr 40px !important; }
  .qline input:first-child { grid-column: 1 / -1; }
}
/* the quote is the lead on a new request */
.panel.lead-quote { border: 2px solid var(--field); background: var(--card); }
#ops:empty { display: none; }
.fold-body > .panel > h2:first-child, .fold-body > .panel > h3:first-child { display: none; }
/* r156: settings sections as rows that open on tap */
details.settings-fold > summary > span { display: flex; flex-direction: column; gap: 2px; }
details.settings-fold > summary .sub { font-weight: 500; line-height: 1.35; }
details.settings-fold > .fold-body > .panel { margin: 0; padding: 0; background: transparent; border: 0; }
/* r156: caretaker "On this visit": Finish visit is the main button, full width on phones */
@media (max-width: 640px) { .ci-actions .finish-main { flex: 1 1 100%; } }
/* r156: quiet links under a booking; the confirm block leads on a quote */
.rows-inline{display:flex;gap:16px;flex-wrap:wrap;margin:8px 0 16px}
.actions-lead{margin:12px 0 16px}
/* r156: "Before your stay" one step at a time */
.stepbar{margin:12px 0 12px}
.stepbar b{font-size:var(--fs-h2,1.15rem);display:block;margin:2px 0 8px}
.stepdots{display:flex;gap:8px}
.stepdots i{flex:1;height:4px;border-radius:2px;background:var(--line,#ddd)}
.stepdots i.done{background:var(--ok,#2e7d4f)}
.stepdots i.on{background:var(--accent,#c0612b)}
.stepnav{display:flex;justify-content:space-between;gap:12px;margin:16px 0}
.stepnav #stnext{margin-left:auto}
.lead-total{display:flex;align-items:baseline;gap:12px;margin:16px 0 4px;flex-wrap:wrap}
.lead-total b{font-size:1.5rem}
.stepbar .stepdots{margin-top:8px}
/* r157: door codes on a phone: label above the code, so the code gets the full width and long ones (Wi-Fi) read in one go */
@media (max-width: 560px) {
  .kv.entry-out { display: block; }
  .kv.entry-out dt { margin: 12px 0 2px; font-size: var(--fs-sm); }
  .kv.entry-out dd { margin: 0; }
  .kv.entry-out .secret-dd { justify-content: space-between; gap: 12px; }
}
/* r157: the green chip shares the "ok" class with the success notice; keep the notice's border and margin off chips */
.st.ok, .st.info, .st.urgent, .st.pending, .st.action { border: 0; margin: 0; }
/* r160: meet & greet payment: the pay button full width on a phone, the other method under it */
.mgpay-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; }
@media (max-width: 560px) { .mgpay-acts .btn:not(.link) { flex: 1 1 100%; } }
.seg .seg-sub { display: block; font-size: var(--fs-xs); font-weight: 600; opacity: .85; color: inherit; margin-top: 2px; }
/* r161: meet & greet checklist: an action button beside the item it completes */
.task-row { display: flex; align-items: flex-start; gap: 8px; }
.task-row > label { flex: 1 1 auto; min-width: 0; }
.task-row .mg-act { flex: none; margin-top: 2px; }
.mg-msg { color: var(--danger, #9E2A22); margin: 2px 0 8px; }
.task-row { border-top: 1px dashed var(--line); }
.task-row > .task { border-top: 0; }
.task-row .mg-act { margin-top: 8px; }
/* r163: the new-family path at a glance, and what happens after signing */
.intro-steps { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 4px 0 16px; counter-reset: s; }
.intro-steps li { counter-increment: s; display: flex; align-items: baseline; gap: 8px; }
.intro-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fog); font-weight: 800; font-size: var(--fs-xs); flex: none; }
.intro-steps li.on::before { background: var(--field); color: var(--on-field); }
.next-steps { margin-top: 16px; }
.next-steps .checklist { margin: 4px 0 16px; }
/* r165: deposit as a percentage on the quote */
.dep-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dep-row input { margin: 0; }
/* r166: the signed-in account in the Admin header */
.topbar .who { color: var(--muted); align-self: center; white-space: nowrap; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .topbar .who { display: none; } }
#calpanel:empty { display: none; }   /* r166: no empty box while the calendar links load (or if they can't) */
/* r169: a quote to confirm, read in one pass: when, price, what's due today, then the one decision */
.when-line{margin:2px 0 8px;font-size:var(--fs-base)}
.due-today{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:2px 12px;margin:16px 0;padding:16px 16px;border:1px solid var(--line);border-left:4px solid var(--ink);border-radius:10px;background:var(--card)}
.due-today>span{font-weight:600}
.due-today>b{font-size:var(--fs-md)}
.due-today>p{grid-column:1/-1;margin:4px 0 0;color:var(--muted,inherit)}
.quiet-links{margin-top:4px}
.quiet-links .btn.link{font-size:var(--fs-sm,.95rem)}
.quote-head{margin-top:24px}
.due-today p,.cancel-terms,.when-line{text-wrap:pretty}
.cancel-terms{margin-top:16px}

/* ---------------------------------------------------------------- r174: secure payment panel
   Wraps Stripe's embedded card form. The form is always drawn light by Stripe, so the panel stays a light card in
   night mode too (an intentional "secure card" surface, not a theme mismatch). */
.pay-shell { text-wrap: pretty; --pay-ink: #22262E; --pay-muted: #5F6573; --pay-line: #E3DDD3;
  background: #FFFFFF; color: var(--pay-ink); border: 1px solid var(--pay-line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23, 20, 40, .06), 0 10px 30px -12px rgba(23, 20, 40, .22);
  margin: 16px 0; overflow: hidden; }
.pay-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-bottom: 1px solid var(--pay-line);
  background: linear-gradient(180deg, #FBFAF7, #FFFFFF); }
.pay-mark { width: 44px; height: 44px; border-radius: 50% !important; flex: none; object-fit: cover; padding: 0 !important; box-shadow: 0 1px 3px rgba(23, 20, 40, .18) !important; }   /* r176: the round logo */
.pay-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.pay-title b { font-family: var(--display); font-size: var(--fs-base); font-weight: 600; color: var(--pay-ink); }
.pay-title span { font-size: var(--fs-sm); color: var(--pay-muted); }
.pay-secure { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
  color: #24613D; background: #EAF4EE; border: 1px solid #CFE6D7; border-radius: 999px; padding: 4px 12px; }
.pay-note { margin: 0; padding: 12px 16px; font-size: var(--fs-sm); color: var(--pay-ink); background: #FBF6F2; border-bottom: 1px solid var(--pay-line); }
.pay-body { position: relative; min-height: 220px; padding: 8px 4px 2px; }
.pay-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 200px; color: var(--pay-muted); font-size: var(--fs-sm); }
.pay-shell.ready .pay-loading { display: none; }
.pay-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #E3DDD3; border-top-color: #2F3A4F; animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spin { animation-duration: 2.4s; } }
.pay-frame:empty { display: none; }
.pay-foot { display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--pay-line);
  font-size: var(--fs-xs); line-height: 1.4; color: var(--pay-muted); background: #FBFAF7; }
.pay-foot svg { flex: none; margin-top: 2px; color: #24613D; }
.pay-done { display: flex; align-items: center; gap: 16px; padding: 16px 16px; }
.pay-done b { display: block; font-family: var(--display); font-size: var(--fs-base); font-weight: 600; }
.pay-done span { display: block; color: var(--pay-muted); font-size: var(--fs-sm); }
.pay-done .pay-line { color: var(--pay-ink); margin-top: 4px; }
.pay-check { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: #24613D; }
@media (max-width: 420px) {
  .pay-head { padding: 16px; gap: 12px; }
  .pay-note, .pay-foot { padding-left: 16px; padding-right: 16px; }
  .pay-secure span { display: none; }   /* the lock alone on narrow phones */
  .pay-secure { padding: 8px; }
}

/* r177: a location's address status and the steps to connect it */
.fr-addr { margin: 8px 0 4px; }
.fr-step-box { text-wrap: pretty; border: 1.5px solid var(--danger-soft); background: var(--danger-wash); border-radius: 12px; padding: 12px 12px; }
.fr-steps { margin: 8px 0 0; padding-left: 20px; }
.fr-steps li { margin: 4px 0; }
.fr-step-box.wait { border-color: var(--line); background: var(--navy-wash); }   /* certificate on its way: nothing wrong, just waiting */
.fr-steps code { font-size: .9em; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; display: inline-block; max-width: 100%; white-space: nowrap; overflow-x: auto; vertical-align: bottom; }   /* the address stays whole: it moves to its own line instead of splitting */
.item.fr-new { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 12px; }

/* r179: home page, someone already signed in on this device */
.lp-welcome { background: var(--coral-wash); border-bottom: 1px solid var(--line); }
.lp-welcome-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.lp-welcome-in span { overflow-wrap: anywhere; }

/* r179: sign-in is one choice among a few ways, with the last one used first */
.signin-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.signin-or::before, .signin-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.signin-last { margin: 0 0 12px; }
.signin-pick { margin: 0 0 12px; }
.signin-more { margin: 16px 0; }
.signin-more > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.signin-more[open] > summary { margin-bottom: 8px; }
.btn.btn-apple { background: #000; color: #fff; border-color: #000; }
:root[data-mode="night"] .btn.btn-apple { background: #fff; color: #000; border-color: #fff; }

/* r179: required / optional tags on onboarding fields */
.tag-req, .tag-opt, .tag-later { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; white-space: nowrap; text-transform: none; font-family: var(--body); line-height: 1.4; }
.tag-req { background: var(--coral-wash); color: var(--ink); border: 1px solid var(--gold); }
.tag-later { background: transparent; color: var(--ink); border: 1px dashed var(--gold); }
.tag-opt { background: var(--fog); color: var(--muted); border: 1px solid var(--line); }
h2 .tag-req, h2 .tag-opt, h2 .tag-later { font-size: 11px; }

/* r180: one "Encrypted" lock per card; tap for a short explanation */
.lock-chip { display: inline-flex; align-items: center; gap: 4px; font: 800 11px/1.4 var(--body); letter-spacing: .02em; color: var(--field-dark); background: transparent; border: 1px solid var(--field-dark); border-radius: 999px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; cursor: pointer; white-space: nowrap; text-transform: none; }
.lock-chip:hover, .lock-chip:focus-visible { background: var(--field); color: var(--on-field); border-color: var(--field); }
h1 .lock-chip { font-size: 12px; vertical-align: 6px; }
.lock-dlg { max-width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px; background: var(--card); color: var(--ink); }
.lock-dlg::backdrop { background: rgba(0,0,0,.35); }
.lock-dlg h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--fs-base); }
.lock-dlg p { margin: 0 0 8px; font-size: var(--fs-sm); line-height: 1.5; }
.lock-dlg-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: var(--fs-sm); }

/* r186: tags in a list row may wrap rather than run out of the box; the list of what's missing reads as plain text */
.item .st { white-space: normal; max-width: 100%; line-height: 1.25; text-align: left; }
.item > div:first-child { min-width: 0; }
.waiting-items { color: var(--ink); margin-top: 4px; overflow-wrap: anywhere; text-wrap: pretty; }

/* r189: returning families can sign in from a phone too (the link used to be hidden on small screens) */
@media (max-width: 480px) { .lp-top nav a.nav-signin { padding: 8px 8px; font-size: .95rem; } .lp-top .brand #dba { font-size: 1rem; } }
@media (max-width: 380px) { .lp-top .brand #dba { display: none; } .lp-top .wrap { gap: 8px; } }

/* r191: the AI assistant page */
.ai-page .lead { font-size: var(--fs-base); }
.ai-page p, .ai-page li, .ai-page dd { text-wrap: pretty; }
.ai-page code { overflow-wrap: anywhere; }
.ai-dev dd { margin-bottom: 8px; }

/* r192: the H3 territory map */
.terr-map { height: 440px; border-radius: 12px; border: 1px solid var(--line); margin: 12px 0; }
.terr-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.terr-tools select { width: auto; }
.terr-legend { display: flex; flex-wrap: wrap; gap: 16px; }
.terr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
@media (max-width: 600px) { .terr-map { height: 340px; } }
.terr-fill { display: flex; gap: 8px; margin-top: 12px; }
.terr-fill input { flex: 1; min-width: 0; }
.terr-map { touch-action: none; }

/* r194: the platform home's lists have no icons */
.lp-pillars.plat-plain li, .lp-trust-item.plat-plain { grid-template-columns: 1fr; }
.lp-pillars.plat-plain li > div { display: grid; gap: 2px; }
.lp-pillars.plat-plain span, .lp-trust-item.plat-plain p { text-wrap: pretty; }
@media (min-width: 960px) { .lp-trust-grid:has(> .plat-plain) { grid-template-columns: repeat(4, 1fr); } }

/* r199: booking cases in Messages */
.chat-case { font-weight: 700; text-decoration: none; border-bottom: 1px dotted currentColor; }
.chat-file { font-size: inherit; padding: 0; }
.bk-case .chat-log { max-height: min(45vh, 420px); }

/* r206: what's left before confirming, each with its own button */
.fixlist ul.fix-rows { list-style: none; margin: 0; padding: 0; }
.fixlist .fix-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(0,0,0,.08); }
.fixlist .fix-rows li:first-child { border-top: 0; }
.fixlist .fix-rows .grow { flex: 1; min-width: 0; }
.fixlist .fix-rows .sub { font-size: var(--fs-sm); color: var(--ink); opacity: .8; margin-top: 2px; }
.fixlist .fix-rows .btn { flex: none; white-space: nowrap; }
@media (max-width: 420px) { .fixlist .fix-rows li { flex-direction: column; align-items: stretch; } .fixlist .fix-rows .btn { text-align: center; } }

/* r207: a booking's messages on phones. The general phone rule lets the conversation grow with the page, but the
   booking panel caps its height, so messages spilled out over the replies and the message box. In a booking the
   conversation keeps its own scrolling box (the newest message at the bottom, the box right under it), and messages
   never shrink to fit. */
.chat-log > * { flex-shrink: 0; }
@media (max-width: 640px) {
  .bk-case .chat-log { max-height: 55vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .bk-case .chat-quick .chip { padding: 8px 12px; font-size: var(--fs-sm); }
  .bk-case .chat-compose textarea { min-height: 3.2em; }
  .bk-case .chat-bubble img { max-width: min(200px, 100%); max-height: 220px; object-fit: cover; }
}

/* r211: Admin → Schedule */
.sc-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 4px 0 12px; }
.sc-seg, .sc-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-range { margin-left: 4px; }
.sc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.sc-chip { white-space: nowrap; }
.sc-chip[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.sc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; flex: none; }
.sc-week-wrap, .sc-day-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sc-week { border-collapse: collapse; width: 100%; min-width: 760px; table-layout: fixed; font-size: var(--fs-xs); }
.sc-week th, .sc-week td { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px; vertical-align: top; text-align: left; }
.sc-week thead th { font-weight: 700; background: var(--fog); position: sticky; top: 0; }
.sc-week thead th a { color: inherit; text-decoration: none; }
.sc-week th.sc-who { width: 96px; position: sticky; left: 0; background: var(--card); z-index: 1; font-weight: 700; }
.sc-week .today { background: color-mix(in srgb, var(--gold) 10%, transparent); }
/* r236: a stay across its days (the pets depend on us), above that day's visits */
.sc-stay { display: block; margin: 0 -4px 4px; padding: 4px 8px; background: color-mix(in srgb, var(--c) 16%, transparent); border-top: 3px solid var(--c); color: var(--ink); text-decoration: none; font-size: .85em; line-height: 1.25; overflow-wrap: anywhere; }
.sc-stay.first { border-radius: 7px 0 0 7px; margin-left: 0; }
.sc-stay.last { border-radius: 0 7px 7px 0; margin-right: 0; }
.sc-stay.first.last { border-radius: 7px; }
.sc-stay.pending { background: transparent; border-top-style: dashed; }
.sc-allday .sc-stay { margin: 0 0 4px; border-radius: 7px; }
.sc-pill { display: block; margin: 0 0 4px; padding: 4px 8px; border-radius: 7px; background: var(--c); color: #fff; text-decoration: none; line-height: 1.25; overflow-wrap: anywhere; }
.sc-pill.pending, .sc-block.pending { background: transparent; color: var(--ink); border: 2px dashed var(--c); }
.sc-pill.meet:not(.pending), .sc-block.meet:not(.pending) { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.18) 6px 12px); }
.sc-pill i { font-style: normal; opacity: .8; }
.sc-fb { font-size: var(--fs-xs); margin: 0 0 4px; padding: 1px 8px; border-radius: 6px; }
.sc-fb.free { background: #E1EFE6; color: #24613D; }
.sc-fb.busy { background: var(--fog); color: var(--muted); }
.sc-allday { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.sc-allday .sc-pill { margin: 0; }
.sc-day { position: relative; display: grid; grid-template-columns: 44px repeat(var(--cols), minmax(118px, 1fr)); margin-top: 32px; }
.sc-hours { position: relative; }
.sc-hours div { position: absolute; left: 4px; font-size: var(--fs-xs); color: var(--muted); transform: translateY(-50%); }
.sc-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 60px); }
.sc-colhead { position: absolute; top: -28px; left: 6px; right: 4px; font-weight: 700; font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-band { position: absolute; left: 0; right: 0; font-size: var(--fs-xs); overflow: hidden; }
.sc-band span { position: absolute; top: 2px; left: 4px; opacity: .8; }
.sc-band.free { background: rgba(36, 97, 61, .10); color: #24613D; }
.sc-band.busy { background: repeating-linear-gradient(135deg, rgba(120,120,120,.10) 0 6px, rgba(120,120,120,.18) 6px 12px); color: var(--muted); }
.sc-block { position: absolute; left: 4px; right: 4px; padding: 4px 8px; border-radius: 8px; background: var(--c); color: #fff; font-size: var(--fs-xs); line-height: 1.25; text-decoration: none; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.12); z-index: 1; }
@media (max-width: 640px) { .sc-week { min-width: 680px; } .sc-week th.sc-who { width: 78px; } }

.sc-pill.conflict, .sc-block.conflict { outline: 2px solid #9E2A22; outline-offset: 1px; }
.sc-block.short { white-space: nowrap; text-overflow: ellipsis; padding-top: 4px; }
@media (max-width: 640px) {
  .sc-chips .chip, .sc-seg .chip { padding: 8px 12px; font-size: var(--fs-sm); }
  .sc-bar .btn.small { padding: 8px 12px; }
}

/* r217: a caretaker's "About me" */
.about-bio { white-space: pre-line; margin: 0; }
.about-inline { border-left: 4px solid var(--gold); background: var(--coral-wash); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 12px; }

/* r262: Ask data cards: look-up results shown as the records have them */
.ask-data { margin-top: 8px; padding: 12px 12px; border: 1px solid var(--line, #ddd); border-radius: 10px; background: var(--card, #fff); }
.ask-data dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: .92em; }
.ask-data dt { color: var(--muted, #666); }
.ask-data dd { margin: 0; overflow-wrap: anywhere; }
.ask-data ul { margin: 4px 0 8px; padding-left: 16px; font-size: .92em; }
.ask-data-list { margin-top: 8px; }

/* r254: a booking request drafted in the Ask chat */
.ask-draft { margin-top: 8px; padding: 12px 12px; border: 2px solid var(--gold); border-radius: 10px; background: var(--card, #fff); }
.ask-draft ul { margin: 8px 0 12px; padding-left: 16px; }
.ask-draft .small { margin-top: 8px; }
.ask-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* r245: caretaker headshots */
.cphoto { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--gold); background: var(--coral-wash); }
.cphoto-sm { width: 44px; height: 44px; border-width: 2px; }
.cphoto-empty { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; color: var(--muted, #777); }
.cphoto-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cphoto-head { display: flex; gap: 16px; align-items: center; margin: 0 0 12px; }
.cphoto-head h3 { margin: 0; }

/* r220: the Ask chat */
.ask-fab { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 41; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 12px 12px; border-radius: 999px; border: 0; background: var(--field); color: var(--on-field, #fff); font: inherit; font-weight: 700;
  box-shadow: 0 3px 12px rgba(0,0,0,.18); cursor: pointer; }
.ask-fab:hover { filter: brightness(1.08); }
@media (max-width: 640px) {
  body.app-shell .ask-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.app-shell .ask-fab.over-shield { bottom: calc(132px + env(safe-area-inset-bottom)); }
  .ask-fab span { display: none; }
  .ask-fab { padding: 12px; }
}
.ask-fab.over-shield { bottom: calc(132px + env(safe-area-inset-bottom)); }
.ask-dlg { width: min(760px, calc(100% - 32px)); height: min(860px, calc(100dvh - 48px)); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card, #fff); color: var(--ink); display: none; flex-direction: column; overflow: hidden; }
.ask-dlg[open] { display: flex; }
.ask-dlg::backdrop { background: rgba(20, 24, 32, .35); }
.ask-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ask-log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.ask-log > * { flex-shrink: 0; }
.ask-msg { max-width: min(88%, 620px); }
.ask-msg p { margin: 0; padding: 8px 12px; border-radius: 14px; line-height: 1.45; }
.ask-msg.bot p { background: var(--mint, #E9EBEF); border-bottom-left-radius: 4px; }
.ask-msg.me { align-self: flex-end; }
.ask-msg.me p { background: var(--field); color: var(--on-field, #fff); border-bottom-right-radius: 4px; }
.ask-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ask-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 8px; border-top: 1px solid var(--line); }
.ask-form textarea { flex: 1; resize: none; margin: 0; min-height: 44px; max-height: 160px; padding: 12px 12px; border-radius: 22px; line-height: 1.4; font-size: 16px; overflow-y: auto; }
/* r275: Send and Talk as round buttons beside the box, always in view */
.ask-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; }
.ask-send { background: var(--field); border-color: transparent; color: var(--on-field, #fff); padding: 0 16px; opacity: .55; }
.ask-form.has-text .ask-send { opacity: 1; }
.ask-send:disabled { opacity: .4; cursor: default; }
.ask-mic.rec { background: var(--danger, #c0392b); border-color: transparent; color: #fff; }
.ask-ico:focus-visible { outline: 3px solid var(--field); outline-offset: 2px; }
.ask-note { margin: 0; padding: 0 16px 12px; font-size: 12px; }
.ask-msg.typing p { display: flex; gap: 4px; }
.ask-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: askdot 1s infinite; }
.ask-msg.typing span:nth-child(2) { animation-delay: .15s; } .ask-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes askdot { 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .ask-msg.typing span { animation: none; } }
@media print { .ask-fab { display: none; } }

/* r239: "A team, not a list of strangers" */
.lp-compare { display: grid; gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card, #fff); }
.lp-cmp-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: start; }
.lp-cmp-row:first-child { border-top: 0; }
.lp-cmp-head { font-weight: 700; background: var(--mint, var(--page)); }
.lp-cmp-row > span:nth-child(2) { color: var(--muted); }
.lp-cmp-row > span:nth-child(3) { font-weight: 600; }
.lp-promise { padding: 14px 16px; border-left: 4px solid var(--action, var(--accent)); background: var(--mint, var(--page)); border-radius: 8px; }
@media (max-width: 640px) {
  .lp-cmp-head { display: none; }
  .lp-cmp-row { grid-template-columns: 1fr; gap: 4px; }
  .lp-cmp-row > span:nth-child(2)::before { content: "Typical app: "; font-weight: 600; }
  .lp-cmp-row > span:nth-child(3)::before { content: "With us: "; }
}

/* r275: Ask fills the screen on phones */
@media (max-width: 640px) {
  .ask-dlg { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .ask-top { padding-top: calc(12px + env(safe-area-inset-top)); }
  .ask-note { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .ask-send span { display: none; }
  .ask-send { padding: 0 12px; }
}

/* r275: Admin → Questions: a recorded chat */
.ask-review { display: block; }
.ask-review summary { cursor: pointer; list-style: revert; }
.ask-review-q { margin: 12px 0 4px; }
.ask-review-a { padding: 8px 12px; border-left: 3px solid var(--line); background: var(--page, #F7F3E9); border-radius: 0 8px 8px 0; font-size: .95em; }

/* r276: Admin explainers: the note an "i" next to a section heading opens */
.explain-note { max-width: 70ch; margin: 0 0 12px; }
.ex-dot { margin: 0 8px 0 8px; vertical-align: middle; }
.explain-note.hidden { display: none; }
.explain-note p { margin: 0 0 4px; }
.explain-note p:last-child { margin-bottom: 0; }

/* r281: steady page changes. Old content dims while the next page loads; Admin keeps one width on every tab on wide
   screens (the side-by-side tabs used to widen the whole page, so the header and tabs jumped sideways) */
#view.page-busy > * { opacity: .45; transition: opacity .12s ease-out; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #view.page-busy > * { transition: none; } }
body.admin-wide .wrap { max-width: 1440px; }
body.admin-wide:not(.split-on) #view { max-width: 1080px; }
.split.solo { display: block; }
.split.solo > .listpane { display: none; }
/* panels that fill in a moment later hold their place instead of pushing the page down */
.panel:empty { min-height: 88px; }

/* r285: the approximate-area page (a shaded circle, never a pin) */
.area-page { max-width: 640px; padding: 32px 16px 48px; }
.area-big { margin: 12px 0 16px; }
.area-big img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }

/* r297: Home = what's next and what needs you; Bookings = Upcoming · Requests · Past */
.nextup { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px 16px 16px; margin: 16px 0 16px;
  box-shadow: 0 14px 30px -22px rgba(30, 34, 46, .55); transition: border-color .15s, box-shadow .15s; }
.nextup:hover { border-color: var(--field); }
.nextup-k { font: 800 .72rem/1 var(--body, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.nextup-when { font-family: var(--display, inherit); font-size: 1.5rem; font-weight: 800; line-height: 1.15; margin: 8px 0 4px; }
.nextup-what { font-size: var(--fs-base); }
.nextup-sub { color: var(--muted); font-size: var(--fs-sm, .9rem); margin-top: 2px; overflow-wrap: anywhere; }
.nextup-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.nextup-who { display: inline-flex; align-items: center; gap: 8px; }
.nextup-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.nextup-face.blank { display: inline-grid; place-items: center; background: var(--mint); color: var(--ink); font-weight: 800; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 0 rgba(46, 158, 91, .5); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(46, 158, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.home-h { font-size: var(--fs-base); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--fog); color: var(--muted); font: 800 .72rem/1 var(--body, inherit); }
.rows.needs .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #C98A12; }
.rows.needs .dot.urgent { background: #C4463A; }
.home-acts { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 4px; }
.ask-card { border: 2px solid var(--gold); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.subtabs { display: flex; gap: 4px; margin: 16px 0 16px; border-bottom: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subtabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.subtabs a.on { color: var(--ink); border-bottom-color: var(--field); }
.subtabs a:hover { color: var(--ink); }
.bk-item { justify-content: flex-start; align-items: flex-start; }
.item.bk-item > .bk-main { flex: 1 1 auto; min-width: 0; text-align: left; }
.bk-main .st { margin-top: 8px; }
.item.bk-item > .datebox { flex: 0 0 48px; width: 48px; text-align: center; border-radius: 12px; background: var(--fog); padding: 8px 0 8px; line-height: 1.1; }
.datebox span { display: block; font: 800 .66rem/1 var(--body, inherit); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.datebox b { font-size: var(--fs-md); }
.bk-who { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* r299: two panes when there's room (iPhone Duo open, iPad, laptops). In the apps the page hears the size class and
   the fold from iOS; a fold like a book puts the gap over the crease (--pane-a, --pane-gap, set by fitFold). */
html.duo .wrap { max-width: 1280px; }
.duo-shell.split { display: grid; grid-template-columns: var(--pane-a, minmax(300px, 38%)) minmax(0, 1fr); column-gap: var(--pane-gap, 32px); align-items: start; }
.duo-shell.split > #view { min-width: 0; }
.duo-list { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding: 2px 4px 16px 2px; scrollbar-width: thin; }
.duo-list .page-head { margin-top: 8px; }
.duo-list .subtabs { margin: 12px 0 12px; }
.duo-list .bk-item { padding: 12px; }
.bk-item.on { border-color: var(--field); box-shadow: inset 4px 0 0 var(--field); }
/* the caretaker app: today's visits on the left (the list), the visit cards on the right (the detail) */
html.duo .narrow { max-width: 1180px; }
.duo-cols { display: grid; grid-template-columns: var(--pane-a, minmax(280px, 36%)) minmax(0, 1fr); column-gap: var(--pane-gap, 32px); align-items: start; }
.duo-cols > .duo-a { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.duo-cols > div { min-width: 0; }
.duo-list .subtabs a { padding: 12px 12px; }

/* r307: price and payment folded into one row on a booking; open it to see the lines */
.bk-money > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; gap: 12px; }
.bk-money > summary::-webkit-details-marker { display: none; }
.bk-money > summary::after { content: '›'; font-size: 1.3em; line-height: 1; transition: transform .15s; margin-left: 8px; }
.bk-money[open] > summary::after { transform: rotate(90deg); }
.bk-money > summary span { margin-left: auto; font-weight: 700; }
.bk-money[open] > summary { margin-bottom: 12px; }
.bk-about { margin-top: 8px; }
.bk-about summary { cursor: pointer; }
/* r307: the visit whose card is open */
.ag-row.on { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------------------------------------------------------------- r308: polish
   Lighter edges and soft depth instead of outlined boxes (the way Airbnb and Apple's own apps draw cards), calmer
   status chips, tabular numbers. Works in day and night: the edge is mixed from the theme's own colors. */
:root { --edge: color-mix(in srgb, var(--line) 55%, var(--card)); --lift: 0 1px 2px rgb(0 0 0 / .04), 0 6px 20px rgb(0 0 0 / .05); }
:root[data-mode="night"] { --lift: 0 1px 2px rgb(0 0 0 / .3); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="day"]) { --lift: 0 1px 2px rgb(0 0 0 / .3); } }
body { font-feature-settings: "tnum" 0; letter-spacing: .003em; }
b, strong { font-weight: 700; }
.panel.white, .item, .rows, .report-card, .nextup { border-width: 1px; border-color: var(--edge); box-shadow: var(--lift); }
.rows > a, .rows > div { border-color: var(--edge); }
.panel:not(.white) { border: 0; }
.btn { font-weight: 700; letter-spacing: .005em; border-radius: 12px; }
.btn.quiet { border-color: var(--edge); }
.st { font: 700 .78rem/1 var(--body); letter-spacing: .01em; text-transform: none; padding: 4px 12px; }
.money, .price, .when, .datebox, .ws-clock, .ws-dist, td:last-child, .due-today b, .receipt-amount b { font-variant-numeric: tabular-nums; }
h1 { font-weight: 700; letter-spacing: -0.025em; }
h2, h3 { letter-spacing: -0.015em; }
.sub, .meta, .small.muted { color: var(--muted); }
/* night: the status chips had day colors (they keyed on a theme attribute the app never sets) */
:root[data-mode="night"] .st.ok { background: #1D3327; color: #8FD3A8; }
:root[data-mode="night"] .st.pending, :root[data-mode="night"] .st.action { background: #3A2F14; color: #E8C26A; }
:root[data-mode="night"] .st.urgent { background: #3D1F1C; color: #F29A90; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="day"]) .st.ok { background: #1D3327; color: #8FD3A8; }
  :root:not([data-mode="day"]) .st.pending, :root:not([data-mode="day"]) .st.action { background: #3A2F14; color: #E8C26A; }
  :root:not([data-mode="day"]) .st.urgent { background: #3D1F1C; color: #F29A90; }
}
/* r308: pets without a photo get a soft color of their own, from the theme */
.pet-av-none { font-family: var(--display); font-weight: 700; border: 0 !important; }
.pet-av-none[data-tint="0"] { background: color-mix(in srgb, var(--gold) 22%, var(--card)); color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.pet-av-none[data-tint="1"] { background: color-mix(in srgb, var(--field) 16%, var(--card)); color: var(--field-dark); }
.pet-av-none[data-tint="2"] { background: color-mix(in srgb, #5E8C6A 20%, var(--card)); color: color-mix(in srgb, #5E8C6A 70%, var(--ink)); }
.pet-av-none[data-tint="3"] { background: color-mix(in srgb, #C9A227 22%, var(--card)); color: color-mix(in srgb, #C9A227 55%, var(--ink)); }

/* r309: headings in Young Serif, which comes in one weight: no fake bold. The name beside the logo keeps Fraunces. */
h1, h2, h3, .report-card .when, .nextup-when, .pet-chip b { font-synthesis: none; font-weight: 400; }
.brand, .lp-logo-name { font-family: var(--wordmark); font-weight: 700; }
h1 { letter-spacing: -0.01em; }
html { font-synthesis-weight: none; }   /* r309: real weights only (Young Serif has one) */

/* ---------------------------------------------------------------- r310: interface icons (Phosphor regular, inline) */
.ic { display: inline-block; vertical-align: -0.2em; flex: none; }
.btn .ic, .chip .ic, label.btn .ic { margin-right: 8px; }
.btn.small .ic { width: 1.05em; height: 1.05em; margin-right: 8px; }
button[aria-label] > .ic:only-child, .btn > .ic:only-child { margin-right: 0; }
.walk-ev { display: grid; place-items: center; background: var(--card); color: var(--ink); border-radius: 999px; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.walk-ev .ic { margin: 0; }
.signout-row { margin: 32px 0 8px; text-align: center; }
.signout-row .btn { min-width: 200px; justify-content: center; }
/* r310: small labels in sentence case ("Next up"), not spaced capitals */
.kicker, .nextup-k { text-transform: none; letter-spacing: .01em; font-weight: 700; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- r312: faces and pets */
.pet-av-none { display: inline-grid; place-items: center; }
.pet-glyph { width: 60%; height: 60%; }
.pet-stack { display: inline-flex; flex: none; align-items: center; }
.pet-stack .pet-av { border: 2px solid var(--card) !important; border-radius: 999px; object-fit: cover; }
.pet-stack .pet-av + .pet-av { margin-left: -12px; }
.nextup-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item.bk-item > .pet-stack { align-self: center; margin-left: auto; }
.photo-step { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-top: 16px; }
.photo-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-panel); box-shadow: var(--lift); cursor: pointer; text-align: center; }
.photo-tile .pet-av { border-radius: 999px; object-fit: cover; }
.rep-who { display: flex; align-items: center; gap: 8px; }
.rep-face { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; flex: none; }
.kibble.xs { width: 56px; margin: 0; flex: none; }
.mascot-moment { display: flex; align-items: center; gap: 16px; padding: 16px; margin: 16px 0; background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-panel); box-shadow: var(--lift); }
.mascot-moment b { display: block; font-family: var(--display); font-weight: 400; font-size: var(--fs-md); }
.mascot-moment span { color: var(--muted); }
.mascot-row { display: flex; align-items: center; gap: 12px; }
.mascot-row .kibble.xs { width: 44px; }

/* ---------------------------------------------------------------- r313: motion and feel
   Short and quiet: pages ease in, dialogs rise as sheets on phones, confirmations pop in. Everything is off when the
   device asks for reduced motion. */
@keyframes kk-page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes kk-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes kk-dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes kk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kk-pop { 0% { opacity: 0; transform: scale(.96); } 60% { opacity: 1; transform: scale(1.01); } 100% { transform: none; } }
#view.page-in > * { animation: kk-page-in .22s ease-out both; }
dialog[open] { animation: kk-dlg-in .2s ease-out; }
dialog[open]::backdrop { animation: kk-fade .2s ease-out; }
.ok, .pay-done, .mascot-moment { animation: kk-pop .32s ease-out; }
@media (max-width: 640px) {
  /* dialogs become bottom sheets: full width, rounded top, a grab bar, rising from the bottom edge */
  dialog.report, dialog.map-pick, dialog.safety-dlg, dialog.sheet {
    margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88dvh; border-radius: 20px 20px 0 0;
    padding-top: 28px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation: kk-sheet-up .28s cubic-bezier(.2, .8, .2, 1);
  }
  dialog.report::before, dialog.map-pick::before, dialog.safety-dlg::before, dialog.sheet::before {
    content: ''; position: absolute; top: 10px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line);
  }
  .ask-dlg[open] { animation: kk-sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
}
@media (prefers-reduced-motion: reduce) {
  #view.page-in > *, dialog[open], dialog[open]::backdrop, .ok, .pay-done, .mascot-moment, .ask-dlg[open] { animation: none !important; }
}
/* r313: loading shapes instead of "Loading…" */
@keyframes kk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel > div { border-radius: 12px; margin: 0 0 16px; background: linear-gradient(90deg, var(--fog) 25%, color-mix(in srgb, var(--fog) 50%, var(--card)) 50%, var(--fog) 75%); background-size: 200% 100%; animation: kk-shimmer 1.4s linear infinite; }
.skel .skel-line { height: 32px; width: 45%; margin-top: 8px; }
.skel .skel-card { height: 96px; }
.skel .skel-card.short { height: 64px; }
@media (prefers-reduced-motion: reduce) { .skel > div { animation: none; } }
/* r313: pull to refresh */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; z-index: 60; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  background: var(--card); color: var(--field); box-shadow: 0 2px 10px rgb(0 0 0 / .15); opacity: 0; transform: translate(-50%, -48px); pointer-events: none; transition: opacity .15s; }
.ptr.spin svg { animation: kk-spin .8s linear infinite; }
@keyframes kk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.spin svg { animation-duration: 2s; } }
/* r315: tab bar icons (Phosphor regular), drawn with CSS masks so a badge or label change never drops them */
.tabs a[href="#home"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z'/%3E%3C/svg%3E"); }
.tabs a[href="#home"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z'/%3E%3C/svg%3E"); }
.tabs a[href="#bookings"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z'/%3E%3C/svg%3E"); }
.tabs a[href="#bookings"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z'/%3E%3C/svg%3E"); }
.tabs a[href="#messages"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z'/%3E%3C/svg%3E"); }
.tabs a[href="#messages"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z'/%3E%3C/svg%3E"); }
.tabs a[href="#pets"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M212,80a28,28,0,1,0,28,28A28,28,0,0,0,212,80Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,120ZM72,108a28,28,0,1,0-28,28A28,28,0,0,0,72,108ZM44,120a12,12,0,1,1,12-12A12,12,0,0,1,44,120ZM92,88A28,28,0,1,0,64,60,28,28,0,0,0,92,88Zm0-40A12,12,0,1,1,80,60,12,12,0,0,1,92,48Zm72,40a28,28,0,1,0-28-28A28,28,0,0,0,164,88Zm0-40a12,12,0,1,1-12,12A12,12,0,0,1,164,48Zm23.12,100.86a35.3,35.3,0,0,1-16.87-21.14,44,44,0,0,0-84.5,0A35.25,35.25,0,0,1,69,148.82,40,40,0,0,0,88,224a39.48,39.48,0,0,0,15.52-3.13,64.09,64.09,0,0,1,48.87,0,40,40,0,0,0,34.73-72ZM168,208a24,24,0,0,1-9.45-1.93,80.14,80.14,0,0,0-61.19,0,24,24,0,0,1-20.71-43.26,51.22,51.22,0,0,0,24.46-30.67,28,28,0,0,1,53.78,0,51.27,51.27,0,0,0,24.53,30.71A24,24,0,0,1,168,208Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M212,80a28,28,0,1,0,28,28A28,28,0,0,0,212,80Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,120ZM72,108a28,28,0,1,0-28,28A28,28,0,0,0,72,108ZM44,120a12,12,0,1,1,12-12A12,12,0,0,1,44,120ZM92,88A28,28,0,1,0,64,60,28,28,0,0,0,92,88Zm0-40A12,12,0,1,1,80,60,12,12,0,0,1,92,48Zm72,40a28,28,0,1,0-28-28A28,28,0,0,0,164,88Zm0-40a12,12,0,1,1-12,12A12,12,0,0,1,164,48Zm23.12,100.86a35.3,35.3,0,0,1-16.87-21.14,44,44,0,0,0-84.5,0A35.25,35.25,0,0,1,69,148.82,40,40,0,0,0,88,224a39.48,39.48,0,0,0,15.52-3.13,64.09,64.09,0,0,1,48.87,0,40,40,0,0,0,34.73-72ZM168,208a24,24,0,0,1-9.45-1.93,80.14,80.14,0,0,0-61.19,0,24,24,0,0,1-20.71-43.26,51.22,51.22,0,0,0,24.46-30.67,28,28,0,0,1,53.78,0,51.27,51.27,0,0,0,24.53,30.71A24,24,0,0,1,168,208Z'/%3E%3C/svg%3E"); }
.tabs a[href="#pets"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M240,108a28,28,0,1,1-28-28A28,28,0,0,1,240,108ZM72,108a28,28,0,1,0-28,28A28,28,0,0,0,72,108ZM92,88A28,28,0,1,0,64,60,28,28,0,0,0,92,88Zm72,0a28,28,0,1,0-28-28A28,28,0,0,0,164,88Zm23.12,60.86a35.3,35.3,0,0,1-16.87-21.14,44,44,0,0,0-84.5,0A35.25,35.25,0,0,1,69,148.82,40,40,0,0,0,88,224a39.48,39.48,0,0,0,15.52-3.13,64.09,64.09,0,0,1,48.87,0,40,40,0,0,0,34.73-72Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M240,108a28,28,0,1,1-28-28A28,28,0,0,1,240,108ZM72,108a28,28,0,1,0-28,28A28,28,0,0,0,72,108ZM92,88A28,28,0,1,0,64,60,28,28,0,0,0,92,88Zm72,0a28,28,0,1,0-28-28A28,28,0,0,0,164,88Zm23.12,60.86a35.3,35.3,0,0,1-16.87-21.14,44,44,0,0,0-84.5,0A35.25,35.25,0,0,1,69,148.82,40,40,0,0,0,88,224a39.48,39.48,0,0,0,15.52-3.13,64.09,64.09,0,0,1,48.87,0,40,40,0,0,0,34.73-72Z'/%3E%3C/svg%3E"); }
.tabs a[href="#profile"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z'/%3E%3C/svg%3E"); }
.tabs a[href="#profile"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z'/%3E%3C/svg%3E"); }
.tabs a[href="#visits"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); }
.tabs a[href="#visits"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); }
.tabs a[href="#schedule"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z'/%3E%3C/svg%3E"); }
.tabs a[href="#schedule"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z'/%3E%3C/svg%3E"); }
.tabs a[href="#me"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z'/%3E%3C/svg%3E"); }
.tabs a[href="#me"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z'/%3E%3C/svg%3E"); }
.tabs a[href="/admin.html"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z'/%3E%3C/svg%3E"); }
.tabs a[href="/admin.html"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z'/%3E%3C/svg%3E"); }
.tabs a[href="#overview"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); }
.tabs a[href="#overview"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E"); }
.tabs a[href="#clients"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z'/%3E%3C/svg%3E"); }
.tabs a[href="#clients"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z'/%3E%3C/svg%3E"); }
.tabs a[href="#team"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z'/%3E%3C/svg%3E"); }
.tabs a[href="#team"].on::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z'/%3E%3C/svg%3E"); }
:root { --caret-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E"); }

/* ================================================================== r315: designer review fixes
   From the independent design review: one solid button per screen, real controls instead of browser defaults,
   color by meaning, balanced line breaks, quiet destructive actions. */

/* Bottom tab bar (family and caretaker apps on phones): icon over a small label; the current tab is the theme color,
   not a filled pill, so the screen's one solid button stays the only solid thing. */
@media (max-width: 640px) {
  body.app-shell .tabs { gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  body.app-shell .tabs a, body.app-shell .tabs a.on { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: transparent !important; box-shadow: none !important; padding: 4px 2px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--muted); }
  body.app-shell .tabs a::before { content: ''; display: block; width: 24px; height: 24px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  body.app-shell .tabs a.on { color: var(--field-dark); font-weight: 700; }
  body.app-shell .tabs a .badge { position: absolute; top: 0; left: calc(50% + 6px); }
  body.app-shell .tabs a { position: relative; }
}
@media (min-width: 641px) { .tabs a::before { content: none; } }

/* Selected choices (service, payment, quick picks): a theme-color outline, a soft tint and a check, never solid */
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--field) 9%, var(--card)); color: var(--field-dark); border: 1.5px solid var(--field); box-shadow: none; font-weight: 700; }
.chip[aria-pressed="true"]::before { content: ''; display: inline-block; width: 1em; height: 1em; margin-right: 6px; vertical-align: -0.15em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.seg label:has(input:checked) { background: var(--card); color: var(--field-dark); box-shadow: 0 0 0 1.5px var(--field), 0 1px 2px rgb(0 0 0 / .06); font-weight: 700; }

/* Real controls instead of browser defaults */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details:not(.fold):not(.bk-money):not(.tabs-more) > summary::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -1px; background: currentColor; opacity: .7;
  -webkit-mask: var(--caret-right) center / contain no-repeat; mask: var(--caret-right) center / contain no-repeat; transition: transform .15s ease-out; }
details[open]:not(.fold):not(.bk-money):not(.tabs-more) > summary::before { transform: rotate(90deg); }
textarea { resize: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--field); width: 20px; height: 20px; flex: none; }
select { -webkit-appearance: none; appearance: none; padding-right: 36px !important; background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%235F6573' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; min-height: 44px; background: var(--card); color: var(--ink); text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }

/* Forms sit on white cards like everything else, not a cool grey panel */
form.panel { background: var(--card); border: 1px solid var(--edge); box-shadow: var(--lift); }

/* Line breaks: no lone word on a heading or a paragraph's last line; times and dates don't split */
h1, h2, h3, .nextup-when, .item b, .rows b { text-wrap: balance; }
p, .sub, .meta, .small, li { text-wrap: pretty; }
.nowrap, time { white-space: nowrap; }
* { hyphens: manual; }

/* "Needs you" callouts are amber (needs you), not a pink alert bar; red stays for real problems */
.notice { border-left: 0; border-radius: 12px; background: color-mix(in srgb, #C98A1B 12%, var(--card)); color: var(--ink); }
.notice.urgent, .notice.danger { background: var(--danger-wash); }
.ok { border-left: 0; border-radius: 12px; background: color-mix(in srgb, #2E7D4F 10%, var(--card)); }
:root[data-mode="night"] .notice { background: color-mix(in srgb, #E8C26A 14%, var(--card)); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="day"]) .notice { background: color-mix(in srgb, #E8C26A 14%, var(--card)); } :root:not([data-mode="day"]) .ok { background: color-mix(in srgb, #8FD3A8 12%, var(--card)); } }
:root[data-mode="night"] .ok { background: color-mix(in srgb, #8FD3A8 12%, var(--card)); }

/* Destructive actions: red text, set apart, never a peer of the main button */
.btn.destroy, button.destroy { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--danger) !important; padding: 8px 0; font-weight: 600; text-decoration: none; }
.destroy-row { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--edge); }

/* Visit report: what was done reads as a checklist, not as buttons */
.report-card .done-list li { background: none !important; padding: 0 12px 0 0; border-radius: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.report-card .done-list li::before { content: ''; width: 16px; height: 16px; background: #2E7D4F;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat; }
:root[data-mode="night"] .report-card .done-list li::before { background: #8FD3A8; }
.rate .btn { min-width: 44px; min-height: 44px; }

/* Weights: row titles semibold, not everything bold */
.item b, .rows b, .bk-main > b, .fam-what b { font-weight: 600; }

/* Weekly plan row: the schedule reads in one line; Pause and Stop sit under it */
#stpanel .item { flex-wrap: wrap; }
#stpanel .item > div:last-child { width: 100%; }

.rows > details > summary::before, .lp-faq summary::before { content: none !important; }
/* Chevrons are the icon family's caret, not a typed "›" */
.rows > a::after, .rows > details > summary::after, details.fold > summary::after, .bk-money > summary::after {
  content: '' !important; display: inline-block; flex: none; width: 16px; height: 16px; margin-left: 8px; background: var(--muted);
  -webkit-mask: var(--caret-right) center / contain no-repeat; mask: var(--caret-right) center / contain no-repeat; }

/* r315: Admin on a phone: the same bottom tab bar as the apps (Today, Messages, Schedule, Clients, More); Team moves
   into More there. On a laptop the tabs stay at the top. */
.more-menu .more-team { display: none; }
@media (max-width: 640px) {
  body.admin-shell #tabs.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; display: flex; flex-wrap: nowrap; gap: 0; overflow: visible;
    background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  body.admin-shell #tabs.tabs > a[href="#team"] { display: none; }
  body.admin-shell .more-menu .more-team { display: block; }
  body.admin-shell #tabs.tabs > a, body.admin-shell .tabs-more > summary { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative;
    background: transparent !important; box-shadow: none !important; padding: 4px 2px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--muted); }
  body.admin-shell .tabs-more { flex: 1 1 0; display: flex; }
  body.admin-shell .tabs-more > summary { width: 100%; }
  body.admin-shell .tabs-more > summary::after { content: none !important; }
  body.admin-shell #tabs.tabs > a::before, body.admin-shell .tabs-more > summary::before { content: '' !important; display: block; width: 24px; height: 24px; background: currentColor;
    -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transform: none !important; opacity: 1; margin: 0; }
  body.admin-shell .tabs-more > summary::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z'/%3E%3C/svg%3E"); }
  body.admin-shell #tabs.tabs > a.on, body.admin-shell .tabs-more.on > summary { color: var(--field-dark); font-weight: 700; }
  body.admin-shell .tabs-more.on > summary::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z'/%3E%3C/svg%3E"); }
  body.admin-shell .more-menu { top: auto; bottom: calc(100% + 8px); right: 8px; max-height: 70vh; overflow: auto; }
  body.admin-shell main { padding-bottom: 84px; }
}
/* r315 Admin Today: the at-a-glance strip, row actions, the missed check-in action */
.sum-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.sum-strip button { font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--card); color: var(--ink); cursor: pointer; }
.sum-strip .sum-bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--card)); }
.sum-strip .sum-need { color: #7A5300; border-color: color-mix(in srgb, #C98A1B 45%, var(--card)); }
:root[data-mode="night"] .sum-strip .sum-need { color: #E8C26A; }
.row-act { color: var(--field-dark); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.row-act::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; background: currentColor; -webkit-mask: var(--caret-right) center / contain no-repeat; mask: var(--caret-right) center / contain no-repeat; }
.late-act { margin: -4px 0 12px; }
.list-search { width: 100%; min-height: 44px; margin: 0 0 12px; position: sticky; top: 8px; z-index: 5; }
.meta.credit { color: #2E7D4F; font-weight: 600; }
:root[data-mode="night"] .meta.credit { color: #8FD3A8; }
/* r315 Admin Team: a row per person; managing opens on a tap */
.team-head { display: flex; align-items: center; gap: 12px; }
.team-face { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; flex: none; }
.team-face.blank { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--field) 14%, var(--card)); color: var(--field-dark); font-family: var(--display); font-size: 20px; }
.team-manage { margin-top: 12px; }
.team-manage > summary { font-weight: 600; color: var(--field-dark); padding: 8px 0; }
/* r315 night contrast (design review): neutral badges and inputs stand off the card; card edges show */
:root[data-mode="night"] { --edge: #343844; }
:root[data-mode="night"] .st.info { background: #33363F; color: #C9CCD3; }
:root[data-mode="night"] input, :root[data-mode="night"] select, :root[data-mode="night"] textarea { background-color: #2A2E38; color: #ECE8E1; border-color: #4A4F5C; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="day"]) { --edge: #343844; }
  :root:not([data-mode="day"]) .st.info { background: #33363F; color: #C9CCD3; }
  :root:not([data-mode="day"]) input, :root:not([data-mode="day"]) select, :root:not([data-mode="day"]) textarea { background-color: #2A2E38; color: #ECE8E1; border-color: #4A4F5C; }
}
.vet-main { width: 100%; margin-bottom: 8px; }
.vet-note { display: block; }
/* A tappable callout ("Next: finish Before your stay") says so with a caret */
a.notice { position: relative; padding-right: 44px; }
a.notice::after { content: ''; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: currentColor; opacity: .6; -webkit-mask: var(--caret-right) center / contain no-repeat; mask: var(--caret-right) center / contain no-repeat; }
.bk-msgrow { margin: 16px 0; }
.msg-face { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; margin-right: 12px; background: color-mix(in srgb, var(--field) 12%, var(--card)); color: var(--field-dark); }
.bk-msgrow a { display: flex; align-items: center; }
@media (max-width: 640px) { body.admin-shell .ask-fab { bottom: calc(76px + env(safe-area-inset-bottom)); } }
#vetting .checklist li:has(.vet-main) { flex-direction: column; align-items: stretch; display: flex; }

/* ================================================================== r318: finishing the design review */
.late-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
body.tips-off .ex-dot, body.tips-off .explain-note { display: none !important; }
#tabs .more-menu .more-tips { font: inherit; text-align: left; border: 0; border-top: 1px solid var(--edge); margin-top: 4px; background: transparent; padding: 12px; color: var(--muted); font-weight: 600; cursor: pointer; }
.ready-steps { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 8px 0; padding: 0; font-size: var(--fs-sm); color: #7A5300; }
.ready-steps li { display: inline-flex; align-items: center; gap: 6px; }
.ready-steps li.done { color: #2E7D4F; }
:root[data-mode="night"] .ready-steps { color: #E8C26A; } :root[data-mode="night"] .ready-steps li.done { color: #8FD3A8; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="day"]) .ready-steps { color: #E8C26A; } :root:not([data-mode="day"]) .ready-steps li.done { color: #8FD3A8; } }
/* Admin Clients: one card of 64 px rows with dividers, not a stack of separate cards */
#clist { gap: 0; background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-panel); box-shadow: var(--lift); overflow: hidden; }
#clist .item { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--edge); min-height: 64px; padding: 12px 16px; }
#clist .item:last-child { border-bottom: 0; }
/* Caretaker Me: one grouped list of settings rows (each opens in place), like the family Profile */
.settings-group { background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-panel); box-shadow: var(--lift); overflow: hidden; margin: 0 0 16px; }
.settings-group > details.panel { margin: 0 !important; border: 0 !important; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--edge) !important; padding: 0 16px; background: transparent; }
.settings-group > details.panel:last-child { border-bottom: 0 !important; }
.settings-group > details.panel > summary { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 0; }
.settings-group > details.panel > summary::before { order: 2; margin: 0 0 0 auto !important; }
.settings-group > details.panel[open] { padding-bottom: 16px; }
details.destroy-fold { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; margin-top: 16px; }
details.destroy-fold > summary { color: var(--danger); font-weight: 600; }
details.destroy-fold > summary b { font-weight: 600; }
/* Caretaker "Before your first visit": numbered steps */
#vetting .checklist { counter-reset: vstep; }
#vetting .checklist li { position: relative; padding-left: 40px; border-bottom: 1px solid var(--edge); min-height: 56px; }
#vetting .checklist li:last-child { border-bottom: 0; }
#vetting .checklist li::before { counter-increment: vstep; content: counter(vstep); position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--field-dark); background: color-mix(in srgb, var(--field) 12%, var(--card)); }
#vetting .checklist li.done::before { content: '✓'; color: #fff; background: #2E7D4F; }
/* Messages: one-line composer (photo · text · send), sender faces, readable "mine" bubbles at night */
.chat-about { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.chat-about select { max-width: 260px; min-height: 36px; }
.chat-bar { display: flex; align-items: flex-end; gap: 8px; background: var(--card); border: 1px solid var(--edge); border-radius: 24px; padding: 4px; box-shadow: var(--lift); }
.chat-bar textarea { flex: 1; min-height: 40px; max-height: 120px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 9px 4px; font: inherit; outline: none; resize: none; }
.chat-attach, .chat-send { flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; border: 0; }
.chat-attach { color: var(--muted); background: transparent; }
.chat-attach .ic, .chat-send .ic { width: 22px; height: 22px; margin: 0; }
.chat-send { background: var(--field); color: var(--on-field); }
.chat-send:disabled { opacity: .5; }
.chat-bar:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--field) 40%, transparent); }
.chat-note { margin: 8px 4px 0; }
.chat-quick { mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.chat-quick .chip { font-size: var(--fs-sm); padding: 6px 12px; }
.chat-who { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.chat-face { width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; color: var(--field-dark); background: color-mix(in srgb, var(--field) 14%, var(--card)); }
.chat-msg.mine .chat-bubble { color: var(--on-field); }
/* Pet page as a profile */
.pet-head { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.pet-head .pet-av { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; flex: none; }
.pet-head h1 { margin: 0; }
.pet-facts { margin: 4px 0 0; }
.pet-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#f.panel:has(.pet-secs) { background: transparent; border: 0; box-shadow: none; padding: 0; }
.pet-secs { background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-panel); box-shadow: var(--lift); overflow: hidden; margin: 0 0 16px; }
.pet-sec { border-bottom: 1px solid var(--edge); padding: 0 16px; }
.pet-sec:last-child { border-bottom: 0; }
.pet-sec > summary { display: flex; align-items: center; min-height: 64px; padding: 8px 0; gap: 8px; }
.pet-sec > summary > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pet-sec > summary .sub { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet-sec > summary::before { order: 2; margin: 0 !important; }
.pet-sec[open] { padding-bottom: 16px; }
.team-item > .team-manage { flex: 1 1 100%; }
.step-hint { margin-top: 8px; }
/* Ask: a small labeled pill ("✦ Ask") on phones too, so it never reads as a second Messages button */
@media (max-width: 640px) { .ask-fab span { display: inline; } .ask-fab { padding: 10px 14px 10px 12px; font-size: var(--fs-sm); } }
.ask-fab .ic { width: 20px; height: 20px; margin: 0; }
/* leave room so the floating buttons never cover the last row */
@media (max-width: 640px) { body.app-shell main, body.admin-shell main { padding-bottom: 148px; } }
/* Admin on a laptop: the list pane is a narrow page, but never shows the phone's tab bar or a second Ask button */
body.pane-list #tabs.tabs { display: none !important; }
body.pane-list .ask-fab, body.pane-list #shield { display: none !important; }
.tabs a:focus:not(:focus-visible), .tabs-more > summary:focus:not(:focus-visible) { outline: none; }
/* Pet page: Save appears once something changes */
.pet-save.hidden { display: none !important; }
/* Admin Clients rows: an initial, the name, and a caret */
#clist .item { align-items: center; gap: 12px; }
#clist .c-main { flex: 1; min-width: 0; }
#clist .c-face { width: 40px; height: 40px; font-size: 16px; }
#clist .item::after { content: ''; flex: none; width: 16px; height: 16px; background: var(--muted); -webkit-mask: var(--caret-right) center / contain no-repeat; mask: var(--caret-right) center / contain no-repeat; }
.list-search { margin-top: 8px; margin-bottom: 16px; }
/* Caretaker Me: Availability and My places join the grouped look */
.me-rows { gap: 0; background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-panel); box-shadow: var(--lift); overflow: hidden; }
.me-rows .item { border: 0 !important; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--edge) !important; min-height: 64px; }
.me-rows .item:last-child { border-bottom: 0 !important; }
.settings-head { color: var(--ink); }
#clist .c-face { flex: 0 0 40px !important; max-width: 40px; }
/* r319: Ask carries Kibble (the app mark, only resized), not a generic AI sparkle */
.ask-fab .ask-mark { width: 24px; height: 24px; border-radius: 7px; flex: none; display: block; }

/* r320: Profile sections open in place. The row already names the section, so the panel inside drops its own
   title and card frame (the Edit button stays). */
.rows > details > .row-body > .panel, .rows > details > .row-body .rec { border: 0; box-shadow: none; background: transparent; padding: 0; margin: 0; }
.rows > details > .row-body .rec-head h2 { display: none; }
.rows > details > .row-body .rec-head { justify-content: flex-end; margin: 0 0 4px; }
.rows > details:not([data-k="ai"]) > .row-body > .panel > :is(h2, h3):first-child { display: none; }
.rows > details[open] > summary { background: var(--fog); }
@media (prefers-reduced-motion: no-preference) { .rows > details[open] > .row-body { animation: kk-page-in .18s ease-out; } }
.rows > details > .row-body .rec.editing { padding: 12px; border-radius: 12px; }

/* ---------------------------------------------------------------- r321: quick, purposeful motion
   Fast (under a third of a second) and only where it explains something: a screen settles in, the tab highlight
   follows your tap, a press gives way, a confirmation gets a check, a booking's progress fills in. Off when the
   phone asks for reduced motion. */
@keyframes kk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes kk-rise-sm { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes kk-tab-pop { 0% { transform: scale(.88); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes kk-check-in { 0% { transform: scale(0) rotate(-60deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes kk-fill { from { width: 0; } }
@keyframes kk-dot-in { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.v2 #view.page-in > * { animation: kk-rise .3s cubic-bezier(.2, .8, .2, 1) both; }
  html.v2 #view.page-in > :nth-child(2) { animation-delay: .03s; } #view.page-in > :nth-child(3) { animation-delay: .06s; }
  html.v2 #view.page-in > :nth-child(4) { animation-delay: .09s; } #view.page-in > :nth-child(5) { animation-delay: .12s; }
  html.v2 #view.page-in > :nth-child(6) { animation-delay: .14s; } #view.page-in > :nth-child(n+7) { animation-delay: .16s; }
  /* rows inside a list follow one by one */
  html.v2 #view.page-in .rows > *, html.v2 #view.page-in .list > .item, html.v2 #view.page-in .clist > * { animation: kk-rise-sm .26s cubic-bezier(.2, .8, .2, 1) both; }
  html.v2 #view.page-in .rows > :nth-child(1), html.v2 #view.page-in .list > .item:nth-child(1) { animation-delay: .06s; }
  html.v2 #view.page-in .rows > :nth-child(2), html.v2 #view.page-in .list > .item:nth-child(2) { animation-delay: .085s; }
  html.v2 #view.page-in .rows > :nth-child(3), html.v2 #view.page-in .list > .item:nth-child(3) { animation-delay: .11s; }
  html.v2 #view.page-in .rows > :nth-child(4), html.v2 #view.page-in .list > .item:nth-child(4) { animation-delay: .135s; }
  html.v2 #view.page-in .rows > :nth-child(5), html.v2 #view.page-in .list > .item:nth-child(5) { animation-delay: .16s; }
  html.v2 #view.page-in .rows > :nth-child(n+6), html.v2 #view.page-in .list > .item:nth-child(n+6) { animation-delay: .18s; }

  /* press: buttons, rows and cards sink a little under the finger */
  html.v2 .btn, html.v2 .chip, html.v2 .rows > a, html.v2 .rows > details > summary, html.v2 a.nextup, html.v2 .bk-card, html.v2 .card { transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
  html.v2 .btn:active:not([disabled]), html.v2 .chip:active { transform: scale(.97); }
  html.v2 .rows > a:active, html.v2 .rows > details > summary:active { transform: scale(.985); }
  html.v2 a.nextup:active, html.v2 a.bk-card:active, html.v2 a.card:active { transform: scale(.98); }

  /* tab bar: the current tab's icon pops when it becomes current */
  html.v2 .tabs a.on::before { animation: kk-tab-pop .3s cubic-bezier(.3, 1.5, .5, 1); }

  /* booking progress fills in */
  html.v2 .bk-steps .bk-fill { animation: kk-fill .55s .1s cubic-bezier(.3, .9, .3, 1) both; }
  html.v2 .bk-steps li.st-done::before, html.v2 .bk-steps li.st-now::before { animation: kk-dot-in .4s cubic-bezier(.3, 1.6, .5, 1) both; }
  html.v2 .bk-steps li:nth-child(2)::before { animation-delay: .25s; } .bk-steps li:nth-child(3)::before { animation-delay: .4s; } .bk-steps li:nth-child(4)::before { animation-delay: .55s; }
}

/* confirmations: a green check springs in at the start of the message */
html.v2 .ok:not(.st):not(.mascot-row)::before { content: ''; display: inline-block; flex: none; width: 22px; height: 22px; margin: -3px 10px -6px 0; vertical-align: middle; border-radius: 50%;
  background: #2E9E5B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  animation: kk-check-in .36s cubic-bezier(.3, 1.6, .5, 1) both; }
html.v2 .ok.small:not(.st)::before { width: 18px; height: 18px; background-size: 11px; margin-right: 8px; }

/* tab bar highlight that slides between tabs (phones; placed by common.js) */
html.v2 .tab-ink { display: none; }
@media (max-width: 640px) {
  html.v2 .tabs .tab-ink { display: block; position: absolute; left: 0; top: 8px; width: 60px; height: 30px; border-radius: 999px; pointer-events: none; z-index: 0;
    background: color-mix(in srgb, var(--field) 16%, transparent); transition: transform .28s cubic-bezier(.3, 1.15, .5, 1), opacity .2s ease; opacity: 0; }
  html.v2 .tabs > a, html.v2 .tabs > .tabs-more { position: relative; z-index: 1; }
}

/* booking progress: Requested, Quoted, Confirmed, Done */
html.v2 .bk-steps { --n: 4; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); list-style: none; margin: 14px 0 18px; padding: 0; }
html.v2 .bk-steps .bk-track, html.v2 .bk-steps .bk-fill { position: absolute; top: 7px; height: 3px; border-radius: 3px; left: calc(50% / var(--n)); }
html.v2 .bk-steps .bk-track { right: calc(50% / var(--n)); background: var(--line); }
html.v2 .bk-steps .bk-fill { width: calc((100% - 100% / var(--n)) * var(--at) / (var(--n) - 1)); background: var(--field); }
html.v2 .bk-steps li { position: relative; text-align: center; font-size: var(--fs-xs); color: var(--muted); padding-top: 22px; line-height: 1.2; }
html.v2 .bk-steps li::before { content: ''; position: absolute; top: 0; left: 50%; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--line); box-sizing: border-box; }
html.v2 .bk-steps li.st-done::before { background: var(--field); border-color: var(--field); }
html.v2 .bk-steps li.st-now { color: var(--ink); font-weight: 700; }
html.v2 .bk-steps li.st-now::before { background: var(--card); border-color: var(--field); box-shadow: 0 0 0 5px color-mix(in srgb, var(--field) 20%, transparent); }
html.v2 .bk-steps li.st-live::before { border-color: #2E9E5B; box-shadow: 0 0 0 0 rgba(46, 158, 91, .5); animation: livepulse 1.8s infinite !important; }
@media (prefers-reduced-motion: reduce) { .ok::before { animation: none !important; } .tabs .tab-ink { transition: none; } }

/* ================================================================ r322: the new design (preview: html.v2)
   One idea, taken from the logo: your home, drawn in ink. The next visit sits in a house (an ink roof, your pets
   under it, lit warm while the caretaker is there). Everything else stays quiet: printed-ink edges instead of grey
   shadows, buttons that press like keys, booking dates on little key tags. Every color comes from the theme, so
   all four themes and night mode carry through. */
.nx-roof { display: none; }
html.v2 { --ink-line: color-mix(in srgb, var(--ink) 82%, var(--paper)); --edge-v2: color-mix(in srgb, var(--ink) 15%, var(--paper)); --lift: none; }

/* the house */
html.v2 .nextup { --nx-bg: var(--card); position: relative; margin: 76px 0 24px; padding: 20px 20px 18px; background: var(--nx-bg);
  border: 1.75px solid var(--ink-line); border-top: 0; border-radius: 0 0 22px 22px; box-shadow: none; }
html.v2 .nextup:hover { border-color: var(--ink-line); }
html.v2 .nextup.is-here { --nx-bg: color-mix(in srgb, #F2C14E 16%, var(--card)); }
html.v2 .nx-roof { display: block; position: absolute; left: -11px; top: -63px; width: calc(100% + 22px); height: 64px; overflow: visible; pointer-events: none; }
html.v2 .nx-roof-fill { fill: var(--nx-bg); }
html.v2 .nx-roof-line { fill: none; stroke: var(--ink-line); stroke-width: 1.75px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
html.v2 .nextup .nextup-top .pet-stack { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); }
html.v2 .nextup .nextup-top .pet-stack img, html.v2 .nextup .nextup-top .pet-stack > * { box-shadow: 0 0 0 2.5px var(--nx-bg); }
html.v2 .nextup-k { color: var(--muted); font-weight: 600; }
html.v2 .nextup-when { font-size: clamp(1.75rem, 7.4vw, 2.25rem); line-height: 1.08; margin: 6px 0 10px; letter-spacing: -.01em; }
html.v2 .nextup-what { font-size: var(--fs-base); }
html.v2 .nextup-foot { border-top: 1.5px dashed var(--edge-v2); }

/* printed edges, no grey shadows */
html.v2 .rows, html.v2 .item, html.v2 .panel.white, html.v2 .panel { border-color: var(--edge-v2); box-shadow: none; }

/* buttons press like keys */
html.v2 .btn { transition: transform .07s ease, box-shadow .07s ease, background-color .15s ease; }
html.v2 .btn:not(.quiet):not(.link):not(.destroy):not(.btn-apple) { box-shadow: 0 3px 0 color-mix(in srgb, var(--field) 50%, #000); margin-bottom: 3px; }
html.v2 .btn:not(.quiet):not(.link):not(.destroy):not(.btn-apple):active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--field) 50%, #000); }
html.v2 .btn.quiet { background: var(--card); border: 1.5px solid var(--ink-line); box-shadow: 0 2px 0 var(--ink-line); margin-bottom: 2px; color: var(--ink); }
html.v2 .btn.quiet:active:not([disabled]) { transform: translateY(1.5px); box-shadow: 0 .5px 0 var(--ink-line); }

/* booking dates on key tags */
html.v2 .item.bk-item > .datebox { position: relative; flex-basis: 50px; width: 50px; padding: 15px 0 8px; background: color-mix(in srgb, var(--gold) 13%, var(--card));
  border: 1.5px solid var(--ink-line); border-radius: 10px 10px 16px 16px; }
html.v2 .item.bk-item > .datebox::before { content: ''; position: absolute; top: 5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  border: 1.5px solid var(--ink-line); background: var(--paper); box-sizing: border-box; }
html.v2 .datebox span { color: var(--ink); }
html.v2 .datebox b { font-family: var(--display, inherit); font-weight: 400; font-size: 1.35rem; }

/* tab bar: an ink rule on top */
@media (max-width: 640px) { html.v2 body.app-shell .tabs, html.v2 body.admin-shell #tabs.tabs { border-top: 1.5px solid var(--ink-line); } }
@media (prefers-reduced-motion: reduce) { html.v2 .btn { transition: none; } }
/* outside the preview these stay hidden */
.tab-ink, .bk-steps { display: none; }
html.v2 .bk-steps { display: grid; }

/* ---------------------------------------------------------------- r322: footer and the Ask button on tablets
   Short pages: the footer sits at the bottom of the screen, not halfway up with empty space under it. */
body.app-shell, body.admin-shell, body.team-shell { min-height: 100svh; display: flex; flex-direction: column; }
body.app-shell > main, body.admin-shell > main, body.team-shell > main { flex: 1 0 auto; }
/* the footer: two quiet lines, smaller than the page, links spaced instead of strung with dots */
.footer { border-top: 1px solid var(--line); padding: 20px 0 28px; margin-top: 32px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; background: transparent; }
.footer .wrap { display: block; }
.footer .foot-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.footer .foot-name { color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.footer .foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer .foot-links a, .footer .foot-fine a { color: var(--muted); text-decoration: none; }
.footer .foot-links a:hover, .footer .foot-fine a:hover { color: var(--ink); text-decoration: underline; }
.footer .foot-fine { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 10px; opacity: .85; }
.footer .build-stamp { margin: 0; font-size: inherit; opacity: .7; }
@media (max-width: 640px) { .footer .foot-main { flex-direction: column; } }
/* Ask on iPads and laptops: measured from the top of the visible screen (Safari on iPad can place "bottom" under the
   fold), so it's always in view, bottom right */
@media (min-width: 641px) {
  .ask-fab, .ask-fab.over-shield { bottom: auto; top: calc(100svh - 72px - env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); }
  body.app-shell > main, body.admin-shell > main { padding-bottom: 88px; }
}
@media (min-width: 641px) { .footer .foot-fine { padding-right: 130px; } }
/* r324: a face or photo at the start of a row keeps its own size (the "first child grows" rule stretched it) */
.item > img:first-child, .item > .cphoto:first-child, .item > .avatar:first-child { flex: 0 0 auto; }

/* r325: who's signed in, top right */
.topbar nav a.acct-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.topbar nav a.acct-chip:hover { background: var(--fog); }
.acct-face { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--field); color: var(--on-field); font-weight: 800; font-size: .85rem; object-fit: cover; }
@media (max-width: 640px) { .topbar nav a.acct-chip { padding: 3px; } .acct-chip .acct-name { display: none; } }

/* ---------------------------------------------------------------- r328: Admin on an iPad or a laptop
   A sidebar of pages in groups, the page beside it; the pill row and More menu stay for narrower screens. */
.admin-side { display: none; }
@media (min-width: 1000px) {
  body.admin-shell:not(.pane-list) main.app-main.has-side { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 0 8px; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; padding-left: 16px; padding-right: 16px; }
  body.admin-shell:not(.pane-list) main.app-main.has-side > .wrap { max-width: 1100px; margin: 0; width: 100%; padding: 0 8px 0 24px; box-sizing: border-box; }
  body.admin-shell:not(.pane-list) .admin-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; align-self: start; max-height: calc(100svh - 32px); overflow-y: auto;
    padding: 4px 16px 16px 0; border-right: 1px solid var(--line); }
  body.admin-shell:not(.pane-list) #tabs.tabs { display: none; }
  .side-group { display: flex; flex-direction: column; gap: 2px; }
  .side-h { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding: 0 12px 4px; }
  .admin-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
  .admin-side a:hover { background: var(--fog); }
  .admin-side a.on { background: color-mix(in srgb, var(--field) 12%, var(--card)); color: var(--field-dark); box-shadow: inset 3px 0 0 var(--field); }
  .admin-side .side-tips { margin-top: 4px; text-align: left; background: none; border: 0; padding: 8px 12px; color: var(--muted); font: inherit; font-size: var(--fs-xs); cursor: pointer; border-radius: 10px; }
  .admin-side .side-tips:hover { background: var(--fog); color: var(--ink); }
  body.admin-shell .topbar .wrap { max-width: 1400px; }
  body.admin-shell .topbar #frswitch select { min-width: 180px; max-width: 280px; }
}

/* the account menu (Admin): who's signed in, My visits, Client view, Sign out */
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); white-space: nowrap; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-menu > summary::after { content: none !important; }
.acct-menu[open] > summary, .acct-menu > summary:hover { background: var(--fog); }
.acct-menu .acct-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 240px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .14); display: flex; flex-direction: column; }
.acct-menu .acct-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.acct-menu .acct-who span { color: var(--muted); font-size: var(--fs-xs); }
.acct-menu .acct-pop a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.acct-menu .acct-pop a:hover { background: var(--fog); }
.acct-menu .acct-pop .nav-short { display: none; } .acct-menu .acct-pop .nav-long { display: inline; }
.acct-menu .acct-pop a.nav-long { display: block; }
@media (max-width: 640px) { .acct-menu > summary { padding: 3px; } .acct-menu > summary .acct-name { display: none; } }
.acct-menu > summary::before { content: none !important; display: none !important; }

/* ---------------------------------------------------------------- r329: tabs on iPad and computer
   One segmented control, centered, with the same icons as the phone's tab bar: the current tab is a raised white
   segment. (Was a row of separate outlined buttons.) */
@media (min-width: 641px) {
  body.app-shell .tabs { display: flex; flex-wrap: nowrap; width: max-content; max-width: 100%; margin: 4px auto 24px; padding: 4px; gap: 2px; overflow-x: auto;
    background: var(--fog); border: 1px solid var(--line); border-radius: 999px; box-shadow: none; }
  body.app-shell .tabs a, body.app-shell .tabs a.on { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 0;
    background: transparent; box-shadow: none; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
  body.app-shell .tabs a:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 60%, transparent); }
  body.app-shell .tabs a::before { content: ''; display: block; flex: none; width: 18px; height: 18px; background: currentColor;
    -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  body.app-shell .tabs a.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 2px 8px rgb(0 0 0 / .06); }
  :root[data-mode="night"] body.app-shell .tabs a.on { background: color-mix(in srgb, var(--card) 70%, #fff 8%); }
  body.app-shell .tabs .badge { margin-left: 2px; }
}
@media (min-width: 641px) { body.app-shell #view > .tabs { margin-left: 0; } }   /* the caretaker app's tabs sit under the page title, so they line up with it */

/* r331: whether a pet's section has anything in it yet */
.pet-sec > summary .sec-mark { order: 1; flex: none; }
.pet-sec > summary .sec-mark.done { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2E7D4F; color: #fff; }
.pet-sec > summary .sec-mark.done .ic, .pet-sec > summary .sec-mark.done svg { width: 14px; height: 14px; }
.pet-sec:not(.is-filled) > summary .sub { font-style: normal; }
:root[data-mode="night"] .pet-sec > summary .sec-mark.done { background: #8FD3A8; color: #171A21; }
/* r332: the family's regular caretaker on Profile */
.rec-carer { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.rec-carer .rec-l { display: block; font-size: var(--fs-xs); color: var(--muted); }
.rec-carer b { font-size: var(--fs-base); }

/* r340: accessibility pass (axe, WCAG 2 AA): footer fine print and the "Next up" label meet 4.5:1 contrast */
.footer .foot-fine { opacity: 1; }
.footer .build-stamp { opacity: 1; }
.nextup-k { color: color-mix(in srgb, var(--gold) 72%, var(--ink)); }
/* r341: a family's ID check on their Admin page */
.id-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }

/* r342: "Before your stay" on a phone: Back and Next stay in view at the bottom (above the tab bar) instead of
   sitting below the fold under a long section */
@media (max-width: 640px) {
  .stepnav { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 20; margin: 16px -16px 0; padding: 10px 16px;
    background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
}
.prep-sum { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.prep-sum dt { color: var(--muted); font-size: var(--fs-sm); }
.prep-sum dd { margin: 0; }
@media (max-width: 640px) { body.app-shell:has(.stepnav) .ask-fab { bottom: calc(136px + env(safe-area-inset-bottom)); } }
/* r343: the signed-in chip on every page, not only inside the apps */
nav a.acct-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink); text-decoration: none; box-shadow: none; }
nav a.acct-chip:hover { background: var(--fog); }
@media (max-width: 640px) { nav a.acct-chip { padding: 3px; } nav a.acct-chip .acct-name { display: none; } }

/* r351: Figtree loads in three weights only (400, 600, 700). Older rules that ask for 500, 800 or 900 resolve to the
   nearest loaded weight (500 to 400, 800 and 900 to 700); font-synthesis is off, so nothing is faked. */

/* r352: connection bar (offline, slow, back online) and what-to-fix under a field */
.netbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 1000;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.netbar.offline { background: var(--danger, #A33); color: #fff; }
.netbar.back { background: var(--field); color: var(--on-field); }
.netbar[hidden] { display: none; }
.field-err { display: block; margin: 4px 0 8px; color: var(--danger, #A33); font-size: var(--fs-sm); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--danger, #A33) !important; }
@media print { .netbar { display: none !important; } }
@media (max-width: 640px) { body.app-shell .netbar { bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); } }   /* above the phone tab bar */

/* r354: the app's own confirm / prompt / alert */
dialog.kk-dlg { border: 0; border-radius: 20px; padding: 24px 22px 18px; width: min(380px, calc(100vw - 40px));
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24); text-align: center; }
dialog.kk-dlg::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.kk-dlg-head { margin: 0; font-family: var(--body); font-weight: 700; font-size: 1.12rem; line-height: 1.3; letter-spacing: 0; color: var(--ink); text-wrap: balance; }
.kk-dlg-more { margin: 8px 0 0; font-size: .95rem; line-height: 1.45; color: var(--muted); white-space: pre-line; text-wrap: pretty; }
.kk-dlg-rows { margin: 16px 0 0; padding: 4px 14px; border-radius: 12px; background: var(--paper); text-align: left; }
.kk-dlg-rows > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 0; }
.kk-dlg-rows > div + div { border-top: 1px solid var(--line); }
.kk-dlg-rows dt { color: var(--muted); font-size: .9rem; }
.kk-dlg-rows dd { margin: 0; text-align: right; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.kk-dlg-rows > div.kk-dlg-long { grid-template-columns: 1fr; gap: 2px; }   /* a long value (what's on the receipt) gets its own line */
.kk-dlg-rows > div.kk-dlg-long dd { text-align: left; }
.kk-dlg .btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--field) 55%, transparent); outline-offset: 2px; }
.kk-dlg-input { width: 100%; margin: 16px 0 0; }
.kk-dlg-money { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.kk-dlg-money .kk-dlg-input { width: 6.5ch; margin: 0; }
.kk-dlg-money .field-err { margin-bottom: 0; }
.kk-dlg-btns { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.kk-dlg-btns .btn { margin: 0; flex: 1 1 0; min-width: 0; }
@media (max-width: 480px) { .kk-dlg-btns { flex-direction: column-reverse; gap: 8px; } .kk-dlg-btns .btn { width: 100%; flex: none; } }

/* r355: tip picker (family app) and money fields */
.tip-panel { text-align: center; }
.tip-panel h2 { margin-bottom: 4px; }
.tip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 6px; }
.tip-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 10px 4px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.tip-tile b { font-size: 1.15rem; font-weight: 700; }
.tip-tile span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tip-tile[aria-checked="true"] { border-color: var(--field); background: var(--field); color: var(--on-field); }
.tip-tile[aria-checked="true"] span { color: var(--on-field); opacity: .85; }
.tip-tile:focus-visible { outline: 2px solid color-mix(in srgb, var(--field) 55%, transparent); outline-offset: 2px; }
.tip-of { margin: 0 0 4px; }
.tip-custom { display: flex; justify-content: center; margin: 10px 0 0; }
.money-field { display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.money-field:focus-within { border-color: var(--field); }
.money-field span { font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.money-field input { width: 6.5ch; border: 0 !important; background: transparent; box-shadow: none !important; outline: none; padding: 10px 0; margin: 0;
  font-size: 1.4rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.tip-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tip-actions .btn { width: 100%; margin: 0; }
@media (min-width: 560px) { .tip-actions { flex-direction: row; justify-content: center; } .tip-actions .btn { width: auto; min-width: 220px; } }
@media (max-width: 360px) { .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* r356: a blurred preview of each visit photo shows at once; the photo covers it when it arrives */
.media-grid a.mph { position: relative; overflow: hidden; border-radius: var(--radius-cell); background-size: cover; background-position: center; }
.media-grid a.mph::before { content: ''; position: absolute; inset: -12px; background: inherit; filter: blur(12px); transform: scale(1.1); }
.media-grid a.mph img { position: relative; background: transparent; }

/* r356: a slow page change shows the loading shapes (the old page waits hidden behind them) */
#view.page-wait > .page-skel ~ * { display: none; }
#view.page-wait > .page-skel { opacity: 1 !important; }
.skel.skel-small > div { margin-bottom: 10px; }
.skel.skel-small .skel-card { height: 56px; }

/* r357: a steady booking form. Day cells keep their square (a long tag is cut short instead of making the row
   taller), so every month is the same height and nothing below the calendar moves. */
.cal-day { min-height: 0; overflow: hidden; }
.cal-day .pct { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal.range .cal-detail { min-height: 88px; }   /* room for the two-line trip summary, so the second tap doesn't push the form down */
/* the loading stand-in is as tall as the calendar will be (one month on phones, two side by side from 600px) */
.cal-loading { min-height: calc(85cqw + 220px); }
.cal-loading .skel { margin: 0; }
.cal-loading .cal-skel { height: calc(85cqw + 160px); }
@container (min-width: 600px) { .cal-loading { min-height: calc(42.7cqw + 202px); } .cal-loading .cal-skel { height: calc(42.7cqw + 142px); } }

/* r359: iPhone apps (html.native-app, set in boot.js). The top bar sits below the clock instead of under it, its
   paper colour fills the status-bar area, and the footer (copyright and links) shows in browsers only. */
html.native-app .topbar { padding-top: env(safe-area-inset-top); top: 0; }
html.native-app .footer { display: none; }


/* r360: iPhone Duo and landscape. The clock and camera can sit down a side edge instead of across the top, so inside
   the apps the page keeps clear of the left and right edges too, and the floating buttons stay inside them. */
html.native-app body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
html.native-app .ask-fab, html.native-app .shield-btn { right: calc(14px + env(safe-area-inset-right)); }

/* r365: the family app's first-run welcome cards */
.welcome { max-width: 460px; margin: 6vh auto 0; display: grid; gap: 18px; }
.welcome-card { background: var(--card, #fff); border-radius: 20px; padding: 28px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); min-height: 300px; }
.welcome-card h1 { font-size: 1.6rem; margin: 12px 0 10px; }
.welcome-card p { font-size: 1.05rem; line-height: 1.5; margin: 0; }
.welcome-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--fog); }
.welcome-icon svg { width: 30px; height: 30px; }
.welcome-steps { margin: 4px 0 0; padding-left: 1.3em; display: grid; gap: 10px; font-size: 1.02rem; line-height: 1.45; }
.welcome-dots { display: flex; justify-content: center; gap: 8px; }
.welcome-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--fog); }
.welcome-dots span.on { background: var(--ink, currentColor); }
.welcome-actions { display: grid; gap: 10px; }
.welcome-actions .btn { width: 100%; }

/* r367: phone tap targets at least 48px (Lighthouse "tap targets" / Google mobile-friendly). Inline text links get
   taller tap areas with padding that doesn't move the text around them. */
@media (max-width: 640px) {
  .btn, .btn.small, button.btn, a.btn, .nav-signin { min-height: 48px; }
  a.btn, .nav-signin { display: inline-flex; align-items: center; justify-content: center; }
  .mode-switch, header .brand { min-width: 48px; min-height: 48px; }
  .foot-links { gap: 4px 8px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; }
  .foot-main a:not(.btn), .foot-fine a, p a:not(.btn), li a:not(.btn), .wrap > span > a:not(.btn) { padding-block: 17px; }
}

/* r373: in the apps the sandbox banner sat under the clock; it now starts below the status bar and the top bar follows it */
html.native-app .sandbox-banner { padding-top: calc(8px + env(safe-area-inset-top)); }
html.native-app body:has(#sandbox-banner) .topbar { padding-top: 0; top: var(--sbh, 0); }

/* r375: no orphans. Headings balance their lines; text and list items never end on one lonely word (Safari 17.5+/26) */
h1, h2, h3, .welcome-card h1 { text-wrap: balance; }
p, li, .chat-bubble p, .small { text-wrap: pretty; }
