:root {
  --ivory: #efeee6;
  --sand: #ead0ac;
  --aqua: #00b7db;
  --ocean: #006db6;
  --midnight: #2c3990;
  --deep: #032a53;
  --display: "Mighty Souly", "Arial Rounded MT Bold", system-ui, sans-serif;
  --section: Syne, Manrope, system-ui, sans-serif;
  --body: Manrope, "Avenir Next", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(#f7f6f1, #e8eef6);
  color: var(--deep);
  font-family: var(--body);
}

body.staff-body {
  background: #f6f5f1;
  color: var(--deep);
}

a {
  color: inherit;
}

.book-top,
.staff-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: blur(12px);
}

.staff-top {
  background: #fff;
  border-bottom: 1px solid rgba(3, 42, 83, 0.08);
}

.book-top img,
.staff-top img {
  height: 2.4rem;
  width: auto;
}

.book-top .grow,
.staff-top .grow {
  flex: 1;
}

.chip-row {
  display: flex;
  gap: 0.35rem;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--midnight);
}

.chip.is-on,
.btn-pill {
  background: var(--midnight);
  color: var(--ivory);
}

.btn-pill,
.btn-line,
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-fill {
  background: var(--aqua);
  color: var(--deep);
}

.btn-line {
  background: transparent;
  color: var(--midnight);
  border: 2px solid var(--midnight);
}

.staff-body .btn-line {
  color: var(--midnight);
  border-color: rgba(44, 57, 144, 0.22);
  background: #fff;
}

.wrap {
  width: min(52rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 7rem;
}

.kicker {
  margin: 0;
  color: var(--ocean);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--section);
  margin: 0.2rem 0 0.6rem;
}

.lead {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--deep) 70%, #fff);
}

.card-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.choice,
.panel {
  background: #fff;
  border-radius: 28px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 18px 36px rgba(3, 42, 83, 0.12);
}

.staff-body .panel,
.staff-body .choice {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 10px 28px rgba(3, 42, 83, 0.06);
  border: 1px solid rgba(3, 42, 83, 0.06);
}

.choice h3 {
  font-size: 1.2rem;
}

.price {
  color: var(--ocean);
  font-weight: 700;
}

.qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.qty button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: var(--midnight);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.cal b,
.cal button {
  min-height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
}

.cal button {
  border-radius: 999px;
  cursor: pointer;
}

.cal button:disabled {
  opacity: 0.3;
  cursor: default;
}

.cal button.in {
  background: color-mix(in srgb, var(--aqua) 35%, #fff);
}

.cal button.sel {
  background: var(--midnight);
  color: #fff;
}

.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--midnight) 20%, transparent);
  font: inherit;
}

.row2 {
  display: grid;
  gap: 0.6rem;
}

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

.sticky-cta {
  position: sticky;
  bottom: 0;
  padding: 0.8rem;
  background: color-mix(in srgb, #fff 90%, transparent);
}

.progress {
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--midnight) 12%, #fff);
  margin: 0.8rem 0 1.2rem;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--aqua);
}

