/*
 * Cascade Pet Supply & Critter Cabana — Grooming App & Online Booking Stylesheet
 * "Sunrise Trailhead / Approachable Hippie Industrial / PNW Mercantile" Design System
 * Shared by /groomer/ (Salon Team App) and /book/ (Customer Online Booking & Waitlist).
 * Phone-first with big tap targets for busy (and wet) salon hands.
 */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Core Mercantile & Sunrise Trailhead Palette */
  --oat: #F6EFE4;
  --paper: #FBF7F0;
  --kraft: #E6D3B3;
  --ink: #2B2A26;
  --ink-soft: #5A574F;
  --pine: #2F4A3F;
  --pine-deep: #1F332B;
  --slate: #608087;
  --slate-deep: #4A6B6C;
  --peach: #FDE4D7;
  --dawn: #FFF5E8;
  --marigold: #F2B544;
  --marigold-deep: #D9932A;
  --terra: #C2643B;
  --terra-deep: #A04F2C;
  --sage: #A9B79A;
  --sage-deep: #7F9271;
  --butter: #F6E2B3;

  /* Semantic App Tokens mapped to Mercantile Authority */
  --bg: #F6EFE4;
  --surface: #FBF7F0;
  --surface-2: #EFE6D5;
  --text: #2B2A26;
  --muted: #5A574F;
  --line: #DDD2C0;
  --line-strong: rgba(43, 42, 38, 0.28);
  --ink-border: #2B2A26;

  --accent: #C2643B;
  --accent-hover: #A04F2C;
  --accent-text: #FFF5E8;
  --accent-soft: #FBECE4;

  --pine-accent: #2F4A3F;
  --pine-soft: #E3EDE8;

  --danger: #A62B22;
  --danger-soft: #FBE6E3;
  --warn: #7A5000;
  --warn-soft: #FBEFD2;
  --ok: #266D3B;
  --ok-soft: #E1F1E4;
  --info: #2C5560;
  --info-soft: #E4EFF2;
  --focus: #C2643B;

  --today-wash: #FBF3E2;
  --off-wash: #EDE4D4;

  /* Calendar visits by kind of service (Mercantile-tuned) */
  --cat-bath: #2D6270;
  --cat-bath-soft: #E5F0F3;
  --cat-bath-line: #B3D0D8;
  --cat-haircut: #2C5945;
  --cat-haircut-soft: #E3F0EA;
  --cat-haircut-line: #B2D2C2;
  --cat-nails: #A8502A;
  --cat-nails-soft: #FBECE4;
  --cat-nails-line: #E6BFA9;
  --cat-extra: #7B4363;
  --cat-extra-soft: #F6E9F0;
  --cat-extra-line: #DAB9CA;

  --shadow: 0 2px 6px rgba(43, 42, 38, 0.07), 0 10px 24px -12px rgba(43, 42, 38, 0.10);
  --pop-sm: 2px 3px 0 #2B2A26;
  --pop: 3px 4px 0 #2B2A26;
  --pop-lg: 5px 6px 0 #2B2A26;

  --radius: 18px;
  --radius-small: 12px;
  --gutter: 16px;
  --tabbar-height: 66px;

  --display: 'Fraunces', Georgia, Cambria, 'Times New Roman', serif;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --surface: #211F1C;
    --surface-2: #2B2824;
    --text: #F5EFE6;
    --muted: #B0A99E;
    --line: #38342E;
    --line-strong: rgba(245, 239, 230, 0.25);
    --ink-border: #4A453D;

    --pine: #88B8A5;
    --pine-deep: #DCECE5;
    --pine-accent: #4C7C69;
    --pine-soft: #1F332B;

    --accent: #DF7B52;
    --accent-hover: #EC8E67;
    --accent-text: #171614;
    --accent-soft: #3B241B;

    --danger: #FF8E85;
    --danger-soft: #3D1F1D;
    --warn: #F4C464;
    --warn-soft: #3A2E16;
    --ok: #7DD48E;
    --ok-soft: #1B3322;
    --info: #8DC5D2;
    --info-soft: #1C2E33;
    --focus: #DF7B52;

    --today-wash: #252118;
    --off-wash: #1B1A17;

    --cat-bath: #82C0D1;
    --cat-bath-soft: #192A30;
    --cat-bath-line: #2E4D57;
    --cat-haircut: #86C9AA;
    --cat-haircut-soft: #192D24;
    --cat-haircut-line: #2D5241;
    --cat-nails: #F09B75;
    --cat-nails-soft: #332018;
    --cat-nails-line: #5E3A2B;
    --cat-extra: #E09BC2;
    --cat-extra-soft: #301D28;
    --cat-extra-line: #59354B;

    --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    --pop-sm: 2px 3px 0 #0B0A09;
    --pop: 3px 4px 0 #0B0A09;
    --pop-lg: 5px 6px 0 #0B0A09;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
}

body.book-page {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* Subtle paper grain overlay — matches v2b.css / store websites */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--marigold);
  color: #2B2A26;
}

[hidden] { display: none !important; }

