:root {
  --ink: #1a2430;
  --ink-soft: #3d4d5c;
  --muted: #6b7a88;
  --paper: rgba(255, 255, 255, 0.94);
  --line: rgba(43, 86, 114, 0.16);
  --navy: #2b5672;
  --navy-deep: #1f4056;
  --magenta: #be2077;
  --magenta-deep: #9a1860;
  --teal: #009490;
  --blush: #fff1f7;
  --mist: #eef5f8;
  --shadow: 0 22px 48px rgba(31, 64, 86, 0.16);
  --radius: 26px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --sticky-cta-gap: max(0.75rem, var(--safe-bottom));
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: #d9e5ec;
  -webkit-tap-highlight-color: transparent;
  overflow-anchor: none;
}

body {
  min-height: 100dvh;
  position: relative;
  /* clip avoids creating a scroll container that breaks position:sticky on phones */
  overflow-x: clip;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.72) 0%, rgba(238, 245, 248, 0.78) 42%, rgba(255, 241, 247, 0.7) 100%),
    url("/static/brand/spa-pattern.jpg") center / cover no-repeat;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(0, 148, 144, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(190, 32, 119, 0.1), transparent 50%);
  pointer-events: none;
}

.stage {
  max-width: 820px;
  margin: 0 auto;
  padding:
    max(clamp(1.25rem, 4vw, 2.5rem), calc(var(--safe-top) + 0.65rem))
    max(1.25rem, calc(var(--safe-right) + 0.65rem))
    max(2.5rem, calc(var(--safe-bottom) + 1.25rem))
    max(1.25rem, calc(var(--safe-left) + 0.65rem));
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}

.screen,
.panel {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  backdrop-filter: blur(8px);
  animation: panel-in 0.4s ease both;
}

.hidden {
  display: none !important;
}

.stage:has(#searchView:not(.hidden)) {
  height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
}

#searchView.screen {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.brand-lockup {
  margin-bottom: 1.1rem;
  animation: rise-in 0.55s ease both;
}

.brand-lockup.compact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
}

.brand-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(43, 86, 114, 0.14));
}

.brand-logo-sm {
  width: min(170px, 48vw);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--navy);
}

.brand-sm {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  line-height: 1.05;
}

.brand-tag {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  font-size: clamp(1.9rem, 5vw, 2.55rem);
  color: var(--ink);
}

h2 {
  margin: 0;
}

.lede {
  margin: 0 0 1.55rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  max-width: 30rem;
  line-height: 1.5;
  font-weight: 400;
}

.welcome-screen,
.done-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: min(78dvh, 760px);
}

.welcome-screen .brand-lockup,
.done-screen .brand-lockup {
  display: flex;
  justify-content: center;
  width: 100%;
}

.welcome-screen .brand-logo,
.done-screen .brand-logo {
  margin-left: auto;
  margin-right: auto;
}

.welcome-screen > h1,
.welcome-screen > .lede,
.welcome-screen > .choice-grid,
.done-screen > h1,
.done-screen > .lede,
.done-screen > .btn {
  width: 100%;
}