.summary li {
  margin: 0.2rem 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.status {
  min-height: 1.2rem;
}

.nav-tabs {
  display: flex;
  gap: 0.4rem;
  overflow: auto;
  padding: 0.4rem 0.8rem 0.8rem;
}

.nav-tabs a,
.nav-tabs button {
  flex: 1;
  min-width: 4.5rem;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 16px;
  padding: 0.55rem 0.4rem;
  background: color-mix(in srgb, #fff 12%, transparent);
  color: var(--ivory);
  font: inherit;
  cursor: pointer;
}

.nav-tabs .is-on {
  background: var(--aqua);
  color: var(--deep);
}

.staff-body .nav-tabs {
  background: #fff;
  border-bottom: 1px solid rgba(3, 42, 83, 0.08);
  flex-wrap: wrap;
  overflow: visible;
  position: sticky;
  top: 3.4rem;
  z-index: 19;
  padding: 0.55rem 0.8rem 0.7rem;
}

.staff-body .nav-tabs button {
  flex: 0 1 auto;
  min-width: auto;
  padding: 0.45rem 0.85rem;
  background: #f3f1ea;
  color: var(--midnight);
  font-size: 0.92rem;
  font-weight: 700;
}

.staff-body .nav-tabs .is-on {
  background: var(--deep);
  color: #fff;
}

.list-item {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 0.6rem;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.staff-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.staff-body .staff-top img {
  height: 2.2rem;
  width: 2.2rem;
  border-radius: 10px;
}

.staff-body .staff-top .grow {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.staff-body .staff-top .grow span {
  font-size: 0.75rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--deep) 55%, #fff);
}

.staff-body .chip {
  background: #f3f1ea;
  color: var(--deep);
  border: 1px solid rgba(3, 42, 83, 0.08);
}

.staff-login-card {
  width: min(24rem, 100%);
}

.staff-login-card img {
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.6rem;
}

.staff-body .wrap {
  width: min(58rem, calc(100% - 1.5rem));
}

.staff-body h1 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.staff-body h2 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
}

.staff-body .lead,
.staff-body .muted {
  color: color-mix(in srgb, var(--deep) 58%, #fff);
  font-size: 0.95rem;
}

.staff-toolbar {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0 1rem;
}

@media (min-width: 720px) {
  .staff-toolbar {
    grid-template-columns: 1.4fr 0.8fr auto;
    align-items: end;
  }
}

.stat-grid {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 1.1rem;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: #fff;
  border: 1px solid rgba(3, 42, 83, 0.06);
  border-radius: 20px;
  padding: 0.95rem 1rem;
  box-shadow: 0 8px 22px rgba(3, 42, 83, 0.05);
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat-card p {
  margin: 0.25rem 0 0;
  color: color-mix(in srgb, var(--deep) 55%, #fff);
  font-size: 0.88rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  background: #eef2f6;
  color: var(--midnight);
}

.pill-requested { background: #fff4d6; color: #8a5a00; }
.pill-confirmed { background: #d9f3ea; color: #0d6b4a; }
.pill-checked_in { background: #d6ecff; color: #0b4f8a; }
.pill-checked_out { background: #ececec; color: #555; }
.pill-declined,
.pill-cancelled,
.pill-no_show { background: #ffe1e1; color: #9b1c1c; }

.list-item strong {
  display: block;
}

.list-item p,
.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0.4rem 0 0;
  color: color-mix(in srgb, var(--deep) 58%, #fff);
  font-size: 0.9rem;
}

.empty {
  padding: 0.75rem 0;
  font-weight: 400;
  color: #5c6570;
}

.empty:empty {
  display: none;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0;
}

.action-row .is-current {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.occ-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.occ-head h1 {
  margin: 0;
}

.occ-nav {
  display: flex;
  gap: 0.35rem;
}

.occ-nav button {
  min-width: 44px;
}

.occ-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
}

.occ-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--deep) 60%, #fff);
}

.occ-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

.occ-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.occ-month .dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--deep) 45%, #fff);
  padding-bottom: 0.2rem;
}

.occ-cell {
  min-height: 4.4rem;
  border: 1px solid rgba(3, 42, 83, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 0.35rem 0.3rem 0.4rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.occ-cell[disabled] {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.occ-cell .num {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}

.occ-cell .meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.25;
  color: color-mix(in srgb, var(--deep) 58%, #fff);
}

.occ-open { background: #edf8f2; }
.occ-partial { background: #fff6e4; }
.occ-tight { background: #ffe8d2; }
.occ-full { background: #fde8e8; }
.occ-today { outline: 2px solid var(--ocean); outline-offset: -2px; }
.occ-selected { box-shadow: 0 0 0 2px var(--deep); }

.occ-detail {
  margin-top: 1rem;
}

.occ-room {
  margin: 0.75rem 0 0;
}

.occ-room header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.occ-track {
  height: 8px;
  border-radius: 99px;
  background: #eceae3;
  overflow: hidden;
  margin-top: 0.4rem;
}

.occ-track > span {
  display: block;
  height: 100%;
  background: var(--ocean);
}

.occ-track.is-full > span {
  background: #c0392b;
}

.occ-track.is-tight > span {
  background: #d97706;
}

.note-callout {
  background: #fff;
  border: 1px solid rgba(3, 42, 83, 0.06);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--deep) 62%, #fff);
  margin: 0 0 0.9rem;
}

.staff-body {
  --staff-radius: 8px;
  --staff-control: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

.staff-body h1,
.staff-body h2,
.staff-body h3,
.staff-body strong,
.staff-body .kicker,
.staff-body .chip,
.staff-body .btn-fill,
.staff-body .btn-line,
.staff-body .nav-tabs button {
  font-family: inherit;
}

.staff-body .kicker {
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.staff-body h1 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 1.15rem;
}

.staff-body h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.7rem;
}

.staff-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.staff-body .lead {
  margin: 0 0 1.25rem;
}

.staff-body .staff-top {
  padding: 0.85rem 1.1rem;
}

.staff-body .staff-top img {
  border-radius: 6px;
}

.staff-body .nav-tabs {
  padding: 0.7rem 1.1rem;
  gap: 0.5rem;
}

.staff-body .nav-tabs button {
  border-radius: var(--staff-control);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}

.staff-body .wrap {
  padding: 1.4rem 0 4.5rem;
}

.staff-body .panel,
.staff-body .choice,
.staff-body .stat-card,
.staff-body .note-callout {
  border-radius: var(--staff-radius);
  box-shadow: none;
  padding: 1.15rem 1.2rem;
}

.staff-body .choice.list-item {
  margin: 0 0 0.75rem;
  padding: 1.05rem 1.15rem;
}

.staff-body .chip,
.staff-body .btn-fill,
.staff-body .btn-line,
.staff-body .pill {
  border-radius: var(--staff-control);
  font-weight: 600;
  text-transform: none;
}

.staff-booking-status {
  display: inline-flex;
  margin: 0.15rem 0 0.9rem;
  padding: 0.55rem 1rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.staff-item-when {
  display: block;
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--deep) 62%, #fff);
  font-size: 0.82rem;
  font-weight: 500;
}

.staff-status-note {
  margin: -0.25rem 0 0.9rem;
  max-width: 36rem;
}

.staff-body .btn-fill {
  background: var(--ocean);
  color: #fff;
}

.staff-body .btn-fill:hover,
.staff-body .btn-fill:focus-visible {
  background: var(--deep);
  color: #fff;
}

.staff-body .chip.is-on {
  background: var(--deep);
  color: #fff;
}

.staff-body .field {
  margin-bottom: 1rem;
}

.staff-body .field input,
.staff-body .field select,
.staff-body .field textarea {
  border-radius: var(--staff-control);
}

.stat-grid {
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.stat-card strong {
  margin: 0.15rem 0 0.35rem;
}

.staff-toolbar {
  gap: 1rem;
  margin: 0 0 1.15rem;
}

.action-row {
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.staff-body .action-row + .btn-fill {
  margin-top: 0.15rem;
}

.occ-head {
  margin-bottom: 1rem;
  gap: 1rem;
}

.occ-nav {
  gap: 0.5rem;
}

.occ-nav button {
  border-radius: var(--staff-control);
}

.occ-filters {
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.occ-legend {
  gap: 0.85rem 1.15rem;
  margin: 0 0 1rem;
}

.occ-legend i {
  border-radius: 3px;
}

.occ-month {
  gap: 0.45rem;
}

.occ-cell {
  border-radius: var(--staff-control);
  min-height: 4rem;
  padding: 0.45rem 0.4rem 0.5rem;
}

.occ-detail {
  margin-top: 1.25rem;
}

.occ-room {
  margin: 1rem 0 0;
}

.occ-track {
  border-radius: 3px;
  height: 6px;
  margin-top: 0.5rem;
}

.note-callout {
  margin: 0 0 1.15rem;
}

.staff-login {
  padding: 1.5rem;
}

.staff-login-card img {
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.book-body {
  --book-ink: #1b2430;
  --book-muted: #5c6570;
  --book-line: #e6e8ee;
  --book-input: #d0d5dd;
  --book-bg: #f7f8fa;
  --book-blue: #0b4f8a;
  --book-range: #d6e8f7;
  --book-err: #b42318;
  --book-err-bg: #f9e8e8;
  --book-ok: #0d6b4a;
  --book-warn: #8a5a00;
  --book-warn-bg: #fff6e4;
  --book-ok-bg: #edf8f2;
  background: var(--book-bg);
  color: var(--book-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.book-body h1,
.book-body h2,
.book-body h3 {
  font-family: inherit;
  font-weight: 600;
}

.book-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid var(--book-line);
}

.book-chrome-inner {
  width: min(58rem, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
}

.book-logo {
  justify-self: start;
  grid-column: 1;
  grid-row: 1;
}

.book-logo img {
  pointer-events: auto;
  height: 40px;
  width: auto;
  max-width: 140px;
}

.book-seg,
.book-help {
  grid-row: 1;
  z-index: 1;
}

.book-seg {
  justify-self: end;
  grid-column: 2;
  display: flex;
  border: 1px solid var(--book-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.book-seg button {
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 0 0.7rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--book-muted);
  cursor: pointer;
}

.book-seg button.is-on {
  background: var(--book-blue);
  color: #fff;
}

.book-help {
  grid-column: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--book-line);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  color: var(--book-blue);
  background: #fff;
}

.book-page {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.book-intro,
.book-stage {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.book-intro {
  padding: 1.5rem 0 0;
}

.book-stage {
  display: flex;
  flex-direction: column;
}

.book-main {
  width: 100%;
  padding: 0 0 8rem;
}

.book-warn {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--book-warn-bg);
  color: var(--book-warn);
  font-size: 0.92rem;
}

.book-summary {
  background: #fff;
  border: 1px solid var(--book-line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 0.5rem;
}

.book-summary-desk {
  display: none;
}

.book-summary-mobile {
  display: block;
}

.book-foot-line,
.book-summary-toggle {
  display: none;
}

.book-summary-inline {
  margin-top: 1rem;
}

.book-summary-toggle[hidden] {
  display: none !important;
}

.book-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.book-sheet[hidden] {
  display: none !important;
}

.book-sheet-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: color-mix(in srgb, #1b2430 40%, transparent);
  cursor: pointer;
}

.book-sheet .book-summary-mobile {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8.5rem;
  max-height: min(58vh, 28rem);
  overflow: auto;
  margin: 0;
  border-radius: 12px 12px 0 0;
}

.book-summary .book-pay {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

.book-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--book-line);
  background: transparent;
  padding: 0.4rem 0;
  font: inherit;
  font-weight: 400;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.book-sum-row span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--book-muted);
}

.book-sum-row em,
.book-sum-row .val {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--book-ink);
  text-align: right;
}

.book-sum-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--book-muted);
}

.book-sum-row:last-of-type {
  cursor: default;
}

.book-foot {
  order: 3;
}

@media (min-width: 900px) {
  .book-page {
    width: 100%;
  }

  .book-intro {
    width: min(40rem, calc(100% - 2rem));
    margin-left: max(1rem, calc((100% - min(58rem, calc(100% - 2rem))) / 2));
    margin-right: auto;
  }

  .book-stage {
    width: min(58rem, calc(100% - 2rem));
  }

  .book-stage {
    display: grid;
    grid-template-columns: minmax(0, 40rem) 16rem;
    column-gap: 1.5rem;
    align-items: start;
  }

  .book-main {
    grid-column: 1;
    padding-bottom: 8.5rem;
  }

  .book-summary-desk {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0.85rem 1rem;
  }

  .book-summary-inline {
    display: none;
  }

  .book-summary-mobile,
  .book-sheet {
    display: none !important;
  }
}

.book-kicker {
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--book-blue);
}

.book-body .book-intro h1,
.book-body .book-main h1 {
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--book-ink);
}

.book-lead {
  margin: 0 0 1rem;
  color: var(--book-muted);
  font-size: 0.95rem;
}

.book-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--book-line);
  margin: 0 0 1rem;
}

.book-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--book-blue);
}

.book-recap {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--book-muted);
  min-height: 1.2em;
}

.book-card {
  background: #fff;
  border: 1px solid var(--book-line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.book-cal-nav {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 0.65rem;
}

.book-cal-nav strong {
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.book-cal-nav button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--book-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.book-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.book-cal .dow {
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  color: var(--book-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.book-cal button {
  height: 36px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--book-ink);
}

@media (max-width: 400px) {
  .book-cal button {
    height: 32px;
  }
}

.book-cal button:disabled {
  color: #c0c4cc;
  cursor: default;
}

.book-cal button.today {
  box-shadow: inset 0 0 0 1px var(--book-blue);
}

.book-cal button.sel {
  background: var(--book-blue);
  color: #fff;
}

.book-cal button.in {
  background: var(--book-range);
  color: var(--book-blue);
}

.book-cal button.tight {
  outline: 1px dashed #d97706;
}

.book-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.book-pair div {
  border: 1px solid var(--book-line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  background: #fff;
}

.book-pair span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--book-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.book-pair strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.92rem;
  font-weight: 400;
}

.book-pair em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--book-muted);
}

.book-legend,
.book-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.65rem;
  font-size: 11px;
  font-weight: 400;
  color: var(--book-muted);
}

.book-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

.book-staylen,
.book-timeline,
.book-next-hint {
  margin-top: 0.75rem;
  font-weight: 400;
}

.book-next-hint {
  font-size: 12px;
  color: var(--book-muted);
}

.book-staylen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--book-line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--book-muted);
}

.book-staylen strong {
  font-weight: 600;
  color: var(--book-ink);
}

.book-timeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--book-muted);
}

.book-timeline i {
  flex: 1;
  height: 2px;
  background: var(--book-blue);
}

.book-timeline .in,
.book-timeline .out {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--book-blue);
  color: #fff;
  font-size: 0.65rem;
}

.book-timeline .out {
  background: var(--book-range);
  color: var(--book-blue);
}

.book-split {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .book-split {
    grid-template-columns: 1fr 14rem;
  }
}

.book-meter {
  background: color-mix(in srgb, var(--book-blue) 6%, #fff);
  border: 1px solid var(--book-line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.book-meter-track {
  height: 6px;
  border-radius: 99px;
  background: var(--book-line);
  margin: 0.45rem 0;
}

.book-meter-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--book-blue);
}

.book-meter-ok {
  margin: 0;
  color: var(--book-ok);
  font-size: 0.8rem;
}

.book-meter-wait {
  margin: 0;
  color: var(--book-warn);
  font-size: 0.8rem;
}

.book-sub {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.05rem;
}

.book-tiles {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .book-tiles {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.book-tile {
  background: #fff;
  border: 1px solid var(--book-line);
  border-radius: 10px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.book-tile-pkg {
  min-height: 18rem;
}

.book-tile-pkg::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--book-blue);
  border-radius: 10px 10px 0 0;
}

.book-tile-pkg:has(img)::before {
  display: none;
}

.book-tile.is-on {
  border-color: var(--book-blue);
  background: color-mix(in srgb, var(--book-blue) 6%, #fff);
}

.book-tile img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  display: block;
  border-radius: 9px 9px 0 0;
}

.book-tile-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-tile-body > strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.book-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.book-tile-foot .price {
  font-weight: 600;
  color: var(--book-blue);
  white-space: nowrap;
}

.book-cat-chips {
  margin-bottom: 1rem;
}

.book-addons {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
}

.book-addon {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--book-line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.book-addon .meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--book-muted);
}

.book-match {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.book-match h2 {
  margin: 0;
  font-size: 1.05rem;
}

.book-match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.book-match-grid .field {
  margin-bottom: 0;
}

@media (max-width: 699px) {
  .book-match-grid .field:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

.book-sum-head {
  margin: 0.65rem 0 0.1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--book-muted);
}

.book-tile-body .meta,
.book-stock,
.book-stats {
  margin: 0.25rem 0;
  font-size: 0.82rem;
  color: var(--book-muted);
  font-weight: 400;
}

.book-tile-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.book-match-slot {
  margin-top: 1.15rem;
  padding: 1rem 0 0.15rem;
  border-top: 1px solid var(--book-line);
}

.book-match h2 + .book-match-slot {
  margin-top: 0.9rem;
  padding-top: 0.95rem;
}

.book-dots {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  list-style: none;
  margin: 0.15rem 0 0.85rem;
  padding: 0;
}

.book-dots button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  color: var(--book-muted);
  cursor: pointer;
  padding: 0.2rem;
}

.book-dots .is-on button,
.book-dots .is-done button {
  color: var(--book-blue);
  font-weight: 600;
}

.book-chip {
  border: 1px solid var(--book-line);
  background: #fff;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.book-chip.is-on {
  background: var(--book-blue);
  color: #fff;
  border-color: var(--book-blue);
}

.book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--book-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0 0 0.75rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.book-row.is-on {
  border-color: var(--book-blue);
  box-shadow: inset 0 0 0 1px var(--book-blue);
}

.book-row .book-kicker {
  margin: 0 0 0.2rem;
}

.book-row .meta {
  color: var(--book-muted);
  font-size: 0.88rem;
  margin: 0.2rem 0 0;
}

.book-row .price {
  font-weight: 600;
  color: var(--book-blue);
  white-space: nowrap;
}

.book-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.book-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.book-stepper button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--book-line);
  background: #fff;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.book-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

.book-cover {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  background: var(--book-warn-bg);
  color: var(--book-warn);
}

.book-cover.is-ok {
  background: var(--book-ok-bg);
  color: var(--book-ok);
}

.book-hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--book-muted);
}

.book-body .field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--book-muted);
}