a {
  color: var(--terra-deep);
  font-weight: 700;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
@media (prefers-color-scheme: dark) {
  a { color: var(--accent); }
}

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px dashed var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--pine-deep);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(1.55rem, 3.2vw, 2.05rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

.hand {
  font-family: var(--hand);
  font-weight: 700;
}

/* Squiggle Kicker from store websites (.v2b .kicker) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 800 0.74rem/1 var(--font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
@media (prefers-color-scheme: dark) {
  .kicker { color: var(--accent); }
}
.kicker::before {
  content: "";
  width: 26px;
  height: 8px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M1 4 Q 4.5 0 8 4 T 15 4 T 22 4 T 25 3' fill='none' stroke='%23C2643B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.app {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 14px var(--gutter) 32px;
  outline: none;
}
.app-book {
  max-width: 760px;
  flex: 1;
}

.loading, .empty { color: var(--muted); text-align: center; padding: 36px 0; margin: 0; font-weight: 600; }
.noscript { padding: var(--gutter); }

/* ---------------------------------------------------------------- top bar, banners, tab bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 11px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 2px;
  background: linear-gradient(90deg, var(--terra) 0%, var(--marigold) 52%, var(--pine) 100%);
  opacity: 0.85;
  pointer-events: none;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface);
  border: 1.5px solid var(--ink-border);
  padding: 3px;
  flex: none;
  box-shadow: 1.5px 2px 0 var(--ink-border);
  transition: transform 220ms var(--ease-spring);
}
.topbar-brand:hover .topbar-logo {
  transform: rotate(-10deg) scale(1.05);
}
.topbar-text { display: flex; flex-direction: column; min-width: 0; }
.topbar-store {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--pine-deep);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, transform 150ms ease;
}
.pill-link:hover {
  border-color: var(--ink-border);
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .topbar {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar-store {
    font-size: 0.94rem;
  }
  .topbar-name {
    font-size: 0.76rem;
  }
  .topbar-actions .pill-link { display: none; }
  .topbar-actions .link-button {
    font-size: 0.82rem;
    padding: 6px 2px;
    white-space: nowrap;
  }
}

.banner {
  padding: 8px var(--gutter);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.banner-trial { background: var(--info-soft); color: var(--info); }
.banner-demo { background: var(--butter); color: #2B2A26; }
.banner-demo a { color: #1F332B; font-weight: 800; }
.banner-offline { background: var(--warn-soft); color: var(--warn); }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--line);
  box-shadow: 0 -4px 18px rgba(43, 42, 38, 0.08);
}
.tabbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.tabbar a:hover {
  color: var(--text);
  background: rgba(43, 42, 38, 0.05);
}
.tabbar a[aria-current="page"] {
  background: var(--pine-accent);
  color: #FFF5E8;
  border: 1.5px solid var(--ink-border);
  box-shadow: var(--pop-sm);
}
@media (max-width: 420px) {
  .tabbar a { font-size: 0.78rem; }
}

/* ---------------------------------------------------------------- buttons and forms */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1.5px solid var(--ink-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: var(--pop-sm);
  transition: transform 150ms var(--ease-out), box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.button:hover:not(:disabled) {
  box-shadow: var(--pop);
  transform: translateY(-1px);
}
.button:active:not(:disabled) {
  box-shadow: 1px 1px 0 var(--ink-border);
  transform: translate(2px, 2px);
}
.button:disabled {
  opacity: 0.52;
  cursor: default;
  box-shadow: none;
}
.button-primary {
  background: var(--accent);
  border: 2px solid var(--ink-border);
  color: var(--accent-text);
  font-weight: 800;
  box-shadow: var(--pop);
}
.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 4px 5px 0 var(--ink-border);
}
.button-big {
  min-height: 56px;
  font-size: 1.06rem;
  width: 100%;
}
.button-danger {
  color: var(--danger);
  border-color: var(--danger);
}
.button-small {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.88rem;
}
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button-row > .button { flex: 1 1 auto; }

.link-button {
  background: none;
  border: none;
  padding: 8px 6px;
  color: var(--terra-deep);
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
@media (prefers-color-scheme: dark) {
  .link-button { color: var(--accent); }
}

.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field > span, .field-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}
.field-hint { color: var(--muted); font-size: 0.84rem; font-weight: 500; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 6px; }
}

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"],
input[type="date"], input[type="time"], select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  font-weight: 600;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ink-border);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.38);
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input.code-input {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--pine-accent); flex: none; }

.choice-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.choice:hover {
  border-color: var(--ink-border);
}
.choice input { width: 22px; height: 22px; accent-color: var(--pine-accent); flex: none; }
.choice-selected {
  border-color: var(--pine-accent);
  background: var(--pine-soft);
  box-shadow: inset 0 0 0 1px var(--pine-accent);
}
.choice-main { display: flex; flex-direction: column; min-width: 0; font-weight: 700; }
.choice-sub { color: var(--muted); font-size: 0.88rem; font-weight: 500; }

/* Website-style pill chips (.v2c .chip) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.chip-toggle:hover {
  border-color: var(--ink-border);
  transform: translateY(-1px);
}
.chip-toggle[aria-pressed="true"] {
  background: var(--pine-accent);
  color: #FFF5E8;
  border-color: var(--ink-border);
  box-shadow: 2px 2px 0 var(--ink-border);
}
/* Pet behavior alert toggles stay terracotta/danger when pressed */
.alerts-editor .chip-toggle[aria-pressed="true"] {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: none;
}

.error {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font-weight: 700;
  margin: 10px 0;
}
.notice {
  background: var(--info-soft);
  color: var(--info);
  border: 1.5px solid rgba(44, 85, 96, 0.24);
  border-radius: var(--radius-small);
  padding: 11px 14px;
  margin: 10px 0;
  font-weight: 600;
}
.notice-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: rgba(122, 80, 0, 0.25);
}

/* ---------------------------------------------------------------- Customer /book/ Storefront Hero & Step Cards */