.welcome-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.welcome-lede {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.welcome-line-en {
  display: block;
}

.welcome-line-es {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.welcome-title .welcome-line-es {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.55em;
  line-height: 1.25;
}

.welcome-lede .welcome-line-es {
  font-size: 0.9em;
}

.welcome-form {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.extra-dogs {
  display: grid;
  gap: 0.85rem;
}

.extra-dog-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
}

.extra-dog-row > span {
  grid-column: 1 / -1;
}

.add-dog-btn {
  justify-self: start;
}

.family-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}

.family-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 2px solid rgba(43, 86, 114, 0.16);
  border-radius: 16px;
  background: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.family-choice input {
  width: 1.25rem;
  height: 1.25rem;
}

.family-meta {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.extra-pet-profiles {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.field em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid rgba(43, 86, 114, 0.18);
  background: #fff;
  border-radius: 16px;
  padding: 1.05rem 1.1rem;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  min-height: 64px;
  box-sizing: border-box;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 1.35rem) calc(50% - 0.15rem),
    calc(100% - 0.95rem) calc(50% - 0.15rem);
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field select option {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 148, 144, 0.14);
}

.field input[type="date"],
.field input[type="time"],
.field input[type="datetime-local"] {
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #d12986 0%, var(--magenta) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(190, 32, 119, 0.28);
}

.btn-primary:hover {
  background: var(--magenta-deep);
}

.btn-secondary {
  background: #fff;
  color: var(--navy-deep);
  border-color: var(--line);
}

.btn-danger {
  background: #fff;
  color: var(--magenta-deep);
  border-color: rgba(190, 32, 119, 0.35);
}

.btn-danger:hover {
  background: var(--blush);
}

.btn-xl {
  min-height: 64px;
  padding: 1rem 1.4rem;
  font-size: 1.15rem;
  margin-top: 0.35rem;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pet-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.85rem;
}

.pet-step {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.pet-step.is-current {
  background: var(--navy);
  color: #fff;
}

.pet-step.is-done {
  background: #d7efe8;
  color: var(--teal);
}

.pet-step-sep {
  color: var(--muted);
  font-weight: 600;
}

.pet-stepper.pet-assign {
  display: block;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem 1rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.pet-assign-legend {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.pet-assign-hint {
  margin: 0.25rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pet-assign-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pet-assign-btn {
  flex: 1 1 9rem;
  min-height: 4.3rem;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.pet-assign-btn.is-current {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.pet-assign-btn.is-done {
  border-color: var(--teal);
  background: #d7efe8;
}

.pet-assign-name {
  display: block;
  font-weight: 700;
}

.pet-assign-svc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  opacity: 0.88;
}

.service-extras {
  margin-top: 1.15rem;
}

.service-extras[hidden],
.service-extras.hidden {
  display: none !important;
}

.service-extras-lede {
  margin: 0 0 0.65rem;
  color: var(--teal);
  font-weight: 600;
}

.whoami {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(58vw, 16rem);
}

.back-btn {
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.45rem 0;
  cursor: pointer;
  min-height: 44px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 2px solid rgba(43, 86, 114, 0.2);
  border-radius: 18px;
  padding: 0.35rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-shell:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 148, 144, 0.14);
}

.search-icon {
  width: 1.15rem;
  height: 1.15rem;
  border: 2.5px solid var(--navy);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 0.55rem;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  right: -0.35rem;
  bottom: -0.15rem;
  transform: rotate(45deg);
}

#breedSearch {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 500;
  padding: 1.05rem 0.2rem;
  min-height: 64px;
  color: var(--ink);
}

.breed-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0 0 0.25rem;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-height: 10rem;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.breed-list li button,
.service-option {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.breed-list li button {
  border: 1px solid transparent;
  background: var(--mist);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  min-height: 76px;
  color: var(--ink);
}

.breed-list li button:hover,
.breed-list li button:focus-visible,
.service-option:hover,
.service-option:focus-visible {
  background: #fff;
  border-color: rgba(0, 148, 144, 0.35);
  outline: none;
}

.breed-list li button:active,
.service-option:active {
  transform: scale(0.985);
}

.breed-name,
.service-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.breed-meta,
.service-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.empty-state {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.breed-hero {
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.coat {
  margin: 0.4rem 0 0.7rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.02rem;
}

.notes {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 1.05rem;
  max-width: 40rem;
}

.coat-emph {
  color: var(--magenta);
  font-weight: 700;
}

.coat-emph-neg {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  text-decoration-color: #111;
}

.options-heading {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--magenta);
  font-family: var(--font-body);
  font-weight: 700;
}

.service-list {
  display: grid;
  gap: 0.8rem;
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.look-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 220px;
}

.look-card:hover,
.look-card:focus-visible {
  border-color: var(--magenta);
  box-shadow: 0 10px 24px rgba(31, 64, 86, 0.12);
  outline: none;
}

.look-card:active {
  transform: scale(0.985);
}

.look-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--mist);
}

.look-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0.95rem 1rem;
}

.look-card-name {
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1.05rem;
  line-height: 1.25;
}

.look-card-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.text-link {
  margin-top: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 44px;
}

.inline-text-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--magenta);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.inline-text-link:hover,
.inline-text-link:focus-visible {
  color: var(--navy);
  outline: none;
}

.cut-hint {
  margin-top: -0.55rem;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .look-grid {
    grid-template-columns: 1fr;
  }
}

.service-option {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: stretch;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  min-height: 118px;
  text-align: left;
  overflow: hidden;
}

.service-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: #eef5f8;
  align-self: center;
}

.service-photo-fallback {
  display: block;
  background: linear-gradient(145deg, #e8eef2, #f4f7f9);
}

.service-body {
  min-width: 0;
  padding: 0.25rem 0;
}

@media (max-width: 520px) {
  .service-option {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.65rem 0.8rem 0.65rem 0.65rem;
  }

  .service-photo {
    width: 88px;
    height: 88px;
    border-radius: 12px;
  }
}

.service-option:hover,
.service-option:focus-visible {
  border-color: var(--magenta);
  background: var(--blush);
}

.service-option.selected {
  border-color: var(--magenta);
  background: var(--blush);
  box-shadow: inset 0 0 0 1px rgba(190, 32, 119, 0.25);
}

.service-option.included-option {
  border-color: rgba(0, 148, 144, 0.35);
  background: linear-gradient(180deg, #f3fbfa 0%, #ffffff 55%);
}

.service-option.included-option.selected {
  border-color: var(--teal);
  background: #e8f7f6;
  box-shadow: inset 0 0 0 1px rgba(0, 148, 144, 0.28);
}

.service-group-title {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy, #2b5672);
}

.service-option.is-locked,
.service-option.included-option {
  cursor: default;
  opacity: 0.78;
}

.service-option.is-locked .service-check,
.service-option.included-option .service-check {
  visibility: hidden;
}

.included-badge {
  margin: 0.55rem 0 0;
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 148, 144, 0.12);
  color: #066663;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
}

.service-check {
  position: relative;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid rgba(43, 86, 114, 0.25);
  background: #fff;
  align-self: center;
}

.service-option.selected .service-check {
  border-color: var(--magenta);
  background: var(--magenta);
  box-shadow: inset 0 0 0 2px #fff;
}

.service-option.selected .service-check::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.12rem;
  width: 0.35rem;
  height: 0.65rem;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.confirm-bar {
  position: sticky;
  bottom: var(--sticky-cta-gap);
  z-index: 8;
  margin-top: 1.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 64, 86, 0.14);
  display: none;
  gap: 0.65rem;
  backdrop-filter: blur(10px);
}

.confirm-bar.confirm-bar-visible {
  display: grid;
}

.confirm-count {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

.confirm-bar .btn-xl {
  margin-top: 0;
}

.confirm-bar .btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.service-top {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: center;
}

.service-top .service-name {
  flex: 1;
  min-width: 0;
}

.service-top .service-price {
  margin-left: auto;
}

.service-price {
  font-weight: 700;
  color: var(--magenta);
  font-size: 1.12rem;
  white-space: nowrap;
}

.service-desc {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  line-height: 1.4;
  font-size: 1.02rem;
}

.service-cut-examples {
  margin: 0.35rem 0 0;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.done-note {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, calc(var(--safe-bottom) + 1rem));
  transform: translateX(-50%) translateY(120%);
  background: var(--navy-deep);
  color: #fff;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 20;
  max-width: min(92vw, 520px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Admin */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem 0.4rem;
  max-width: 980px;
  margin: 0 auto;
}

.brand-block {
  flex: 1;
  min-width: 0;
}

.admin-link {
  color: var(--navy-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.admin-stage {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem 2.5rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.export-actions .btn {
  min-height: 48px;
  padding: 0.75rem 1.15rem;
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.col-actions {
  width: 52px;
  text-align: right;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #fde7f2;
  color: var(--magenta-deep);
  outline: none;
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.log-table th,
.log-table td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}

.log-table th {
  background: var(--mist);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.log-table tr:last-child td {
  border-bottom: 0;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem !important;
}

.event-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: #eef2f0;
}

.event-search {
  background: #e7f1f8;
  color: var(--navy-deep);
}

.event-breed_view {
  background: #e6f7f6;
  color: #066663;
}

.event-service_selected {
  background: #fde7f2;
  color: var(--magenta-deep);
}

.event-selection_confirmed {
  background: #fde7f2;
  color: var(--magenta-deep);
}

.event-look_view {
  background: #e6f7f6;
  color: #066663;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-link.queue-lang-link {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  text-transform: lowercase;
}

.queue-stage {
  max-width: 720px;
}

.queue-meta {
  text-align: right;
}

.queue-count {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.queue-pulse {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.queue-pulse-hot {
  color: var(--magenta-deep);
  font-weight: 700;
}

.queue-list {
  display: grid;
  gap: 0.9rem;
}

.queue-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.queue-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 1.1rem 1.15rem 1.15rem;
  animation: rise-in 0.25s ease;
}

.queue-card-new {
  border-color: rgba(190, 32, 119, 0.45);
  box-shadow: 0 0 0 3px rgba(190, 32, 119, 0.12);
}

.queue-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.queue-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy-deep);
  line-height: 1.2;
}

.queue-dog {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal);
}

.queue-look {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.queue-time {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.queue-services {
  margin: 0.85rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.45;
}

.queue-services li {
  margin: 0.2rem 0;
}

.queue-notes {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(43, 86, 114, 0.06);
  border: 1px solid rgba(43, 86, 114, 0.12);
}

.queue-notes-employee {
  background: rgba(190, 32, 119, 0.07);
  border-color: rgba(190, 32, 119, 0.18);
}

.queue-notes-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 0.3rem;
}

.queue-notes p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.queue-done-btn {
  width: 100%;
  min-height: 48px;
}

.match-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.match-actions {
  display: grid;
  gap: 0.65rem;
  margin: 0.35rem 0 1rem;
}

.match-actions .btn-xl {
  width: 100%;
  margin: 0;
}

#retypeNamesBtn {
  width: 100%;
}

#continueAsNewBtn {
  width: 100%;
}

.match-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.match-card:hover,
.match-card:focus-visible {
  border-color: var(--teal);
  background: #e8f7f6;
  outline: none;
}

.match-owner {
  display: block;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1.05rem;
}

.match-dog {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 600;
}

.match-arrow {
  color: var(--teal);
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.choice-grid-sm {
  margin-top: 0.75rem;
}

.choice-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.1rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  min-height: 110px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  border-color: var(--magenta);
  background: var(--blush);
  outline: none;
}

.choice-card.selected {
  border-color: var(--teal);
  background: #e8f7f6;
  box-shadow: inset 0 0 0 1px rgba(0, 148, 144, 0.28);
}

.choice-title {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-deep);
  line-height: 1.25;
}

.choice-sub {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-box {
  margin: 0.85rem 0 1rem;
  padding: 1rem 1.1rem;
  max-height: 42vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.98rem;
  color: var(--ink);
}

.legal-box-sm {
  max-height: 22vh;
}

.check-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.85rem 0 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.35;
}

.check-row input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.sign-block {
  margin: 0.5rem 0 1.25rem;
}

.sign-label {
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: var(--muted);
}

.sign-pad {
  width: 100%;
  max-width: 100%;
  height: 160px;
  border: 1px dashed rgba(43, 86, 114, 0.35);
  border-radius: 14px;
  background: #fff;
  touch-action: none;
  display: block;
}

.sticky-cta {
  position: sticky;
  bottom: var(--sticky-cta-gap);
  z-index: 8;
  margin-top: 1.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 64, 86, 0.14);
  backdrop-filter: blur(10px);
}

@media (max-width: 700px) {
  .screen:not(.hidden) > .sticky-cta,
  .screen:not(.hidden) > .confirm-bar.confirm-bar-visible {
    position: fixed;
    left: max(0.85rem, calc(var(--safe-left) + 0.5rem));
    right: max(0.85rem, calc(var(--safe-right) + 0.5rem));
    bottom: var(--sticky-cta-gap);
    margin-top: 0;
    max-width: none;
  }

  .screen:has(> .sticky-cta),
  .screen:has(> .confirm-bar) {
    padding-bottom: calc(6.5rem + var(--safe-bottom));
  }
}

.sticky-cta .btn-xl {
  width: 100%;
  margin-top: 0;
}

.sticky-cta .btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.policy-card {
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.policy-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--navy-deep);
}

.lede.tight {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

#termsContinueBtn,
#demattContinueBtn,
#policiesContinueBtn,
#confirmBookBtn,
#confirmBoardBtn,
#continueBoardDates {
  width: 100%;
}

@media (max-width: 640px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .legal-box {
    max-height: 34vh;
  }

  .legal-box-sm {
    max-height: 18vh;
  }

  .sign-pad {
    height: 132px;
  }

  .welcome-screen,
  .done-screen {
    min-height: min(68dvh, 640px);
    justify-content: flex-start;
    padding-top: 0.35rem;
  }

  .welcome-title {
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .stage,
  .admin-stage {
    padding-inline: max(0.85rem, calc(var(--safe-left) + 0.5rem)) max(0.85rem, calc(var(--safe-right) + 0.5rem));
  }

  .screen,
  .panel {
    padding: 1.15rem 1.05rem calc(1.15rem + 0.25rem);
    border-radius: 20px;
  }

  .desk-topbar,
  .desk-stage,
  .admin-stage {
    padding-left: max(0.85rem, calc(var(--safe-left) + 0.5rem));
    padding-right: max(0.85rem, calc(var(--safe-right) + 0.5rem));
  }
}

/* Booking schedule extras */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}
.slot {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.slot.selected,
.slot:hover {
  border-color: var(--teal);
  background: var(--blush);
  font-weight: 600;
}
.notice-booking {
  background: #e8f7f2;
  color: #1f7a4c;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin: 0.85rem 0 1rem;
  line-height: 1.4;
}
.desk-link { margin-top: 1.25rem; font-size: 0.95rem; }

/* —— Staff desk day board —— */
.desk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.35rem;
}

.desk-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.desk-logout-form {
  margin: 0;
}

.desk-logout-btn {
  font: inherit;
  cursor: pointer;
}

.desk-stage {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem 2.5rem;
}

.desk-stage-dash {
  max-width: 980px;
}

.desk-topbar-dash {
  max-width: 980px;
}

.dash-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.35rem 0 1.1rem;
}

