:root {
  /* Primitive brand palette */
  --brand-petrol-700: #185d68;
  --brand-petrol-900: #0e424a;
  --brand-coral-500: #d9685f;
  --brand-coral-800: #913a34;
  --brand-sage-600: #5f735f;
  --brand-night-900: #142f3d;
  --brand-yellow-400: #ffd754;
  --neutral-950: #17211f;
  --neutral-650: #596562;
  --neutral-150: #e2e6e2;
  --neutral-075: #f3f5f1;
  --neutral-025: #fffefb;
  --auth-ground: #fafafa;

  /* Semantic tokens */
  --ink: var(--neutral-950);
  --muted: var(--neutral-650);
  --paper: var(--neutral-075);
  --white: var(--neutral-025);
  --petrol: var(--brand-petrol-700);
  --petrol-dark: var(--brand-petrol-900);
  --coral: var(--brand-coral-800);
  --coral-soft: #fbe9e6;
  --sage: var(--brand-sage-600);
  --line: rgb(23 33 31 / .16);
  --focus: #b93f38;
  --radius-control: 10px;
  --radius-panel: 16px;
  --shadow: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.55; background: var(--paper); }
a { color: var(--petrol-dark); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--petrol);
  color: white;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover, .button:hover { background: var(--petrol-dark); }