.book-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 6px 0 18px;
  padding: 20px 20px 18px;
  border-radius: 24px;
  border: 2px solid var(--ink-border);
  background: linear-gradient(180deg, #F9E6D6 0%, #FFF5E8 62%, #FBF7F0 100%);
  box-shadow: var(--pop-lg);
}
@media (prefers-color-scheme: dark) {
  .book-hero {
    background: linear-gradient(180deg, #2B221C 0%, #211F1C 100%);
  }
}
.book-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3E9B5F;
  box-shadow: 0 0 0 3px rgba(62, 155, 95, 0.22);
}
.hero-store-chips {
  margin-bottom: 12px;
}
.store-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.store-chip-btn img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px;
}
.store-chip-btn:hover {
  border-color: var(--ink-border);
  transform: translateY(-1px);
}
.store-chip-btn[aria-pressed="true"] {
  background: var(--pine-accent);
  color: #FFF5E8;
  border-color: var(--ink-border);
  box-shadow: var(--pop-sm);
}
.book-hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  margin: 4px 0 8px;
}
.book-lede {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  max-width: 56ch;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--line);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--butter);
  color: #2B2A26;
  border: 2px solid var(--ink-border);
  box-shadow: 2px 2px 0 var(--ink-border);
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 800;
  font-size: 1.15rem;
  flex: none;
}
.step-head h2 {
  margin: 0;
  font-size: 1.3rem;
}
.step-sub {
  display: block;
  font-size: 1.12rem;
  color: var(--terra-deep);
  line-height: 1.05;
  margin-top: 2px;
}
@media (prefers-color-scheme: dark) {
  .step-sub { color: var(--accent); }
}

.wl-addon-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  border: 1.5px dashed var(--line-strong);
  background: var(--bg);
}

.book-footer {
  margin-top: 32px;
  background: #1F332B;
  color: #D9E2DF;
  border-top: 2px solid #2B2A26;
  padding: 20px var(--gutter);
  font-size: 0.88rem;
}
.book-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.book-footer .hand {
  font-size: 1.25rem;
  color: var(--marigold);
}

/* ---------------------------------------------------------------- panels and cards */

.panel {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.panel > h2 { margin-bottom: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.strong { font-weight: 700; }

.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.day-title { text-align: center; flex: 1; }
.day-title h1 { font-size: 1.38rem; }
.day-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-border);
  background: var(--surface);
  box-shadow: var(--pop-sm);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.day-nav:hover {
  transform: translateY(-1px);
  box-shadow: var(--pop);
}
.day-nav:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink-border);
}
.day-summary { color: var(--muted); text-align: center; margin: 0 0 10px; font-size: 0.95rem; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 150ms var(--ease-out), border-color 150ms ease, box-shadow 150ms ease;
}
.card:hover {
  border-color: var(--ink-border);
  transform: translateY(-2px);
}
.card:focus-visible { outline: 3px dashed var(--focus); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--terra-deep); }
@media (prefers-color-scheme: dark) {
  .card-time { color: var(--accent); }
}
.card-pet {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pine-deep);
  margin-top: 3px;
}
.card-line { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.card-done { opacity: 0.68; }
.card.status-booked { border-left-color: var(--pine-accent); }
.card.status-checked_in { border-left-color: var(--info); }
.card.status-in_service { border-left-color: var(--marigold-deep); }
.card.status-ready { border-left-color: var(--ok); }
.card.status-completed { border-left-color: var(--muted); }
.card.status-no_show, .card.status-cancelled { border-left-color: var(--danger); }

.status {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.status-checked_in { background: var(--info-soft); color: var(--info); border-color: rgba(44, 85, 96, 0.25); }
.status-in_service { background: var(--warn-soft); color: var(--warn); border-color: rgba(122, 80, 0, 0.25); }
.status-ready { background: var(--ok-soft); color: var(--ok); border-color: rgba(38, 109, 59, 0.25); }
.status-completed { background: var(--surface-2); color: var(--muted); }
.status-no_show, .status-cancelled { background: var(--danger-soft); color: var(--danger); border-color: rgba(166, 43, 34, 0.25); }
.status-requested { background: var(--warn-soft); color: var(--warn); }
.status-approved { background: var(--ok-soft); color: var(--ok); }
.status-declined { background: var(--danger-soft); color: var(--danger); }

.alerts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.alert {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(166, 43, 34, 0.25);
  font-weight: 800;
  font-size: 0.82rem;
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.tag-pin { background: var(--warn-soft); color: var(--warn); }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.pet-head h1 { font-size: 1.7rem; }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  text-decoration: none;
  color: var(--pine-deep);
}

.note { border-top: 1px dashed var(--line); padding: 10px 0; }
.note:first-of-type { border-top: none; }
.note-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 4px; font-weight: 600; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 0.84rem; }
.note-pinned {
  background: var(--warn-soft);
  margin: 0 -18px;
  padding: 10px 18px;
  border-top-color: transparent;
  border-left: 4px solid var(--marigold-deep);
}

.list-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.list-row:first-child { border-top: none; }
.list-row-main { min-width: 0; }
.list-row-side { text-align: right; flex: none; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 9px; margin: 10px 0; }
.slot {
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.slot:hover {
  border-color: var(--ink-border);
  transform: translateY(-1px);
}
.slot[aria-pressed="true"] {
  background: var(--pine-accent);
  border-color: var(--ink-border);
  color: #FFF5E8;
  box-shadow: var(--pop-sm);
}

.week-day { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.week-day:first-child { border-top: none; }
.week-day-today .week-day-name { color: var(--terra-deep); }
.week-day-name { font-weight: 800; }
.week-day-hours { text-align: right; font-variant-numeric: tabular-nums; }

.success { text-align: center; padding: 26px 14px; }
.success h1 { margin-bottom: 10px; }
.success-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  border: 2px solid var(--ink-border);
  box-shadow: var(--pop-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
}

details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* ---------------------------------------------------------------- calendar: Schedge's grid, with visits */

.app-wide { max-width: none; }

.cal-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.cal-keys { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.cal-key { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 700; }
.cal-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cat); }

.cal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 calc(-1 * var(--gutter)) 8px;
  padding: 3px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.cal-controls::-webkit-scrollbar { display: none; }
.cal-controls > :first-child { margin-left: auto; }
.cal-controls > :last-child { margin-right: auto; }

.segmented {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
}
.segment {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}
button.segment { border: 0; background: none; cursor: pointer; }
.segment[aria-current="page"], .segment[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1.5px var(--ink-border);
}

.cal-people { display: flex; flex: none; gap: 6px; }
.cal-person {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 12px 4px 10px;
  white-space: nowrap;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.cal-person::before {
  content: "";
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 2px solid var(--muted);
  border-radius: 50%;
}
.cal-person[aria-pressed="true"] {
  border-color: var(--ink-border);
  background: var(--pine-soft);
  color: var(--text);
  box-shadow: 1.5px 2px 0 var(--ink-border);
}
.cal-person[aria-pressed="true"]::before {
  border-color: var(--pine-accent);
  background: var(--pine-accent);
}

.cal-scroll {
  overflow: auto;
  margin: 0 calc(-1 * var(--gutter));
  border-top: 1.5px solid var(--line-strong);
  border-bottom: 1.5px solid var(--line-strong);
  background: var(--surface);
  overscroll-behavior: contain;
  box-shadow: var(--shadow);
}

.cal {
  --cal-who: 104px;
  --cal-day: 112px;
  --cal-head: 42px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: calc(var(--cal-who) + 7 * var(--cal-day));
  font-size: 0.85rem;
}
.cal-col-who { width: var(--cal-who); }
.cal th, .cal td {
  padding: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.cal tr > :last-child { border-right: none; }
.cal tbody tr:last-child > * { border-bottom: none; }
.cal tbody th, .cal tbody td { padding: 0; }

.cal thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 4px;
  background: var(--surface-2);
  text-align: center;
}
.cal thead th.cal-corner {
  left: 0;
  z-index: 3;
  text-align: left;
  vertical-align: bottom;
  padding-left: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terra-deep);
}
.cal-weekday {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cal-date {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 1.08rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--pine-deep);
}
.cal-day-link { display: block; color: inherit; text-decoration: none; }
.cal-day-link:hover .cal-date { text-decoration: underline; }
.cal thead th.cal-today { box-shadow: inset 0 -3px 0 var(--terra); background: var(--today-wash); }
.cal thead th.cal-today .cal-weekday, .cal thead th.cal-today .cal-date { color: var(--terra-deep); }

.cal-who {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}
.cal-who-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  box-sizing: border-box;
  height: var(--cal-head);
  padding: 4px 6px 4px 8px;
  overflow: hidden;
}
.cal-avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--ink-border);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
}
.cal-avatar-me { background: var(--butter); color: #2B2A26; }
.cal-who-text { display: flex; flex-direction: column; min-width: 0; }
.cal-name, .cal-count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-name { font-weight: 800; color: var(--pine-deep); }
.cal-count { color: var(--muted); font-size: 0.7rem; font-weight: 600; }
.cal-row-open .cal-who { background: var(--warn-soft); color: var(--warn); }
.cal-row-open .cal-name { white-space: normal; font-size: 0.8rem; line-height: 1.15; }

.cal-ruler { position: relative; height: var(--cal-span); }
.cal-ruler::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 6px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--cal-hour));
}
.cal-tick {
  position: absolute;
  right: 9px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cal-open-link { color: var(--warn); font-weight: 800; }

.cal-cell-head { box-sizing: border-box; height: var(--cal-head); padding: 4px; overflow: hidden; }
.cal td.cal-cell-off { background: var(--off-wash); }
.cal td.cal-today { background: var(--today-wash); }
.cal-hours {
  display: block;
  margin: 0 2px 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cal-off {
  display: inline-block;
  margin: 0 0 4px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
}
.cal-off-approved { background: var(--danger-soft); color: var(--danger); }
.cal-off-requested { background: var(--warn-soft); color: var(--warn); }

.cal-day { position: relative; isolation: isolate; height: var(--cal-span); background: var(--off-wash); }
.cal-day-open { background: var(--surface); }
.cal-day::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--cal-hour));
}
.cal-shift { position: absolute; left: 0; right: 0; background: var(--surface); }
.cal-day-mine { cursor: pointer; }