.book-body .field input,
.book-body .field select,
.book-body .field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--book-input);
  border-radius: 8px;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--book-ink);
  background: #fff;
}

.book-body .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5 12.5 6' stroke='%235c6570' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.85rem;
}

.book-body .field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.book-body .field input:focus,
.book-body .field select:focus,
.book-body .field textarea:focus {
  outline: 2px solid var(--book-blue);
  outline-offset: 1px;
}

.book-body .field.is-invalid input,
.book-body .field.is-invalid select,
.book-body .field.is-invalid textarea,
.book-card.is-invalid,
.book-meter.is-invalid,
.book-tile.is-invalid {
  border-color: var(--book-err);
}

.book-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--book-err);
}

.book-body .field input:-webkit-autofill,
.book-body .field input:-webkit-autofill:hover,
.book-body .field input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--book-ink);
}

.book-contact {
  padding: 1rem 1.1rem 1.15rem;
}

.book-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.75rem;
}

@media (min-width: 700px) {
  .book-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.book-review li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--book-line);
  list-style: none;
}

.book-review {
  margin: 0;
  padding: 0;
}

.book-pay {
  margin: 1rem 0 0;
  color: var(--book-muted);
}

.book-ok {
  color: var(--book-ok);
  font-weight: 600;
}

.book-foot {
  position: sticky;
  bottom: 0;
  z-index: 45;
  width: 100%;
  margin: 0;
  background: #fff;
  border-top: 1px solid var(--book-line);
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
}

