/* CoCo Line: modern minimalist, sleek lines. Tokens first; components use them.
   The design lives on the Claude Design canvas "CoCo Platform Design". */
:root {
  --paper: #fafaf7;
  --surface: #ffffff;
  --mist: #eff2ee;
  --ink: #1e3128;
  --ink-2: #4f6158;
  --ink-3: #5e6e66;
  --line: #dce3dc;
  --field: #c9d2ca;
  --accent: #9a5a1a;
  --accent-soft: #f6ecdf;
  --ok: #2e6a4e;
  --warn: #855600;
  --bad: #a3372d;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --r-card: 20px;
  --r-photo: 28px;
  --r-field: 14px;
  --control: 48px;
  --section-gap: clamp(80px, 9vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-2); }
.quiet { color: var(--ink-3); font-size: 15px; }
.tabular { font-variant-numeric: tabular-nums; }
.icon { flex: none; }

/* Type */
.display {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.04em;
  font-size: clamp(42px, 6vw, 82px); line-height: 1.02; max-width: 12ch; text-wrap: balance;
}
.display-md { font-size: clamp(38px, 5vw, 68px); max-width: 16ch; }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; font-size: clamp(32px, 4vw, 52px); line-height: 1.06; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 32px; line-height: 1.1; }
.h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-size: 22px; line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--ink-3); font-size: 15px; }
:lang(zh) .display, :lang(zh) .h2, :lang(zh) .h3 { letter-spacing: 0; line-height: 1.25; font-weight: 500; }
:lang(zh) .display { max-width: 14em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.04em; text-decoration: none; padding: 9px 0; }
.nav { position: relative; display: flex; gap: 4px 28px; padding-bottom: 3px; font-size: 15px; font-weight: 500; overflow-x: auto; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 12px 0 10px; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav a:hover { color: var(--ink); }
.header-tools { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.lang b { color: var(--ink); font-weight: 600; }
.bag-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .nav { order: 3; width: 100%; border-top: 1px solid var(--line); margin-top: 4px; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control); padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--mist); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: #2c4539; color: var(--paper); }
.btn-lg { min-height: 52px; padding: 0 28px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--ink-2); cursor: not-allowed; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-button { border: 0; background: none; padding: 8px 0; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* Silhouettes: small, one per view, always seated on a line or an edge. */
.dog { color: var(--ink); }
.seat { position: relative; }
.on-edge { position: absolute; bottom: 100%; pointer-events: none; }
/* Every shape's feet are 10/96 of its height above its bottom, so moving the
   dog down by that share puts its feet on the line at any size. */
.on-edge:not(.peek) > .dog { translate: 0 calc(1000% / 96); }
/* Clear of rounded corners: a dog sits on the straight part of an edge. */
.on-edge.at-end { right: clamp(40px, 14%, 140px); }
.on-edge.at-start { left: clamp(24px, 5%, 56px); }
.on-edge.peek { margin-bottom: -4.5px; }

/* Photo frames: the owner's own photos are the only big pictures. */
.photo { position: relative; width: 100%; border-radius: var(--r-photo); overflow: hidden; background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.photo-seat { position: relative; padding-top: 0; }
/* Keep the peeking dog on the frame's straight top edge, clear of the rounded corner. */
.photo-seat .on-edge.at-end { right: 18%; }
.photo-seat .on-edge.at-start { left: 18%; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 72px; align-items: center; }
.hero-grid.top { align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-bottom: 8px; }
.hero-copy.wide .display { max-width: 16ch; }
.hero .photo-seat { margin-top: 56px; }
.hero .photo { max-height: 680px; }

.facts { position: relative; margin-top: 64px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.facts > div { padding: 22px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.facts dt { color: var(--ink-3); font-size: 15px; }
.facts dd { font-weight: 500; }

/* Sections */
.section { padding-top: var(--section-gap); }
.section:last-child, .section.last { padding-bottom: clamp(96px, 10vw, 160px); }
.section-head { display: flex; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 40px; }
.section-head .index { color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.section-head .h3 { font-size: clamp(26px, 3vw, 32px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 72px; }
.split + .split { margin-top: 48px; }

.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) 64px; gap: 8px 24px; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.row:hover { color: var(--ink); }
.row-mark { display: flex; color: var(--ink-3); }
.row-name { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.row-desc { color: var(--ink-2); }
.row-end { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 48px; align-self: stretch; }
.row-end .dog { display: none; }
.row-end .icon { transition: opacity 0.2s ease; }
/* Hovering a row brings its moment in to sit on the line below it: the row's
   30px bottom padding plus the 5.8px under a 56px dog's feet. */
@media (hover: hover) and (min-width: 721px) {
  .row-end .dog { display: block; position: absolute; right: 0; bottom: -35.8px; opacity: 0; transform: translateX(-10px); transition: opacity 0.2s ease, transform 0.2s ease; }
  .row:hover .row-end .dog, .row:focus-visible .row-end .dog { opacity: 1; transform: none; }
  .row:hover .row-end .icon, .row:focus-visible .row-end .icon { opacity: 0; }
}
@media (max-width: 720px) {
  .row { grid-template-columns: 32px minmax(0, 1fr) 40px; }
  .row-desc { grid-column: 2 / 3; }
  .row-end { grid-row: 1; grid-column: 3; }
}

.progress { display: flex; align-items: center; gap: 20px; margin: 48px 0 40px; }
.progress-line { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.progress-line span { height: 4px; border-radius: 4px; background: var(--line); }
.progress-line span.done { background: var(--ok); }
.progress .quiet { white-space: nowrap; }
.checklist-head { color: var(--ink-3); font-size: 15px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checklist li.done { font-weight: 500; }
.checklist .icon-done { color: var(--ok); }
.checklist .icon-open { color: var(--ink-3); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1.5px solid var(--ink); }
.steps li { padding: 24px 28px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 28px; }
.steps .step-n { color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.steps .step-t { font-weight: 600; font-size: 20px; }
.steps .step-d { color: var(--ink-2); }
@media (max-width: 720px) { .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.pending { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 40px; }
.pending > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.pending dt { font-weight: 500; }
.pending dd { color: var(--ink-3); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.3; border: 1px solid transparent; white-space: nowrap; }
.chip-requested { border-color: var(--ink); }
.chip-requested::before { content: ""; width: 7px; height: 7px; border-radius: 999px; border: 1.5px solid var(--ink); }
.chip-confirmed { background: var(--ok); color: #fff; }
.chip-declined { background: var(--mist); color: var(--ink-2); text-decoration: line-through; }
.chip-missing { border-color: var(--bad); color: var(--bad); }
.chip-expiring { border-color: var(--warn); color: var(--warn); }
.chip-current { background: var(--mist); color: var(--ink); }
.chip-soft { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chip-plain { background: var(--mist); color: var(--ink-2); }

/* Notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; }
.notice .icon { margin-top: 2px; }
.notice-ok { background: #e7f0ea; color: var(--ok); }
.notice-error { background: #f7e9e7; color: var(--bad); }
.notice-info { background: var(--mist); color: var(--ink); }
.field-error { display: flex; gap: 8px; align-items: center; color: var(--bad); font-size: 15px; font-weight: 500; }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.form-card { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 28px; }
.care-form { display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.form-layout { display: flex; flex-wrap: wrap; gap: 48px 40px; align-items: flex-start; }
.form-layout > .seat { flex: 999 1 560px; min-width: 0; }
.form-layout > .summary { flex: 1 1 300px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--ink-3); }
.input, .textarea, .select {
  width: 100%; min-height: var(--control); border-radius: var(--r-field); border: 1px solid var(--field);
  background: var(--surface); padding: 0 14px; font-size: 16px; font-weight: 400; color: var(--ink);
}
.textarea { min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-3); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--bad); }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fieldset legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.fieldset legend .hint { font-weight: 400; color: var(--ink-3); }
.big-number { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-height: var(--control); display: flex; align-items: center; }
/* Pets typed into a request (request form spec §6): one row per pet. */
.pet-rows { display: flex; flex-direction: column; gap: 16px; }
.pet-row { border: 0; margin: 0; padding: 0 0 16px; min-width: 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.pet-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pet-row > .text-button { align-self: flex-start; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }

.pill-option { position: relative; display: inline-flex; }
.pill-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-option > span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 500; cursor: pointer;
}
.pill-option small { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.pill-option input:checked + span { border: 1.5px solid var(--ink); }
.pill-option input:checked:disabled + span::before { content: none; }
.pill-option input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--ink); }
.pill-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill-option input:disabled + span { color: var(--ink-3); background: var(--mist); border-color: var(--mist); cursor: not-allowed; }
.pill-option input:disabled + span s { text-decoration-thickness: 1px; }

.option-card { position: relative; display: flex; }
.option-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-card > span { flex: 1; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.option-card .option-body { display: flex; flex-direction: column; gap: 4px; }
.option-card .option-title { font-weight: 600; }
.option-card .option-note { font-size: 15px; color: var(--ink-2); }
.option-card .option-meta { font-size: 14px; color: var(--ink-3); }
.option-card .option-mark { flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 999px; border: 1.5px solid var(--field); }
.option-card input:checked + span { border: 1.5px solid var(--ink); }
.option-card input:checked + span .option-mark { border: 5px solid var(--ink); }
.option-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
a.option-card, a.option-card > span { color: var(--ink); text-decoration: none; }
a.option-card > span > .icon { margin-left: auto; color: var(--ink-3); }
a.option-card:hover > span { border-color: var(--ink-3); }
a.option-card[aria-current="true"] > span { border: 1.5px solid var(--ink); }
a.option-card[aria-current="true"] .option-mark { border: 5px solid var(--ink); }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
/* The request forms' spam check (PC20): room for Turnstile's widget, so the button doesn't jump when it loads. */
.human-check { min-height: 65px; }

.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day-name { text-align: center; font-size: 13px; color: var(--ink-3); }
.day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 60px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
}
a.day:not([aria-current="date"]):hover { border-color: var(--ink-3); color: var(--ink); }
.day small { font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.day b { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.15; }
.day[aria-current="date"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day.closed { background: var(--mist); border-color: var(--mist); color: var(--ink-3); }
.day.past { border-color: transparent; background: transparent; color: var(--line); }
@media (max-width: 480px) { .days { gap: 4px; } .day { min-height: 52px; border-radius: 12px; } .day small { font-size: 11px; letter-spacing: -0.01em; } }
.slots { display: flex; flex-wrap: wrap; gap: 10px; }

.summary { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.summary .h4 { margin-bottom: 8px; }
.summary dl { display: grid; grid-template-columns: 104px minmax(0, 1fr); font-size: 15px; }
.summary dt, .summary dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--ink-3); }
.summary dd { font-weight: 500; }
.summary dl > :nth-last-child(-n+2) { border-bottom: 0; }

.receipt { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.receipt dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); font-size: 15px; border-top: 1px solid var(--line); }
.receipt dt, .receipt dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt dt { color: var(--ink-3); }

/* Treats buy block */
.buy-seat { margin-top: 44px; max-width: 640px; }
.buy-off { border-radius: var(--r-card); background: var(--accent-soft); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.buy-off .chip { background: var(--surface); color: var(--accent); font-weight: 600; }
.buy { padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.buy-facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; align-items: center; font-size: 15px; }
.buy-facts dt { color: var(--ink-3); }
.price { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 52px; height: 50px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.stepper input { width: 44px; border: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.note { font-size: 14px; color: var(--ink-3); }

.bag-lines { border-top: 1.5px solid var(--ink); }
/* Room for the snack seated on the bag's top line, clear of a notice above it. */
.seat.bag-lines { margin-top: 32px; }
.bag-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bag-line form { display: flex; gap: 12px; align-items: center; }
.bag-total { display: flex; justify-content: space-between; padding: 22px 0; font-weight: 600; }

/* Footer */
.site-footer { margin-top: 0; background: var(--ink); color: var(--paper); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); text-decoration: underline; }
.footer-seat { position: relative; height: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; padding-block: 72px 48px; }
.footer-grid > div, .footer-grid nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; }
.footer-quiet { opacity: 0.85; }

/* 404 */
.empty-seat { border-top: 1px solid var(--line); margin: 72px 0 8px; max-width: 640px; }
.lost { padding-block: clamp(80px, 12vw, 160px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.lost .seat { width: 100%; max-width: 640px; border-top: 1px solid var(--line); margin-top: 72px; }

/* Tables: the price table (ui/prices.mjs). The operations admin's own rules are in admin.css. */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 12px 14px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.table tbody th { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Motion, after the Master Brief's React Bits policy (§08): two signatures, the
   hero's dog interrupt and the Open Book reveal, plus a few micro moments. Native
   CSS and a little JS (app.js); nothing here hides content without JS, and every
   piece switches off when the visitor asks for reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes peek-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes sniff { 0%, 100% { transform: none; } 35% { transform: rotate(6deg) translateY(1px); } 65% { transform: rotate(2deg); } }

/* Signature 1: the hero's words settle in, then the dog arrives on its edge.
   Only text moves: buttons, the buy block and forms are there from the first frame. */
.hero-copy > :is(.eyebrow, h1, .lead) { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :is(.eyebrow, h1, .lead):nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :is(.eyebrow, h1, .lead):nth-child(3) { animation-delay: 0.16s; }
.hero .photo-seat { animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.photo-seat .on-edge { overflow: hidden; }
.photo-seat .on-edge .dog { animation: peek-up 0.7s 0.95s cubic-bezier(0.3, 1.35, 0.5, 1) both; }
.facts > .on-edge .dog { animation: settle 0.6s 0.7s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
/* Treat response: reaching for the main button gets the dog's attention. */
.hero .on-edge { transition: transform 0.25s ease; transform-origin: 50% 90%; }
.hero:has(.btn-primary:hover, .btn-primary:focus-visible) .on-edge:not(:has(.wide)) { transform: translateY(-4px) rotate(-6deg); }
/* Micro: the Treats dog sniffs at the buy button. */
.buy-seat .on-edge { transform-origin: 30% 90%; }
.buy-seat:has(.btn-primary:hover, .btn-primary:focus-visible) .on-edge { animation: sniff 0.7s ease 2; }

/* Signature 2: Open Book facts and section content reveal as they scroll in. */
.reveal { transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0s); }
.reveal.reveal-wait { opacity: 0; transform: translateY(12px); }
.checklist li.reveal .icon-done path { stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s ease calc(var(--reveal-delay, 0s) + 0.25s); }
.checklist li.reveal.reveal-wait .icon-done path { stroke-dashoffset: 24; }

/* Navigation: one leash line follows the hovered link, with its clip at the end. */
.nav-leash { position: absolute; left: 0; bottom: 3px; width: 0; height: 1.5px; border-radius: 2px; background: var(--ink); opacity: 0; pointer-events: none; transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.3s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s ease; }
.nav-leash::after { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-radius: 999px; background: var(--ink); transform: translateY(-50%); }
.nav.has-leash .nav-leash { opacity: 1; }
.nav.has-leash a[aria-current="page"] { border-bottom-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.reveal-wait { opacity: 1; transform: none; }
}

/* Printing or saving as PDF shows everything, scrolled to or not. */
@media print {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.reveal-wait { opacity: 1; transform: none; }
  .checklist li.reveal.reveal-wait .icon-done path { stroke-dashoffset: 0; }
  .nav-leash, .on-edge { display: none; }
}

/* ==========================================================================
   The pet care site (PC11): the Home page and the shell every pet care page sits in.
   Cream paper, the badge as a rubber stamp. Tokens are the logo's own colours (facts L2).
   Every rule is scoped under the petcare class on <body>, so the CoCo pages don't change.
   ========================================================================== */
/* The pet care site's motion (PC41): one small set, used by every control and page change. On :root
   because the page change's pseudo-elements hang from <html>; nothing on the CoCo pages reads them. */
:root {
  --pc-press-t: 100ms;                              /* a press goes down like a stamp */
  --pc-press-e: cubic-bezier(0, 0, .2, 1);          /* quick ease-out */
  --pc-hover-t: 200ms;                              /* hover and colour */
  --pc-curve: cubic-bezier(.25, 1, .5, 1);          /* the one curve: hover, colour, travel, the flap */
  --pc-ring-t1: 150ms;                              /* the focus ring grows to 8 px */
  --pc-ring-t2: 450ms;                              /* and settles to 3 px */
  --pc-in-t: 300ms;                                 /* entering and settling */
  --pc-in-e: cubic-bezier(0, 0, .2, 1);
  --pc-out-t: 200ms;                                /* leaving */
  --pc-out-e: cubic-bezier(.4, 0, 1, 1);
  --pc-travel-t: 350ms;                             /* the thing you tap, page to page */
  --pc-fade-t: 200ms;                               /* everything else, page to page */
  --pc-sheet-t: 420ms;                              /* the phone menu's flap */
  --pc-item-t: 240ms;                               /* each of its links */
  --pc-item-wait: 200ms;
  --pc-item-step: 20ms;
  --pc-stamp-t: 250ms;                              /* the stamp lands */
  /* Small reactions only (the stamp landing), never a press: about 4% over, then still. */
  --pc-spring: linear(0, .18 6%, .52 14%, .84 24%, 1.02 34%, 1.04 41%, 1.03 50%, 1.005 64%, .998 78%, 1);
}
body.petcare {
  --pc-cream: #fbf2e1;       /* page */
  --pc-ink: #5c4130;         /* body text, 8.4:1 */
  --pc-brown: #74533e;       /* headings, rules, outlines, 6.2:1 */
  --pc-orange: #f2b566;      /* fills and lines only */
  --pc-gold: #dba761;        /* fills and lines only */
  --pc-latte: #f8e5c4;       /* light cream: fills only */
  --pc-card: #fffaf0;        /* paper that sits on the page */
  --pc-warm: #8f5f1f;        /* the only coloured text, 4.9:1 */
  --pc-shade: rgba(116, 83, 62, .16);
  --pc-round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", var(--font);
  --pc-inset: 36px;
  --pc-pad: 24px;
  --pc-head-h: 92px;                                /* the sticky main floor */
  --pc-ease: cubic-bezier(.3, 1.35, .5, 1);
  --pc-dog: 72px;
  --pc-gap: clamp(72px, 9vw, 120px);
  /* The one content edge from 960 px (owner, 2026-11-20, #201 A): the header's brand and Request a stay stand on it,
     and every hero, band and footer below lines up with them; 24 px from 960 to 1099 px. A % of the page, so only on boxes as wide as the page. */
  --pc-edge: max(40px, 50% - 640px);
  /* Home's house (the site's motion is on :root): the turn from day to night, one move of its own
     life by day and the wait between moves, the first move once in view, the wait and a stir by night, how fast
     a move hurries to rest when a tap needs its pet, one breath asleep, and the tempo of a tap's scene. */
  --h-turn-t: 1600ms; --h-move-t: 2400ms; --h-idle-wait: 2.5s; --h-idle-spread: 1.5s; --h-idle-rest: 400ms;
  --h-idle-first: 700ms; --h-night-wait: 4.5s; --h-stir-t: 1800ms; --h-hurry-t: 220ms; --h-breath-t: 3400ms;
  --h-scene-t: 3000ms;
}
body.petcare { background: var(--pc-cream); color: var(--pc-ink); font: 400 17px/1.6 var(--font); }
body.petcare .pc-page { overflow-x: clip; min-height: 100vh; }
body.petcare .pc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
body.petcare .pc-head a,
body.petcare .pc-main a,
body.petcare .pc-foot a { color: var(--pc-ink); }
body.petcare .pc-head :focus-visible,
body.petcare .pc-main :focus-visible,
body.petcare .pc-foot :focus-visible { outline: 3px solid var(--pc-brown); outline-offset: 3px; border-radius: 8px; }
body.petcare .pc-skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--pc-brown); color: var(--pc-card) !important; padding: 10px 16px; border-radius: 12px; }
body.petcare .pc-skip:focus { top: 10px; }
body.petcare .pc-h2,
body.petcare .pc-title { font-family: var(--pc-round); font-weight: 800; color: var(--pc-brown); letter-spacing: 0; text-wrap: balance; margin: 0; }
body.petcare .pc-title { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.07; max-width: 13em; }
body.petcare .pc-h2 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); line-height: 1.15; }
body.petcare :lang(zh) .pc-title,
body.petcare :lang(zh) .pc-h2 { line-height: 1.3; font-weight: 700; line-break: strict; }
body.petcare .pc-lead { font-size: 1.15rem; margin: 18px 0 0; max-width: 31em; }
body.petcare .pc-limit { margin: 18px 0 0; font-size: 1rem; max-width: 33em; }
body.petcare .pc-draft { font: 800 1rem/1.4 var(--pc-round); color: var(--pc-warm); text-decoration: underline dashed; text-decoration-color: var(--pc-gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
body.petcare .pc-draft b { font-weight: 800; }
body.petcare .pc-draft-line { margin: 10px 0 0; }
/* Header: the host face lives here, glancing at what the visitor points at. Round 3 (owner, 2026-11-19): below 960 px,
   and at every width while the menu's names don't fit (data-fit="menu"), A "Under the roof": a brown roof band with
   sloped ends holds the badge, the name on one line and Menu, a <details> that opens a brown sheet of the pages without
   the script. From 960 px, C "Two floors": the upper floor (where, the sun or moon, the language, the account) scrolls
   away, and the main floor (the name, the pages, Request a stay) sticks, the header's top being minus the upper floor. */
/* Every in-page jump lands below the sticky header (the roof 69 px, the main floor 92 px) with a little air. */
html:has(body.petcare) { scroll-padding-top: 96px; }
/* The floors' colours by day; the house pages and the night set their own (Home, Care and Dorm, Porch). */
body.petcare .pc-page { --pc-up-bg: var(--pc-latte); --pc-up-ink: var(--pc-brown); --pc-up-on: var(--pc-cream);
  --pc-floor-bg: var(--pc-cream); --pc-floor-ink: var(--pc-brown); --pc-floor-on: var(--pc-latte); --pc-floor-line: var(--pc-brown);
  --pc-floor-night: color-mix(in srgb, var(--m-dark), #fbf2e1 9%);
  --pc-solid: var(--pc-brown); --pc-solid-ink: var(--pc-card); --pc-solid-hover: var(--pc-ink); }
body.petcare:is(:has(.r-scene.is-night), :has(.p-page)) .pc-page { --pc-up-bg: var(--m-dark); --pc-up-ink: var(--pc-cream); --pc-up-on: rgba(251, 242, 225, .14);
  --pc-floor-bg: var(--pc-floor-night); --pc-floor-ink: var(--pc-cream); --pc-floor-on: rgba(251, 242, 225, .14); --pc-floor-line: var(--pc-orange);
  --pc-solid: var(--pc-orange); --pc-solid-ink: var(--pc-ink); --pc-solid-hover: var(--pc-gold); }
/* Lights on at night (owner's pick C, PC74, 2026-11-19): the floor lines, the roof's eave, the sun and "Request a stay" glow orange. */
body.petcare:is(:has(.r-scene.is-night), :has(.pc-page.is-night), :has(.p-page)) .pc-tools .pc-time { color: var(--pc-orange); }
body.petcare .pc-head { --pc-roof: 69px; position: sticky; top: 0; z-index: 40; transition: box-shadow .3s ease, background-color .3s ease; }
body.petcare .pc-head.is-stuck { box-shadow: 0 10px 16px -14px rgba(92, 65, 48, .7); }
body.petcare .pc-head :is(.pc-up, .pc-nav, .pc-head-go) { display: none; }
/* The phone's band is the computer's main floor (owner's pick A for the outline, PC74, 2026-11-19): full width, the floor's
   colour, with its 4 px line above and below (brown by day, orange at night). The sheet slides out from under it. */
body.petcare .pc-head-row { position: relative; display: flex; align-items: center; gap: 8px; height: var(--pc-roof); padding: 0 26px; color: var(--pc-floor-ink);
  background: var(--pc-floor-bg); border-block: 4px solid var(--pc-floor-line); }
body.petcare .pc-brand { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; text-decoration: none; white-space: nowrap; font: 800 1rem/1.15 var(--pc-round); }
body.petcare .pc-page .pc-brand { color: inherit; }
body.petcare .pc-host { display: block; width: 40px; flex: none; }
body.petcare .pc-face-svg { display: block; width: 100%; height: auto; overflow: visible; }
body.petcare .pc-head-row :focus-visible { outline-color: var(--pc-floor-ink); }
body.petcare .pc-menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; list-style: none; cursor: pointer; white-space: nowrap;
  font: 800 1rem/1 var(--pc-round); }
body.petcare .pc-menu-btn::-webkit-details-marker { display: none; }
/* The header's solid buttons share one colour (brown by day, orange at night): Request a stay and the roof's Menu. */
body.petcare .pc-page .pc-head :is(.pc-head-go, .pc-menu-go, .pc-menu-btn) { background: var(--pc-solid); border-color: var(--pc-solid); color: var(--pc-solid-ink); }
@media (hover: hover) { body.petcare .pc-page .pc-head :is(.pc-head-go, .pc-menu-go, .pc-menu-btn):hover { background: var(--pc-solid-hover); border-color: var(--pc-solid-hover); } }
body.petcare .pc-page .pc-head .pc-menu[open] > .pc-menu-btn { background: var(--pc-floor-on); border-color: var(--pc-floor-on); color: var(--pc-floor-ink); }
body.petcare .pc-menu:not([open]) .is-close, body.petcare .pc-menu[open] .is-menu { display: none; }
body.petcare .pc-menu-btn:active { transform: translateY(2px); }
/* The sheet fills the screen under the roof; the page under it keeps still while it is open (no script needed). */
body.petcare .pc-menu-sheet { position: fixed; inset: calc(var(--pc-roof) - 4px) 0 0; z-index: -2; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  --pc-sheet-x: 26px; padding: 26px var(--pc-sheet-x) calc(22px + env(safe-area-inset-bottom)); background: var(--pc-floor-bg); color: var(--pc-floor-ink); }
@media (max-width: 959px) { html:has(body.petcare .pc-menu[open]) { overflow: hidden; } }
html:has(body.petcare .pc-head[data-fit="menu"] .pc-menu[open]) { overflow: hidden; }
/* The menu slides down from under the roof's eave and back up (owner's pick A, PC74 motion round, 2026-11-19).
   Keyframes, not transitions: a closed <details> may keep its content styled (content-visibility), so only an
   animation that starts with [open] runs every time. Closing waits for its animation in petcare.js. */
@keyframes pc-menu-in { from { transform: translateY(-100%); } }
@keyframes pc-menu-out { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: no-preference) {
  body.petcare .pc-menu[open] .pc-menu-sheet { animation: pc-menu-in .34s cubic-bezier(.2, .8, .2, 1); }
  body.petcare .pc-menu.is-closing .pc-menu-sheet { animation: pc-menu-out .26s cubic-bezier(.4, 0, .8, .4) forwards; }
}
body.petcare .pc-menu-nav { display: flex; flex-direction: column; align-items: flex-start; }
body.petcare .pc-menu-nav a { position: relative; display: inline-flex; align-items: center; min-height: 64px; max-width: 100%; color: inherit; text-decoration: none; font: 800 2.4rem/1.1 var(--pc-round); }
body.petcare .pc-menu-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 4px; border-radius: 2px; background: var(--pc-orange); }
body.petcare .pc-menu-sheet .pc-menu-go { flex: none; justify-content: center; margin-top: 26px; min-height: 58px; font-size: 1.15rem; }
/* The sheet's foot is the upper floor: latte by day, under the floor's line. */
body.petcare .pc-menu-sheet .pc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: auto calc(-1 * var(--pc-sheet-x)) calc(-22px - env(safe-area-inset-bottom));
  padding: 10px var(--pc-sheet-x) calc(12px + env(safe-area-inset-bottom)); background: var(--pc-up-bg); color: var(--pc-up-ink); border-top: 4px solid var(--pc-floor-line); }
body.petcare .pc-head .pc-tools a { color: inherit; }
body.petcare .pc-menu-sheet .pc-tools { --pc-tools-on: var(--pc-up-on); }
@media (hover: hover) { body.petcare .pc-head .pc-tools a:hover { background: var(--pc-tools-on); } }
body.petcare .pc-nav { align-items: center; gap: 4px; }
body.petcare .pc-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; text-decoration: none; font: 700 1rem/1 var(--pc-round); transition: background-color var(--pc-hover-t) var(--pc-curve), transform var(--pc-press-t) var(--pc-press-e); }
body.petcare .pc-lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; text-decoration: none; font: 700 1rem/1 var(--pc-round); }
/* Sign in / My account (S1, S2), beside the language: on the upper floor and at the foot of the sheet. */
body.petcare .pc-acct { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; font: 700 1rem/1 var(--pc-round); }
body.petcare .pc-acct[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pc-orange); border-radius: 0; }
body.petcare .pc-acct:active { transform: translateY(2px); }
/* The roof's sizes: at 390 px and under the row tightens, and at 320 px the badge and the name step down, so the name
   stays whole on one line beside Menu in both languages. */
@media (max-width: 389px) {
  body.petcare .pc-head-row { padding-inline: 22px; gap: 6px; }
  body.petcare .pc-menu-btn { padding: 0 14px; }
  body.petcare .pc-menu-sheet { --pc-sheet-x: 22px; }
}
@media (max-width: 349px) {
  body.petcare .pc-head { --pc-roof: 62px; }
  body.petcare .pc-head-row { padding: 0 18px; gap: 4px; }
  body.petcare .pc-host { width: 34px; }
  body.petcare .pc-brand { gap: 6px; font-size: .875rem; }
  body.petcare .pc-menu-btn { padding: 0 12px; font-size: .9375rem; }
  body.petcare .pc-menu-sheet { --pc-sheet-x: 18px; }
  body.petcare .pc-menu-nav a { font-size: 2.1rem; min-height: 58px; }
}
/* C, from 960 px while the names fit. */
@media (min-width: 960px) {
  html:has(body.petcare) { scroll-padding-top: 112px; }
  body.petcare .pc-head:not([data-fit="menu"]) { top: -44px; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-up { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 44px;
    padding-inline: var(--pc-edge); background: var(--pc-up-bg); color: var(--pc-up-ink); }
  body.petcare .pc-where { margin: 0; font: 700 .95rem/1 var(--pc-round); white-space: nowrap; }
  body.petcare .pc-up .pc-tools { display: flex; align-items: center; gap: 2px; --pc-tools-on: var(--pc-up-on); }
  body.petcare .pc-up .pc-tools a { min-height: 40px; padding: 0 10px; font-size: .95rem; }
  body.petcare .pc-up .pc-tools .pc-time { width: 40px; height: 40px; padding: 0; }
  body.petcare .pc-up :focus-visible { outline-color: var(--pc-up-ink); outline-offset: 0; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-head-row { height: 92px; gap: 6px; padding: 0 var(--pc-edge); }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-head-row :focus-visible { outline-color: var(--pc-floor-ink); }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-menu { display: none; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-nav { display: flex; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-head-go { display: inline-flex; margin-left: 14px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-size: 1.05rem; white-space: nowrap; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-host { width: 58px; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-brand { gap: 12px; font-size: 1.25rem; }
  body.petcare .pc-page .pc-nav a { padding: 0 18px; color: inherit; font-size: 1.2rem; }
  @media (hover: hover) { body.petcare .pc-nav a:hover { background: var(--pc-floor-on); } }
  body.petcare .pc-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 4px; border-radius: 2px; background: var(--pc-orange); }
}
/* 960 to 1099 px: the main floor tightens a step so the name, four pages and the button sit whole. */
@media (min-width: 960px) and (max-width: 1099px) {
  body.petcare { --pc-edge: 24px; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-host { width: 50px; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-brand { gap: 10px; font-size: 1.125rem; }
  body.petcare .pc-page .pc-nav a { padding: 0 12px; font-size: 1.1rem; }
  body.petcare .pc-nav a[aria-current="page"]::after { left: 12px; right: 12px; }
  body.petcare .pc-head:not([data-fit="menu"]) .pc-head-go { margin-left: 8px; padding: 0 18px; font-size: 1rem; }
}
/* The face: reactions are transforms of the logo's own parts. */
body.petcare .pc-face-svg { --lx: 0; --ly: 0; --tilt: 0deg; --lean: 1; transform: rotate(var(--tilt)) scale(var(--lean)); transform-origin: 50% 20%; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
body.petcare .pc-face-svg.is-open { --lean: 1.12; }
body.petcare .pc-face-svg [class^="p-"] { transform-box: fill-box; transform-origin: 50% 50%; }
body.petcare .pc-face-svg .p-eye-left,
body.petcare .pc-face-svg .p-eye-right { transition: transform .32s cubic-bezier(.34, 1.5, .64, 1), clip-path .26s ease; }
body.petcare .pc-face-svg.is-open .p-eye-left,
body.petcare .pc-face-svg.is-open .p-eye-right { clip-path: ellipse(22% 50% at 50% 30%); transform: translate(calc(var(--lx) * 16px), calc(var(--ly) * 11px + 1px)) scale(2.4, 2.9); }
body.petcare .pc-face-svg.is-open.is-blink .p-eye-left,
body.petcare .pc-face-svg.is-open.is-blink .p-eye-right { transform: translate(calc(var(--lx) * 16px), calc(var(--ly) * 11px + 2px)) scale(2.4, .4); }
body.petcare .pc-face-svg .p-brows,
body.petcare .pc-face-svg .p-nose,
body.petcare .pc-face-svg .p-muzzle,
body.petcare .pc-face-svg .p-mouth { transition: transform .35s cubic-bezier(.34, 1.4, .64, 1); }
body.petcare .pc-face-svg.is-open .p-brows { transform: translate(calc(var(--lx) * 8px), calc(var(--ly) * 5px - 4px)); }
body.petcare .pc-face-svg.is-open .p-nose { transform: translate(calc(var(--lx) * 7px), calc(var(--ly) * 4px)); }
body.petcare .pc-face-svg.is-open .p-mouth { transform: translate(calc(var(--lx) * 6px), calc(var(--ly) * 3px)); }
body.petcare .pc-face-svg .p-ear-left,
body.petcare .pc-face-svg .p-ear-right { transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
body.petcare .pc-face-svg.is-up .p-ear-left { transform: translateY(7px) scale(1.04, 1.3) rotate(-3deg); }
body.petcare .pc-face-svg.is-up .p-ear-right { transform: translateY(7px) scale(1.04, 1.3) rotate(3deg); }
body.petcare .pc-face-svg.is-glad .p-mouth { transform: scale(1.14, 1.2) translateY(2px); }
body.petcare .pc-face-svg.is-glad .p-brows { transform: translateY(-5px); }
body.petcare .pc-main { max-width: 1160px; margin: 0 auto; padding: 24px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pc-gap); }
body.petcare .pc-sec-head { margin-bottom: 34px; }
/* Buttons */
body.petcare .pc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
body.petcare .pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 16px; font: 800 1.02rem/1.2 var(--pc-round); text-decoration: none; border: 2px solid var(--pc-brown); transition: transform var(--pc-press-t) var(--pc-press-e), background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve); }
body.petcare .pc-page .pc-btn-solid { background: var(--pc-brown); color: var(--pc-card); }
@media (hover: hover) { body.petcare .pc-page .pc-btn-solid:hover { background: var(--pc-ink); color: var(--pc-card); } }
body.petcare .pc-page .pc-btn-line { background: transparent; color: var(--pc-brown); }
@media (hover: hover) { body.petcare .pc-page .pc-btn-line:hover { background: var(--pc-latte); } }
body.petcare .pc-btn .icon { flex: none; }
/* Hero: the paper photo card, and the badge that stamps it. */
body.petcare .pc-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 72px); align-items: center; padding-top: clamp(8px, 3vw, 36px); }
body.petcare .pc-hero-art { position: relative; justify-self: center; width: min(100%, 380px); margin: 0 0 40px; }
body.petcare .pc-polaroid { background: var(--pc-card); border: 2px solid var(--pc-brown); border-radius: 22px; padding: 14px 14px 56px; transform: rotate(1.6deg); box-shadow: 0 7px 0 var(--pc-shade); }
body.petcare .pc-polaroid .photo { border-radius: 12px; background: var(--pc-latte); }
/* No owner photo yet: the card stays a card, with a plain panel where the picture goes. */
body.petcare .pc-polaroid.is-bare::before { content: ""; display: block; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--pc-latte); }
body.petcare .pc-badge { position: absolute; right: -40px; bottom: -48px; width: clamp(160px, 17vw, 220px); transform: rotate(-8deg); mix-blend-mode: multiply; filter: url(#pc-rough); pointer-events: none; }
body.petcare .pc-badge-ink,
body.petcare .pc-badge-svg { display: block; width: 100%; height: auto; }
body.petcare .pc-badge-svg { overflow: visible; }
/* The arrival: the rings draw round, the words roll in, the face settles, then the whole badge comes down once on the card. */
@media (prefers-reduced-motion: no-preference) {
  body.petcare .pc-draw { stroke-dasharray: 1 1; animation: pc-draw .85s cubic-bezier(.55, 0, .25, 1) .2s both; }
  body.petcare .pc-badge-svg .p-ring-inner circle { stroke-dasharray: 1 1; transform-box: view-box; transform-origin: 511.5px 488px; rotate: -90deg; animation: pc-draw .8s cubic-bezier(.55, 0, .25, 1) .5s both; }
  body.petcare .pc-badge-svg .p-glow { transform-origin: 511.5px 488px; animation: pc-glow .8s ease-out .6s both; }
  body.petcare .pc-badge-svg .p-text-top { transform-origin: 511.5px 488px; animation: pc-roll-top 1.1s cubic-bezier(.2, .7, .2, 1) .7s both; }
  body.petcare .pc-badge-svg .p-text-bottom { transform-origin: 511.5px 488px; animation: pc-roll-bottom 1.1s cubic-bezier(.2, .7, .2, 1) .7s both; }
  body.petcare .pc-badge-svg .p-separators,
  body.petcare .pc-badge-svg .p-dots { animation: pc-fade .6s ease-out 1.5s both; }
  body.petcare .pc-badge-svg .p-face { transform-box: view-box; transform-origin: 512px 560px; animation: pc-settle .8s cubic-bezier(.3, 1.3, .5, 1) 1.2s both; }
  body.petcare .pc-badge-svg .p-paw { transform-box: view-box; transform-origin: 511px 661px; animation: pc-pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.9s both; }
  body.petcare .pc-badge { animation: pc-down 2.85s cubic-bezier(.3, .7, .3, 1) .2s backwards; }
  body.petcare .pc-badge-ink { animation: pc-ink 2.85s ease-out .2s backwards; }
  body.petcare .pc-polaroid { animation: pc-dip .5s ease-out 2.28s; }
  @keyframes pc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pc-glow { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
  @keyframes pc-roll-top { 0% { rotate: -150deg; opacity: 0; } 30% { opacity: 1; } 100% { rotate: 0deg; opacity: 1; } }
  @keyframes pc-roll-bottom { 0% { rotate: 150deg; opacity: 0; } 30% { opacity: 1; } 100% { rotate: 0deg; opacity: 1; } }
  @keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pc-settle { 0% { opacity: 0; translate: 0 30px; scale: .9; } 40% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
  @keyframes pc-pop { from { scale: 0; } to { scale: 1; } }
  @keyframes pc-down { 0% { transform: translateY(-50px) scale(1.2) rotate(4deg); opacity: 0; }
    8% { opacity: 1; }
    72% { transform: translateY(-50px) scale(1.2) rotate(4deg); }
    85% { transform: translateY(0) scale(.93) rotate(-10deg); }
    93% { transform: translateY(0) scale(1.025) rotate(-7.4deg); }
    100% { transform: translateY(0) scale(1) rotate(-8deg); opacity: 1; } }
  @keyframes pc-ink { 0%, 70% { filter: blur(0); opacity: 1; } 72% { filter: blur(2.4px); opacity: .62; } 90% { filter: blur(1.2px); opacity: .85; } 100% { filter: blur(0); opacity: 1; } }
  @keyframes pc-dip { 0% { transform: rotate(1.6deg); } 40% { transform: rotate(1.6deg) translateY(3px); } 100% { transform: rotate(1.6deg); } }
}
/* Rising: a section settles onto the page once, as it comes into view. */
body.petcare.pc-js .pc-rise { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
body.petcare.pc-js .pc-rise:not(.in) { transform: translateY(22px); }
/* The impression: a stamp pressed into a corner of paper, multiplied into it like ink. */
body.petcare .pc-imp { position: absolute; width: 112px; height: 112px; pointer-events: none; mix-blend-mode: multiply; transform: rotate(-9deg); visibility: hidden; filter: url(#pc-rough); }
body.petcare .pc-ink,
body.petcare .pc-imp-svg { display: block; width: 100%; height: 100%; }
body.petcare .pc-ink { position: relative; }
body.petcare .pc-imp-svg { overflow: visible; }
@keyframes pc-settle-ink { 0% { filter: blur(2.4px); opacity: .62; } 55% { filter: blur(1.4px); opacity: .8; } 100% { filter: blur(0); opacity: 1; } }
@keyframes pc-press { 0% { transform: translateY(-26px) scale(1.25) rotate(3deg); opacity: 0; }
  30% { opacity: 1; }
  50% { transform: translateY(0) scale(.92) rotate(-12deg); }
  72% { transform: translateY(0) scale(1.03) rotate(-8deg); }
  100% { transform: translateY(0) scale(1) rotate(-9deg); opacity: 1; } }
/* ---------- services: tags on a rail (1C) ---------- */
body.petcare .pc-board { position: relative; margin-top: 0; padding-top: 14px; }
body.petcare .pc-board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 8px; background: var(--pc-brown); }
body.petcare .pc-tag-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; justify-items: center; align-items: start; }
body.petcare .pc-tag { width: 100%; max-width: 280px; position: relative; }
body.petcare .pc-tag.is-flipped,
body.petcare .pc-tag.is-held { z-index: 3; }
body.petcare .pc-swing { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; transform: rotate(var(--a, 0deg)); }
body.petcare .pc-string { width: 2px; height: 40px; background: var(--pc-brown); }
body.petcare .pc-ring { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--pc-brown); margin-top: -2px; margin-bottom: -15px; position: relative; z-index: 2; }
body.petcare .pc-stage { width: 100%; }
/* One tag: chamfered top corners, a hole, a 2.5px brown outline. */
body.petcare .pc-face { --cut: 24px; position: relative; padding: 2.5px; background: var(--pc-brown); border-radius: 0 0 20px 20px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut)); }
body.petcare .pc-inner { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 46px 22px 20px; border-radius: 0 0 17.5px 17.5px; background: var(--pc-card); color: var(--pc-ink); clip-path: polygon(calc(var(--cut) - 1.5px) 0, calc(100% - var(--cut) + 1.5px) 0, 100% calc(var(--cut) - 1.5px), 100% 100%, 0 100%, 0 calc(var(--cut) - 1.5px)); }
body.petcare .pc-hole { position: absolute; top: 15px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--pc-cream); box-shadow: inset 0 0 0 2px var(--pc-brown); }
body.petcare .pc-tone-brown .pc-front .pc-inner { background: var(--pc-brown); color: var(--pc-cream); }
body.petcare .pc-tone-brown .pc-front .pc-tag-name { color: var(--pc-cream); }
body.petcare .pc-tone-brown .pc-front .pc-hole { box-shadow: none; }
body.petcare .pc-tone-orange .pc-front .pc-inner { background: var(--pc-orange); }
body.petcare .pc-tone-light .pc-front .pc-inner { background: var(--pc-latte); }
body.petcare .pc-tone-card .pc-front .pc-inner { background: var(--pc-card); }
body.petcare .pc-tag-icon { display: inline-flex; margin-top: 8px; }
body.petcare .pc-tag-name { font-weight: 800; font-size: 30px; line-height: 1.1; }
body.petcare .pc-tag-name-sm { font-size: 23px; line-height: 1.2; }
body.petcare .pc-tag-line { font-size: 17px; line-height: 1.45; }
body.petcare .pc-tag-for { margin-top: auto; padding-top: 12px; border-top: 2px dashed currentColor; font: 800 16px/1.3 var(--pc-round); }
body.petcare .pc-tone-brown .pc-front .pc-tag-for { border-top-color: var(--pc-gold); }
body.petcare .pc-tone-orange .pc-front .pc-tag-for,
body.petcare .pc-tone-light .pc-front .pc-tag-for,
body.petcare .pc-tone-card .pc-front .pc-tag-for { border-top-color: var(--pc-brown); }
body.petcare .pc-back p { font-size: 16px; line-height: 1.5; }
body.petcare .pc-tag-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
body.petcare .pc-turn { align-self: flex-start; margin-top: 0; min-height: 44px; padding: 0; border: 0; background: none; font: 800 15px/1.2 var(--pc-round); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; color: inherit; }
body.petcare .pc-back .pc-turn { margin-top: auto; color: var(--pc-brown); }
body.petcare .pc-tags:not(.is-live) .pc-turn { display: none; }
body.petcare .pc-tags:not(.is-live) .pc-back { margin-top: 12px; }
body.petcare .pc-tags:not(.is-live) .pc-front .pc-inner { padding-bottom: 28px; }
/* Live: both faces share one cell and turn over in 3D. */
body.petcare .pc-tags.is-live .pc-swing { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
body.petcare .pc-tags.is-live .pc-tag.is-held .pc-swing { cursor: grabbing; }
body.petcare .pc-tags.is-live .pc-stage { perspective: 1100px; }
body.petcare .pc-tags.is-live .pc-flip { display: grid; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.3, .7, .2, 1); }
body.petcare .pc-tags.is-live .pc-face { grid-area: 1 / 1; min-height: var(--tag-h, 430px); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
body.petcare .pc-tags.is-live .pc-back { transform: rotateY(180deg); margin-top: 0; }
body.petcare .pc-tags.is-live .pc-tag.is-flipped .pc-flip { transform: rotateY(180deg); }
body.petcare .pc-tags.is-live .pc-front .pc-inner { padding-bottom: 14px; }
body.petcare .pc-tags.is-live .pc-tag:not(.is-flipped) .pc-back,
body.petcare .pc-tags.is-live .pc-tag.is-flipped .pc-front { pointer-events: none; }
/* ---------- the day strip (1A) ---------- */
body.petcare .pc-day { }
body.petcare .pc-stops,
body.petcare .pc-tag-list { list-style: none; margin: 0; padding: 0; }
body.petcare .pc-track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 0 20px; }
body.petcare .pc-end { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 14px; font-size: 16px; font-weight: 700; white-space: nowrap; color: var(--pc-brown); }
body.petcare .pc-rail { position: relative; height: 140px; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
body.petcare .pc-day.is-live .pc-rail { cursor: grab; }
body.petcare .pc-day.is-drag .pc-rail { cursor: grabbing; }
body.petcare .pc-line,
body.petcare .pc-walked { position: absolute; left: 0; top: 92px; height: 0; }
body.petcare .pc-line { right: 0; border-top: 3px dashed var(--pc-gold); }
body.petcare .pc-walked { width: calc(var(--pc-inset) + (100% - 2 * var(--pc-inset)) * var(--p, 0.0833)); border-top: 3px solid var(--pc-brown); }
body.petcare .pc-stops { position: absolute; inset: 0; }
body.petcare .pc-stop { position: absolute; top: 92px; left: calc(var(--pc-inset) + (100% - 2 * var(--pc-inset)) * var(--s, 0.0833)); }
body.petcare .pc-stop:nth-child(1) { --s: 0.0833; }
body.petcare .pc-stop:nth-child(2) { --s: 0.25; }
body.petcare .pc-stop:nth-child(3) { --s: 0.4167; }
body.petcare .pc-stop:nth-child(4) { --s: 0.5833; }
body.petcare .pc-stop:nth-child(5) { --s: 0.75; }
body.petcare .pc-stop:nth-child(6) { --s: 0.9167; }
body.petcare .pc-stop-btn { position: absolute; left: 0; top: 0; transform: translate(-50%, -22px); min-width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: inherit; display: flex; flex-direction: column; align-items: center; }
body.petcare .pc-stop-dot { width: 16px; height: 16px; margin-top: 14px; border-radius: 50%; background: var(--pc-cream); border: 3px solid var(--pc-brown); transition: background-color .2s ease, transform .2s ease; }
body.petcare .pc-stop-btn.is-done .pc-stop-dot { background: var(--pc-brown); }
body.petcare .pc-stop-btn.is-on .pc-stop-dot { background: var(--pc-orange); transform: scale(1.3); }
body.petcare .pc-stop-name { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); width: 9.5em; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--pc-ink); }
body.petcare .pc-stop-btn.is-on .pc-stop-name { color: var(--pc-brown); }
body.petcare .pc-stop-btn:focus-visible { outline: none; }
body.petcare .pc-stop-btn:focus-visible .pc-stop-dot { outline: 3px solid var(--pc-warm); outline-offset: 4px; }
body.petcare .pc-walker { position: absolute; top: 92px; left: calc(var(--pc-inset) + (100% - 2 * var(--pc-inset)) * var(--p, 0.0833)); height: var(--pc-dog); transform: translate(-50%, calc(-100% + var(--pc-dog) * 10 / 96 + 1px)); pointer-events: none; }
body.petcare .pc-walker .dog { color: var(--pc-brown); translate: 0 0; }
body.petcare .pc-pose { display: none; }
body.petcare .pc-day[data-pose="0"] .pc-pose-0,
body.petcare .pc-day[data-pose="1"] .pc-pose-1,
body.petcare .pc-day[data-pose="2"] .pc-pose-2,
body.petcare .pc-day[data-pose="3"] .pc-pose-3,
body.petcare .pc-day[data-pose="4"] .pc-pose-4,
body.petcare .pc-day[data-pose="5"] .pc-pose-5,
body.petcare .pc-day[data-pose="walk"] .pc-pose-walk { display: block; }
body.petcare .pc-day[data-pose="walk"][data-dir="l"] .pc-pose-walk { transform: scaleX(-1); }
body.petcare .pc-day-stages { margin-top: 24px; }
body.petcare .pc-day-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px clamp(32px, 5vw, 80px); align-items: center; padding-block: 32px; border-top: 2px dashed var(--pc-gold); }
body.petcare .pc-day-name { font-weight: 800; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
body.petcare .pc-day-body { margin-top: 16px; font-size: 20px; line-height: 1.55; max-width: 26em; }
body.petcare .pc-day-photo { max-width: 380px; width: 100%; justify-self: end; }
body.petcare .pc-day-photo .photo { border-radius: 24px; background: var(--pc-latte); }
body.petcare .pc-day-stage.no-photo { grid-template-columns: minmax(0, 1fr); }
body.petcare .pc-day.is-live .pc-day-stages { display: grid; margin-top: 0; }
body.petcare .pc-day.is-live .pc-day-stage { grid-area: 1 / 1; visibility: hidden; }
body.petcare .pc-day.is-live .pc-day-stage.is-on { visibility: visible; }
body.petcare .pc-day.is-live .pc-day-stage.is-on .pc-day-text,
body.petcare .pc-day.is-live .pc-day-stage.is-on .pc-day-photo { animation: pc-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pc-rise { from { opacity: 0; transform: translateY(10px); } }
body.petcare .pc-day-notes { display: grid; gap: 8px; padding-top: 20px; border-top: 2px dashed var(--pc-gold); font-size: 16px; max-width: 48em; }
/* Rules: the five draft rules in two columns, ruled like the paper. */
body.petcare .pc-rule-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
body.petcare .pc-rule-list li { padding: 18px 0; border-top: 2px dashed var(--pc-gold); font-size: 1.1rem; line-height: 1.5; }
/* Borrowed parts: type and small pieces they rely on. */
body.petcare .pc-tag-name,
body.petcare .pc-day-name { font-family: var(--pc-round); color: var(--pc-brown); margin: 0; text-wrap: balance; }
body.petcare :lang(zh) .pc-tag-name,
body.petcare :lang(zh) .pc-day-name { letter-spacing: 0; font-weight: 700; line-height: 1.25; }
body.petcare .pc-fine { margin-top: 24px; font-size: 1rem; }
body.petcare .pc-link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--pc-gold); padding-block: 4px; }
body.petcare .pc-page .pc-link { color: var(--pc-brown); }
@media (hover: hover) { body.petcare .pc-page .pc-link:hover { color: var(--pc-warm); } }
/* The request slip: one paper form, cut along a perforation, stamped at the end. */
body.petcare .pc-sheet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); filter: drop-shadow(0 0 .5px rgba(92, 65, 48, .6)) drop-shadow(0 12px 0 var(--pc-shade)); }
body.petcare .pc-sheet-main,
body.petcare .pc-sheet-stub { background: var(--pc-card); position: relative; }
body.petcare .pc-sheet-main {
  padding: 30px 34px 22px; border-radius: 14px 0 0 14px;
  -webkit-mask: radial-gradient(circle 12px at 100% 0, #0000 11.5px, #000 12px) top / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 11.5px, #000 12px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at 100% 0, #0000 11.5px, #000 12px) top / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 11.5px, #000 12px) bottom / 100% 51% no-repeat;
}
body.petcare .pc-sheet-stub {
  padding: 30px 34px; border-radius: 0 14px 14px 0; display: flex; flex-direction: column; gap: 16px;
  background-image: linear-gradient(to bottom, var(--pc-gold) 55%, transparent 0); background-size: 2px 12px; background-repeat: repeat-y; background-position: 0 14px;
  -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 11.5px, #000 12px) top / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, #0000 11.5px, #000 12px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at 0 0, #0000 11.5px, #000 12px) top / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, #0000 11.5px, #000 12px) bottom / 100% 51% no-repeat;
}
body.petcare .pc-slip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
body.petcare .pc-slip-title { font: 800 1.6rem/1.2 var(--pc-round); color: var(--pc-brown); }
body.petcare .pc-slip-draft { font: 800 1rem/1.2 var(--pc-round); color: var(--pc-warm); text-decoration: underline dashed; text-decoration-color: var(--pc-gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
body.petcare .pc-slip-biz { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 2px solid var(--pc-brown); font-size: 1rem; }
body.petcare .pc-slip fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
body.petcare .pc-slip legend { float: left; width: 100%; padding: 16px 0 0; font: 800 1rem/1.3 var(--pc-round); color: var(--pc-brown); }
body.petcare .pc-slip legend + * { clear: both; }
body.petcare .pc-who { display: flex; flex-wrap: wrap; gap: 0 28px; padding-bottom: 6px; border-bottom: 2px dashed var(--pc-gold) !important; }
body.petcare .pc-tick { display: flex; align-items: center; gap: 4px 14px; min-height: 56px; cursor: pointer; flex-wrap: wrap; }
body.petcare .pc-tick input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
body.petcare .pc-box { flex: none; width: 28px; height: 28px; border: 2px solid var(--pc-brown); border-radius: 8px; background: var(--pc-cream); display: grid; place-items: center; transition: background-color .15s ease; }
body.petcare .pc-tick-mark { width: 22px; height: 22px; fill: none; stroke: var(--pc-brown); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; }
body.petcare .pc-tick input:checked + .pc-box { background: var(--pc-orange); }
body.petcare .pc-tick input:checked + .pc-box .pc-tick-mark { stroke-dashoffset: 0; transition: stroke-dashoffset .3s ease .05s; }
body.petcare .pc-tick input:focus-visible + .pc-box { outline: 3px solid var(--pc-brown); outline-offset: 3px; }
@media (hover: hover) {
  body.petcare .pc-tick:hover .pc-box { background: var(--pc-latte); }
  body.petcare .pc-tick:hover input:checked + .pc-box { background: var(--pc-orange); }
}
body.petcare .pc-tick-name { font: 800 1.2rem/1.2 var(--pc-round); color: var(--pc-brown); }
body.petcare .pc-hint { font-size: 1rem; }
body.petcare .pc-need + .pc-need { border-top: 2px dashed var(--pc-gold); }
body.petcare .pc-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
body.petcare .pc-detail-in { min-height: 0; overflow: hidden; visibility: hidden; padding-left: 42px; transition: visibility 0s .35s; }
body.petcare .pc-need:has(input:checked) .pc-detail { grid-template-rows: 1fr; }
body.petcare .pc-need:has(input:checked) .pc-detail-in { visibility: visible; transition-delay: 0s; padding-bottom: 14px; }
body.petcare .pc-detail-in p { margin: 4px 0 0; font-size: 1rem; line-height: 1.55; }
body.petcare .pc-detail-in p:first-child { margin-top: 0; }
body.petcare .pc-detail-in b { display: inline-block; margin-right: 8px; color: var(--pc-brown); font-weight: 800; }
body.petcare .d-all b { display: none; }
body.petcare .pc-slip:has(.in-cat:checked):not(:has(.in-dog:checked)) .d-dog { display: none; }
body.petcare .pc-slip:has(.in-dog:checked):not(:has(.in-cat:checked)) .d-cat { display: none; }
body.petcare .pc-empty { display: none; padding: 18px 0 14px; margin: 0; }
body.petcare .pc-slip:not(:has(.pc-need input:checked)) .pc-empty { display: block; }
@media (prefers-reduced-motion: no-preference) {
  body.petcare .pc-need:has(input:checked) .pc-detail-in p { animation: pc-ink-in .55s ease-out both; }
  @keyframes pc-ink-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
body.petcare .pc-stub-h { font: 800 1.3rem/1.2 var(--pc-round); color: var(--pc-brown); margin: 0; padding-right: 140px; min-height: 100px; }
body.petcare .pc-next { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.petcare .pc-next li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 1rem; line-height: 1.5; }
body.petcare .pc-next li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--pc-orange); color: var(--pc-brown); font: 800 .9rem/1 var(--pc-round); }
body.petcare .pc-limit-stub { margin: 2px 0 0; padding-top: 14px; border-top: 2px dashed var(--pc-gold); font-weight: 700; }
body.petcare .pc-go { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
body.petcare .pc-slip:has(.in-stay:checked) .go-stay,
body.petcare .pc-slip:has(.in-day:checked) .go-care,
body.petcare .pc-slip:has(.in-groom:checked) .go-care { background: var(--pc-brown); color: var(--pc-card); }
@media (hover: hover) {
  body.petcare .pc-slip:has(.in-stay:checked) .go-stay:hover,
  body.petcare .pc-slip:has(.in-day:checked) .go-care:hover,
  body.petcare .pc-slip:has(.in-groom:checked) .go-care:hover { background: var(--pc-ink); }
}
body.petcare .pc-slip:not(:has(.in-stay:checked)) .go-stay { background: transparent; color: var(--pc-brown); }
body.petcare .pc-slip-stamp { position: absolute; top: 14px; right: 18px; width: 0; height: 0; }
body.petcare .pc-slip-stamp .pc-imp { right: 0; top: 0; width: 124px; height: 124px; }
body.petcare .pc-slip:has(.pc-need input:checked) .pc-slip-stamp .pc-imp { visibility: visible; }
body.petcare .pc-slip-stamp .pc-imp { --turn: 0; }
@media (prefers-reduced-motion: no-preference) {
  body.petcare .pc-slip-stamp.pressing .pc-imp { visibility: visible; animation: pc-press .7s cubic-bezier(.3, .7, .3, 1) backwards; }
  body.petcare .pc-slip-stamp.pressing .pc-ink { animation: pc-settle-ink 1.2s ease-out backwards; }
  body.petcare .pc-slip-stamp.pressing { }
}
/* Footer */
body.petcare .pc-foot { max-width: 1160px; margin: var(--pc-gap) auto 0; padding: 32px 24px 56px; display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 28px; border-top: 2px dashed var(--pc-gold); }
/* From 960 px it stands on the content edges, its dashed line running from edge to edge (#201). */
@media (min-width: 960px) { body.petcare .pc-foot { max-width: none; margin-inline: var(--pc-edge); padding-inline: 0; } }
body.petcare .pc-foot-id { display: flex; align-items: center; gap: 14px; }
body.petcare .pc-foot-mark { width: 72px; height: 72px; flex: none; mix-blend-mode: multiply; }
body.petcare .pc-foot-id p,
body.petcare .pc-foot-col p { margin: 0; }
body.petcare .pc-foot-name { font: 800 1.15rem/1.2 var(--pc-round); color: var(--pc-brown); }
body.petcare .pc-foot-id .pc-foot-note { margin-top: 6px; font-size: .875rem; color: var(--pc-brown); text-wrap: pretty; }
body.petcare .pc-foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
body.petcare .pc-foot-col a { display: inline-flex; align-items: center; min-height: 36px; }
body.petcare .pc-foot-h { font: 800 1rem/1.2 var(--pc-round); color: var(--pc-brown); }
/* Tablet */
@media (max-width: 1000px) {
  body.petcare .pc-tag-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  body.petcare .pc-sheet { grid-template-columns: minmax(0, 1fr); }
  body.petcare .pc-sheet-main { border-radius: 14px 14px 0 0; -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 11.5px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 11.5px, #000 12px) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 100%, #0000 11.5px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 11.5px, #000 12px) right / 51% 100% no-repeat; }
  body.petcare .pc-sheet-stub { border-radius: 0 0 14px 14px; background-image: linear-gradient(to right, var(--pc-gold) 55%, transparent 0); background-size: 12px 2px; background-repeat: repeat-x; background-position: 14px 0; -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 11.5px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 11.5px, #000 12px) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 0, #0000 11.5px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 11.5px, #000 12px) right / 51% 100% no-repeat; }
  body.petcare .pc-foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body.petcare .pc-rule-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.petcare .pc-hero { grid-template-columns: 1fr; }
  body.petcare .pc-hero-art { width: min(80%, 300px); margin: 4px auto 44px; }
  body.petcare .pc-badge { width: 150px; right: -34px; bottom: -36px; }
}
/* Tags and day on a phone: the rail runs behind each tag; the day's names leave the rail. */
@media (max-width: 760px) {
  body.petcare { --pc-inset: 34px; }
  body.petcare .pc-board { margin: 0 calc(-1 * var(--pc-pad)); padding: 14px 0 0; }
  body.petcare .pc-board::before { display: none; }
  body.petcare .pc-tags.is-live .pc-board { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  body.petcare .pc-tags.is-live .pc-board::-webkit-scrollbar { display: none; }
  body.petcare .pc-tags.is-live .pc-tag-list { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); width: max-content; min-width: 100%; padding: 6px var(--pc-pad) 0; gap: 16px; position: relative; justify-items: stretch; }
  body.petcare .pc-tags.is-live .pc-tag-list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px; background: var(--pc-brown); }
  body.petcare .pc-tags.is-live .pc-tag { scroll-snap-align: center; max-width: none; }
  body.petcare .pc-tags.is-live .pc-swing { touch-action: pan-x pan-y; }
  body.petcare .pc-tags:not(.is-live) .pc-tag-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  body.petcare .pc-tags:not(.is-live) .pc-board { padding-top: 0; }
  body.petcare .pc-tags:not(.is-live) .pc-tag::before { content: ""; position: absolute; top: 0; left: calc(-1 * var(--pc-pad)); right: calc(-1 * var(--pc-pad)); height: 8px; border-radius: 8px; background: var(--pc-brown); }
  body.petcare .pc-board:focus-visible { outline: 3px solid var(--pc-brown); outline-offset: -3px; }
  body.petcare .pc-track { grid-template-columns: 1fr 1fr; grid-template-areas: "rail rail" "a b"; margin-top: 24px; }
  body.petcare .pc-rail { grid-area: rail; height: 128px; }
  body.petcare .pc-line,
  body.petcare .pc-walked,
  body.petcare .pc-stop,
  body.petcare .pc-walker { top: 96px; }
  body.petcare .pc-stop-name { display: none; }
  body.petcare .pc-end { padding: 0; }
  body.petcare .pc-end-start { grid-area: a; }
  body.petcare .pc-end-finish { grid-area: b; justify-self: end; }
  body.petcare .pc-day-stage { grid-template-columns: minmax(0, 1fr); padding-block: 22px; gap: 20px; }
  body.petcare .pc-day-body { font-size: 18px; }
  body.petcare .pc-day-photo { justify-self: start; max-width: none; }
}
/* Phone: its own layout. */
@media (max-width: 600px) {
  body.petcare { --pc-pad: 16px; --pc-gap: 64px; }
  body.petcare .pc-main { padding: 12px 16px 0; }
  body.petcare .pc-sec-head { margin-bottom: 26px; }
  body.petcare .pc-title { font-size: 2.2rem; }
  body.petcare .pc-actions { flex-direction: column; align-items: stretch; }
  body.petcare .pc-btn { justify-content: space-between; }
  body.petcare .pc-sheet-main { padding: 24px 20px 20px; }
  body.petcare .pc-sheet-stub { padding: 26px 20px 24px; }
  body.petcare .pc-slip { margin-inline: -4px; }
  body.petcare .pc-slip-title { font-size: 1.4rem; }
  body.petcare .pc-tick { min-height: 60px; }
  body.petcare .pc-hint { flex-basis: 100%; margin: -10px 0 8px 42px; }
  body.petcare .pc-who .pc-hint { flex-basis: auto; }
  body.petcare .pc-stub-h { padding-right: 110px; min-height: 84px; }
  body.petcare .pc-slip-stamp { right: 10px; top: 8px; }
  body.petcare .pc-slip-stamp .pc-imp { width: 100px; height: 100px; }
  body.petcare .pc-foot { grid-template-columns: 1fr; padding: 28px 16px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  body.petcare .pc-tags.is-live .pc-flip { transition: none; }
  body.petcare .pc-stop-dot { transition: none !important; }
  body.petcare .pc-day.is-live .pc-day-stage.is-on .pc-day-text,
  body.petcare .pc-day.is-live .pc-day-stage.is-on .pc-day-photo { animation: none; }
  body.petcare.pc-js .pc-rise { transition: none; }
  body.petcare.pc-js .pc-rise:not(.in) { transform: none; }
  body.petcare .pc-btn,
  body.petcare .pc-nav a,
  body.petcare .pc-head { transition: none; }
  body.petcare .pc-detail { transition: none; }
  body.petcare .pc-tick input:checked + .pc-box .pc-tick-mark { transition: none; }
}

/* ==========================================================================
   The pet care request flow (PC11 round 1, "B with A's receipt", tune T1): Stays and Care draw
   the request as a picture above a plain form (rq-), the receipt is the request slip (rr-), and
   the send raises that slip over the form (rs-). Every rule sits under body.petcare.
   ========================================================================== */

body.petcare { --rq-alert: #a3372d; }
body.petcare .rq-plain { font: 400 1rem/1.3 var(--font); color: var(--pc-ink); }
/* ---------- the forms: plain, in Home's own parts ---------- */
body.petcare .rq-form { min-width: 0; }
body.petcare .rq-set { border: 0; margin: 0; min-width: 0; padding: 24px 0 26px; border-top: 2px dashed var(--pc-gold); }
body.petcare .rq-form > .rq-set:first-child { border-top: 0; padding-top: 0; }
body.petcare .rq-legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font: 800 1.35rem/1.25 var(--pc-round); color: var(--pc-brown); }
body.petcare .rq-legend + * { clear: both; }
body.petcare .rq-label { display: block; margin: 0 0 6px; font: 800 1rem/1.3 var(--pc-round); color: var(--pc-brown); }
body.petcare .rq-field { min-width: 0; }
body.petcare .rq-input { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--pc-brown); border-radius: 14px; background: var(--pc-card); color: var(--pc-ink); font: 400 17px/1.4 var(--font); -webkit-appearance: none; appearance: none; }
body.petcare .rq-input[aria-invalid="true"] { border-color: var(--rq-alert); border-width: 3px; }
body.petcare .rq-use { margin: 0 0 8px; font-size: 1rem; }
body.petcare .rq-input + .rq-use { margin: 6px 0 0; }
body.petcare .rq-f-option { position: relative; }
body.petcare .rq-f-option::after { content: ""; position: absolute; right: 18px; bottom: 21px; width: 9px; height: 9px; border-right: 2.5px solid var(--pc-brown); border-bottom: 2.5px solid var(--pc-brown); transform: rotate(45deg); pointer-events: none; }
body.petcare .rq-err { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; color: var(--rq-alert); font-weight: 700; font-size: 1rem; line-height: 1.4; clear: both; }
body.petcare .rq-err .icon { margin-top: 2px; }
body.petcare .rq-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 14px 16px; border: 2px solid var(--rq-alert); border-radius: 14px; background: var(--pc-card); color: var(--rq-alert); font-weight: 700; scroll-margin-top: 104px; }
body.petcare .rq-notice .icon { margin-top: 3px; }
/* Pets */
body.petcare .rq-pet { border: 0; margin: 0; padding: 0; min-width: 0; }
body.petcare .rq-pet + .rq-pet { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--pc-latte); }
body.petcare .rq-f-kind { grid-area: kind; }
body.petcare .rq-f-option { grid-area: option; }
body.petcare .rq-textbtn { border: 0; background: none; padding: 0; min-height: 44px; font: 800 1rem/1.2 var(--pc-round); color: var(--pc-brown); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
/* A list of choices: rooms, services, pick-up */
body.petcare .rq-choices { display: grid; }
body.petcare .rq-choice { flex-wrap: nowrap; align-items: flex-start; gap: 14px; min-height: 56px; padding: 13px 0; text-decoration: none; }
body.petcare .rq-choice + .rq-choice { border-top: 2px solid var(--pc-latte); }
body.petcare .rq-choice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; padding-top: 1px; }
body.petcare .rq-choice-note,
body.petcare .rq-choice-meta { font-size: 1rem; line-height: 1.5; }
/* Notes, contact and sending */
body.petcare .rq-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
body.petcare .rq-send { display: grid; justify-items: start; gap: 14px; padding-top: 26px; border-top: 2px dashed var(--pc-gold); }
body.petcare .rq-send-btn { min-height: 56px; padding: 0 28px; font-size: 1.1rem; cursor: pointer; }
/* ---------- motion: each one shows what just changed ---------- */
@media (prefers-reduced-motion: no-preference) {
}

/* ---------- narrower: the ends move above the line; one column ---------- */
@media (max-width: 600px) {

  body.petcare .rq-contact-grid { grid-template-columns: minmax(0, 1fr); }


  body.petcare .rq-send { justify-items: stretch; }
  body.petcare .rq-send-btn { justify-content: space-between; }
}

/* ---------- the receipt: the request slip (direction A, with T1's stamp) ---------- */
body.petcare { --rr-seal: 124px; --rr-rule: 2px dashed var(--pc-gold); --rr-paper-shadow: drop-shadow(0 0 .5px rgba(92, 65, 48, .6)) drop-shadow(0 12px 0 var(--pc-shade)); }
body.petcare .rr-page { max-width: 1160px; margin: 0 auto; padding: 24px 24px 0; }
@media (min-width: 960px) { body.petcare .rr-page { max-width: none; padding-inline: var(--pc-edge); } }   /* on the content edges, as its footer (#201) */
body.petcare .rr-page a { color: var(--pc-ink); }
@media (hover: hover) { body.petcare .rr-page a:hover { color: var(--pc-warm); } }
body.petcare .rr-page :focus-visible { outline: 3px solid var(--pc-brown); outline-offset: 3px; border-radius: 8px; }
body.petcare .rr-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(336px, 36%, 420px); gap: clamp(36px, 7vw, 96px); align-items: start; padding-top: clamp(4px, 2.4vw, 30px); }
body.petcare .rr-text .pc-lead { margin-top: 14px; max-width: 30em; }
body.petcare .rr-text .pc-lead strong { font-weight: 800; color: var(--pc-brown); }
body.petcare .rr-next { margin-top: 40px; padding-top: 22px; border-top: var(--rr-rule); max-width: 34em; }
body.petcare .rr-h { margin: 0; font: 800 1.3rem/1.2 var(--pc-round); color: var(--pc-brown); }
body.petcare .rr-next .pc-next { margin-top: 16px; }
body.petcare .rr-next .pc-next li { font-size: 1.05rem; }
body.petcare .rr-one { margin: 14px 0 0; font-size: 1.05rem; }
body.petcare .rr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 34px; }
body.petcare .rr-home { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
body.petcare .rr-seat { position: relative; margin-top: 62px; }
body.petcare .rr-dog { position: absolute; z-index: 1; right: clamp(48px, 9%, 110px); bottom: 100%; pointer-events: none; color: var(--pc-brown); }
body.petcare .rr-dog .dog { display: block; color: var(--pc-brown); translate: 0 calc(1000% / 96); }
body.petcare .rr-ticket { filter: var(--rr-paper-shadow); view-transition-name: rs-request; }
body.petcare .rr-ticket-in {
  position: relative; padding: 28px 30px 26px 40px; background: var(--pc-card); border-radius: 0 14px 14px 0;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 5.5px, #000 6px) 0 0 / 100% 18px;
  mask: radial-gradient(circle 6px at 0 50%, #0000 5.5px, #000 6px) 0 0 / 100% 18px;
}
body.petcare .rr-ticket .pc-slip-title { margin: 0; }
body.petcare .rr-lines { margin: 2px 0 0; }
body.petcare .rr-line { display: grid; grid-template-columns: 4.9em minmax(0, 1fr); gap: 0 14px; align-items: start; border-bottom: var(--rr-rule); }
body.petcare .rr-line dt { padding: 12px 0 10px; font: 700 .95rem/1.4 var(--pc-round); color: var(--pc-brown); }
body.petcare .rr-line dd { margin: 0; min-width: 0; font: 800 1.05rem/1.4 var(--pc-round); color: var(--pc-ink); }
body.petcare .rr-ink { display: block; min-height: 46px; padding: 10px 0; overflow-wrap: anywhere; }
body.petcare .rr-ink-row { display: block; }
body.petcare .rr-line-rates { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
body.petcare .rr-line-rates dt { padding-bottom: 0; }
body.petcare .rr-line-rates dd { padding: 4px 0 6px; }
body.petcare .rr-rates { margin: 0; padding: 0; list-style: none; }
body.petcare .rr-estimate { margin: 4px 0 0; font: 400 1rem/1.5 var(--font); }
body.petcare .rr-line-status { align-items: center; }
body.petcare .rr-answer { position: relative; display: flex; align-items: center; min-height: 86px; margin: 10px 0; padding: 10px 16px; border: 2px dashed var(--pc-gold); border-radius: 12px; }
/* The status is a stamp: Requested in the warm brown, Confirmed inked solid, Declined in outline. */
body.petcare .rr-word { position: relative; z-index: 1; display: inline-block; padding: 6px 14px 7px; border: 3px solid var(--pc-brown); border-radius: 9px; font: 800 1.3rem/1.15 var(--pc-round); color: var(--pc-brown); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-4deg); filter: url(#pc-rough); }
body.petcare .rr-ticket.is-requested .rr-word { border-color: var(--pc-warm); color: var(--pc-warm); }
body.petcare :is(.rr-ticket.is-confirmed, .rr-ticket.is-accepted) .rr-word { background: var(--pc-brown); color: var(--pc-card); }
body.petcare :lang(zh) .rr-word { letter-spacing: .12em; }
/* The badge stamps: Home's own mark, pressed whole at the slip's bottom right as it was sent,
   and again in the status box when the owner confirms. */
body.petcare .rr-seal { position: absolute; width: 0; height: 0; pointer-events: none; }
body.petcare .rr-seal .pc-imp { visibility: visible; left: calc(var(--rr-seal) / -2); top: calc(var(--rr-seal) / -2); width: var(--rr-seal); height: var(--rr-seal); }
body.petcare .rr-seal-sent { right: calc(var(--rr-seal) / 2 + 12px); bottom: calc(var(--rr-seal) / 2 + 18px); }
body.petcare .rr-seal-answer { right: 40px; top: 50%; --rr-seal: 104px; }
body.petcare .rr-seal-answer .pc-imp { transform: rotate(8deg); }
body.petcare .rr-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: var(--rr-seal); max-width: none; margin: 12px 0 0; padding: 0 calc(var(--rr-seal) + 18px) 0 0; font-weight: 700; text-wrap: pretty; }
body.petcare .rr-copy { min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; font: 800 1rem/1.2 var(--pc-round); color: var(--pc-brown); text-decoration: underline; text-decoration-color: var(--pc-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) { body.petcare .rr-copy:hover { color: var(--pc-warm); } }

/* ---------- motion: the stamps press; the slip lands where there is no page change to carry it ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.petcare .rr-ticket.is-confirmed .rr-word,
  body.petcare .rr-ticket.is-accepted .rr-word,
  body.petcare .rr-ticket.is-declined .rr-word { animation: rr-press-word .6s cubic-bezier(.3, .7, .3, 1) .45s backwards; }
  /* Requested is pressed into the blank box once the slip has landed; the box gives under it. */
  body.petcare .rr-ticket.is-requested .rr-word { animation: rr-press-word .6s cubic-bezier(.3, .7, .3, 1) .5s backwards; }
  body.petcare .rr-ticket.is-requested .rr-answer { animation: rr-box-give .5s cubic-bezier(.3, .7, .3, 1) .77s; }
  @keyframes rr-press-word { 0% { transform: translateY(-22px) scale(1.25) rotate(2deg); opacity: 0; }
    30% { opacity: 1; }
    50% { transform: translateY(0) scale(.94) rotate(-6.5deg); }
    72% { transform: translateY(0) scale(1.03) rotate(-3.4deg); }
    100% { transform: translateY(0) scale(1) rotate(-4deg); opacity: 1; } }
  @keyframes rr-box-give { 35% { transform: translateY(2px) scale(.985); } }
  body.petcare .rr-seal-answer .pc-imp { animation: rr-press-answer .7s cubic-bezier(.3, .7, .3, 1) 1s backwards; }
  body.petcare .rr-seal-answer .pc-ink { animation: pc-settle-ink 1.2s ease-out 1s backwards; }
  @keyframes rr-press-answer { 0% { transform: translateY(-26px) scale(1.25) rotate(-3deg); opacity: 0; }
    30% { opacity: 1; }
    50% { transform: translateY(0) scale(.92) rotate(11deg); }
    72% { transform: translateY(0) scale(1.03) rotate(7deg); }
    100% { transform: translateY(0) scale(1) rotate(8deg); opacity: 1; } }
  body.petcare .rr-ticket.is-requested { animation: rr-land .6s cubic-bezier(.3, 1.3, .5, 1) .1s backwards; transform-origin: 0 0; }
  @keyframes rr-land { from { transform: translate(14px, -12px) rotate(1.6deg); } to { transform: none; } }


  /* The stamp: only once the server has saved the request, and only after the edge has closed.
     It lands in a quarter second with a slight overshoot (PC41), and stays. */


  @keyframes rs-stamp { from { transform: translateY(-14px) scale(1.12) rotate(-5deg); opacity: 0; } 25% { opacity: 1; } to { transform: rotate(-9deg); opacity: 1; } }
}
/* The slip arrives by the page change; its own landing stays only where there is none. */
@supports selector(:active-view-transition) {
  @media (prefers-reduced-motion: no-preference) {
    body.petcare .rr-ticket.is-requested { animation: none; }
  }
}

/* ---------- phone and small tablet ---------- */
@media (max-width: 899px) {
  body.petcare .rr-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.petcare .rr-text { display: contents; }
  body.petcare .rr-text > .pc-h2 { order: 1; }
  body.petcare .rr-text > .pc-lead { order: 2; }
  body.petcare .rr-seat { order: 3; margin-top: 74px; }
  body.petcare .rr-seat .rr-dog { right: auto; left: 26px; }
  body.petcare .rr-next { order: 4; margin-top: 52px; }
  body.petcare .rr-actions { order: 5; }
  body.petcare .rr-ticket-in { padding: 34px 28px 26px; border-radius: 0 0 14px 14px; -webkit-mask: radial-gradient(circle 6px at 50% 0, #0000 5.5px, #000 6px) 0 0 / 18px 100%; mask: radial-gradient(circle 6px at 50% 0, #0000 5.5px, #000 6px) 0 0 / 18px 100%; }
  body.petcare .rr-keep { margin-top: 18px; }

}
@media (max-width: 600px) {
  body.petcare .rr-page { padding: 12px 16px 0; }
  body.petcare .rr-ticket-in { padding-inline: 20px; }
  body.petcare .rr-actions { flex-direction: column; align-items: stretch; }
  body.petcare .rr-actions .rr-home { align-self: flex-start; padding-inline: 0; }
}

/* The live window (website livestream spec §6.6): a 9:16 picture as large as the screen allows. */
.live-page { padding-block: clamp(40px, 8vw, 96px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.live-frame { width: min(100%, calc(80vh * 9 / 16)); aspect-ratio: 9 / 16; background: var(--ink, #1d1a17); border-radius: 16px; overflow: hidden; }
.live-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-status { font-weight: 600; min-height: 1.5em; }
.live-buttons { display: flex; flex-direction: column; gap: 12px; width: min(100%, 360px); }
.live-buttons .btn { justify-content: center; text-align: center; }
.live-code { width: min(100%, 420px); }

/* A form's first, unseen submit: Enter in a field sends the form instead of pressing a row button. */
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* The privacy notice (request form spec §7): a plain text page, also shown on the admin's review. */
.privacy-notice { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; }
.notice-part { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.notice-part ul { margin: 0; padding-left: 1.25em; list-style: disc; display: flex; flex-direction: column; gap: 4px; }
.notice-part li { display: list-item; }
.notice-part p { margin: 0; }
/* The price table rows that match the pets typed (request form spec §6). */
.price-table tr.is-yours th, .price-table tr.is-yours td { background: var(--mist); font-weight: 600; }

/* ==========================================================================
   The small pages (design round 2, PC35): Privacy, the error pages and the live window, in
   round 1's look: the request slip's paper and its badge stamp, Home's tags on their rail.
   ps- is "pet care small pages". Only the pet care site renders this markup.
   ========================================================================== */
body.petcare .ps-page { max-width: 1160px; margin: 0 auto; padding: clamp(24px, 4vw, 52px) 24px 0; }
/* From 960 px: on the content edges, its heading 40 px under the header like every hero's (#201 A, B). */
@media (min-width: 960px) { body.petcare .ps-page { max-width: none; padding: 40px var(--pc-edge) 0; } }
body.petcare .ps-page :focus-visible { outline: 3px solid var(--pc-brown); outline-offset: 3px; border-radius: 8px; }
body.petcare .ps-page [hidden] { display: none !important; }
body.petcare .ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(336px, 38%, 440px); gap: clamp(36px, 7vw, 96px); align-items: start; }
body.petcare .ps-intro .pc-title { max-width: 11em; }
body.petcare .ps-intro .pc-lead { margin-top: 18px; max-width: 26em; }

/* The paper: a sheet of the request slip, its left edge notched, its shadow the receipt's. */
body.petcare .ps-sheet { position: relative; margin-top: 56px; }
body.petcare .ps-seat { position: absolute; z-index: 1; right: clamp(40px, 14%, 72px); bottom: 100%; line-height: 0; color: var(--pc-brown); pointer-events: none; }
body.petcare .ps-seat .dog { display: block; color: var(--pc-brown); translate: 0 calc(1000% / 96); }
body.petcare .ps-paper { filter: var(--rr-paper-shadow); }
body.petcare .ps-paper-in {
  position: relative; padding: 24px 30px 28px 40px; background: var(--pc-card); border-radius: 0 14px 14px 0;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 5.5px, #000 6px) 0 0 / 100% 18px;
  mask: radial-gradient(circle 6px at 0 50%, #0000 5.5px, #000 6px) 0 0 / 100% 18px;
}
body.petcare .ps-biz { margin: 0; padding-bottom: 14px; border-bottom: 2px solid var(--pc-brown); font: 800 1rem/1.35 var(--pc-round); color: var(--pc-brown); }
/* The badge, pressed into the paper like the receipt's. */
body.petcare .ps-stamp { position: absolute; width: 0; height: 0; pointer-events: none; }
body.petcare .ps-stamp .pc-imp { visibility: visible; left: -62px; top: -62px; width: 124px; height: 124px; }
body.petcare .ps-stamp.is-waiting .pc-imp { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  body.petcare .ps-stamp.pressing .pc-imp { animation: pc-press .7s cubic-bezier(.3, .7, .3, 1) backwards; }
  body.petcare .ps-stamp.pressing .pc-ink { animation: pc-settle-ink 1.2s ease-out backwards; }
}

/* ---------- a. Privacy: the notice on the business's paper, dated at its head, stamped at its foot ---------- */
body.petcare .ps-privacy .ps-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); }
body.petcare .ps-privacy .ps-intro { position: sticky; top: calc(var(--pc-head-h) + 28px); }
body.petcare .ps-updated { margin: 12px 0 0; font: 800 1rem/1.4 var(--pc-round); color: var(--pc-warm); }
body.petcare .ps-notice .notice-part { display: block; margin: 0; padding: 22px 0 14px; border-bottom: var(--rr-rule); }
body.petcare .ps-notice .notice-part h2 { margin: 0 0 12px; font: 800 1.3rem/1.25 var(--pc-round); letter-spacing: 0; color: var(--pc-brown); text-wrap: balance; }
body.petcare .ps-notice .notice-part p { margin: 0 0 10px; font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
body.petcare .ps-notice .notice-part ul { display: block; margin: 4px 0 12px; padding: 0; list-style: none; }
body.petcare .ps-notice .notice-part li { position: relative; margin: 6px 0; padding-left: 24px; font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
body.petcare .ps-notice .notice-part li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 10px; height: 10px; border: 2.5px solid var(--pc-brown); border-radius: 50%; box-sizing: border-box; }
body.petcare :lang(zh) .ps-notice .notice-part h2 { font-weight: 700; line-height: 1.35; }
body.petcare .ps-foot { position: relative; height: 136px; }
body.petcare .ps-foot .ps-stamp { right: 76px; top: 72px; }

/* ---------- b, c, d. The error pages: the ways on hang from a rail, like Home's tags ---------- */
body.petcare .ps-error .ps-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; min-height: clamp(340px, 50vh, 500px); }
/* The 404's three tags need half the row; its title is short in both languages. */
body.petcare .ps-error-lost .ps-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Room for a ten-character Chinese title on one line, so it never breaks mid-phrase. */
body.petcare .ps-error .ps-intro .pc-title { max-width: 12em; }
body.petcare .ps-board { position: relative; margin-top: 64px; padding-top: 4px; }
body.petcare .ps-board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 8px; background: var(--pc-brown); }
body.petcare .ps-rail-dog { position: absolute; z-index: 1; left: 28px; bottom: 100%; line-height: 0; color: var(--pc-brown); pointer-events: none; }
body.petcare .ps-rail-dog .dog { display: block; color: var(--pc-brown); translate: 0 calc(1000% / 96); }
body.petcare .ps-board.is-lost .ps-rail-dog { left: auto; right: 6px; }
/* The tags share the rail equally, each never narrower than its name's longest word (the menu's names are a
   setting, up to 12 letters, PC53): where they can't sit side by side, they wrap onto a second row. */
body.petcare .ps-tags { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0 0 12px; list-style: none; align-items: flex-start; }
body.petcare .ps-error-oops .ps-tags,
body.petcare .ps-error-paused .ps-tags { justify-content: center; }
body.petcare .ps-tag { display: flex; justify-content: center; flex: 1 1 0; min-width: min-content; max-width: 50%; }
body.petcare .ps-tag.ps-gone { flex: 0 0 40px; min-width: 0; }
body.petcare :is(.ps-error-oops, .ps-error-paused) .ps-tag { flex: 0 1 230px; }
body.petcare .ps-swing { display: flex; flex-direction: column; align-items: center; width: 100%; transform-origin: 50% 0; }
body.petcare .ps-tag .pc-string { height: 34px; }
body.petcare .ps-tag-face { --cut: 20px; display: block; width: 100%; text-decoration: none; }
body.petcare .ps-tag-face .pc-inner { min-height: 148px; padding: 42px 14px 18px; gap: 10px; justify-content: flex-end; }
body.petcare .ps-tag-name { font: 800 1.55rem/1.15 var(--pc-round); overflow-wrap: normal; hyphens: manual; }
body.petcare :lang(zh) .ps-tag-name { word-break: keep-all; }
body.petcare .ps-tag-face .icon { flex: none; transition: translate .2s ease; }
body.petcare .ps-tag-face:hover .icon,
body.petcare .ps-tag-face:focus-visible .icon { translate: 5px 0; }
body.petcare .ps-tag.pc-tone-brown .pc-inner { background: var(--pc-brown); color: var(--pc-cream); }
body.petcare .ps-tag.pc-tone-orange .pc-inner { background: var(--pc-orange); color: var(--pc-brown); }
body.petcare .ps-tag.pc-tone-light .pc-inner { background: var(--pc-latte); color: var(--pc-brown); }
/* The tag's outline clips an outer ring, so the keyboard's ring is drawn inside the tag. */
body.petcare .ps-page .ps-tag-face:focus-visible { outline: 0; }
body.petcare .ps-tag-face:focus-visible .pc-inner { outline: 3px dashed currentColor; outline-offset: -9px; }
/* The empty hook where the missing page would hang. */
body.petcare .ps-hook { width: 16px; height: 18px; margin-top: -2px; border: 2.5px solid var(--pc-brown); border-top: 0; border-radius: 0 0 10px 10px; }
@media (prefers-reduced-motion: no-preference) {
  body.petcare .ps-swing { animation: ps-swing-in 1.7s cubic-bezier(.3, .7, .3, 1) both; }
  body.petcare .ps-tag[data-n="1"] .ps-swing { animation-delay: .12s; }
  body.petcare .ps-tag[data-n="2"] .ps-swing { animation-delay: .24s; }
  body.petcare .ps-tag[data-n="3"] .ps-swing { animation-delay: .36s; }
  body.petcare .ps-tag:hover .ps-swing,
  body.petcare .ps-tag:focus-within .ps-swing { animation: ps-swing-nudge 1.1s cubic-bezier(.3, .7, .3, 1) both; }
  @keyframes ps-swing-in { 0% { rotate: 9deg; } 24% { rotate: -6deg; } 48% { rotate: 3.5deg; } 70% { rotate: -1.6deg; } 86% { rotate: .6deg; } 100% { rotate: 0deg; } }
  @keyframes ps-swing-nudge { 0% { rotate: 0deg; } 22% { rotate: 4deg; } 50% { rotate: -2.4deg; } 76% { rotate: 1deg; } 100% { rotate: 0deg; } }
}

/* ---------- e to h. The live window: the title beside a sheet; the picture in a paper frame ---------- */
body.petcare .ps-live .notice { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border: 2px solid var(--pc-brown); border-radius: 12px; background: var(--pc-latte); color: var(--pc-ink); font: 700 1rem/1.45 var(--pc-round); }
body.petcare .ps-live .notice .icon { flex: none; margin-top: 1px; color: var(--pc-brown); }
body.petcare .ps-code-label { display: block; margin: 20px 0 8px; font: 800 1.05rem/1.3 var(--pc-round); color: var(--pc-brown); }
body.petcare .ps-code-input { display: block; width: 100%; min-width: 0; height: 68px; padding: 0 12px; border: 2px solid var(--pc-brown); border-radius: 14px; background: var(--pc-cream); color: var(--pc-ink); font: 800 2rem/1 var(--pc-round); font-variant-numeric: tabular-nums; letter-spacing: .32em; text-align: center; text-indent: .32em; -webkit-appearance: none; appearance: none; }
body.petcare .ps-page .ps-code-input:focus-visible { outline-offset: 2px; border-radius: 14px; }
body.petcare .ps-wide { width: 100%; margin-top: 16px; }
/* A status in the receipt's dashed box, with a lamp: lit while the camera is on, or the picture live. */
body.petcare .ps-camera,
body.petcare .ps-status { display: flex; align-items: center; gap: 12px; min-height: 62px; margin: 18px 0 0; padding: 12px 16px; border: 2px dashed var(--pc-gold); border-radius: 12px; font: 800 1.1rem/1.35 var(--pc-round); color: var(--pc-brown); }
body.petcare .ps-camera::before,
body.petcare .ps-status::before { content: ""; flex: none; width: 18px; height: 18px; border: 3px solid var(--pc-brown); border-radius: 50%; box-sizing: border-box; }
body.petcare .ps-camera[data-camera="on"]::before,
body.petcare .ps-status[data-say="live"]::before { background: var(--pc-orange); }
@media (prefers-reduced-motion: no-preference) {
  body.petcare .ps-camera[data-camera="on"]::before,
  body.petcare .ps-status[data-say="live"]::before { animation: ps-lamp 2.4s ease-in-out infinite; }
  @keyframes ps-lamp { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 181, 102, .9); } 55% { box-shadow: 0 0 0 7px rgba(242, 181, 102, 0); } }
}
body.petcare .ps-live .live-buttons { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 18px; }
body.petcare .ps-buttons .pc-btn { justify-content: space-between; text-align: left; }
body.petcare .ps-message { margin: 18px 0 0; padding: 16px 18px; border: 2px dashed var(--pc-gold); border-radius: 12px; font: 800 1.2rem/1.4 var(--pc-round); color: var(--pc-brown); text-wrap: pretty; }
body.petcare .ps-regular { margin: 20px 0 0; font-weight: 700; }
body.petcare .ps-intro .ps-status { margin-top: 22px; max-width: 26em; }
body.petcare .ps-until { display: flex; align-items: center; gap: 10px; max-width: 26em; margin: 22px 0 0; padding-top: 16px; border-top: var(--rr-rule); font-size: 1.05rem; }
body.petcare .ps-until .icon { flex: none; color: var(--pc-brown); }
body.petcare .ps-needs-js { margin: 14px 0 0; font-weight: 700; }
/* The picture: a paper frame around the 9:16 camera, as tall as the screen allows. */
body.petcare .ps-screen { position: relative; justify-self: center; width: min(100%, calc(74vh * 9 / 16 + 28px)); margin-top: 56px; }
body.petcare .ps-screen .ps-sheet { margin-top: 0; }
body.petcare .ps-screen .live-frame { width: 100%; aspect-ratio: auto; padding: 12px; overflow: visible; border: 2px solid var(--pc-brown); border-radius: 22px; background: var(--pc-card); box-shadow: 0 7px 0 var(--pc-shade); }
body.petcare .ps-screen .live-video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--pc-ink); }

/* Printing or saving as PDF shows the stamp, pressed or not. */
@media print {
  body.petcare .ps-stamp.is-waiting .pc-imp { visibility: visible; }
}
@media (max-width: 900px) {
  body.petcare .ps-privacy .ps-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.petcare .ps-privacy .ps-intro { position: static; }
}
@media (max-width: 760px) {
  body.petcare .ps-page { padding: 18px 16px 0; }
  body.petcare .ps-grid,
  body.petcare .ps-error .ps-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  body.petcare .ps-sheet,
  body.petcare .ps-screen { margin-top: 70px; }
  body.petcare .ps-screen .ps-sheet { margin-top: 0; }
  body.petcare .ps-paper-in { padding: 20px 20px 24px 30px; }
  body.petcare .ps-foot { height: 120px; }
  body.petcare .ps-foot .ps-stamp { right: 62px; top: 64px; }
  body.petcare .ps-stamp .pc-imp { left: -52px; top: -52px; width: 104px; height: 104px; }
  body.petcare .ps-board { margin-top: 84px; }
  body.petcare .ps-tags { gap: 10px; }
  body.petcare .ps-tag.ps-gone { flex-basis: 26px; }
  body.petcare .ps-tag-face { --cut: 16px; }
  body.petcare .ps-tag-face .pc-inner { min-height: 118px; padding: 36px 10px 14px; gap: 6px; }
  body.petcare .ps-tag-name { font-size: 1.2rem; }
  body.petcare .ps-screen { width: 100%; }
}

/* /setup (camera PC setup, design round 3, PC38 "the PC as a tag"): the business's brown rail with a
   sitting shiba, and the camera PC's tag, blank, swinging in once, with the code field, Download and
   the three steps after it. A refusal shakes the tag "no" once; eight good characters, a small swing.
   Reduce Motion: the same tag, still. */
body.petcare .ps-setup-hang { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 64px; }
body.petcare .ps-setup-rail { position: relative; display: block; align-self: stretch; height: 8px; border-radius: 8px; background: var(--pc-brown); }
body.petcare .ps-setup-dog { position: absolute; right: 12%; bottom: 100%; line-height: 0; color: var(--pc-brown); }
body.petcare .ps-setup-dog .dog { display: block; color: var(--pc-brown); translate: 0 3px; }
body.petcare .ps-setup-swing { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 440px; transform-origin: 50% 0; filter: var(--rr-paper-shadow); }
body.petcare .ps-setup-swing .pc-string { position: relative; z-index: 2; height: 30px; margin-bottom: -16px; }
body.petcare .ps-setup-inner .pc-hole { top: 5px; }
body.petcare .ps-setup-face { width: 100%; }
body.petcare .ps-setup-inner { gap: 0; padding: 46px 28px 24px; }
body.petcare .ps-setup-name { margin: 0; font: 800 1.5rem/1.2 var(--pc-round); color: var(--pc-brown); text-align: center; }
body.petcare .ps-setup-form .ps-code-label { margin-top: 18px; }
body.petcare .ps-setup-err,
body.petcare .ps-setup-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; font: 700 1rem/1.45 var(--pc-round); }
body.petcare .ps-setup-err { color: var(--rq-alert); }
body.petcare .ps-setup-hint { margin: 10px 0 0; color: var(--pc-warm); }
body.petcare .ps-setup-err .icon,
body.petcare .ps-setup-hint .icon { flex: none; margin-top: 1px; }
body.petcare .ps-setup-input[aria-invalid="true"] { border: 3px solid var(--rq-alert); }
body.petcare .ps-setup-then { margin-top: 22px; padding-top: 2px; border-top: 2px dashed var(--pc-gold); }
body.petcare .ps-setup-then .ps-code-label { margin-top: 14px; }
body.petcare .ps-setup-warn { margin: 0 -10px; padding: 6px 10px; border-radius: 10px; background: var(--pc-latte); }
body.petcare .ps-setup-biz { margin: 20px 0 0; padding-top: 12px; border-top: 2px solid var(--pc-brown); font: 800 1rem/1.35 var(--pc-round); color: var(--pc-brown); text-align: center; }
@media (max-width: 760px) {
  body.petcare .ps-setup-hang { margin-top: 70px; }
  body.petcare .ps-setup-inner { padding: 44px 18px 20px; }
  body.petcare .ps-setup-input { letter-spacing: .2em; text-indent: .2em; font-size: 1.75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  body.petcare .ps-setup-swing { animation: ps-setup-in 1.6s cubic-bezier(.3, .7, .3, 1) both; }
  body.petcare .ps-setup-hang.is-wrong .ps-setup-swing,
  body.petcare .ps-setup-hang.is-malformed .ps-setup-swing,
  body.petcare .ps-setup-hang.is-locked .ps-setup-swing { animation: ps-setup-no .9s cubic-bezier(.3, .7, .3, 1) .2s both; }
  /* As specific as the refusal's shake, and after it, so a good code still swings after a refusal. */
  body.petcare .ps-setup-hang .ps-setup-swing.is-whole { animation: ps-setup-yes 1s cubic-bezier(.3, .7, .3, 1); }
  @keyframes ps-setup-in { 0% { rotate: 7deg; } 26% { rotate: -5deg; } 50% { rotate: 2.6deg; } 72% { rotate: -1.2deg; } 100% { rotate: 0deg; } }
  @keyframes ps-setup-no { 0% { translate: 0 0; } 18% { translate: -9px 0; } 36% { translate: 7px 0; } 54% { translate: -4px 0; } 72% { translate: 2px 0; } 100% { translate: 0 0; } }
  @keyframes ps-setup-yes { 0% { rotate: 0deg; } 25% { rotate: 2.4deg; } 55% { rotate: -1.4deg; } 100% { rotate: 0deg; } }
}

/* ==========================================================================
   The pet care Home in the house look (PC42 rounds 16 to 24, the lab's home-final; ported in PC53).
   Its own prefixes: r- the first screen, b- the house of rooms, m- the bands after it, h- and hs- the
   house picture and what answers in it. Motion is petcare-home.js; Reduce Motion stills all of it.
   ========================================================================== */

/* Round 17, shared: one field, three type sizes, one radius (fully round). */
body.petcare:has(.r-scene) {
  --r-ground: #fbf0df; /* the picture's own sky, so its edge disappears */
  --r-ink: var(--pc-ink);
  --r-solid: var(--pc-brown); --r-solid-ink: var(--pc-card);
  --r-soft: var(--pc-latte); --r-soft-ink: var(--pc-ink);
  --r-solid-hover: var(--pc-ink);
}
body.petcare:has(.r-scene.is-night) {
  --r-ground: #5f3c2d;
  --r-ink: var(--pc-cream);
  --r-solid: var(--pc-cream); --r-solid-ink: var(--pc-ink);
  --r-soft: rgba(251, 242, 225, .14); --r-soft-ink: var(--pc-cream);
  --r-solid-hover: var(--pc-card);
}
/* Night is the first band's (and the header's) alone: every band after it keeps the day's buttons. The bands sit in
   the shell's .pc-plain (round 22: the rule missed them, so by night their solid buttons went cream). */
body.petcare:has(.r-scene) :is(.pc-main, .pc-plain) > :not(.r-scene, .pc-plain) {
  --r-ink: var(--pc-ink); --r-solid: var(--pc-brown); --r-solid-ink: var(--pc-card); --r-solid-hover: var(--pc-ink);
  --r-soft: var(--pc-latte); --r-soft-ink: var(--pc-ink);
}
body.petcare:has(.r-scene) .pc-head { background: var(--r-ground); }
/* Home's sun or moon, beside the language: the time it turns to (a moon by day, a sun by night). */
body.petcare .pc-page .pc-time { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; box-sizing: border-box; border: 0; border-radius: 50%; color: inherit; }
body.petcare .pc-time .icon { grid-area: 1 / 1; }
body.petcare .pc-time .is-sun, body.petcare:has(.r-scene.is-night) .pc-time .is-moon { visibility: hidden; }
body.petcare:has(.r-scene.is-night) .pc-time .is-sun { visibility: visible; }
@media (hover: hover) { body.petcare .pc-time:hover { background: var(--r-soft); } }

.r-scene { background: var(--r-ground); color: var(--r-ink); }
.r-l { display: block; }
.r-h1 { margin: 0; font: 800 var(--r-h, 112px)/.95 var(--pc-round); letter-spacing: -.02em; color: var(--r-ink); }
.r-lead { margin: 28px 0 0; font: 400 22px/1.4 var(--font); color: var(--r-ink); }
.r-mode, .r-hold { margin: 0; font: 400 16px/1.5 var(--font); color: var(--r-ink); }
.r-mode b { font-weight: 700; }
.r-acts { display: flex; gap: 12px; }
body.petcare .pc-page .r-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; font: 800 16px/1 var(--pc-round); text-decoration: none; white-space: nowrap; }
body.petcare .pc-page .r-btn.is-solid { background: var(--r-solid); color: var(--r-solid-ink); }
body.petcare .pc-page .r-btn.is-soft { background: var(--r-soft); color: var(--r-soft-ink); }
.r-ctl { display: grid; }

/* Composition 1: the open house. The house sits --r-t below the header and runs off the bottom; the facts line
   (PC41, 73 px with its margin) moves it down by its height. From 960 px it follows the words instead (below). */
.r1 .r-h1 { --r-h: 120px; }
.r1 { --r-t: calc(257px + 73px); position: relative; height: calc(var(--r-t) + 66.667vw); overflow: hidden; }
.r1-pics { position: absolute; left: 0; top: var(--r-t); width: 100%; }
.r1 .r-acts[hidden] { display: none; }
.r1-in { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 40px 24px 0; }
.r1-row { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; }
/* From 960 px (#201 A, D): the words stand on the content edges, and the house follows them, its roof's peak one section
   gap under the buttons (owner: the gap made the section empty). The peak is 248.5 of the picture's 1536 units down. */
@media (min-width: 960px) {
  .r1 { height: auto; }
  .r1-in { max-width: none; padding-inline: var(--pc-edge); }
  .r1-pics { position: relative; top: auto; margin-top: calc(var(--pc-gap) - 16.18%); }
}


/* Round 19, direction B: room by room, one house. Sizes on the page: the first screen's 120 / 22 / 16, then
   64 headings, 40 room names, 20 body, 16 quiet lines. Tone, paper shadow and the house's own parts separate things. */
body.petcare .pc-main:has(.b-svc) { max-width: none; padding: 0; gap: 0; }
.pc-page { --b-sky: #fbf0df; --b-roof: #855a40; --b-frame: #fffaf0; --b-lawn: #f8dfbc; --b-mound: #d9a55d;
  --b-night: #5f3c2d; --b-nlawn: #ebc798; --b-shade: rgba(116, 83, 62, .42); }
.b-stage { position: relative; width: 1440px; margin: 0 auto; }
.b-h2 { margin: 0; font: 800 64px/1.02 var(--pc-round); letter-spacing: -.015em; color: inherit; text-wrap: balance; }
.b-name { margin: 0; font: 800 40px/1.08 var(--pc-round); letter-spacing: -.01em; color: inherit; text-wrap: balance; }
.b-short, .b-long, .b-price, .b-hold, .b-steps p, .b-list li, .b-town { margin: 0; font: 400 20px/1.5 var(--font); color: inherit; text-wrap: pretty; }
.b-short { margin-top: 10px; font-weight: 700; }
.b-price b { font-weight: 800; }
.b-short + .b-price { margin-top: 12px; }
.b-nb { white-space: nowrap; }

/* 1. The services: a second, bigger cut-away house. Roof, gable, then two floors of rooms on its lawn. */
.b-svc { background: var(--b-sky); color: var(--pc-ink); padding-top: 128px; }
.b-svc .b-stage { display: flow-root; }
.b-roof { position: absolute; top: 0; left: 24px; width: 1392px; height: 356px; background: var(--b-roof);
  clip-path: polygon(0 300px, 696px 0, 1392px 300px, 1392px 356px, 696px 56px, 0 356px); }
.b-gable { position: absolute; top: 56px; left: 64px; width: 1312px; height: 283px; background: var(--b-frame);
  clip-path: polygon(0 283px, 656px 0, 1312px 283px); }
.b-gable::before { content: ""; position: absolute; inset: 0; background: #f6e3c8; clip-path: polygon(51px 283px, 656px 22px, 1261px 283px); }
.b-gable .b-h2 { position: absolute; left: 0; right: 0; bottom: 52px; text-align: center; }
.b-body { position: relative; z-index: 2; margin: 339px 0 0 64px; width: 1312px; box-sizing: border-box; padding: 20px;
  background: var(--b-frame); display: grid; gap: 16px; box-shadow: 0 30px 50px -30px var(--b-shade); }
.b-floor { display: grid; gap: 16px; }
.b-floor.is-up { grid-template-columns: 600px 656px; height: 640px; }
.b-floor.is-down { grid-template-columns: 340px 560px 340px; height: 700px; }
.b-room { position: relative; overflow: hidden; background: var(--wall); }
/* Each wall's picture (owner, 2026-11-16): a cut-out room, Dorm's, Care's or the pick-up, painted in the room's own wall
   colour (--w, which .c-art reads), standing on the room's floor; its plain wall runs on under the words. */
.b-room { --w: var(--wall); }
.b-pic { position: absolute; left: 0; bottom: 0; width: 100%; }
.b-words { z-index: 1; }
.b-room.is-cats { --wall: #f7e4ca; }
.b-room.is-night { --wall: #dca660; }
.b-room.is-door { --wall: #fbeedb; }
.b-room.is-living { --wall: #fbecd7; }
.b-room.is-grooming { --wall: #fbe8ce; }
/* The room's words, set straight on its plain wall: no card, no shadow. Deep brown ink on every wall. */
.b-words { position: absolute; top: 48px; left: 48px; width: 392px; color: var(--pc-ink); }
.b-room.is-living .b-words { left: 56px; width: 400px; }
.b-room.is-door .b-words, .b-room.is-grooming .b-words { left: 32px; width: 276px; }
/* pc-ink gives 4.29:1 on the night room's gold wall; a touch deeper (92% ink) reaches 4.5:1. */
.b-room.is-night .b-words { color: color-mix(in srgb, var(--pc-ink) 92%, #000); width: 560px; display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 28px; }
.b-pl-side { padding-top: 6px; }
.b-pl-side .b-price + .b-price { margin-top: 12px; }

/* 2. The lawn the house stands on, with the demo line; C's orange poster follows straight on. */
.b-lawn { position: relative; background: var(--b-mound); color: var(--pc-ink); }
.b-lawn::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -70px; width: 1900px; height: 260px; margin-left: -950px;
  border-radius: 50%; background: var(--b-mound); }
.b-lawn .b-stage { z-index: 3; height: 200px; }
.b-demo { position: absolute; left: 0; right: 0; top: 88px; margin: 0; text-align: center; font: 400 16px/1.5 var(--font);
  color: color-mix(in srgb, var(--pc-ink) 92%, #000); } /* 4.5:1 on the gold lawn, as on the night room's wall */

/* From C (round 19): its type sizes, the Ask poster, Good to know and the close. */
.pc-page { --m-dark: #5f3c2d; --m-wall: #faebd6; --m-col: min(1112px, calc(100% - 48px)); }
.m-name { margin: 0; font: 800 40px/1.08 var(--pc-round); letter-spacing: -.01em; color: inherit; text-wrap: balance; }
.m-display { margin: 0; font: 800 64px/1.02 var(--pc-round); letter-spacing: -.015em; color: inherit; text-wrap: balance; }
.m-huge { margin: 0; font: 800 120px/.95 var(--pc-round); letter-spacing: -.02em; color: inherit; }
/* zh display lines: Chinese fills the whole em, so the .95 leading that suits Latin makes lines touch; and a line
   that wraps breaks between words ("的家里，"), not inside one, falling back to any break only if a word can't fit. */
:lang(zh) .r-h1, :lang(zh) .m-huge { line-height: 1.12; }
:lang(zh) .r-h1 .r-l, :lang(zh) .m-huge .r-l { word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.m-body { margin: 0; font: 400 20px/1.5 var(--font); color: inherit; text-wrap: pretty; }
.m-body b { font-weight: 800; }
.m-short { font-weight: 700; }
.m-small { margin: 0; font: 400 16px/1.5 var(--font); color: inherit; }
.m-nb { white-space: nowrap; }
.m-go { margin-top: 32px; }

/* Ask: the colour spread. One very large line, the two ways in, then how a request works. */
.m-ask { background: var(--pc-orange); color: var(--pc-ink); padding: 152px 0 160px; text-align: center; }
.m-ways { display: flex; justify-content: center; gap: 16px; margin-top: 56px; }
.m-ways .m-go { margin-top: 0; }
body.petcare .pc-page .r-btn.m-big { height: 80px; padding: 0 40px; gap: 14px; font-size: 20px; }
.m-hold { margin-top: 28px; }
.m-how { margin: 120px auto 0; }
/* Desktop: how a request works on the left, the ask on the right (owner, 2026-11-19); a phone keeps the ask first. */
@media (min-width: 900px) {
  .m-ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "how ask"; align-items: center;
    column-gap: clamp(56px, 6.67vw, 96px); padding-left: max(48px, (100% - 1312px) / 2); padding-right: max(48px, (100% - 1312px) / 2); text-align: left; }
  .m-ask-in { grid-area: ask; }
  .m-how-in { grid-area: how; }
  .m-ask .m-ask-h { font-size: min(72px, 5vw); }
  .m-ask .m-ways { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; }
  .m-ask .m-how { margin: 0; font-size: min(40px, 3.4vw); }
  .m-ask .pl.is-short { margin: 36px 0 0; max-width: 520px; }
  .m-ask .pl.is-short.is-live .pl-nav { justify-content: flex-start; }
}
@media (min-width: 960px) { .m-ask { padding-inline: var(--pc-edge); } }   /* on the content edges (#201) */


/* Good to know: the rules in a narrow column, the questions set large as the spread's one big thing. */
/* The rules column is 480, not C's 344, so each rule reads in one or two full lines; the questions keep one line each.
   Its columns are set by width below: on the content edges from 960 px; under that, from the 164 line scaled to the width. */
.m-know { display: grid; align-items: start; padding: 160px 0 168px; background: var(--pc-latte); color: var(--pc-ink); }
.m-know-h { grid-column: 2 / 5; grid-row: 1; margin-bottom: 64px; }
.m-rules-in { grid-column: 2; grid-row: 2; }
.m-rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.m-qs { grid-column: 4; grid-row: 2; }
/* The questions open in place (owner, 2026-11-16): a question with its plus, its answer under it; "All questions"
   opens the rest in the same list and steps aside. */
.m-know { --m-line: color-mix(in srgb, var(--pc-ink) 18%, transparent); }
.m-acc { margin-top: 28px; border-top: 2px solid var(--m-line); }
.m-q { border-bottom: 2px solid var(--m-line); }
.m-q > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer;
  font: 700 26px/1.25 var(--font); color: var(--pc-ink); text-wrap: balance; }
.m-q > summary::-webkit-details-marker, .m-all > summary::-webkit-details-marker { display: none; }
.m-q > summary .icon { flex: none; box-sizing: border-box; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--pc-cream); }
.m-q:not([open]) .is-minus, .m-q[open] .is-plus { display: none; }
.m-a { padding: 0 60px 24px 0; }
.m-a p, .m-a ol { margin: 0; font: 400 19px/1.6 var(--font); color: var(--pc-ink); text-wrap: pretty; }
.m-a p + p { margin-top: 10px; }
.m-a ol { padding-left: 22px; display: grid; gap: 6px; }
.m-all { margin-top: 32px; }
.m-all > summary { list-style: none; width: fit-content; cursor: pointer; }
.m-all[open] { margin-top: 0; }
body.petcare .pc-page .m-all[open] > summary { display: none; }   /* outranks the .r-btn it wears */
.m-all .m-acc { margin-top: 0; border-top: 0; }
/* On Dorm and Care (owner, 2026-11-17, A+B): Home's band with the day's buttons, the soft one cream like the questions'
   plus so it shows on the latte; "All house rules" continues the list. */
.c-page .m-know { --r-solid: var(--pc-brown); --r-solid-ink: var(--pc-card); --r-solid-hover: var(--pc-ink); --r-soft: var(--pc-cream); --r-soft-ink: var(--pc-ink); }
.m-all > .m-rules { margin-top: 16px; }
/* Item 2: once "All house rules" opens, the focus moves on to its first rule (petcare.js). */
body.petcare .m-rules > li:focus-visible { outline: 3px solid var(--pc-brown); outline-offset: 4px; border-radius: 8px; }

/* The close: the house at night, the name large in its sky, in place of the shell's footer on this page. */
.m-close { background: var(--m-dark); color: var(--pc-cream); padding-top: 136px; }
.m-close-in { position: relative; z-index: 1; width: var(--m-col); margin: 0 auto; }
@media (min-width: 960px) { .m-close-in { width: auto; margin-inline: var(--pc-edge); } }   /* on the content edges (#201) */
/* Its facts under the name (owner, footer A, 2026-11-17): where and when, and the two networks, without labels; the year,
   Privacy and the language along one line. The pages are signs on the house's rooms. */
.m-close-info { margin-top: 56px; }
.m-close-cols { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 24px clamp(32px, 6.667vw, 96px);
  padding-top: 32px; border-top: 2px solid rgba(251, 242, 225, .22); }
.m-close-where { margin: 0; font-size: 18px; line-height: 1.7; }
.m-close-follow { display: grid; align-content: start; justify-items: start; }
.m-close a { color: var(--pc-cream); font: 700 18px/1.7 var(--font); text-decoration: none; }
.m-close-base { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; margin-top: 36px; }
.m-close-base a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
.m-close-c { margin: 0 auto 0 0; opacity: .75; }
/* The house sits 48 px under the year: its roof is 249 of the picture's 1536 units (16.2% of its width) from the top. */
.m-close-pic { margin-top: calc(48px - 16.2vw); }
.m-close-rooms { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.m-close .m-room { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--pc-cream); color: var(--pc-ink); font: 800 17px/1 var(--pc-round); white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(40, 25, 15, .7); transition: background-color var(--pc-hover-t) var(--pc-curve), transform var(--pc-press-t) var(--pc-press-e); }
.m-room.is-home { --x: 49.6%; --y: 40%; }
.m-room.is-stays { --x: 38.7%; --y: 68%; }
.m-room.is-care { --x: 71.5%; --y: 68%; }
.m-room.is-live { --x: 70%; --y: 88%; }
@media (hover: hover) { body.petcare .m-close .m-room:hover { background: var(--pc-card); text-decoration: none; } }


/* ---------- Round 21: live. Only the site's --pc-* timings. ---------- */

/* The rooms' sheets: the Stays sheet, from the right over a dimmed page. */
/* A sheet open without its script (not modal) sits over the header and the bottom bar too. */
body.petcare .b-sheet { z-index: 50; }
body.petcare .b-sheet { position: fixed; inset: 0 0 0 auto; width: min(520px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--pc-cream); color: var(--pc-ink); box-shadow: -2px 0 0 var(--pc-brown); overflow: auto; }
body.petcare .b-sheet::backdrop { background: rgba(74, 46, 30, .36); }
body.petcare .b-sheet-in { min-height: 100%; box-sizing: border-box; padding: 32px 40px 48px; }
body.petcare .b-sheet-x { float: right; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -12px 0 16px; border: 2px solid var(--pc-brown); border-radius: 50%;
  background: var(--pc-card); color: var(--pc-brown); cursor: pointer; }
body.petcare .b-sheet-h { margin: 0 0 20px; font: 800 32px/1.1 var(--pc-round); letter-spacing: -.01em; color: var(--pc-brown); text-wrap: balance; }
body.petcare .b-sheet .b-long + .b-long, body.petcare .b-sheet .b-long + .b-price { margin-top: 16px; }
body.petcare .b-sheet .b-price + .b-price { margin-top: 8px; }
body.petcare .pc-page .b-sheet .r-btn { margin-top: 28px; }

/* Focus rings stay visible on the dark grounds. */
body.petcare .r1.is-night :focus-visible, body.petcare:has(.r1.is-night) .pc-head :focus-visible { outline-color: var(--pc-cream); }
body.petcare .m-close :focus-visible { outline: 3px solid var(--pc-cream); outline-offset: 3px; border-radius: 8px; }

/* Feedback, as on the site: a press goes down like a stamp; hover nudges the arrow, deepens a solid, firms a soft edge. */
body.petcare .pc-page .r-btn:active, body.petcare .pc-page .r-btn.is-going { transform: translateY(2px) scale(.985); }
body.petcare .pc-time:active, body.petcare .b-sheet-x:active, body.petcare .m-close a:active { transform: translateY(2px); }
body.petcare .m-q > summary:focus-visible { outline: 3px solid var(--pc-brown); outline-offset: 4px; border-radius: 8px; }
@media (hover: hover) {
  body.petcare .pc-page .r-btn:hover .icon { transform: translateX(3px); }
  body.petcare .m-q > summary:hover .icon { background: var(--pc-card); }
  body.petcare .pc-page .r-btn.is-solid:hover { background: var(--r-solid-hover); }
  body.petcare .pc-page .r-btn.is-soft:hover, body.petcare .b-sheet-x:hover { box-shadow: inset 0 0 0 2px currentColor; }
  body.petcare .m-close a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  body.petcare .pc-page .r-btn, body.petcare .pc-time, body.petcare .b-sheet-x, body.petcare .m-close a {
    transition: transform var(--pc-press-t) var(--pc-press-e), background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve), box-shadow var(--pc-hover-t) var(--pc-curve); }
  body.petcare .pc-page .r-btn .icon { transition: transform var(--pc-hover-t) var(--pc-curve); }
  body.petcare .m-q > summary .icon { transition: background-color var(--pc-hover-t) var(--pc-curve); }
  /* An answer slides open where the browser can size to auto; elsewhere it simply appears. */
  .m-know, .m-first { interpolate-size: allow-keywords; }
  :is(.m-q, .a-det)::details-content { block-size: 0; overflow: clip; transition: block-size var(--pc-sheet-t) var(--pc-curve), content-visibility var(--pc-sheet-t) allow-discrete; }
  :is(.m-q, .a-det)[open]::details-content { block-size: auto; }

  /* Day and night: while the switch turns, the band's ground and the header follow the sky; the words, buttons and
     switch cross-fade around the turn's midpoint, where the line and the solid button swap (petcare-home.js). */
  body.petcare.r-turning:has(.r1) :is(.pc-head, .r1) { transition: background-color calc(var(--h-turn-t) * .75) var(--pc-curve) calc(var(--h-turn-t) * .1) !important; }
  body.petcare.r-turning:has(.r1) :is(.pc-head *, .r1-in *) {
    transition: background-color var(--pc-sheet-t) var(--pc-curve), color var(--pc-sheet-t) var(--pc-curve), border-color var(--pc-sheet-t) var(--pc-curve), opacity var(--pc-sheet-t) var(--pc-curve) !important;
    transition-delay: calc(var(--h-turn-t) / 2 - var(--pc-sheet-t) / 2) !important; }

  /* Arrival: heading, then text, then picture rise 16 px and fade in, 80 ms apart. Hidden only once the script adds a-on. */
  body.a-on .a-it { transition: opacity var(--pc-in-t) var(--pc-curve), translate var(--pc-in-t) var(--pc-curve); transition-delay: calc(var(--a-i, 0) * 4 * var(--pc-item-step)); }
  body.a-on .a-it:not(.is-in) { opacity: 0; translate: 0 16px; }

  body.petcare .b-sheet[open] { animation: b-sheet-in var(--pc-sheet-t) var(--pc-curve); }
  body.petcare .b-sheet[open]::backdrop { animation: pc-fade var(--pc-sheet-t) var(--pc-curve); }
  @keyframes b-sheet-in { from { translate: 100% 0; } }
}


/* ---------- 900 to 1439 px: the desktop composition, its type eased to the width. ---------- */
@media (max-width: 1439px) {
  .r1 .r-h1 { --r-h: 8.333vw; }
  .m-ask-h { font-size: min(120px, calc((100vw - 48px) / 7.6)); }
  .m-know { grid-template-columns: 11.39vw 33.33vw 4.44vw minmax(0, 1fr) 24px; }
  .m-q > summary { font-size: clamp(21px, 1.806vw, 26px); }
}
/* From 960 px Good to know stands on the content edges (#201); its rules, gap and questions share the width as at 1440. */
@media (min-width: 960px) { .m-know { grid-template-columns: var(--pc-edge) minmax(0, 480fr) minmax(0, 64fr) minmax(0, 640fr) var(--pc-edge); } }

/* Under 900 px the rooms stack into a tall, narrow house (the phone's; 600 to 899 px takes it too). */
@media (max-width: 899px) {
  /* The rooms: a tall, narrow house, one room to a floor. --k is the roof's pitch; the gable keeps the heading. */
  .b-svc { padding-top: 64px; }
  .b-svc .b-stage { --S: min(100vw, 672px); --o: 16px; --T: 36px; --k: .7; --hf: 48px;
    --P: calc(var(--k) * var(--S) / 2); --G: calc(var(--k) * (var(--S) / 2 - var(--o))); width: var(--S); }
  .b-roof { left: 0; width: var(--S); height: calc(var(--P) + var(--T));
    clip-path: polygon(0 var(--P), 50% 0, 100% var(--P), 100% 100%, 50% var(--T), 0 100%); }
  .b-gable { top: var(--T); left: var(--o); width: calc(var(--S) - 2 * var(--o)); height: var(--G); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
  .b-gable::before { clip-path: polygon(calc(16px / var(--k)) 100%, 50% 16px, calc(100% - 16px / var(--k)) 100%); }
  .b-gable .b-h2 { bottom: 20px; font-size: var(--hf); }
  .b-body { margin: calc(var(--T) + var(--G)) var(--o) 0; width: auto; padding: 12px; gap: 12px; }
  .b-floor, .b-floor.is-up, .b-floor.is-down { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .b-svc .b-room { display: flex; flex-direction: column-reverse; }
  .b-svc .b-room .b-words { position: static; width: auto; padding: 32px 32px 8px; }
  .b-svc .b-room.is-night .b-words { display: flex; flex-direction: column; }
  .b-room.is-night .b-pl-main { display: contents; }
  .b-room.is-night .b-pl-side { order: 1; padding-top: 12px; }
  .b-svc .b-pic { position: relative; margin-top: -24%; }
  .b-lawn::before { width: 160%; margin-left: -80%; height: 200px; top: -60px; }
  .b-lawn .b-stage { width: auto; height: 152px; }
  .b-demo { top: 72px; padding: 0 24px; }
}

/* 900 to 1439 px: the desktop house, fluid. --u is one 1440 px pixel at this width; geometry scales by it, type
   stops at 16 px (body) and 26 px (names), and a room whose words need more wall grows taller instead. */
@media (min-width: 900px) and (max-width: 1439px) {
  .b-svc { container-type: inline-size; padding-top: 8.889vw; }
  .b-svc .b-stage { --u: calc(100cqw / 1440); width: 100%; }
  .b-roof { left: calc(24 * var(--u)); width: calc(1392 * var(--u)); height: calc(356 * var(--u));
    clip-path: polygon(0 84.27%, 50% 0, 100% 84.27%, 100% 100%, 50% 15.73%, 0 100%); }
  .b-gable { top: calc(56 * var(--u)); left: calc(64 * var(--u)); width: calc(1312 * var(--u)); height: calc(283 * var(--u));
    clip-path: polygon(0 100%, 50% 0, 100% 100%); }
  .b-gable::before { clip-path: polygon(3.887% 100%, 50% 7.774%, 96.113% 100%); }
  .b-gable .b-h2 { bottom: calc(52 * var(--u)); font-size: calc(64 * var(--u)); }
  .b-body { margin: calc(339 * var(--u)) 0 0 calc(64 * var(--u)); width: calc(1312 * var(--u)); padding: calc(20 * var(--u)); gap: calc(16 * var(--u)); }
  .b-floor { gap: calc(16 * var(--u)); }
  .b-floor.is-up { grid-template-columns: 600fr 656fr; height: auto; min-height: calc(640 * var(--u)); }
  /* The two side rooms keep room for their stacked buttons. */
  .b-floor.is-down { grid-template-columns: minmax(250px, 340fr) 560fr minmax(250px, 340fr); height: auto; min-height: calc(700 * var(--u)); }
  /* Each room: its words in the flow (left and right margins --wl / --wr, in 1440 px), its picture on the floor below them. */
  .b-room.is-cats { --wl: 48; --wr: 160; }
  .b-room.is-night { --wl: 48; --wr: 48; }
  .b-room.is-door { --wl: 32; --wr: 32; }
  .b-room.is-living { --wl: 56; --wr: 104; }
  .b-room.is-grooming { --wl: 32; --wr: 32; }
  .b-svc .b-room .b-words { position: relative; top: auto; left: max(16px, calc(var(--wl) * var(--u)));
    width: calc(100% - max(16px, calc(var(--wl) * var(--u))) - max(16px, calc(var(--wr) * var(--u))));
    margin: calc(48 * var(--u)) 0 0; flex: 1 0 auto; }
  .b-svc .b-room { display: flex; flex-direction: column; }
  .b-svc .b-pic { position: relative; order: 1; margin-top: -24%; }
  .b-room.is-night .b-words { column-gap: calc(28 * var(--u)); }
  .b-room .b-name { font-size: max(26px, calc(40 * var(--u))); }
  .b-room :is(.b-short, .b-price) { font-size: max(16px, calc(20 * var(--u))); }
  body.petcare .pc-page .b-words .r-btn { padding: 0 16px; }

  /* The lawn, scaled from 1440. */
  .b-lawn::before { width: 131.94vw; margin-left: -65.97vw; height: 18.06vw; top: -4.861vw; }
  .b-lawn .b-stage { width: 100%; height: 13.89vw; }
  .b-demo { top: 6.111vw; }
}

/* Under 1100 px the switch and its line take a second row; the house moves down by that row. */
@media (max-width: 1099px) {
  .r1 { --r-t: calc(329px + 73px); }
  .r1-row { flex-wrap: wrap; justify-content: flex-start; gap: 16px 32px; }
}
.r-mode { white-space: nowrap; }

/* ---------- Under 900 px: the phone. ---------- */
@media (max-width: 899px) {
  /* The shell's phone header sets its logo link at 42 x 40: here, 44 px. */
  body.petcare:has(.r-scene) .pc-page .pc-brand { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }

  /* First screen: the headline in up to four lines, the buttons stacked, the switch, then the whole house. */
  .r1 { height: auto; display: flex; flex-direction: column; }
  .r1-in { padding: 28px 16px 0; }
  .r1 .r-h1 { --r-h: min(13.3vw, 88px); }
  .r-lead { margin-top: 20px; font-size: 20px; }
  .r1-row { flex-direction: column; align-items: stretch; gap: 20px; max-width: 520px; margin-top: 28px; }
  .r-acts { flex-direction: column; }
  body.petcare .pc-page .r-acts .r-btn { justify-content: center; }
  .r1-pics { position: relative; top: auto; }

  .b-svc { padding-top: 48px; }
  .b-name { font-size: 30px; }
  .b-short, .b-long, .b-price, .m-body { font-size: 18px; }
  .b-svc .b-room .b-words { padding: 24px 20px 8px; }

  .m-ask { padding: 72px 16px 80px; }
  .m-ask-h { font-size: min(11.3vw, 88px); }
  .m-ways { flex-direction: column; align-items: stretch; max-width: 520px; margin: 40px auto 0; gap: 12px; }
  body.petcare .pc-page .r-btn.m-big { height: 60px; padding: 0 20px; gap: 10px; font-size: 16px; justify-content: center; }
  .m-how { margin-top: 72px; }
  .m-name { font-size: 30px; }
  .m-display { font-size: 40px; }

  .m-know { display: block; padding: 72px max(16px, (100% - 640px) / 2) 80px; }
  .m-know-h { margin-bottom: 32px; }
  .m-qs { margin-top: 56px; }
  .m-acc { margin-top: 16px; }
  .m-q > summary { padding: 16px 0; font-size: 19px; gap: 14px; }
  .m-q > summary .icon { width: 34px; height: 34px; padding: 7px; }
  .m-a { padding-right: 0; }
  .m-a p, .m-a ol { font-size: 17px; }
  .m-all { margin-top: 28px; }

  .m-close { padding-top: 64px; }
  .m-close-name { font-size: min(12vw, 88px); }
  .m-close-info { margin-top: 28px; }
  .m-close-cols { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .m-close-cols a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .m-close-base { gap: 0 24px; margin-top: 28px; }
  .m-close-c { flex-basis: 100%; }
  .m-close-pic { margin-top: calc(28px - 16.2vw); }
  .m-close .m-room { min-height: 36px; padding: 0 10px; gap: 4px; font-size: 14px; }

  /* The sheets rise from the bottom. */
  body.petcare .b-sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: 85dvh; border-radius: 20px 20px 0 0; box-shadow: 0 -2px 0 var(--pc-brown); overscroll-behavior: contain; }
  body.petcare .b-sheet-in { min-height: 0; padding: 24px 16px 32px; }
  body.petcare .b-sheet-h { font-size: 28px; }
  body.petcare .f-sheet-top { margin: -24px -16px 0; padding: 16px 16px 10px; }
}
@media (max-width: 599px) {
  .b-svc .b-stage { --k: 1.15; --T: 28px; --hf: 32px; }
  .b-body { padding: 8px; gap: 8px; }
  .b-floor, .b-floor.is-up, .b-floor.is-down { gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  body.petcare .b-sheet[open] { animation-name: b-sheet-up; }
  @keyframes b-sheet-up { from { translate: 0 100%; } }
}


/* ---------- Round 22: the house comes alive. Codex's layered SVG (src/ui/house.mjs); each id is also a class hs-<id>. ---------- */
/* The SVG's own style attributes, here because the CSP allows none inline. */
.hs :is(.hs-tree-crown, .hs-door) { transform-box: fill-box; }
.hs .hs-curtain-l { transform-box: view-box; transform-origin: 518px 647px; }
.hs .hs-curtain-r { transform-box: view-box; transform-origin: 687px 647px; }
/* The pets' moving parts (PC69): each is its pet's silhouette seen through a cut, so it turns on its joint in the
   house's own units. */
.hs :is(.hs-shiba-tail, .hs-shiba-head, .hs-shiba-asleep-tail, .hs-fluffy-tail, .hs-fluffy-head, .hs-fluffy-asleep-tail,
  .hs-cat-dark-tail, .hs-cat-dark-tail-tip, .hs-cat-dark-asleep-tail, .hs-cat-cream-tail) { transform-box: view-box; }
.hs .hs-shiba-asleep-tail { transform-origin: 611px 880.8px; }
.hs .hs-fluffy-tail { transform-origin: 761px 872.7px; }
.hs .hs-fluffy-head { transform-origin: 676px 841px; }
.hs .hs-fluffy-asleep-tail { transform-origin: 702.5px 888px; }
.hs .hs-shiba-tail { transform-origin: 406px 830px; }
.hs .hs-shiba-head { transform-origin: 514px 863.5px; }
.hs .hs-cat-dark-tail-tip { transform-origin: 667.5px 516px; }
.hs .hs-cat-dark-tail { transform-origin: 668.6px 560px; }
.hs .hs-cat-dark-asleep-tail { transform-origin: 612px 580px; }
.hs .hs-cat-cream-tail { transform-origin: 1092px 552px; }

.hs { display: block; width: 100%; height: auto; overflow: hidden;
  --sky: var(--r-ground); --shade: #fbf2e1; --h-lit: #fee5ac; --h-wall: #ebae5f; }
.hs :is(.hs-moon, .hs-shiba-asleep, .hs-fluffy-asleep, .hs-cat-dark-asleep) { opacity: 0; }
.hs .hs-moon { translate: 0 40px; }
.r1.is-lamp .hs { --shade: var(--h-lit); }
/* Night: the sun under the lawn, the moon up, the walls gold, the windows and the lamp lit, the pets asleep. */
:is(.r1.is-night, .m-close, .wa-open, .ld-scene.is-night) .hs { --wall-cats: var(--h-wall); --wall-living: var(--h-wall); --wall-grooming: var(--h-wall); --glass: var(--h-lit); --shade: var(--h-lit);
  --cat-cream: #fbf2e1; }
:is(.m-close, .wa-open) .hs { --sky: var(--m-dark); }
:is(.r1.is-night, .m-close, .wa-open, .ld-scene.is-night) .hs :is(.hs-moon, .hs-shiba-asleep, .hs-fluffy-asleep, .hs-cat-dark-asleep) { opacity: 1; translate: none; }
:is(.r1.is-night, .m-close, .wa-open, .ld-scene.is-night) .hs :is(.hs-sun, .hs-shiba-awake, .hs-fluffy-awake, .hs-cat-dark-awake) { opacity: 0; }
:is(.r1.is-night, .m-close, .wa-open, .ld-scene.is-night) .hs .hs-sun { translate: 0 620px; }
:is(.r1.is-night, .m-close, .wa-open, .ld-scene.is-night) .hs .hs-sun circle { translate: -60px 0; }
/* Where a pet reacts from: its own pivot (the door and the crown carry theirs in the SVG; the pets' parts are above). */
.hs :is(.hs-shiba-awake, .hs-cat-dark-awake, .hs-cat-cream, .hs-ball, .hs-fluffy-awake, .hs-bed, .hs-shiba-asleep, .hs-fluffy-asleep, .hs-cat-dark-asleep) {
  transform-box: fill-box; transform-origin: 50% 100%; }
.hs .hs-shiba-awake { transform-origin: 40% 100%; }
/* While a tap's scene plays a piece (is-scene, petcare-home.js), it tilts and flips on the middle of its feet, in the house's
   own units (round 23 B). At rest the swap of pivot shows nothing. */
.hs .is-scene:is(.hs-shiba-awake, .hs-fluffy-awake, .hs-cat-dark-awake, .hs-cat-cream, .hs-ball, .hs-bowl, .hs-shiba-asleep, .hs-fluffy-asleep, .hs-cat-dark-asleep) { transform-box: view-box; }
.hs .hs-shiba-awake.is-scene { transform-origin: 480.5px 923px; }
.hs .hs-fluffy-awake.is-scene { transform-origin: 697px 889px; }
.hs .hs-cat-dark-awake.is-scene { transform-origin: 615px 584px; }
.hs .hs-cat-cream.is-scene { transform-origin: 1033.5px 561px; }
.hs .hs-ball.is-scene { transform-origin: 573px 928px; }
.hs .hs-bowl.is-scene { transform-origin: 838px 922px; }
.hs .hs-shiba-asleep.is-scene { transform-origin: 642.5px 903px; }
.hs .hs-fluffy-asleep.is-scene { transform-origin: 747px 897px; }
.hs .hs-cat-dark-asleep.is-scene { transform-origin: 629.5px 590px; }

/* Home's loading screen (owner's pick, "the house builds itself"; petcare-loader.js drives it): on the visit's first
   page, a copy of the hero's house builds itself on a plain screen, then glides onto the page's own. html.ld covers the
   page from the first paint; html.ld-on hands the cover over to the scene's own ground. Above everything on the page. */
html.ld body.petcare::before { content: ""; position: fixed; inset: 0; z-index: 89; background: var(--r-ground, var(--pc-cream)); }
html.ld-on body.petcare::before { content: none; }
html.ld .r1-pics { visibility: hidden; }   /* the page's own house waits under the cover until the copy lands on it */
.ld-scene { position: fixed; inset: 0; z-index: 90; overflow: hidden; display: grid; place-content: center; justify-items: center;
  row-gap: clamp(10px, 2.4vh, 24px); touch-action: none; }
.ld-bg { position: absolute; inset: 0; background: var(--r-ground); }
/* The drawing is 1536 wide; its house, tree and lawn fill y 249 to 1024. The house takes about 65% of the height, or
   the whole width on a phone (wider cut the tree and the sun at the screen's edges; the ground's ends fade anyway). */
.ld-art { position: relative; width: min(100vw, 142.7vh); aspect-ratio: 1536 / 775; }
.ld-art > .hs { position: absolute; left: 0; bottom: 0; transform-origin: 0 0; }
.ld-scene .hs-sky { display: none; }       /* the copy is see-through, so nothing wipes across the page as it glides */
.ld-name { position: relative; margin: 0; font: 800 clamp(20px, 3.2vh, 30px)/1.15 var(--pc-round); color: var(--r-ink); white-space: nowrap; }
/* The two kinds of part that grow in place, about their own box (SVG transforms otherwise pivot on the view box). */
.ld-house .hs-tree { transform-box: fill-box; transform-origin: 50% 100%; }
.ld-house :is(.hs-win-cats > g, .hs-win-living) { transform-box: fill-box; transform-origin: 50% 50%; }

/* What answers: a quiet button over each pet, the door and the lamp, 44 px at least; its place is in the SVG's units.
   (--x, --y) is its middle, or with --ax / --ay the edge it grows away from, so that where two pets lie close (the
   lamp over the shiba; by night the shiba, the fluffy dog and the door) their buttons never overlap at any width. */
.h-hits { position: absolute; inset: 0; }
.h-hit { position: absolute; left: calc(var(--x) / 15.36 * 1%); top: calc(var(--y) / 10.24 * 1%);
  width: max(44px, calc(var(--w) / 15.36 * 1%)); height: max(44px, calc(var(--h) / 10.24 * 1%)); transform: translate(calc(var(--ax, .5) * -100%), calc(var(--ay, .5) * -100%));
  margin: 0; padding: 0; border: 0; border-radius: 24px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.h-hit[hidden] { display: none; }
.h-hit.is-shiba { --x: 480; --y: 857; --w: 190; --h: 140; }
.h-hit.is-fluffy { --x: 697; --y: 839; --w: 162; --h: 104; }
.h-hit.is-cat-dark { --x: 634; --y: 504; --w: 120; --h: 164; }
.h-hit.is-cat-cream { --x: 1033; --y: 510; --w: 134; --h: 108; }
.h-hit.is-door { --x: 898; --y: 797; --w: 70; --h: 313; }
.h-hit.is-lamp { --x: 362; --y: 745; --ay: 1; --w: 90; --h: 100; }
:is(.r1.is-night, .m-close-pic) .h-hit.is-shiba { --x: 692; --ax: 1; --y: 879; --w: 104; --h: 60; }
:is(.r1.is-night, .m-close-pic) .h-hit.is-fluffy { --x: 692; --ax: 0; --y: 874; --w: 110; --h: 56; }
:is(.r1.is-night, .m-close-pic) .h-hit.is-door { --x: 882; --ax: 0; --w: 52; }
:is(.r1.is-night, .m-close-pic) .h-hit.is-cat-dark { --x: 630; --y: 545; --w: 136; --h: 96; }
.m-close-pic { position: relative; }
body.petcare .r1.is-night .h-hit:focus-visible { outline-color: var(--pc-cream); }

body.petcare .b-sheet { --x-gap: 16px; }
body.petcare .b-sheet-x { position: absolute; top: var(--x-gap); right: var(--x-gap); z-index: 1; float: none; margin: 0; }
body.petcare .b-sheet-in { min-height: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* The turn, day to night (the transitions of the night state) and back (those of the day state). Times are parts of
     --h-turn-t. Pressing again mid-way reverses each from where it is. Only while the switch turns, never on load. */
  body.r-turning .r1 .hs [fill^="var(--sky"], body.r-turning .r1 .hs [fill^="var(--wall"], body.r-turning .r1 .hs [fill^="var(--cat-cream"] {
    transition: fill calc(var(--h-turn-t) * .75) var(--pc-curve) calc(var(--h-turn-t) * .1); }
  body.r-turning .r1.is-night .hs .hs-sun { transition: translate calc(var(--h-turn-t) * .6) var(--pc-out-e), opacity calc(var(--h-turn-t) * .2) var(--pc-curve) calc(var(--h-turn-t) * .4); }
  body.r-turning .r1.is-night .hs .hs-sun circle { transition: translate calc(var(--h-turn-t) * .6) var(--pc-in-e); }
  body.r-turning .r1:not(.is-night) .hs .hs-sun { transition: translate calc(var(--h-turn-t) * .6) var(--pc-in-e) calc(var(--h-turn-t) * .4), opacity calc(var(--h-turn-t) * .2) var(--pc-curve) calc(var(--h-turn-t) * .4); }
  body.r-turning .r1:not(.is-night) .hs .hs-sun circle { transition: translate calc(var(--h-turn-t) * .6) var(--pc-out-e) calc(var(--h-turn-t) * .4); }
  body.r-turning .r1.is-night .hs .hs-moon { transition: translate calc(var(--h-turn-t) * .45) var(--pc-curve) calc(var(--h-turn-t) * .55), opacity calc(var(--h-turn-t) * .45) var(--pc-curve) calc(var(--h-turn-t) * .55); }
  body.r-turning .r1:not(.is-night) .hs .hs-moon { transition: translate calc(var(--h-turn-t) * .35) var(--pc-out-e), opacity calc(var(--h-turn-t) * .35) var(--pc-curve); }
  body.r-turning .r1 .hs :is(.hs-shiba-awake, .hs-fluffy-awake, .hs-cat-dark-awake) { transition: opacity calc(var(--h-turn-t) * .3) var(--pc-curve) calc(var(--h-turn-t) * .35); }
  body.r-turning .r1 .hs :is(.hs-shiba-asleep, .hs-fluffy-asleep, .hs-cat-dark-asleep) { transition: opacity calc(var(--h-turn-t) * .3) var(--pc-curve) calc(var(--h-turn-t) * .4); }
  body.r-turning .r1.is-night .hs .hs-win-cats [fill^="var(--glass"] { transition: fill calc(var(--h-turn-t) * .15) var(--pc-curve) calc(var(--h-turn-t) * .62); }
  body.r-turning .r1.is-night .hs .hs-win-living [fill^="var(--glass"] { transition: fill calc(var(--h-turn-t) * .15) var(--pc-curve) calc(var(--h-turn-t) * .74); }
  body.r-turning .r1.is-night .hs [fill^="var(--shade"] { transition: fill calc(var(--h-turn-t) * .15) var(--pc-curve) calc(var(--h-turn-t) * .85); }
  body.r-turning .r1:not(.is-night) .hs [fill^="var(--shade"] { transition: fill calc(var(--h-turn-t) * .15) var(--pc-curve); }
  body.r-turning .r1:not(.is-night) .hs .hs-win-living [fill^="var(--glass"] { transition: fill calc(var(--h-turn-t) * .15) var(--pc-curve) calc(var(--h-turn-t) * .1); }
  body.r-turning .r1:not(.is-night) .hs .hs-win-cats [fill^="var(--glass"] { transition: fill calc(var(--h-turn-t) * .15) var(--pc-curve) calc(var(--h-turn-t) * .2); }
  /* The lamp, by day, on and off. */
  .r1 .hs [fill^="var(--shade"] { transition: fill var(--pc-hover-t) var(--pc-curve); }

  /* By night, while the house is in view (is-live, petcare-home.js; Porch's, petcare-house.js), the sleeping pets breathe,
     each in its own time. */
  :is(.r1.is-night, .wa-open, .m-close) .hs.is-live :is(.hs-shiba-asleep, .hs-fluffy-asleep, .hs-cat-dark-asleep) {
    animation: h-breathe var(--h-breath-t) ease-in-out infinite; }
  :is(.r1.is-night, .wa-open, .m-close) .hs.is-live .hs-fluffy-asleep { animation-delay: calc(var(--h-breath-t) * -.4); }
  :is(.r1.is-night, .wa-open, .m-close) .hs.is-live .hs-cat-dark-asleep { animation-delay: calc(var(--h-breath-t) * -.7); }
  @keyframes h-breathe { 45% { scale: 1.015 1.04; } }

  /* Layered scroll: as the first screen leaves, the sky lags most, the tree less, the house a little; lawn and fence
     keep pace. 24 px apart at most. */
  @supports (animation-timeline: scroll()) {
    .r1 .hs :is(.hs-far, .hs-tree, .hs-home) { animation: h-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .r1 .hs .hs-far { --h-d: 24px; }
    .r1 .hs .hs-tree { --h-d: 12px; }
    .r1 .hs .hs-home { --h-d: 8px; }
    @keyframes h-drift { to { transform: translateY(var(--h-d)); } }
  }

  /* The close: as the night house arrives, its windows light one after another, then the lamp; the moon rises a little. */
  body.a-on .m-close-pic:not(.is-in) .hs-moon { translate: 0 24px; }
  body.a-on .m-close-pic:not(.is-in) { --glass: var(--m-dark); --shade: #fbf2e1; }
  body.a-on .m-close-pic .hs-moon { transition: translate var(--pc-sheet-t) var(--pc-curve) calc(var(--pc-sheet-t) * 2); }
  body.a-on .m-close-pic .hs-win-cats [fill^="var(--glass"] { transition: fill var(--pc-in-t) var(--pc-curve) var(--pc-sheet-t); }
  body.a-on .m-close-pic .hs-win-living [fill^="var(--glass"] { transition: fill var(--pc-in-t) var(--pc-curve) calc(var(--pc-sheet-t) * 2); }
  body.a-on .m-close-pic [fill^="var(--shade"] { transition: fill var(--pc-in-t) var(--pc-curve) calc(var(--pc-sheet-t) * 3); }

  /* The roof settles onto the house before the rooms arrive. */
  body.a-on .b-roof.a-it:not(.is-in) { translate: 0 -24px; }


  @keyframes pc-vt-out { to { opacity: 0; } }
  @keyframes pc-vt-in { from { opacity: 0; } }
}

/* The port's own (PC53): Draft marks, the questions sheet, the sheets' close as a link, and the sheets
   by their address without the script. */
.h-draft b { font-weight: 800; }
.b-name .h-draft, body.petcare .b-sheet-h .h-draft { display: block; margin-bottom: 6px; font: 700 16px/1.4 var(--font); letter-spacing: 0; color: var(--pc-warm); }
body.petcare .b-sheet-x { text-decoration: none; }
/* A sheet's heading and close stay at its top as its lines pass under them. */
body.petcare .f-sheet-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: -32px -40px 0; padding: 24px 24px 12px 40px; background: var(--pc-cream); }
body.petcare .f-sheet .f-sheet-top .b-sheet-h { margin: 0; }
body.petcare .f-sheet .f-sheet-top .b-sheet-x { position: static; flex: none; margin: 0; }
body.petcare .f-sheet-ol { margin: 0 0 10px; font: 400 18px/1.55 var(--font); color: var(--pc-ink); text-wrap: pretty; }
body.petcare .f-sheet-ol { padding-left: 22px; display: grid; gap: 8px; }
body.petcare:not(.pc-js) .b-sheet:is(:target, :has(:target)) { display: block; z-index: 60; }

/* ==========================================================================
   Coco's Dorm (the page at /stays) in the house look (PC42 round 27, the lab's stays-house; ported in PC53).
   Desktop is the still, kept from 1440 down to 900 px by one design pixel (--s: 1 px at 1440 and smaller below,
   from the page's width); under 900 px the phone's own composition. Home's finish: no rules, no outlined boxes,
   words on plain wall or paper. Its own prefixes: c- the house and the form, m- its opening and first-stay band,
   a- the path, f- the parts the script fills. Motion is petcare-house.js and app.js (the send), on the site's --pc-*
   and Home's --h-* timings; Reduce Motion stills all of it. The close, the sheets and the questions are Home's.
   ========================================================================== */
@property --s { syntax: '<length>'; inherits: true; initial-value: 1px; }

body.petcare:has(.c-page) .pc-page { --sky: #fbf0df; --frame: #fffaf0; --wall: #fbecd7; --lit: #dca660; --mound: #d9a55d;
  --shade: rgba(116, 83, 62, .42); --deep: color-mix(in srgb, var(--pc-ink) 92%, #000); --m-dark: #5f3c2d; --m-wall: #dca560;
  --m-col: min(1112px, calc(100% - 48px)); --board: #f3d7aa; --board-2: #efcf9c; }
body.petcare:has(.c-page) main.pc-plain { max-width: none; margin: 0; padding: 0; container-type: inline-size; }
.c-page { --s: min(1px, calc(100cqw / 1440)); color: var(--pc-ink); }
/* The house's walls run up behind the header: sky, the cream frame, the bedroom's wall, the frame, sky. */
body.petcare:has(.c-page) .pc-head { background: linear-gradient(90deg, var(--sky) 0 max(4.444%, 50% - 656px), var(--frame) 0 max(5.833%, 50% - 636px),
  var(--m-wall) 0 min(94.167%, 50% + 636px), var(--frame) 0 min(95.556%, 50% + 656px), var(--sky) 0); }
/* From 960 px the house stands on the content edges (#201 A), and so do its walls behind the header; its frame is 20 design px (--s, here as % of the page). */
@media (min-width: 960px) {
  body.petcare:has(.c-page) .pc-head { --pc-frame: min(20px, 1.389%); background: linear-gradient(90deg, var(--sky) 0 var(--pc-edge), var(--frame) 0 calc(var(--pc-edge) + var(--pc-frame)),
    var(--m-wall) 0 calc(100% - var(--pc-edge) - var(--pc-frame)), var(--frame) 0 calc(100% - var(--pc-edge)), var(--sky) 0); }
}
.c-props { position: absolute; width: 0; height: 0; overflow: hidden; }
.c-form { display: contents; }

/* Type: the first screen's 120 / 22, then 64 headings, 40 names, 20 body, 16 quiet lines, each eased with the width. */
.c-h1 { margin: 0; font: 800 calc(120 * var(--s))/.95 var(--pc-round); letter-spacing: -.02em; }
/* Care's heading is RF-C1, one approved line: balanced, it breaks "Request daycare / or grooming" as the lab drew it. */
.is-care .c-h1 { text-wrap: balance; }
/* A long menu name: the title steps down (titleFit in src/ui/petcare.mjs) so it keeps one line beside the sentence. */
@media (min-width: 900px) {
  .c-h1.is-fit-96 { font-size: calc(96 * var(--s)); }
  .c-h1.is-fit-76 { font-size: calc(76 * var(--s)); }
  .c-h1.is-fit-60 { font-size: calc(60 * var(--s)); }
  .c-h1.is-fit-48 { font-size: calc(48 * var(--s)); }
}
@media (max-width: 899px) {
  .c-h1.is-fit-96 { font-size: min(15vw, 80px); }
  .c-h1.is-fit-76 { font-size: min(12vw, 64px); }
  :is(.c-h1.is-fit-60, .c-h1.is-fit-48) { font-size: min(10vw, 52px); }
}
.c-page .m-huge { font-size: calc(120 * var(--s)); }
.c-h2 { margin: 0; font: 800 calc(64 * var(--s))/1.02 var(--pc-round); letter-spacing: -.015em; text-wrap: balance; }
.c-name { display: block; margin: 0; font: 800 max(28px, calc(40 * var(--s)))/1.08 var(--pc-round); letter-spacing: -.01em; text-wrap: balance; }
.c-body { display: block; margin: 0; font: 400 max(16px, calc(20 * var(--s)))/1.5 var(--font); text-wrap: pretty; }
.c-body b, .c-strong { font-weight: 700; }
.c-small { display: block; margin: 0; font: 400 16px/1.5 var(--font); text-wrap: pretty; }
.c-label { display: block; margin: 0; padding: 0; font: 700 16px/1.4 var(--font); white-space: nowrap; }
body.petcare .c-page .c-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: 700 max(18px, calc(20 * var(--s)))/1.5 var(--font);
  color: var(--pc-ink); text-decoration: none; cursor: pointer; white-space: nowrap; }

/* Buttons and fields: Home's pills; fields are cream pills on the wall, no outline. */
body.petcare .c-page .c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 800 16px/1 var(--pc-round); text-decoration: none; white-space: nowrap; cursor: pointer; }
body.petcare .c-page .c-btn.is-solid { background: var(--pc-brown); color: var(--frame); }
body.petcare .c-page .c-btn.is-soft { background: var(--frame); color: var(--pc-ink); }
body.petcare .c-page .c-btn.is-big { height: 80px; padding: 0 max(24px, calc(40 * var(--s))); gap: 14px; font-size: max(18px, calc(20 * var(--s))); }
.c-page :is(.c-input, .rq-input) { display: block; box-sizing: border-box; width: 100%; height: 64px; min-height: 0; padding: 0 max(16px, calc(24 * var(--s))); border: 0; border-radius: 999px; background: var(--frame);
  color: var(--pc-ink); font: 600 max(17px, calc(20 * var(--s)))/1 var(--font); -webkit-appearance: none; appearance: none; }
.c-page .c-input::-webkit-calendar-picker-indicator { opacity: .75; }
.c-page select.c-input, .c-page select.rq-input { background-image: none; }
.c-page .c-area { height: 136px; padding: 20px max(16px, calc(24 * var(--s))); border-radius: 28px; line-height: 1.5; resize: none; }
.c-page :is(.c-input, .rq-input)[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rq-alert); }
.c-field, .c-page .rq-f-option { display: grid; gap: 10px; align-content: start; min-width: 0; }
.c-page .rq-f-option .rq-label { font: 700 16px/1.4 var(--font); white-space: nowrap; color: inherit; margin: 0; }
body.petcare .c-page :is(.rq-f-kind, .rq-f-option) { grid-area: auto; }
.c-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.c-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-seg { display: inline-flex; width: fit-content; padding: 5px; border-radius: 999px; background: var(--frame); }
.c-seg label { display: grid; place-items: center; height: 54px; min-width: 104px; padding: 0 24px; box-sizing: border-box; border-radius: 999px; font: 800 16px/1 var(--pc-round); cursor: pointer; }
.c-seg label:has(:checked) { background: var(--pc-orange); }
.c-seg label:has(:focus-visible), .c-choice:has(:focus-visible) .c-box { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
.c-box { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--frame); }
.c-tick { width: 24px; height: 24px; fill: none; stroke: var(--pc-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.c-choice :checked + .c-box { background: var(--pc-orange); }
.c-choice :checked + .c-box .c-tick { opacity: 1; }
.c-round { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--frame); color: var(--pc-ink); cursor: pointer; }
.c-round:disabled { opacity: .45; cursor: default; }
/* The server's answers: a field it refused says why under it; a refused send says so at the top of the request. */
body.petcare .c-page .rq-err { margin: 0; }
body.petcare .c-page .rq-notice { margin: 0 0 calc(32 * var(--s)); background: var(--frame); border-radius: 24px; }
.c-err-room { --w: var(--wall); padding: 16px calc(48 * var(--s)); }

/* ---------- The house: a cream frame, floors of rooms, each room's words straight on its wall. ---------- */
.c-top { background: var(--sky); }
.c-house { position: relative; z-index: 2; width: calc(1312 * var(--s)); margin: 0 auto; box-sizing: border-box; padding: 0 calc(20 * var(--s)) calc(20 * var(--s));
  background: var(--frame); display: grid; gap: calc(16 * var(--s)); box-shadow: 0 30px 50px -30px var(--shade); }
/* From 960 px the house stands on the content edges (#201 A): words inside it can't reach them, so the house does. */
@media (min-width: 960px) { .c-house { width: auto; margin-inline: var(--pc-edge); } }
.c-floor { display: grid; gap: calc(16 * var(--s)); min-width: 0; margin: 0; padding: 0; border: 0; }
.c-room { position: relative; overflow: hidden; background: var(--w, var(--wall)); color: var(--pc-ink); }
/* The rooms with a picture stand on the picture's floor, so no line of wall shows under it at any width. */
:is(.m-open, .c-pick) { background-image: linear-gradient(transparent calc(100% - 12px), #fbf2e1 0); }
.c-none { padding: calc(44 * var(--s)) calc(48 * var(--s)); }

/* 1A. The opening: the title and its sentence on the bedroom's plain wall, the bedroom by night (Codex's bedroom.svg). */
.m-open { --w: transparent; --wall: var(--m-wall); background-image: linear-gradient(var(--m-wall) calc(100% - 12px), #fbf2e1 0); }
.c-page.is-none .m-open { min-height: calc(320 * var(--s)); }
.m-open-in { position: absolute; z-index: 3; left: 0; right: 0; top: 0; width: calc(1112 * var(--s)); margin: 0 auto; padding-top: calc(40 * var(--s));
  display: grid; grid-template-columns: auto minmax(260px, 1fr); align-items: end; gap: 24px; color: var(--deep); pointer-events: none; }
/* From 960 px (#201): the words keep the house's room margin, 48 design px in from the wall, as "Nothing to request right
   now" below (A); the heading 40 px under the header, as on every hero, and Dorm's title level with its sentence (B). */
@media (min-width: 960px) {
  .m-open-in { width: auto; margin: 0 calc(48 * var(--s)); padding-top: 40px; }
  .is-stays .m-open-in { align-items: start; }
}
/* The title on one line while it fits beside the sentence (the menu's name sets its length); the sentence takes the rest. */
.m-lead { justify-self: end; max-width: 456px; margin: 0 0 8px; font: 400 22px/1.4 var(--font); text-wrap: pretty; }
/* With nothing to book (#201 C): the wall fits its words, 40 px above and below them, over its 12 px cream floor line. */
@media (min-width: 960px) {
  .c-page.is-none .m-open { min-height: 0; padding-bottom: 12px; }
  .c-page.is-none .m-open-in { position: relative; padding-bottom: 40px; }
  .c-page.is-none .m-lead { margin-bottom: 0; }
}
/* Dorm's title beside its sentence: the sentence's column and size scale with the opening, as the title does, so
   "Coco's Dorm" keeps one line down to 900 px; a fixed 260 px column broke it in two over the lamp below 1083 px. */
@media (min-width: 900px) {
  .is-stays .m-open-in { grid-template-columns: auto minmax(calc(260 * var(--s)), 1fr); }
  .is-stays .m-lead { max-width: calc(456 * var(--s)); font-size: max(16px, calc(22 * var(--s))); }
}
.m-open-pic, .m-art { position: relative; }
.m-bed, .c-art { display: block; width: 100%; height: auto; overflow: hidden; }
/* The pictures' own style attributes (transform-box), here because the CSP allows none inline; each part keeps its pivot. */
:is(.m-bed, .c-art) [transform-origin] { transform-box: fill-box; }

/* What answers a tap: a quiet button over each pet, 44 px at least, its middle and size in the picture's units. */
:is(.c-page, .b-svc) .h-hit { left: calc(var(--x) / var(--W) * 100%); top: calc(var(--y) / var(--H) * 100%); width: max(44px, calc(var(--w) / var(--W) * 100%));
  height: max(44px, calc(var(--h) / var(--H) * 100%)); transform: none; translate: -50% -50%; margin: 0; padding: 0; border: 0; border-radius: 24px; background: none;
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
:is(.c-page, .b-svc) .h-hit:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
.m-art .h-hits { --W: 1440; --H: 758; }
:is(.c-pic-in, .b-pic) .h-hits { --W: 440; --H: 340; }
.b-pic:is(.is-pickup, .is-daycare, .is-bath) .h-hits { --W: 320; }
.b-pic .h-hit.is-pickup-shiba { --x: 82; --y: 229; --w: 80; --h: 60; }
.b-pic .h-hit.is-pickup-door { --x: 266; --y: 226; --w: 64; --h: 150; }
.m-art .h-hit.is-shiba { --x: 840; --y: 596; --w: 246; --h: 120; }
.m-art .h-hit.is-fluffy { --x: 1058; --y: 614; --w: 192; --h: 84; }
:is(.c-pic, .b-pic) .h-hit.is-std-shiba { --x: 111; --y: 257; --w: 142; --h: 76; }
:is(.c-pic, .b-pic) .h-hit.is-std-fluffy { --x: 322; --y: 264; --w: 150; --h: 66; }
.c-pic .h-hit.is-one-shiba { --x: 259; --y: 251; --w: 97; --h: 102; }
:is(.c-pic, .b-pic) .h-hit.is-cat-dark { --x: 325; --y: 180; --w: 70; --h: 80; }
:is(.c-pic, .b-pic) .h-hit.is-cat-cream { --x: 292; --y: 258; --w: 96; --h: 50; }

/* 2C. The rooms to choose from (a real radio group); the chosen one is lit, wall and picture. Up to three a row. */
.c-rooms { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.c-rooms:has(> .c-pick:nth-of-type(4)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-pick { display: flex; flex-direction: column; min-height: calc(600 * var(--s)); cursor: pointer; }
.c-pick.is-standard, .c-pick.is-cats { --w: #f7e4ca; }
.c-pick.is-one { --w: #fbecd7; }
.c-pick:has(> .c-pick-l :checked) { --w: var(--lit); color: var(--deep); }
.c-pick:has(> .c-pick-l :focus-visible) { outline: 3px solid var(--pc-ink); outline-offset: -6px; }
.c-pick-l { display: block; cursor: pointer; }
/* A tap shows itself by the room lighting (and the site's press), not the browser's blue flash. */
.c-page :is(label, button, a, [role="slider"]) { -webkit-tap-highlight-color: transparent; }
.c-pick-l::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.c-words { display: grid; gap: 12px; padding: calc(44 * var(--s)) calc(40 * var(--s)) 24px calc(44 * var(--s)); }
.c-pic { position: relative; z-index: 2; margin-top: auto; pointer-events: none; }
.c-pic-in { position: relative; }
.c-art { --wall: var(--w); }

/* The hall under the rooms: its floorboards are the weight ruler; each dog on it is a slider (petcare-house.js). */
.c-hall { --w: var(--wall); padding: calc(44 * var(--s)) calc(48 * var(--s)) calc(36 * var(--s)); }
.c-hall-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.c-hall-words { display: grid; gap: 8px; flex: 1 1 auto; min-width: 0; }
.c-help { flex: 0 1 auto; max-width: 24em; }
/* The readout wraps when a room's line is long (two coats), and an unseen stack of every line the room can show
   (petcare-house.js) shares its grid cell, so the ruler below never moves while a pet is dragged. */
.c-read { text-wrap: balance; overflow-wrap: anywhere; }   /* a very long pet name wraps inside its piece */
:lang(zh) .c-read { word-break: keep-all; }   /* "短毛" stays whole */
.f-seg { display: inline-block; max-width: 100%; }   /* a piece of the readout moves to the next line whole */
.f-read, .f-read-max { grid-row: 2; grid-column: 1; }
.f-read-max { display: grid; visibility: hidden; }
.f-read-max > span { grid-area: 1 / 1; }
.c-help { margin-top: calc(52 * var(--s)); text-align: right; }
.c-help[hidden] { display: block; visibility: hidden; }
.f-ruler-box { position: relative; display: grid; margin-top: calc(119 * var(--s)); }
.f-ruler-box[data-n="2"] { margin-top: calc(119 * var(--s) + 40px); }
/* One board for each price band, the open-ended last one wider; the weights under their right edges. */
.c-boards, .c-ticks { list-style: none; margin: 0; padding: 0; display: flex; gap: calc(8 * var(--s)); }
.c-boards > li, .c-ticks > li { flex: 1 1 0; min-width: 0; }
.c-boards > li.is-open, .c-ticks > li.is-open { flex-grow: 1.5; }
.c-boards, .c-board-one { grid-area: 1 / 1; }
.c-boards li, .c-board-one { display: grid; place-items: center; height: calc(96 * var(--s)); margin: 0; background: var(--board); font: 800 calc(40 * var(--s))/1 var(--pc-round); white-space: nowrap; }
.c-boards li:nth-child(even) { background: var(--board-2); }
.c-boards li.is-hers { background: var(--pc-orange); }
/* The boards' prices all show while a dog is held or travelling, or its handle has keyboard focus (the owner's pick B,
   2026-11-18); once it stops, the board it stands on keeps its price (owner, 2026-11-18). Without the page script
   there is no dog to hold, so they always show. Screen readers still read them. */
.f-ruler-box:has(.f-pin:not(.is-off)):not(:has(.f-pin.is-drag, .f-pin.is-slide, .f-pin:not(.is-ptr) .f-pin-h:focus-visible)) .c-boards li:not(.is-here) { color: transparent; }
.c-ticks { grid-area: 2 / 1; margin-top: 10px; }
.c-ticks li { display: flex; justify-content: flex-end; font: 700 16px/1.4 var(--font); }
.c-ticks li > span { transform: translateX(calc(50% + 4px)); }
.c-ticks li.is-open { justify-content: center; white-space: nowrap; }
.c-ticks li.is-open > span { transform: none; }
.c-demo { margin-top: 16px; color: var(--deep); }
/* Two faces in one place, so the hall never changes height: the boards (a price by weight), or one board. */
.f-ruler-box > :is(.c-boards, .c-ticks, .f-pins, .c-board-one) { visibility: hidden; opacity: 0; }
.f-ruler-box[data-face="weight"] > :is(.c-boards, .c-ticks, .f-pins), .f-ruler-box[data-face="one"] > .f-ruler-one { visibility: visible; opacity: 1; }
/* One pin per dog: anchored at its weight on the boards' top edge, the dog sitting on the board, kept inside the ruler. */
.f-pins { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
/* The bar takes clicks, taps and sideways drags (petcare-house.js); up-and-down still scrolls the page, pinch still zooms. */
.f-ruler-box[data-face="weight"] { cursor: pointer; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.f-pin { position: absolute; left: var(--x, 0px); top: 0; width: 0; height: 0; }
.f-pin-h { position: absolute; bottom: var(--lift, 0px); left: var(--sx, -40px); width: max-content; display: flex; flex-direction: column; align-items: center; pointer-events: auto;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 12px; }
.f-pin:not(.is-ptr) .f-pin-h:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 3px; }
.f-pin.is-ptr .f-pin-h:focus-visible { outline: none; }   /* moved by a finger or mouse: no ring, not even the browser's */   /* around the figure: the handle is as wide as it (max-content), not 1 px */
.f-pin.is-drag .f-pin-h { cursor: grabbing; }
.f-pin-dog { display: grid; height: max(64px, calc(96 * var(--s))); place-items: end center; }
.f-pin-dog svg { height: 100%; width: auto; color: var(--pc-ink); transform: scale(var(--sc, 1)); transform-origin: 50% 100%; }
.f-pin-l { display: none; order: -1; margin-bottom: 6px; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: var(--pc-brown); color: var(--frame); font: 800 16px/1.2 var(--pc-round); }
.f-ruler-box[data-n="2"] .f-pin-l { display: block; }
.f-pin.is-rest .f-pin-dog { opacity: .55; }
.f-pin.is-rest .f-pin-l, .f-pin.is-off { visibility: hidden; }
.f-pin.is-stacked .f-pin-dog { display: none; }

/* 3C. Your request: the dates and who's coming share one room; the promise and the notes the next. */
.c-req { padding: calc(44 * var(--s)) calc(48 * var(--s)) calc(56 * var(--s)); }
.c-req-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(64 * var(--s)); margin-top: calc(40 * var(--s)); }
/* The 24px between the parts is a margin, not a grid gap: Safari leaves the floated legend out of the grid, so no gap
   came after it there and "Day" ran into the calendar's arrows on a phone (owner, 2026-11-19). */
.c-req-grid > .c-set { display: grid; gap: 0; align-content: start; }
.c-req-grid > .c-set > * + * { margin-top: 24px; }
.c-req-grid > .c-set > .c-when { margin-top: 16px; }
.c-req-grid > .c-set > .c-cal-page:not([hidden]) + .c-cal-page { margin-top: 48px; }
.c-req-grid legend.c-name { float: left; width: 100%; margin-bottom: 4px; }
legend.c-name { padding-inline: 0; }   /* the browser's 2px legend padding put it off its content's left edge */
.f-pets { display: grid; gap: 16px; }
.f-pet { display: grid; gap: 24px; }
.f-pet + .f-pet { padding-top: 16px; }
body.petcare .c-page .f-pet .rq-textbtn { justify-self: start; color: var(--pc-ink); }
.c-add-line { margin: 0; }
.c-add-line:has(.c-add:disabled) { display: none; }
.c-nights { display: flex; align-items: center; gap: 24px; }
.c-step { display: flex; align-items: center; gap: 20px; }
.c-step output { min-width: 170px; text-align: center; white-space: nowrap; }
.c-when { min-height: 1.5em; margin-top: -8px; }
.c-add { justify-self: start; }
.c-rec { --w: #f7e4ca; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(64 * var(--s)); padding: calc(44 * var(--s)) calc(48 * var(--s)) calc(48 * var(--s)); }
.c-rec > :is(.rq-set, .rq-contact, .rq-err) { grid-column: 1 / -1; }
.c-rec-tick { display: grid; gap: 12px; align-content: start; }
.c-choice { display: flex; gap: 20px; align-items: flex-start; cursor: pointer; }
.c-choice .c-small { margin-top: 6px; }
.c-notes .c-small { margin-top: -4px; }
body.petcare .c-page .rq-legend { font: 800 max(22px, calc(28 * var(--s)))/1.2 var(--pc-round); color: inherit; }

/* The ground floor: the front door (its picture), and the slip you send there. */
.c-ground { grid-template-columns: minmax(0, 1fr) max(400px, calc(560 * var(--s))); }
.c-door { --w: #fbeedb; min-height: calc(760 * var(--s)); }
.c-door-words { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; width: min(520px, calc(100% - 96 * var(--s))); padding: calc(44 * var(--s)) 0 0 calc(48 * var(--s)); }
.c-door-pic { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(600 * var(--s)); object-fit: cover; object-position: 0% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(96 * var(--s))); mask-image: linear-gradient(to bottom, transparent 0, #000 calc(96 * var(--s))); }
.c-slip-room { --w: #f8e5c4; padding: calc(40 * var(--s)); }
.c-slip { position: relative; box-sizing: border-box; height: 100%; padding: calc(40 * var(--s)) calc(40 * var(--s)) calc(36 * var(--s)); background: var(--frame); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(116, 83, 62, .12), 0 28px 44px -28px var(--shade); display: grid; align-content: start; gap: 24px; }
.c-rows { margin: 0; display: grid; gap: 14px; }
.c-rows > div { display: grid; grid-template-columns: max(88px, calc(112 * var(--s))) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.c-rows dt { font: 700 16px/1.4 var(--font); }
.c-rows dd { margin: 0; font: 400 max(17px, calc(20 * var(--s)))/1.5 var(--font); overflow-wrap: anywhere; }
.c-rows dd span { display: block; }
.c-rows dd .f-dd-d { font-size: 16px; }
.c-rate { margin: 0; display: grid; gap: 8px; padding: 24px 28px; border-radius: 24px; background: var(--pc-orange); }
.f-rate-lines { display: grid; gap: 4px; }
body.petcare .c-page .c-slip .c-btn { width: 100%; }
/* Sent (the shell's done state, paper): on the slip's own paper it keeps its edge. */
body.petcare .c-page .rq-send-btn.is-done { box-shadow: inset 0 0 0 2px var(--pc-brown); }
.c-hold { margin-top: -6px; }
.c-slip .human-check { min-height: 0; }
body.petcare .f-imp { right: 24px; top: 56px; }
body.petcare .f-slip.is-stamped .f-imp { visibility: visible; }
/* A value not given yet: a soft bar where it will go (no rules). */
.f-blank { display: block; width: 70%; height: 12px; margin: .55em 0; border-radius: 6px; background: var(--pc-latte); }
.f-step-blank { width: 4.2em; height: 14px; margin: 0 auto; }
.c-rate.is-blank { background: var(--pc-latte); }
.c-rate.is-blank > * { visibility: hidden; }

/* The house stands on its mound. */
.c-mound { position: relative; height: calc(150 * var(--s)); }
.c-mound::before { content: ""; position: absolute; z-index: 1; left: 50%; top: calc(-60 * var(--s)); width: calc(1900 * var(--s)); height: calc(260 * var(--s));
  margin-left: calc(-950 * var(--s)); border-radius: 50%; background: var(--mound); }

/* 4C. How a request works: the four steps are four papers (the slip, the owner's answer, the vaccination records, the
   receipt). Without a script they lie in two columns, one under the other on a phone, each turned a little. With one
   (.is-live) they lie in a pile: the first on top; a tap, a drag sideways or a number sends the top one to the bottom. */
.c-how { position: relative; z-index: 0; background: var(--pc-orange); overflow: hidden; }
.c-how .c-stage { width: calc(1312 * var(--s)); margin: 0 auto; padding: calc(120 * var(--s)) 0; }
@media (min-width: 960px) { .c-how .c-stage { width: auto; margin-inline: var(--pc-edge); } }   /* on the content edges, as the house above (#201) */
.c-how-h { margin-bottom: calc(64 * var(--s)); }
.m-ask { overflow-x: clip; }
.pl { --paper: #fffaf0; color: var(--pc-ink); text-align: left; }
.pl-sheets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pl-sheet { --r0: -1.1deg; position: relative; box-sizing: border-box; padding: 28px 32px 32px; background: var(--paper); border-radius: 6px; rotate: var(--r0);
  box-shadow: 0 2px 0 rgba(116, 83, 62, .12), 0 24px 40px -28px rgba(92, 65, 48, .55); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 12px; }
.pl-sheet:nth-child(2) { --r0: .9deg; } .pl-sheet:nth-child(3) { --r0: .7deg; } .pl-sheet:nth-child(4) { --r0: -.8deg; }
.pl-sheet > * { grid-column: 1 / -1; margin: 0; }
.pl-ic { grid-column: 1 !important; grid-row: 1; stroke-width: 1.75; }
.pl-n { grid-column: 2 !important; grid-row: 1; font: 800 36px/1 var(--pc-round); }
.pl-t { font: 800 28px/1.15 var(--pc-round); letter-spacing: -.01em; }
.pl-body { font: 400 18px/1.5 var(--font); line-break: strict; text-wrap: pretty; }
.pl-rows { gap: 10px; margin-top: 4px; }
.pl-rows > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
.pl-rows dd { font-size: 18px; }
.pl-rows .f-blank { width: 70%; }
.pl-stamp { justify-self: start; display: inline-block; margin-top: 4px; padding: 4px 16px; border: 3px solid var(--pc-ink); border-radius: 8px; rotate: -5deg; font: 800 22px/1.2 var(--pc-round); }
.pl-link { display: flex; align-items: center; gap: 10px; font: 700 17px/1.4 var(--font); }
.pl-limit { margin: 40px 0 0; max-width: 34em; }

.pl.is-live { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); column-gap: 48px; align-items: start; }
.pl.is-live .pl-nav { grid-column: 1; grid-row: 1; display: grid; gap: 10px; }
.pl.is-live .pl-limit { grid-column: 1; grid-row: 2; }
.pl.is-live .pl-sheets { grid-column: 2; grid-row: 1 / 3; grid-template-columns: minmax(0, 1fr); gap: 0; width: min(520px, calc(100% - 36px)); margin: 0 auto 48px 0; touch-action: pan-y; cursor: pointer; user-select: none; }
.pl.is-live .pl-sheet { grid-area: 1 / 1; align-self: start; z-index: 1; rotate: var(--r, var(--r0)); translate: calc(var(--d, 0) * 9px + var(--dx, 0px)) calc(var(--d, 0) * 11px); }
.pl.is-live:not(.is-in) .pl-sheet { opacity: 0; }
.pl.is-live .pl-sheet.is-away { translate: calc(var(--ax, 1) * 58%) calc(var(--d, 0) * 11px); rotate: calc(var(--ax, 1) * 9deg); }
.pl.is-live .pl-sheets:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 12px; border-radius: 10px; }
.pl-go { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 14px 6px 8px; border: 0; border-radius: 14px; background: transparent; color: inherit; cursor: pointer; text-align: left; font: 800 22px/1.2 var(--pc-round); }
.pl-go-n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 2px solid var(--pc-ink); border-radius: 50%; font-size: 20px; line-height: 1; }
.pl-go[aria-current] { background: var(--paper); box-shadow: 0 2px 0 rgba(116, 83, 62, .12); }
.pl-go[aria-current] .pl-go-n { background: var(--pc-ink); color: var(--paper); }
.pl-go:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
@media (hover: hover) { .pl-go:not([aria-current]):hover { background: rgba(255, 250, 240, .45); } }

/* Home: the same pile, shorter: no sample rows, one narrower pile, the numbers alone above it. */
.pl.is-short { margin: 36px auto 0; max-width: 460px; }
.pl.is-short .pl-sheets { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pl.is-short .pl-sheet { padding: 22px 24px 26px; }
.pl.is-short.is-live { display: block; }
.pl.is-short.is-live .pl-sheets { width: calc(100% - 28px); margin: 0 auto 52px 0; }
.pl.is-short.is-live .pl-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.pl.is-short .pl-go { min-height: 48px; padding: 4px; }
.pl.is-short .pl-go-t, .pl-go-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 900px) { .pl:not(.is-short) .pl-go-t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; } }
@media (max-width: 899px) {
  .c-how .c-stage { width: auto; padding: 56px 16px 64px; }
  .c-how-h { margin-bottom: 36px; }
  .pl-sheets { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pl-sheet { padding: 22px 22px 26px; }
  .pl-t { font-size: 24px; }
  .pl-body, .pl-rows dd { font-size: 17px; }
  .pl.is-live { display: block; }
  .pl.is-live .pl-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
  .pl.is-live .pl-sheets { width: calc(100% - 28px); margin: 0 auto 52px 0; }
  .pl-go { min-height: 48px; padding: 4px; }
  .pl-limit { margin-top: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pl-sheet:not(.is-drag) { transition: translate var(--pc-travel-t) var(--pc-curve), rotate var(--pc-travel-t) var(--pc-curve); }
  .pl.is-live.is-in .pl-sheet { animation: pl-land calc(2 * var(--pc-in-t)) var(--pc-curve) backwards; animation-delay: calc((3 - var(--d, 0)) * 8 * var(--pc-item-step)); }
  @keyframes pl-land { from { opacity: 0; translate: 0 -56px; rotate: calc(var(--r, 0deg) * 4); } }
  .pl-go { transition: background-color var(--pc-hover-t) var(--pc-curve); }
}


/* 5A. Your first stay: one line down the page with a bead at each stop; it fills as you pass (petcare-house.js). */
.m-first { background: var(--sky); padding: calc(160 * var(--s)) 0 calc(104 * var(--s)); }
.m-col { position: relative; width: calc(1112 * var(--s)); margin: 0 auto; }
@media (min-width: 960px) { .m-col { width: auto; margin-inline: var(--pc-edge); } }   /* on the content edges (#201) */
.a-path { position: relative; margin-top: calc(88 * var(--s)); --gap: calc(160 * var(--s)); }
.a-path-line, .a-path-fill { position: absolute; left: 50%; top: var(--t0, 24px); width: 16px; margin-left: -8px; border-radius: 8px; }
.a-path-line { height: var(--span, calc(100% - 96px)); background: var(--board); }
.a-path-fill { height: var(--fill, var(--span, calc(100% - 96px))); background: var(--pc-gold); }
.a-path-dog { position: absolute; z-index: 2; left: 50%; top: var(--dy, 0px); height: 48px; transform: translate(-50%, -100%); color: var(--pc-ink); pointer-events: none; }
.a-path:not(.is-live) .a-path-dog { display: none; }
.a-path-dog .dog { display: block; height: 48px; width: auto; }
.a-path-dog .f-trot, .a-path-dog.is-walking .f-sit { display: none; }
.a-path-dog.is-walking .f-trot { display: block; }
.a-path-dog.is-back .f-trot { transform: scaleX(-1); }
.a-stops { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); margin: 0; padding: 0; }
.a-stop { position: relative; padding-bottom: calc(72 * var(--s)); }
.a-stop.is-l { grid-column: 1; } .a-stop.is-r { grid-column: 2; }
.a-stop:nth-child(1) { grid-row: 1 / 3; } .a-stop:nth-child(2) { grid-row: 2 / 4; }
.a-stop:nth-child(3) { grid-row: 3 / 5; } .a-stop:nth-child(4) { grid-row: 4 / 7; }
.a-stop:nth-child(5) { grid-row: 5 / 7; } .a-stop:nth-child(6) { grid-row: 7 / 9; }
.a-bead { position: absolute; z-index: 1; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--pc-brown); box-shadow: 0 0 0 12px var(--sky); }
.a-stop.is-ahead .a-bead { background: var(--board); }
.a-stop.is-l .a-bead { right: calc(var(--gap) / -2 - 20px); }
.a-stop.is-r .a-bead { left: calc(var(--gap) / -2 - 20px); }
.a-stop-in { display: grid; gap: 12px; justify-items: start; }
/* The stop's icon, and its More's arrow at the same size (the approved still's). */
.a-stop :is(.a-ic, .icon) { display: block; width: 40px; height: 40px; color: var(--pc-brown); margin-bottom: 8px; }
body.petcare .c-page .a-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: inherit;
  font: 800 max(18px, calc(20 * var(--s)))/1.2 var(--pc-round); text-decoration: none; white-space: nowrap; cursor: pointer; }
/* Its More opens the stop's detail right under it (owner, 2026-11-17, C): the arrow turns down while it is open. */
.a-det > summary { list-style: none; }
.a-det > summary::-webkit-details-marker { display: none; }
.a-det[open] > summary .icon { rotate: 90deg; }
.a-det-in { padding: 8px 0 4px; }
.a-det-in :is(p, li) { font: 400 max(16px, calc(18 * var(--s)))/1.55 var(--font); color: var(--pc-ink); text-wrap: pretty; }
.a-det-in > * { margin: 0; }
.a-det-in > * + * { margin-top: 12px; }
.a-det-in :is(ol, ul) { padding-left: 22px; display: grid; gap: 8px; }
.a-det-h { font: 800 max(18px, calc(20 * var(--s)))/1.3 var(--pc-round); color: var(--pc-brown); text-wrap: balance; }
.a-four { list-style: none; display: grid; gap: 14px; width: 100%; margin: 20px 0 8px; padding: 0; }
.a-tick { position: relative; display: inline-flex; align-items: center; gap: 16px; min-height: 52px; cursor: pointer; font: 400 max(16px, calc(20 * var(--s)))/1.35 var(--font); }
.a-tick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.a-tick:has(:focus-visible) .a-box { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
.a-box { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pc-latte); }
.a-tick-mark { width: 24px; height: 24px; fill: none; stroke: var(--pc-cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.a-tick input:checked + .a-box { background: var(--pc-brown); }
.a-tick input:checked + .a-box .a-tick-mark { opacity: 1; }
.a-tick-t { display: flex; align-items: center; gap: 16px; }
.a-slot { flex: none; display: grid; place-items: center; width: 64px; height: 52px; color: var(--pc-brown); }
.a-slot .c-prop { width: auto; height: 48px; max-width: 64px; }
.a-four li:first-child .c-prop { height: 30px; }
.a-thing:has(input:not(:checked)) .a-slot { opacity: .3; }

/* Good to know, on the lawn. */
.c-know { background: var(--pc-latte); padding: calc(150 * var(--s)) 0 calc(160 * var(--s)); }
.c-know .c-stage { width: calc(1440 * var(--s)); margin: 0 auto; display: grid; grid-template-columns: calc(164 * var(--s)) calc(480 * var(--s)) calc(64 * var(--s)) minmax(0, 1fr) calc(96 * var(--s)); align-items: start; }
.c-know .c-h2 { grid-column: 2 / 5; margin-bottom: calc(64 * var(--s)); }
.c-page .dog { color: var(--pc-ink); }
/* The sheets are Home's (Porch's posts). */
body.petcare .d-sheet .f-sheet-body { margin-top: 20px; }
body.petcare .d-sheet .f-sheet-body p { margin: 0 0 14px; font: 400 18px/1.55 var(--font); color: var(--pc-ink); text-wrap: pretty; }

/* Feedback, as on Home: a press goes down like a stamp; hover nudges the arrow, deepens a solid, firms a soft edge. */
body.petcare .c-page :is(.c-btn, .c-round:not(:disabled), .c-seg label, .c-link, .a-more):active { transform: translateY(2px); }
body.petcare .c-page .c-btn:active { transform: translateY(2px) scale(.985); }
@media (hover: hover) {
  body.petcare .c-page :is(.c-btn, .c-link, .a-more):hover .icon { transform: translateX(3px); }
  body.petcare .c-page .c-btn.is-solid:hover:not(:disabled) { background: var(--pc-ink); }
  body.petcare .c-page :is(.c-btn.is-soft, .c-round:not(:disabled), .c-seg label:not(:has(:checked))):hover { box-shadow: inset 0 0 0 2px currentColor; }
}

/* ---------- 900 to 1199 px: the pet's kind and weight stack, so no label wraps. ---------- */
@media (max-width: 1199px) {
  .c-pet-two { grid-template-columns: 1fr; }
  .c-slip .c-rows > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- PC48: the stay agreement (round 32's paper, round 35's step; the lab's stays-signed). ----------
   The paper (.ag) is one part on Dorm, the received page and the receipt, and the admin's preview and View, so its
   tokens fall back to the admin's. Paper on the wall, words straight on it: no rules, no outlined boxes. The typed name
   is in the signing face, an italic system serif (no font file). */
.ag { --ag-ink: var(--pc-ink, var(--adm-ink)); --ag-brown: var(--pc-brown, var(--adm-brown)); --ag-soft: var(--pc-latte, var(--adm-latte));
  --ag-paper: var(--frame, #fffaf0); --ag-round: var(--pc-round, var(--adm-round));
  position: relative; box-sizing: border-box; display: grid; gap: 22px; padding: 36px 40px 40px; background: var(--ag-paper); color: var(--ag-ink); border-radius: 6px; text-align: start; }
.ag-top { display: grid; gap: 6px; }
.ag-h { margin: 0; font: 800 32px/1.1 var(--ag-round); letter-spacing: -.01em; color: var(--ag-ink); overflow-wrap: anywhere; }
.ag-ver { margin: 0; font: 400 16px/1.4 var(--font); }
.ag-facts { margin: 0; display: grid; gap: 10px; }
.ag-facts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.ag-facts dt { font: 700 16px/1.4 var(--font); }
.ag-facts dd { margin: 0; min-width: 0; font: 400 18px/1.45 var(--font); overflow-wrap: anywhere; }
.ag-facts dd span { display: block; }
.ag-facts dd .f-dd-d { font-size: 16px; }
.ag-facts .f-blank { width: 60%; background: var(--ag-soft); }
.ag-terms { display: grid; gap: 18px; padding: 24px 0 0; }
.ag-terms section { min-width: 0; }
.ag-terms h4 { margin: 0 0 6px; font: 800 20px/1.25 var(--ag-round); color: var(--ag-ink); overflow-wrap: anywhere; }
.ag-terms ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ag-terms li { font: 400 17px/1.5 var(--font); text-wrap: pretty; overflow-wrap: anywhere; }
.ag-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.ag-sign { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 132px; box-sizing: border-box; padding: 18px 20px 20px; border-radius: 16px; background: var(--ag-soft); }
.ag-who { margin: 0; font: 700 16px/1.4 var(--font); }
.ag-sig-in { display: grid; gap: 6px; }
.ag-sig, .ag-slip-sig { font-style: italic; font-weight: 500; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; color: var(--pc-brown, var(--adm-brown)); }
.ag-sig { margin: 4px 0 0; font-size: 32px; line-height: 1.15; letter-spacing: .005em; overflow-wrap: anywhere; }
.ag-slip-sig { font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.ag-on { margin: 0; font: 400 16px/1.4 var(--font); }
.ag-blank { display: block; width: 72%; height: 14px; margin: 18px 0 12px; border-radius: 7px; background: var(--ag-paper); }
/* PC50: the business's signature once the stay is confirmed: the saved ink, at most the place's width and 56 px high, and
   the seal at its right, still (no motion, so motion on and off look the same); the date under both, never covered. */
.ag-own { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 60px; }
.ag-own-img { display: block; flex: 0 1 auto; min-width: 0; max-width: calc(100% - 72px); width: auto; height: auto; max-height: 56px; }
.ag-seal { flex: none; width: 60px; height: 60px; margin-left: auto; pointer-events: none; mix-blend-mode: multiply; transform: rotate(8deg); }
.ag-seal-svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.petcare .ag-seal, body.adm.adm-site-petcare .ag-seal { filter: url(#pc-rough); }
@media (max-width: 599px) {
  .ag { padding: 24px 18px; gap: 18px; }
  .ag-h { font-size: 26px; }
  .ag-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ag-signs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ag-sign { min-height: 0; }
  .ag-sig { font-size: 28px; }
}

/* Dorm's agreement step: the paper scrolls in its own height (the page scrolls on when it ends; nothing traps the
   scroll), its foot fading into the wall so it reads as more below; the name typed in the signing face. */
.c-agree { --w: #fbeedb; padding: calc(44 * var(--s)) calc(48 * var(--s)) calc(56 * var(--s)); }
.ag-head { display: grid; gap: 14px; max-width: 46em; }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr) max(400px, calc(540 * var(--s))); gap: calc(56 * var(--s)); margin-top: calc(36 * var(--s)); align-items: start; }
.ag-scroll { position: relative; max-height: 540px; overflow: auto; border-radius: 6px; background: var(--frame); overscroll-behavior: auto;
  box-shadow: 0 2px 0 rgba(116, 83, 62, .12), 0 28px 44px -28px var(--shade); scrollbar-color: var(--board-2) transparent; }
/* The foot fades only while the script says there is more to read, so without it every line reads at full strength. */
.ag-scroll.is-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), rgba(0, 0, 0, .25)); mask-image: linear-gradient(#000 calc(100% - 64px), rgba(0, 0, 0, .25)); }
.ag-scroll:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 4px; }
.ag-sign-set { display: grid; gap: 28px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.c-page .c-input.ag-name-in { font: italic 500 30px/1 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; color: var(--pc-brown); }
.ag-mail-use { margin-top: -4px; }
.ag-agree { display: grid; gap: 10px; }
.ag-agree-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 20px 24px; border-radius: 24px; background: var(--frame); }
.ag-agree-row .c-choice { align-items: center; gap: 16px; min-height: 44px; }
.ag-agree-row .c-choice .c-body { white-space: nowrap; }
.ag-agree-row :not(:checked) + .c-box { background: var(--board); }   /* an empty box on paper takes the board's colour */
.ag-date { display: grid; gap: 2px; margin: 0; text-align: right; }
.ag-date .c-body { white-space: nowrap; font-size: 18px; }
/* The slip's Signed row; while the agreement isn't signed, Send looks off (the script) and B88 says why. */
.c-rows dd .ag-slip-sig { display: block; }
.ag-need { margin-top: -10px; font-weight: 700; }
.c-page.is-ready .ag-need { display: none; }
body.petcare .c-page .f-send[aria-disabled="true"], body.petcare .c-page .f-send[aria-disabled="true"]:hover { background: var(--board); color: rgba(92, 65, 48, .82); cursor: default; }
body.petcare .c-page .f-send[aria-disabled="true"] .icon { transform: none; }
@media (max-width: 1199px) {
  .ag-grid { grid-template-columns: minmax(0, 1fr); }
  .ag-sign-set { max-width: 560px; }
}
@media (max-width: 899px) {
  .c-agree { padding: 28px 16px 32px; }
  .ag-grid { gap: 32px; margin-top: 24px; }
  .ag-scroll { max-height: min(480px, 62vh); margin: 0 -8px; }
  .c-page .c-input.ag-name-in { font-size: 26px; }
  .ag-agree-row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .ag-date { text-align: left; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; }
}

/* The received page and the receipt: the signed paper under the next steps, B69 over it (round 35). */
body.petcare .rr-ag { margin-top: 72px; }
body.petcare .rr-ag-h { margin-bottom: 20px; }
body.petcare .rr-ag .ag { --frame: var(--pc-card); filter: var(--rr-paper-shadow); }
body.petcare [data-rr-line="signed"] .rr-ink-row:last-child { font: 400 1rem/1.4 var(--font); }
@media (max-width: 899px) {
  body.petcare .rr-ag { order: 6; margin-top: 48px; }
}

/* ---------- the stay tracker (PC43): a confirmed stay's receipt is its path (round 29's A, C's Next line) ----------
   One large Next line, then Dorm's six stops down the left (their icons, the four things and their ticks are Dorm's
   own parts, at their 1440 size) and the slip at the side. A bead is brown and ticked when its stop is done, gold where
   the dog stands, light ahead; the line under a stop turns gold once the dog has passed it. app.js moves the dog on
   when all four things are packed. No pills: the Next mark (B95) is a plain coloured word. */
body.petcare .rt-page { --s: 1px; --board: #f3d7aa; --rt-left: 72px; }
body.petcare .rt-top { padding-top: clamp(4px, 2.4vw, 30px); }
body.petcare .rt-next { max-width: 13em; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
body.petcare .rt-whole { white-space: nowrap; }
/* 中文 breaks the line at its punctuation and spaces, never inside a word (店主, 送来, 日期); a run too long for its line
   still wraps rather than overflow. */
body.petcare :lang(zh) :is(.rt-next, .rt-lead, .rt-name, .rt-line, .rt-small, .rr-ink) { word-break: keep-all; overflow-wrap: anywhere; }
body.petcare .rt-lead { margin-top: 18px; max-width: 32em; }
body.petcare .rt-lead b { font-weight: 800; color: var(--pc-brown); }
body.petcare .rt-grid { margin-top: clamp(48px, 6vw, 88px); }
body.petcare .rt-grid .rr-seat { margin-top: 0; }
body.petcare .rt-h { margin: 0 0 56px; font: 800 clamp(2rem, 3.4vw, 3rem)/1.05 var(--pc-round); letter-spacing: -.01em; color: var(--pc-brown); text-wrap: balance; }
body.petcare .rt-stops { list-style: none; margin: 0; padding: 0; }
body.petcare .rt-stop { position: relative; padding: 0 0 56px var(--rt-left); }
body.petcare .rt-stop:last-child { padding-bottom: 0; }
body.petcare .rt-stop:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 52px; bottom: 12px; width: 12px; border-radius: 6px; background: var(--board); transform-origin: 50% 0; }
body.petcare .rt-stop.is-past::before { background: var(--pc-gold); }
body.petcare .rt-bead { position: absolute; z-index: 1; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--board); }
body.petcare .rt-stop.is-here .rt-bead { background: var(--pc-gold); }
body.petcare .rt-stop.is-done .rt-bead { background: var(--pc-brown); }
body.petcare .rt-tick { width: 24px; height: 24px; fill: none; stroke: var(--pc-card); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
body.petcare .rt-stop.is-done .rt-tick { opacity: 1; }
/* The dog stands on the bead of the stop it is at. */
body.petcare .rt-dog { position: absolute; z-index: 2; left: 20px; top: 2px; height: 48px; transform: translate(-50%, -100%); color: var(--pc-ink); pointer-events: none; }
body.petcare .rt-dog .dog { display: block; height: 48px; width: auto; color: var(--pc-ink); }
body.petcare .rt-page .a-slot .dog { color: var(--pc-brown); }
body.petcare .rt-stop-in { display: grid; gap: 12px; justify-items: start; }
body.petcare .rt-stop .a-ic { display: block; width: 40px; height: 40px; color: var(--pc-brown); }
body.petcare .rt-stop:not(.is-done):not(.is-here) .a-ic { opacity: .7; }
body.petcare .rt-name { margin: 4px 0 0; font: 800 clamp(1.75rem, 2.8vw, 2.5rem)/1.08 var(--pc-round); letter-spacing: -.01em; color: var(--pc-brown); text-wrap: balance; }
body.petcare .rt-mark { margin-left: 10px; font: 800 1.15rem/1 var(--pc-round); letter-spacing: 0; color: var(--pc-warm); vertical-align: .3em; white-space: nowrap; }
body.petcare .rt-line { margin: 0; max-width: 32em; font: 400 1.25rem/1.5 var(--font); color: var(--pc-ink); text-wrap: pretty; }
body.petcare .rt-line b { font-weight: 700; }
body.petcare .rt-small { margin: 0; font: 400 1rem/1.5 var(--font); text-wrap: pretty; }
body.petcare .rt-again { margin-top: 20px; }
/* PC76: Care's tracker (tracker/care.css): the deposit button and the Before drop-off form, in the tracker's own tokens. */
body.petcare .rt-pay { display: inline-flex; align-items: center; gap: 8px; }
body.petcare .rt-ec { display: grid; gap: 14px; width: 100%; max-width: 32em; box-sizing: border-box; padding: 20px; border-radius: 16px; background: var(--pc-card); box-shadow: 0 0 0 1px var(--pc-shade); }
body.petcare .rt-ec-h { margin: 0; font: 800 20px/1.25 var(--pc-round); color: var(--pc-ink); }
body.petcare .rt-ec .rt-small { margin-top: -6px; }
body.petcare .rt-f { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
body.petcare fieldset.rt-f { display: block; }
body.petcare fieldset.rt-f > legend { margin-bottom: 8px; }
body.petcare .rt-f-l { padding: 0; font: 700 16px/1.35 var(--font); color: var(--pc-ink); }
body.petcare .rt-opt { font-weight: 400; }
body.petcare .rt-in { display: block; width: 100%; box-sizing: border-box; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pc-latte); color: var(--pc-ink); font: 400 17px/1 var(--font); }
body.petcare .rt-in:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
body.petcare .rt-in[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rq-alert); }
body.petcare .rt-ec .c-seg { background: var(--pc-latte); }
body.petcare .rt-ec .c-seg label { height: 46px; min-width: 92px; padding: 0 20px; }
body.petcare .rt-save { justify-self: start; }
body.petcare .rt-path .a-four { margin: 12px 0 4px; }
body.petcare .rt-page .rt-path .a-thing .a-slot { opacity: 1; }
body.petcare .rt-path .a-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit;
  font: 800 1.2rem/1.2 var(--pc-round); text-decoration: none; white-space: nowrap; cursor: pointer; }
body.petcare .rt-path .a-more .icon { width: 24px; height: 24px; }
body.petcare .rt-main .rr-actions { margin-top: 48px; }
@media (max-width: 899px) {
  body.petcare .rt-grid .rr-seat { order: 3; margin-top: 64px; }
  body.petcare .rt-h { margin-bottom: 48px; }
  body.petcare .rt-stop { --rt-left: 56px; padding-bottom: 44px; }
  body.petcare .rt-stop:not(:last-child)::before { left: 12px; top: 46px; width: 12px; }
  body.petcare .rt-bead { width: 36px; height: 36px; }
  body.petcare .rt-dog { left: 18px; }
  body.petcare .rt-line { font-size: 1.125rem; }
  body.petcare .rt-mark { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  /* The line fills down to the dog's stop, stop by stop; then the dog hops onto its bead. A packed list ticks its bead. */
  body.petcare .rt-path { interpolate-size: allow-keywords; }
  body.petcare .rt-stop.is-past::before { animation: rt-fill .45s var(--pc-curve) backwards; }
  body.petcare .rt-stop:nth-child(2)::before { animation-delay: .45s; }
  body.petcare .rt-stop:nth-child(3)::before { animation-delay: .9s; }
  body.petcare .rt-stop:nth-child(4)::before { animation-delay: 1.35s; }
  body.petcare .rt-stop:nth-child(5)::before { animation-delay: 1.8s; }
  @keyframes rt-fill { from { transform: scaleY(0); } }
  body.petcare .rt-dog { animation: rt-hop .6s var(--pc-ease) .5s backwards; }
  @keyframes rt-hop { from { opacity: 0; translate: 0 -14px; } }
  body.petcare .rt-bead { transition: background-color var(--pc-hover-t) var(--pc-curve); }
  body.petcare .rt-tick { transition: opacity var(--pc-in-t) var(--pc-in-e); }
  body.petcare .rt-path .a-more { transition: transform var(--pc-press-t) var(--pc-press-e); }
  body.petcare .rt-path .a-more .icon { transition: transform var(--pc-hover-t) var(--pc-curve), rotate var(--pc-hover-t) var(--pc-curve); }
}
body.petcare .rt-path .a-more:active { transform: translateY(2px); }
@media (hover: hover) { body.petcare .rt-path .a-more:hover .icon { transform: translateX(3px); } }

/* ---------- Under 900 px: the phone's own composition (600 to 899 takes it too, at a readable measure). ---------- */
@media (max-width: 899px) {
  .c-page { --s: 1px; }
  body.petcare:has(.c-page) .pc-head { background: linear-gradient(90deg, var(--frame) 0 8px, var(--m-wall) 0 calc(100% - 8px), var(--frame) 0); }

  .c-h1 { font-size: min(18vw, 96px); }
  .is-care .c-h1 { font-size: min(15vw, 72px); }
  .c-page .m-huge { font-size: min(13vw, 72px); }
  .c-h2 { font-size: 40px; }
  .c-name { font-size: 28px; }
  .c-body, .c-rows dd, .a-tick { font-size: 18px; }
  body.petcare .c-page :is(.c-link, .a-more) { font-size: 18px; }

  .c-house { width: 100%; padding: 0 8px 8px; gap: 8px; }
  .c-floor { gap: 8px; }

  /* The opening: the title and its sentence, then the bedroom close, at full width (round 28): the view runs from the
     edge of the lamp's glow past the window to the end of the bed, x 330 to 1185 and y 240 down of Codex's 1440 x 758,
     so the sleeping pets stand as tall as the pets in the rooms below. */
  .m-open-in { position: static; width: auto; display: block; padding: 28px 16px 8px; }
  .m-lead { max-width: 520px; margin: 16px 0 0; font-size: 20px; }
  .m-open-pic { overflow: hidden; }
  .m-art { width: calc(1440 / 855 * 100%); margin: calc(-240 / 855 * 100%) 0 0 calc(-330 / 855 * 100%); }

  /* The rooms: one per row, the room's words on its plain wall above its picture. */
  .c-rooms, .c-rooms:has(> .c-pick:nth-of-type(4)) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .c-pick { min-height: 0; }
  .c-words { gap: 8px; padding: 24px 20px 4px; }
  .c-pic { max-width: 520px; width: 100%; margin: 0 auto; overflow: hidden; }
  .c-pic-in { margin-top: -28%; }   /* the plain wall above the furniture is the room's own wall, above the words */

  /* The ruler, full width, the dog under a thumb. The open last board takes its own width, so its price stays on one line. */
  .c-hall { padding: 24px 12px 20px; }
  .c-hall-top { display: block; padding: 0 4px; }
  .f-ruler-k { font-size: 16px; }
  .c-read { white-space: normal; font-size: 24px; }
  .c-help { margin-top: 8px; text-align: left; }
  .f-ruler-box { margin-top: 84px; }
  .f-ruler-box[data-n="2"] { margin-top: 124px; }
  .c-boards, .c-ticks { gap: 3px; }
  .c-boards > li.is-open, .c-ticks > li.is-open { flex: 0 0 84px; }
  .c-boards li, .c-board-one { height: 64px; letter-spacing: -.01em; }
  .c-boards li { white-space: normal; text-align: center; line-height: 1.1; font-size: 13px; }   /* 13px: "$100" fits its board with room beside it, even at 360 px, so prices never run together */   /* a board's "Ask us / Ask us" wraps rather than clips */
  .c-board-one { font-size: 22px; }
  .c-ticks li.is-open { padding: 0; justify-content: flex-end; }
  .c-ticks li > span { transform: translateX(calc(50% + 1.5px)); }
  .f-pin-dog { height: 64px; }
  .f-pin-h { min-width: 48px; }
  .c-demo { padding: 0 4px; }   /* the same 4px as .c-hall-top above it */

  /* Your request: one column; the slip comes after the form, at the door, with its send button. */
  .c-req { padding: 28px 16px 32px; }
  .c-err-room { padding: 16px; }
  .c-req-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 24px; }
  .c-two { grid-template-columns: minmax(0, 1fr); }
  .c-nights { gap: 12px; }
  /* The length row (stays-signed, round 35): the stepper's buttons at the two ends, the length between them, on one line. */
  .c-nights .c-step { flex: 1; justify-content: space-between; gap: 8px; }
  .c-step output { min-width: 0; font-size: 24px; }
  .c-rec { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 16px 32px; }
  .c-ground { grid-template-columns: minmax(0, 1fr); }
  .c-slip-room { order: -1; padding: 16px; }
  .c-slip { padding: 28px 20px 24px; gap: 20px; }
  .c-rows > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .c-rate { padding: 20px; border-radius: 20px; }
  .c-door { min-height: 0; display: flex; flex-direction: column; }
  .c-door-words { width: auto; padding: 24px 16px 0; }
  .c-door-pic { position: static; display: block; height: auto; aspect-ratio: 1.6; margin-top: 8px; }

  .c-mound { height: 64px; }
  .c-mound::before { top: -32px; width: 180vw; height: 120px; margin-left: -90vw; }


  /* Your first stay: the path down the left, every stop to its right. */
  .m-first { padding: 64px 0 48px; }
  .m-col { width: auto; padding: 0 16px; }
  .a-path { --gap: 0px; margin-top: 64px; }
  .a-path-line, .a-path-fill { left: 20px; width: 12px; margin-left: -6px; }
  .a-path-dog { left: 20px; }
  .a-stops { grid-template-columns: minmax(0, 1fr); }
  .a-stop.is-l, .a-stop.is-r { grid-column: 1; grid-row: auto !important; padding: 0 0 44px 56px; }
  .a-stop.is-l .a-bead, .a-stop.is-r .a-bead { left: 2px; right: auto; width: 36px; height: 36px; box-shadow: 0 0 0 8px var(--sky); }
  .a-tick { gap: 10px; font-size: 16px; }
  .a-tick-t { gap: 8px; }
  .a-slot { width: 40px; }
  .a-slot .c-prop { height: 36px; max-width: 40px; }
  .a-four li:first-child .c-prop { height: 24px; }

  .c-know { padding: 64px 0 56px; }
  .c-know .c-stage { width: auto; display: block; padding: 0 16px; }
  .c-know .c-h2 { margin-bottom: 32px; }
}
@media (max-width: 379px) {
  .c-step output { font-size: 21px; }
}

/* ================= Motion: only with motion allowed (Reduce Motion: nothing moves). ================= */
@media (prefers-reduced-motion: no-preference) {
  body.petcare .c-page :is(.c-btn, .c-round, .c-seg label, .c-link, .a-more) {
    transition: transform var(--pc-press-t) var(--pc-press-e), background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve), box-shadow var(--pc-hover-t) var(--pc-curve); }
  body.petcare .c-page :is(.c-btn, .c-link, .a-more) .icon { transition: transform var(--pc-hover-t) var(--pc-curve), rotate var(--pc-hover-t) var(--pc-curve); }

  /* The chosen room lights: its wall and its picture's wall together. */
  .c-pick { transition: background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve); }
  .c-art > g > rect:first-child { transition: fill var(--pc-hover-t) var(--pc-curve); }
  .c-boards li { transition: background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve); }
  .f-ruler-box > :is(.c-boards, .c-ticks, .f-pins, .c-board-one) { transition: opacity var(--pc-fade-t) var(--pc-curve), visibility 0s linear var(--pc-fade-t); }
  .f-ruler-box[data-face="weight"] > :is(.c-boards, .c-ticks, .f-pins), .f-ruler-box[data-face="one"] > .f-ruler-one { transition-delay: 0s; }
  .f-ruler-box { transition: margin-top var(--pc-hover-t) var(--pc-curve); }
  .f-pin { transition: left var(--pc-travel-t) var(--pc-curve); }
  .f-pin-h { transition: left var(--pc-travel-t) var(--pc-curve), bottom var(--pc-hover-t) var(--pc-curve); }
  .f-pin-dog svg { transition: transform var(--pc-travel-t) var(--pc-curve); }
  .f-pin.is-drag, .f-pin.is-drag .f-pin-h, .f-pin.is-drag .f-pin-dog svg { transition-duration: 0s; }

  /* A value inks in when it first exists; the readout swaps; the stamp lands. */
  .c-page :is(.is-inking, .f-read.is-swap) { animation: f-ink var(--pc-in-t) var(--pc-in-e); }
  @keyframes f-ink { from { opacity: 0; translate: 0 4px; } }
  body.petcare .f-slip.is-stamped .f-imp { animation: rs-stamp var(--pc-stamp-t) var(--pc-spring) backwards; }
  body.petcare .f-slip.is-stamped .pc-ink { animation: pc-settle-ink .6s ease-out backwards; }
  body.petcare .f-slip.is-stamped .rs-trace { opacity: 0; transition: opacity var(--pc-out-t) var(--pc-out-e) var(--pc-stamp-t); }

  /* The path: the dog walks to the stop nearest the middle; the beads take their colour as the line reaches them. */
  .a-path-dog { transition: top var(--pc-travel-t) var(--pc-curve); }
  .a-bead { transition: background-color var(--pc-hover-t) var(--pc-curve); }
  .a-slot { transition: opacity var(--pc-in-t) var(--pc-in-e); }
  .a-box { transition: background-color var(--pc-in-t) var(--pc-in-e); }
  .a-tick-mark { transition: opacity var(--pc-in-t) var(--pc-in-e); }

  /* A room's picture lifts a little on hover (its room's scene plays too). */
  @media (hover: hover) {
    .c-pic { transition: translate var(--pc-hover-t) var(--pc-curve); }
    .c-pick:hover .c-pic { translate: 0 -4px; }
  }

  /* The bedroom by night, while in view and the tab is shown (is-live): the sleeping pets breathe, each in its own
     time, and the lamp's glow breathes slower. */
  .m-bed.is-live :is(#bd-shiba, #bd-fluffy) { animation: h-breathe var(--h-breath-t) ease-in-out infinite; }
  .m-bed.is-live #bd-fluffy { animation-delay: calc(var(--h-breath-t) * -.45); }
  .m-bed.is-live #bd-lamp-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: h-glow calc(var(--h-breath-t) * 2) ease-in-out infinite; }
  @keyframes h-breathe { 45% { scale: 1.02 1.05; } }
  @keyframes h-glow { 50% { opacity: .62; scale: .94; } }
}

/* ==========================================================================
   Coco's Care (the page at /care) in the house look (PC42 round 28, the lab's care-house; ported in PC53). Dorm's
   house above, then Care's own parts: the opening by day, the services as rooms, the day and its window of times.
   ========================================================================== */
/* The opening by day: the title and its sentence on the living room's wall, then Codex's picture, whose plain top band
   slides under the sentence. The grooming corner's wall is a deeper tone of the palette (care-art.mjs), rising out of
   the living room's wall over that top band. */
body.petcare:has(.is-care) .pc-page { --m-wall: #f8e5c4; }
.is-care .m-open { --wall-2: color-mix(in srgb, #f8e5c4 52%, #ebae5f); background-color: var(--m-wall); }
.is-care .m-open-in { position: relative; display: block; padding-top: calc(48 * var(--s)); }
@media (min-width: 960px) { .is-care .m-open-in { padding-top: 40px; } }   /* 40 px under the header, as every hero (#201 B) */
.is-care .m-lead { justify-self: start; max-width: none; width: calc(720 * var(--s)); margin: calc(24 * var(--s)) 0 0; }
.is-care .m-open-pic { margin-top: calc(-96 * var(--s)); }
.c-page .m-pic { display: block; width: 100%; height: auto; overflow: hidden; }
.m-pic .m-g-wall { stop-color: var(--wall); }
.m-pic .m-g-wall-2 { stop-color: var(--wall-2); }
.m-pic [transform-origin] { transform-box: fill-box; }
:is(.m-pic, .is-care .c-art) circle { transform-box: fill-box; transform-origin: 50% 50%; }
.m-crop.is-groom { display: none; }
.is-care .m-art .h-hits { --H: 600; }
.is-care .m-art .h-hit.is-shiba { --x: 330; --y: 478; --w: 236; --h: 178; }
.is-care .m-art .h-hit.is-fluffy { --x: 668; --y: 470; --w: 196; --h: 116; }
.is-care .m-art .h-hit.is-bath-dog { --x: 1218; --y: 358; --w: 200; --h: 140; }

/* ==========================================================================
   D2 (owner, 2026-11-17): Dorm and Care follow the hour, as Home does. petcare.js turns the page's sky
   (.pc-page[data-sky], is-night). Everything that changes reads one number, --night (0 by day, 1 at night), so with
   motion it all turns together over Home's --h-turn-t, and with Reduce Motion it simply swaps. By night the header
   and the sky around the house are Home's night with cream words, and the band's wall is the bedroom's gold; by day
   the wall is the living room's. Each opening carries both times (dorm-art.mjs, care-art.mjs): its .m-day and .m-night
   parts fade into each other, the lamp's shade lights and the glass darkens.
   ========================================================================== */
@property --night { syntax: '<number>'; inherits: true; initial-value: 0; }
body.petcare .pc-page[data-sky]:has(.c-page) { --night: 0; --m-wall: color-mix(in srgb, #f8e5c4, #dca560 calc(var(--night) * 100%)); }
body.petcare .pc-page.is-night:has(.c-page) { --night: 1; }
body.petcare .pc-page[data-sky]:has(.c-page) { --pc-floor-bg: color-mix(in srgb, var(--pc-cream), var(--pc-floor-night) calc(var(--night) * 100%));
  --pc-floor-ink: color-mix(in srgb, var(--pc-brown), var(--pc-cream) calc(var(--night) * 100%)); --pc-up-ink: var(--pc-floor-ink);
  --pc-floor-on: color-mix(in srgb, var(--pc-latte), rgba(251, 242, 225, .14) calc(var(--night) * 100%));
  --pc-floor-line: color-mix(in srgb, var(--pc-brown), var(--pc-orange) calc(var(--night) * 100%));
  --pc-solid: color-mix(in srgb, var(--pc-brown), var(--pc-orange) calc(var(--night) * 100%));
  --pc-solid-ink: color-mix(in srgb, var(--pc-card), var(--pc-ink) calc(var(--night) * 100%));
  --pc-solid-hover: color-mix(in srgb, var(--pc-ink), var(--pc-gold) calc(var(--night) * 100%));
  --pc-up-bg: color-mix(in srgb, var(--pc-latte), var(--m-dark) calc(var(--night) * 100%));
  --pc-up-on: color-mix(in srgb, var(--pc-cream), rgba(251, 242, 225, .14) calc(var(--night) * 100%)); }
/* The header: Home's night laid over the house's walls, under the words. */
body.petcare .pc-page[data-sky]:has(.c-page) .pc-head { --r-soft: color-mix(in srgb, var(--frame), rgba(251, 242, 225, .14) calc(var(--night) * 100%)); }
body.petcare .pc-page[data-sky]:has(.c-page) .pc-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--m-dark); opacity: var(--night); pointer-events: none; }
/* Its words go cream by night (8.7:1, the floors' colours above); the lights come on as on Home (PC74 C): the solid
   buttons (--pc-solid, above) and the floor lines turn orange with the night. */
body.petcare .pc-page.is-night:has(.c-page) .pc-head :focus-visible { outline-color: var(--pc-cream); }
body.petcare .pc-page.is-night .pc-time .is-moon { visibility: hidden; }
body.petcare .pc-page.is-night .pc-time .is-sun { visibility: visible; }
/* The sky around the house; Care's grooming corner deepens with its wall. */
body.petcare .pc-page[data-sky] .c-top { background: color-mix(in srgb, var(--sky), var(--m-dark) calc(var(--night) * 100%)); }
body.petcare .pc-page[data-sky] .is-care .m-open { --wall-2: color-mix(in srgb, color-mix(in srgb, #f8e5c4 52%, #ebae5f), color-mix(in srgb, #dca560 82%, #74533e) calc(var(--night) * 100%)); }
/* The openings' two times. */
.pc-page[data-sky] :is(.m-bed, .m-pic) .m-day { opacity: calc(1 - var(--night)); }
.pc-page[data-sky] :is(.m-bed, .m-pic) .m-night { opacity: var(--night); }
.pc-page[data-sky] :is(.m-bed, .m-pic) .m-shade { fill: color-mix(in srgb, #fbf2e1, #fee5ac calc(var(--night) * 100%)); }
.pc-page[data-sky] :is(.m-bed, .m-pic) .m-glass { fill: color-mix(in srgb, #fbf2e1, #5c4130 calc(var(--night) * 100%)); }
/* What answers a tap follows the pets: Dorm's pair awake on the bed by day, Care's asleep in theirs by night, and the
   bath dog, gone by night. */
.pc-page[data-sky]:not(.is-night) .is-stays .m-art .h-hit.is-shiba { --x: 835; --y: 569; --w: 230; --h: 174; }
.pc-page[data-sky]:not(.is-night) .is-stays .m-art .h-hit.is-fluffy { --x: 1060; --y: 606; --w: 200; --h: 104; }
.pc-page.is-night .is-care .m-art .h-hit.is-shiba { --x: 602; --y: 504; --w: 136; --h: 64; }
.pc-page.is-night .is-care .m-art .h-hit.is-fluffy { --x: 738; --y: 498; --w: 142; --h: 60; }
.pc-page.is-night .is-care .h-hit.is-bath-dog { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body.petcare.r-turning .pc-page[data-sky] { transition: --night var(--h-turn-t) var(--pc-curve); }
  /* Care by night, while in view (is-live, petcare-house.js): its sleepers breathe as Home's, its lamp glows as Dorm's. */
  .m-pic.is-live :is(#co-shiba-asleep, #co-fluffy-asleep) { animation: h-breathe var(--h-breath-t) ease-in-out infinite; }
  .m-pic.is-live #co-fluffy-asleep { animation-delay: calc(var(--h-breath-t) * -.45); }
  .m-pic.is-live #co-lamp-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: h-glow calc(var(--h-breath-t) * 2) ease-in-out infinite; }
}

/* The services: one radio group, a room each, up to four a row; the unchosen walls a shade deeper than Dorm's so the
   cream dogs and cats read; the chosen one lit, wall and picture. */
.is-care .c-rooms:has(> .c-pick:nth-of-type(4)) { grid-auto-flow: column; grid-template-columns: none; }
.is-care .c-rooms:has(> .c-pick:nth-of-type(5)) { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.is-care .c-pick { --w: color-mix(in srgb, #f8e5c4 72%, #dba761); min-height: 0; }
.is-care .c-pick .c-name { white-space: nowrap; }
.is-care .c-pick:has(> .c-pick-l :checked) { --w: var(--lit); }
/* A service's levels (PC80), in its card under the picture on cream: a real radio per row, the chosen row amber with a
   tick. Above the card's own label, so a row's tap picks the level. Only the chosen card shows its levels, with or without
   the script, so a level of another service can't be tapped (the server reads the chosen service's group). */
.c-lv { position: relative; z-index: 3; display: grid; gap: 8px; min-width: 0; margin: 0; padding: 18px 16px 16px; border: 0; background: var(--pc-cream); cursor: auto; }
.c-pick:not(:has(> .c-pick-l :checked)) > .c-lv { display: none; }
/* A row holding a card's levels: each card keeps its own height, so the others' pictures stay under their words. */
.is-care .c-rooms:has(> .c-pick > .c-pick-l [data-levels]:checked) { align-items: start; }
.c-lv-h { float: left; width: 100%; margin: 0 0 4px; padding: 0; font: 800 1.25rem/1.2 var(--pc-round); color: var(--pc-ink); }
.c-lv-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--pc-latte) 70%, var(--pc-gold)); color: var(--pc-ink); cursor: pointer; transition: background-color var(--pc-hover-t) var(--pc-curve); }
.c-lv-row:has(:checked) { background: var(--lit); }
.c-lv-row:has(:focus-visible) { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
.c-lv-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--pc-ink); border-radius: 50%; background: var(--pc-cream); color: var(--pc-cream); }
.c-lv-mark svg { opacity: 0; }
.c-lv-row:has(:checked) .c-lv-mark { background: var(--pc-ink); }
.c-lv-row:has(:checked) .c-lv-mark svg { opacity: 1; }
.c-lv-words { display: grid; gap: 2px; min-width: 0; }
.c-lv-name { font: 800 1.125rem/1.25 var(--pc-round); overflow-wrap: anywhere; }
.c-lv-note { font-size: .9375rem; line-height: 1.35; overflow-wrap: anywhere; }
.c-lv-price { display: flex; flex-direction: column; align-items: flex-end; font-size: .8125rem; line-height: 1.2; white-space: nowrap; text-align: right; }
.c-lv-price b { font: 800 1.0625rem/1.2 var(--pc-round); }
/* On a computer a card is narrower than a phone, so its levels take the whole row under the cards, two to a line (owner,
   2026-11-22: the notes mustn't wrap). --lv-n cards in the row, this one --lv-i from the left; five or more cards wrap
   into rows, and there the levels stay in their card. */
@media (min-width: 900px) {
  .is-care .c-rooms:has(> .c-pick:nth-of-type(2)) { --lv-n: 2; }
  .is-care .c-rooms:has(> .c-pick:nth-of-type(3)) { --lv-n: 3; }
  .is-care .c-rooms:has(> .c-pick:nth-of-type(4)) { --lv-n: 4; }
  .is-care .c-pick:nth-of-type(2) { --lv-i: 1; }
  .is-care .c-pick:nth-of-type(3) { --lv-i: 2; }
  .is-care .c-pick:nth-of-type(4) { --lv-i: 3; }
  .is-care .c-rooms:has(> .c-pick:nth-of-type(5)) { --lv-n: 1; }
  .is-care .c-rooms:has(> .c-pick:nth-of-type(5)) > .c-pick { --lv-i: 0; }
  .is-care .c-pick:has(> .c-pick-l [data-levels]:checked) { overflow: visible; }
  .is-care .c-lv { --lv-gap: calc(16 * var(--s)); align-self: flex-start; grid-template-columns: repeat(2, minmax(0, 1fr)); box-sizing: border-box;
    width: calc(var(--lv-n, 1) * 100% + (var(--lv-n, 1) - 1) * var(--lv-gap)); margin-left: calc(var(--lv-i, 0) * -1 * (100% + var(--lv-gap))); border-radius: 0 0 14px 14px; }
  .is-care .c-lv-h { grid-column: 1 / -1; }
  /* Five or more cards: the list stays in its narrow card, one level to a line. */
  .is-care .c-rooms:has(> .c-pick:nth-of-type(5)) .c-lv { grid-template-columns: minmax(0, 1fr); }
}
.is-care .c-words { padding: calc(44 * var(--s)) calc(16 * var(--s)) 16px calc(28 * var(--s)); }
.is-care .c-pic-in .h-hits { --W: 320; }
:is(.is-care .c-pic, .b-pic) .h-hit.is-daycare-shiba { --x: 85; --y: 282; --w: 130; --h: 94; }
:is(.is-care .c-pic, .b-pic) .h-hit.is-daycare-fluffy { --x: 244; --y: 286; --w: 128; --h: 78; }
:is(.is-care .c-pic, .b-pic) .h-hit.is-bath-shiba { --x: 137; --y: 222; --w: 110; --h: 84; }
.is-care .c-pic .h-hit.is-groom-fluffy { --x: 173; --y: 233; --w: 110; --h: 98; }
.is-care .c-pic .h-hit.is-cat-cream { --x: 122; --y: 252; --w: 166; --h: 64; }
.is-care .c-pic .h-hit.is-cat-dark { --x: 261; --y: 229; --w: 84; --h: 104; }

/* The day: two weeks to a page, Monday to Sunday; the days that can't be asked for greyed, a closed day marked as the
   server marks it. The script shows one page with its arrows around the dates; without it every page shows. */
.c-cal-head { display: flex; align-items: center; gap: 12px; margin-top: -12px; }
.c-cal-head .c-range-words { flex: 1; margin: 0; }
.c-cal-arrow:not([hidden]) + .c-range-words { text-align: center; }
.c-cal-arrow { flex: none; width: 44px; height: 44px; }
.c-cal-page:not([hidden]) + .c-cal-page { margin-top: 24px; }
.c-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.c-dayname { text-align: center; font: 700 16px/1.4 var(--font); padding-bottom: 4px; }
.c-day { position: relative; display: grid; place-items: center; align-content: center; height: 64px; border-radius: 20px; font: 800 20px/1 var(--pc-round); }
label.c-day { background: var(--frame); cursor: pointer; }
label.c-day:has(:checked) { background: var(--pc-orange); }
label.c-day:has(:focus-visible) { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
.c-day.is-past { color: #7a5b47; font-weight: 600; }
.c-day small { display: none; margin-top: 4px; font: 400 16px/1 var(--font); }
label.c-day.is-closed { background: none; cursor: default; color: #7a5b47; }
.c-day.is-closed small { display: block; }

/* The time: the day as one long window, a pane for each time and the evening at the far end, all in the house's light
   walls; the chosen pane lights as a chosen room does, and the sun stands in it. A full time can't be chosen. */
.c-time { padding: calc(44 * var(--s)) calc(48 * var(--s)) calc(52 * var(--s)); }
.c-time-h { display: flex; align-items: baseline; padding: 0; margin-bottom: 28px; }
.c-time-h .c-name { display: inline; }
.c-window { --n: 3; position: relative; display: grid; grid-template-columns: repeat(var(--n), calc(224 * var(--s))) minmax(0, 1fr); gap: calc(16 * var(--s));
  height: calc(264 * var(--s)); min-height: 200px; box-sizing: border-box; padding: calc(16 * var(--s)); background: var(--frame); border-radius: 10px; box-shadow: 0 24px 40px -30px var(--shade); }
.c-window[data-n="1"] { --n: 1; }
.c-window[data-n="2"] { --n: 2; }
.c-window[data-n="4"] { --n: 4; }
.c-window[data-n="0"] { display: none; }
.c-panes { display: contents; list-style: none; }
.c-panes li { position: relative; margin: 0; background: #fbecd7; border-radius: 4px; }
.c-panes li:nth-child(even) { background: #f7e4ca; }
.c-panes li.is-on { background: var(--lit); color: var(--deep); }
.c-panes li.is-full { color: #7a5b47; }
.c-panes label { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 0 calc(20 * var(--s)) 22px; cursor: pointer; }
.c-panes li.is-full label { cursor: default; }
.c-panes label:has(:focus-visible) { outline: 3px solid var(--pc-ink); outline-offset: -3px; border-radius: 4px; }
.c-t { font: 800 max(28px, calc(40 * var(--s)))/1.08 var(--pc-round); white-space: nowrap; }
/* 中文 writes the time of day first (上午 10:00, X4): a little smaller, so it stays on one line in its pane. */
:lang(zh) .c-t { font-size: max(24px, calc(34 * var(--s))); }
.c-dusk { display: grid; place-items: center end; padding-right: calc(40 * var(--s)); border-radius: 4px; background: var(--board-2); color: var(--pc-brown); }
.c-sun { position: absolute; z-index: 1; left: 0; top: 0; width: calc(84 * var(--s)); height: calc(84 * var(--s)); min-width: 56px; min-height: 56px; border-radius: 50%;
  background: var(--pc-orange); box-shadow: 0 0 0 14px rgba(255, 250, 240, .45); translate: var(--sx, 0px) var(--sy, 0px); opacity: 0; pointer-events: none; }
.c-window.is-sun .c-sun { opacity: 1; }
.c-no-times { margin-top: 8px; }
/* Five times or more (the lab drew up to four): rows of four panes, the evening the rest of the last row. */
@media (min-width: 900px) {
  .c-window:is([data-rest="1"], [data-rest="2"], [data-rest="3"], [data-rest="4"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto; }
  .c-window:is([data-rest="1"], [data-rest="2"], [data-rest="3"], [data-rest="4"]) .c-panes li { min-height: calc(232 * var(--s)); }
  .c-window[data-rest="2"] .c-dusk { grid-column: span 2; }
  .c-window[data-rest="3"] .c-dusk { grid-column: span 3; }
  .c-window[data-rest="4"] .c-dusk { grid-column: 1 / -1; min-height: 64px; }
}

/* Good to know: "See a day of daycare" under All questions. */
body.petcare .is-care .m-qs .c-day-link { display: flex; width: fit-content; margin-top: 28px; }

@media (max-width: 899px) {
  /* The opening on a phone: the living room, then the grooming corner, each close and at full width, the inner wall
     between them the house's gap. */
  .is-care .m-open { background: var(--frame); }
  .is-care .m-open-in { background: var(--m-wall); padding: 28px 16px 20px; }
  .is-care .m-lead { width: auto; margin-top: 16px; }
  .is-care .m-open-pic { margin-top: 0; display: grid; gap: 8px; }
  .m-crop { overflow: hidden; background: var(--m-wall); }
  .m-crop.is-groom { display: block; }
  .m-crop.is-living .m-art { width: 161.8%; margin: -19.1% 0 0 -4.49%; }
  .m-crop.is-groom .m-art { width: 300%; margin: -31.25% 0 0 -200%; }
  .m-crop.is-living .h-hit.is-bath-dog { display: none; }

  .is-care .c-rooms, .is-care .c-rooms:is(:has(> .c-pick:nth-of-type(4)), :has(> .c-pick:nth-of-type(5))) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .is-care .c-words { padding: 24px 20px 4px; }
  .is-care .c-pic-in { margin-top: -38%; }

  .is-care .c-req { padding: 28px 12px 32px; }
  .is-care .c-req-grid > .c-set { padding: 0 4px; }
  .is-care .c-req-grid > .c-day-set { padding: 0; }
  .c-day-set legend, .c-day-set .c-cal-head { padding: 0 4px; }
  .c-days { gap: 6px 2px; }
  .c-day { height: 52px; border-radius: 14px; font-size: 18px; }
  .c-day small { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; margin: -8px 0 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  label.c-day.is-closed { text-decoration: line-through; text-decoration-thickness: 2px; }
  .c-time { padding: 28px 12px 24px; }
  .c-time-h { padding: 0 4px; margin-bottom: 20px; }
  .c-window { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; min-height: 0; gap: 8px; padding: 8px; }
  .c-panes li { min-height: 116px; }
  .c-t { font-size: min(28px, 7.4vw); }
  :lang(zh) .c-t { font-size: min(24px, 6.4vw); }
  .c-panes label { padding: 0 12px 16px; }
  .c-dusk { grid-column: 1 / -1; height: 64px; place-items: center; padding: 0; }
  .c-panes li:nth-child(odd):last-child { grid-column: 1 / -1; }
  .c-sun { width: 44px; height: 44px; min-width: 0; min-height: 0; box-shadow: 0 0 0 8px rgba(255, 250, 240, .45); }
  body.petcare .is-care .m-qs .c-day-link { margin-top: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Care: the sun crosses the day to the chosen time; the pane and the day take the light. */
  .c-sun { transition: translate calc(3 * var(--pc-travel-t)) var(--pc-curve), opacity var(--pc-in-t) var(--pc-curve); }
  .c-panes li { transition: background-color var(--pc-hover-t) var(--pc-curve); }
  label.c-day { transition: background-color var(--pc-hover-t) var(--pc-curve); }
}

/* ==========================================================================
   Coco's Porch (the page at /live) in the house look (PC42 round 33, the lab's porch-house; ported in PC53 part 3).
   Home's house by night opens it, its rooms the tabs; the switch sticks at the top once the house has gone; the Live
   tab is round 28's Live page in Dorm's house above (its rooms, words and buttons), with its own parts here: the
   stream, the sample window, the front door and the link's days. Blog's desk and Social's accounts and photo wall
   follow. Motion is petcare-house.js's, on the site's --pc-* and Home's --h-* timings; Reduce Motion stills it.
   ========================================================================== */
/* Night, as on Home by night: the header and the house's sky are the night's brown. */
body.petcare:has(.p-page) .pc-head { background: var(--m-dark); }
body.petcare:has(.p-page) .pc-head :focus-visible, .wa-open :focus-visible { outline-color: var(--pc-cream); }
.p-page .c-lead { margin: 0; font: 400 max(18px, calc(22 * var(--s)))/1.4 var(--font); text-wrap: pretty; }
.c-dot { flex: none; display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: var(--pc-orange); box-shadow: 0 0 0 6px rgba(242, 181, 102, .3); }

/* The opening: the title in the night sky, the house as large as Home's, its sky running up under the title. */
.wa-open { overflow: hidden; background: var(--m-dark); color: var(--pc-cream); }
.wa-sky { position: relative; z-index: 1; width: calc(1440 * var(--s)); box-sizing: border-box; margin: 0 auto; padding: calc(40 * var(--s)) calc(164 * var(--s)) 0; }
.wa-sky .c-lead { margin-top: calc(24 * var(--s)); }
.wa-house { position: relative; margin-top: calc(-206 * var(--s)); }
.p-pic { position: relative; }
/* The rooms that are the tabs: a dark veil over each (its own wall's shape), lifted from the chosen one, so its light
   is on in the house's own lit colours and the others stay dim. */
.p-veils { pointer-events: none; }
.p-veil { fill: #281810; opacity: .62; }
.p-page[data-tab="live"] .p-veil.is-live, .p-page[data-tab="blog"] .p-veil.is-blog, .p-page[data-tab="social"] .p-veil.is-social { opacity: 0; }
/* The pets' buttons, Home's by night: (x, y) the middle, or with --ax the edge a button grows away from. */
.wa-house .h-hits { --W: 1536; --H: 1024; }
.wa-house .h-hit { translate: calc(var(--ax, .5) * -100%) calc(var(--ay, .5) * -100%); }
.wa-house .h-hit.is-shiba { --x: 690; --ax: 1; --y: 858; --w: 90; --h: 94; }
.wa-house .h-hit.is-fluffy { --x: 692; --ax: 0; --y: 868; --w: 82; --h: 64; }
.wa-house .h-hit.is-cat-dark { --x: 628; --y: 545; --w: 140; --h: 96; }
.wa-house .h-hit.is-cat-cream { --x: 1033; --y: 510; --w: 134; --h: 108; }
.wa-house .h-hit.is-door { --x: 882; --ax: 0; --y: 797; --w: 52; --h: 313; }
body.petcare .wa-house .h-hit:focus-visible { outline-color: var(--pc-cream); }
/* Each room's sign: cream on a dim room, brown on the lit one; its place in the house's units, clear of the pets. */
.p-rooms { position: absolute; inset: 0; pointer-events: none; }
body.petcare .p-room { position: absolute; left: calc(var(--x) / 15.36 * 1%); top: calc(var(--y) / 10.24 * 1%); translate: -50% -50%; pointer-events: auto;
  display: grid; place-items: center; box-sizing: border-box; height: max(44px, calc(68 * var(--s))); padding: 0 max(18px, calc(32 * var(--s)));
  border-radius: 999px; background: var(--pc-cream); color: var(--pc-ink); font: 800 max(18px, calc(32 * var(--s)))/1 var(--pc-round);
  white-space: nowrap; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55); cursor: pointer; -webkit-tap-highlight-color: transparent; }
body.petcare .p-room.is-on { background: var(--pc-brown); color: var(--pc-cream); cursor: default; }
.p-room.is-live { --x: 470; --y: 828; }
.p-room.is-blog { --x: 769; --y: 436; }
.p-room.is-social { --x: 1100; --y: 783; }
.p-room:active { transform: translateY(2px); }
@media (hover: hover) { .p-room:not(.is-on):hover { box-shadow: inset 0 0 0 2px currentColor, 0 8px 18px -10px rgba(0, 0, 0, .55); } }

/* The switch. Its bar hangs over the house's last 104 px (the switch's height and its gap), so it sticks under the
   header just as the house has gone under it; it shows only then (is-stuck) or while it has the keyboard's focus, and
   stays in the accessibility tree throughout: it is the tablist. */
.p-bar { position: sticky; top: var(--p-head, 92px); z-index: 30; height: 0; margin: -104px 0 104px; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.p-bar:not(.is-stuck):not(:has(:focus-visible)) { opacity: 0; translate: 0 -12px; }
.p-switch { display: inline-flex; margin-top: 16px; padding: 6px; border-radius: 999px; background: var(--pc-brown); box-shadow: 0 18px 30px -18px rgba(60, 35, 20, .7); }
.p-bar:is(.is-stuck, :has(:focus-visible)) .p-switch { pointer-events: auto; }
body.petcare .p-switch .w-tab { display: grid; place-items: center; box-sizing: border-box; height: 76px; min-width: calc(208 * var(--s)); padding: 0 36px; border-radius: 999px;
  color: var(--pc-cream); font: 800 max(20px, calc(30 * var(--s)))/1 var(--pc-round); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
body.petcare .p-switch .w-tab[aria-selected="true"] { background: var(--pc-orange); color: var(--pc-ink); }
.p-switch .w-tab:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--pc-cream), inset 0 0 0 6px var(--pc-ink); }
.p-switch .w-tab:active { transform: translateY(2px); }
@media (hover: hover) { .p-switch .w-tab[aria-selected="false"]:hover { box-shadow: inset 0 0 0 2px var(--pc-cream); } }

/* The room behind the chosen sign: its wall below the house, on the lawn's cream. */
.p-page .w-panel { background: #f8e5c4; }
.p-page .wa-room > .c-top { background: none; padding-top: calc(80 * var(--s)); }
.p-page .c-house { padding-top: calc(20 * var(--s)); }

/* Live, the top floor: the public stream, the platform card's words on its wall. */
.c-stream { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(40 * var(--s)) calc(48 * var(--s)); padding: calc(48 * var(--s)) calc(48 * var(--s)) calc(52 * var(--s)); }
.c-stream-lead { grid-column: 1 / -1; max-width: calc(720 * var(--s)); }
.c-stream-words { display: grid; gap: 14px; align-content: end; }
.c-on { display: flex; align-items: center; gap: 20px; }
.c-on[data-camera="off"] .c-dot { background: var(--board-2); box-shadow: none; }
.c-stream-go { display: grid; grid-template-columns: auto auto; gap: 14px 16px; align-content: end; }
/* The ground floor, the house's face: the camera in the front window, the code on the front door. */
.c-face { --w: #f7e4ca; height: calc(940 * var(--s)); }
.c-face::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(28 * var(--s)); background: #efd3a6; }
.c-face-head { display: grid; grid-template-columns: calc(560 * var(--s)) minmax(0, 1fr); gap: calc(64 * var(--s)); align-items: start; padding: calc(44 * var(--s)) calc(48 * var(--s)) 0; }
.c-face-head .c-body { padding-top: 8px; }
.c-win { position: absolute; z-index: 1; left: calc(72 * var(--s)); top: calc(244 * var(--s)); width: calc(620 * var(--s)); margin: 0; }
.c-win-cap { margin-bottom: 12px; }
.c-glass { position: relative; padding: calc(20 * var(--s)); background: var(--frame); box-shadow: 0 24px 40px -30px var(--shade); }
/* The camera: Codex's bedroom by night, framed on the bed, the window and the lamp. */
.c-cam { --wall: var(--m-wall); position: relative; overflow: hidden; aspect-ratio: 1040 / 681.5; background: var(--m-wall); }
.c-cam .m-art { width: 138.46%; margin: -7.36% 0 0 -30.77%; }   /* x 320 to 1360, y 76.5 to 758 of the 1440 x 758 bedroom */
.c-cam::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--frame); opacity: 0; pointer-events: none; }
.c-win[data-state="code"] .c-cam::after { opacity: .8; }
.c-win[data-state="off"] .c-cam::after { opacity: .5; }
.c-win[data-state="ended"] .c-cam::after { opacity: .94; }
.c-win:not([data-state="live"]) .c-live .c-dot { background: var(--board-2); box-shadow: none; }
.c-live { position: absolute; z-index: 2; left: calc(40 * var(--s)); bottom: calc(40 * var(--s)); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 80 * var(--s));
  box-sizing: border-box; margin: 0; padding: 14px 22px 14px 18px; border-radius: 999px; background: var(--frame); font: 700 16px/1.25 var(--font); }
.c-sill { height: calc(24 * var(--s)); margin: 0 calc(-28 * var(--s)); background: var(--frame); box-shadow: 0 10px 18px -12px var(--shade); }
.c-win-ctl { display: flex; align-items: center; gap: 16px; margin-top: calc(32 * var(--s)); }
.c-win-ctl .c-seg button { appearance: none; border: 0; height: 54px; min-width: 96px; padding: 0 22px; border-radius: 999px; background: none; color: var(--pc-ink); font: 800 16px/1 var(--pc-round); white-space: nowrap; cursor: pointer; }
.c-win-ctl .c-seg button[aria-pressed="true"] { background: var(--pc-orange); }
.c-win-ctl .c-seg button:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
.c-play[aria-disabled="true"] { cursor: default; }
/* The front door: the warm hall behind it, the leaf on its hinge with the code and the knob. */
.c-door-front { position: absolute; right: calc(112 * var(--s)); bottom: calc(28 * var(--s)); width: calc(372 * var(--s)); height: calc(640 * var(--s));
  border-radius: calc(186 * var(--s)) calc(186 * var(--s)) 0 0; background: #fee5ac; box-shadow: 0 0 0 calc(18 * var(--s)) var(--frame); }
.c-door-light { position: absolute; left: -30%; right: -30%; bottom: calc(-28 * var(--s)); height: calc(56 * var(--s)); background: radial-gradient(closest-side, rgba(254, 229, 172, .95), rgba(254, 229, 172, 0));
  opacity: 0; pointer-events: none; }
.c-leaf { position: absolute; inset: 0; border-radius: inherit; background: var(--pc-brown); color: var(--pc-cream); transform-origin: 0 50%; }
.c-code { position: absolute; left: calc(32 * var(--s)); right: calc(32 * var(--s)); top: calc(230 * var(--s)); display: grid; gap: 16px; justify-items: center; }
.c-cells-box { position: relative; width: 100%; display: grid; justify-items: center; }
.c-code-in { box-sizing: border-box; width: 100%; height: 64px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--frame); color: var(--pc-ink);
  font: 800 32px/1 var(--pc-round); letter-spacing: .3em; text-align: center; -webkit-appearance: none; appearance: none; }
.c-cells { display: none; grid-template-columns: repeat(6, 44px); gap: 8px; }
.c-cell { box-sizing: border-box; display: grid; place-items: center; width: 44px; height: 68px; border-radius: 12px; background: var(--frame); color: var(--pc-ink); font: 800 40px/1 var(--pc-round); }
/* With the script, the field lies over the six cells: what is typed shows in them, the next one ringed. */
.has-cells .c-cells { display: grid; }
.has-cells .c-code-in { position: absolute; inset: 0; z-index: 1; height: auto; padding: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; outline: 0; }
.has-cells .c-code-in::selection { background: transparent; }
.c-cell.is-next { box-shadow: inset 0 0 0 3px var(--pc-orange); }
.c-cells-box:has(:focus-visible) .c-cells { outline: 3px solid var(--pc-cream); outline-offset: 6px; border-radius: 14px; }
.c-code-err { margin: 0; max-width: 100%; font: 700 16px/1.4 var(--font); text-align: center; text-wrap: balance; }
.c-code-err:empty { display: none; }
.is-wrong .c-cell { box-shadow: inset 0 0 0 3px var(--pc-orange); }
.c-knob { position: absolute; right: calc(36 * var(--s)); top: calc(420 * var(--s)); width: calc(26 * var(--s)); height: calc(26 * var(--s)); border-radius: 50%; background: var(--pc-orange); }
/* The link's days, on the lawn: yesterday, today (the dog sits on it), and two days on. */
.c-days-lawn { position: relative; z-index: 2; background: var(--mound); color: var(--deep); padding: calc(8 * var(--s)) 0 calc(140 * var(--s)); }
.c-days-lawn .c-stage { width: calc(1440 * var(--s)); margin: 0 auto; display: grid; grid-template-columns: calc(164 * var(--s)) calc(420 * var(--s)) minmax(0, 1fr) calc(164 * var(--s)); align-items: center; }
.c-days-lawn .c-name, .c-days-lawn .c-body { grid-column: 2; }
.c-days-lawn .c-body { margin-top: 12px; }
.c-beads { --k: calc(1 / 3); grid-column: 3; grid-row: 1 / 3; position: relative; margin: 0 0 0 calc(48 * var(--s)); padding-top: 72px; }
.c-beads ol { position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.c-beads ol::before, .c-beads ol::after { content: ""; position: absolute; left: 32px; right: 32px; top: 26px; height: 12px; border-radius: 6px; background: var(--frame); }
.c-beads ol::after { right: auto; width: calc((100% - 64px) * var(--k)); background: var(--pc-brown); }
.c-beads li { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--frame); font: 800 20px/1 var(--pc-round); color: var(--pc-ink); }
.c-beads li:is(.is-past, .is-today) { background: var(--pc-brown); color: var(--pc-cream); }
.c-bead-dog { position: absolute; left: 50%; bottom: 52px; margin-left: -36px; color: var(--pc-ink); }
.c-beads figcaption { display: flex; justify-content: space-between; margin-top: 14px; font: 700 16px/1.4 var(--font); }
/* Good to know: the four plain facts in two columns, then Request a stay. */
.p-page .c-know .c-stage { display: block; box-sizing: border-box; padding: 0 calc(164 * var(--s)); }
.c-know-list { list-style: none; margin: 0 0 calc(48 * var(--s)); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px calc(64 * var(--s)); }

/* Blog and Social: the room itself, framed like the Live tab's house: the lit room's gold wall, its cream floor. */
.wa-stage { width: calc(1312 * var(--s)); box-sizing: border-box; margin: 0 auto; padding: calc(64 * var(--s)) calc(100 * var(--s)) calc(56 * var(--s)); color: var(--deep);
  background: linear-gradient(transparent calc(100% - 20px * 1 - 36 * var(--s)), #f6e3c8 0 calc(100% - 20px * 1), transparent 0), var(--m-wall); box-shadow: inset 0 0 0 calc(20 * var(--s)) var(--frame), 0 30px 50px -30px var(--shade); }
.p-page :is(.is-blog, .is-social) > .wa-room { padding: calc(80 * var(--s)) 0 calc(120 * var(--s)); }
.w-posts, .w-accts, .w-photos { list-style: none; margin: 0; padding: 0; }
/* Blog: the writing desk, the posts propped on its top: paper on the wall, no outlines. */
.wa-desk { position: relative; margin-top: calc(8 * var(--s)); padding-bottom: calc(136 * var(--s)); }
.wa-desk .w-posts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(32 * var(--s)); align-items: end; padding: 0 calc(40 * var(--s)); }
.wa-desk-top { position: absolute; left: 0; right: 0; bottom: calc(108 * var(--s)); height: calc(32 * var(--s)); border-radius: calc(10 * var(--s)); background: var(--pc-brown); }
.wa-leg { position: absolute; bottom: 0; width: calc(32 * var(--s)); height: calc(116 * var(--s)); background: var(--pc-brown); }
.wa-leg.is-l { left: calc(64 * var(--s)); }
.wa-leg.is-r { right: calc(64 * var(--s)); }
.w-post { display: grid; align-content: start; background: var(--frame); box-shadow: 0 24px 40px -30px var(--shade); }
.w-post-pic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.w-post-words { display: grid; gap: 12px; justify-items: start; padding: calc(28 * var(--s)) calc(32 * var(--s)) calc(20 * var(--s)); }
.w-post .c-name { font-size: max(24px, calc(30 * var(--s))); }
.w-post .c-body { font-size: max(16px, calc(18 * var(--s))); }
.w-date { margin-top: -4px; }
/* Social: the two accounts, then the photo wall: prints in cream frames, hung a little unevenly; each opens larger. */
.p-page .w-accts { display: grid; grid-template-columns: 1fr 1fr; gap: calc(32 * var(--s)); }
.p-page .w-accts:not(:last-child) { margin-bottom: calc(80 * var(--s)); }
.w-acct { display: grid; gap: 16px; justify-items: start; align-content: start; padding: calc(40 * var(--s)) calc(44 * var(--s)) calc(44 * var(--s)); background: var(--frame); box-shadow: 0 24px 40px -30px var(--shade); }
.w-acct .c-btn { margin-top: 12px; }
.p-page .w-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(48 * var(--s)) calc(40 * var(--s)); padding: 0 calc(40 * var(--s)) calc(64 * var(--s)); }
.p-page .w-photo { padding: calc(16 * var(--s)); background: var(--frame); box-shadow: 0 24px 40px -28px var(--shade); }
.p-page .w-photo:nth-child(3n + 2) { translate: 0 calc(28 * var(--s)); }
.p-page .w-photo:nth-child(3n) { translate: 0 calc(-10 * var(--s)); }
.w-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.p-photo { display: block; }
.p-photo:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: calc(16 * var(--s) + 4px); }
/* The sheet, for a post (its picture, date and lines) or a photo larger. */
body.petcare .p-sheet-pic { display: block; width: 100%; height: auto; margin: 0 0 16px; }
body.petcare .d-sheet .w-date { margin: 0 0 16px; }

@media (max-width: 899px) {
  body.petcare:has(.p-page) .pc-head { background: var(--m-dark); }
  .wa-sky { width: auto; padding: 24px 16px 0; }
  .wa-sky .c-h1 { font-size: min(18vw, 96px); }
  .wa-sky .c-lead { margin-top: 16px; }
  /* The house whole at full width. Blog's sign sits on the roof; the ground floor's signs stand on the lawn in front of
     their rooms, below every pet's button (the fluffy dog's and the door's lowest edges, plus 4 px). */
  .wa-house { margin-top: -8px; padding-bottom: 52px; background: #f8e5c4; }
  body.petcare .p-room { height: 44px; padding: 0 18px; font-size: 20px; }
  .p-room.is-blog { --y: 300; }
  body.petcare :is(.p-room.is-live, .p-room.is-social) { top: max(calc(868 / 10.24 * 1% + 26px), calc(953.5 / 10.24 * 1% + 4px)); translate: -50% 0; }
  .p-room.is-live { --x: 620; }
  .p-room.is-social { --x: 1084; }
  .p-bar { top: var(--p-head, 69px); margin: -80px 0 80px; }
  .p-switch { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: calc(100% - 32px); box-sizing: border-box; margin-top: 12px; }
  body.petcare .p-switch .w-tab { min-width: 0; height: 56px; padding: 0; font-size: 20px; }
  .p-page .wa-room > .c-top { padding-top: 32px; }
  .p-page .c-house { padding-top: 8px; }
  .c-stream { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 16px 32px; }
  .c-stream-lead { max-width: none; }
  .c-on { gap: 14px; font-size: min(28px, 6.8vw); }
  .c-stream-go { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.petcare .c-stream-go .c-btn.is-big { height: 64px; }
  .c-face { height: auto; padding-bottom: 28px; }
  .c-face::after { height: 28px; }
  .c-face-head { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 16px 0; }
  .c-face-in { display: grid; gap: 40px; padding: 28px 16px 0; }
  .c-win { position: static; width: auto; }
  .c-glass { padding: 12px; }
  .c-cam .m-art { width: 187%; margin: -29.87% 0 0 -55.84%; }
  .c-live { position: static; width: fit-content; max-width: 100%; margin-top: 12px; padding: 10px 16px 10px 14px; border-radius: 22px; gap: 10px; background: var(--wall); }
  .c-sill { height: 16px; margin: 0 -8px; }
  .c-win-ctl { display: grid; gap: 12px; margin-top: 24px; }
  .c-win-ctl .c-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: auto; }
  .c-win-ctl .c-seg button { min-width: 0; padding: 0 6px; }
  .c-play { justify-self: start; }
  .c-door-front { position: relative; right: auto; bottom: auto; width: 300px; max-width: calc(100% - 24px); height: 460px; margin: 0 auto; border-radius: 150px 150px 0 0; box-shadow: 0 0 0 12px var(--frame); }
  .c-door-light { bottom: -28px; height: 56px; }
  .c-code { left: 12px; right: 12px; top: 150px; }
  .c-cells { grid-template-columns: repeat(6, 40px); gap: 4px; }
  .c-cell { width: 40px; height: 60px; font-size: 34px; }
  .c-knob { right: 22px; top: 320px; width: 22px; height: 22px; }
  .c-days-lawn { padding: 8px 0 64px; }
  .c-days-lawn .c-stage { width: auto; display: block; padding: 0 16px; }
  .c-beads { margin: 24px 0 0; }
  .p-page .c-know .c-stage { padding: 0 16px; }
  .c-know-list { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
  .wa-stage { width: auto; margin: 0 8px; padding: 32px 20px 40px; box-shadow: inset 0 0 0 8px var(--frame), 0 30px 50px -30px var(--shade);
    background: linear-gradient(transparent calc(100% - 32px), #f6e3c8 0 calc(100% - 8px), transparent 0), var(--m-wall); }
  .p-page :is(.is-blog, .is-social) > .wa-room { padding: 32px 0 64px; }
  .wa-desk { padding-bottom: 0; margin-bottom: 8px; }
  .wa-desk .w-posts { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 0 24px; }
  /* On the phone the desk is its top alone, the posts stacked above it. */
  .wa-desk-top { bottom: 0; height: 24px; }
  .wa-leg { display: none; }
  .w-post-words { padding: 20px 20px 12px; }
  .w-post .c-name { font-size: 26px; }
  .p-page .w-accts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .p-page .w-accts:not(:last-child) { margin-bottom: 40px; }
  .w-acct { padding: 28px 20px 24px; gap: 12px; }
  body.petcare .w-acct .c-btn.is-big { height: 64px; width: 100%; box-sizing: border-box; }
  .w-handle { font-size: min(28px, 7vw); overflow-wrap: anywhere; }
  .p-page .w-photos { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 0 24px; }
  .p-page .w-photo { padding: 8px; }
  .p-page .w-photo:nth-child(n) { translate: none; }
  .p-page .w-photo:nth-child(even) { translate: 0 12px; }
  .p-photo:focus-visible { outline-offset: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* A change of tab: the chosen room's light comes on (--pc-in-t) as the last one dims (--pc-out-t); the signs and
     the switch take their colours as Home's controls do. The content's move is petcare-house.js's. */
  .p-veil { transition: opacity var(--pc-out-t) var(--pc-out-e); }
  .p-page[data-tab="live"] .p-veil.is-live, .p-page[data-tab="blog"] .p-veil.is-blog, .p-page[data-tab="social"] .p-veil.is-social { transition: opacity var(--pc-in-t) var(--pc-curve); }
  .p-room, .p-switch .w-tab { transition: transform var(--pc-press-t) var(--pc-press-e), background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve), box-shadow var(--pc-hover-t) var(--pc-curve); }
  /* The switch comes down into place as the house goes under it, and lifts away as it comes back. */
  .p-bar { transition: opacity var(--pc-in-t) var(--pc-curve), translate var(--pc-in-t) var(--pc-curve); }
  /* The window's states fade; the bedroom breathes only while the sample is live (is-live, petcare-house.js). */
  .c-cam::after { transition: opacity var(--pc-sheet-t) var(--pc-curve); }
  .c-live .c-dot { transition: background-color var(--pc-hover-t) var(--pc-curve), box-shadow var(--pc-hover-t) var(--pc-curve); }
  .c-cell { transition: box-shadow var(--pc-hover-t) var(--pc-curve); }
  .c-win-ctl .c-seg button { transition: background-color var(--pc-hover-t) var(--pc-curve); }
}

/* ==========================================================================
   The shell and how pages move (PC41, direction A: the thing you tap travels). Every rule uses
   the motion tokens on :root. Hover lives under (hover: hover); touch has press, busy and done.
   ========================================================================== */


/* ---------- the footer: pages, follow, language; the year and Privacy along its foot ---------- */
body.petcare .pc-foot-id .pc-foot-hours { margin-top: 6px; }
body.petcare .pc-foot-hours .pc-draft { font-size: .95rem; }
body.petcare .pc-foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 14px; border-top: 2px dashed var(--pc-gold); }
body.petcare .pc-foot-base p { margin: 0; }
body.petcare .pc-foot-base a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { body.petcare .pc-foot a:hover { color: var(--pc-warm); } }

/* ---------- where a tapped thing lands: each page's title, as wide as its words ---------- */
body.petcare main h1 { width: fit-content; }

/* Touch shows our own press, not the browser's grey or blue flash. */
body.petcare :is(a, button, summary, label, input, select) { -webkit-tap-highlight-color: transparent; }

/* ---------- six states: rest, hover, press, focus, busy, done ----------
   Press: down like a stamp, 100 ms. Busy: held down until the next page or answer comes.
   Done: the page you are on (aria-current), a tick, a turned tag, a sent request. */
body.petcare .pc-btn .icon { transition: transform var(--pc-hover-t) var(--pc-curve), opacity var(--pc-hover-t) var(--pc-curve); }
@media (hover: hover) { body.petcare .pc-btn:hover .icon { transform: translateX(3px); } }
body.petcare .pc-btn:active,
body.petcare .pc-btn.is-going,
body.petcare .pc-btn.is-busy { transform: translateY(2px) scale(.985); }
body.petcare .pc-lang,
body.petcare .pc-acct,
body.petcare .pc-turn,
body.petcare .rq-textbtn,
body.petcare .rr-copy { transition: background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve), transform var(--pc-press-t) var(--pc-press-e); }
body.petcare .pc-nav a:active,
body.petcare .pc-lang:active,
body.petcare .pc-foot-col a:active,
body.petcare .pc-turn:active,
body.petcare .rq-textbtn:active,
body.petcare .rr-copy:active { transform: translateY(2px); }
body.petcare .pc-nav a.is-going { background: var(--pc-floor-on); transform: translateY(2px); }
body.petcare a.is-going,
body.petcare .is-busy { cursor: progress; }
/* Ticks: the box presses in; checked, the tick draws (done). */
body.petcare .pc-box { transition: background-color var(--pc-hover-t) var(--pc-curve), transform var(--pc-press-t) var(--pc-press-e); }
body.petcare .pc-tick:active .pc-box { transform: scale(.9); }
/* Fields: hover firms the edge; focus is the ring. */
body.petcare .rq-input { transition: box-shadow var(--pc-hover-t) var(--pc-curve), opacity var(--pc-out-t) var(--pc-out-e); }
@media (hover: hover) { body.petcare .rq-input:hover { box-shadow: inset 0 0 0 1px var(--pc-brown); } }
/* The send button: "Sending…" held down, then "Sent" on paper; its box never changes size. */
body.petcare .rq-send-btn.is-busy .icon,
body.petcare .rq-send-btn.is-done .icon { opacity: 0; transform: translateX(6px); }
body.petcare .pc-page .rq-send-btn.is-done { background: var(--pc-card); color: var(--pc-brown); cursor: default; }
body.petcare .rq-send-btn[disabled] { cursor: progress; }

/* Keyboard focus: the ring grows to 8 px, then settles to 3 px, in the site's brown. */
@media (prefers-reduced-motion: no-preference) {
  body.petcare :focus-visible,
  body.petcare .pc-tick input:focus-visible + .pc-box,
  body.petcare .pc-stop-btn:focus-visible .pc-stop-dot { animation: pc-ring calc(var(--pc-ring-t1) + var(--pc-ring-t2)) both; }
  @keyframes pc-ring {
    0% { outline-width: 0; animation-timing-function: var(--pc-press-e); }
    25% { outline-width: 8px; animation-timing-function: var(--pc-curve); }
    100% { outline-width: 3px; } }
}

/* ---------- the send: the slip's edge traces while the request is out (app.js sets --rs-p) ---------- */
body.petcare .rs-trace { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
body.petcare .rs-trace path { fill: none; stroke: var(--pc-brown); stroke-width: 3; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--rs-p, 0)); }
body.petcare .rs-trace.is-closing path { transition: stroke-dashoffset var(--pc-out-t) var(--pc-curve); }
/* ---------- page to page (request-send.css opts every pet care page in) ----------
   The header stays put; the thing tapped (pc-go, petcare-move.js) or the sent slip (rs-request)
   travels in 350 ms; everything else cross-fades in 200 ms, the old page mostly gone before the
   new one comes, so two pages never sit on each other. The traveller changes from what was
   tapped to the title it lands on without a double image: the first fades as it leaves, the
   second as it arrives, each scaled by its height, as words are. Nothing tapped: the title just
   fades with the page. */
@media (prefers-reduced-motion: no-preference) {
  body.petcare .pc-head { view-transition-name: rs-head; }
  ::view-transition-group(*) { animation-duration: var(--pc-travel-t); animation-timing-function: var(--pc-curve); }
  ::view-transition-old(root),
  ::view-transition-old(rs-head) { animation: pc-vt-out calc(var(--pc-fade-t) * .75) var(--pc-out-e) both; }
  ::view-transition-new(root),
  ::view-transition-new(rs-head) { animation: pc-vt-in var(--pc-fade-t) var(--pc-in-e) calc(var(--pc-fade-t) * .5) both; }
  ::view-transition-group(rs-head) { animation: none; }
  ::view-transition-old(pc-go),
  ::view-transition-new(pc-go) { width: auto; height: 100%; }
  ::view-transition-old(pc-go) { animation: pc-vt-out calc(var(--pc-travel-t) * .5) var(--pc-out-e) both; }
  ::view-transition-new(pc-go) { animation: pc-vt-in calc(var(--pc-travel-t) * .6) var(--pc-in-e) calc(var(--pc-travel-t) * .4) both; }
  ::view-transition-old(rs-request) { animation: pc-vt-out var(--pc-travel-t) var(--pc-curve) both; }
  ::view-transition-new(rs-request) { animation: pc-vt-in var(--pc-travel-t) var(--pc-curve) both; }
  ::view-transition-old(pc-go):only-child,
  ::view-transition-old(rs-request):only-child { animation: pc-vt-out var(--pc-fade-t) var(--pc-out-e) both; }
  ::view-transition-new(pc-go):only-child,
  ::view-transition-new(rs-request):only-child { animation: pc-vt-in var(--pc-fade-t) var(--pc-in-e) both; }
  @keyframes pc-vt-out { to { opacity: 0; } }
  @keyframes pc-vt-in { from { opacity: 0; } }
}

/* ---------- phone ---------- */
/* On a phone the closing picture's labels are 44 px tall and sit in the clear spots round the animals' tap spots, never over them: Home on the roof, Dorm by the lamp, Care by the tub, Porch on the ground by the door. */
@media (max-width: 600px) {
  .m-close .m-room { min-height: 44px; }
  .m-room.is-home { --x: 50%; --y: 20%; }
  .m-room.is-stays { --x: 18.5%; --y: 70%; }
  .m-room.is-care { --x: 86.5%; --y: 58%; }
  .m-room.is-live { --x: 82%; --y: 89%; }
}
/* Under 372 px the spam-check box (a fixed 300 px) shrinks to fit the request slip; under 340 px the slip tightens too. */
@media (max-width: 371px) {
  .c-slip { grid-template-columns: minmax(0, 1fr); }
  .c-slip .human-check { zoom: .93; }
}
@media (max-width: 339px) {
  .c-slip-room { padding: 8px; }
  .c-slip { padding-inline: 14px; }
  .c-slip .human-check { zoom: .86; }
  .h-hits .h-hit.is-door, .r1.is-night .h-hits .h-hit.is-door { --x: 912; }
  :is(.m-close-pic, .wa-house) .h-hits .h-hit.is-door { --x: 906; }
  .m-close .m-room { padding: 0 8px; gap: 3px; }
  .m-room.is-live { --x: 86%; }
}
/* At 320 px Home's two buttons fit their column. */
@media (max-width: 339px) {
  .r1-in { min-width: 0; }
  body.petcare .pc-page .r-acts .r-btn { padding: 0 12px; gap: 8px; }
}
/* A page's tag on the error pages keeps its name whole: a two-word name ("Welcome Home") broke between its words. */
body.petcare .ps-tag-name { white-space: nowrap; }
/* Phone targets are 44 px: the logo link, the footer's links and the forms' privacy link (round 40). */
@media (max-width: 600px) {
  body.petcare .pc-page .pc-brand { min-width: 44px; min-height: 44px; }
  body.petcare .pc-foot-col a,
  body.petcare .pc-foot-base a { min-width: 44px; min-height: 44px; }
}

/* ---------- PC49 (round 35): Dorm's drop-off and pick-up times beside the dates, and the estimate's total ---------- */
/* A time beside its date when the two fit, under it when they don't. */
.is-stays .c-dates { display: grid; gap: 20px; }
.is-stays .c-pair { display: flex; flex-wrap: wrap; gap: 16px; }
.is-stays .c-pair > .c-field { flex: 1 1 224px; }   /* a date input needs about this much in Chrome */
.is-stays .c-pair > .c-at { flex: 1 1 144px; }
.is-stays .c-sel { cursor: pointer; }
@supports (appearance: base-select) {
  .is-stays .c-sel, .is-stays .c-sel::picker(select) { appearance: base-select; }
  .is-stays .c-sel { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .is-stays .c-sel::picker-icon { color: var(--pc-brown); }
  .is-stays .c-sel::picker(select) { margin-top: 8px; padding: 8px; max-height: 336px; border: 0; border-radius: 24px; background: var(--frame); box-shadow: 0 2px 0 rgba(116, 83, 62, .12), 0 28px 44px -28px var(--shade); }
  .is-stays .c-sel option { min-height: 44px; padding: 0 16px; border-radius: 22px; font: 600 18px/1 var(--font); color: var(--pc-ink); }
  .is-stays .c-sel option:checked { background: var(--pc-orange); }
  .is-stays .c-sel option:hover { background: var(--board); }
  .is-stays .c-sel option::checkmark { display: none; }
}
/* The estimate with a total (billed by the day): each pet's rate steps down a size and the total, after the stay's
   length, is the large line; it breaks between the length and the amount, never inside either. A special rate's menu
   price is struck before the offer's. */
.is-stays .f-rate-lines:has(.f-total) .c-name:not(.f-total) { font-size: max(20px, calc(24 * var(--s))); line-height: 1.25; }
.is-stays .f-rate-lines .f-total { margin-top: 6px; }
.f-total span, .rr-total span { white-space: nowrap; }
.is-stays .f-rate-lines s { font-weight: 600; text-decoration-thickness: 2px; }
/* The dates with their times break before "to" rather than inside a time. */
.is-stays [data-sum="dates"] > span:first-child { text-wrap: balance; }
/* The receipt's total, after the pets' rates. */
body.petcare .rr-total { margin: 6px 0 0; font: 800 1.15rem/1.35 var(--pc-round); }
/* The receipt: the dates with their times break before "to", and a special rate's struck menu price reads lighter. */
body.petcare [data-rr-line="dates"] .rr-ink-row { text-wrap: balance; }
body.petcare .rr-rates s { font-weight: 500; }

/* ---------- the pet parent accounts, look A "the house" (design part 2, sheet 10) ----------
   One root class, .ac. Signs and slips sit on the house picture (a crop of its 1536 x 1024 view: 275 240 975 720) at the
   points named by --x and --y, in that picture's units; the classes below set them, never an inline style. */
body.petcare .ac { max-width: 1160px; margin: 40px auto 120px; padding: 0 var(--pc-pad, 24px); color: var(--pc-ink); font-family: var(--pc-round); }
@media (min-width: 960px) { body.petcare .ac { max-width: none; padding-inline: var(--pc-edge); } }   /* on the content edges (#201 A) */
body.petcare .ac :focus-visible { outline: 3px solid var(--pc-brown); outline-offset: 3px; border-radius: 8px; }
body.petcare .ac-title { font-size: clamp(48px, 7vw, 92px); line-height: 1; margin: 0 0 20px; color: var(--pc-brown); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
body.petcare :lang(zh) .ac-title { line-height: 1.15; letter-spacing: 0; }
body.petcare .ac-lead { font-size: 20px; line-height: 1.45; margin: 0 0 32px; max-width: 30ch; }
body.petcare .ac-wide-lead { max-width: none; }
body.petcare .ac h2:not(.ac-title) { font-size: clamp(30px, 3.4vw, 40px); margin: 72px 0 8px; color: var(--pc-brown); font-weight: 800; }
body.petcare .ac-signup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
/* The picture stays in view beside the form on the two-column pages only; My account's single column scrolls it away, or it
   would sit over My pets and My details and take their clicks (owner, 2026-11-20: "totally bugged"). */
body.petcare .ac-signup .ac-art { position: sticky; top: 120px; }
body.petcare .ac-house { position: relative; }
body.petcare .ac-house .ac-svg { display: block; width: 100%; height: auto; }
body.petcare .ac-sign { position: absolute; left: calc((var(--x) - 275) / 975 * 100%); top: calc((var(--y) - 240) / 720 * 100%); transform: translate(-50%, 0) rotate(-3deg); background: var(--pc-card); color: var(--pc-brown); font-weight: 800; font-size: 19px; padding: 8px 16px; border-radius: 8px; box-shadow: 0 3px 0 var(--pc-shade), 0 8px 14px var(--pc-shade); white-space: nowrap; }
body.petcare .ac-sign::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 3px; height: 16px; background: var(--pc-brown); transform: translateX(-50%); }
body.petcare .ac-sign.ac-blank { background: var(--pc-latte); font-weight: 600; transform: translate(-50%, 0) rotate(3deg); }
body.petcare .ac-big .ac-sign { font-size: 24px; padding: 10px 20px; }
body.petcare .ac-at-0 { --x: 430; --y: 728; } body.petcare .ac-at-1 { --x: 755; --y: 440; } body.petcare .ac-at-2 { --x: 865; --y: 700; }
body.petcare .ac-at-3 { --x: 960; --y: 560; } body.petcare .ac-at-4 { --x: 330; --y: 480; } body.petcare .ac-at-5 { --x: 1040; --y: 440; }
body.petcare .ac-at-door { --x: 760; --y: 628; } body.petcare .ac-at-dorm { --x: 600; --y: 650; } body.petcare .ac-at-slip { --x: 395; --y: 655; }
body.petcare .ac-at-watch { --x: 600; --y: 715; } body.petcare .ac-at-care { --x: 1085; --y: 750; }
body.petcare .ac-slip { position: absolute; left: calc((var(--x) - 275) / 975 * 100%); top: calc((var(--y) - 240) / 720 * 100%); transform: translate(-50%, 0) rotate(1.5deg); background: var(--pc-card); padding: 12px 18px; border-radius: 6px; box-shadow: 0 3px 0 var(--pc-shade), 0 8px 14px var(--pc-shade); display: grid; gap: 2px; font-size: 16px; line-height: 1.3; white-space: nowrap; text-decoration: none; color: var(--pc-ink); }
body.petcare .ac-slip b { font-size: 21px; color: var(--pc-brown); }
body.petcare .ac em, body.petcare .ac-slip em { font-style: normal; }
body.petcare .ac-slip em, body.petcare .ac-row em { font-weight: 800; color: var(--pc-warm); }
body.petcare .ac-slip em.ok, body.petcare .ac-row em.ok { color: var(--ok); }
body.petcare .ac-row em.bad { color: var(--bad); }
body.petcare .ac-watch { position: absolute; left: calc((var(--x) - 275) / 975 * 100%); top: calc((var(--y) - 240) / 720 * 100%); --x: 600; --y: 715; transform: translate(-50%, -50%); background: var(--pc-brown); color: var(--pc-cream) !important; font-weight: 800; font-size: 20px; padding: 12px 22px; border-radius: 12px; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 var(--pc-shade); }
/* forms */
body.petcare .ac-form { display: grid; gap: 22px; }
body.petcare .ac-fields { display: grid; gap: 22px; }
body.petcare .ac-f { display: grid; gap: 8px; font-size: 20px; font-weight: 800; color: var(--pc-brown); }
body.petcare .ac-f label { font: inherit; }
body.petcare .ac-f input { font: inherit; font-weight: 500; font-size: 22px; color: var(--pc-ink); background: var(--pc-card); border: 0; border-radius: 16px; height: 60px; padding: 0 20px; width: 100%; box-sizing: border-box; box-shadow: 0 3px 0 var(--pc-shade); }
body.petcare .ac-f input::placeholder, body.petcare .ac-pet input::placeholder { color: var(--pc-ink); opacity: .6; }
body.petcare .ac-f em { font-weight: 500; font-size: 17px; color: var(--pc-ink); }
body.petcare .ac-f input.ac-code { font-size: 46px; font-weight: 800; letter-spacing: .35em; height: 96px; text-align: center; color: var(--pc-brown); padding: 0 0 0 .35em; }
body.petcare .ac [aria-invalid="true"] { outline: 2px solid var(--rq-alert, #a3372d); }
body.petcare .ac .rq-err, body.petcare .ac .rq-notice { font-size: 17px; font-weight: 500; }
body.petcare .ac-go { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 8px; }
body.petcare .ac-go .pc-btn { font-size: 20px; padding: 0 44px; height: 60px; }
body.petcare .ac-link, body.petcare .ac-go a { font: inherit; font-size: 19px; font-weight: 700; color: var(--pc-brown); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--pc-orange); }
body.petcare .ac-alt { font-size: 19px; line-height: 1.45; margin: 6px 0 0; max-width: 34ch; }
body.petcare .ac-alt a { font-weight: 800; color: var(--pc-brown); }
body.petcare .ac-back { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 700; color: var(--pc-brown); text-decoration: none; margin-bottom: 12px; }
body.petcare .ac-back .icon { transform: rotate(180deg); }
/* sign-up's pets */
body.petcare .ac-pets { display: grid; gap: 16px; }
body.petcare .ac-pet { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; background: var(--pc-card); border: 0; margin: 0; min-width: 0; border-radius: var(--r-card); padding: 18px; box-shadow: 0 3px 0 var(--pc-shade); }
body.petcare .ac-pet input:not(.visually-hidden) { font: inherit; color: var(--pc-ink); background: var(--pc-latte); border: 0; border-radius: 14px; height: 52px; padding: 0 16px; font-size: 20px; min-width: 0; width: 100%; box-sizing: border-box; }
body.petcare .ac-name { grid-column: 1 / -1; font-weight: 800 !important; font-size: 24px !important; }
body.petcare .ac-kind { display: flex; gap: 8px; }
body.petcare .ac-kind label span { display: flex; align-items: center; font-weight: 700; font-size: 18px; height: 52px; padding: 0 24px; border-radius: 14px; background: var(--pc-latte); color: var(--pc-brown); cursor: pointer; }
body.petcare .ac-kind input:checked + span { background: var(--pc-brown); color: var(--pc-cream); }
body.petcare .ac-kind input:focus-visible + span { outline: 3px solid var(--pc-brown); outline-offset: 3px; }
body.petcare .ac-wt { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--pc-brown); }
body.petcare .ac-wt input { width: 110px !important; }
body.petcare .ac-errs, body.petcare .ac-pet .ac-remove, body.petcare .ac-pet .ac-note { grid-column: 1 / -1; }
body.petcare .ac-errs:empty { display: none; }
body.petcare .ac-pet .ac-remove { justify-self: start; }
body.petcare .ac-add { font: inherit; font-weight: 800; font-size: 22px; background: none; border: 0; color: var(--pc-warm); text-align: left; padding: 8px 0; cursor: pointer; }
body.petcare .ac-add:disabled { opacity: .5; cursor: default; }
body.petcare .ac-step + .ac-step { margin-top: 56px; }
body.petcare .ac-step h2.ac-title { margin-top: 0; }
body.petcare .ac-form.is-steps [data-ac-step="2"], body.petcare .ac-form.is-steps[data-now="2"] [data-ac-step="1"] { display: none; }
body.petcare .ac-form.is-steps[data-now="2"] [data-ac-step="2"] { display: block; }
body.petcare .ac-form.is-steps .ac-step + .ac-step { margin-top: 0; }
body.petcare .ac-signup.is-steps[data-now="1"] [data-ac-pet-sign], body.petcare .ac-signup.is-steps[data-now="2"] .ac-at-door { display: none; }
/* My account */
body.petcare .ac-account .ac-house { margin-top: 8px; }
body.petcare .ac-pets-lines { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 20px; font-size: 21px; font-weight: 700; }
body.petcare .ac-pets-lines p { margin: 0; color: var(--ok); }
body.petcare .ac-pets-lines .miss, body.petcare .rec.miss { color: var(--pc-warm); }
body.petcare .rec { font-weight: 700; color: var(--ok); }
body.petcare .ac-desk-lines p { font-size: 19px; margin: 6px 0; }
body.petcare .ac-steps { display: grid; gap: 14px; margin-top: 12px; }
body.petcare .ac-steps p { margin: 0; font-size: 22px; line-height: 1.35; }
body.petcare .ac-steps p:last-child { font-weight: 800; color: var(--pc-brown); }
body.petcare .ac-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border: 0; border-bottom: 2px solid var(--pc-shade); text-decoration: none; color: var(--pc-ink); font-size: 20px; background: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
body.petcare .ac-row b { display: block; font-size: 28px; color: var(--pc-brown); margin-bottom: 2px; }
body.petcare .ac-row em { font-size: 22px; }
body.petcare .ac-row i { font-style: normal; font-size: 32px; color: var(--pc-brown); }
body.petcare .ac-rows { margin-top: 56px; border-top: 2px solid var(--pc-shade); }
body.petcare .ac-rows .ac-row:last-child { border-bottom: 2px solid var(--pc-shade); }
body.petcare .ac-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
body.petcare .ac-next a { display: block; background: var(--pc-brown); color: var(--pc-cream); border-radius: var(--r-card); padding: 32px; text-decoration: none; font-size: 20px; }
body.petcare .ac-next a:last-child { background: var(--pc-orange); color: var(--pc-brown); }
body.petcare .ac-next b { display: block; font-size: 34px; margin-bottom: 6px; }
body.petcare .ac-only-phone { display: none; }
body.petcare .ac-account.is-new .ac-only-phone { display: none; }
/* My pets */
body.petcare .ac-pcard { background: var(--pc-card); border-radius: var(--r-card); padding: 22px 24px; box-shadow: 0 3px 0 var(--pc-shade); display: grid; gap: 4px; }
body.petcare .ac-pcard h2 { margin: 0 !important; font-size: 34px !important; }
body.petcare .ac-pcard p { margin: 0; font-size: 20px; }
body.petcare .ac-acts { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 10px; }
body.petcare .ac-acts .pc-btn { font-size: 19px; padding: 0 34px; height: 54px; }
body.petcare .ac-pcard .ac-acts > details { flex: none; }
body.petcare .ac-pcard .ac-acts > details[open] { flex-basis: 100%; }
body.petcare .ac-pcard .ac-acts:has(details[open]) .ac-rm { display: none; }
body.petcare .ac-pcard summary, body.petcare .ac-addpet summary { list-style: none; cursor: pointer; }
body.petcare .ac-pcard summary::-webkit-details-marker, body.petcare .ac-addpet summary::-webkit-details-marker { display: none; }
body.petcare .ac-pcard details[open] > summary { display: none; }
body.petcare .ac-addpet[open] > summary { display: none; }
body.petcare .ac-pet-form { margin-top: 6px; gap: 12px; }
body.petcare .ac-pcard .ac-pet { box-shadow: none; padding: 0; background: none; }
body.petcare .ac-pcard .ac-pet input:not(.visually-hidden), body.petcare .ac-addpet .ac-pet input:not(.visually-hidden) { background: var(--pc-latte); }
body.petcare .ac-addpet .ac-pet { background: var(--pc-card); }
/* My details: the desk book */
body.petcare .ac-book { display: grid; grid-template-columns: minmax(0, 1fr); }
/* A long email address wraps, rather than widening the book past a phone's edge and cutting off "Change". */
body.petcare .ac-row > :first-child, body.petcare .ac-val { min-width: 0; overflow-wrap: anywhere; }
body.petcare .ac-part > summary { list-style: none; cursor: pointer; border-top: 2px solid var(--pc-shade); }
body.petcare .ac-part > summary::-webkit-details-marker { display: none; }
body.petcare .ac-book > .ac-part:first-child > summary, body.petcare .ac-book > .ac-part:first-child[open] > summary { border-top: 2px solid var(--pc-shade); }
body.petcare .ac-row.ac-line b { font-size: 26px; margin-bottom: 0; }
body.petcare .ac-sub { font-size: 20px; }
body.petcare .ac-chg { font-size: 22px; font-weight: 800; color: var(--pc-brown); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--pc-orange); flex: none; }
body.petcare .ac-part .ac-t-open, body.petcare .ac-part[open] .ac-t-closed, body.petcare .ac-part[open] .ac-sub, body.petcare .ac-part[open] .ac-chg { display: none; }
body.petcare .ac-part[open] .ac-t-open { display: block; font-size: 34px; }
body.petcare .ac-part[open] > summary { border-bottom: 0; padding-bottom: 8px; }
body.petcare .ac-open { padding: 8px 0 28px; border-bottom: 2px solid var(--pc-shade); }
body.petcare .ac-open h2 { margin: 12px 0 14px !important; font-size: 34px !important; }
body.petcare .ac-val { font-size: 22px; font-weight: 700; margin: 0 0 6px; max-width: 30ch; line-height: 1.4; }
body.petcare .ac-signout { padding: 0; border-top: 0; display: block; }
body.petcare .ac-signout button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 24px 0; background: none; border: 0; border-bottom: 2px solid var(--pc-shade); font: inherit; color: var(--pc-ink); cursor: pointer; text-align: left; }
body.petcare .ac-signout b { display: block; font-size: 26px; color: var(--pc-brown); }
body.petcare .ac-signout i { font-style: normal; font-size: 32px; color: var(--pc-brown); }
body.petcare .ac-delete > summary { border-top: 0; }
body.petcare .ac-delete[open] > summary { display: none; }
body.petcare .ac-delete .ac-open { border-top: 2px solid var(--pc-shade); }
body.petcare .ac-wide { grid-column: 1 / -1; }
/* the request forms, signed in (screen 12): saved pets as name signs, one line of contact */
body.petcare .rq-pick { display: flex; flex-wrap: wrap; gap: 22px; margin: 14px 0 8px; }
body.petcare .rq-pick label { position: relative; cursor: pointer; }
body.petcare .rq-sign { position: relative; display: inline-block; margin-top: 18px; background: var(--pc-card); color: var(--pc-brown); font: 800 26px/1.2 var(--pc-round); padding: 14px 28px; border-radius: 8px; transform: rotate(-2deg); box-shadow: 0 3px 0 var(--pc-shade), 0 8px 14px var(--pc-shade); transition: background-color var(--pc-hover-t) var(--pc-curve), color var(--pc-hover-t) var(--pc-curve); }
body.petcare .rq-pick label:nth-child(even) .rq-sign { transform: rotate(2deg); }
body.petcare .rq-sign::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 3px; height: 16px; background: var(--pc-brown); transform: translateX(-50%); }
body.petcare .rq-pick input:checked + .rq-sign { background: var(--pc-brown); color: var(--pc-cream); }
body.petcare .rq-pick input:focus-visible + .rq-sign { outline: 3px solid var(--pc-brown); outline-offset: 4px; }
body.petcare .rq-addpet { font: 800 1.15rem/1.3 var(--pc-round); background: none; border: 0; color: var(--pc-warm); padding: 8px 0; cursor: pointer; text-align: left; }
body.petcare .rq-addpet:disabled { opacity: .5; cursor: default; }
body.petcare .rq-contact-saved { margin: 6px 0 0; }
body.petcare .rq-saved-h { margin: 0 0 4px; font: 800 1rem/1.3 var(--pc-round); }
body.petcare .rq-saved > summary { list-style: none; cursor: pointer; font: 700 1.2rem/1.4 var(--pc-round); color: var(--pc-brown); }
body.petcare .rq-saved > summary::-webkit-details-marker { display: none; }
body.petcare .rq-saved-change { margin-left: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--pc-orange); text-decoration-thickness: 2px; }
body.petcare .rq-saved[open] .rq-saved-change { display: none; }
/* phone */
@media (max-width: 760px) {
  body.petcare .ac { margin-top: 20px; margin-bottom: 80px; padding: 0 20px; }
  body.petcare .ac-signup { grid-template-columns: 1fr; gap: 28px; }
  body.petcare .ac-art { position: static; }
  /* DESIGN's phone order: back link, heading, lead, the house, then the form. The wrappers dissolve so each part can be ordered. */
  body.petcare .ac-signup :is(.ac-left, .ac-form, .ac-step), body.petcare .ac-form.is-steps[data-now="2"] [data-ac-step="2"] { display: contents; }
  body.petcare .ac-signup :is(.ac-left, .ac-form, .ac-step) > * { order: 3; }
  body.petcare .ac-signup :is(.ac-back, .ac-backstep) { order: -1; }
  body.petcare .ac-signup .ac-title { order: 0; margin: 0; }
  body.petcare .ac-signup .ac-lead { order: 1; margin: 0; }
  body.petcare .ac-signup .ac-art { order: 2; }
  body.petcare .ac-p-details .ac-art { order: 9; }
  body.petcare .ac-sign, body.petcare .ac-big .ac-sign { font-size: 15px; padding: 5px 10px; }
  body.petcare .ac-sign::before { height: 10px; }
  body.petcare .ac-slip { display: none; }
  body.petcare .ac-watch { font-size: 15px; padding: 6px 10px; white-space: normal; text-align: center; line-height: 1.1; }
  body.petcare .ac-only-phone { display: block; }
  body.petcare .ac-account.is-new .ac-only-phone { display: block; }
  body.petcare .ac-only-desk { display: none; }
  body.petcare .ac-pets-lines { flex-direction: column; gap: 6px; font-size: 19px; }
  body.petcare .ac h2:not(.ac-title) { margin-top: 56px; }
  body.petcare .ac-row b { font-size: 24px; }
  body.petcare .ac-row { padding: 20px 0; }
  body.petcare .ac-next { grid-template-columns: 1fr; }
  body.petcare .ac-pet { padding: 16px; }
  body.petcare .ac-kind label span { padding: 0 12px; }
  body.petcare .ac-wt input { width: 112px !important; }
  body.petcare .ac-f input.ac-code { font-size: 36px; height: 84px; }
  body.petcare .ac-go { gap: 16px 24px; }
  body.petcare .ac-sign.ac-at-door { transform: translate(-50%, 0) rotate(-3deg); }
  body.petcare .rq-sign { font-size: 22px; padding: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) { body.petcare .rq-sign { transition: none; } }
body.petcare .ac-backstep { margin-bottom: 12px; display: block; }
body.petcare .pc-lang { white-space: nowrap; }
body.petcare .ac-backstep { text-align: left; justify-self: start; }

/* ---------- Sizes, one scale per width (owner's pick "B", round 41) ----------
   Phone (to 600 px): page titles 40, big display lines 36, section headings 30, sub-headings 22, paper cards 20.
   Tablet (601 to 899 px): 56, 48, 36, 24 and 22. Desktop (900 px up): 80, 80, 48, 30 and 24, scaled by --s or the width
   as before. Fields and buttons are 52 tall on a phone and a tablet (56 big; type never under 16 px, so an iPhone does not
   zoom) and 56 and 52 on a desktop (60 big). The bottom bar and the header keep their own sizes. */
@media (max-width: 899px) {
  body.petcare .c-page :is(.c-input, .rq-input):not(.ag-name-in), .c-code-in { height: 52px; font-size: 17px; }
  body.petcare .c-page .ag-name-in { height: 52px; }
  body.petcare .ac-f input:not(.ac-code), body.petcare .ac-pet input:not(.visually-hidden):not(.ac-name) { height: 52px; font-size: 17px; }
  body.petcare .c-page .c-area { height: 104px; border-radius: 22px; }
  body.petcare .c-page .c-btn { height: 52px; }
  body.petcare .c-page .c-btn.is-big { height: 56px; font-size: 17px; }
  body.petcare .pc-page .r-btn, body.petcare .pc-page .r-btn.m-big { height: 52px; font-size: 16px; }
  body.petcare .ac-go .pc-btn { height: 52px; font-size: 17px; }
  .c-day { height: 44px; }
  .c-panes li { min-height: 64px; }
  .c-panes label { padding-bottom: 10px; }
  .c-t, :lang(zh) .c-t { font-size: 22px; }
  .c-round { width: 48px; height: 48px; }
  body.petcare .ac-back { min-height: 44px; }
}
@media (max-width: 600px) {
  .c-h1, .c-h1[class*="is-fit"], body.petcare .ac-title { font-size: 40px; }
  .r1 .r-h1 { --r-h: min(40px, 12.2vw); }
  .m-huge, .c-page .m-huge, .m-ask .m-ask-h, .m-ask-h, .c-how-h, .m-close-name { font-size: 36px; }
  .c-h2, .b-h2, .m-display, body.petcare .ac h2:not(.ac-title) { font-size: 30px; }
  .c-name, .c-req-grid legend.c-name, .m-name, .b-name, body.petcare .c-page .rq-legend { font-size: 22px; }
  .pl-t { font-size: 20px; }
}
@media (min-width: 601px) and (max-width: 899px) {
  .c-h1, .c-h1[class*="is-fit"], body.petcare .ac-title { font-size: 56px; }
  .r1 .r-h1 { --r-h: 56px; }
  .m-huge, .c-page .m-huge, .m-ask .m-ask-h, .m-ask-h, .c-how-h, .m-close-name { font-size: 48px; }
  .c-h2, .b-h2, .m-display, body.petcare .ac h2:not(.ac-title) { font-size: 36px; }
  .c-name, .c-req-grid legend.c-name, .m-name, .b-name, body.petcare .c-page .rq-legend { font-size: 24px; }
  .pl-t { font-size: 22px; }
}
@media (min-width: 900px) {
  .c-h1 { font-size: calc(80 * var(--s)); }
  .c-h1.is-fit-96 { font-size: calc(64 * var(--s)); }
  .c-h1.is-fit-76 { font-size: calc(51 * var(--s)); }
  .c-h1.is-fit-60 { font-size: calc(40 * var(--s)); }
  .c-h1.is-fit-48 { font-size: calc(32 * var(--s)); }
  .r1 .r-h1 { --r-h: 5.556vw; }
  .m-huge { font-size: min(80px, 5.556vw); }
  .c-page .m-huge { font-size: calc(80 * var(--s)); }
  .m-ask .m-ask-h { font-size: min(64px, 4.44vw); }
  body.petcare .ac-title { font-size: clamp(48px, 7vw, 80px); }
  .c-h2 { font-size: calc(48 * var(--s)); }
  .b-h2, .m-display { font-size: 48px; }
  .c-name, .c-req-grid legend.c-name { font-size: max(22px, calc(30 * var(--s))); }
  .m-name, .b-name { font-size: 30px; }
  body.petcare .c-page .rq-legend { font-size: max(22px, calc(30 * var(--s))); }
  .pl-t { font-size: 24px; }
  body.petcare .c-page :is(.c-input, .rq-input):not(.ag-name-in), .c-code-in { height: 56px; font-size: 18px; }
  body.petcare .c-page .ag-name-in { height: 56px; }
  body.petcare .ac-f input:not(.ac-code) { height: 56px; font-size: 18px; }
  body.petcare .ac-pet input:not(.visually-hidden):not(.ac-name) { font-size: 18px; }
  body.petcare .c-page .c-area { height: 120px; }
  body.petcare .c-page .c-btn, body.petcare .pc-page .r-btn, body.petcare .ac-go .pc-btn { height: 52px; }
  body.petcare .c-page .c-btn.is-big, body.petcare .pc-page .r-btn.m-big { height: 60px; font-size: 18px; }
  .c-day { height: 52px; font-size: 18px; }
  .c-window { height: calc(180 * var(--s)); min-height: 120px; }
  .c-window:is([data-rest="1"], [data-rest="2"], [data-rest="3"], [data-rest="4"]) { height: auto; }
  .c-window:is([data-rest="1"], [data-rest="2"], [data-rest="3"], [data-rest="4"]) .c-panes li { min-height: calc(140 * var(--s)); }
  .c-t { font-size: max(26px, calc(32 * var(--s))); }
}
@media (min-width: 1440px) {
  .r1 .r-h1 { --r-h: 80px; }
}

/* ---------- Desktop overlaps (round 41) ---------- */
/* /live, 900 to 1279 px: the camera's line ("Enter the 6-digit code...") wraps and would cover the pets' tap spots at the bottom of the picture, so it sits at the top. */
@media (min-width: 900px) and (max-width: 1279px) {
  .c-live { bottom: auto; top: calc(40 * var(--s)); }
}
/* Account house, 761 to 899 px: the "Biscuit" sign moves left of the dorm slip. */
@media (min-width: 761px) and (max-width: 899px) {
  body.petcare .ac-at-0 { --x: 410; }
}

/* ---------- Care's six papers (PC76, sheet 12 way C) ---------- */
/* Without the script every paper stands in order, stacked on the house's frame (also the still state for Reduce Motion):
   its number, "of 6" and its name on a card, then its rooms. care-steps.js piles them, one at a time (phase 4). */
.cp { display: grid; gap: calc(16 * var(--s)); min-width: 0; scroll-margin-top: 88px; }
.cp-head { --w: var(--frame); padding: calc(36 * var(--s)) calc(48 * var(--s)) calc(28 * var(--s)); border-radius: 18px; box-shadow: 0 2px 0 rgba(116, 83, 62, .12), 0 18px 30px -24px var(--shade); }
.cp-step { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 800 18px/1 var(--pc-round); }
.cp-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pc-orange); font-size: 20px; }
.cp-h { margin: 0; font: 800 max(34px, calc(64 * var(--s)))/1.02 var(--pc-round); letter-spacing: -.015em; text-wrap: balance; }
.cp-lead { margin-top: 14px; max-width: 46em; }
.cp-room { --w: var(--wall); display: grid; gap: calc(44 * var(--s)); align-content: start; padding: calc(40 * var(--s)) calc(48 * var(--s)) calc(48 * var(--s)); }
.cp-two, .cp-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(40 * var(--s)) calc(64 * var(--s)); align-items: start; }
.cp-two > .c-who { min-width: 0; }
.cp-two > .c-who .f-pet { display: grid; gap: calc(28 * var(--s)); }
.cp .c-req-grid { grid-template-columns: minmax(0, 760px); margin-top: 0; }
.cp-q { display: grid; gap: 12px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.cp-q-h { display: block; float: left; width: 100%; margin: 0; padding: 0; font: 800 max(20px, calc(26 * var(--s)))/1.25 var(--pc-round); text-wrap: balance; }
.cp-q-h + * { clear: both; }
/* Every question on a paper reads at one size, today's fields too (the stills). */
body.petcare .c-page .cp :is(.c-label, .rq-label) { font: 800 max(19px, calc(24 * var(--s)))/1.25 var(--pc-round); white-space: normal; color: inherit; }
.cp-hint { margin-top: -4px; }
body.petcare .c-page .cp textarea.c-area { height: 136px; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px; box-sizing: border-box; border-radius: 999px; background: var(--frame); font: 700 16px/1.3 var(--font); cursor: pointer; }
.cp-chip:has(:checked) { background: var(--pc-orange); }
.cp-chip:has(:focus-visible) { outline: 3px solid var(--pc-ink); outline-offset: 2px; }
.cp-chip:has([aria-invalid="true"]), .cp-q .c-seg:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--rq-alert); }
.cp-chip .c-box { width: 24px; height: 24px; border-radius: 6px; background: var(--board); }
.cp-chip .c-box .c-tick { width: 18px; height: 18px; }
.cp-chip :checked + .c-box { background: var(--pc-ink); }
.cp-chip :checked + .c-box .c-tick { opacity: 1; stroke: var(--frame); }
.cp-file-in { max-width: 100%; font: 600 16px/1.4 var(--font); color: var(--pc-ink); }
.cp-file-in::file-selector-button { height: 52px; margin-right: 16px; padding: 0 26px; border: 2px solid var(--pc-brown); border-radius: 999px; background: var(--frame); color: var(--pc-ink); font: 800 16px/1 var(--pc-round); cursor: pointer; }
.cp-file-in:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 4px; border-radius: 999px; }
.cp-file-in[aria-invalid="true"]::file-selector-button { border-color: var(--rq-alert); }
.cp-kept { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 20px; background: var(--frame); }
.cp-kept .icon { flex: none; }
.cp-true { display: grid; gap: 18px; max-width: 62em; }
.cp-true .c-choice, .cp-wv .ag-agree-row .c-choice { align-items: center; }
.cp-true .c-choice .c-box, .cp-wv .ag-agree-row :not(:checked) + .c-box { background: var(--board); }
.cp-true .c-choice :checked + .c-box { background: var(--pc-orange); }
.cp-wv .ag-scroll { max-height: 360px; }
.cp-wv .ag-agree-row .c-choice .c-body { white-space: normal; }
.cp-wv .cp-fields { align-items: end; }
.cp-wv .ag-date { text-align: left; }
.cp-jump { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 899px) {
  .cp { scroll-margin-top: 72px; }
  .cp-head { padding: 22px 16px 20px; border-radius: 14px; }
  .cp-num { width: 38px; height: 38px; font-size: 18px; }
  .cp-room { gap: 32px; padding: 28px 16px 32px; }
  .cp-two, .cp-fields { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cp .c-req-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-chip { min-height: 44px; gap: 8px; padding: 8px 12px; font-size: 15px; }   /* her longest choice keeps one line at 390 px */
  .cp-chip .c-box { width: 20px; height: 20px; }
  .cp-file-in::file-selector-button { display: block; margin: 0 0 10px; }
  .cp-jump { white-space: normal; }
}

/* The pile (care-steps.js, PC76 phase 4; look B's stills, mock.css's .mk-b ported to the site's tokens). The papers lie on
   the wall: the finished ones tucked above as slips (number, name, what was given, Change), the one on top as a card, the
   next ones' edges below it. Each later slip sits a little wider and turned a little, as paper lies. Reduce Motion gets
   the same pile, still: no slide, no turn, no change of shadow (the motion is only under no-preference). */
.c-form.cp-on { display: grid; justify-items: center; padding: calc(56 * var(--s)) calc(48 * var(--s)) calc(72 * var(--s)); background: var(--wall); }
.cp-on > * { box-sizing: border-box; width: min(100%, 1040px); }
.cp-on > .default-submit { width: 1px; }
.cp-on > .c-err-room { padding: 0; background: none; }
.cp-on > .c-err-room .rq-notice { margin: 0 0 24px; }
.cp-on .cp { --frame: var(--pc-latte); position: relative; z-index: 20; gap: 0; padding: calc(36 * var(--s)) calc(44 * var(--s)) calc(40 * var(--s)); border-radius: 18px; background: var(--pc-card);
  box-shadow: 0 0 0 1px var(--pc-shade), 0 18px 30px -16px rgba(92, 65, 48, .45); scroll-margin-top: 104px; }
.cp-on .cp-head { --w: transparent; overflow: visible; padding: 0 0 calc(28 * var(--s)); border-radius: 0; box-shadow: none; }
.cp-on .cp-room { --w: transparent; overflow: visible; padding: 0; }
.cp-on .cp > .c-room:not(.cp-head, .cp-room), .cp-on .cp > .c-floor > .c-room:not(.cp-room), .cp-on .cp .c-pick { border-radius: 14px; }
.cp-on .cp > * + :not(.cp-foot) { margin-top: calc(16 * var(--s)); }
.cp-h:focus:not(:focus-visible) { outline: none; }
.cp-pile { display: grid; margin: 0; padding: 0; list-style: none; scroll-margin-top: 104px; }
.cp-pile:empty { display: none; }
.cp-slip { display: flex; align-items: center; gap: 14px; margin: 0 calc((var(--n, 2) - var(--i)) * 8px) -14px; padding: 14px 20px 28px; border-radius: 16px 16px 0 0;
  background: var(--pc-card); box-shadow: 0 0 0 1px var(--pc-shade), 0 -2px 6px -4px rgba(92, 65, 48, .3); }
.cp-slip-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pc-gold); font: 800 18px/1 var(--pc-round); }
.cp-slip-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cp-slip-h { font: 800 17px/1.3 var(--pc-round); }
.cp-slip-v { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 400 15px/1.4 var(--font); overflow-wrap: anywhere; }
.cp-slip-v:empty { display: none; }
body.petcare .c-page .cp-change { flex: none; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--pc-warm); font: 700 15px/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cp-under { display: grid; }
.cp-edge { position: relative; z-index: calc(10 - var(--i)); margin: -12px calc((var(--i) + 1) * 12px) 0; padding: 22px 20px 10px; border-radius: 0 0 16px 16px;
  background: var(--pc-card); box-shadow: 0 0 0 1px var(--pc-shade); font: 700 15px/1.2 var(--font); color: var(--pc-brown); }
.cp-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: calc(36 * var(--s)); }
.cp-foot:not(:has(.cp-back:not([hidden]))) { justify-content: flex-end; }
body.petcare .c-page .cp-back { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--pc-ink); font: 700 18px/1 var(--pc-round); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
body.petcare .c-page .cp-next { min-width: 0; text-align: center; }
/* Paper 4: the file input stands behind "Choose a file"; the chosen file shows by its name and size. */
.cp-chosen { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--frame); }
.cp-on .cp-chosen { background: var(--pc-latte); }
.cp-thumb { flex: none; width: 40px; height: 50px; border-radius: 6px; background: var(--pc-gold); box-shadow: inset 0 0 0 5px var(--pc-card); }
.cp-chosen-t { display: flex; flex-direction: column; min-width: 0; }
.cp-chosen-n { font: 800 17px/1.3 var(--pc-round); overflow-wrap: anywhere; }
.cp-chosen-s { font: 400 15px/1.4 var(--font); }
.cp-pick { justify-self: start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; box-sizing: border-box; border: 2px solid var(--pc-brown); border-radius: 999px;
  color: var(--pc-ink); font: 800 16px/1 var(--pc-round); cursor: pointer; }
.cp-file:has(.cp-file-in:focus-visible) .cp-pick { outline: 3px solid var(--pc-ink); outline-offset: 3px; }
.cp-file:has(.cp-file-in[aria-invalid="true"]) .cp-pick { border-color: var(--rq-alert); }
/* A signed-in parent's papers (PC76 phase 5, stills after/back-*): which pet as chips, the saved pet's answers on a soft
   card with "Change {pet}'s details", the waiver signed as one line with Read it, and a done paper's slip with a tick.
   Without the script each saved pet's part, and another pet's, is named (cp-still-h); the pile shows only the chosen one. */
.cp-still, .cp-new { display: grid; gap: calc(28 * var(--s)); }
.cp-still-h { margin: 0; font: 800 max(18px, calc(22 * var(--s)))/1.25 var(--pc-round); }
.cp-on .cp-still-h { display: none; }
.cp-saved { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 20px; border-radius: 16px; background: var(--frame); font: 400 16px/1.5 var(--font); }
.cp-saved > span:not(:last-of-type)::after { content: " ·"; }
body.petcare .c-page .cp-edit { margin-left: auto; color: var(--pc-warm); font: 700 15px/1.4 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cp-read { display: grid; flex-basis: 100%; }
.cp-read > summary { justify-self: end; list-style: none; }
.cp-read > summary::-webkit-details-marker { display: none; }
.cp-read > summary:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 3px; border-radius: 4px; }
.cp-read[open] > .ag-scroll { max-height: 360px; margin-top: 8px; }
.cp-slip-n.is-done::before { content: ""; width: 12px; height: 7px; margin-top: -4px; border: solid var(--pc-ink); border-width: 0 0 3px 3px; rotate: -45deg; }
/* My pets: the pet's answers and its record file under its name, kind and weight, in the account's paper fields. */
body.petcare .ac-profile { --frame: var(--pc-latte); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; margin: 8px 0 4px; }
body.petcare .ac-profile .cp-fields { grid-template-columns: minmax(0, 1fr); gap: 24px; }
body.petcare .ac-profile .cp-q-h { font-size: 19px; }
body.petcare .ac-profile .cp-hint { font-size: 17px; }
body.petcare .ac-profile .c-input { display: block; box-sizing: border-box; width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--pc-latte); color: var(--pc-ink);
  font: 500 20px/1 var(--font); -webkit-appearance: none; appearance: none; }
body.petcare .ac-profile .c-seg label { min-width: 0; height: 48px; padding: 0 22px; }
body.petcare .ac-profile .cp-file-in { width: 100%; }
body.petcare .ac-pcard .ac-acts > details[open], body.petcare .ac-pet-form { min-width: 0; }
/* The front door and the slip share the paper evenly; the door's picture keeps its whole width under its words. */
@media (min-width: 900px) {
  .cp-still > .cp-q { max-width: calc(50% - 32 * var(--s)); }   /* the weight today as wide as a guest's half of paper 2 */
  .cp-on .c-ground { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cp-on .c-door { min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
  .cp-on .c-door-words { width: auto; padding: 32px 28px 0; }
  body.petcare .cp-on .c-door-words .c-link { white-space: normal; }
  .cp-on .c-door-pic { position: static; display: block; height: auto; aspect-ratio: 1.6; margin-top: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cp-slip { rotate: calc((var(--i) - .5) * .5deg); }
  .cp-on .cp.is-going { animation: cp-in var(--pc-sheet-t) var(--pc-curve) both; }
  .cp-on .cp.is-going.is-back { animation-name: cp-in-back; }
}
/* A step that moved the page: the papers fade in at their new place (care-steps.js puts the page there in the same
   frame), so nothing is seen travelling or snapping. The form's own wall stays painted, so no frame is blank. With
   motion, the paper on top also rises into place (above). */
.c-form.cp-on.is-turn > :not(.is-going) { animation: cp-fade var(--pc-fade-t) linear both; }   /* the arriving paper keeps its own rise */
@keyframes cp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* Reduce Motion keeps this one fade (opacity only; nothing travels). Without it a step is a hard cut to another part of
     the page, which reads as a jump (owner, 2026-11-22). */
  .c-form.cp-on.is-turn > * { animation: cp-fade var(--pc-fade-t) linear both !important; }
}
@keyframes cp-in { from { translate: 0 40px; opacity: 0; } }
@keyframes cp-in-back { from { translate: 0 -40px; opacity: 0; } }
@media (max-width: 899px) {
  .c-form.cp-on { margin: 0 -8px; padding: 20px 4px 28px; }
  .cp-on .cp { padding: 22px 16px 26px; border-radius: 16px; scroll-margin-top: 80px; }
  .cp-on .cp-head { padding: 0 0 20px; }
  .cp-h { font-size: 32px; }
  .cp-pile { scroll-margin-top: 80px; }
  .cp-slip { gap: 10px; padding: 12px 14px 26px; }
  .cp-slip-n { width: 32px; height: 32px; font-size: 16px; }
  .cp-edge { padding: 20px 16px 10px; }
  .cp-foot { margin-top: 32px; }
}