.button.secondary { border: 1px solid var(--petrol); background: transparent; color: var(--petrol); }
.danger-button { background: var(--coral); }
.text-button { min-height: 44px; padding: 0 5px; border-radius: 0; background: transparent; color: var(--petrol-dark); text-decoration: underline; }
.text-button:hover { background: transparent; text-decoration-thickness: 2px; }
.danger-text { color: #9c2e27; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: 110px; }
button:disabled { cursor: wait; opacity: .7; }
.skip { position: fixed; left: 10px; top: 10px; transform: translateY(-160%); z-index: 9; padding: 10px; background: white; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.requires-js { display: none !important; }
.js .requires-js { display: inline-flex !important; }

.app-header, .app-footer, .app-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.app-header { position: relative; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.app-brand { display: inline-flex; flex: 0 0 auto; }
.pet-photo-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; align-items: start; }
.pet-photo-item { min-width: 0; padding: 16px; border-radius: var(--radius-panel); background: var(--white); }
.pet-photo-preview { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--white); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-photos .photo-actions button { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 10px; border-radius: var(--radius-control); }
.photo-action-icon { flex: none; display: inline-block; vertical-align: middle; }
.pet-photos button.secondary { background: transparent; border: 1px solid var(--petrol); color: var(--petrol-dark); }
.pet-photos button.secondary:hover { background: var(--paper); }
.pet-photos .photo-delete { background: transparent; color: var(--coral); border: 1px solid var(--coral); }
.pet-photos .photo-delete:hover { background: var(--coral-soft); }
.pet-photos button:disabled { opacity: 1; background: var(--paper); border-color: var(--line); color: var(--muted); }
.photo-actions button:disabled { cursor: default; }
.photo-replace { margin-top: 8px; }
.photo-replace summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--petrol-dark); font-size: .875rem; }
.photo-replace summary .photo-action-icon { margin-right: 6px; }
.pet-photos .pet-photo-upload { margin-top: 24px; max-width: 100%; }
.photo-upload-area { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--white); }
.photo-upload-area label { font-weight: 750; color: var(--petrol-dark); }
.photo-upload-area p { margin: 8px 0 16px; }
.pet-photos input[type="file"] { width: 100%; min-width: 0; min-height: 48px; padding: 8px; background: var(--white); font-size: .875rem; }
.pet-photos input[type="file"]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 8px 16px; border: 1px solid var(--petrol); border-radius: var(--radius-control); color: var(--petrol-dark); background: var(--paper); font: inherit; font-weight: 700; cursor: pointer; }
.photo-upload-area small { display: block; margin-top: 12px; color: var(--muted); }
.photo-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 16px; }
.photo-selection figure { min-width: 0; margin: 0; }
.photo-selection img { width: 100%; max-height: 180px; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--radius-control); background: var(--paper); }
.photo-selection figcaption { margin-top: 8px; overflow-wrap: anywhere; font-size: .875rem; }
.photo-selection:empty, .photo-feedback:empty { display: none; }
.photo-feedback { margin: 0; white-space: pre-line; }
.photo-errors { margin: 0; padding-left: 24px; color: var(--coral); overflow-wrap: anywhere; }
.pet-photos [aria-invalid="true"] { border-color: var(--coral); }
.pet-photo-upload > button { justify-self: start; }
@media (max-width: 600px) {
  .photo-upload-area { padding: 16px; }
  .pet-photo-upload > button { width: 100%; }
}
.app-brand img { display: block; width: auto; max-height: 40px; object-fit: contain; }
.app-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; font-size: 14px; font-weight: 700; }
.app-header nav a { padding: 8px 0 6px; text-decoration: none; border-bottom: 2px solid transparent; }
.app-header nav a:hover { border-bottom-color: rgb(24 93 104 / .35); }
.app-header nav a[aria-current="page"] { color: var(--petrol-dark); border-bottom-color: var(--petrol); }
.app-header nav .nav-register { padding-inline: 14px; border: 1px solid var(--petrol); border-radius: 999px; color: var(--petrol-dark); }
.app-header nav .nav-register:hover, .app-header nav .nav-register[aria-current="page"] { background: #e7efec; border-bottom-color: var(--petrol); }
.app-menu-toggle { display: none; width: 46px; min-height: 46px; padding: 10px; background: transparent; color: var(--petrol-dark); border: 1px solid var(--line); }
.app-menu-toggle:hover { background: #e8efec; }
.app-menu-toggle span { display: block; width: 21px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.app-header[data-menu-open="true"] .app-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.app-header[data-menu-open="true"] .app-menu-toggle span:nth-child(2) { opacity: 0; }
.app-header[data-menu-open="true"] .app-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.app-header-surface { background: #185D68; }
.app-header-private { color: #fff; border-bottom-color: rgb(255 255 255 / .25); }
.app-header-private nav a { color: #fff; }
.app-header-private nav a:hover { color: #fff; border-bottom-color: #f5d46a; }
.app-header-private nav a[aria-current="page"] { color: #f5d46a; border-bottom-color: #f5d46a; }
.app-header-private .app-menu-toggle { color: #fff; border-color: rgb(255 255 255 / .65); }
.app-header-private .app-menu-toggle:hover { background: rgb(255 255 255 / .12); }
.app-header-private a:focus-visible, .app-header-private button:focus-visible { outline-color: #f5d46a; }
/* Public navigation: same brand surface, isolated from owner/admin headers. */
.app-header-public { color: var(--white); border-bottom-color: rgb(255 255 255 / .25); }
.app-header-public nav a { color: var(--white); }
.app-header-public nav a:hover { border-bottom-color: var(--brand-yellow-400); }
.app-header-public nav a[aria-current="page"] { color: var(--brand-yellow-400); border-bottom-color: var(--brand-yellow-400); }
.app-header-public nav .nav-register { color: var(--white); border-color: var(--white); }
.app-header-public nav .nav-register:hover, .app-header-public nav .nav-register[aria-current="page"] { color: var(--white); background: rgb(255 255 255 / .12); border-color: var(--white); }
.app-header-public .app-menu-toggle { color: var(--white); border-color: rgb(255 255 255 / .65); }
.app-header-public .app-menu-toggle:hover { background: rgb(255 255 255 / .12); }
.app-header-public a:focus-visible, .app-header-public button:focus-visible { outline-color: var(--brand-yellow-400); }
.bulk-tag-form fieldset { min-width: 0; margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); }
.bulk-tag-form .filter-bar { margin: 0 0 12px; }
.bulk-tag-select { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.bulk-tag-form input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: var(--petrol); }
.bulk-tag-blocked { display: block; max-width: 24ch; color: var(--muted); }
.bulk-tag-form button:disabled { cursor: not-allowed; }
.required-marker { white-space: nowrap; }
.activation-card { max-width: 920px; margin-inline: auto; }
.activation-card > h1 { text-wrap: balance; }
.activation-option { display: flex; min-width: 0; max-width: 640px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); }
.activation-option h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 28px); }
.activation-option > p { margin: 0 0 20px; }
.activation-option-action { width: 100%; margin-top: auto; }
.activation-form { margin-top: 20px; }
.activation-form-authenticated { margin-top: 28px; }
.activation-option-manual label { margin: 4px 0 8px; }
.activation-option-manual small { display: block; margin: 8px 0 20px; color: var(--muted); line-height: 1.45; }
.app-shell { padding-block: clamp(36px, 7vw, 82px); min-height: calc(100vh - 190px); }
.app-footer { padding: 28px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.app-footer span:last-child { margin-left: auto; }

h1, h2, h3 { font-family: Manrope, "Segoe UI", Arial, sans-serif; letter-spacing: -.035em; line-height: 1.1; }
h1 { font-size: clamp(30px, 4.2vw, 44px); margin: .15em 0; }
h2 { margin-top: 1.8em; font-size: clamp(22px, 2.8vw, 30px); }
p { max-width: 72ch; }
.lead { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.kicker, .eyebrow { margin: 0 0 7px; color: var(--petrol-dark); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.muted, .small { color: var(--muted); }
.small, small { font-size: 13px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.page-heading .actions { margin: 0; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-top: 56px; }
.section-heading h2 { margin: 0; }
.count { min-width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 99px; background: #dce8e5; font-size: 13px; font-weight: 800; }

.hero-card, .card, .task-panel, .pet-row, .report-row, .contact-editor, .empty-state { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.hero-card { padding: clamp(26px, 5vw, 54px); box-shadow: none; }
.tag-profile { max-width: 680px; margin: auto; }
.public-pet-profile {
  max-width: 880px; margin: auto; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: none;
}
.public-pet-profile.is-home { border-top: 7px solid var(--petrol); }
.public-pet-profile.is-lost { border-top: 7px solid #a63e37; }
.pet-identity { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: clamp(28px, 6vw, 58px); align-items: center; padding: clamp(28px, 6vw, 64px); }
.pet-photo-frame { position: relative; }
.pet-photo-frame::after { content: ""; position: absolute; inset: auto -12px -12px auto; width: 44%; aspect-ratio: 1; z-index: 0; border-radius: 50%; background: #dce8e5; }
.pet-photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid white; box-shadow: none; }
.pet-photo-placeholder { display: grid; place-items: center; background: #e4eeea; }
.pet-photo-placeholder img { width: 42%; max-height: 42%; }
.pet-intro h1 { margin: .12em 0; font-size: clamp(42px, 7vw, 70px); overflow-wrap: anywhere; }
.pet-state-label { margin: 0; color: var(--petrol); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.is-lost .pet-state-label { color: #92352f; }
.pet-species { display: inline-flex; margin: 8px 0 0; padding: 7px 13px; border-radius: 99px; background: #e5efec; color: var(--petrol-dark); font-size: 14px; font-weight: 800; }
.lost-alert { margin: 0 clamp(22px, 6vw, 64px) clamp(28px, 5vw, 48px); padding: clamp(22px, 4vw, 34px); border: 1px solid #dfa29b; border-radius: 20px; background: #fff0ed; color: #612723; }
.lost-alert-copy { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.lost-alert-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #a63e37; color: white; font-size: 25px; font-weight: 900; }
.lost-eyebrow { margin: 1px 0 5px; color: #7c302a; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.lost-alert h2 { margin: 0; color: #4e1f1c; font-size: clamp(25px, 4vw, 36px); }
.lost-alert p:last-child { margin-bottom: 0; }
.lost-cta { margin-top: 22px; background: #92352f; }
.lost-cta:hover { background: #702722; }
.last-seen-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; margin: 0 clamp(22px, 6vw, 64px) clamp(30px, 5vw, 48px); padding: clamp(22px, 4vw, 30px); border: 1px solid #b7ceca; border-radius: 20px; background: #edf5f2; }
.last-seen-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: var(--petrol); color: white; }
.last-seen-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.last-seen-content h2 { margin: 0 0 13px; font-size: clamp(24px, 3vw, 31px); }
.last-seen-content p { margin: 5px 0; }
.last-seen-place { color: var(--petrol-dark); font-size: clamp(19px, 3vw, 24px); font-weight: 850; }
.last-seen-region { color: var(--muted); font-weight: 700; }
.last-seen-reference { padding-top: 8px; }
.last-seen-moment { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 5px; }
.last-seen-privacy { margin-top: 16px !important; padding-top: 13px; border-top: 1px solid rgb(23 100 113 / .2); color: var(--muted); font-size: 13px; }
.last-seen-empty { color: var(--muted); }
.pet-details, .pet-note { margin: 0 clamp(22px, 6vw, 64px) clamp(30px, 5vw, 48px); }
.pet-details h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 31px); }
.pet-note { padding: 22px 24px; border-left: 5px solid var(--sage); border-radius: 0 14px 14px 0; background: #f0f4f1; font-size: 17px; }
.pet-note p { margin: 0; }
.public-pet-profile .pet-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.public-profile-section { padding: clamp(30px, 6vw, 58px) clamp(22px, 6vw, 64px); border-top: 1px solid var(--line); }
.contact-family { background: #f6f8f5; }
.report-family { scroll-margin-top: 20px; }
.claim-tag { background: #f1efe7; }
.public-section-heading { margin-bottom: 24px; }
.public-section-heading h2 { margin: 3px 0 8px; font-size: clamp(27px, 4vw, 38px); }
.public-section-heading > p:last-child { margin: 0; color: var(--muted); }
.public-pet-profile .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.public-pet-profile .contact-action { background: var(--white); }
.public-pet-profile.is-lost .contact-action { background: var(--petrol-dark); color: #fff; border-color: var(--petrol-dark); }
.contact-empty { padding: 20px; border: 1px dashed var(--sage); border-radius: 14px; background: var(--white); }
.contact-empty p { margin: 0 0 5px; }
.contact-empty a { font-weight: 800; }
.public-report-form { max-width: none; }
.public-report-form > button[type="submit"] { justify-self: start; min-width: 230px; }
.pet-facts, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 25px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.pet-facts div, .detail-grid div { padding: 15px; background: var(--white); }
dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
dd { margin: 3px 0 0; font-weight: 700; }

.task-panel { display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: center; padding: 24px; margin-bottom: 42px; border-left: 6px solid var(--coral); }
.task-panel h2 { margin: 0; }
.inline-form, .filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.inline-form label, .filter-bar label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.inline-form select, .filter-bar input, .filter-bar select { min-height: 48px; padding: 10px 12px; border: 1px solid #aab2af; border-radius: 10px; background: white; }
.filter-bar { padding: 18px; margin-bottom: 24px; background: #e8e6dd; border-radius: 16px; }
.pet-list, .report-list, .contact-list { display: grid; gap: 14px; margin-top: 18px; }
.pet-row { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(180px, .7fr) auto; align-items: center; gap: 22px; padding: 18px; }
.pet-row-main { display: flex; align-items: center; gap: 15px; }
.pet-row h3, .pet-row p { margin: 0; }
.pet-thumb { flex: 0 0 auto; width: 58px; height: 58px; object-fit: cover; border-radius: 18px; }
.pet-thumb.placeholder { display: grid; place-items: center; background: #dce8e5; color: var(--petrol-dark); font-size: 24px; font-weight: 800; }
.tag-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.tag-code, .tag-code-display, .tag-code-link, .tag-code-example { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .055em; white-space: nowrap; }
.tag-code { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.tag-code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tag-code-example { color: var(--ink); }
.report-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; }
.report-row p { margin: 6px 0; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.finder-actions .button { min-height: 42px; padding-inline: 16px; }
.report-actions { display: grid; gap: 12px; min-width: min(100%, 270px); }
.report-actions form { margin: 0; }
.report-safety-warning { max-width: 620px; padding: 10px 12px; border-left: 4px solid var(--coral); background: #fff0ed; color: #612723; font-size: 13px; }
.report-flag { padding: 12px; border: 1px solid #df9b96; border-radius: 12px; }
.report-flag summary { color: #8d2822; font-weight: 800; cursor: pointer; }
.report-flag .form { margin-top: 14px; }
.suspicious-report { padding: clamp(20px, 4vw, 32px); }
.suspicious-report h2 { margin: 0; font-size: 24px; }
.preserved-evidence { margin: 18px 0; padding: 18px; border-left: 5px solid var(--coral); }
.empty-state { padding: 35px; border-style: dashed; text-align: center; }
.empty-state h3 { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9b8a5b; }
.status.ok::before { background: #268052; }
.status.danger::before { background: var(--coral); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

.form { display: grid; gap: 17px; max-width: 700px; }
.wide-form { max-width: none; }
.form label, .compact-form label { display: grid; gap: 7px; font-weight: 700; }
.form input, .form select, .form textarea, .compact-form input, .compact-form select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #aab2af; border-radius: 11px; background: white; }
.form textarea { min-height: 120px; resize: vertical; }
.form fieldset { min-width: 0; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--white); }
.form legend { padding: 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.form .nested-fieldset { margin-top: 18px; padding: 18px; background: #eef3f0; }
.form .nested-fieldset legend { font-size: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.check { grid-template-columns: auto 1fr !important; align-items: start; gap: 9px !important; font-weight: 650 !important; }
.check input { width: 21px !important; min-height: 21px !important; margin-top: 2px; accent-color: var(--petrol); }
.lost-fieldset { border-left: 6px solid var(--coral) !important; }
.lost-location-fields { display: grid; gap: 20px; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.lost-location-intro h3 { margin: 0 0 6px; font-size: 21px; }
.lost-location-intro p { margin: 0; color: var(--muted); }
.lost-location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.lost-reference-field { grid-column: 1 / -1; }
.contact-section-intro { margin-bottom: 22px; }
.contact-list { gap: 22px; }
.contact-editor { padding: clamp(22px, 3vw, 30px); border-color: rgb(23 33 31 / .12); }
.compact-form { display: grid; grid-template-columns: 1fr 1fr 1.6fr 90px auto auto; gap: 12px; align-items: end; }
.compact-form button { white-space: nowrap; }
.contact-form { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(220px, 1fr); gap: 22px 24px; align-items: start; }
.contact-form label { display: grid; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.35; }
.contact-form input, .contact-form select {
  width: 100%; min-width: 0; min-height: 50px; padding: 12px 15px;
  border: 1px solid #aeb8b4; border-radius: 12px; background-color: var(--white);
  color: var(--ink); line-height: 1.25; box-shadow: none;
}
.contact-form select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--petrol) 50%), linear-gradient(135deg, var(--petrol) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.contact-form input:hover, .contact-form select:hover { border-color: var(--sage); }
.contact-form input:focus-visible, .contact-form select:focus-visible { border-color: var(--petrol); box-shadow: 0 0 0 4px rgb(23 100 113 / .12); }
.contact-form input[aria-invalid="true"], .contact-form select[aria-invalid="true"], .contact-form input:user-invalid, .contact-form select:user-invalid { border-color: var(--coral); background-color: #fff7f5; }
.contact-phone-fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(280px, 1.4fr); gap: 9px 20px; }
.contact-email-field { grid-column: 1 / -1; }
.contact-email-field label { max-width: 560px; }
.field-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.5; }
.contact-options { grid-column: 1 / -1; display: grid; grid-template-columns: 120px minmax(280px, 1fr); gap: 24px; align-items: start; padding: 20px 0 4px; border-top: 1px solid var(--line); }
.contact-privacy { display: grid; gap: 5px; padding-top: 2px; }
.contact-visibility { align-items: center; }
.contact-privacy .field-help { padding-left: 30px; max-width: 620px; }
.contact-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; padding-top: 4px; }
.contact-form-actions button { min-width: 210px; }
.contact-delete { display: flex; justify-content: flex-end; margin-top: -52px; }
.contact-actions { display: grid; }
.contact-action { justify-content: flex-start; gap: 10px; min-height: 52px; text-align: left; }
.contact-action svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-unavailable { width: 100%; margin: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #f1efe7; color: var(--muted); }
.js [hidden] { display: none !important; }
.new-contact { border-style: dashed; background: rgb(255 254 251 / .62); }
.new-contact h3 { margin: 0 0 22px; }
.tag-line { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.tag-line code { font-size: 15px; }
.danger-zone { margin-top: 70px; padding: 18px; border: 1px solid #df9b96; border-radius: 15px; }
.danger-zone summary { color: #8d2822; font-weight: 800; cursor: pointer; }
.health-section { margin-top: 50px; scroll-margin-top: 90px; }
.health-panel { margin: 16px 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.health-panel > summary { padding: 18px 20px; color: var(--petrol-dark); font-weight: 850; cursor: pointer; }
.health-panel[open] > summary { border-bottom: 1px solid var(--line); }
.health-panel > .health-form, .health-records { padding: 20px; }
.health-locked-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; padding: 0; margin: 16px 0; list-style: none; }
.health-locked-list li { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--white); color: var(--muted); }
.health-locked-list svg { flex: none; }
.health-locked-list strong { display: block; color: var(--petrol-dark); }
.health-locked-list span { display: block; font-size: .875rem; }
.health-records { display: grid; gap: 18px; }
.health-record { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.health-record-new { border-style: dashed; }
.health-record-form { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.health-record-form > label:has(textarea), .health-record-form > .check, .health-record-form > button { grid-column: 1 / -1; }
.health-delete { margin-top: 10px; text-align: right; }
.public-health { background: #f2f6f0; }
.public-health-group { margin-top: 22px; padding: 18px; border-radius: 14px; background: #fff; }
.public-health-group h3 { margin-top: 0; }
.public-health-group article + article { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.public-health-group p { margin: 5px 0; }
.medical-disclaimer { margin-top: 24px; padding: 14px; border-left: 4px solid var(--sage); background: #fff; color: var(--muted); font-size: 13px; }
.honeypot { position: absolute !important; left: -10000px !important; }

.notice { max-width: 760px; margin: 0 0 24px; padding: 15px 18px; border-radius: 12px; }
.notice.success { background: #dfece3; color: #214b2b; }
.notice.error { background: #f8dddd; color: #75231f; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 24px; border-left: 5px solid var(--petrol); background: white; }
.stat strong { display: block; font-size: 34px; }
.table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); }
th { background: #e9efec; color: var(--petrol-dark); font-size: 13px; }
td, .stat strong { font-variant-numeric: tabular-nums; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.admin-tag-owner-email { min-width: 10rem; max-width: 18rem; overflow-wrap: anywhere; }
.admin-actions { align-items: stretch; }
.admin-actions .card { padding: 24px; }
.admin-actions h2 { margin: 0; }
.admin-action-section { margin-top: 32px; }
.admin-action-section .card { max-width: 760px; }
.admin-actions .card { max-width: none; }
.sensitive-actions { padding-top: 28px; border-top: 2px solid #ead3cc; }
.sensitive-actions > p { color: var(--muted); }
.claim-form-card { max-width: 760px; margin-inline: auto; }
.claim-privacy, .claim-safety { border: 1px solid #b7ceca; background: #edf5f2; color: var(--ink); }
.claim-reason, .claim-review-form { max-width: 760px; padding: clamp(20px, 4vw, 30px); }
.claim-reason h2 { margin-top: 0; }
.timeline { display: grid; gap: 0; padding: 0; list-style: none; border-left: 2px solid #bfd0cb; }
.timeline li { position: relative; display: grid; grid-template-columns: 170px 160px 1fr; gap: 15px; padding: 14px 18px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--petrol); }
.timeline code { overflow-wrap: anywhere; font-size: 12px; }
.legal { max-width: 760px; }
.legal-warning { padding: 20px; border: 2px solid var(--coral); border-radius: 16px; background: #fff0ed; }
.location-help { padding: 14px; border-radius: 12px; background: #edf5f5; }
.noindex-note { font-size: 12px; color: var(--muted); }

.auth-shell { display: grid; place-items: center; min-height: min(650px, calc(100vh - 270px)); }
.auth-card { width: min(100%, 520px); padding: clamp(26px, 5vw, 46px); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--white); box-shadow: none; }
.auth-heading { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; margin-bottom: 28px; }
.auth-heading img { width: 48px; }
.auth-heading h1, .auth-confirmation h1 { margin: 2px 0 0; font-size: clamp(30px, 6vw, 43px); }
.auth-heading > p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.auth-form { display: grid; gap: 18px; }
.auth-form label:not(.check) { display: grid; gap: 7px; font-weight: 750; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid #aab2af; border-radius: 12px; background: white; color: var(--ink); }
.auth-form input:not([type="checkbox"]):focus-visible { border-color: var(--petrol); box-shadow: 0 0 0 4px rgb(23 100 113 / .12); }
.auth-form button { width: 100%; margin-top: 3px; }
.auth-remember { align-items: center; }
.auth-notice { margin-bottom: 22px; }
.auth-notice p { margin: 0; }
.auth-notice p + p { margin-top: 5px; }
.auth-alternative { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.auth-alternative p { margin: 0 0 12px; color: var(--muted); }
.auth-alternative .button { width: 100%; }
.auth-back { margin: 24px 0 0; text-align: center; }
.auth-legal { margin: 18px auto 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.auth-code { font-size: 28px; font-weight: 800; letter-spacing: .32em; text-align: center; }
.auth-errors { text-align: left; }
.auth-errors > p:first-child { margin-top: 0; }
.auth-errors ul { margin: 8px 0 0; padding-left: 20px; }
.auth-errors li + li { margin-top: 6px; }
.auth-error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.auth-error-actions a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.auth-form [aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.empty-state .button { margin-top: 10px; }
.auth-confirmation { text-align: center; }
.auth-confirmation p { margin-inline: auto; }
.auth-confirmation-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: #dfece3; color: #214b2b; font-size: 28px; font-weight: 850; }
.auth-confirmation .button { margin-top: 15px; }
.admin-auth-card { border-top: 5px solid var(--petrol); }

/* Approved owner authentication and activation experience. */
body.auth-page { min-height: 100vh; min-width: 320px; background: var(--auth-ground); }
.auth-experience { display: grid; grid-template-columns: minmax(270px, 31%) minmax(0, 1fr); min-height: 100vh; background: var(--auth-ground); }
.auth-brand-rail {
  position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between;
  padding: clamp(34px, 5vw, 72px); overflow: hidden; background: var(--petrol-dark); color: white;
}
.auth-brand-rail::after {
  content: ""; position: absolute; right: -74px; bottom: 17%; width: 170px; aspect-ratio: 1;
  border: 1px solid rgb(255 215 84 / .32); border-radius: 50%;
}
.auth-brand-wordmark { width: 230px; aspect-ratio: 3 / 2; object-fit: contain; object-position: left center; }
.auth-brand-message { position: relative; z-index: 1; max-width: 330px; }
.auth-brand-message > p:first-child { margin: 0 0 14px; color: var(--brand-yellow-400); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.auth-brand-message h2 { margin: 0; color: white; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; }
.auth-brand-message > p:last-child { margin: 20px 0 0; color: #d7e3e1; font-size: 16px; }
.auth-brand-note { position: relative; z-index: 1; margin: 0; color: #bed0cd; font-size: 13px; }
.auth-stage { display: grid; min-width: 0; place-items: center; padding: 72px clamp(24px, 7vw, 104px) 48px; }
.auth-column { width: min(100%, 520px); }
.auth-screen { width: 100%; }
.auth-screen-heading { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 16px; align-items: center; margin-bottom: 28px; }
.auth-screen-mark { grid-row: 1 / span 2; width: 54px; height: 54px; object-fit: contain; }
.auth-kicker { margin: 0; color: var(--petrol); font-size: 13px; font-weight: 850; letter-spacing: .04em; }
.auth-screen-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); }
.auth-intro { grid-column: 1 / -1; margin: 14px 0 0; max-width: 48ch; color: var(--muted); font-size: 16px; }
.auth-notice { width: 100%; max-width: none; margin-bottom: 22px; }
.auth-notice p { margin: 0; }
.auth-notice p + p { margin-top: 5px; }
.auth-ui-form { display: grid; width: 100%; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.auth-ui-form label { color: var(--brand-night-900); font-size: 14px; font-weight: 750; }
.auth-ui-form input:not([type="checkbox"]) {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #9ca9a5;
  border-radius: var(--radius-control); background: white; color: var(--ink); outline: none;
}
.auth-ui-form input:not([type="checkbox"]):hover { border-color: var(--petrol); }
.auth-ui-form input:not([type="checkbox"]):focus-visible { border-color: var(--petrol-dark); box-shadow: 0 0 0 3px rgb(217 104 95 / .32); }
.auth-ui-form input[aria-invalid="true"] { border-color: var(--coral); }
.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 92px !important; }
.auth-password-toggle {
  position: absolute; top: 5px; right: 5px; min-height: 40px; padding: 0 10px; border: 0;
  border-radius: 8px; background: #edf5f3; color: var(--petrol-dark); font-size: 13px; font-weight: 800;
}
.auth-password-toggle:hover { background: #dce9e6; color: var(--petrol-dark); }
.auth-help { display: block; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth-code, .auth-page .tag-code-input { font-size: 26px; font-weight: 850; letter-spacing: .28em; text-align: center; text-transform: uppercase; }
.auth-ui-form .check { display: grid; grid-template-columns: 22px 1fr !important; gap: 10px !important; align-items: start; font-size: 14px; font-weight: 500; }
.auth-ui-form .check input { width: 20px !important; height: 20px; min-height: 20px !important; margin: 2px 0 0; }
.auth-ui-form > button, .auth-ui-form .activation-option-action { width: 100%; min-height: 50px; font-weight: 850; }
.auth-back { margin: 22px 0 0; text-align: center; }
.auth-legal { width: 100%; margin: 18px auto 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.auth-alternative { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.auth-alternative p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.auth-alternative .button { width: 100%; }
.auth-errors { text-align: left; }
.auth-errors > p:first-child { margin-top: 0; }
.auth-errors ul { margin: 8px 0 0; padding-left: 20px; }
.auth-errors li + li { margin-top: 6px; }
.auth-error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.auth-error-actions a { font-weight: 800; }
.activation-option-manual { display: grid; min-width: 0; gap: 8px; }
.activation-option-manual .auth-help { margin-bottom: 10px; }
.activation-option-manual .check { margin-block: 4px; }
.auth-page .cf-turnstile { min-height: 65px; }
.auth-supporting-copy { margin: -4px 0 18px; color: var(--muted); }
.auth-inline-action { margin: 0 0 22px; }
.auth-inline-action .button { width: 100%; }
.auth-screen details { margin-top: 18px; }
.auth-screen summary { min-height: 44px; padding-block: 10px; color: var(--petrol-dark); font-weight: 750; cursor: pointer; }
.auth-correction-form { margin-top: 12px; }

@media (min-width: 821px) {
  body.auth-page { height: 100%; min-height: 0; }
  .auth-experience { height: 100dvh; min-height: 0; }
  .auth-brand-rail { height: 100%; min-height: 0; padding-block: clamp(28px, 6vh, 72px); }
  .auth-stage { height: 100%; min-height: 0; padding-block: clamp(24px, 5vh, 48px); }
  .auth-screen-heading { margin-bottom: clamp(18px, 3vh, 28px); }
  .auth-ui-form { gap: clamp(13px, 1.8vh, 18px); }
  .auth-back { margin-top: clamp(14px, 2.5vh, 22px); }
  .auth-alternative { margin-top: clamp(18px, 3vh, 28px); padding-top: clamp(14px, 2.5vh, 24px); }
  .auth-legal { margin-top: clamp(10px, 2vh, 18px); }
}
@media (min-width: 821px) and (max-height: 820px) {
  .auth-stage { padding-block: 22px; }
  .auth-screen-heading { margin-bottom: 16px; }
  .auth-intro { margin-top: 9px; line-height: 1.45; }
  .auth-ui-form { gap: 12px; }
  .auth-field { gap: 6px; }
  .auth-help { line-height: 1.35; }
  .auth-back { margin-top: 13px; }
  .auth-alternative { margin-top: 15px; padding-top: 13px; }
  .auth-alternative p { margin-bottom: 8px; }
  .auth-legal { margin-top: 9px; line-height: 1.4; }
}
@media (min-width: 821px) and (max-height: 680px) {
  body.auth-page { height: auto; min-height: 100%; }
  .auth-experience { height: auto; min-height: 100dvh; }
  .auth-brand-rail, .auth-stage { height: auto; min-height: 100dvh; }
}
@media (max-width: 820px) {
  .auth-experience { grid-template-columns: 1fr; }
  .auth-brand-rail { min-height: 88px; padding: 8px 20px; align-items: center; justify-content: center; background: var(--petrol); }
  .auth-brand-rail::after, .auth-brand-message, .auth-brand-note { display: none; }
  .auth-brand-wordmark { width: 148px; height: 68px; object-position: center; }
  .auth-stage { place-items: start center; padding: 22px 20px 30px; }
}
@media (max-width: 430px) {
  .auth-brand-rail { min-height: 76px; padding-block: 4px; }
  .auth-brand-wordmark { width: 138px; height: 62px; }
  .auth-stage { padding: 16px 18px 22px; }
  .auth-screen, .auth-screen-heading, .auth-ui-form, .auth-back, .auth-legal { width: 100%; }
  .auth-screen-heading { grid-template-columns: 40px minmax(0, 1fr); gap: 1px 10px; margin-bottom: 18px; }
  .auth-screen-mark { width: 40px; height: 40px; }
  .auth-kicker { font-size: 12px; }
  .auth-screen-heading h1 { font-size: 27px; }
  .auth-intro { margin-top: 8px; font-size: 15px; line-height: 1.4; }
  .auth-ui-form { gap: 12px; }
  .auth-field { gap: 5px; }
  .auth-ui-form input:not([type="checkbox"]) { min-height: 46px; padding-block: 9px; }
  .auth-help { font-size: 12px; line-height: 1.35; }
  .auth-code, .auth-page .tag-code-input { font-size: 23px; }
  .auth-ui-form .check { gap: 9px !important; font-size: 13px; line-height: 1.4; }
  .auth-ui-form > button, .auth-ui-form .activation-option-action { min-height: 48px; }
  .auth-back { margin-top: 16px; font-size: 14px; }
  .auth-alternative { margin-top: 18px; padding-top: 16px; }
  .auth-legal { margin-top: 12px; font-size: 12px; line-height: 1.4; }
  .auth-notice { margin-bottom: 14px; padding: 12px 14px; }
  .auth-supporting-copy { margin-bottom: 14px; font-size: 14px; }
  .auth-inline-action { margin-bottom: 14px; }
  .auth-screen details { margin-top: 12px; }
}
.password-setup-notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.password-setup-notice .button { margin-left: auto; }
.compact-button { min-height: 38px; padding: 8px 13px; font-size: 13px; }
.tag-qr-card { display: grid; grid-template-columns: minmax(280px, 500px) minmax(260px, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; max-width: 980px; margin: 28px auto 0; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--white); }
.tag-qr-visual { display: grid; place-items: center; padding: clamp(12px, 3vw, 24px); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px #dce6e2; }
.tag-qr-visual img { display: block; width: min(100%, 480px); height: auto; aspect-ratio: 1; }
.tag-qr-copy { min-width: 0; }
.tag-qr-brand { display: block; width: min(174px, 60%); height: auto; margin-bottom: 34px; }
.tag-qr-copy h2 { margin: 5px 0 20px; font-size: clamp(25px, 4vw, 38px); }
.tag-qr-copy code { overflow-wrap: normal; }
.tag-qr-url { overflow-wrap: anywhere; font-weight: 800; }
.tag-qr-copy .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.copy-feedback { min-height: 20px; margin: 10px 0 0; }

@media (max-width: 850px) {
  .pet-row { grid-template-columns: 1fr auto; }
  .tag-summary { grid-column: 1 / -1; }
  .compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-phone-fields { grid-template-columns: minmax(250px, .9fr) minmax(250px, 1.1fr); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .app-header { min-height: 72px; align-items: center; padding-block: 13px; }
  .app-header img { width: 145px; }
  .app-menu-toggle { display: block; margin-left: auto; }
  .app-header nav { display: none; position: absolute; z-index: 20; top: calc(100% + 1px); left: 0; right: 0; max-width: none; padding: 10px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--white); line-height: 1.3; }
  .app-header nav[data-open="true"] { display: grid; }
  .app-header nav a { min-height: 48px; display: flex; align-items: center; padding: 10px 12px; border: 0; border-radius: 8px; }
  .app-header nav a:hover, .app-header nav a[aria-current="page"] { background: #e7efec; }
  .app-header-private nav { background: #185D68; border-color: rgb(255 255 255 / .35); }
  .app-header-private nav a:hover, .app-header-private nav a[aria-current="page"] { background: rgb(255 255 255 / .12); }
  .app-header-public nav { background: var(--petrol); border-color: rgb(255 255 255 / .35); }
  .app-header-public nav a:hover, .app-header-public nav a[aria-current="page"] { background: rgb(255 255 255 / .06); }
  .activation-option { min-height: 0; padding: 20px; }
  .activation-option-action { min-height: 52px; }
  .app-shell { width: min(100% - 28px, 1120px); }
  .grid, .stats, .pet-facts, .detail-grid, .task-panel { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .pet-row { grid-template-columns: 1fr; }
  .pet-row > .button { width: 100%; }
  .report-row { align-items: flex-start; flex-direction: column; }
  .report-row .button { width: 100%; }
  .compact-form, .check-grid { grid-template-columns: 1fr; }
  .health-record-form { grid-template-columns: 1fr; }
  .contact-form, .contact-phone-fields, .contact-options { grid-template-columns: minmax(0, 1fr); }
  .contact-form { gap: 19px; }
  .contact-phone-fields { gap: 17px; }
  .contact-options { gap: 18px; }
  .contact-privacy .field-help { padding-left: 0; }
  .contact-form-actions button { width: 100%; }
  .contact-delete { justify-content: center; margin-top: 10px; }
  .app-footer { align-items: flex-start; flex-wrap: wrap; }
  .app-footer span:last-child { margin-left: 0; width: 100%; }
  .hero-card { border-radius: 14px; }
  .public-pet-profile { border-radius: 20px; }
  .pet-identity { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .pet-photo-frame { width: min(76vw, 280px); margin-inline: auto; }
  .pet-intro h1 { font-size: clamp(38px, 12vw, 56px); }
  .lost-alert-copy { grid-template-columns: 1fr; }
  .lost-alert-icon { width: 42px; height: 42px; }
  .lost-cta { width: 100%; text-align: center; }
  .last-seen-card { grid-template-columns: 1fr; }
  .last-seen-icon { width: 46px; height: 46px; border-radius: 15px; }
  .lost-location-grid { grid-template-columns: minmax(0, 1fr); }
  .lost-reference-field { grid-column: auto; }
  .public-pet-profile .contact-actions { grid-template-columns: 1fr; }
  .public-report-form > button[type="submit"] { width: 100%; }
  .actions { flex-direction: column; }
  .actions .button { width: 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 3px; }
  .auth-shell { min-height: auto; }
  .auth-card { border-radius: 14px; }
  .password-setup-notice { align-items: stretch; }
  .password-setup-notice .button { width: 100%; margin-left: 0; text-align: center; }
  .tag-qr-card { grid-template-columns: 1fr; padding: 18px; }
  .tag-qr-brand { margin-bottom: 22px; }
  .tag-qr-copy .actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  @page { margin: 14mm; }
  .no-print, .app-header, .app-footer, .skip, .notice, .password-setup-notice { display: none !important; }
  body, .app-shell { background: #fff; }
  .app-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
  .qr-page-heading { margin-bottom: 12px; }
  .tag-qr-card { grid-template-columns: 1fr 1fr; gap: 18mm; max-width: none; margin: 0; padding: 10mm; border: 1px solid #777; box-shadow: none; break-inside: avoid; }
  .tag-qr-visual { padding: 0; box-shadow: none; }
  .tag-qr-visual img { width: 90mm; }
  .tag-qr-url a { color: #000; text-decoration: none; }
}