.book-dots button {
  color: var(--book-muted);
  font-weight: 400;
}

.book-foot-inner {
  width: min(40rem, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

@media (min-width: 900px) {
  .book-foot-inner {
    width: min(40rem, calc(100% - 2rem));
    margin-left: max(1rem, calc((100% - min(58rem, calc(100% - 2rem))) / 2));
    margin-right: auto;
  }
}

.book-status {
  min-height: 1.2rem;
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--book-err);
}

.book-status.is-ok {
  color: var(--book-ok);
}

.book-status.is-busy {
  color: #032a53;
}

.bb-spin {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.45rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.12rem;
  animation: bb-spin 0.7s linear infinite;
}

@keyframes bb-spin {
  to { transform: rotate(360deg); }
}

.book-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 899px) {
  .book-foot-line {
    display: block;
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    color: var(--book-ink);
  }

  .book-summary-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--book-line);
    background: #fff;
    font: inherit;
    font-weight: 600;
    color: var(--book-blue);
    cursor: pointer;
  }
}

.book-back,
.book-next {
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0 1.15rem;
}

.book-back {
  background: #fff;
  border: 1px solid var(--book-line);
  color: var(--book-ink);
}

.book-next {
  min-width: 11.5rem;
  border: 0;
  background: var(--book-blue);
  color: #fff;
}

