@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --font-display: "Bebas Neue", "DM Sans", system-ui, sans-serif;
  --primary: #000000;
  --primary-hover: #1f1f1f;
  --primary-soft: #fff6d6;
  --accent: #ffbf23;
  --accent-soft: #fff6d6;
  --background: #f7f7f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #171717;
  --text-soft: #686868;
  --border: #e3e3df;
  --danger: #b42318;
  --danger-soft: #fef0ef;
  --warning: #8a4b08;
  --warning-soft: #fff5df;
  --success: #187044;
  --success-soft: #e8f6ed;
  --blue: #265d97;
  --blue-soft: #eaf2fb;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06);
  --shadow-md: 0 10px 30px rgba(17, 17, 17, .08);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --content: 1240px;

  /* Palette: every colour used below. */
  --blue-100: #99a4bd;
  --blue-200: #2d6cdf;
  --blue-300: #1f5082;
  --green-100: #a6d6b8;
  --green-200: #9eb4a3;
  --green-300: #21663e;
  --green-400: #315d42;
  --green-500: #11522f;
  --neutral-100: #fffaf0;
  --neutral-200: #fafaf8;
  --neutral-300: #fff9e9;
  --neutral-400: #edf6ef;
  --neutral-500: #fff0ec;
  --neutral-600: #edf0ed;
  --neutral-700: #dff0e5;
  --neutral-800: #ece9e1;
  --neutral-900: #eee7d6;
  --neutral-1000: #e2e2dd;
  --neutral-1100: #dce2eb;
  --neutral-1200: #dedbd3;
  --neutral-1300: #d7d1c5;
  --neutral-1400: #c9c9c3;
  --neutral-1500: #bfcac1;
  --neutral-1600: #aebbb1;
  --neutral-1700: #aaaaaa;
  --neutral-1800: #9a9a94;
  --neutral-1900: #777777;
  --neutral-2000: #6b6253;
  --neutral-2100: #4e4e4b;
  --neutral-2200: #3f4c43;
  --neutral-2300: #4b4539;
  --neutral-2400: #444444;
  --neutral-2500: #111111;
  --orange-100: #e6bf83;
  --orange-200: #f4a340;
  --orange-300: #c87810;
  --orange-400: #6d6252;
  --orange-500: #804407;
  --orange-600: #65370a;
  --purple-100: #f1eaff;
  --purple-200: #6f59a8;
  --purple-300: #654195;
  --red-100: #efb0aa;
  --red-200: #7a2b26;
  --red-300: #7f1d17;
  --yellow-100: #fff8df;
  --yellow-200: #fff0b8;
  --yellow-300: #e7ddc6;
  --yellow-400: #efd79c;
  --yellow-500: #e6d7af;
  --yellow-600: #e0c36d;
  --yellow-700: #c6b88f;
  --yellow-800: #e5a817;
  --yellow-900: #d5aa27;
  --yellow-1000: #c88d00;
  --yellow-1100: #b58a14;
  --yellow-1200: #7e7155;
  --yellow-1300: #8a5a00;
  --yellow-1400: #765900;
  --yellow-1500: #625b4b;
  --yellow-1600: #685936;
  --yellow-1700: #6d4a00;
  --yellow-1800: #5b4600;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font: 400 1rem/1.55 "DM Sans", system-ui, sans-serif;
  min-width: 320px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
button, input, select, textarea {
  font: inherit;
}
button, a, input[type="file"] {
  touch-action: manipulation;
}
button, [role="button"], a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
h1, h2, h3, p {
  margin-top: 0;
}
h1, h2, h3 {
  line-height: 1.15;
}
h1 {
  margin-bottom: .45rem;
  font: 400 clamp(2.1rem, 1.7rem + 1.4vw, 2.7rem)/1 var(--font-display);
  letter-spacing: .01em;
}
h2 {
  margin-bottom: .4rem;
  font-size: 1.35rem;
  letter-spacing: -.015em;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--text);
  color: white;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 1rem;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.page-shell {
  margin-inline: auto;
  padding-block: var(--space-6) 7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--surface-raised);
  text-decoration: none;
  white-space: nowrap;
}
.brand > span:last-child {
  display: grid;
  line-height: 1.05;
}
.brand strong {
  font: 700 1.15rem "DM Sans", system-ui, sans-serif;
  letter-spacing: -.03em;
}
.brand small {
  color: rgba(255,255,255,.55);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: var(--neutral-2500);
  border-radius: 10px;
  box-shadow: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.user-avatar, .avatar-small {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--neutral-2500);
  font-weight: 800;
}
.avatar-small {
  width: 34px;
  height: 34px;
}
.freshness-banner {
  background: var(--warning-soft);
  color: var(--orange-600);
}
.freshness-banner .page-shell {
  padding-block: .65rem;
}
.freshness-banner a {
  color: inherit;
  font-weight: 700;
}
.message-region {
  z-index: 200;
  display: grid;
  gap: .5rem;
  width: min(calc(100% - 2rem), 390px);
}
.toast {
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  animation: toast-in .25s ease-out;
}
.toast-success {
  border-color: var(--green-100);
  background: var(--success-soft);
  color: var(--green-500);
}
.toast-error {
  border-color: var(--red-100);
  background: var(--danger-soft);
  color: var(--red-300);
}
.eyebrow {
  text-transform: uppercase;
}
.page-heading > p:last-child, .profile-heading > p {
  color: var(--text-soft);
}
.heading-with-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.heading-actions {
  display: flex;
  gap: .5rem;
}
.segmented-control, .tab-row {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  background: var(--neutral-600);
  border-radius: 12px;
}
.segmented-control a, .tab-row a {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: .5rem 1rem;
  border-radius: 9px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: .2s ease;
}
.segmented-control a:hover, .tab-row a:hover {
  color: var(--primary);
}
.segmented-control a[aria-current="true"], .tab-row a[aria-current="page"] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab-row {
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-5);
  overflow-x: auto;
}
@media (max-width: 720px) {
  .tab-row {
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    row-gap: .35rem;
  }
  .tab-row a {
    flex: 1 0 auto;
    max-width: 100%;
  }
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  margin-bottom: var(--space-4);
  font-weight: 700;
  text-decoration: none;
}
.back-link svg {
  width: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.button-primary {
  box-shadow: var(--shadow-sm);
}
.button-secondary {
  color: var(--primary);
  background: var(--surface);
}
.button-secondary:hover {
  background: var(--primary-soft);
  border-color: var(--yellow-1100);
}
.button-quiet {
  color: var(--text-soft);
  background: transparent;
}
.button-quiet:hover {
  background: var(--neutral-600);
  color: var(--text);
}
.button-small {
  min-height: 40px;
  padding: .5rem .75rem;
  font-size: .82rem;
}
.button-full {
  width: 100%;
}
.button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--neutral-600);
  color: var(--text);
}
.icon-button svg {
  width: 22px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.section-heading h2 {
  margin: 0;
}
.section-heading h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 .4rem;
  vertical-align: 2px;
  border-radius: 99px;
  color: var(--text-soft);
  font: 700 .75rem Inter, sans-serif;
}
.section-heading.compact {
  margin-bottom: .8rem;
}
.dog-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--text);
  text-decoration: none;
}
.dog-identity img, .dog-placeholder {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}
.dog-placeholder {
  display: grid;
  place-items: center;
  text-transform: uppercase;
}
.dog-identity > span:last-child {
  min-width: 0;
  display: grid;
}
.dog-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.dog-identity small {
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-facts div {
  display: grid;
  gap: .1rem;
}
dt {
  color: var(--text-soft);
  text-transform: uppercase;
}
dd {
  margin: 0;
}
.service-badge, .status-chip, .confidence, .round-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.service-badge {
  padding: .55rem .7rem;
  background: var(--neutral-600);
  color: var(--neutral-2200);
}
/* Service colours: Woofland black, gold and cream. Same colour in badges, chart and legend. */
.service-pack_lounge { background: #ffbf23; color: #171717; }
.service-paw_pod { background: #171717; color: #ffffff; }
.service-alpha_suite { background: #8b5e00; color: #ffffff; }
.service-daycare { background: #e6d7a3; color: #171717; }
.service-needs_review {
  background: var(--warning-soft);
  color: var(--warning);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.status-danger {
  background: var(--danger);
}
.status-amber {
  background: var(--orange-300);
}
.empty-state {
  grid-column: 1 / -1;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--neutral-1500);
}
.empty-state h2, .empty-state h3 {
  margin-bottom: .3rem;
}
.empty-state p {
  margin: 0;
  color: var(--text-soft);
}
.empty-state.small {
  padding: 1.25rem;
}
.search-form {
  position: relative;
  display: flex;
  gap: .75rem;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.search-form svg {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  width: 23px;
  color: var(--text-soft);
  transform: translateY(-50%);
}
.search-form input {
  width: 100%;
  min-height: 50px;
  padding: .7rem .8rem .7rem 3rem;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
}
.search-form input:focus {
  outline: none;
}
.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,97,58,.16);
}
.search-results {
  margin-top: var(--space-6);
}
.result-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.result-list > a, .static-result {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--border);
}
.result-list > a:first-child {
  border-top: 0;
}
.result-list > a:hover {
  background: var(--primary-soft);
}
.result-list img, .result-list .dog-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}
.result-list a > span:nth-child(2), .static-result > span {
  display: grid;
}
.result-list small {
  color: var(--text-soft);
}
.result-list a > svg {
  width: 20px;
  margin-left: auto;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.profile-photo {
  width: 112px;
  height: 112px;
  border-radius: 28px;
}
.profile-heading h1 {
  margin-bottom: .25rem;
}
.owner-line {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: .75rem;
}
.owner-line a {
  font-size: .9rem;
}
.safety-card {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--space-5);
  padding: 1.2rem;
  border: 1px solid var(--red-100);
  border-left: 5px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-soft);
}
.safety-card p:last-child {
  margin-bottom: 0;
}
.safety-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--danger);
}
.safety-icon svg {
  width: 24px;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, .7fr);
  gap: var(--space-5);
  align-items: start;
}
.profile-main, .profile-side {
  display: grid;
  gap: var(--space-5);
}
.profile-side {
  position: sticky;
  top: 96px;
}
/* Phones: one column, with care instructions above notes and history. */
@media (max-width: 720px) {
  .profile-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .profile-main, .profile-side {
    display: contents;
  }
  .profile-order-stay { order: 1; }
  .profile-order-owner-notes { order: 5; }
  .profile-order-feeding { order: 2; }
  .profile-order-medication { order: 3; }
  .profile-order-requests { order: 4; }
  .profile-order-notes { order: 5; }
  .profile-order-care-info { order: 6; }
  .profile-order-care-history { order: 7; }
  .profile-order-bookings { order: 8; }
  .profile-layout .jc-details { order: 9; }
}
.date-range {
  margin: .25rem 0 .65rem;
  font: 400 1.9rem/1 var(--font-display);
  letter-spacing: .01em;
}
.date-range span {
  color: var(--text-soft);
  font: 500 .85rem Inter, sans-serif;
  text-transform: uppercase;
}
.fact-row {
  display: flex;
  gap: 1.5rem;
  color: var(--text-soft);
  font-size: .88rem;
}
.timeline {
  display: grid;
  gap: .8rem;
}
.timeline-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}
.timeline-important {
  border-color: var(--red-100);
  border-left: 4px solid var(--danger);
  background: var(--neutral-200);
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.timeline-meta > div {
  display: grid;
}
.timeline-meta small {
  color: var(--text-soft);
}
.timeline-meta .status-chip {
  margin-left: auto;
}
.timeline-item > p {
  margin: .9rem 0;
}
.timeline-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .8rem;
}
.status-chip {
  padding: .42rem .58rem;
  background: var(--neutral-600);
  color: var(--text-soft);
}
.status-open, .status-preview, .status-analysing, .status-changed {
  background: var(--warning-soft);
  color: var(--warning);
}
.status-done, .status-applied, .status-unchanged {
  background: var(--success-soft);
  color: var(--success);
}
.status-failed, .status-error {
  background: var(--danger-soft);
  color: var(--danger);
}
.status-new {
  background: var(--blue-soft);
  color: var(--blue);
}
.summary-box {
  padding: .85rem;
  border-radius: 10px;
  background: var(--primary-soft);
}
.plan-list {
  display: grid;
  gap: .6rem;
  margin-bottom: var(--space-4);
}
.plan-list > div {
  display: grid;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.plan-list span, .plan-list small, .muted {
  color: var(--text-soft);
}
.care-history-table, .booking-history {
  display: grid;
}
.care-row {
  display: grid;
  grid-template-columns: 1fr .8fr 1.1fr 1fr;
  gap: 1rem;
  padding: .75rem .5rem;
  border-top: 1px solid var(--border);
  font-size: .86rem;
}
.care-head {
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-top: 0;
}
.history-row {
  display: grid;
  grid-template-columns: 1.5fr auto .5fr;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--border);
}
.history-row:first-child {
  border-top: 0;
}
.history-row > div {
  display: grid;
}
.history-row small {
  color: var(--text-soft);
}
.round-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--space-5);
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.round-progress > div:first-child {
  display: grid;
  min-width: 84px;
}
.round-progress > div:first-child strong {
  font-size: 1.35rem;
}
.round-progress > div:first-child span {
  color: var(--text-soft);
  font-size: .78rem;
}
.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--neutral-600);
}
.progress-track span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width .25s ease;
}
.round-progress dl {
  display: flex;
  gap: 1rem;
  margin: 0;
}
.round-progress dl div {
  display: grid;
  text-align: center;
}
.round-progress dd {
  font-size: 1rem;
}
.inline-warning {
  margin-bottom: var(--space-5);
  padding: 1rem;
  border: 1px solid var(--orange-100);
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--orange-600);
}
.inline-warning p {
  margin: .25rem 0 0;
}
.round-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}
.meal-card, .service-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-left-width: 5px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.meal-card > header, .service-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem;
}
.service-card-heading > .dog-identity {
  flex: 1 1 12rem;
  min-width: 0;
}
.service-facts-primary {
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
}
.service-facts-primary dd {
  white-space: nowrap;
}
.meal-card .dog-identity img, .meal-card .dog-placeholder {
  width: 66px;
  height: 66px;
}
.status-border-due {
  border-left-color: var(--orange-300);
}
.status-border-prepared {
  border-left-color: var(--blue);
}
.status-border-fed {
  border-left-color: var(--purple-300);
}
.status-border-observed, .status-border-skipped {
  border-left-color: var(--success);
}
.round-status {
  padding: .5rem .65rem;
  background: var(--neutral-600);
}
.round-status-due {
  background: var(--warning-soft);
  color: var(--warning);
}
.round-status-prepared {
  background: var(--blue-soft);
  color: var(--blue);
}
.round-status-fed {
  background: var(--purple-100);
  color: var(--purple-300);
}
.round-status-observed, .round-status-skipped {
  background: var(--success-soft);
  color: var(--success);
}
.allergy-banner {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem;
  background: var(--danger-soft);
  color: var(--red-300);
  font-size: .84rem;
}
.allergy-banner svg {
  width: 18px;
  flex: 0 0 auto;
}
.recipe-block {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 1rem;
  padding: 1rem;
  border-block: 1px solid var(--border);
  background: var(--surface-raised);
}
.recipe-block > div {
  display: grid;
  align-content: start;
}
.recipe-block span, .staff-stamp span {
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recipe-block p {
  margin: .2rem 0 0;
  font-size: .87rem;
}
.meal-actions {
  display: grid;
  gap: .75rem;
  padding: 1rem;
}
.staff-stamp {
  display: grid;
  padding: .65rem .8rem;
  border-radius: 10px;
  background: var(--primary-soft);
}
.staff-stamp small {
  color: var(--text-soft);
}
.observation-form, .health-form {
  display: grid;
  gap: 1rem;
}
.observation-form fieldset, .health-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.observation-form legend, .health-form legend {
  margin-bottom: .5rem;
  font-weight: 750;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
}
.choice-grid label, .health-grid label {
  position: relative;
  cursor: pointer;
}
.choice-grid input, .health-grid input {
  position: absolute;
  opacity: 0;
}
.choice-grid span, .health-grid label span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: .35rem;
  text-align: center;
  border: 1px solid var(--neutral-1600);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 700;
}
.choice-grid input:checked + span, .health-grid input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.choice-grid input:focus-visible + span, .health-grid input:focus-visible + span {
  outline: 3px solid var(--orange-200);
  outline-offset: 2px;
}
.completed-summary {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .8rem;
  border-radius: 12px;
  background: var(--success-soft);
}
.completed-summary > svg {
  width: 28px;
  height: 28px;
  padding: .25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  color: var(--surface-raised);
}
.completed-summary > div {
  display: grid;
}
.completed-summary span, .completed-summary small {
  color: var(--green-400);
}
.completed-summary > a {
  margin-left: auto;
}
.completed-summary img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
.health-grid fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
}
.health-grid fieldset:nth-child(3) {
  grid-template-columns: repeat(3, 1fr);
}
.health-grid legend {
  grid-column: 1 / -1;
  font-size: .82rem;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.service-card {
  border-left-color: var(--orange-300);
}
.confidence {
  padding: .5rem .65rem;
}
.confidence-exact {
  background: var(--success-soft);
  color: var(--success);
}
.confidence-likely {
  background: var(--warning-soft);
  color: var(--warning);
}
.confidence-review {
  background: var(--danger-soft);
  color: var(--danger);
}
.service-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 0;
  padding: 1rem;
  border-block: 1px solid var(--border);
  background: var(--surface-raised);
}
.inference {
  padding: 1rem;
}
.inference p {
  margin: .3rem 0 0;
  color: var(--text-soft);
  font-size: .86rem;
}
.confirmed-box {
  display: grid;
  margin: 0 1rem 1rem;
  padding: .75rem;
  border-radius: 10px;
  background: var(--success-soft);
  color: var(--green-500);
}
.confirmed-box span {
  font-size: .8rem;
}
.service-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  padding: 0 1rem 1rem;
}
.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: var(--space-5);
  align-items: start;
}
.recipe-list {
  display: grid;
  gap: var(--space-4);
}
.recipe-card .section-heading > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.recipe-card p {
  color: var(--text-soft);
}
.recipe-card > small {
  color: var(--text-soft);
}
.recipe-form {
  position: sticky;
  top: 96px;
}
.narrow-panel {
  max-width: 700px;
}
.field,
.stack-form > div:has(> input),
.stack-form > div:has(> textarea),
.stack-form > div:has(> select) {
  display: grid;
  gap: .35rem;
}
.stack-form {
  display: grid;
  gap: 1rem;
}
.field label, .stack-form label {
  font-size: .83rem;
  font-weight: 750;
}
.field label span, .photo-field label span {
  color: var(--text-soft);
  font-weight: 500;
}
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="time"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: .7rem .8rem;
  border: 1px solid var(--neutral-1600);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--text);
}
textarea {
  resize: vertical;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(23,97,58,.15);
}
input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: .55rem;
  border: 1px solid var(--neutral-1600);
  border-radius: 9px;
  background: var(--surface-raised);
}
.check-field {
  display: flex !important;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  cursor: pointer;
}
.check-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.helptext, .help-text {
  color: var(--text-soft);
  font-size: .78rem;
}
.errorlist, .form-error {
  margin: 0;
  padding: .75rem;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  list-style: none;
  font-size: .85rem;
}
.compact-form {
  gap: .8rem;
}
.app-dialog {
  width: min(calc(100% - 2rem), 560px);
  max-height: min(760px, calc(100dvh - 2rem));
  overflow: auto;
  padding: 1.25rem;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.app-dialog::backdrop {
  background: rgba(12,22,15,.58);
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}
.import-layout {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: var(--space-5);
}
.recognised-reports {
  align-self: start;
  height: fit-content;
}
.recognised-reports .check-list {
  margin: .85rem 0 1rem;
}
.recognised-reports .muted {
  margin-bottom: 0;
}
.drop-zone {
  min-height: 230px;
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: .45rem;
  padding: 1.5rem;
  border: 2px dashed var(--green-200);
  border-radius: var(--radius);
  background: var(--primary-soft);
  text-align: center;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.is-dragging {
  border-color: var(--primary);
  background: var(--neutral-700);
}
.drop-zone svg {
  width: 38px;
  color: var(--primary);
}
.drop-zone strong {
  font-size: 1.05rem;
}
.drop-zone span {
  color: var(--text-soft);
  font-weight: 500;
}
.drop-zone input {
  width: auto;
  min-height: auto;
  padding: .5rem;
  border: 0;
  background: transparent;
}
.check-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25rem;
  width: 14px;
  height: 8px;
  border: solid var(--primary);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.import-history {
  margin-top: var(--space-5);
}
.data-table {
  overflow-x: auto;
}
.table-row {
  min-width: 680px;
  display: grid;
  grid-template-columns: 1.5fr 1fr .8fr .5fr 1fr;
  align-items: center;
  gap: .8rem;
  min-height: 54px;
  padding: .65rem .4rem;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--border);
}
a.table-row:hover {
  background: var(--primary-soft);
}
.table-head {
  min-height: 36px;
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-top: 0;
}
.import-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin-bottom: var(--space-5);
}
.import-summary > div {
  display: grid;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.import-summary strong {
  font-size: 1.6rem;
}
.import-summary span {
  color: var(--text-soft);
  font-size: .78rem;
}
.summary-new strong {
  color: var(--blue);
}
.summary-changed strong {
  color: var(--warning);
}
.summary-error strong {
  color: var(--danger);
}
.apply-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-5);
  padding: 1rem 1.2rem;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  background: var(--success-soft);
}
.apply-panel p {
  margin: .2rem 0 0;
  color: var(--green-400);
}
.apply-panel form {
  display: grid;
  gap: .3rem;
  text-align: center;
}
.apply-panel small {
  color: var(--danger);
  max-width: 250px;
}
.apply-blocked-action {
  display: grid;
  gap: .3rem;
  text-align: center;
}
.apply-live-status {
  min-height: 1.2em;
  color: var(--text-soft) !important;
}
.import-table .table-row {
  grid-template-columns: .35fr .7fr 1.7fr 1.25fr;
}
.import-table .table-row > span:nth-child(3) {
  display: grid;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding-block: 2rem;
}
.login-card {
  width: min(100%, 470px);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.login-brand {
  margin-bottom: 1.8rem;
  text-align: center;
}
.brand-mark-large {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.login-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto 1.1rem;
}
.login-brand h1 {
  font-size: 2.8rem;
}
.login-brand p:last-child {
  color: var(--text-soft);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 980px) {
  .page-shell {
    padding-bottom: 6.5rem;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-side {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .round-list, .service-list {
    grid-template-columns: 1fr;
  }
  .recipe-layout {
    grid-template-columns: 1fr;
  }
  .recipe-form {
    position: static;
  }
}
@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1.25rem, var(--content));
  }
  .user-avatar {
    display: none;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .freshness-banner .page-shell {
    padding-block: .6rem;
  }
  .page-shell {
    padding-top: 1.25rem;
  }
  .heading-with-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .heading-with-actions > .button {
    width: 100%;
  }
  .heading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .segmented-control {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }
  .segmented-control a,
  .segmented-control .dashboard-range {
    flex: 1 1 auto;
    max-width: 100%;
  }
  .profile-side, .import-layout {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: stretch;
  }
  .section-heading .button {
    align-self: center;
  }
  .profile-header {
    align-items: flex-start;
  }
  .profile-photo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }
  .owner-line {
    display: grid;
    gap: .25rem;
  }
  .timeline-item footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .care-row {
    grid-template-columns: 1fr 1fr;
  }
  .care-head {
    display: none;
  }
  .history-row {
    grid-template-columns: 1fr auto;
  }
  .history-row > span:last-child {
    grid-column: 1 / -1;
  }
  .round-progress {
    grid-template-columns: auto 1fr;
  }
  .round-progress dl {
    grid-column: 1 / -1;
    justify-content: space-around;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
  }
  .service-actions {
    grid-template-columns: 1fr;
  }
  .search-form {
    display: grid;
  }
  .search-form svg {
    top: 34px;
  }
  .search-form .button {
    width: 100%;
  }
  .import-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .import-summary > div:first-child {
    grid-column: 1 / -1;
  }
  .apply-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 430px) {
  body {
    font-size: .96rem;
  }
  .panel {
    padding: 1rem;
  }
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .profile-header {
    gap: 1rem;
  }
  .profile-photo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .safety-card {
    align-items: flex-start;
  }
  .safety-icon {
    display: none;
  }
  .date-range {
    font-size: 1.4rem;
  }
  .dialog-actions {
    flex-direction: column-reverse;
  }
  .dialog-actions .button {
    width: 100%;
  }
}
@media print {
  body {
    background: var(--surface-raised);
    font-size: 10pt;
  }
  .freshness-banner, .message-region, .button, .tab-row {
    display: none !important;
  }
  .page-shell {
    width: 100%;
    padding: 0;
  }
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }
}
body {
  height: 100dvh;
  overflow: hidden;
  background: var(--neutral-200);
}
.app-shell {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
.sidebar {
  width: 254px;
  flex: 0 0 254px;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 18px;
  background: var(--neutral-2500);
  color: var(--surface-raised);
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  margin: -14px -12px 17px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: var(--surface-raised);
  text-decoration: none;
}
.sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 40px;
}
.sidebar-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebar-brand > span:last-child {
  display: grid;
  gap: 1px;
  line-height: 1;
}
.sidebar-brand strong {
  font-size: 1.19rem;
  font-weight: 800;
  letter-spacing: -.045em;
}
.sidebar-brand small {
  color: var(--accent);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.sidebar-label {
  margin: 16px 2px 5px;
  color: rgba(255,191,35,.78);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sidebar-label:first-child {
  margin-top: 9px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.9);
  gap: .7rem;
  font-size: .91rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,.08);
}
.sidebar-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--neutral-2500);
}
.nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  stroke-width: 2;
  opacity: .72;
}
.sidebar-nav a[aria-current="page"] .nav-icon, .sidebar-nav a:hover .nav-icon {
  opacity: 1;
}
.sidebar-footer {
  margin-top: 20px;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.42);
  font-size: .72rem;
}
.main-area {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 34px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}
.global-search {
  position: relative;
  width: min(100%, 540px);
}
/* Directory pages have their own, more specific search box. */
.main-area:has(.has-own-search) .global-search {
  visibility: hidden;
}
.global-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  color: var(--text-soft);
  transform: translateY(-50%);
}
.global-search input {
  min-height: 42px;
  padding: .55rem 1rem .55rem 43px;
  border-color: var(--neutral-1100);
  border-radius: 12px;
  color: var(--text);
  font-size: .9rem;
}
.global-search input::placeholder {
  color: var(--blue-100);
}
.topbar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.topbar-account > span:last-of-type {
  display: grid;
  line-height: 1.17;
}
.topbar-account strong {
  font-size: .8rem;
}
.topbar-account small {
  color: var(--text-soft);
  font-size: .68rem;
}
.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--yellow-200);
  font-size: .78rem;
}
.topbar-signout {
  min-height: 36px;
  padding: .25rem .45rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: underline;
}
.content-area {
  position: relative;
  flex: 1;
  overflow: auto;
}
.page-shell {
  width: min(100% - 64px, 1440px);
  margin: 0 auto;
  padding: 29px 0 56px;
}
.page-heading {
  margin-bottom: 24px;
}
.page-heading h1 {
  margin-bottom: .45rem;
  letter-spacing: .01em;
}
.page-heading > p:last-child, .profile-heading > p {
  font-size: .9rem;
}
.eyebrow {
  margin-bottom: .25rem;
  color: var(--yellow-1700);
}
.freshness-banner {
  margin: 0;
  padding: 10px 32px;
  border-bottom: 1px solid var(--yellow-400);
  font-size: .84rem;
}
.freshness-banner .page-shell {
  padding: 0;
}
.message-region {
  position: fixed;
  top: 78px;
  right: 28px;
}
.panel, .meal-card, .service-card, .result-list {
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(17,17,17,.035);
}
.panel {
  padding: 18px 20px;
}
.section-heading {
  margin-bottom: 12px;
}
.section-heading h2 span {
  background: var(--neutral-800);
}
.empty-state {
  border-color: var(--neutral-1300);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}