.cal-closed {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 2px 4px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--line) 6px 8px);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
}
button.cal-closed { cursor: pointer; }
.cal-now {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 2px;
  margin-top: -1px;
  background: var(--terra);
  pointer-events: none;
}
.cal-now::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
}

/* Calendar visit block — preserves exact line heights (14px / 16px / 13px) for JS fit math */
.cal-visit {
  position: absolute;
  left: 2px;
  width: calc(100% - 4px);
  z-index: 2;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: 1px 5px;
  border: 1px solid var(--cat-line, var(--line));
  border-left: 3.5px solid var(--cat, var(--muted));
  border-radius: 7px;
  background: var(--cat-soft, var(--surface-2));
  color: var(--text);
  text-align: left;
  text-decoration: none;
  line-height: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  container-type: inline-size;
}
.cal-visit > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-visit-lane { padding-left: 3px; padding-right: 3px; }
@container (max-width: 64px) {
  .cal-visit-time { display: none; }
}
.cal-visit-head { line-height: 16px; }
.cal-visit-time { font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.cal-visit-pet { font-size: 0.8rem; font-weight: 800; color: var(--pine-deep); }
.cal-visit-service { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.cal-visit-alert { font-size: 0.68rem; font-weight: 800; color: var(--danger); }
.cal-visit > .status { display: inline-block; padding: 0 6px; font-size: 0.64rem; line-height: 13px; }
.cal-visit-done { opacity: 0.6; }
.cal-visit:focus-visible { outline: 3px dashed var(--focus); outline-offset: 1px; }
.cal-visit-tiny { padding-top: 0; padding-bottom: 0; }
.cal-visit-tiny .cal-visit-head { line-height: 13px; }
.cal-visit-tiny .cal-visit-time, .cal-visit-tiny .cal-visit-pet { font-size: 0.66rem; }
.cal-visit-tiny > span:nth-of-type(n+2), .cal-fit-1 > span:nth-of-type(n+2) { display: none; }
.cal-fit-2 > span:nth-of-type(n+3) { display: none; }
.cal-fit-3 > span:nth-of-type(n+4) { display: none; }

.cal-visit-grip { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cal-visit-grip { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; cursor: ns-resize; }
  .cal-visit:hover > .cal-visit-grip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    border-radius: 1px;
    background: var(--cat, var(--muted));
  }
}
.cal-visit-lifted { opacity: 0.35; }
.cal-drop {
  z-index: 4;
  pointer-events: none;
  border-style: solid;
  box-shadow: 0 0 0 2px var(--accent), 0 8px 20px rgba(43, 42, 38, 0.25);
}
.cal-drop-time { font-size: 0.72rem; font-weight: 800; line-height: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
body.cal-dragging, body.cal-dragging * { cursor: grabbing !important; }

.cal-side {
  --cal-who: 46px;
  --cal-day: 104px;
  min-width: calc(var(--cal-who) + var(--cal-cols, 1) * var(--cal-day));
}
.cal-side thead th { padding: 6px 4px 5px; }
.cal-side thead .cal-name { display: block; font-size: 0.9rem; }
.cal-col-note { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 18px; }
.cal-col-note .cal-hours, .cal-col-note .cal-off { margin: 0; }
.cal-side thead th.cal-col-open { background: var(--warn-soft); color: var(--warn); }
.cal-side thead th.cal-col-open .cal-name { white-space: normal; font-size: 0.8rem; line-height: 1.15; }

.cat-bath { --cat: var(--cat-bath); --cat-soft: var(--cat-bath-soft); --cat-line: var(--cat-bath-line); }
.cat-haircut { --cat: var(--cat-haircut); --cat-soft: var(--cat-haircut-soft); --cat-line: var(--cat-haircut-line); }
.cat-nails { --cat: var(--cat-nails); --cat-soft: var(--cat-nails-soft); --cat-line: var(--cat-nails-line); }
.cat-extra { --cat: var(--cat-extra); --cat-soft: var(--cat-extra-soft); --cat-line: var(--cat-extra-line); }

.cal-day-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.cal-cell-head .cal-day-toggle {
  display: flex;
  width: 100%;
}
.cal-day-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1.5px solid var(--muted);
}
.cal-day-toggle.cal-day-on {
  border-color: var(--pine-accent);
  background: var(--pine-soft);
  color: var(--text);
}
.cal-day-toggle.cal-day-on::before {
  border-color: var(--pine-accent);
  background: var(--pine-accent);
}
.cal-day-toggle:hover {
  border-color: var(--ink-border);
}
.cal-day-toggle:focus-visible {
  outline: 3px dashed var(--focus);
  outline-offset: 1px;
}

.cal-slot-drag {
  position: absolute;
  left: 2px;
  right: 2px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 6px;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 14px;
}
.cal-slot-open {
  border: 2px dashed var(--pine-accent);
  background: var(--pine-soft);
  color: var(--pine-deep);
}
.cal-slot-close {
  border: 2px dashed var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}
.cal-slot-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-head { justify-content: center; }
.sched-overlay-label { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; color: var(--terra-deep); }
.sched-weekday-btn {
  display: block;
  width: 100%;
  margin: 0 0 3px;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--pine-deep);
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}
.sched-weekday-btn:hover { color: var(--accent); text-decoration: underline; }
.sched-my-shift {
  position: absolute;
  left: 3px;
  width: calc(100% - 6px);
  z-index: 2;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid var(--pine-accent);
  border-left: 4px solid var(--pine-accent);
  border-radius: 7px;
  background: var(--pine-soft);
  color: var(--text);
  text-align: left;
  line-height: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.sched-my-shift > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-my-time { font-size: 0.76rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pine-deep); }