@media (max-width: 699px) {
  .book-actions {
    gap: 0.5rem;
  }

  .book-next {
    min-width: 0;
    flex: 1 1 0;
  }
}

.book-body .hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.book-next:disabled {
  opacity: 0.45;
  cursor: default;
}

.staff-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line, #e6e8ee);
  border-radius: 8px;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.staff-table th,
.staff-table td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line, #e6e8ee);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 400;
}

.staff-table th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6570;
  font-weight: 400;
}

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

.staff-total-row td {
  font-weight: 700;
  border-top: 1px solid var(--line, #e6e8ee);
}

@media (max-width: 1439px) {
  .staff-bookings-wrap {
    overflow-x: clip;
  }

  .staff-bookings-table th,
  .staff-bookings-table td {
    white-space: normal;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

.staff-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e6e8ee;
  border-radius: 6px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: #0b4f8a;
  margin-right: 0.25rem;
}

.staff-icon-btn.is-danger {
  color: #b42318;
}

.staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

body.staff-body {
  background: #eef0f4;
}

.staff-app {
  min-height: 100svh;
  display: flex;
}

.staff-side {
  width: 15.5rem;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e6e8ee;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.85rem 1rem;
  position: sticky;
  top: 0;
  height: 100svh;
  z-index: 30;
}

.staff-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0.45rem 1rem;
}

.staff-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.staff-brand strong {
  display: block;
  font-size: 0.95rem;
}

.staff-brand span {
  display: block;
  font-size: 0.75rem;
  color: #5c6570;
}

.staff-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.staff-nav button {
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: #1b2430;
  cursor: pointer;
}

.staff-nav button.is-on {
  background: color-mix(in srgb, #0b4f8a 10%, #fff);
  color: #0b4f8a;
}

.staff-logout {
  border: 1px solid #e6e8ee;
  background: #fff;
  border-radius: 6px;
  min-height: 40px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
}

.staff-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.staff-body .staff-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.6rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
}

.staff-body .staff-top h1 {
  flex: 1;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.staff-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e6e8ee;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.staff-canvas {
  padding: 1.5rem;
}

.staff-body .wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.staff-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.staff-check input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #c5cad3;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.staff-check input:checked {
  background: #0b4f8a;
  border-color: #0b4f8a;
}

.staff-check input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.staff-photo-preview {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e6e8ee;
  margin-top: 0.5rem;
  background: #f7f8fa;
}

.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in srgb, #1b2430 35%, transparent);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.staff-modal.hidden {
  display: none !important;
}