.dash-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  text-align: center;
}

.dash-action:hover,
.dash-action:focus-visible {
  border-color: var(--magenta);
  background: var(--blush);
  outline: none;
}

.dash-action-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.dash-occ-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.dash-occ {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dash-occ th,
.dash-occ td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.dash-occ thead th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.dash-occ tbody th {
  font-weight: 700;
  color: var(--navy-deep);
}

.dash-occ .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 4.2rem;
}

.dash-occ-total {
  font-weight: 800;
  color: var(--teal);
}

.dash-occ tbody tr:last-child th,
.dash-occ tbody tr:last-child td {
  border-bottom: 0;
}

.dash-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin: 1rem 0 0.85rem;
  padding-bottom: 0.15rem;
}

.dash-tab {
  flex: 1 0 7.2rem;
  min-height: 64px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.55rem 0.45rem;
  cursor: pointer;
  text-align: center;
}

.dash-tab span {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.dash-tab.tab-notices { background: #d4538a; }
.dash-tab.tab-expected { background: #2aa3a0; }
.dash-tab.tab-going { background: #3b7bd4; }
.dash-tab.tab-in { background: #3d8f4a; }
.dash-tab.tab-unconfirmed { background: #e0892c; }
.dash-tab.tab-requested { background: #7a5ad4; }

.dash-tab.is-active {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85), 0 6px 16px rgba(20, 30, 50, 0.18);
  transform: translateY(-2px);
}

.dash-search {
  display: block;
  margin: 0 0 1rem;
}

.dash-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font: inherit;
}

.dash-pane[hidden] {
  display: none;
}

.dash-pane-title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.hub-group {
  margin: 0 0 1.6rem;
}

.hub-group h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 6.2rem;
}

.hub-card:hover,
.hub-card:focus-visible {
  border-color: var(--magenta);
  background: var(--blush);
  outline: none;
}

.hub-card strong {
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.hub-card span {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 980px) {
  .dash-actions,
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.desk-dash-hint {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.desk-recurring-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.85rem;
}

.desk-state-btn.desk-approve {
  border-color: var(--teal);
  background: #e8f7f6;
  color: #066663;
}

.desk-state-btn.desk-decline {
  border-color: rgba(190, 32, 119, 0.35);
}

.desk-stage-narrow {
  max-width: 520px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.desk-panel {
  width: 100%;
}

.desk-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.desk-header h1 {
  margin: 0.15rem 0 0.35rem;
}

.desk-day-label {
  margin: 0;
}

.desk-day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.desk-day-nav .btn {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  margin: 0;
}

.desk-count {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.desk-list {
  display: grid;
  gap: 0.9rem;
}

.desk-empty {
  margin: 0;
  padding: 2rem 1.1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.desk-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 1.1rem 1.15rem 1.05rem;
  animation: panel-in 0.28s ease both;
}

.placecard-notes-body {
  white-space: pre-wrap;
}

.placecard-notes-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.placecard-floor {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.placecard-subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--navy-deep);
}

.placecard-hint {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.placecard-note-form,
.placecard-add-service {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.placecard-note-form > .btn,
.placecard-add-grid > .btn {
  align-self: start;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
}

.placecard-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 3.5rem;
  resize: vertical;
}

.placecard-addons {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.placecard-line {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) auto auto;
  gap: 0.4rem 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.placecard-line-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-deep);
}

.placecard-price {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  font-size: 0.85rem;
}

.placecard-price input,
.placecard-price-input {
  width: 5.5rem;
  min-height: 2.2rem;
}

.placecard-add-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 7rem;
  gap: 0.55rem 0.65rem;
  align-items: end;
}

.placecard-field-wide {
  grid-column: 1 / -1;
}

.placecard-add-grid .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 720px) {
  .placecard-line {
    grid-template-columns: 1fr 1fr;
  }

  .placecard-line-name {
    grid-column: 1 / -1;
  }

  .placecard-add-grid {
    grid-template-columns: 1fr;
  }
}

.desk-card.state-in_service {
  border-color: rgba(0, 148, 144, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 148, 144, 0.12);
}

.desk-card.state-checked_in {
  border-color: rgba(190, 32, 119, 0.35);
}

.desk-card.state-completed {
  opacity: 0.78;
}

.desk-card.state-completed.queue-card-done {
  opacity: 1;
}

.queue-completed-section {
  margin-top: 1.25rem;
}

.queue-done-hint {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--muted, #5a6570);
}

.placecard-line-readonly {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.placecard-line-readonly:last-child {
  border-bottom: none;
}

.placecard-line-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.placecard-line-note {
  flex: 1 1 100%;
  font-size: 0.88rem;
  color: var(--muted, #5a6570);
}

.desk-card.state-requested {
  border-color: rgba(212, 146, 46, 0.55);
  box-shadow: inset 0 0 0 1px rgba(212, 146, 46, 0.12);
}

.desk-card.state-unconfirmed {
  border-color: rgba(90, 110, 180, 0.45);
  box-shadow: inset 0 0 0 1px rgba(90, 110, 180, 0.12);
}

.desk-card.state-cancelled,
.desk-card.state-no_show {
  opacity: 0.72;
  background: #f7f9fb;
}

.desk-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
}

.desk-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-deep);
  line-height: 1.2;
  font-weight: 700;
}

.desk-dog {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal);
}

.desk-service {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.35;
}

.desk-groomer {
  margin: 0.35rem 0 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.98rem;
}

.desk-groomer-tbd {
  color: var(--muted);
  font-weight: 600;
}

.desk-day-contact {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.desk-day-contact a {
  color: inherit;
}

.desk-pet-profile {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.35;
}

.desk-pet-alert {
  color: var(--magenta-deep);
}

.profile-gender,
.profile-conditions,
.profile-dob,
.profile-species,
.phone-pickers {
  border: 0;
  margin: 0.75rem 0;
  padding: 0;
}

.profile-gender legend,
.profile-conditions legend,
.profile-dob legend,
.profile-species legend,
.phone-pickers legend {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cat-service-notices {
  margin: 0.75rem 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.cat-notice {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--magenta);
  background: color-mix(in srgb, var(--magenta) 8%, #fff);
  color: var(--navy-deep);
  font-size: 0.92rem;
  line-height: 1.35;
}


.family-pending-row {
  padding: 0.65rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--magenta) 25%, #ddd);
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--magenta) 6%, #fff);
  font-size: 0.95rem;
}

#addNewFurBabyBtn {
  margin-bottom: 0.65rem;
}

.email-field .email-assist-host {
  margin-top: 0.45rem;
}

.email-assist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.email-assist-chip {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--magenta) 35%, #ccc);
  background: #fff;
  color: var(--navy-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  cursor: pointer;
  line-height: 1.1;
}

.email-assist-chip:hover,
.email-assist-chip:focus-visible {
  border-color: var(--magenta);
  color: var(--magenta-deep);
  outline: none;
}

.email-assist-com {
  border-color: var(--magenta);
  color: var(--magenta-deep);
}

.dob-hint {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.dob-pickers {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1.15fr) minmax(8rem, 1.45fr) minmax(5.5rem, 0.9fr);
  gap: 0.55rem;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.7fr) minmax(9rem, 1.3fr);
  gap: 0.55rem;
}

.note-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.desk-queue-mini {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.desk-queue-mini:hover,
.desk-queue-mini:focus-visible {
  text-decoration: underline;
}

.desk-groomer-form {
  margin: 0.65rem 0 0.85rem;
}

.desk-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.55rem 0.85rem;
}

.desk-team-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.desk-groomer-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.desk-groomer-select {
  min-width: 11rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.desk-queue-hint {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(0, 148, 144, 0.1);
  border: 1px solid rgba(0, 148, 144, 0.28);
  color: var(--navy-deep);
  font-weight: 600;
}

.desk-queue-hint a {
  margin-left: 0.35rem;
  color: var(--teal);
  font-weight: 700;
}

.quiet-inline {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.92em;
}

.groomer-dir-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.groomer-dir-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.groomer-dir-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
}

.groomer-dir-link:hover,
.groomer-dir-link:focus-visible {
  color: var(--teal);
}

.groomer-dir-slug {
  font-size: 0.85rem;
  color: var(--muted);
}

.lineup-lede {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.lineup-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.lineup-pos {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-deep);
  min-width: 2.25rem;
}

.lineup-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lineup-moves form {
  margin: 0;
}

.lineup-move-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.lineup-available {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.lineup-available-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-deep);
}

.lineup-claim-form {
  margin-top: 0.9rem;
}

.lineup-claim-card h3.desk-name {
  margin: 0;
}

.desk-time {
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--magenta-deep);
  white-space: nowrap;
}