.sched-my-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.sched-my-shift:focus-visible { outline: 3px dashed var(--focus); outline-offset: 1px; }

.peer-0 { --peer: var(--cat-bath); --peer-soft: var(--cat-bath-soft); --peer-line: var(--cat-bath-line); }
.peer-1 { --peer: var(--cat-haircut); --peer-soft: var(--cat-haircut-soft); --peer-line: var(--cat-haircut-line); }
.peer-2 { --peer: var(--cat-nails); --peer-soft: var(--cat-nails-soft); --peer-line: var(--cat-nails-line); }
.peer-3 { --peer: var(--cat-extra); --peer-soft: var(--cat-extra-soft); --peer-line: var(--cat-extra-line); }

.sched-peer-pill[aria-pressed="true"] {
  border-color: var(--peer, var(--pine-accent));
  background: var(--peer-soft, var(--pine-soft));
  color: var(--text);
}
.sched-peer-pill[aria-pressed="true"]::before {
  border-color: var(--peer, var(--pine-accent));
  background: var(--peer, var(--pine-accent));
}
.sched-peer-shift {
  position: absolute;
  left: 2px;
  width: calc(100% - 4px);
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px dashed var(--peer, var(--muted));
  border-right: 3px solid var(--peer, var(--muted));
  border-radius: 6px;
  background: color-mix(in srgb, var(--peer-soft, var(--surface-2)) 68%, transparent);
  color: var(--peer, var(--muted));
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 13px;
  text-align: right;
}
.sched-peer-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 699px) {
  .cal-avatar { display: none; }
}
@media (min-width: 700px) {
  .cal-scroll { margin: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
  .cal { --cal-who: 168px; }
  .cal-side { --cal-who: 64px; --cal-day: 140px; }
}
@media (min-width: 1000px) {
  .app.app-wide { padding-top: 12px; }
  .cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 10px; }
  .cal-toolbar .day-head { margin: 0; }
  .cal-toolbar .day-title { flex: none; min-width: 12em; }
  .cal-toolbar .cal-controls { min-width: 0; margin: 0; padding: 4px; }
  .cal-toolbar .cal-controls > :first-child { margin-left: 0; }
  .cal-toolbar .cal-controls > :last-child { margin-right: 0; }
  .cal-toolbar .cal-summary { flex: 1 1 auto; justify-content: flex-end; margin: 0; }
}