.segmented-control {
  background: var(--neutral-600);
  border-radius: 12px;
}
.segmented-control a {
  min-height: 40px;
  font-size: .82rem;
}
.button {
  min-height: 40px;
  border-radius: 10px;
  font-size: .84rem;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--neutral-2500);
}
.button-primary:hover {
  background: var(--yellow-800);
  border-color: var(--yellow-800);
}
.button-secondary {
  border-color: var(--neutral-1100);
}
@media (max-width: 980px) {
  body {
    height: auto;
    overflow: auto;
  }
  .app-shell {
    height: auto;
    min-height: 100dvh;
  }
  .sidebar {
    width: 210px;
    flex-basis: 210px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .page-shell {
    width: min(100% - 40px, 1440px);
  }
  .global-search {
    width: 360px;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: 100%;
    min-height: auto;
    padding: 0 12px 10px;
    overflow: visible;
  }
  .sidebar-brand {
    min-height: 57px;
    margin: 0 -12px 7px;
    padding: 10px 18px;
  }
  .sidebar-brand-mark {
    width: 42px;
    height: 34px;
  }
  .sidebar-brand strong {
    font-size: 1rem;
  }
  .sidebar-nav {
    flex: unset;
    flex-flow: row wrap;
    gap: 5px;
  }
  .sidebar-label, .sidebar-footer {
    display: none;
  }
  .sidebar-nav a {
    min-height: 36px;
    padding: 0 9px;
    font-size: .76rem;
  }
  .topbar {
    min-height: 58px;
    padding: 8px 14px;
  }
  .topbar-account > span:last-of-type, .topbar-signout {
    display: none;
  }
  .global-search {
    width: 100%;
  }
  .content-area {
    overflow: visible;
  }
  .page-shell {
    width: min(100% - 28px, 1440px);
    padding-top: 21px;
  }
  .freshness-banner {
    padding-inline: 14px;
  }
  .message-region {
    top: 70px;
    right: 14px;
  }
}
.admin-source-details {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--border);
  color: var(--text-soft);
  font-size: .76rem;
}
.admin-source-details strong {
  color: var(--text);
}
.admin-inline-source {
  font-size: .72rem;
  color: var(--text-soft);
}
.directory-panel {
  padding: 0;
  overflow: hidden;
}
.directory-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: .65rem;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.directory-search input {
  min-height: 42px;
}
.directory-table {
  padding: 0 20px 18px;
}
.pet-directory-row {
  grid-template-columns: 1.15fr 1.35fr 1fr .8fr;
  min-width: 760px;
}
@media (max-width: 720px) {
  .pet-directory-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: .2rem;
    padding: .75rem 0;
  }
  .pet-directory-row.table-head {
    display: none;
  }
  .pet-directory-row .pet-breed::before {
    content: "Breed · ";
    color: var(--ink-500, #6b675f);
    font-weight: 600;
  }
}
.owner-directory-row {
  grid-template-columns: 1.1fr 1.25fr 1.65fr;
  min-width: 760px;
}
.directory-primary {
  display: grid;
  gap: .18rem;
  min-width: 0;
}
.directory-primary small {
  color: var(--text-soft);
  font-size: .74rem;
  overflow-wrap: anywhere;
}
.directory-primary a {
  color: var(--text);
  overflow-wrap: anywhere;
}
.owner-pet-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .25rem .55rem;
  border: 1px solid var(--neutral-1200);
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--text);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.mini-link:hover {
  border-color: var(--accent);
  background: var(--primary-soft);
}
.directory-limit {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-soft);
  font-size: .8rem;
}
.import-errors {
  margin-bottom: var(--space-5);
  border-color: var(--red-100);
  background: var(--neutral-200);
}
.import-errors .section-heading p:last-child {
  margin: .25rem 0 0;
  color: var(--text-soft);
}
.error-reason {
  color: var(--danger);
  font-weight: 700;
}
.apply-panel-blocked {
  border-color: var(--red-100);
  background: var(--danger-soft);
}
.apply-panel-blocked p {
  color: var(--red-200);
}
@media (max-width: 720px) {
  .directory-search {
    grid-template-columns: 1fr 1fr;
  }
  .directory-search input {
    grid-column: 1 / -1;
  }
}
.mobile-menu-toggle, .sidebar-close, .sidebar-overlay {
  display: none;
}
.mobile-menu-toggle, .sidebar-close {
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
}
.mobile-menu-toggle {
  background: var(--yellow-100);
  color: var(--neutral-2500);
}
.mobile-menu-toggle svg, .sidebar-close svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.pet-bulk-toolbar {
  display: grid;
  gap: .65rem;
  margin-bottom: .9rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--neutral-100);
}
.pet-bulk-select-all {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem;
}
.pet-bulk-select-all .check-field {
  min-height: 30px;
  font-weight: 700;
}
.pet-bulk-toolbar form {
  display: flex;
  align-items: end;
  gap: .65rem;
  flex-wrap: wrap;
}
.pet-bulk-decision, .pet-bulk-owner {
  display: grid;
  gap: .25rem;
  min-width: min(100%, 250px);
  flex: 1 1 240px;
  font-size: .78rem;
  font-weight: 700;
}
.pet-bulk-toolbar select {
  width: 100%;
  min-height: 42px;
}
.pet-bulk-toolbar button {
  min-height: 42px;
}
.pet-bulk-owner[hidden] {
  display: none;
}
.pet-bulk-row-select {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  cursor: pointer;
}
.pet-bulk-row-select input {
  width: 21px;
  height: 21px;
  accent-color: var(--primary);
}
.import-error-card:has(.pet-bulk-row-select input:checked) {
  border-color: var(--yellow-1100);
  background: var(--neutral-100);
}
@media (max-width: 610px) {
  .pet-bulk-toolbar form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .pet-bulk-toolbar form button {
    width: 100%;
  }
}
.import-error-cards {
  display: grid;
  gap: .85rem;
}
.import-error-card {
  padding: 1rem;
  border: 1px solid var(--red-100);
  border-radius: 12px;
  background: var(--surface-raised);
}
.import-error-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.import-error-card-head > div {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.import-error-card-head strong {
  font-size: 1rem;
}
.import-error-card-head small {
  color: var(--text-soft);
}
.row-kicker {
  color: var(--red-300);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.error-fix-panel {
  margin-top: .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--neutral-200);
}
.error-fix-panel summary {
  padding: .8rem .9rem;
  cursor: pointer;
  font-weight: 800;
}
.pet-error-form {
  display: grid;
  gap: 1rem;
  padding: 0 .9rem .9rem;
  border-top: 1px solid var(--border);
}
.fix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
  padding-top: .9rem;
}
.fix-grid label, .owner-resolution > label:not(.check-field) {
  display: grid;
  gap: .32rem;
  color: var(--text);
  font-size: .78rem;
  font-weight: 750;
}
.owner-resolution {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: end;
  gap: .7rem;
}
.owner-resolution .compact-check {
  grid-column: 1 / -1;
}
.owner-or {
  padding-bottom: .85rem;
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 700;
}
.inline-actions {
  display: flex;
  justify-content: flex-end;
}
.skip-row-form {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .8rem;
}
.skip-row-form small {
  color: var(--text-soft);
}
.button-danger-text {
  color: var(--danger);
}
.excluded-rows {
  margin-bottom: var(--space-5);
}
.excluded-list {
  display: grid;
  gap: .5rem;
}
.excluded-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
}
.excluded-item > div {
  display: grid;
}
.excluded-item small {
  color: var(--text-soft);
}
.summary-skipped strong {
  color: var(--orange-400);
}
.row-is-skipped {
  opacity: .72;
}
.reconciliation-record {
  display: grid;
  gap: .15rem;
}
@media (max-width: 720px) {
  body.nav-open {
    overflow: hidden;
  }
  .app-shell {
    display: block;
    min-height: 100dvh;
  }
  .main-area {
    overflow: visible;
  }
  .content-area {
    overflow: visible;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: min(86vw, 320px);
    min-height: 100dvh;
    padding: 14px 12px 18px;
    overflow-y: auto;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  .sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .2s ease;
    box-shadow: 18px 0 45px rgba(0,0,0,.28);
  }
  .sidebar-brand {
    min-height: 64px;
    margin: -14px -12px 12px;
    padding: 12px 58px 12px 18px;
  }
  .sidebar-close {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 2;
    display: flex;
    background: rgba(255,255,255,.09);
    color: var(--surface-raised);
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    border: 0;
    background: rgba(0,0,0,.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .mobile-menu-toggle {
    display: flex;
    flex: 0 0 auto;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 60px;
    padding: 8px 12px;
    gap: 8px;
  }
  .global-search {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .global-search input {
    min-width: 0;
    min-height: 42px;
    font-size: 16px;
  }
  .topbar-account {
    gap: 0;
  }
  .topbar-account > span {
    display: none;
  }
  .topbar-signout {
    padding-inline: .35rem;
    font-size: .72rem;
  }
  .page-shell {
    width: calc(100% - 24px);
    padding-top: 18px;
    padding-bottom: 36px;
  }
  .freshness-banner {
    padding: 9px 12px;
    font-size: .78rem;
  }
  .panel {
    min-width: 0;
    padding: 14px;
  }
  .import-layout {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .upload-panel {
    padding: 12px;
  }
  .drop-zone {
    min-height: 165px;
    padding: 1rem;
  }
  .drop-zone input[type="file"] {
    max-width: 100%;
    font-size: .8rem;
  }
  .import-summary {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .55rem;
  }
  .import-summary > div {
    padding: .75rem;
  }
  .import-summary > div:first-child {
    grid-column: auto;
  }
  .import-summary strong {
    font-size: 1.3rem;
  }
  .apply-panel {
    align-items: stretch;
    flex-direction: column;
    padding: .9rem;
  }
  .apply-panel form, .apply-panel .button {
    width: 100%;
  }
  .fix-grid {
    grid-template-columns: 1fr;
  }
  .owner-resolution {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .owner-or {
    padding: 0;
    text-align: center;
  }
  .owner-resolution .compact-check {
    grid-column: auto;
  }
  .inline-actions, .inline-actions .button {
    width: 100%;
  }
  .skip-row-form {
    align-items: stretch;
    flex-direction: column;
  }
  .skip-row-form .button {
    width: 100%;
  }
  .import-error-card {
    padding: .85rem;
  }
  .import-error-card-head {
    gap: .5rem;
  }
  .excluded-item {
    align-items: stretch;
    flex-direction: column;
  }
  .excluded-item .button {
    width: 100%;
  }
  .reconciliation-panel, .import-history {
    overflow: visible;
  }
  .import-table, .import-history .data-table {
    overflow: visible;
  }
  .import-table .table-head, .import-history .table-head {
    display: none;
  }
  .import-table .table-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: .45rem;
    margin-bottom: .7rem;
    padding: .8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-raised);
  }
  .import-table .table-row > span {
    display: grid;
    grid-template-columns: 78px minmax(0,1fr);
    gap: .5rem;
    align-items: start;
    min-width: 0;
  }
  .import-table .table-row > span::before {
    content: attr(data-label);
    color: var(--text-soft);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .import-table .reconciliation-record {
    display: grid;
  }
  .import-table .reconciliation-record small {
    overflow-wrap: anywhere;
  }
  .import-history .table-row:not(.table-head) {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .7rem;
    margin-bottom: .6rem;
    padding: .8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-raised);
  }
  .import-history .table-row:not(.table-head) > strong {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }
  .directory-table {
    padding-inline: 0;
  }
  .owner-directory-row {
    min-width: 620px;
  }
  .pet-directory-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .topbar-signout {
    display: none;
  }
  .page-shell {
    width: calc(100% - 18px);
  }
  .import-summary {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .import-error-card-head {
    flex-direction: column;
  }
}
.mobile-sidebar-account {
  display: none;
}
@media (max-width: 720px) {
  .mobile-sidebar-account {
    display: grid;
    gap: .45rem;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(255,255,255,.09);
  }
  .mobile-sidebar-account strong {
    color: var(--surface-raised);
    font-size: .8rem;
  }
  .mobile-sidebar-account button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 750;
    text-align: left;
    text-decoration: underline;
  }
}
.dashboard-heading-actions {
  margin-left: auto;
}
.dashboard-heading-actions .text-link {
  white-space: nowrap;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 750;
}
.report-heading {
  margin-bottom: 14px;
}
.report-periods {
  display: flex;
  gap: .35rem;
  margin-bottom: 14px;
  padding: .28rem;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--neutral-600);
}
@media (max-width: 720px) {
  .report-periods {
    flex-wrap: wrap;
    max-width: 100%;
    overflow: visible;
    row-gap: .35rem;
  }
}
.report-periods a {
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}
.report-periods a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 1px 8px rgba(0,0,0,.07);
}
.report-range-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto;
  align-items: end;
  gap: .75rem;
  margin-bottom: 14px;
}
.report-range-form label {
  display: grid;
  gap: .3rem;
  color: var(--text-soft);
  font-size: .74rem;
  font-weight: 750;
}
.report-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: .7rem;
  margin-bottom: 18px;
}
.report-summary > div {
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}
.report-summary strong {
  display: block;
  margin-bottom: .12rem;
  font-size: 1.45rem;
  line-height: 1;
}
.report-summary span {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 700;
}
.report-daily-panel, .report-detail-panel {
  margin-bottom: 18px;
}
.report-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: .7rem;
}
.report-day-card {
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-raised);
}
.report-day-card header {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.report-day-card header span {
  color: var(--text-soft);
}
.report-day-card dl {
  display: grid;
  gap: .3rem;
  margin: 0;
}
.report-day-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .3rem;
  border-top: 1px solid var(--neutral-800);
}
.report-day-card dt {
  color: var(--text-soft);
}
.report-day-card dd {
  margin: 0;
  font-weight: 800;
}
.report-table {
  display: grid;
}
.report-row {
  display: grid;
  grid-template-columns: 1.25fr .85fr 1.05fr 1.05fr .65fr;
  align-items: center;
  gap: .8rem;
  min-height: 58px;
  padding: .65rem .2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.report-row:not(.report-head):hover {
  background: var(--neutral-100);
}
.report-head {
  min-height: 38px;
  color: var(--text-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.report-dog {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.report-dog small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}
.report-status {
  display: inline-flex;
  width: fit-content;
  padding: .3rem .5rem;
  border-radius: 999px;
  background: var(--neutral-800);
  font-size: .72rem;
  font-weight: 800;
}
@media (max-width: 900px) {
  .report-summary {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 720px) {
  .dashboard-heading-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }
  .dashboard-heading-actions .text-link {
    text-align: center;
  }
  .report-range-form {
    grid-template-columns: 1fr 1fr;
  }
  .report-range-form .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .report-summary {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .report-day-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .report-head {
    display: none;
  }
  .report-row:not(.report-head) {
    grid-template-columns: 1fr 1fr;
    gap: .55rem .8rem;
    margin-bottom: .7rem;
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-raised);
  }
  .report-dog {
    grid-column: 1 / -1;
    padding-bottom: .25rem;
  }
  .report-row > span:not(.report-dog) {
    display: grid;
    gap: .18rem;
    min-width: 0;
  }
  .report-row > span:not(.report-dog)::before {
    content: attr(data-label);
    color: var(--text-soft);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
}
@media (max-width: 430px) {
  .report-range-form {
    grid-template-columns: 1fr;
  }
  .report-range-form .button {
    grid-column: auto;
  }
  .report-day-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    width: min(82vw, 300px);
    min-height: 100dvh;
    padding: 14px 12px 18px;
    overflow-y: auto;
  }
  .sidebar-brand {
    min-height: 58px;
    margin: -14px -12px 8px;
    padding: 10px 56px 10px 16px;
  }
  .sidebar-brand-mark {
    width: 34px;
    height: 34px;
  }
  .sidebar-brand strong {
    font-size: 1rem;
  }
  .sidebar-brand small {
    font-size: .61rem;
  }
  .sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .sidebar-label {
    display: block;
    margin: 13px 4px 5px;
    font-size: .58rem;
  }
  .sidebar-label:first-child {
    margin-top: 6px;
  }
  .sidebar-nav a {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    font-size: .84rem;
    border-radius: 9px;
  }
  .sidebar-footer {
    display: block;
    margin-top: 16px;
    padding: 10px 10px 0;
  }
  .topbar {
    min-height: 58px;
    padding: 7px 10px;
    gap: 8px;
  }
  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }
  .global-search input {
    height: 42px;
    min-height: 42px;
    padding-left: 40px;
    font-size: 16px;
  }
  .global-search svg {
    left: 13px;
    width: 18px;
  }
  .import-page {
    width: calc(100% - 18px);
    padding-top: 14px;
  }
  .import-page-heading {
    margin-bottom: 12px;
  }
  .import-page-heading .eyebrow {
    margin-bottom: .12rem;
  }
  .import-page-heading h1 {
    margin-bottom: .25rem;
    font-size: 2.1rem;
  }
  .import-page-heading > p:last-child {
    margin: 0;
    font-size: .82rem;
    line-height: 1.45;
  }
  .import-page .import-layout {
    gap: .65rem;
  }
  .import-page .upload-panel {
    padding: 10px;
  }
  .import-page .drop-zone {
    min-height: 120px;
    gap: .28rem;
    padding: .85rem;
    border-width: 1.5px;
    border-radius: 12px;
  }
  .import-page .drop-zone svg {
    width: 28px;
  }
  .import-page .drop-zone strong {
    font-size: .93rem;
  }
  .import-page .drop-zone > span {
    font-size: .76rem;
  }
  .import-page .drop-zone input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    padding: .25rem 0;
    font-size: .72rem;
  }
  .import-page .help-text {
    margin: .45rem 0 .65rem;
    font-size: .7rem;
    line-height: 1.35;
  }
  .import-page .button-full {
    min-height: 42px;
  }
  .recognised-reports {
    padding: 12px 14px;
  }
  .recognised-reports h2 {
    margin-bottom: .65rem;
    font-size: 1.08rem;
  }
  .recognised-reports .check-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .5rem .75rem;
    margin-bottom: .7rem;
  }
  .recognised-reports .check-list li {
    padding-left: 1.3rem;
    font-size: .78rem;
  }
  .recognised-reports .check-list li::before {
    top: .2rem;
    width: 11px;
    height: 6px;
  }
  .recognised-reports .muted {
    margin: 0;
    font-size: .72rem;
    line-height: 1.4;
  }
  .import-page .import-history {
    margin-top: .7rem;
    padding: 12px;
  }
  .import-page .import-history .section-heading {
    margin-bottom: .55rem;
  }
  .import-page .import-history .section-heading h2 {
    font-size: 1.1rem;
  }
  .import-page .import-history .eyebrow {
    margin-bottom: .08rem;
  }
  .import-page .import-history .data-table {
    display: grid;
    gap: .5rem;
  }
  .import-page .import-history .table-row:not(.table-head) {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: .28rem .65rem;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: .68rem .72rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-raised);
  }
  .import-page .import-history .table-row:not(.table-head) > strong {
    grid-column: 1 / -1;
    font-size: .82rem;
  }
  .import-page .import-history .table-row:not(.table-head) > span {
    font-size: .72rem;
  }
  .import-page .import-history .table-row:not(.table-head) > span:nth-of-type(1) {
    grid-column: 1;
  }
  .import-page .import-history .table-row:not(.table-head) > span:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  .import-page .import-history .table-row:not(.table-head) > span:nth-of-type(3) {
    grid-column: 1;
  }
  .import-page .import-history .table-row:not(.table-head) > span:nth-of-type(4) {
    grid-column: 2;
    justify-self: end;
    color: var(--text-soft);
  }
}
@media (max-width: 390px) {
  .sidebar {
    width: min(86vw, 292px);
  }
  .recognised-reports .check-list {
    grid-template-columns: 1fr 1fr;
  }
  .import-page .drop-zone > span {
    display: none;
  }
}
.service-card {
  scroll-margin-top: 84px;
}
.service-card:target {
  border-color: var(--yellow-800);
  box-shadow: 0 0 0 3px rgba(255,191,35,.22), 0 7px 22px rgba(17,17,17,.05);
}
.service-attention-item small {
  color: var(--yellow-1300);
  font-weight: 800;
}
.pricing-evidence {
  margin-top: .9rem;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--neutral-100);
}
.pricing-evidence-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .8rem;
}
.pricing-evidence-head h3 {
  margin: 0;
  font-size: 1rem;
}
.suggestion-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: var(--yellow-200);
  color: var(--yellow-1700);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.invoice-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .55rem;
}
.invoice-evidence-grid > div {
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--neutral-900);
  border-radius: 10px;
  background: var(--surface-raised);
}
.invoice-evidence-grid span {
  display: block;
  margin-bottom: .18rem;
  color: var(--text-soft);
  font-size: .67rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.invoice-evidence-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: .84rem;
}
.pricing-note {
  margin: .55rem 0 0;
  color: var(--text-soft);
  font-size: .74rem;
  line-height: 1.45;
}
.pricing-reason {
  color: var(--yellow-1600);
}
.accommodation-options {
  margin-top: 1rem;
}
.pricing-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .7rem;
}
.pricing-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}
.pricing-option.is-current {
  border-color: var(--yellow-800);
  box-shadow: 0 0 0 2px rgba(255,191,35,.18);
}
.pricing-option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.pricing-option-title > span {
  padding: .22rem .42rem;
  border-radius: 999px;
  background: var(--yellow-200);
  color: var(--yellow-1700);
  font-size: .64rem;
  font-weight: 800;
}
.pricing-option dl {
  display: grid;
  gap: .35rem;
  margin: 0;
  flex: 1;
}
.pricing-option dl div {
  padding-top: .35rem;
  border-top: 1px solid var(--neutral-800);
}
.pricing-option dt {
  color: var(--text-soft);
  font-size: .66rem;
  font-weight: 750;
}
.pricing-option dd {
  margin: .08rem 0 0;
  font-size: .76rem;
  font-weight: 750;
}
.pricing-option .button {
  width: 100%;
}
@media (max-width: 900px) {
  .invoice-evidence-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .pricing-option-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .pricing-evidence {
    padding: .75rem;
  }
  .pricing-evidence-head {
    align-items: stretch;
    flex-direction: column;
  }
  .suggestion-chip {
    width: fit-content;
  }
  .invoice-evidence-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-option {
    padding: .75rem;
  }
}
@media (max-width: 390px) {
  .invoice-evidence-grid {
    grid-template-columns: 1fr;
  }
}
.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1.25rem;
}
.service-summary-grid > a {
  display: grid;
  gap: .25rem;
  min-height: 112px;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.service-summary-grid > a:hover {
  border-color: var(--yellow-900);
  background: var(--neutral-100);
}
.service-summary-grid span {
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.service-summary-grid strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1;
}
.service-summary-grid small {
  color: var(--text-soft);
}
.service-section {
  margin-top: 2rem;
}
.service-overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.service-overview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.extra-service-card {
  border-left-color: var(--purple-200);
}
.extra-badge {
  background: var(--purple-100);
  color: var(--purple-300);
}
.service-overview-footer {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
}
.service-overview-footer > div:first-child {
  min-width: 0;
  display: grid;
  gap: .18rem;
  flex: 1;
}
.service-overview-footer small {
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.4;
}
.source-charge {
  display: grid;
  gap: .1rem;
  flex: 0 0 auto;
  text-align: right;
}
.source-charge span {
  color: var(--text-soft);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.source-charge strong {
  font-size: .8rem;
}
.service-legacy-note {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--yellow-400);
  border-radius: 12px;
  background: var(--neutral-300);
}
.service-legacy-note p {
  margin: .2rem 0 0;
  color: var(--yellow-1600);
  font-size: .82rem;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .service-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-overview-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .service-summary-grid {
    gap: .6rem;
  }
  .service-summary-grid > a {
    min-height: 96px;
    padding: .8rem;
  }
  .service-summary-grid strong {
    font-size: 2rem;
  }
  .service-overview-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .source-charge {
    text-align: left;
  }
}
.section-help {
  margin: .35rem 0 0;
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.45;
}
.bulk-review-form {
  display: grid;
  gap: 1rem;
}
.batch-review-card {
  border-left-color: var(--accent);
}
.batch-accommodation-options {
  padding: 1rem;
}
.batch-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}
.batch-pricing-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}
.batch-pricing-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.batch-pricing-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease, background-color .16s ease;
}
.batch-pricing-choice:hover .batch-pricing-body {
  border-color: var(--yellow-900);
  background: var(--neutral-100);
}
.batch-pricing-choice > input:focus-visible + .batch-pricing-body {
  outline: 3px solid rgba(255,191,35,.35);
  outline-offset: 2px;
}
.batch-pricing-choice > input:checked + .batch-pricing-body {
  border-color: var(--yellow-1000);
  background: var(--yellow-100);
  box-shadow: 0 0 0 2px rgba(255,191,35,.2);
  transform: translateY(-1px);
}
.batch-pricing-choice.is-suggested .batch-pricing-body {
  border-color: var(--yellow-600);
}
.batch-pricing-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.batch-pricing-title strong {
  font-size: .95rem;
}
.batch-pricing-title em {
  padding: .2rem .42rem;
  border-radius: 999px;
  background: var(--yellow-200);
  color: var(--yellow-1700);
  font-size: .64rem;
  font-style: normal;
  font-weight: 800;
}
.price-line {
  display: grid;
  gap: .16rem;
  padding-top: .55rem;
  border-top: 1px solid var(--neutral-900);
}
.price-line b {
  color: var(--text-soft);
  font-size: .66rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-line > span {
  font-size: .95rem;
  font-weight: 800;
}
.price-line small {
  color: var(--text-soft);
  font-size: .72rem;
  line-height: 1.4;
}
.secondary-price > span {
  font-size: .8rem;
}
.batch-review-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 1rem 1rem;
}
.batch-review-help {
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: .75rem;
}
.batch-clear-selection {
  flex: 0 0 auto;
  min-height: 34px;
  padding: .45rem .7rem;
  font-size: .75rem;
}
.batch-clear-selection:disabled {
  opacity: .45;
}
.bulk-review-submit {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--yellow-600);
  border-radius: 14px;
  background: rgba(255, 251, 235, .96);
  box-shadow: 0 14px 34px rgba(17,17,17,.12);
  backdrop-filter: blur(10px);
}
.bulk-review-submit > div {
  display: grid;
  gap: .14rem;
}
.bulk-review-submit small {
  color: var(--text-soft);
  font-size: .76rem;
}
.bulk-review-submit .button {
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .batch-pricing-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .bulk-review-submit {
    align-items: stretch;
    flex-direction: column;
  }
  .bulk-review-submit .button {
    width: 100%;
  }
}
.invoice-evidence-grid .actual-charge-cell {
  border-color: rgba(255,191,35,.7);
  background: var(--yellow-100);
}
.invoice-evidence-grid .actual-charge-cell strong {
  font-size: 1rem;
}
:root {
  --ui-xs: .72rem;
  --ui-sm: .82rem;
  --ui-md: .92rem;
  --ui-lg: 1.12rem;
  --ui-xl: 1.35rem;
}
body {
  font-size: 14px;
  line-height: 1.5;
}
.page-heading h1 {
  font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
}
.page-heading > p:last-child {
  max-width: 66ch;
  font-size: var(--ui-md);
  line-height: 1.45;
}
.eyebrow {
  font-size: var(--ui-xs);
  font-weight: 800;
  letter-spacing: .11em;
}
.section-heading h2 {
  font-size: var(--ui-xl);
  font-weight: 800;
}
h3 {
  font-size: var(--ui-lg);
  font-weight: 800;
}
.button, .segmented-control a, .tab-row a {
  min-height: 44px;
  font-size: var(--ui-sm);
  font-weight: 800;
}
.dog-identity strong {
  font: 800 1.08rem/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: -.02em;
}
.dog-placeholder {
  font: 800 1.2rem/1 "DM Sans", system-ui, sans-serif;
}
.dog-identity small {
  margin-top: .12rem;
  font-size: .78rem;
}
dt {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}
dd {
  font-size: .88rem;
  font-weight: 750;
}
.dog-identity img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}
.operation-section {
  margin-top: 30px;
}
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .page-shell {
    width: min(100% - 24px, 1440px);
    padding-top: 16px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .page-heading > p:last-child {
    font-size: .86rem;
  }
  .heading-with-actions {
    gap: 12px;
  }
  .dashboard-heading-actions {
    width: 100%;
  }
  .dashboard-heading-actions .text-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
  .dog-identity img {
    width: 48px;
    height: 48px;
  }
  .dog-identity strong {
    font-size: 1rem;
  }
  .service-badge, .status-chip, .confidence, .round-status {
    font-size: .66rem;
  }
}
@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 20px);
  }
}
.app-loading[hidden] {
  display: none !important;
}
.app-loading {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(247,247,245,.88);
  backdrop-filter: blur(4px);
}
.app-loading-card {
  width: min(280px, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: .8rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.app-loading-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.app-loading-card strong {
  font-size: .88rem;
}
.app-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(17,17,17,.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: app-loading-spin .75s linear infinite;
}
@keyframes app-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .app-loading-spinner {
    animation-duration: 1.5s;
  }
}
@media (max-width: 720px) {
  .roster-action {
    width: 100%;
  }
}
.sidebar-settings-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .65rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 650;
}
.sidebar-settings-link:hover, .sidebar-settings-link[aria-current="page"] {
  color: var(--accent);
}
.dashboard-screen {
  --dashboard-gap: .85rem;
  width: min(100% - 2rem, 1480px);
}
.dashboard-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dashboard-page-heading h1 {
  margin-bottom: .15rem;
  font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.7rem);
}
.dashboard-page-heading p {
  margin: 0;
  color: var(--text-soft);
}
.dashboard-heading-actions {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--dashboard-gap);
  margin-bottom: var(--dashboard-gap);
}
.dashboard-metric {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.dashboard-metric > span:last-child {
  display: grid;
  min-width: 0;
}
.dashboard-metric strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
}
.dashboard-metric small {
  margin-top: .28rem;
  color: var(--text-soft);
  font-size: .76rem;
  line-height: 1.2;
}
.metric-icon, .shortcut-icon, .action-mini-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--neutral-2500);
}
.metric-icon svg, .shortcut-icon svg, .action-mini-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.metric-icon-dark {
  background: var(--neutral-2500);
  color: var(--accent);
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--dashboard-gap);
  align-items: start;
}
.dashboard-main-column, .dashboard-side-column {
  min-width: 0;
}
.dashboard-side-column {
  display: grid;
  gap: var(--dashboard-gap);
}
.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dashboard-gap);
  margin-bottom: var(--dashboard-gap);
}
.dashboard-shortcut {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.dashboard-shortcut > span:nth-last-child(2) {
  display: grid;
  min-width: 0;
}
.dashboard-shortcut strong {
  font-size: .9rem;
}
.dashboard-shortcut small {
  margin-top: .12rem;
  color: var(--text-soft);
  font-size: .72rem;
  line-height: 1.25;
}
.shortcut-arrow {
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-soft);
}
.dashboard-shortcut:hover {
  border-color: var(--neutral-1400);
}
.roster-panel, .dashboard-side-card, .settings-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.roster-panel {
  overflow: hidden;
}
.roster-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: .55rem .8rem 0;
  border-bottom: 1px solid var(--border);
}
.dashboard-tabs {
  display: flex;
  align-items: stretch;
  gap: .2rem;
}
.dashboard-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 46px;
  padding: 0 .72rem;
  color: var(--text-soft);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
}
.dashboard-tabs a span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--neutral-600);
  color: var(--text);
  font-size: .67rem;
}
.dashboard-tabs a[aria-current="true"] {
  color: var(--text);
}
.dashboard-tabs a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.roster-table-head, .roster-row {
  display: grid;
  grid-template-columns: minmax(150px,1.15fr) minmax(140px,1fr) minmax(150px,1.05fr) minmax(120px,.9fr) minmax(92px,.7fr) minmax(102px,.75fr);
  gap: .65rem;
  align-items: center;
}
.roster-table-head {
  min-height: 38px;
  padding: 0 1rem;
  color: var(--text-soft);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.roster-list {
  padding-bottom: .25rem;
}
.roster-row {
  min-height: 58px;
  padding: .48rem 1rem;
  border-top: 1px solid var(--border);
}
.roster-row:first-child {
  border-top: 0;
}
.roster-row:hover {
  background: var(--neutral-200);
}
.roster-dog {
  display: flex;
  align-items: center;
  gap: .58rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.roster-dog img, .roster-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--neutral-2500);
  font-size: .72rem;
  font-weight: 800;
  object-fit: cover;
}
.roster-dog-copy {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}
.roster-dog-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .83rem;
}
.roster-dog-copy small {
  margin-top: .12rem;
  color: var(--text-soft);
  font-size: .65rem;
}
.roster-owner, .roster-service, .roster-time {
  min-width: 0;
  color: var(--neutral-2100);
  font-size: .75rem;
}
.roster-owner, .roster-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-service {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.service-mini-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent);
  color: var(--neutral-2500);
}
.service-mini-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.75;
}
.roster-status {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.roster-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .3rem .58rem;
  border-radius: 999px;
  background: var(--neutral-600);
  color: var(--neutral-2100);
  font-size: .66rem;
  font-weight: 700;
  white-space: nowrap;
}
.roster-status-in_house {
  background: var(--neutral-400);
  color: var(--green-300);
}
.roster-status-due_in, .roster-status-scheduled {
  background: var(--accent-soft);
  color: var(--yellow-1800);
}
.roster-status-checked_out {
  background: var(--neutral-600);
  color: var(--neutral-1900);
}
.roster-action {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: inherit;
}
.roster-action form {
  margin: 0;
  width: 100%;
}
.roster-action-button {
  width: 100%;
  min-height: 36px;
  padding: .42rem .65rem;
  font-size: .72rem;
}
.roster-no-action {
  color: var(--neutral-1700);
  margin-left: auto;
}
.roster-row-complete {
  opacity: .62;
  background: var(--neutral-200);
}
.roster-household {
  margin: .25rem .6rem .45rem;
  overflow: hidden;
  border: 1px solid var(--neutral-1200);
  border-radius: 11px;
  background: var(--neutral-200);
}
.roster-household-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .8rem;
  background: var(--neutral-600);
  color: var(--text-soft);
  font-size: .68rem;
}
.roster-household-head > span {
  padding: .2rem .38rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--yellow-1700);
  font-size: .61rem;
  font-weight: 800;
  text-transform: uppercase;
}
.roster-household-head strong {
  color: var(--text);
  font-size: .75rem;
}
.roster-household-head small {
  margin-left: auto;
}
.roster-household .roster-row {
  padding-inline: .65rem;
}
.dashboard-side-card {
  padding: .9rem;
}
.side-card-heading {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: .55rem;
}
.side-card-heading h2 {
  margin: 0;
  font-size: 1rem;
}
.side-card-heading > span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--neutral-2500);
  font-size: .68rem;
  font-weight: 800;
}
.action-needed-list {
  display: grid;
}
.action-needed-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .62rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.action-needed-item:first-child {
  border-top: 0;
}
.action-needed-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
}
.action-needed-item strong {
  font-size: .76rem;
  line-height: 1.25;
}
.action-needed-item small {
  margin-top: .12rem;
  color: var(--text-soft);
  font-size: .67rem;
  line-height: 1.25;
}
.action-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--neutral-2500);
  font-size: .73rem;
  font-weight: 800;
}
.action-mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.action-mini-icon svg {
  width: 16px;
  height: 16px;
}
.action-needed-empty {
  display: grid;
  gap: .15rem;
  padding: .65rem 0 .25rem;
}
.action-needed-empty strong {
  font-size: .8rem;
}
.action-needed-empty small {
  color: var(--text-soft);
  font-size: .7rem;
}
.timeline-list {
  position: relative;
  display: grid;
  gap: 0;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--neutral-800);
}
.timeline-item {
  position: relative;
  min-height: 38px;
  display: grid;
  grid-template-columns: 58px 18px 1fr;
  gap: .35rem;
  align-items: center;
  font-size: .72rem;
}
.timeline-item time {
  color: var(--text-soft);
}
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  justify-self: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface-raised);
}
.timeline-item small {
  color: var(--text-soft);
}
.timeline-empty {
  margin: .25rem 0 0;
  color: var(--text-soft);
  font-size: .72rem;
}
.dashboard-style-compact .dashboard-metric {
  min-height: 72px;
  padding: .75rem .9rem;
  box-shadow: none;
}
.dashboard-style-compact .dashboard-shortcut {
  min-height: 64px;
  padding: .72rem .85rem;
  box-shadow: none;
}
.dashboard-style-compact .roster-row {
  min-height: 52px;
}
.dashboard-style-compact .roster-dog {
  gap: 0;
}
.dashboard-style-compact .dashboard-side-card, .dashboard-style-compact .roster-panel {
  box-shadow: none;
}
.dashboard-style-balanced .dashboard-metric, .dashboard-style-balanced .dashboard-shortcut {
  box-shadow: none;
}
.dashboard-style-balanced .dashboard-metric {
  position: relative;
  padding-left: 1.05rem;
}
.dashboard-style-balanced .dashboard-metric::before {
  content: "";
  width: 3px;
  position: absolute;
  left: .72rem;
  top: .85rem;
  bottom: .85rem;
  border-radius: 3px;
  background: var(--accent);
}
.dashboard-style-balanced .dashboard-metric > span:last-child {
  padding-left: .3rem;
}
.dashboard-style-visual .dashboard-metric, .dashboard-style-visual .dashboard-shortcut {
  border-color: var(--neutral-1200);
}
.dashboard-style-visual .dashboard-shortcut:hover .shortcut-icon {
  background: var(--neutral-2500);
  color: var(--accent);
}
.settings-heading {
  max-width: 760px;
}
.settings-panel {
  max-width: 1040px;
  padding: 1.1rem;
}
.settings-section-heading {
  margin-bottom: 1rem;
}
.settings-section-heading h2 {
  margin-bottom: .2rem;
}
.settings-section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: .85rem;
}
.dashboard-style-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .9rem;
}
.dashboard-style-option {
  position: relative;
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
  cursor: pointer;
}
.dashboard-style-option:has(input:checked) {
  border-color: var(--neutral-2500);
  box-shadow: 0 0 0 2px var(--accent);
}
.dashboard-style-option input {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 18px;
  height: 18px;
  accent-color: var(--neutral-2500);
}
.style-option-copy {
  display: grid;
  padding-right: 1.5rem;
}
.style-option-copy strong {
  font-size: .95rem;
}
.style-option-copy small {
  margin-top: .15rem;
  color: var(--text-soft);
  font-size: .73rem;
  line-height: 1.35;
}
.style-default {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .2rem .4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--yellow-1700);
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.style-preview {
  min-height: 118px;
  display: grid;
  gap: .38rem;
  align-content: start;
  padding: .65rem;
  border-radius: 10px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-800);
}
.style-preview-top {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .25rem;
  margin-bottom: .25rem;
}
.style-preview-top i, .style-preview-top u {
  display: block;
  height: 24px;
  border-radius: 5px;
  background: var(--surface-raised);
  border: 1px solid var(--neutral-1000);
}
.style-preview-visual .style-preview-top u {
  position: relative;
  background: var(--accent-soft);
}
.style-preview-visual .style-preview-top u::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 8px;
  top: 7px;
  border-radius: 3px;
  background: var(--neutral-2500);
}
.style-preview-row {
  display: grid;
  grid-template-columns: auto 1fr .7fr;
  align-items: center;
  gap: .3rem;
  height: 19px;
  padding: 0 .25rem;
  border-radius: 4px;
  background: var(--surface-raised);
}
.style-preview-row b {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: var(--neutral-2400);
}
.style-preview-row i {
  height: 4px;
  border-radius: 4px;
  background: var(--neutral-1200);
}
.style-preview-row em {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neutral-1400);
}
.style-preview-balanced .style-preview-row em {
  background: var(--neutral-1800);
}
.style-preview-visual .style-preview-row em {
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--neutral-2500);
}
.settings-actions {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}
@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-side-column {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 820px) {
  .dashboard-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-heading-actions {
    width: 100%;
    justify-content: space-between;
  }
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }
  .dashboard-side-column {
    grid-template-columns: 1fr;
  }
  .roster-table-head {
    display: none;
  }
  .roster-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "dog status"
      "owner owner"
      "service time"
      "action action";
    gap: .42rem .7rem;
    padding-block: .65rem;
  }
  .roster-dog {
    grid-area: dog;
  }
  .roster-owner {
    grid-area: owner;
    padding-left: 42px;
  }
  .roster-service {
    grid-area: service;
    padding-left: 42px;
  }
  .roster-time {
    grid-area: time;
    text-align: right;
  }
  .roster-status {
    grid-area: status;
    justify-content: flex-end;
  }
  .roster-action {
    grid-area: action;
  }
  .roster-action form {
    width: 100%;
  }
  .roster-action-button {
    width: 100%;
    min-height: 40px;
  }
  .dashboard-style-compact .roster-owner, .dashboard-style-compact .roster-service {
    padding-left: 0;
  }
  .dashboard-style-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-metric {
    min-height: 64px;
  }
  .dashboard-metric-button {
    padding-right: 2.1rem;
  }
  .dashboard-metric:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .dashboard-tabs {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: .15rem;
    overflow: visible;
  }
  .dashboard-tabs a {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .dashboard-heading-actions .text-link {
    display: none;
  }
  .settings-actions {
    flex-direction: column;
  }
  .settings-actions .button {
    width: 100%;
  }
}
.dog-status-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 7px;
  background-image: url("dog-status-icons.0806e49588fd.svg?v=20261029-9");
  background-repeat: no-repeat;
  background-size: 800% 400%;
  vertical-align: middle;
}
.dog-status-icon-new_dog {
  background-position: 0% 0%;
}
.dog-status-icon-daycare {
  background-position: 14.285714% 0%;
}
.dog-status-icon-boarding {
  background-position: 28.571429% 0%;
}
.dog-status-icon-trial {
  background-position: 42.857143% 0%;
}
.dog-status-icon-in_house {
  background-position: 57.142857% 0%;
}
.dog-status-icon-transport {
  background-position: 71.428571% 0%;
}
.dog-status-icon-puppy {
  background-position: 85.714286% 0%;
}
.dog-status-icon-senior {
  background-position: 100% 0%;
}
.dog-status-icon-birthday {
  background-position: 0% 33.333333%;
}
.dog-status-icon-medication {
  background-position: 14.285714% 33.333333%;
}
.dog-status-icon-health_note {
  background-position: 28.571429% 33.333333%;
}
.dog-status-icon-vomiting {
  background-position: 42.857143% 33.333333%;
}
.dog-status-icon-diarrhoea {
  background-position: 57.142857% 33.333333%;
}
.dog-status-icon-allergy {
  background-position: 71.428571% 33.333333%;
}
.dog-status-icon-special_diet {
  background-position: 85.714286% 33.333333%;
}
.dog-status-icon-aggressive {
  background-position: 100% 33.333333%;
}
.dog-status-icon-loud_barky {
  background-position: 0% 66.666667%;
}
.dog-status-icon-do_not_mix {
  background-position: 14.285714% 66.666667%;
}
.dog-status-icon-behaviour_note {
  background-position: 28.571429% 66.666667%;
}
.dog-status-icon-escape_risk {
  background-position: 42.857143% 66.666667%;
}
.dog-status-icon-poop_eater {
  background-position: 57.142857% 66.666667%;
}
.dog-status-icon-farm_visit {
  background-position: 71.428571% 66.666667%;
}
.dog-status-icon-rest_break {
  background-position: 85.714286% 66.666667%;
}
.dog-status-icon-wash_groom {
  background-position: 100% 66.666667%;
}
.dog-status-icon-photo_video {
  background-position: 0% 100%;
}
.dog-status-icon-important_note {
  background-position: 14.285714% 100%;
}
.dog-status-icon-monitor {
  background-position: 28.571429% 100%;
}
.dog-status-icon-big_dog_park {
  background-position: 42.857143% 100%;
}
.dog-status-icon-small_dog_park {
  background-position: 57.142857% 100%;
}
.roster-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.roster-breed {
  color: var(--muted, var(--neutral-2000));
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
}
.roster-dog-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.roster-dog-icons .dog-status-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.dashboard-style-compact .roster-dog-icons .dog-status-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.status-icon-overflow {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--neutral-2500);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}
.roster-service-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.profile-status-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 20px;
}
.profile-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line, var(--yellow-300));
  border-radius: 11px;
  background: var(--panel, var(--surface-raised));
  font-size: .82rem;
  font-weight: 700;
}
.profile-status-chip .dog-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.status-icon-field {
  border: 0;
  padding: 0;
  margin: 4px 0 8px;
  min-width: 0;
}
.status-icon-field legend {
  padding: 0;
  margin-bottom: 4px;
  font-weight: 800;
}
.status-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.status-icon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line, var(--yellow-300));
  border-radius: 11px;
  background: var(--panel, var(--surface-raised));
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}
.status-icon-option:hover {
  border-color: var(--yellow-700);
}
.status-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.status-icon-option .dog-status-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.status-icon-option input:checked + .dog-status-icon {
  box-shadow: 0 0 0 2px var(--neutral-2500), 0 0 0 4px var(--accent);
}
.status-icon-option input:focus-visible + .dog-status-icon {
  outline: 3px solid var(--blue-200);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .status-icon-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roster-name-line {
    gap: 5px;
  }
}
.app-nav-progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 191, 35, .2);
}
.app-nav-progress::after {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  background: var(--accent);
  animation: app-nav-progress 850ms ease-in-out infinite;
}
@keyframes app-nav-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(370%); }
}
#main-content[aria-busy="true"] {
  cursor: progress;
}
.roster-row[aria-busy="true"] {
  opacity: .68;
  pointer-events: none;
}
.attendance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--yellow-400);
  border-radius: 14px;
  background: var(--yellow-100);
}
.attendance-banner > div {
  display: grid;
  gap: 3px;
}
.attendance-banner strong {
  font-size: .95rem;
}
.attendance-banner span {
  color: var(--muted, var(--neutral-2000));
  font-size: .82rem;
}
.attendance-banner-closing {
  border-color: var(--neutral-2500);
  background: var(--neutral-2500);
  color: var(--surface-raised);
}
.attendance-banner-closing span {
  color: var(--neutral-1300);
}
.roster-status-overdue_checkout {
  background: var(--neutral-2500) !important;
  color: var(--accent) !important;
  border-color: var(--neutral-2500) !important;
}
.attendance-review-screen {
  max-width: 1180px;
}
.attendance-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.attendance-review-heading h1 {
  margin-top: 8px;
}
.attendance-review-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--neutral-2500);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.attendance-review-section {
  margin-top: 20px;
  border: 1px solid var(--line, var(--yellow-300));
  border-radius: 16px;
  background: var(--panel, var(--surface-raised));
  overflow: hidden;
}
.attendance-review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line, var(--yellow-300));
  background: var(--neutral-100);
}
.attendance-review-section-head h2 {
  margin: 0;
  font-size: 1rem;
}
.attendance-review-section-head p {
  margin: 4px 0 0;
  color: var(--muted, var(--neutral-2000));
  font-size: .8rem;
}
.attendance-review-section-head > span, .attendance-review-section-actions > span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--neutral-2500);
  color: var(--accent);
  font-weight: 800;
}
.attendance-review-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.attendance-review-list {
  display: grid;
}
.attendance-review-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(190px, .85fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, var(--yellow-300));
}
.attendance-review-row:last-child {
  border-bottom: 0;
}
.attendance-review-dog, .attendance-review-meta {
  display: grid;
  gap: 3px;
}
.attendance-review-dog strong {
  font-size: .95rem;
}
.attendance-review-dog small, .attendance-review-meta small {
  color: var(--muted, var(--neutral-2000));
}
.attendance-review-meta strong {
  font-size: .8rem;
}
.attendance-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.attendance-review-note {
  margin: 0;
  padding: 11px 18px;
  border-top: 1px solid var(--line, var(--yellow-300));
  background: var(--neutral-200);
  color: var(--muted, var(--neutral-2000));
  font-size: .76rem;
}
.attendance-review-none {
  padding: 18px;
  color: var(--muted, var(--neutral-2000));
}
.attendance-review-empty {
  margin-top: 18px;
}
@media (max-width: 760px) {
  .attendance-banner, .attendance-review-heading, .attendance-review-section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .attendance-banner .button {
    width: 100%;
  }
  .attendance-review-section-actions {
    justify-content: space-between;
  }
  .attendance-review-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .attendance-review-actions {
    justify-content: stretch;
  }
  .attendance-review-actions form, .attendance-review-actions button {
    width: 100%;
  }
}
.dashboard-metric-button {
  position: relative;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease, background-color .16s ease;
}
.dashboard-metric-button:hover {
  border-color: var(--yellow-900);
  background: var(--neutral-100);
  transform: translateY(-1px);
}
.dashboard-metric-button:focus-visible {
  outline: 3px solid rgba(255, 191, 35, .38);
  outline-offset: 2px;
}
.dashboard-metric-button.is-active {
  border-color: var(--yellow-1000);
  background: var(--yellow-100);
  box-shadow: 0 0 0 2px rgba(255, 191, 35, .17);
}
.metric-card-cue {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--yellow-1200);
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  transition: transform .16s ease, color .16s ease;
}
.dashboard-metric-button.is-active .metric-card-cue {
  color: var(--neutral-2500);
  transform: translateY(-50%) rotate(180deg);
}
.metric-dog-panel {
  margin: -2px 0 18px;
  overflow: hidden;
  border: 1px solid var(--yellow-300);
  border-radius: 15px;
  background: var(--neutral-100);
  box-shadow: 0 10px 26px rgba(17, 17, 17, .07);
}
.metric-dog-panel[hidden] {
  display: none !important;
}
.metric-dog-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--yellow-300);
  background: var(--yellow-100);
}
.metric-dog-panel > header > div {
  display: grid;
  gap: 2px;
}
.metric-dog-panel > header strong {
  font-size: .92rem;
}
.metric-dog-panel > header small {
  color: var(--text-soft);
  font-size: .74rem;
}
.metric-dog-panel-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17,17,17,.07);
  color: var(--neutral-2500);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.chevron-icon {
  display: block;
  width: 18px;
  height: 18px;
}
.metric-dog-panel-close svg {
  width: 18px;
  height: 18px;
}
.metric-dog-panel-close:hover {
  background: rgba(17,17,17,.12);
}
.metric-dog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.metric-dog-row {
  min-width: 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--neutral-900);
  border-bottom: 1px solid var(--neutral-900);
  background: var(--surface-raised);
}
.metric-dog-row[hidden],
.metric-dog-checkout[hidden] {
  display: none;
}
.metric-dog-checkout {
  margin: 0 12px 0 0;
}
.metric-dog-checkout .button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}
.metric-dog-row .metric-dog-item {
  flex: 1;
  border: 0;
}
.metric-dog-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 12px;
  color: var(--text);
  text-decoration: none;
  border-right: 1px solid var(--neutral-900);
  border-bottom: 1px solid var(--neutral-900);
  background: var(--surface-raised);
}
.metric-dog-item:hover {
  background: var(--neutral-100);
}
.metric-dog-item[hidden],
.metric-dog-meta[hidden] {
  display: none;
}
.metric-dog-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow-100);
  color: var(--neutral-2500);
  font-size: .72rem;
  font-weight: 800;
}
.metric-dog-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.metric-dog-copy strong, .metric-dog-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-dog-copy strong {
  font-size: .83rem;
}
.metric-dog-nameline {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  min-width: 0;
}
.metric-dog-service.is-unset {
  color: var(--warning);
  border-color: var(--warning);
  background: var(--warning-soft);
}
.metric-dog-service {
  flex: none;
  font-style: normal;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.metric-dog-copy small {
  color: var(--text-soft);
  font-size: .7rem;
}
.metric-dog-meta {
  color: var(--yellow-1500);
  font-size: .69rem;
  font-weight: 700;
  white-space: nowrap;
}
.metric-dog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: var(--text-soft);
  font-size: .82rem;
}
@media (max-width: 720px) {
  .metric-card-cue {
    right: 9px;
  }
  .metric-dog-list {
    grid-template-columns: 1fr;
  }
  .metric-dog-item {
    border-right: 0;
  }
  .metric-dog-meta {
    font-size: .65rem;
  }
}
.dashboard-metric .metric-copy {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  min-width: 0;
}
.dashboard-metric .metric-copy small {
  margin-top: 0;
}
.dashboard-metric .metric-status-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: 0 0 38px;
}
.dashboard-style-balanced .dashboard-metric .metric-copy {
  padding-left: .3rem;
}
.import-background-status {
  margin: 14px 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--yellow-400);
  border-radius: 14px;
  background: var(--yellow-100);
}
.import-background-status > strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}
.import-background-status p {
  margin: 8px 0;
  line-height: 1.55;
}
.import-background-status .button {
  display: inline-flex;
  margin-top: 8px;
}
.import-background-success {
  background: var(--neutral-400);
  border-color: var(--green-100);
}
.import-background-error {
  background: var(--neutral-500);
  border-color: var(--red-100);
}
.tonight-roster-note {
  margin: 0;
  padding: 11px 14px;
  background: var(--neutral-300);
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.45;
}
.roster-row-boarding .roster-time {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.boarding-dates {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.boarding-date {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}
.boarding-date-label {
  min-width: 47px;
  flex: 0 0 auto;
  color: var(--yellow-1200);
  font-size: .65rem;
  font-weight: 600;
}
.boarding-date-value {
  color: var(--text);
  font-size: .73rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.boarding-dates-compact {
  display: flex;
  flex-wrap: wrap;
  column-gap: 11px;
  row-gap: 3px;
  margin-top: 5px;
}
.boarding-dates-compact .boarding-date {
  display: inline-flex;
  gap: 4px;
}
.boarding-dates-compact .boarding-date-label {
  min-width: 0;
  font-size: .62rem;
}
.boarding-dates-compact .boarding-date-value {
  font-size: .69rem;
}
@media (max-width: 820px) {
  .roster-row-boarding {
    grid-template-areas: "dog status"
      "owner owner"
      "service service"
      "time time"
      "action action";
  }
  .roster-row-boarding .roster-time {
    padding-left: 42px;
    text-align: left;
  }
  .roster-row-boarding .boarding-dates:not(.boarding-dates-compact) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .roster-row-boarding .boarding-dates:not(.boarding-dates-compact) .boarding-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid var(--yellow-300);
    border-radius: 9px;
    background: var(--neutral-100);
  }
  .roster-row-boarding .boarding-date-value {
    font-size: .79rem;
  }
  .dashboard-style-compact .roster-row-boarding .roster-time {
    padding-left: 0;
  }
}
.roster-action {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}
.roster-early-checkout {
  margin-bottom: .35rem;
}
.roster-undo-button {
  margin-top: .45rem;
  padding-top: .35rem;
  border-top: 1px solid var(--border);
}
.roster-correct-button {
  align-self: flex-end;
  width: 100%;
  min-height: 24px;
  padding: 2px 5px;
  border: 0;
  background: transparent;
  color: var(--yellow-1400);
  font: inherit;
  font-size: .67rem;
  font-weight: 750;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.roster-correct-button:hover, .roster-correct-button:focus-visible {
  color: var(--neutral-2500);
}
.roster-row-complete:has(.roster-correct-button) {
  opacity: 1;
}
.attendance-correction-dialog:not([open]) {
  display: none;
}
.attendance-correction-dialog[open] {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 23px;
  margin: auto;
  border: 1px solid var(--yellow-500);
  border-radius: 18px;
  color: var(--neutral-2500);
  background: var(--neutral-200);
  box-shadow: 0 18px 65px rgb(0 0 0 / .18);
}
.attendance-correction-dialog::backdrop {
  background: rgb(12 12 12 / .54);
}
.attendance-correction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.attendance-correction-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}
.attendance-correction-close {
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: var(--neutral-2500);
  background: var(--neutral-800);
  font-size: 1.4rem;
  cursor: pointer;
}
.attendance-correction-close svg {
  width: 18px;
  height: 18px;
}
.attendance-correction-dialog p {
  margin: 14px 0 10px;
  color: var(--neutral-2300);
  line-height: 1.5;
}
.attendance-correction-dialog .attendance-correction-warning {
  margin: 8px 0 18px;
  color: var(--yellow-1600);
  font-size: .81rem;
}
.attendance-correction-dialog label {
  display: block;
  margin-bottom: 6px;
  font-size: .83rem;
  font-weight: 750;
}
.attendance-correction-dialog input[name="reason"] {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid var(--yellow-300);
  border-radius: 9px;
  font: inherit;
  background: white;
}
.attendance-correction-dialog input[name="reason"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.attendance-correction-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 620px) {
  .attendance-correction-buttons .button {
    flex: 1 1 0;
    min-height: 44px;
  }
}
.attendance-history-link {
  flex: 0 0 auto;
  align-self: center;
  padding: 5px 8px;
  color: var(--yellow-1700);
  font-size: .7rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 760px) {
  .roster-panel-head {
    flex-wrap: wrap;
    padding-bottom: 6px;
  }
  .roster-panel-head .dashboard-tabs {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: .15rem;
    overflow: visible;
  }
  .attendance-history-link {
    margin-left: auto;
  }
}
.sync-now-form {
  margin-top: 1rem;
}
@media (max-width: 720px) {
  .import-page .sync-panel .table-row:not(.table-head) > span:nth-of-type(3),
  .import-page .sync-panel .table-row:not(.table-head) > span:nth-of-type(4) {
    grid-column: 1 / -1;
    justify-self: start;
    color: var(--text);
  }
  .import-page .sync-panel .table-row:not(.table-head) > span:nth-of-type(4) {
    color: var(--text-soft);
  }
}
.vet-row {
  grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr;
}
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.reference-list {
  list-style: none;
  margin: .4rem 0 1rem;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.reference-columns {
  columns: 3 220px;
  display: block;
}
.reference-columns li {
  break-inside: avoid;
  padding: .15rem 0;
}
.panel details summary {
  cursor: pointer;
  display: flex;
  gap: .6rem;
  align-items: baseline;
}
@media (max-width: 720px) {
  .vet-row {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: .3rem;
  }
  .vet-row.table-head {
    display: none;
  }
}
.vets-panel > .section-heading {
  padding: 1.1rem 1.25rem 0;
}
.reference-grid {
  align-items: start;
}
.fact-list {
  margin: 0 0 1rem;
  display: grid;
  gap: .55rem;
}
.fact-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: .6rem;
  align-items: baseline;
}
.fact-list dt {
  color: var(--text-soft);
  font-size: .8rem;
}
.fact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.jc-subheading {
  font-size: .95rem;
  margin: 1rem 0 .3rem;
}
.jc-note {
  border-top: 1px solid var(--border);
  padding: .55rem 0;
}
.jc-note header {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.jc-note p {
  margin: .35rem 0 0;
}

/* -- Edit records ------------------------------------------------------- */
.edit-record-form {
  display: grid;
  gap: var(--space-5);
}
.edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
}
.edit-grid .form-field, .contact-edit-row .form-field {
  display: grid;
  gap: .35rem;
  align-content: start;
}
.edit-grid .form-field-wide {
  grid-column: 1 / -1;
}
.edit-grid .form-field-check, .contact-edit-row .form-field-check {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  align-self: end;
  min-height: 44px;
}
.edit-grid input:not([type="checkbox"]), .edit-grid select, .edit-grid textarea,
.contact-edit-row input:not([type="checkbox"]), .contact-edit-row select,
.export-date-fields input {
  width: 100%;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.edit-grid label, .contact-edit-row label {
  font-size: .82rem;
  font-weight: 700;
}
.edited-chip {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--neutral-2500);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .02em;
  vertical-align: middle;
}
.contact-edit-list {
  display: grid;
  gap: .75rem;
  margin-bottom: .75rem;
}
.contact-edit-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 1.4fr auto;
  gap: .75rem;
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
}
.unlock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--space-5);
}
.unlock-panel p {
  margin: .2rem 0 0;
}
@media (max-width: 720px) {
  .contact-edit-row {
    grid-template-columns: 1fr;
  }
  .edit-actions .button {
    flex: 1;
  }
  .unlock-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

/* -- Exports ------------------------------------------------------------ */
.export-dates {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-5);
}
.export-dates p {
  margin: .2rem 0 0;
}
.export-date-fields {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
}
.export-date-fields label {
  display: grid;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 700;
}
.export-group {
  margin-bottom: var(--space-5);
}
.export-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.export-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--border);
}
.export-row:first-child {
  border-top: 0;
}
.export-row > div {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.export-row small, .export-meta {
  color: var(--text-soft);
  font-size: .78rem;
}
.export-row .button svg, .heading-actions .button svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 720px) {
  .export-dates, .export-date-fields {
    flex-direction: column;
    align-items: stretch;
  }
  .export-row {
    grid-template-columns: 1fr auto;
  }
  .export-meta {
    grid-column: 1;
    grid-row: 2;
  }
  .export-row .button {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}
/* Row actions: Edit sits in its own column at the right end of the row. */
.vet-row.has-actions {
  grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr auto;
}
.owner-directory-row.has-actions {
  grid-template-columns: 1.1fr 1.25fr 1.65fr auto;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.row-actions .button {
  gap: .35rem;
}
.row-actions svg {
  width: 15px;
  height: 15px;
}
@media (max-width: 720px) {
  .vet-row.has-actions {
    grid-template-columns: 1fr;
  }
  .vet-row .row-actions {
    justify-content: flex-start;
    margin-top: .35rem;
  }
}

/* -- Feeding plan drafts and Jungle Chief notes --------------------------- */
.jc-feeding-note {
  margin: 0 0 1rem;
  padding: .8rem .95rem;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: .88rem;
}
.jc-feeding-note p {
  margin: .3rem 0 0;
}
.draft-plans {
  margin-bottom: 1rem;
  padding: .85rem;
  border: 1px dashed var(--yellow-1100, #b58a14);
  border-radius: var(--radius);
  background: var(--surface);
}
.draft-plans-head {
  display: grid;
  gap: .15rem;
  margin-bottom: .6rem;
}
.draft-plans-head small, .draft-plan-source {
  color: var(--text-soft);
  font-size: .78rem;
}
.draft-plan-source {
  margin: .6rem 0 0;
}
.draft-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem 0;
  border-top: 1px solid var(--border);
}
.draft-plan > div:first-child {
  display: grid;
}
.draft-plan span {
  color: var(--text-soft);
  font-size: .85rem;
}
.draft-plan-actions {
  display: flex;
  gap: .35rem;
}
.missing-plans {
  margin-bottom: var(--space-5);
  padding: 1rem 1.1rem;
  border: 1px solid var(--yellow-400, #efd79c);
  border-radius: var(--radius-lg);
  background: var(--warning-soft);
}
.missing-plans-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.missing-plans-head p {
  margin: .25rem 0 .75rem;
  color: var(--text-soft);
  font-size: .86rem;
}
.missing-plan-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.missing-plan {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) 2fr auto;
  align-items: center;
  gap: .9rem;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.missing-plan-dog {
  display: grid;
}
.missing-plan-dog a {
  color: var(--text);
}
.missing-plan-dog small {
  color: var(--text-soft);
  font-size: .78rem;
}
.missing-plan-note p {
  margin: 0;
  font-size: .86rem;
}
.missing-plan-note p + p {
  margin-top: .3rem;
}
.missing-plan-allergy {
  color: var(--danger);
}
.note-label {
  display: inline-block;
  margin-right: .3rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--neutral-100, #f2f2ef);
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 700;
}
@media (max-width: 720px) {
  .missing-plan {
    grid-template-columns: 1fr;
    gap: .45rem;
  }
  .missing-plan .button {
    justify-self: start;
  }
}

/* -- Care rounds: overview, tabs and all-day boards ---------------------------------- */
.care-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 var(--space-5);
}
.care-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .4rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.care-tabs a:hover {
  color: var(--text);
}
.care-tabs a[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.care-section {
  margin-bottom: var(--space-6);
}
.care-section-title {
  margin: 0 0 .6rem;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.care-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .75rem;
}
.care-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 72px;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.care-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.care-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
}
.care-card-medication .care-card-icon, .care-card-health .care-card-icon {
  background: #111;
  color: var(--accent);
}
.care-card-icon svg {
  width: 22px;
  height: 22px;
}
.care-card-copy {
  display: grid;
  flex: 1;
  gap: .2rem;
  min-width: 0;
}
.care-card-copy small {
  color: var(--text-soft);
  font-size: .8rem;
}
.care-progress {
  display: block;
  height: 5px;
  margin-top: .25rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--neutral-100, #f0f0ec);
}
.care-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.care-state {
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
.care-state-done {
  background: var(--success-soft);
  color: var(--success);
}
.care-state-now {
  background: var(--accent);
  color: #111;
}
.care-timeline {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.care-timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: .75rem;
}
.care-timeline-item time {
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 700;
  text-align: right;
}
.care-timeline-item.is-done .care-card {
  opacity: .7;
}
.care-board {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.care-board-row {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) 2fr;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.care-board-row.is-overdue, .care-board-row.is-requested {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.care-board-dog {
  display: grid;
  gap: .15rem;
}
.care-board-dog a {
  color: var(--text);
}
.care-board-dog small {
  color: var(--text-soft);
  font-size: .78rem;
}
.care-request {
  justify-self: start;
  margin-top: .2rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: #111;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
}
.care-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.care-quick-kind {
  display: inline-flex;
  padding: .2rem;
  border-radius: 10px;
  background: var(--neutral-100, #f0f0ec);
}
.care-quick-kind label, .care-check {
  position: relative;
  cursor: pointer;
}
.care-quick-kind input, .care-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.care-quick-kind span, .care-check span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .3rem .75rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
}
.care-check span {
  border: 1px solid var(--border);
  background: var(--surface);
}
.care-quick-kind input:checked + span {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.care-check input:checked + span {
  border-color: #111;
  background: #111;
  color: var(--accent);
}
.care-quick-kind input:focus-visible + span, .care-check input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.care-quick select, .care-quick input[type="text"] {
  min-height: 36px;
  padding: .3rem .55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: .82rem;
}
.care-quick input[type="text"] {
  flex: 1 1 140px;
  min-width: 120px;
}
.care-options-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.dose-slot {
  margin-bottom: var(--space-5);
}
.not-given summary {
  cursor: pointer;
  padding: .5rem 0;
  color: var(--text-soft);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
}
.care-option-form {
  display: grid;
  grid-template-columns: 1.2fr 2fr 90px auto auto;
  align-items: end;
  gap: .75rem;
}
.care-option-form .form-field {
  display: grid;
  gap: .3rem;
}
.care-option-form .form-field-check {
  grid-auto-flow: column;
  align-items: center;
  min-height: 44px;
}
.care-option-form label {
  font-size: .78rem;
  font-weight: 700;
}
.care-option-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.care-option-form.is-off {
  opacity: .6;
}
.care-option-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.care-option-list li + li {
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.care-request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}
.care-request-row > div {
  display: grid;
}
.care-request-row span, .care-request-row small {
  color: var(--text-soft);
  font-size: .8rem;
}
.care-request-form {
  display: grid;
  gap: .5rem;
  margin-top: .75rem;
}
.care-request-form select, .care-request-form input {
  width: 100%;
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
@media (max-width: 720px) {
  .care-tabs {
    flex-wrap: wrap;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    row-gap: .35rem;
  }
  .care-tabs a {
    flex: 0 1 auto;
    max-width: 100%;
  }
  .care-timeline-item {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .care-timeline-item time {
    text-align: left;
  }
  .care-board-row {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  .care-option-form {
    grid-template-columns: 1fr;
  }
}
.care-quick:not(:has(input[name="poo"]:checked)) select[name="stool"] {
  display: none;
}
.care-options-current {
  margin-top: var(--space-5);
}

/* Owner's notes */
.owner-note-row {
  display: grid;
  gap: .1rem;
  padding: .6rem 0;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.owner-note-row span {
  color: var(--text-soft);
  font-size: .85rem;
}
.owner-note-layout {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
.owner-note-results {
  display: grid;
  gap: var(--space-5);
}
.owner-note-photo {
  display: block;
  width: 100%;
  max-height: 28rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface);
}
.owner-note-reading {
  margin: 0 0 1rem;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  font-size: .88rem;
}
.owner-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.owner-note-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem 0;
  border-top: 1px solid var(--border);
}
.owner-note-flag p {
  flex: 1 1 14rem;
  margin: 0;
}
@media (min-width: 900px) {
  .owner-note-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.owner-note-page { margin: 0 0 1rem; }
.owner-note-page figcaption { margin-top: .3rem; color: var(--text-soft); font-size: .8rem; }
.owner-note-dogs { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.owner-note-dogs legend { padding: 0 .3rem; font-size: .8rem; font-weight: 600; }
.owner-note-copy { margin-top: .75rem; }
.owner-note-more { text-align: center; }
.status-warning { background: var(--warning-soft); color: var(--text); }

/* Search suggestions */
.suggestions {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .18);
}
.suggestions[hidden] { display: none; }
.suggestions-heading {
  margin: 8px 10px 4px;
  color: var(--text-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.suggestions-empty { margin: 0; padding: 12px 10px; color: var(--text-soft); font-size: .85rem; }
.suggestion {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.suggestion-name { font-weight: 700; font-size: .9rem; }
.suggestion-sub { color: var(--text-soft); font-size: .78rem; }
.suggestion:hover, .suggestion.is-active, .suggestion-owner:has(.is-active) { background: rgb(255 191 35 / .18); }
.suggestion-owner { display: block; }
.suggestion-owner-link { display: block; color: var(--text); text-decoration: none; border-radius: 6px; }
.suggestion-owner-link.is-active { outline: 2px solid #ffbf23; outline-offset: 2px; }
.suggestion-dogs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.suggestion-dog {
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: .76rem;
  text-decoration: none;
}
.suggestion-dog:hover { background: #ffbf23; border-color: #ffbf23; color: #000; }
.search-form { position: relative; }

/* Which dog? picker and waiting notes */
.dog-pick-list { display: grid; gap: 6px; margin-bottom: 14px; }
.dog-pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.dog-pick[hidden] { display: none; }
.dog-pick:has(input:checked) { border-color: #ffbf23; background: rgb(255 191 35 / .16); }
.dog-pick small { display: block; color: var(--text-soft); font-size: .78rem; }
.owner-note-text { white-space: pre-wrap; font: inherit; font-size: .88rem; margin: 12px 0 0; }
.waiting-notes { margin-bottom: 18px; }

button.dashboard-shortcut { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.note-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: var(--space-5) calc(-1 * var(--space-4)) 0;
  padding: .75rem var(--space-4) calc(.75rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(17, 17, 17, .06);
}
.note-action-bar form { margin: 0; }
.note-action-spacer { flex: 1; }
.button-danger-outline {
  background: var(--surface);
  color: var(--danger);
  border: 1px solid var(--danger);
}
.button-danger-outline:hover { background: var(--danger-soft); }
.owner-note-dogs { max-height: 11rem; overflow-y: auto; }
@media (max-width: 720px) {
  .note-action-bar .button { padding-inline: .9rem; }
}

.night-check {
  margin: var(--space-3) 0 0;
  padding: .6rem .8rem;
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--text);
  font-size: .82rem;
  line-height: 1.4;
}

/* -- Recipes, dog notes and owner confirmation ------------------------------------- */
input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
}
input[type="time"]::-webkit-date-and-time-value { text-align: left; }
[data-extra-meal][hidden] { display: none; }
.form-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.recipe-rows { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.recipe-rows legend { font-weight: 700; margin-bottom: .35rem; }
.recipe-row { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 5rem; gap: .4rem; }
.recipe-row > * { min-width: 0; }
.recipe-row-head span { color: var(--text-soft); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.recipe-rows [data-recipe-add] { justify-self: start; }
.recipe-card { padding: .85rem 1rem; border-block: 1px solid var(--border); display: grid; gap: .5rem; }
.recipe-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.recipe-lines li { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.recipe-lines li:last-child { border-bottom: 0; }
.recipe-lines strong { white-space: nowrap; }
.recipe-prep { margin: 0; color: var(--text-soft); font-size: .87rem; }
.recipe-med { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .55rem .7rem; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--blue); font-size: .88rem; font-weight: 700; }
.recipe-med input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.recipe-med.is-given { background: var(--success-soft); color: var(--success); font-weight: 600; }
.recipe-med-list { display: grid; gap: .4rem; }
.recipe-food { margin: 0; font-size: .82rem; color: var(--text-soft); }
.recipe-food span { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; margin-right: .25rem; }
.recipe-food.is-short { color: var(--danger); font-weight: 700; }
.prepare-form { display: grid; gap: .5rem; }
.prepare-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.meal-flags { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem 1rem 0; }
.flag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.flag-owner { background: var(--danger-soft); color: var(--danger); }
.flag-quiet { background: var(--warning-soft); color: var(--warning); }
.seen-gate { margin: .75rem 1rem 0; padding: .8rem; border: 1px solid var(--danger); border-radius: var(--radius-sm); background: var(--danger-soft); display: grid; gap: .5rem; }
.seen-gate ul { margin: 0; padding-left: 1.1rem; }
.seen-gate small { color: var(--text-soft); }
section.panel.seen-gate { margin: 0 0 1rem; }
.photo-field.is-asked { padding: .5rem; border-radius: var(--radius-sm); background: var(--accent-soft); }
.amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.big-change { padding: .8rem; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); display: grid; gap: .4rem; }
.big-change p, .big-change ul { margin: 0; }
.meal-plan-list { display: grid; gap: .6rem; margin-bottom: .75rem; }
.meal-plan { padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; gap: .4rem; }
.meal-plan header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.meal-plan p { margin: 0; }
.last-time, .food-row, .confirmation-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.last-time > div, .food-row > div:first-child, .confirmation-row { display: grid; gap: .1rem; }
.confirmation-row { align-items: start; }
.last-time span, .food-row span, .confirmation-row span { font-size: .85rem; }
.food-row small, .confirmation-row small { color: var(--text-soft); font-size: .75rem; }
.food-photos { display: flex; gap: .3rem; }
.food-photos img { border-radius: var(--radius-sm); object-fit: cover; }
.dog-note { border-top: 1px solid var(--border); padding: .5rem 0; }
.dog-note summary { display: grid; gap: .1rem; cursor: pointer; list-style: none; }
.dog-note summary span { color: var(--text-soft); font-size: .85rem; }
.dog-note form { margin-top: .5rem; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.inline-confirm { margin-top: .5rem; }
.text-link { font-size: .85rem; font-weight: 700; }
.stop-form { margin-top: .75rem; }
.missing-plan-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.history-meal { margin-bottom: 1rem; }
.history-version { padding: .6rem 0; border-top: 1px solid var(--border); display: grid; gap: .25rem; }
.history-version.is-current { border-left: 3px solid var(--accent); padding-left: .6rem; }
.history-version header { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
@media (max-width: 720px) {
  .profile-order-food { order: 1; }
  .profile-order-dog-notes { order: 4; }
  .profile-order-owner-update { order: 4; }
  .recipe-row { grid-template-columns: minmax(0, 1fr) 4.25rem 5.25rem; }
}
.owner-page { background: var(--background); }
.owner-main { max-width: 640px; margin: 0 auto; padding: 1.25rem 16px 3rem; display: grid; gap: 1rem; }
.owner-main h1 { margin: 0; }
.owner-form { display: grid; gap: 1rem; }
.owner-form .panel { display: grid; gap: .75rem; }
.owner-form .panel h2 { margin: 0; }
.owner-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem; display: grid; gap: .6rem; min-width: 0; margin: 0; }
.owner-block legend, .owner-block summary { font-weight: 800; padding: 0 .25rem; cursor: pointer; }
.check-line { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.check-line input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.owner-confirm { border: 2px solid var(--accent); }

/* Report chart and export */
.report-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.export-menu { position: relative; flex: none; }
.export-menu > summary { list-style: none; cursor: pointer; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 14rem;
  display: grid; padding: .4rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.export-menu-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .7rem; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; }
.export-menu-list a:hover { background: var(--neutral-100); }
.export-menu-list small { color: var(--text-soft); font-weight: 500; }
.report-chart-panel { margin-bottom: var(--space-5); }
.chart-toggle { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: .2rem; gap: .2rem; background: var(--neutral-600); border-radius: 10px; flex: none; }
.chart-toggle a { padding: .45rem .75rem; border-radius: 8px; font-size: .78rem; font-weight: 700; color: var(--text-soft); text-decoration: none; white-space: nowrap; }
.chart-toggle a[aria-current="true"] { background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-sm); }
.report-chart-scroll { overflow-x: auto; padding-bottom: .25rem; }
.report-chart-svg { display: block; max-width: none; }
.report-chart-svg text { font-family: inherit; fill: var(--text-soft); }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { font-size: 10px; }
.chart-total { font-size: 11px; font-weight: 700; fill: var(--text) !important; }
.chart-peak { font-size: 12px; fill: var(--danger) !important; }
.chart-day { font-size: 10px; font-weight: 700; }
.chart-weekend { fill: var(--danger) !important; }
.chart-date { font-size: 10px; }
.chart-in { font-size: 10px; fill: var(--success) !important; font-weight: 700; }
.chart-out { font-size: 10px; fill: var(--warning) !important; font-weight: 700; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .78rem; }
.chart-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.chart-legend i { width: .75rem; height: .75rem; border-radius: 3px; display: inline-block; }
@media (max-width: 720px) {
  .report-chart-panel .section-heading { flex-wrap: wrap; }
  .report-heading { flex-wrap: wrap; }
}
@media print { .export-menu, .chart-toggle { display: none !important; } }

/* Dashboard date range picker (third segment beside Today / Tomorrow) */
.segmented-control .dashboard-range { position: relative; display: flex; }
.dashboard-range > summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: .5rem 1rem;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.dashboard-range > summary::-webkit-details-marker { display: none; }
.dashboard-range > summary:hover { color: var(--primary); }
.dashboard-range[open] > summary {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.range-calendar {
  display: grid;
  gap: .5rem;
  padding: .85rem;
  background: var(--surface);
  border: 1px solid var(--neutral-600);
  border-radius: 12px;
}
.dashboard-range-form {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.range-cal-head { display: flex; align-items: center; justify-content: space-between; }
.range-cal-head strong { font-size: .95rem; }
.range-cal-nav {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer;
}
.range-cal-nav:hover { background: var(--neutral-600); }
.range-cal-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.range-cal-weekdays, .range-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.range-cal-weekdays span { text-align: center; color: var(--text-soft); font-size: .72rem; font-weight: 750; padding: .2rem 0; }
.range-cal-grid { row-gap: 2px; }
.range-cal-day {
  height: 40px; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; border-radius: 10px;
}
.range-cal-day:hover { background: var(--neutral-600); }
.range-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.range-cal-day.is-between { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 0; }
.range-cal-day.is-start, .range-cal-day.is-end { background: var(--accent); color: var(--neutral-2500); font-weight: 800; }
.range-cal-day.is-start:not(.is-end) { border-radius: 10px 0 0 10px; }
.range-cal-day.is-end:not(.is-start) { border-radius: 0 10px 10px 0; }
.range-cal-summary { margin: .2rem 0 0; min-height: 1.3em; color: var(--text-soft); font-size: .8rem; font-weight: 650; text-align: center; }
.range-calendar .button[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 720px) {
  .segmented-control .dashboard-range { flex: 1 1 auto; position: static; max-width: 100%; }
  .dashboard-range > summary { width: 100%; }
  .segmented-control { position: relative; }
  .dashboard-range-form { left: 0; right: 0; width: auto; }
}

/* ---------- Report page: glanceable cockpit ---------- */
.report-range { margin-bottom: 14px; padding: .35rem .85rem; }
.report-range > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 800; font-size: .9rem; list-style: none; }
.report-range > summary::-webkit-details-marker { display: none; }
.report-range > summary::after { content: "▾"; margin-left: auto; color: var(--text-soft); }
.report-range[open] > summary::after { content: "▴"; }
.report-range .range-calendar { max-width: 360px; margin: .2rem 0 .6rem; padding: 0; border: 0; }

.report-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: .5rem; }
.report-summary > div { display: grid; gap: .15rem; padding: .7rem .8rem; }
.report-summary strong { font-size: 1.6rem; margin: 0; font-variant-numeric: tabular-nums; }
.report-summary span { font-size: .78rem; }
.report-summary .rs-in { background: var(--success-soft); border-color: transparent; }
.report-summary .rs-in strong, .report-summary .rs-in span { color: var(--success); }
.report-summary .rs-out { background: var(--warning-soft); border-color: transparent; }
.report-summary .rs-out strong, .report-summary .rs-out span { color: var(--warning); }
.report-note { margin: 0 0 18px; color: var(--text-soft); font-size: .78rem; }
@media (max-width: 900px) { .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .report-summary > div { padding: .6rem .65rem; } .report-summary strong { font-size: 1.45rem; } }

.report-busiest { margin: .35rem 0 0; color: var(--text); font-weight: 700; }
.report-busiest span { display: inline-block; margin-right: .3rem; padding: .15rem .5rem; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.chart-legend { margin: .2rem 0 .8rem; gap: .4rem 1.1rem; font-size: .82rem; font-weight: 650; }
.chart-legend i { width: .9rem; height: .9rem; }

.day-chart { border-top: 1px solid var(--border); }
.day-chart-head, .panel .day-row > summary { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 4rem 1rem; align-items: center; column-gap: .55rem; }
.day-chart-head { padding: .45rem .6rem; color: var(--text-soft); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.day-chart-head span:nth-child(3) { text-align: right; }
.day-row { border-bottom: 1px solid var(--border); }
.day-row > summary { min-height: 56px; padding: .45rem .6rem; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.day-row > summary::-webkit-details-marker { display: none; }
.day-row.no-dogs > summary { cursor: default; }
.day-row:not(.no-dogs) > summary:hover { background: var(--neutral-100); }
.day-row.is-weekend { background: color-mix(in srgb, var(--neutral-800) 32%, transparent); }
.day-row.is-today { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.day-label { display: grid; line-height: 1.15; }
.day-label strong { font-size: .95rem; font-weight: 800; }
.day-label small { color: var(--text-soft); font-size: .74rem; font-weight: 650; }
.day-tag { margin-top: .2rem; width: fit-content; padding: .1rem .38rem; border-radius: 999px; background: var(--text); color: #fff; font-size: .58rem; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.day-tag-peak { background: var(--danger-soft); color: var(--danger); }
.day-bar { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.day-track { flex: 1; display: flex; height: 30px; overflow: hidden; border-radius: 7px; background: var(--neutral-600); }
.day-track i { display: flex; align-items: center; justify-content: center; font-size: .82rem; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; height: 100%; border-right: 2px solid var(--surface-raised); box-sizing: border-box; }
.day-track i:last-child { border-right: 0; }
.day-total { min-width: 1.7rem; text-align: right; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.is-peak .day-total { color: var(--danger); }
.day-flow { display: grid; justify-items: end; gap: .1rem; font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-in { color: var(--success); }
.flow-out { color: var(--warning); }
.flow-in.is-zero, .flow-out.is-zero { color: var(--text-soft); font-weight: 650; opacity: .6; }
.day-chevron { width: .55rem; height: .55rem; border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft); transform: rotate(45deg); transition: transform .15s ease; justify-self: center; margin-top: -.15rem; }
.day-row[open] > summary .day-chevron { transform: rotate(-135deg); margin-top: .15rem; }
.day-row.no-dogs .day-chevron { visibility: hidden; }
.day-dogs { display: grid; grid-template-columns: 1fr; gap: 0 1.2rem; margin: 0; padding: .2rem .8rem .6rem 4.2rem; list-style: none; }
.day-dogs a { display: flex; align-items: center; gap: .5rem; min-height: 44px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.day-dogs i { flex: none; width: .7rem; height: .7rem; border-radius: 3px; }
.day-dogs strong { font-weight: 750; }
.day-dogs small { color: var(--text-soft); font-size: .76rem; }
.day-dogs em, .tag-in, .tag-out { margin-left: auto; padding: .15rem .5rem; border-radius: 999px; font-size: .64rem; font-style: normal; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.day-dogs em + em { margin-left: .3rem; }
.tag-in { background: var(--success-soft); color: var(--success); }
.tag-out { background: var(--warning-soft); color: var(--warning); }
.report-hint { margin: .6rem 0 0; color: var(--text-soft); font-size: .78rem; text-align: center; }
@media (min-width: 721px) { .day-dogs { grid-template-columns: 1fr 1fr; } }

.service-chips { display: flex; gap: .45rem; margin: .2rem 0 1rem; padding-bottom: .25rem; overflow-x: auto; }
@media (max-width: 720px) {
  .service-chips { flex-wrap: wrap; max-width: 100%; padding-bottom: 0; overflow: visible; row-gap: .45rem; }
  .service-chips a { max-width: 100%; }
}
.service-chips a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--text); font-size: .85rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.service-chips a span { min-width: 1.4rem; padding: .1rem .35rem; border-radius: 999px; background: var(--neutral-600); font-size: .74rem; text-align: center; }
.service-chips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
.service-chips a[aria-current="true"] span { background: rgba(255,255,255,.55); }

.stay-list { display: grid; gap: .7rem; }
.stay-head { display: none; }
.stay-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "dog status" "service service" "in out"; gap: .65rem .7rem; padding: .9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); color: var(--text); text-decoration: none; }
.stay-card:hover { border-color: var(--border-strong, #cfcfc8); box-shadow: var(--shadow-sm); }
.stay-dog { grid-area: dog; display: grid; gap: .15rem; min-width: 0; }
.stay-dog strong { font-size: 1.1rem; line-height: 1.15; }
.stay-dog small { color: var(--text-soft); overflow-wrap: anywhere; }
.stay-card .report-status { grid-area: status; align-self: start; justify-self: end; }
.stay-service { grid-area: service; display: flex; align-items: center; gap: .6rem; }
.stay-service small { color: var(--text-soft); font-weight: 650; }
.stay-in { grid-area: in; }
.stay-out { grid-area: out; }
.stay-when { display: grid; gap: .1rem; min-width: 0; padding: .55rem .7rem; border-left: 4px solid; border-radius: 8px; background: var(--neutral-100); }
.stay-in.stay-when { border-left-color: var(--success); }
.stay-out.stay-when { border-left-color: var(--warning); }
.stay-when strong { font-size: 1.02rem; white-space: nowrap; }
@media (min-width: 560px) and (max-width: 1180px) {
  .stay-card { grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "dog status status" "service in out"; }
}
.stay-when small { color: var(--text-soft); font-size: .8rem; font-weight: 650; }
.stay-when .stay-label { font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.stay-in .stay-label { color: var(--success); }
.stay-out .stay-label { color: var(--warning); }
.report-status { padding: .35rem .65rem; background: var(--neutral-800); color: var(--text); font-size: .74rem; }
.status-in-house { background: var(--success-soft); color: var(--success); }
.status-due-in { background: var(--warning-soft); color: var(--warning); }
.status-scheduled { background: var(--blue-soft); color: var(--blue-300); }
.status-completed { background: var(--neutral-800); color: var(--text-soft); }
.status-not-checked-in { background: var(--danger-soft); color: var(--danger); }
.service-unconfirmed { background: #bdbab0; color: #171717; }
@media (min-width: 1181px) {
  .stay-head, .stay-card { grid-template-columns: 1.4fr .9fr 1.2fr 1fr 1fr; grid-template-areas: "dog status service in out"; align-items: center; gap: .8rem; }
  .stay-head { display: grid; padding: 0 .9rem; color: var(--text-soft); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .stay-card { padding: .7rem .9rem; border-radius: 12px; }
  .stay-card .report-status { align-self: center; justify-self: start; }
  .stay-when { padding: .45rem .7rem; }
}
.report-hint-left { margin: 0 0 .6rem; text-align: left; }
.day-breakdown { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0; padding: .2rem .8rem .3rem 4.2rem; font-size: .85rem; font-weight: 650; }
.day-breakdown span { display: inline-flex; align-items: center; gap: .35rem; }
.day-breakdown i { width: .8rem; height: .8rem; border-radius: 3px; }

/* ---- Apply-all cockpit pass ---- */
.roster-group {
  margin: 1.15rem 0 .5rem;
  padding: .05rem 0 .05rem .7rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  border-left: 4px solid var(--text);
}
.roster-group-arriving { border-color: #FFBF23; }
.roster-group-in-house { border-color: #2E7D32; }
.roster-group-going-home { border-color: #B26A00; }
.roster-group-checked-out { border-color: #BDBAB0; }
@media (max-width: 1100px) {
  .dashboard-layout { display: flex; flex-direction: column; }
  .dashboard-side-column { display: contents; }
  .action-needed-card { order: -2; }
  .dashboard-main-column { order: -1; width: 100%; }
  .timeline-card { order: 5; }
}
.meal-card.is-late { box-shadow: inset 4px 0 0 #C62828; }
.late-tag { color: #C62828; font-weight: 700; }
.allergy-banner { background: #FDECEA; color: #8E1B1B; border: 1px solid #C62828; font-weight: 600; }
.meal-actions .button, .prepare-buttons .button, .amount-grid label span { min-height: 3.4rem; font-size: 1.05rem; }
.amount-grid { gap: .5rem; }
.quick-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; margin: 0 0 1rem; }
.quick-fact { background: #fff; border: 1px solid #E6E1D3; border-left: 4px solid #BDBAB0; border-radius: 10px; padding: .6rem .75rem; min-width: 0; }
.quick-fact span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b675c; }
.quick-fact strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.quick-fact.is-alert { border-left-color: #C62828; background: #FDF3F2; }
@media (max-width: 720px) { .quick-facts { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 1100px) { .dashboard-layout { align-items: stretch; } }
.svc-dot { display:inline-block; width:.7rem; height:.7rem; border-radius:50%; margin-right:.4rem; vertical-align:baseline; border:1px solid rgba(0,0,0,.25); background:#BDBAB0; }
.svc-pack_lounge { background:#FFBF23; } .svc-paw_pod { background:#171717; } .svc-alpha_suite { background:#8B5E00; } .svc-daycare { background:#E6D7A3; } .svc-unconfirmed { background:#BDBAB0; }
.directory-search input[type=search] { min-height: 3.2rem; font-size: 1.05rem; }
.export-presets h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.preset-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap:.6rem; margin-bottom:.5rem; }
.preset-card { display:block; background:#171717; color:#fff; border-radius:12px; padding:.9rem 1rem; text-decoration:none; border-left:5px solid #FFBF23; }
.preset-card strong { display:block; font-size:1.02rem; } .preset-card small { color:#E6D7A3; }
.step-strip { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; padding:0; margin:0 0 1rem; }
.step-strip li { display:flex; gap:.6rem; align-items:center; background:#fff; border:1px solid #E6E1D3; border-radius:12px; padding:.6rem .8rem; }
.step-strip b { display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; background:#E6D7A3; color:#171717; flex:none; }
.step-strip li.is-current b { background:#FFBF23; }
.step-strip small { display:block; color:#6b675c; font-weight:400; }
@media (max-width:640px){ .step-strip small{display:none;} .step-strip li{padding:.5rem;} }
.suggestion-bar { display:flex; justify-content:space-between; align-items:center; gap:1rem; background:#FFF6D6; border:1px solid #FFBF23; border-radius:12px; padding:.8rem 1rem; margin-bottom:1rem; }
.suggestion-bar small { display:block; color:#6b675c; }
@media (max-width:640px){ .suggestion-bar{flex-direction:column; align-items:stretch;} }
.size-chip { display:inline-block; font-size:.68rem; font-weight:700; padding:.05rem .4rem; border-radius:6px; background:#171717; color:#FFBF23; margin-right:.3rem; vertical-align:middle; }
.report-chart-panel .section-heading { flex-wrap: wrap; gap: .6rem; }
.round-bulk { display:flex; gap:.6rem; flex-wrap:wrap; align-items:flex-start; margin:.8rem 0; }
.round-bulk .button, .bulk-feed summary { min-height:3rem; list-style:none; cursor:pointer; }
.bulk-feed form { background:#fff; border:1px solid #E6E1D3; border-radius:12px; padding:.8rem; margin-top:.5rem; }
.round-section { font-size:1rem; text-transform:uppercase; letter-spacing:.06em; margin:1.4rem 0 .5rem; padding-left:.6rem; border-left:4px solid #FFBF23; }
.round-room { font-size:.9rem; margin:.8rem 0 .3rem; color:#6b675c; }
.no-recipe-tag { display:inline-block; margin-top:.25rem; padding:.1rem .5rem; border-radius:6px; background:#FDECEA; color:#C62828; font-weight:700; font-size:.75rem; }
.missing-plans { border:1px solid #C62828; background:#FFF8F7; margin-top:1.5rem; }
.feed-anyway summary { cursor:pointer; color:#6b675c; margin-top:.4rem; }
.read-this { background:#FDECEA; border:1px solid #C62828; color:#8E1B1B; border-radius:10px; padding:.7rem; margin-top:.4rem; }
.read-this form { margin-top:.5rem; }
.meal-heading .day-tag { font-size:.7rem; vertical-align:middle; padding:.15rem .55rem; border-radius:999px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.day-tag-today { background:#DDF1E1; color:#1B5E20; } .day-tag-past { background:#E7E5DE; color:#555; } .day-tag-future { background:#FFE9B8; color:#7A4B00; }
.day-switch { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.5rem; max-width:100%; }
.day-switch a { padding:.45rem .8rem; border-radius:10px; background:#EFEDE6; color:#171717; text-decoration:none; font-weight:600; font-size:.85rem; white-space:nowrap; max-width:100%; }
.day-switch a[aria-current="true"] { background:#171717; color:#FFBF23; }
.meal-banner { display:flex; justify-content:space-between; gap:1rem; align-items:center; flex-wrap:wrap; padding:.8rem 1rem; border-radius:12px; margin:.8rem 0; border:1px solid #E6E1D3; background:#fff; }
.meal-banner strong { display:block; } .meal-banner span { color:#555; font-size:.9rem; }
.meal-banner-past { background:#F1EFE9; } .meal-banner-future, .meal-banner-early { background:#FFF3D6; border-color:#FFBF23; }
.meal-banner-overdue { background:#FDECEA; border-color:#C62828; } .meal-banner-overdue strong { color:#8E1B1B; }
.not-recorded, .not-recorded-flag { color:#C62828; font-weight:700; } .not-recorded-flag { background:#FDECEA; }
.edit-finished form { display:grid; gap:.5rem; margin-top:.5rem; }
.round-locked .meal-actions form, .round-locked .prepare-form, .round-locked .round-bulk, .round-locked .observation-form { display:none; }
.round-locked .meal-actions::after { content:"Locked"; color:#6b675c; font-size:.8rem; }
.food-photo { display:block; font-size:.85rem; color:#555; margin-bottom:.5rem; }
.action-needed-late .action-number { background:#C62828; color:#fff; }
.meal-times-form { display:grid; gap:.8rem; max-width:34rem; }
.meal-times-form label { display:grid; gap:.25rem; font-size:.9rem; }
.meal-times-form .check-row { display:flex; gap:.5rem; align-items:center; }

.meal-banner[hidden] { display:none; }
.meal-banner-dismiss { border:1px solid #C62828; background:#fff; color:#8E1B1B; border-radius:999px; min-height:40px; padding:0 16px; font-weight:700; cursor:pointer; }

.now-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin:0 0 14px; }
.now-chip { display:flex; flex-direction:column; gap:2px; padding:12px 16px; border-radius:14px; border:1px solid #E6E1D3; background:#fff; text-align:left; font:inherit; color:#171717; text-decoration:none; cursor:pointer; }
.now-chip strong { font-size:1.05rem; } .now-chip small { color:#555; font-size:.85rem; }
.now-chip:hover { border-color:#FFBF23; }
.now-chip-late { background:#FDECEA; border-color:#C62828; } .now-chip-late strong { color:#8E1B1B; }
.now-chip-done { background:#E7F4EA; border-color:#2E7D32; cursor:default; } .now-chip-done strong { color:#1B5E20; }

/* One colour language: gold = still to do, green = in house/done, red = late, grey = finished. */
.roster-status-in_house { background:#E7F4EA !important; color:#1B5E20 !important; }
.roster-status-due_in, .roster-status-scheduled { background:#FFF3D6 !important; color:#6B4A00 !important; }
.roster-status-checked_out { background:#EEECE6 !important; color:#555 !important; }
.roster-status-overdue_checkout { background:#FDECEA !important; color:#8E1B1B !important; border-color:#C62828 !important; }
.colour-key { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0 0 10px; font-size:.82rem; color:#555; }
.colour-key span { display:inline-flex; align-items:center; gap:6px; }
.colour-key i { width:12px; height:12px; border-radius:4px; display:inline-block; border:1px solid rgba(0,0,0,.15); }

/* Timeline: compact rows. Extra slots stay in the list and open with Show all. */
.timeline-card { position: relative; }
.timeline-list::before { left: 58px; width: 2px; background: #E6E1D3; border-radius: 2px; }
.timeline-item { grid-template-columns: 52px 14px 1fr; min-height: 0; font-size: .78rem; padding: 1px 0; gap: .15rem; }
.timeline-item time { font-weight: 700; color: #171717; font-size: .75rem; }
.timeline-dot { width: 8px; height: 8px; background: #FFBF23; box-shadow: 0 0 0 3px #fff; }
.timeline-body { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 1px 0; }
.timeline-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 650; }
.timeline-pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.timeline-pill b { font-size: .82rem; }
.timeline-arrive { background: #E7F4EA; color: #1B5E20; }
.timeline-depart { background: #FFF3D6; color: #6B4A00; }
.timeline-names { flex-basis: 100%; color: #4e4e4b; font-size: .72rem; }
.timeline-item.is-past { opacity: .55; }
.timeline-item.is-past .timeline-dot { background: #BDBAB0; }
.timeline-item.is-next .timeline-dot { background: #171717; box-shadow: 0 0 0 3px #FFBF23; }
.timeline-item.is-next { background: #FFFBEF; border-radius: 8px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.timeline-next-tag { background: #171717; color: #FFBF23; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; }
.timeline-item.is-big .timeline-pill { box-shadow: inset 0 0 0 2px currentColor; }
.timeline-item.is-collapsed { display: none; }
.timeline-show-all-input:checked ~ .timeline-list .timeline-item.is-collapsed { display: grid; }
.timeline-show-all-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.timeline-show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: .35rem;
  color: #171717;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.timeline-hide-label { display: none; }
.timeline-show-all-input:checked ~ .timeline-show-all .timeline-show-label { display: none; }
.timeline-show-all-input:checked ~ .timeline-show-all .timeline-hide-label { display: inline; }
.timeline-show-all-input:focus-visible ~ .timeline-show-all { outline: 3px solid var(--blue-200); outline-offset: 2px; border-radius: 8px; }

.roster-cancel-form {
  margin-top: .75rem;
  padding-top: .4rem;
  border-top: 1px solid #E6E1D3;
  text-align: center;
}
.roster-cancel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 32px;
  padding: .1rem .4rem;
  border: 0;
  background: transparent;
  color: #8E1B1B;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.roster-cancel-link:hover { background: transparent; color: #6d1212; }

/* Tasks module */
.tasks-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; max-width: 100%; }
.tasks-tabs a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; max-width: 100%; }
.tasks-tabs a[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.task-cards, .task-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.task-card { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; min-height: 64px; border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.task-card-main { display: grid; gap: .15rem; }
.task-card small, .task-item small { color: var(--text-soft); }
.task-card-count { font-weight: 700; white-space: nowrap; }
.task-card.is-overdue { border-left-color: var(--danger); background: var(--danger-soft); }
.task-card.is-done { border-left-color: var(--success); opacity: .75; }
.task-flag { background: var(--danger); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: var(--ui-xs); font-weight: 700; }
.task-item { padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); display: grid; gap: .5rem; }
.task-item.is-off { opacity: .55; }
.task-item-head { display: grid; gap: .15rem; }
.task-item-head strong { font-size: var(--ui-lg); }
.task-item-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.task-item-actions form { display: flex; gap: .4rem; }
.task-redo { color: var(--danger); font-weight: 600; }
.task-evidence { display: grid; gap: .25rem; font-weight: 600; }
.task-tick { min-height: 52px; font-size: var(--ui-lg); width: 100%; }
.task-thumb { max-width: 160px; border-radius: var(--radius-sm); display: block; }
.task-note { margin: 0; }
.task-builder { display: grid; gap: 1rem; }
.task-builder label { display: grid; gap: .25rem; font-weight: 600; }
.task-builder label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.task-pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.task-builder [hidden] { display: none !important; }
.task-add { display: flex; gap: .75rem; align-items: end; }

/* Drafted recipes: read, then one tap */
.draft-recipe { margin: .6rem 0; padding: .85rem 1rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); display: grid; gap: .4rem; }
.draft-recipe p { margin: 0; font-size: var(--ui-lg); font-weight: 600; }
.draft-recipe small { color: var(--text-soft); }
.draft-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.draft-actions form { flex: 1 1 60%; }
.draft-actions .button-primary { width: 100%; min-height: 48px; }

/* Owners: dog chips + colour key; cards on tablet and phone so nothing is cut off. */
.here-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; max-width: 100%; min-width: 0; }
.here-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .15rem .5rem; border-radius: 999px; background: var(--neutral-100); font-size: .74rem; font-weight: 700; white-space: normal; }
.here-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .2rem 0 .8rem; font-size: .78rem; font-weight: 650; color: var(--text-soft); }
.here-key span { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 1180px) {
  .owner-cards .table-head { display: none; }
  .owner-cards .owner-directory-row, .owner-cards .owner-directory-row.has-actions { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; gap: .5rem .8rem; padding: .85rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: .6rem; background: var(--surface-raised); }
  .owner-cards .owner-directory-row > :nth-child(1) { grid-column: 1; }
  .owner-cards .owner-directory-row > .row-actions { grid-column: 2; grid-row: 1; align-self: start; }
  .owner-cards .owner-directory-row > :nth-child(2), .owner-cards .owner-directory-row > :nth-child(3) { grid-column: 1 / -1; }
  .owner-cards .owner-pet-links { display: flex; flex-wrap: wrap; gap: .35rem; }
}

/* Dog details / Owner & contacts: let the boxes shrink and stack label over value on tablet. */
.jc-details { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .jc-details .fact-list > div { grid-template-columns: 1fr; gap: .1rem; }
  .jc-details .section-heading { flex-wrap: wrap; gap: .5rem; }
}

.meal-mode-form { display: grid; gap: .3rem; margin-top: 1rem; max-width: 26rem; }
.meal-mode-form label { font-size: .8rem; font-weight: 700; color: var(--text-soft); }
.draft-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.quick-med-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.quick-med-form input { min-width: 0; flex: 1 1 8rem; }
.quick-med-form input[type=time] { flex: 0 1 7rem; }

.setting-rows { display: grid; gap: .8rem; }
.setting-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .6rem .8rem; align-items: end; padding: .8rem; border: 1px solid var(--border); border-radius: 12px; }
.setting-row .field.wide { grid-column: span 2; }
.setting-row.is-retired { opacity: .6; }
.setting-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Bookings */
.bookings-top-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; min-height: 3rem; padding: .7rem 1rem; margin-bottom: 1rem; border: 1px dashed var(--border-strong, #cfcfc8); border-radius: 12px; background: var(--neutral-100); }
.bookings-top-links { display: flex; gap: 1rem; font-weight: 700; }
.bookings-nav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .8rem 0; flex-wrap: wrap; }
.tab-row.sub { margin-top: .4rem; }
.booking-days { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); align-items: start; }
.booking-day { padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); }
.booking-day.is-today { border-color: var(--gold, #FFBF23); box-shadow: 0 0 0 2px rgba(255,191,35,.35); }
.booking-day.is-over { border-color: var(--danger); }
.booking-day header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.count-pill { padding: .15rem .55rem; border-radius: 999px; background: var(--neutral-100); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.count-pill.is-full { background: var(--danger-soft); color: var(--danger); }
.booking-dogs { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.booking-dogs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .6rem; }
.booking-dogs a { font-weight: 750; }
.booking-dogs small { color: var(--text-soft); white-space: nowrap; }
.booking-service { display: flex; justify-content: space-between; gap: .5rem; font-size: .95rem; margin: .6rem 0 .3rem; }
.no-room-names { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; max-width: 100%; min-width: 0; }
.no-room-names .mini-link { flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; max-width: 100%; }
.no-room-names .mini-link small { color: var(--text-soft); font-weight: 650; }

/* Care options / lists: fields wrap and stay a usable width on tablets. */
.care-option-form { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.care-option-form .button { align-self: end; }
.lists-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.list-edit-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.list-edit-row input[type=text] { flex: 1 1 12rem; min-width: 0; min-height: 44px; }
.list-edit-row.is-retired { opacity: .55; }

.owner-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-bottom: 1rem; }
.owner-name-link { color: inherit; text-decoration: none; }
.owner-name-link:hover strong { text-decoration: underline; }

.task-about { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: .6rem; }
.task-dog-group { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); margin: .8rem 0 .3rem; }
.task-dog-tools { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin-top: .6rem; }
.task-who { border: 0; padding: 0; margin: .6rem 0 0; }
.task-who legend { font-weight: 700; margin-bottom: .3rem; }
.task-builder [hidden] { display: none !important; }

/* Tablet fixes: care options rows and the top-bar account block. */
.care-option-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.care-option-form .form-field { flex: 1 1 14rem; min-width: 0; }
.care-option-form .form-field-check { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.care-option-form .form-field-check label { order: 2; }
.care-option-form .button { flex: 0 0 auto; min-height: 44px; margin: 0; }
.care-option-form .button-quiet { padding-inline: .9rem; }
.topbar-account { flex-wrap: nowrap; white-space: nowrap; gap: .6rem; }
.topbar-account > span:not(.user-avatar) { min-width: 0; }
.topbar-account strong { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.topbar-signout { white-space: nowrap; }

/* Top bar account: one tidy pill, everything centred on one line */
.topbar-account { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; white-space: nowrap; margin-left: auto; padding: 4px 4px 4px 4px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; background: #fff; }
.topbar-account .user-avatar { width: 36px; height: 36px; font-size: .85rem; }
.topbar-account > span:not(.user-avatar) { display: grid; align-content: center; gap: 1px; padding: 0 .85rem 0 .6rem; min-width: 0; line-height: 1.15; }
.topbar-account strong { display: block; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.topbar-account small { font-size: .7rem; }
.topbar-account form { display: flex; margin: 0; padding-left: .25rem; border-left: 1px solid var(--line, rgba(0,0,0,.12)); }
.topbar-signout { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .85rem; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: .8rem; font-weight: 700; text-decoration: none; }
.topbar-signout svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-signout:hover { background: rgba(0,0,0,.06); }
@media (max-width: 760px) {
  .topbar-account { padding: 3px; }
  .topbar-account > span:not(.user-avatar) { display: none; }
  .topbar-signout { display: inline-flex; padding: 0 .6rem; }
  .topbar-signout span { display: none; }
}

.admin-skip { margin-top: .6rem; border-top: 1px dashed rgba(0,0,0,.15); padding-top: .5rem; }
.admin-skip summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: .85rem; font-weight: 700; color: var(--text-soft); }
.admin-skip form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.admin-skip select { min-height: 44px; flex: 1 1 14rem; }

/* Mobile top bar: search takes the spare room; profile avatar and sign out always fit on screen */
a.user-avatar { color: inherit; text-decoration: none; }
@media (max-width: 760px) {
  .topbar { gap: 8px; }
  .global-search { flex: 1 1 auto; width: auto; min-width: 0; }
  .topbar-account { flex: 0 0 auto; margin-left: 0; padding: 0; border: 0; background: transparent; gap: 8px; }
  .topbar-account form { padding: 0; border: 0; }
  .topbar-signout { display: inline-flex; width: 40px; min-height: 40px; padding: 0; justify-content: center; border: 1px solid var(--line, rgba(0,0,0,.15)); border-radius: 50%; background: #fff; }
  .topbar-signout span { display: none; }
  .topbar-account .user-avatar { width: 40px; height: 40px; }
}

/* Account menu (profile button with dropdown) */
.topbar-account { display: none !important; }
.account-menu { position: relative; margin-left: auto; flex: 0 0 auto; }
.account-trigger { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 4px .7rem 4px 4px; border: 1px solid var(--line, rgba(0,0,0,.14)); border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.account-trigger .user-avatar { width: 36px; height: 36px; font-size: .85rem; }
.account-who { display: grid; text-align: left; line-height: 1.15; }
.account-who strong { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.account-who small { color: var(--text-soft); font-size: .7rem; }
.account-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.account-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: .4rem; border: 1px solid var(--line, rgba(0,0,0,.14)); border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.account-panel[hidden] { display: none; }
.account-panel-head { display: grid; gap: 2px; padding: .6rem .7rem .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line, rgba(0,0,0,.1)); }
.account-panel-head small { color: var(--text-soft); overflow-wrap: anywhere; }
.account-panel form { margin: 0; }
.account-item { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 48px; padding: 0 .7rem; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.account-item:hover, .account-item:focus-visible { background: rgba(0,0,0,.06); }
.account-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .account-who, .account-chevron { display: none; }
  .account-trigger { padding: 0; border: 0; background: transparent; min-height: 44px; }
  .account-trigger .user-avatar { width: 42px; height: 42px; }
}
.account-trigger .user-avatar { display: grid; }
/* Section and room headings span the whole round grid, so the first card isn't pushed into the right column */
.round-list > .round-section, .round-list > .round-room { grid-column: 1 / -1; }

/* Contacts: phone, email and address each with a Copy button */
.contact-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-right: .25rem; }
.contact-item a, .address-link { font-size: .9rem; }
.address-link {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; min-height: 32px;
}
.address-link:hover { color: var(--blue); }
.copy-chip {
  min-height: 32px; padding: .2rem .65rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-soft); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer;
}
.copy-chip:hover { background: var(--accent-soft); color: var(--text); }
.copy-chip.is-copied { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.owner-name-link { color: inherit; }
.owner-name-link strong { text-decoration: underline; text-underline-offset: 3px; }
.owner-line { align-items: center; }
.map-chooser { width: min(calc(100% - 2rem), 420px); }
.map-chooser-options { display: grid; gap: .6rem; }
@media (max-width: 720px) {
  .owner-line .contact-item { display: flex; width: 100%; justify-content: space-between; }
  .owner-line .owner-name-link { font-size: 1.05rem; }
}

/* Pets list: whole row opens the dog, owner name opens the owner */
.pet-directory-row.has-owner-link { position: relative; color: inherit; }
.pet-directory-row.has-owner-link .row-stretch-link { color: inherit; text-decoration: none; }
.pet-directory-row.has-owner-link .row-stretch-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pet-directory-row.has-owner-link .owner-row-link { position: relative; z-index: 2; }

/* Copy: square icon buttons, easy to hit with a thumb */
.copy-chip { flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; background: var(--surface); color: var(--text); }
.copy-chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.copy-chip .i-done { display: none; }
.copy-chip.is-copied .i-copy { display: none; }
.copy-chip.is-copied .i-done { display: block; }
.contact-item { gap: .5rem; }
.contact-item > a, .contact-item > .address-link { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) { .owner-line .contact-item { flex-wrap: nowrap; } }

/* Open-address sheet: big rows, bottom sheet on phones */
.map-chooser { padding: 1.1rem 1.1rem 1.25rem; border-radius: 22px; }
.map-chooser .dialog-heading h2 { font-size: 1.2rem; line-height: 1.25; }
.map-chooser-options { gap: .65rem; margin-top: 1rem; }
.map-option { display: flex; align-items: center; gap: .9rem; min-height: 60px; padding: 0 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.map-option:active { background: var(--accent-soft); }
.map-option .map-name { flex: 1; }
.map-option svg { width: 18px; height: 18px; fill: none; stroke: var(--text-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #FFBF23; color: #111; font-weight: 800; }
.map-option[data-app="apple"] .map-badge { background: #111; color: #fff; }
.map-option[data-app="google"] .map-badge { background: #4285F4; color: #fff; }
.map-option[data-app="waze"] .map-badge { background: #33CCFF; color: #111; }
.map-copy { min-height: 52px; border: 0; border-radius: 14px; background: transparent; color: var(--text-soft); font: inherit; font-weight: 700; cursor: pointer; }
.map-copy.is-copied { color: var(--success); }
.map-chooser .icon-button:focus { outline: none; }
@media (max-width: 720px) {
  dialog.map-chooser { margin: auto 0 0; width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
}


.map-option .map-badge, .map-option[data-app] .map-badge { background: var(--accent-soft, #FFF3CF) !important; color: var(--text) !important; }
.map-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-option .map-badge svg { stroke: currentColor; }

/* Directory pagination. Page controls are 44px so a thumb can hit them. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  max-width: 100%;
  padding: 4px 20px 18px;
}
.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
}
.pagination .page-link,
.pagination .page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}
.pagination .page-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--neutral-2500);
}
.pagination .page-gap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .15rem;
  color: var(--text-soft);
}
.pagination-status {
  color: var(--text-soft);
  font-size: .85rem;
  font-weight: 700;
}

/* Phone width: 44px tap targets, and search placeholders that fit at 390px.
   Desktop sizes above this breakpoint stay as they are. */
@media (max-width: 720px) {
  .main-area:not(:has(.has-own-search)) .topbar {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .main-area:not(:has(.has-own-search)) .global-search {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .main-area:has(.has-own-search) .global-search {
    display: none;
  }
  .global-search input {
    height: 44px;
    min-height: 44px;
  }
  .global-search input::placeholder,
  .directory-search input::placeholder {
    font-size: 14px;
  }
  .directory-panel {
    padding: 0;
  }
  .directory-search {
    padding: 12px;
  }
  .directory-search input[type="search"] {
    font-size: 16px;
  }

  .mobile-menu-toggle,
  .sidebar-close,
  .account-trigger {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .account-trigger {
    padding: 0;
    justify-content: center;
  }
  .account-trigger .user-avatar {
    width: 44px;
    height: 44px;
  }
  .sidebar-nav a,
  .mobile-sidebar-account a,
  .mobile-sidebar-account button {
    min-height: 44px;
  }
  .mobile-sidebar-account a,
  .mobile-sidebar-account button {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
  }

  .segmented-control .dashboard-range > summary,
  .care-tabs a,
  .report-periods a,
  .service-chips a,
  .tasks-tabs a,
  .chart-toggle a,
  .day-switch a,
  .bookings-nav .button,
  .roster-action-button,
  .metric-dog-checkout .button,
  .meal-banner-dismiss,
  .export-menu-list a {
    min-height: 44px;
    min-width: 44px;
  }
  .tasks-tabs a,
  .chart-toggle a,
  .day-switch a,
  .service-chips a,
  .report-periods a,
  .care-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .chart-toggle a {
    padding: .5rem .85rem;
  }
  .range-cal-nav {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .range-cal-day {
    height: 44px;
    min-height: 44px;
  }
  .dashboard-range-form,
  .report-range .range-calendar {
    width: min(100%, calc(100vw - 24px));
  }
  .range-calendar {
    padding: .5rem;
  }

  .attendance-history-link,
  .bookings-top-links a,
  .booking-dogs a,
  .roster-dog,
  .directory-primary a,
  .freshness-banner a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    max-width: 100%;
  }
  .attendance-history-link {
    padding: 0 10px;
  }
  .bookings-top-links {
    flex-wrap: wrap;
    gap: .25rem .75rem;
  }
  .bookings-top-strip {
    align-items: stretch;
  }
  .roster-correct-button,
  .attendance-correction-close,
  .metric-dog-panel-close {
    min-width: 44px;
    min-height: 44px;
  }
  .roster-correct-button {
    padding: 8px 10px;
  }
  .attendance-correction-close,
  .metric-dog-panel-close {
    width: 44px;
    height: 44px;
  }
  .mini-link {
    min-height: 44px;
    min-width: 44px;
    padding: .45rem .7rem;
  }
  .here-key {
    gap: .15rem .75rem;
  }
  .here-key span,
  .here-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
  }
  .here-chip {
    padding: .35rem .7rem;
  }
  .owner-cards .row-actions .button {
    min-height: 44px;
    min-width: 44px;
  }
  .directory-primary {
    max-width: 100%;
  }
  .directory-primary a {
    overflow-wrap: anywhere;
  }
}

.low-reason { border: 1px solid var(--border); border-radius: 16px; padding: .8rem; margin-top: .8rem; }
.low-reason[hidden], [data-low-other][hidden] { display: none; }
.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .5rem; }

/* Header: always on screen on phones, with a Back button on every page except Today */
.topbar-back { display: none; align-items: center; gap: .2rem; min-height: 44px; padding: 0 .9rem 0 .5rem; border: 1px solid var(--line, rgba(0,0,0,.14)); border-radius: 999px; background: #fff; color: var(--text); font-weight: 700; text-decoration: none; flex: 0 0 auto; }
.topbar-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1180px) { .topbar-back { display: inline-flex; } }
@media (max-width: 720px) {
  .topbar { position: sticky; top: 0; z-index: 50; flex-wrap: wrap; row-gap: 8px; }
  .topbar-back { order: 0; }
  .mobile-menu-toggle { order: 1; }
  .account-menu { order: 2; margin-left: auto; }
  .global-search { order: 3; flex: 1 1 100%; width: 100%; }
}

/* Logo in the header: tap to go to Today, from every page */
.topbar-logo { display: none; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line, rgba(0,0,0,.14)); align-items: center; justify-content: center; }
.topbar-logo img { width: 30px; height: 30px; object-fit: contain; }
@media (max-width: 1180px) { .topbar-logo { display: inline-flex; } }
@media (max-width: 720px) { .topbar-logo { order: -1; } }

/* Standalone error pages (no dependence on the app shell) */
.error-shell { min-height: 100vh; background: #FAF9F5; }
.error-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid #E6E1D3; }
.error-bar a { display: inline-flex; align-items: center; gap: .6rem; color: #111; text-decoration: none; font-weight: 800; }
.error-bar img { width: 40px; height: 40px; object-fit: contain; }
.error-body { max-width: 34rem; margin: 2rem auto; padding: 0 1rem; }
.error-body .button { display: inline-block; min-height: 48px; line-height: 48px; padding: 0 1.4rem; border-radius: 999px; background: #FDBD21; color: #111; font-weight: 800; text-decoration: none; }
/* Quick-fact tiles that open their section */
a.quick-fact { display: block; color: inherit; text-decoration: none; position: relative; }
a.quick-fact::after { content: "›"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: #8a8576; }
a.quick-fact strong { padding-right: 1rem; }
a.quick-fact:active { background: #FFF7DC; }
.quick-fact-link { cursor: pointer; position: relative; } .quick-fact-link::after { content: "›"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: #8a8576; }

/* Recipe confirmation box sits inside the card margins; reconfirm label is quiet */
.meal-card .draft-recipe { margin: .6rem 1rem; }
.flag-quiet { background: none; border: 0; color: #6b675c; font-weight: 600; padding-left: 0; }
.inline-form { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; min-height: 32px; }

/* Notes and alerts on a dog profile: own class so the Today-page timeline rules cannot squash them */
.note-item { display: block; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); font-size: 1rem; }
.note-important { border-color: var(--red-100); border-left: 4px solid var(--danger); background: var(--neutral-200); }
.note-item > p { margin: .9rem 0; }
.note-item footer { color: var(--text-soft); font-size: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
@media (max-width: 720px) { .note-item footer { align-items: flex-start; flex-direction: column; } }

.badge-go { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