.desk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.desk-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--mist);
  color: var(--navy-deep);
  border: 1px solid transparent;
}

.desk-tag.quiet {
  background: rgba(43, 86, 114, 0.06);
  color: var(--muted);
  font-weight: 600;
}

.desk-tag-promo {
  background: #fff4e8;
  color: #7a3e00;
  border-color: #f0c48a;
}

.desk-tag.channel-online {
  background: rgba(0, 148, 144, 0.12);
  color: #066663;
}

.desk-tag.channel-gingr {
  background: rgba(190, 32, 119, 0.1);
  color: var(--magenta-deep);
}

.desk-tag.channel-phone,
.desk-tag.channel-desk {
  background: rgba(43, 86, 114, 0.1);
  color: var(--navy-deep);
}

.desk-tag.state-tag.state-confirmed {
  background: rgba(43, 86, 114, 0.1);
}

.desk-tag.state-tag.state-requested {
  background: rgba(212, 146, 46, 0.16);
  color: #8a5a12;
}

.desk-tag.state-tag.state-unconfirmed {
  background: rgba(90, 110, 180, 0.14);
  color: #3d4a8a;
}

.desk-tag.state-tag.state-checked_in {
  background: rgba(190, 32, 119, 0.12);
  color: var(--magenta-deep);
}