/* ---------------------------------------------------------------- services and prices */

.menu-lead { margin: 4px 0 0; font-weight: 600; }
.menu-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 12px 0; }
.menu-tools input[type="search"] { flex: 1 1 220px; width: auto; border-radius: 999px; }
.menu-groups > .panel { margin: 0 0 14px; }
.menu-group > h2 { margin-bottom: 4px; }
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 0;
  border: 0;
  border-top: 1px dashed var(--line);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-group > h2 + .menu-row, .menu-group > summary + .menu-row { border-top: none; }
.menu-row:hover .menu-name { color: var(--terra-deep); text-decoration: underline; }
.menu-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.menu-name { font-weight: 800; overflow-wrap: anywhere; }
.menu-notes { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.menu-notes:empty { display: none; }
.menu-row-side { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.menu-price {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--pine-deep);
  font-variant-numeric: tabular-nums;
}
.menu-price-none { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.menu-length { color: var(--muted); font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-off > summary { font-size: 1.15rem; font-weight: 800; min-height: 32px; }
.menu-off .menu-name { color: var(--muted); }
.tag-me { background: var(--pine-soft); color: var(--pine-deep); }
.tag-store { background: var(--info-soft); color: var(--info); }
.tag-off { background: var(--warn-soft); color: var(--warn); }
.menu-hint { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }
.menu-hint p { margin: 0 0 4px; }
.change-undone { color: var(--muted); text-decoration: line-through; }

.disclose > summary { gap: 8px; list-style: none; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::before { content: "\25B8"; color: var(--terra-deep); font-size: 0.9em; }
.disclose[open] > summary::before { content: "\25BE"; }

@media (min-width: 1000px) {
  .app.app-menu { max-width: 1200px; }
  .menu-groups { columns: 2; column-gap: 16px; }
  .menu-groups > * { break-inside: avoid; }
}

/* ---------------------------------------------------------------- sending a groom to the register */

.tag-till { background: var(--pine-soft); color: var(--pine-deep); }
.register-total {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--pine-deep);
  margin: 8px 0 4px;
}
.register-total:empty { display: none; }

/* ---------------------------------------------------------------- a visit's quick editor (.sheet) */

.sheet {
  width: 100%;
  max-width: 100%;
  max-height: calc(100% - 24px);
  margin: auto 0 0;
  padding: 0;
  border: 2px solid var(--ink-border);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 -10px 36px rgba(43, 42, 38, 0.35);
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(43, 42, 38, 0.5); backdrop-filter: blur(2px); }
body:has(.sheet[open]) { overflow: hidden; }
.sheet-body { padding: 16px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-title { min-width: 0; }
.sheet-title p { margin: 0; }
.sheet-title h2 { margin: 2px 0; font-size: 1.32rem; overflow-wrap: anywhere; }
.sheet-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink-border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--pop-sm);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.sheet-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; }
.sheet-status .link-button { min-height: 40px; }
.sheet-form .field { margin: 10px 0; }
.sheet-form .segmented { margin-top: 12px; }
.sheet-hint { margin: 8px 0 0; }
@media (min-width: 700px) {
  .sheet {
    width: 480px;
    margin: auto;
    border-bottom: 2px solid var(--ink-border);
    border-radius: 22px;
    box-shadow: var(--pop-lg), 0 24px 50px -20px rgba(43, 42, 38, 0.45);
  }
  .sheet-body { padding: 20px 22px 22px; }
}

/* ---------------------------------------------------------------- sign-in */

.signin {
  max-width: 440px;
  margin: 5vh auto 0;
  padding: 24px 22px 22px;
  border: 2px solid var(--ink-border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--pop-lg);
}
.signin-doodle-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 22px;
  background: #fff;
  border: 2px solid var(--ink-border);
  box-shadow: var(--pop-sm);
}
.signin-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.signin-mark {
  width: 44px;
  height: 44px;
  padding: 3px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink-border);
  box-shadow: var(--pop-sm);
}
.signin-kicker {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}
.signin h1 { text-align: center; margin-bottom: 4px; font-size: 1.8rem; }
.signin p.lead {
  text-align: center;
  color: var(--terra-deep);
  font-size: 1.32rem;
  margin: 0 0 18px;
}
.signin-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.signin-sso-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  background: var(--pine);
  color: #FFF5E8;
  border-color: var(--ink-border);
}
.signin-sso-btn:hover {
  background: var(--pine-deep);
}
.signin-ms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex: none;
}
.signin-demo-btn {
  width: 100%;
  margin-bottom: 10px;
  background: var(--butter);
  color: #2B2A26;
  border-color: var(--ink-border);
  font-weight: 800;
}
.signin-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.signin-divider::before,
.signin-divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--line);
}
.signin-cashier-form {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
}
.signin-cashier-row {
  margin-bottom: 10px;
}
.signin-cashier-row .field {
  margin: 0;
}
.signin-cashier-btn {
  width: 100%;
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--ink-border);
}
.signin-cashier-btn:hover {
  background: var(--accent-hover);
}
.signin-cashier-hint {
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.35;
}
.signin-email-details {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px dashed var(--line-strong);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}
.signin-email-details > summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pine-deep);
  text-align: center;
}
.signin-email-details[open] > summary {
  margin-bottom: 10px;
}
.topbar-switcher {
  min-height: 34px;
  max-width: 220px;
  padding: 4px 28px 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-border);
  background-color: var(--surface);
  color: var(--pine-deep);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 1.5px 2px 0 var(--ink-border);
  cursor: pointer;
}
@media (max-width: 680px) {
  .topbar-app-link {
    display: none;
  }
  .topbar-switcher {
    max-width: 155px;
    font-size: 0.76rem;
  }
}
.sched-schedge-link {
  flex: none;
  align-self: center;
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 14px);
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid #FFF5E8;
  background: #1F332B;
  color: #FFF5E8;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.toast-action {
  background: none;
  border: none;
  color: var(--marigold);
  font-weight: 800;
  min-height: 36px;
  padding: 0 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- waitlist & cancellation matching */