.staff-modal-card {
  width: min(32rem, 100%);
  max-height: min(90svh, 44rem);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 16px 40px color-mix(in srgb, #032a53 18%, transparent);
}

.staff-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.staff-modal-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.staff-scrim {
  display: none;
}

.staff-table td:last-child {
  white-space: nowrap;
  width: 1%;
}

.staff-status {
  min-height: 1.2rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.staff-status.is-ok {
  color: #0d6b4a;
}

.staff-status.is-err {
  color: #b42318;
}

.staff-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 2.5rem 0;
  color: #032a53;
  font-weight: 600;
}

@media (max-width: 900px) {
  .staff-table th:last-child,
  .staff-table td:last-child {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -8px 0 10px rgba(255, 255, 255, 0.95);
  }

  .staff-menu {
    display: grid;
    place-items: center;
  }

  .staff-side {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }

  .staff-app.is-nav .staff-side {
    transform: none;
    box-shadow: 8px 0 24px color-mix(in srgb, #032a53 16%, transparent);
  }

  .staff-app.is-nav .staff-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, #1b2430 40%, transparent);
    z-index: 25;
  }

  .staff-body .staff-top {
    padding: 0.55rem 1rem;
  }

  .staff-canvas {
    padding: 1rem;
  }
}

body.staff-body {
  background: #eef0f4;
}

.staff-app {
  min-height: 100svh;
  display: flex;
}

.staff-side {
  width: 15.5rem;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e6e8ee;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.85rem 1rem;
  position: sticky;
  top: 0;
  height: 100svh;
  z-index: 30;
}

.staff-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0.45rem 1rem;
}