.desk-tag.state-tag.state-in_service {
  background: rgba(0, 148, 144, 0.14);
  color: #066663;
}

.desk-tag.state-tag.state-completed {
  background: #e8f7f2;
  color: #1f7a4c;
}

.desk-tag.state-tag.state-no_show,
.desk-tag.state-tag.state-cancelled {
  background: #f0f2f4;
  color: #5a6570;
}

.desk-notes {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(190, 32, 119, 0.06);
  border: 1px solid rgba(190, 32, 119, 0.14);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.desk-notes p {
  margin: 0.25rem 0;
}

.desk-note-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.desk-note-stack .queue-notes {
  margin: 0;
}

.desk-note-stack .queue-notes p {
  white-space: pre-wrap;
  max-height: 12rem;
  overflow: auto;
}

.desk-booking-notes {
  background: rgba(43, 86, 114, 0.05);
  border-color: rgba(43, 86, 114, 0.14);
}

.desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.desk-actions form {
  margin: 0;
}

.desk-state-btn {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.desk-state-btn:hover,
.desk-state-btn:focus-visible {
  border-color: var(--magenta);
  background: var(--blush);
  color: var(--navy-deep);
  outline: none;
}

.desk-state-btn.is-current {
  border-color: var(--teal);
  background: #e8f7f6;
  color: #066663;
  box-shadow: inset 0 0 0 1px rgba(0, 148, 144, 0.2);
  cursor: default;
}

a.desk-checkout-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-color: var(--magenta);
  background: rgba(190, 32, 119, 0.08);
  color: var(--navy-deep);
  font-weight: 700;
}

a.desk-checkout-link:hover,
a.desk-checkout-link:focus-visible {
  background: var(--blush);
}

.desk-tag.call-needed {
  background: #fff1e6;
  color: #9a4a00;
  border: 1px solid rgba(154, 74, 0, 0.25);
}

.desk-tag.call-ok {
  background: #e8f7f2;
  color: #1f7a4c;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desk-stage-checkout .desk-panel {
  max-width: 52rem;
}

.checkout-total-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(0, 148, 144, 0.08);
  border: 1px solid rgba(0, 148, 144, 0.22);
}

.checkout-total-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkout-total-value {
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--navy-deep);
}

.checkout-deposit-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.checkout-invoice-link {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
}

.invoice-summary {
  margin: 1.15rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(43, 86, 114, 0.16);
  background: #fff;
}