.cal-wl-link {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--butter);
  color: #2B2A26;
  border: 1.5px solid var(--ink-border);
  font-weight: 800;
  text-decoration: none;
}
.wl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  max-height: 55vh;
  overflow-y: auto;
}
.wl-card {
  flex: none;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wl-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.wl-meta { line-height: 1.35; }
.wl-note {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  border-left: 3px solid var(--terra);
  color: var(--text);
  font-style: italic;
}
.wl-fit { color: var(--pine-deep); font-weight: 800; }
.wl-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.wl-gap-matches {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wl-gap-matches:empty { display: none; }
.wl-gap-matches h3 { margin: 0; font-size: 1.05rem; }
.wl-prefs-box {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--bg);
}
.cal-tip-bar, .cal-demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line-strong);
  background: var(--info-soft);
  color: var(--text);
  font-weight: 600;
}
.cal-demo-bar {
  justify-content: flex-start;
  background: var(--butter);
  color: #2B2A26;
}
.note-chips {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- Neighborhood Pack member bar */

.np-member-bar {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-border);
  border-radius: var(--radius-small);
  background: var(--bg);
  box-shadow: var(--pop-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.np-member-signed-in {
  background: var(--pine-soft);
  border-color: var(--pine-deep);
}
.np-member-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.np-member-ident {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}
.np-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pine-deep);
  color: #FFF5E8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.np-welcome {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--pine-deep);
}
.np-prompt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.np-signin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.np-signin-input {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
}
.np-signin-btn {
  flex: none;
  border-radius: 999px;
}
.np-signout-btn {
  flex: none;
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 11px;
  font-size: 0.82rem;
}
.np-remembered-line {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pine-deep);
}
.np-pets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-strong);
}
.np-pets-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pine-deep);
}
.np-pet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.np-pet-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--pop-sm);
}
.np-pet-pill[aria-pressed="true"] {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
  color: #FFF5E8;
  box-shadow: var(--pop-sm);
}
.np-pet-pill-add {
  border-style: dashed;
}
.np-demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.np-demo-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.np-demo-chip {
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--pine-deep);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.np-demo-chip:hover {
  background: var(--butter);
  border-color: var(--ink-border);
}

/* ---------------------------------------------------------------- Live-filterable service picker */

.svc-picker-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.svc-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.svc-filter-count {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.svc-cat-chips {
  margin-bottom: 2px;
}
.svc-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-search-input {
  flex: 1 1 auto;
  border-radius: 999px;
  padding-left: 14px;
  padding-right: 14px;
  background: var(--bg);
}
.svc-search-clear {
  flex: none;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.svc-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  border: 1.5px solid var(--ink-border);
  border-radius: var(--radius-small);
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.svc-picker-list > * {
  flex-shrink: 0;
}
.svc-group-label {
  flex: none;
  padding: 8px 8px 3px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.svc-group-label:first-child {
  padding-top: 2px;
}
.svc-option {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}
.svc-option:hover {
  border-color: var(--ink-border);
  background: var(--surface-2);
}
.svc-option[aria-pressed="true"] {
  border-color: var(--pine-deep);
  background: var(--pine-soft);
  box-shadow: 2px 2px 0 var(--pine-deep);
}
.svc-radio {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  box-sizing: border-box;
}
.svc-option[aria-pressed="true"] .svc-radio {
  border-color: var(--pine-deep);
  background: var(--pine-deep);
  box-shadow: inset 0 0 0 3px #FFF5E8;
}
.svc-option-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.svc-option-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.28;
  color: var(--text);
  overflow-wrap: break-word;
}
.svc-usual-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--butter);
  border: 1px solid var(--ink-border);
  color: #2B2A26;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}
.svc-option-meta {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .svc-option {
    padding: 10px;
    gap: 8px;
  }
  .svc-option-name {
    font-size: 0.9rem;
  }
  .svc-option-meta {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 1px;
  }
}
.svc-option-dur {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.svc-option-price {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pine-deep);
}
.svc-empty {
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.svc-selected-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--pine-deep);
  background: var(--pine-soft);
  font-size: 0.9rem;
}
.svc-selected-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine-deep);
}
.svc-groomer-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pine-soft);
  border: 1px solid var(--pine-deep);
  color: var(--pine-deep);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.svc-groomer-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--pine-soft);
  border: 1.5px solid var(--pine-deep);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pine-deep);
}
.svc-groomer-filter-reset {
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  cursor: pointer;
}
.svc-groomer-filter-reset:hover {
  background: var(--butter);
}