.staff-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.staff-brand strong {
  display: block;
  font-size: 0.95rem;
}

.staff-brand span {
  display: block;
  font-size: 0.75rem;
  color: #5c6570;
}

.staff-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.staff-nav button {
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: #1b2430;
  cursor: pointer;
}

.staff-nav button.is-on {
  background: color-mix(in srgb, #0b4f8a 10%, #fff);
  color: #0b4f8a;
}

.staff-logout {
  border: 1px solid #e6e8ee;
  background: #fff;
  border-radius: 6px;
  min-height: 40px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
}

.staff-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.staff-body .staff-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.6rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
}

.staff-body .staff-top h1 {
  flex: 1;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.staff-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e6e8ee;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.staff-canvas {
  padding: 1.5rem;
}

.staff-body .wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.staff-body .staff-table-wrap {
  background: #fff;
  padding: 0;
}

.staff-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.staff-check input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #c5cad3;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.staff-check input:checked {
  background: #0b4f8a;
  border-color: #0b4f8a;
}

.staff-check input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.staff-photo-preview {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e6e8ee;
  margin-top: 0.5rem;
  background: #f7f8fa;
}

.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in srgb, #1b2430 35%, transparent);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.staff-modal.hidden {
  display: none !important;
}

.staff-modal-card {
  width: min(32rem, 100%);
  max-height: min(90svh, 44rem);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 16px 40px color-mix(in srgb, #032a53 18%, transparent);
}

.staff-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.staff-modal-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.staff-scrim {
  display: none;
}

.staff-table td:last-child {
  white-space: nowrap;
  width: 1%;
}

.staff-status {
  min-height: 1.2rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.staff-status.is-ok {
  color: #0d6b4a;
}

.staff-status.is-err {
  color: #b42318;
}

.staff-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 2.5rem 0;
  color: #032a53;
  font-weight: 600;
}

@media (max-width: 900px) {
  .staff-table th:last-child,
  .staff-table td:last-child {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -8px 0 10px rgba(255, 255, 255, 0.95);
  }

  .staff-menu {
    display: grid;
    place-items: center;
  }

  .staff-side {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }

  .staff-app.is-nav .staff-side {
    transform: none;
    box-shadow: 8px 0 24px color-mix(in srgb, #032a53 16%, transparent);
  }

  .staff-app.is-nav .staff-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, #1b2430 40%, transparent);
    z-index: 25;
  }

  .staff-body .staff-top {
    padding: 0.55rem 1rem;
  }

  .staff-canvas {
    padding: 1rem;
  }
}

.staff-modal.is-drawer {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

.staff-modal.is-drawer .staff-modal-card {
  display: flex;
  flex-direction: column;
  width: min(28rem, 100%);
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  animation: staff-drawer-in 0.22s ease;
  box-shadow: -12px 0 32px color-mix(in srgb, #032a53 16%, transparent);
}

.staff-modal.is-drawer .staff-modal-card header {
  flex: none;
}

.staff-modal.is-drawer [data-modal-body] {
  overflow: auto;
  flex: 1;
}

@media (max-width: 900px) {
  .staff-modal.is-drawer .staff-modal-card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .staff-modal.is-drawer .staff-modal-card {
    animation: none;
  }
}

@keyframes staff-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.staff-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.staff-thumb {
  width: 2.5rem;
  height: 1.75rem;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}

.staff-guest {
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  padding: 0.85rem 1rem 0.15rem;
  margin: 0 0 0.75rem;
}

.staff-guest h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.staff-guest-grid {
  display: grid;
  gap: 0 0.75rem;
}

@media (min-width: 700px) {
  .staff-guest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.staff-add-line {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
}

.staff-add-line select {
  flex: 1;
  min-height: 44px;
}

@media (max-width: 900px) {
  .staff-table-wrap {
    overflow-x: visible;
    background: transparent;
    border: 0;
  }

  .staff-table {
    display: block;
  }

  .staff-table thead {
    display: none;
  }

  .staff-table tbody,
  .staff-table tr,
  .staff-table td {
    display: block;
    width: auto;
  }

  .staff-table tr {
    background: #fff;
    border: 1px solid var(--line, #e6e8ee);
    border-radius: 8px;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0;
  }

  .staff-table td {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    white-space: normal;
    overflow-wrap: anywhere;
    border-bottom: 0;
    position: static;
    box-shadow: none;
  }

  .staff-table td::before {
    content: attr(data-label);
    color: #5c6570;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .staff-table td:not([data-label]) {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .staff-table td:not([data-label])::before {
    content: none;
  }

  .staff-table th:last-child,
  .staff-table td:last-child {
    position: static;
    right: auto;
    width: auto;
    box-shadow: none;
  }

  .staff-total-row td[colspan] {
    display: none;
  }

  .staff-name {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .staff-thumb {
    width: 6.5rem;
    height: 4.5rem;
    border-radius: 6px;
  }
}

.bb-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.bb-tip-btn {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
}

.bb-tip-note {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  width: max-content;
  max-width: 16rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: #1c1915;
  color: #f6f1e8;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  text-align: left;
  white-space: normal;
}

.bb-tip:hover > .bb-tip-note,
.bb-tip:focus-within > .bb-tip-note,
.bb-tip.is-open > .bb-tip-note,
.bb-tip-note.is-placed {
  display: block;
}

.bb-tip-note.is-placed {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 80;
  width: max-content;
  max-width: min(16rem, calc(100vw - 1rem));
}

.book-help + .bb-tip-note {
  right: 0;
  left: auto;
}

.book-day-block {
  margin-top: 0.65rem;
}

.book-day-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.book-day {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.25rem;
  padding: 0.15rem 0.1rem;
  border: 1px solid var(--book-line, #e6e8ee);
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 1.05;
  cursor: pointer;
}

.book-day input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.book-day b {
  font-size: 0.78rem;
  font-weight: 700;
}

.book-day small {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.book-day.is-on,
.book-day:has(input:checked) {
  background: var(--book-blue, #0b4f8a);
  border-color: var(--book-blue, #0b4f8a);
  color: #fff;
}

.book-day-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--book-muted, #5c6570);
}

.book-body .field-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-height: 1.35rem;
}

.book-body .book-match-grid .field {
  display: grid;
  grid-template-rows: 1.35rem auto;
  align-items: center;
  align-content: start;
  gap: 0.35rem;
}

.book-body .field-name .bb-tip {
  flex: 0 0 auto;
}

.book-body .book-main {
  overflow-x: clip;
}

.book-body .book-progress > span {
  transition: width 260ms ease;
}

.book-body [data-step].is-forward {
  animation: book-step-forward 260ms ease;
}

.book-body [data-step].is-back {
  animation: book-step-back 260ms ease;
}

.book-body .book-stepper button {
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.book-body .book-stepper button:active:not(:disabled) {
  transform: scale(0.92);
}

.book-body .book-stepper strong.is-pop {
  display: inline-block;
  animation: book-pop 200ms ease;
}

.book-body .book-tile,
.book-body .book-day,
.book-body .book-chip,
.book-body .book-cal button {
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.book-body .book-tile.is-pop,
.book-body .book-day.is-pop,
.book-body .book-cal button.is-pop {
  animation: book-pop 200ms ease;
}

@keyframes book-step-forward {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes book-step-back {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

@keyframes book-pop {
  from { transform: scale(0.86); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .book-body .book-progress > span,
  .book-body .book-stepper button,
  .book-body .book-tile,
  .book-body .book-day,
  .book-body .book-chip,
  .book-body .book-cal button {
    transition: none;
  }

  .book-body [data-step].is-forward,
  .book-body [data-step].is-back,
  .book-body .is-pop {
    animation: none;
  }
}

.staff-body .field.is-invalid input,
.staff-body .field.is-invalid select,
.staff-body .field.is-invalid textarea {
  border-color: var(--book-err, #9b2c2c);
}

.staff-app.is-nav .staff-top-action {
  visibility: hidden;
}