.invoice-summary-title {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.invoice-summary-rows {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.invoice-summary-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

.invoice-summary-rows dt {
  font-weight: 600;
}

.invoice-summary-rows dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.invoice-tax-row {
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
  color: #7a3e00;
}

.invoice-total-row {
  padding-top: 0.35rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.invoice-untaxed {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.invoice-tax-note {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.desk-tag-tax {
  background: #fff4e8;
  color: #7a3e00;
  border-color: #f0c48a;
}

.desk-tag-tip {
  background: #e8f7f2;
  color: #1f7a4c;
}

.checkout-line-tax {
  background: #fffaf3;
}

.checkout-line-tip {
  background: #f4fbf8;
}

.checkout-tip {
  border-style: solid;
  border-color: rgba(31, 122, 76, 0.28);
  background: rgba(31, 122, 76, 0.05);
}

.invoice-sheet {
  max-width: 40rem;
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.invoice-brand .brand-logo {
  width: 72px;
  height: auto;
}

.invoice-who p {
  margin: 0.2rem 0;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.15rem 0;
}

.invoice-table th,
.invoice-table td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.invoice-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.invoice-table tr.is-tax {
  background: #fff8ee;
  font-weight: 700;
}

.invoice-sheet-totals {
  margin-top: 0.5rem;
}

@media print {
  .no-print,
  .atmosphere,
  .desk-topbar {
    display: none !important;
  }

  .desk-body,
  .desk-stage-invoice {
    background: #fff;
  }

  .invoice-sheet {
    box-shadow: none;
    border: 0;
  }
}

.checkout-steps {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem 0.9rem 1.75rem;
  border-radius: 14px;
  background: rgba(43, 86, 114, 0.05);
  border: 1px solid rgba(43, 86, 114, 0.12);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.checkout-steps li + li {
  margin-top: 0.35rem;
}

.checkout-notes-block {
  margin-top: 1.25rem;
}

.checkout-section-title {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.2rem;
  color: var(--navy-deep);
}

.checkout-section-lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.checkout-lines {
  display: grid;
  gap: 0.75rem;
}

.checkout-line {
  display: grid;
  grid-template-columns: 1.4fr 7.5rem 1fr auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.checkout-line-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  align-self: center;
}

.checkout-line-name {
  font-weight: 700;
  color: var(--navy-deep);
}

.checkout-price-label,
.checkout-note-label,
.checkout-addon label,
.checkout-log-label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.checkout-price-input,
.checkout-line input[type="text"],
.checkout-addon input,
.checkout-addon select,
.checkout-log-label textarea {
  font: inherit;
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.checkout-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.checkout-remove {
  color: #8a1248;
}

.checkout-addon {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(190, 32, 119, 0.35);
  background: rgba(190, 32, 119, 0.04);
}

.checkout-addon-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.checkout-addon-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 7rem 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.checkout-notify {
  display: grid;
  gap: 1rem;
}

.checkout-checks {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.checkout-check {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.checkout-check input {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
}

.checkout-check span {
  display: grid;
  gap: 0.15rem;
}

.checkout-check strong {
  color: var(--navy-deep);
}

.checkout-check em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.checkout-check.is-on {
  border-color: rgba(154, 74, 0, 0.35);
  background: #fff8f0;
}

.checkout-checks-confirm .checkout-check.is-on {
  border-color: rgba(31, 122, 76, 0.35);
  background: #f0faf5;
}

.checkout-warn {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: #fff1e6;
  color: #9a4a00;
  font-weight: 600;
}

.checkout-finish {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .checkout-line,
  .checkout-addon-grid {
    grid-template-columns: 1fr;
  }

  .checkout-total-pill {
    align-items: flex-start;
    margin-top: 0.75rem;
  }
}

.desk-login-panel .brand-lockup {
  margin-bottom: 0.5rem;
}

.desk-login-form {
  margin-top: 0.5rem;
}

.desk-error {
  background: #ffe8ef;
  color: #8a1248;
}

.desk-back {
  margin: 1.25rem 0 0;
  text-align: center;
}

.desk-back a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.desk-back a:hover {
  color: var(--magenta);
}

.desk-filter-row {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.9fr;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.desk-booking-form {
  display: grid;
  gap: 0.15rem;
}

@media (max-width: 640px) {
  .desk-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .desk-card-top {
    flex-direction: column;
  }

  .desk-time {
    font-size: 1.15rem;
  }

  .desk-filter-row {
    grid-template-columns: 1fr;
  }
}

/* Desk booking SPA (same flow as kiosk/public, legal steps skipped) */
body.desk-book .stage {
  padding-top: 0.5rem;
}

body.desk-book .desk-topbar {
  position: relative;
  z-index: 2;
}

body.desk-book #doneView .btn-secondary {
  margin-top: 0.65rem;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.desk-deposit-methods {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.desk-deposit-methods legend {
  padding: 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Boarding suites */
.cutoff-note {
  margin: 0.35rem 0 1rem;
  max-width: 40rem;
  font-size: 0.98rem;
}

.cutoff-discretion {
  margin: 0.35rem 0 1rem;
}

.boarding-jump {
  margin: 0.35rem 0 1rem;
}

.boarding-jump .inline-text-link {
  font-size: 1.3rem;
  line-height: 1.35;
}

.boarding-caption {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 1.35rem;
}

.suite-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.suite-card:hover,
.suite-card:focus-visible {
  border-color: var(--teal);
  outline: none;
  transform: translateY(-1px);
}

.suite-card.selected {
  border-color: var(--teal);
  background: #e8f7f6;
  box-shadow: inset 0 0 0 1px rgba(0, 148, 144, 0.25);
}

.suite-label {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.suite-size {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal);
}

.suite-blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.boarding-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.boarding-times {
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .suite-grid,
  .boarding-dates {
    grid-template-columns: 1fr;
  }
}

/* Owner calendar */
.desk-stage-calendar {
  max-width: min(1180px, 100%);
  width: 100%;
  box-sizing: border-box;
}

.calendar-panel {
  overflow-x: clip;
  max-width: 100%;
}

.calendar-header {
  align-items: flex-end;
  gap: 1rem;
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

#downloadWeekPdfBtn {
  min-height: 48px;
  align-self: flex-end;
}

#downloadNextWeekIcsBtn {
  min-height: 48px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
}

.team-ics-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
  align-self: center;
}

.team-cal-login {
  max-width: 22rem;
  margin: 0 0 1.5rem;
}

.timeclock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.timesheet-wrap {
  overflow-x: auto;
}

.timesheet-table {
  width: 100%;
  border-collapse: collapse;
}

.timesheet-table th,
.timesheet-table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.timesheet-totals-head {
  margin-top: 1.5rem;
}

.timesheet-totals {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin: 0 0 1.1rem;
}

.admin-filter .field {
  min-width: 10rem;
  margin: 0;
}

.report-filter {
  align-items: flex-end;
}

.report-range {
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
  margin: 0;
  padding: 0;
  border: 0;
}

.report-range legend {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-deep);
  margin-bottom: 0.2rem;
}

.report-range-selected {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
}

.report-date-field input[type="date"] {
  font: inherit;
  font-weight: 700;
  color: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.2rem 0.45rem;
  background: #fff;
}

.report-range-bounds {
  display: flex;
  justify-content: space-between;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.range-slider {
  position: relative;
  height: 2.35rem;
  cursor: pointer;
}

.range-slider-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.45rem;
  transform: translateY(-50%);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.range-slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}

.range-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2.35rem;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 0.45rem;
  background: transparent;
  border: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: -0.48rem;
  border-radius: 50%;
  background: var(--magenta);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(31, 64, 86, 0.28);
  cursor: grab;
}

.range-slider input[type="range"]::-moz-range-track {
  height: 0.45rem;
  background: transparent;
  border: none;
}

.range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--magenta);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(31, 64, 86, 0.28);
  cursor: grab;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0 0 0.75rem;
}

.admin-table a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.admin-table tr.is-test td {
  background: rgba(190, 32, 119, 0.06);
}

.desk-flash {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(0, 148, 144, 0.1);
  border: 1px solid rgba(0, 148, 144, 0.28);
  color: var(--navy-deep);
  font-weight: 600;
}

.desk-flash-error {
  background: rgba(190, 32, 119, 0.08);
  border-color: rgba(190, 32, 119, 0.28);
  color: var(--magenta-deep);
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.25rem;
}

.report-stat {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.report-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--navy-deep);
}

.report-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.report-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}

.report-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.report-tab:hover {
  background: var(--mist);
}

.report-tab.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.report-donut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0 0 1.25rem;
}

.report-donut {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.report-donut-chart {
  position: relative;
  width: min(16rem, 100%);
  margin: 0 auto 0.55rem;
}

.report-donut-svg {
  display: block;
  width: 100%;
  height: auto;
}

.report-donut-track {
  stroke: var(--mist);
}

.report-donut-center {
  position: absolute;
  inset: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.report-donut-center strong {
  font-size: 1.05rem;
  color: var(--navy-deep);
  line-height: 1.2;
}

.report-donut-center span {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.25;
}

.report-donut-caption {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.report-legend-table td:first-child,
.report-legend-table th:first-child {
  text-align: left;
}

.report-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  vertical-align: middle;
}

.report-acc {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.report-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-acc > summary::-webkit-details-marker {
  display: none;
}

.report-acc > summary strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.report-acc > summary em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.report-acc > summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.report-acc[open] > summary {
  margin-bottom: 0.85rem;
}

.report-acc[open] > summary::after {
  content: "▴";
}

@media (max-width: 980px) {
  .report-stats,
  .report-split,
  .report-donut-grid {
    grid-template-columns: 1fr;
  }
}

.week-hours-summary {
  min-height: 48px;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--navy-deep);
  max-width: min(22rem, 100%);
}

.week-hours-summary[hidden] {
  display: none !important;
}

.week-hours-summary .whs-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.week-hours-summary .whs-row {
  white-space: nowrap;
}

.week-hours-summary .whs-hours {
  font-weight: 650;
}

.calendar-mode-field,
.calendar-staff-field {
  min-width: 12rem;
  margin: 0;
}

.weekly-hours-panel {
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.weekly-hours-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.weekly-hours-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  color: var(--navy-deep);
}

.weekly-hours-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.weekly-hours-row {
  display: grid;
  grid-template-columns: 9rem 7rem auto 7rem;
  gap: 0.55rem;
  align-items: center;
}

.weekly-day {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.weekly-to {
  color: var(--muted);
  font-size: 0.9rem;
}

.employee-pin-panel {
  margin: 1.5rem 0 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.employee-pin-head h2 {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy-deep);
}

.employee-pin-head .lede {
  margin: 0 0 0.85rem;
}

.employee-pin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.employee-pin-controls .field {
  margin: 0;
  min-width: 14rem;
  flex: 1 1 14rem;
}

.employee-pin-controls .btn {
  min-height: 48px;
}

.pin-current-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pin-current-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.pin-dialog-lede {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.owner-calendar {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  --fc-border-color: rgba(20, 40, 70, 0.12);
  --fc-button-bg-color: var(--navy);
  --fc-button-border-color: var(--navy);
  --fc-button-hover-bg-color: var(--navy-deep);
  --fc-button-hover-border-color: var(--navy-deep);
  --fc-button-active-bg-color: var(--magenta);
  --fc-button-active-border-color: var(--magenta);
  --fc-today-bg-color: rgba(0, 148, 144, 0.08);
  --fc-event-bg-color: #0d6e6b;
  --fc-event-border-color: #0a5754;
  font-family: "Poppins", sans-serif;
}

.owner-calendar .fc {
  width: 100% !important;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 0.5rem;
  box-sizing: border-box;
}

.owner-calendar .fc-view-harness,
.owner-calendar .fc-scrollgrid,
.owner-calendar .fc-scrollgrid-section,
.owner-calendar .fc-scrollgrid-sync-table,
.owner-calendar table {
  width: 100% !important;
  max-width: 100%;
}

.owner-calendar .fc-scroller {
  overflow-x: hidden !important;
}

/* Keep timed events inside the grid (no stray bars below the calendar) */
.owner-calendar .fc-timegrid-body,
.owner-calendar .fc-timegrid-cols,
.owner-calendar .fc-timegrid-col-frame {
  overflow: hidden;
}

.owner-calendar .fc-event-mirror,
.owner-calendar .fc-event-dragging {
  z-index: 6;
}

/* Single-employee: fill the day column. All-employees: fixed staff lanes. */
.owner-calendar:not(.owner-calendar-all) .fc-timegrid-event-harness {
  left: 0 !important;
  right: 0 !important;
  margin: 0 2px;
  width: auto !important;
  max-width: 100%;
}

.owner-calendar:not(.owner-calendar-all) .fc-timegrid-event,
.owner-calendar:not(.owner-calendar-all) .schedule-block-event,
.owner-calendar:not(.owner-calendar-all) .schedule-weekly-event {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  inset-inline: 0 !important;
}

.owner-calendar.owner-calendar-all .fc-timegrid-event-harness {
  margin: 0 1px;
  right: auto !important;
  box-sizing: border-box;
}

.owner-calendar.owner-calendar-all .fc-timegrid-event {
  width: 100% !important;
  box-sizing: border-box;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 1px 3px;
  border-width: 2px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  overflow: hidden;
}

.owner-calendar.owner-calendar-all .schedule-block-hours {
  border-style: dashed !important;
}

.owner-calendar .fc-highlight,
.owner-calendar .fc-timegrid-bg-harness {
  max-width: 100%;
}

.owner-calendar .schedule-weekly-bg,
.owner-calendar .schedule-weekly-event {
  cursor: pointer;
}

.staff-lane-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.staff-lane-legend[hidden] {
  display: none !important;
}

.staff-lane-legend .sll-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.staff-lane-legend .sll-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
  flex: 0 0 auto;
}

.owner-calendar .fc-toolbar-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy-deep);
}

/* Closed <dialog> must stay display:none — author `display:flex` overrides the UA rule. */
.cal-dialog:not([open]) {
  display: none !important;
}

.cal-dialog[open] {
  /* Wide enough for datetime-local + two columns without clipping */
  width: min(720px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  height: fit-content;
  max-height: none;
  border: none;
  border-radius: 18px;
  padding: 0;
  background: #fffdfb;
  box-shadow: 0 24px 60px rgba(20, 30, 50, 0.28);
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Block/hours dialog: compact single-column */
.cal-dialog.cal-dialog-block[open] {
  width: min(380px, calc(100vw - 2rem));
}

.cal-dialog::backdrop {
  background: rgba(18, 28, 48, 0.45);
}

.cal-dialog-form {
  padding: 1rem 1.15rem 0.95rem;
  flex: 0 0 auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.cal-dialog.cal-dialog-block .cal-dialog-form {
  padding: 0.85rem 0.95rem 0.8rem;
}

.cal-dialog-form h2 {
  margin: 0 0 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  color: var(--navy-deep);
  flex: 0 0 auto;
}

.cal-dialog.cal-dialog-block .cal-dialog-form h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.cal-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  flex: 0 0 auto;
}

.cal-dialog .field {
  margin: 0;
  min-width: 0;
}

.cal-dialog .field span {
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
}

.cal-dialog .field input,
.cal-dialog .field select,
.cal-dialog .field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.cal-dialog .field input,
.cal-dialog .field select {
  min-height: 2.4rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.cal-dialog #evtNotes {
  min-height: 3.25rem;
  max-height: 3.25rem;
  resize: none;
}

.cal-dialog.cal-dialog-block .cal-fields {
  gap: 0.45rem;
}

.cal-dialog.cal-dialog-block .field span {
  font-size: 0.8rem;
}

.cal-dialog.cal-dialog-block .field input,
.cal-dialog.cal-dialog-block .field select {
  min-height: 2.35rem;
}

/* Author display rules beat UA [hidden]; keep hidden controls out of layout */
.cal-fields[hidden],
#apptFields[hidden],
#blockFields[hidden],
#blockStaffWrap[hidden],
#blockStartWrap[hidden],
#blockEndWrap[hidden],
#evtDelete[hidden],
#eventError[hidden],
#pinError[hidden] {
  display: none !important;
}

.cal-dialog-block #blockFields {
  grid-template-columns: 1fr;
}

.cal-fields .field.full {
  grid-column: 1 / -1;
}

.cal-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.85rem;
  flex: 0 0 auto;
}

.cal-dialog.cal-dialog-block .cal-dialog-actions {
  margin-top: 0.65rem;
  gap: 0.45rem;
}

.cal-dialog.cal-dialog-block #eventError {
  margin: 0.4rem 0 0;
}

.owner-calendar .schedule-block-event,
.owner-calendar .schedule-weekly-event {
  cursor: grab;
}

.owner-calendar .schedule-block-event.fc-event-dragging,
.owner-calendar .schedule-weekly-event.fc-event-dragging {
  cursor: grabbing;
}

.owner-calendar .schedule-weekly-event {
  font-size: 0.82rem;
  font-weight: 600;
}

.btn.danger {
  background: #ffe8ef;
  color: #8a1248;
  border: 1px solid #f0b4c8;
}

.btn.danger:hover {
  background: #ffd6e3;
}

@media (max-width: 720px) {
  .weekly-hours-row {
    grid-template-columns: 1fr 1fr;
  }

  .weekly-day {
    grid-column: 1 / -1;
  }

  .cal-fields {
    grid-template-columns: 1fr;
  }

  .dob-pickers,
  .note-presets {
    grid-template-columns: 1fr;
  }
}

.desk-promo-banner {
  margin: 0 0 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  background: #fff4e8;
  border: 1px solid #f0c48a;
  color: #7a3e00;
}

.desk-promo-banner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.desk-promo-banner-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.desk-promo-edit {
  font-weight: 700;
  color: #7a3e00;
}

.desk-promo-banner-list,
.desk-promo-apply-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.desk-promo-banner-list li,
.desk-promo-apply-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.desk-promo-banner-list span,
.desk-promo-apply-list span {
  font-weight: 600;
}

.desk-promo-detail {
  display: block;
  width: 100%;
  font-weight: 500;
  opacity: 0.88;
}

.desk-promo-empty {
  margin: 0.4rem 0 0;
  font-weight: 600;
}

.desk-promo-form {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.desk-promo-new {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.desk-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}

.desk-promo-wide {
  grid-column: 1 / -1;
}

.desk-promo-form label span,
.desk-promo-days legend {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.desk-promo-form input,
.desk-promo-form select {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.desk-promo-days {
  margin: 0.85rem 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.desk-promo-days label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.desk-promo-days input {
  width: auto;
}

.checkout-line-promo {
  background: #fffaf3;
}

.checkout-promos .desk-promo-apply-list li {
  align-items: center;
}

@media (max-width: 720px) {
  .desk-promo-grid {
    grid-template-columns: 1fr;
  }
}