/* Bidirectional Groomer <-> Service Assignment (/groomer/#/services) */
.menu-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.menu-view-switch {
  flex: none;
}
.what-i-groom-bar {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #FBF6EA 0%, #EFF5EE 100%);
}
.what-i-groom-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.what-i-groom-title {
  font-size: 0.95rem;
  color: var(--pine-deep);
}
.menu-filter-chips {
  margin-bottom: 12px;
}
.groom-cap-pill[aria-pressed="true"] {
  background: var(--pine-deep);
  color: #FFFFFF;
  border-color: var(--ink-border);
}
.groomer-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.groomer-select-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--ink-border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink-border);
}
.groomer-select-card[aria-pressed="true"] {
  background: var(--pine-soft);
  border-color: var(--pine-deep);
  box-shadow: 3px 3px 0 var(--pine-deep);
}
.groomer-select-name {
  font-weight: 800;
  font-size: 0.96rem;
}
.groomer-select-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.groomer-svc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.groomer-sp-chips {
  margin-bottom: 10px;
}
.groomer-svc-group {
  margin-top: 12px;
}
.groomer-svc-group-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine-deep);
  margin: 0 0 6px;
}
.groomer-svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  margin-bottom: 6px;
}
.groomer-svc-row.is-assigned {
  border-color: var(--pine-deep);
  background: #F6FAF5;
}
.groomer-svc-row.is-unassigned {
  opacity: 0.82;
}
.groomer-svc-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 4px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.groomer-svc-check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--ink-border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #FFFFFF;
}
.groomer-svc-toggle[aria-pressed="true"] .groomer-svc-check {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
}
.groomer-svc-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.groomer-svc-name {
  font-weight: 800;
  font-size: 0.94rem;
}
.groomer-svc-side {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-who-field {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* Closest 10 open time slots grouped by weeks out */
.closest-open-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.closest-week-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.closest-week-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

/* 5-Day Column Calendar with Time Slot Bubbles (/book/) */
.svc-unselected-prompt {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface-alt, #F6F0E2);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}
.cal5-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-alt, #F6F0E2);
}
.cal5-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.cal5-nav-btn {
  flex: none;
  white-space: nowrap;
}
.cal5-range-title {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pine-deep);
  text-align: center;
}
.cal5-jump-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.cal5-jump-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
input.cal5-date-input {
  width: auto;
  max-width: 165px;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 0.84rem;
  border-radius: 8px;
}
.cal5-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.cal5-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  overflow-x: hidden;
}
.cal5-grid.cal-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 820px) {
  .cal5-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .cal5-col-head {
    padding: 6px 4px;
  }
  .cal5-col-date {
    font-size: 0.88rem;
  }
  .cal5-col-body {
    padding: 6px 4px;
    gap: 5px;
  }
  .cal5-bubble {
    font-size: 0.78rem;
    padding: 6px 4px;
  }
}
.cal5-col {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 2px solid var(--ink-border);
  background: var(--surface);
  overflow: hidden;
  min-height: 170px;
  box-shadow: 2px 2px 0 var(--ink-border);
}
.cal5-col.is-today {
  border-color: var(--pine-deep);
}
.cal5-col.has-selected {
  border-color: var(--pine-deep);
  background: #F6FAF5;
}
.cal5-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 6px;
  background: var(--surface-alt, #F6F0E2);
  border-bottom: 1.5px solid var(--line);
  text-align: center;
}
.cal5-col.is-today .cal5-col-head {
  background: var(--pine-soft);
}
.cal5-col-day {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine-deep);
}
.cal5-col-date {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}
.cal5-col-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 6px;
  max-height: 290px;
  overflow-y: auto;
}
.cal5-bubble {
  flex: none;
  appearance: none;
  border: 1.5px solid var(--ink-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 6px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0 var(--ink-border);
  transition: transform 0.08s ease, background-color 0.1s ease;
}
.cal5-bubble:hover {
  background: var(--butter);
  transform: translate(-1px, -1px);
}
.cal5-bubble[aria-pressed="true"] {
  background: var(--pine-deep);
  color: #FFFFFF;
  border-color: var(--ink-border);
  box-shadow: 2px 2px 0 var(--ink-border);
}
.cal5-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.cal5-selected-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--pine-deep);
  background: var(--pine-soft);
  font-size: 0.9rem;
}
.cal5-empty-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-alt, #F6F0E2);
}
.cal-export-box {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-alt, #F6F0E2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cal-export-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine-deep);
}
.cal-export-actions {
  margin-top: 0;
}
.cal-add-btn {
  text-decoration: none;
  background: var(--surface);
  color: var(--pine-deep);
  border: 2px solid var(--ink-border);
  box-shadow: 2px 2px 0 var(--ink-border);
  font-weight: 800;
}
.cal-add-btn:hover {
  background: var(--butter);
}

/* ---------------------------------------------------------------- Mark complete modal sheet */

.complete-sheet-section {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.complete-sub-box {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sms-tpl-details {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
}
.sms-tpl-details > summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--pine-deep);
}
.sms-tpl-details[open] > summary {
  margin-bottom: 8px;
}
.price-adj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.price-adj-chips .chip-toggle {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- Recurring & Groomer Personal Settings */

.topbar-settings-btn {
  background: var(--surface);
  color: var(--pine-deep);
  border: 1.5px solid var(--ink-border);
  cursor: pointer;
}
.topbar-settings-btn:hover {
  background: var(--butter);
}

.tag-recurring {
  background: var(--pine-soft);
  color: var(--pine-deep);
  border: 1px solid var(--pine-accent);
  font-weight: 800;
}
.tag-conflict {
  background: var(--warn-soft);
  color: #7A4B00;
  border: 1px solid var(--marigold);
  font-weight: 800;
}
.cal-conflict-link {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: #5C3700;
  border: 1.5px solid var(--ink-border);
  font-weight: 800;
  text-decoration: none;
}
.cal-visit-conflict {
  box-shadow: inset 0 0 0 1.5px var(--marigold);
}

.conflict-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 8px 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-small);
  border: 2px solid var(--ink-border);
  background: var(--warn-soft);
  box-shadow: var(--pop-sm);
}
.conflict-banner-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 260px;
}
.conflict-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-border);
  background: var(--marigold);
  color: #2B2A26;
  font-weight: 900;
  font-size: 0.85rem;
}
.conflict-reason {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--warn-soft);
  border-left: 3px solid var(--marigold);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sheet-conflict-box {
  margin: 8px 0;
}
.conflict-inline-note {
  color: #8A4F00;
  font-weight: 700;
}

.recurring-setup-box {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recurring-preview-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recurring-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.recurring-preview-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 210px;
  overflow-y: auto;
}
.recurring-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.recurring-preview-row.has-conflict {
  background: var(--warn-soft);
  border-color: var(--marigold);
}
.recurring-upcoming-list {
  margin: 8px 0;
}
.pref-choice {
  align-items: flex-start;
}

@media (min-width: 700px) {
  .app { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
