:root {
  --ink: #111014;
  --muted: #645a5a;
  --line: #e6cfbf;
  --blush: #fbf0ef;
  --blush-deep: #f4ddd9;
  --gold: #c99655;
  --red: #b98943;
  --red-dark: #967036;
  --white: #fff;
  --shadow: 0 20px 50px rgba(93, 45, 38, 0.14);
  --space-panel: 1rem;
  --space-control: 0.75rem;
  --control-height: 2.75rem;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 240, 239, 0.42), rgba(255, 255, 255, 0) 38rem),
    var(--white);
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

#services {
  scroll-margin-top: 5.25rem;
}

#gallery {
  scroll-margin-top: 5.25rem;
}

#about {
  scroll-margin-top: 5.25rem;
}

#booking {
  scroll-margin-top: 5.25rem;
}

#contact {
  scroll-margin-top: 5.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 5.25rem;
  padding: 0 7.5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(230, 207, 191, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span,
.brand strong,
.hero h1,
.hero h1 span {
  color: var(--gold);
  background:
    radial-gradient(circle at 12% 24%, #ffe6a3 0 0.028rem, transparent 0.044rem),
    radial-gradient(circle at 32% 68%, #f6c76d 0 0.026rem, transparent 0.042rem),
    radial-gradient(circle at 52% 36%, #ffe8a8 0 0.024rem, transparent 0.04rem),
    radial-gradient(circle at 72% 18%, #e7ad50 0 0.028rem, transparent 0.044rem),
    radial-gradient(circle at 88% 72%, #f8d58a 0 0.022rem, transparent 0.038rem),
    radial-gradient(circle at 96% 42%, #ffe0a0 0 0.02rem, transparent 0.036rem),
    radial-gradient(circle at 18% 82%, #d99b3e 0 0.026rem, transparent 0.042rem),
    radial-gradient(circle at 64% 78%, #f4c26c 0 0.022rem, transparent 0.038rem),
    linear-gradient(145deg, #9a6420 0%, #bc812f 25%, #dba252 50%, #bd7e2c 75%, #a46b24 100%);
  background-size: 0.46rem 0.46rem, 0.54rem 0.54rem, 0.62rem 0.62rem, 0.5rem 0.5rem, 0.58rem 0.58rem, 0.42rem 0.42rem, 0.66rem 0.66rem, 0.48rem 0.48rem, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  text-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red);
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(201, 150, 85, 0.55);
  border-radius: 0.25rem;
  color: var(--red);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -0.45rem;
}

.menu-toggle-lines::after {
  top: 0.45rem;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: translateY(0.45rem) rotate(90deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  opacity: 0;
}

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

.site-header .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.25rem;
  padding: 0 2.15rem;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(157, 15, 28, 0.18);
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button-small {
  min-height: 3rem;
  padding-inline: 1.65rem;
}

.button-compact {
  min-height: 2.45rem;
  padding-inline: 1rem;
  font-size: 1rem;
}

.button-secondary {
  color: var(--red);
  background: var(--white);
  border: 1px solid rgba(201, 150, 85, 0.65);
  box-shadow: none;
}

.button-danger {
  color: var(--white);
  background: #9f2f2f;
  box-shadow: 0 10px 24px rgba(118, 31, 31, 0.18);
}

.button-warning {
  color: #4a2607;
  background: #facc15;
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.18);
}

.button:hover,
.button:focus-visible {
  background: var(--red-dark);
  box-shadow: 0 14px 30px rgba(157, 15, 28, 0.24);
  transform: translateY(-1px);
}

.button-danger:hover,
.button-danger:focus-visible {
  background: #7f2525;
}

.button-warning:hover,
.button-warning:focus-visible {
  color: #2f1602;
  background: #eab308;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(28rem, 1.08fr) minmax(24rem, 1fr);
  min-height: clamp(38rem, 74vh, 47.5rem);
  border-bottom: 0.35rem solid var(--white);
  background: var(--blush);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(2rem, 4vw, 3.75rem) 5.5vw clamp(3rem, 6vw, 6rem) 8.6vw;
  background:
    radial-gradient(circle at 4% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 17rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(251, 240, 239, 0.78));
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.8rem, 5.1vw, 5.25rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.flourish {
  width: min(31rem, 100%);
  height: 1.25rem;
  margin: 2rem 0 1.4rem;
  background:
    linear-gradient(90deg, var(--gold), var(--gold)) left 50% / 42% 1px no-repeat,
    linear-gradient(90deg, var(--gold), var(--gold)) right 50% / 42% 1px no-repeat;
  position: relative;
}

.flourish::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  content: "";
  background: var(--blush);
}

.hero-line {
  max-width: 35rem;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 34rem;
  margin: 1.45rem 0 1.75rem;
  color: #2d2929;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions .button {
  min-width: 13rem;
}

.hero-image {
  min-height: 35rem;
  background:
    linear-gradient(90deg, rgba(251, 240, 239, 0.92) 0%, rgba(251, 240, 239, 0.15) 22%, rgba(251, 240, 239, 0) 46%),
    url("assets/dior-nails-hero.png") center / cover no-repeat;
}

.services {
  padding: clamp(1.8rem, 4vw, 3.5rem) 7.5vw clamp(3rem, 6vw, 5.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--blush) 20%, #fbefee 100%);
  border-top: 1px solid rgba(230, 207, 191, 0.75);
  border-bottom: 1px solid rgba(230, 207, 191, 0.75);
}

.services h2,
.gallery h2,
.about h2,
.booking h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery h2 {
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.36em;
}

.services h2 {
  text-align: center;
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: 0;
  text-transform: none;
}

.service-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 84rem;
  margin: 1.45rem auto 0;
}

.service-category {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(230, 207, 191, 0.95);
  box-shadow: 0 16px 36px rgba(93, 45, 38, 0.07);
}

.service-category-wide {
  grid-column: 1 / -1;
}

.service-category-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.service-category-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 150, 85, 0.65);
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.service-category-heading p {
  margin: 0 0 0.25rem;
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.service-category-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about p,
.footer p,
.booking p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.price-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 4vw, 4rem);
}

.price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  min-height: 2.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(230, 207, 191, 0.75);
}

.price-list li:last-child {
  border-bottom: 0;
}

.price-list span {
  min-width: 0;
  color: #332c2d;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.price-list strong {
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.gallery {
  padding: 1.75rem 7.5vw 0.75rem;
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 84rem;
  margin: 0 auto 1.1rem;
}

.section-heading h2 {
  grid-column: 2;
}

.section-heading a {
  justify-self: end;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.style-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 84rem;
  margin: 0 auto;
}

.style {
  position: relative;
  min-height: 8.5rem;
  margin: 0;
  overflow: hidden;
  background-image: url("assets/dior-nails-hero.png");
  background-size: 240%;
  box-shadow: inset 0 -4rem 3rem rgba(0, 0, 0, 0.24);
}

.style-1 {
  background-position: 58% 46%;
}

.style-2 {
  background-position: 42% 52%;
  filter: saturate(1.25) hue-rotate(-18deg);
}

.style-3 {
  background-position: 67% 42%;
  filter: saturate(1.06) contrast(1.03);
}

.style-4 {
  background-position: 78% 50%;
}

.style-5 {
  background-position: 88% 54%;
  filter: contrast(1.14) saturate(1.2) brightness(0.86);
}

.style figcaption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.7rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.72fr);
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 7.5vw;
  background: var(--white);
}

.about h2 {
  max-width: 42rem;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 4.5vw, 5.2rem);
  letter-spacing: 0;
  text-transform: none;
}

.about p {
  max-width: 42rem;
  font-size: 1.08rem;
}

.about dl {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.about dl div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.about dt {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about dd {
  margin: 0;
  color: var(--muted);
}

.booking {
  display: grid;
  grid-template-columns: minmax(18rem, 0.64fr) minmax(44rem, 1.36fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
  padding: 1.65rem 7.5vw;
  background: linear-gradient(90deg, #fff, var(--blush), #fff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.booking-title {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.booking-title > span {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border: 2px solid var(--gold);
  border-radius: 0.5rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 0.65rem, rgba(201, 150, 85, 0.85) 0.65rem 0.8rem) 0.7rem 1.15rem / 1.9rem 0.18rem no-repeat,
    repeating-linear-gradient(90deg, rgba(201, 150, 85, 0.8) 0 0.25rem, transparent 0.25rem 0.55rem) 0.7rem 1.8rem / 2rem 1.35rem no-repeat;
}

.booking h2 {
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
}

.booking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  align-content: center;
  min-height: 7rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(230, 207, 191, 0.82);
  border-radius: 0.28rem;
}

.booking-panel-copy {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.booking-panel p {
  max-width: 42rem;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.booking-actions .button {
  min-width: 13rem;
}

.site-qr-card {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  width: clamp(6.75rem, 9vw, 8.6rem);
  padding: 0.58rem;
  border: 1px solid rgba(230, 207, 191, 0.92);
  border-radius: 0.32rem;
  color: var(--red);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(93, 45, 38, 0.08);
}

.site-qr-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.16rem;
}

.site-qr-card span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.booking-form {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(11rem, 1fr) minmax(10rem, 1fr) minmax(14rem, 1.25fr);
  gap: 1rem;
  align-items: end;
}

.booking-form label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.booking-form label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-width: 0;
  min-height: 3.1rem;
  border: 1px solid #ddbfb0;
  border-radius: 0.28rem;
  padding: 0 0.9rem;
  color: #332c2d;
  background: var(--white);
  font: 500 0.92rem/1 Inter, system-ui, sans-serif;
}

input[list] {
  padding-right: 2.2rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--red) 50%) calc(100% - 1rem) 50% / 0.42rem 0.42rem no-repeat,
    linear-gradient(135deg, var(--red) 50%, transparent 50%) calc(100% - 0.72rem) 50% / 0.42rem 0.42rem no-repeat,
    var(--white);
}

.search-select {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.search-select input {
  padding-right: 2.2rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--red) 50%) calc(100% - 1rem) 50% / 0.42rem 0.42rem no-repeat,
    linear-gradient(135deg, var(--red) 50%, transparent 50%) calc(100% - 0.72rem) 50% / 0.42rem 0.42rem no-repeat,
    var(--white);
}

.search-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 15;
  display: none;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(230, 207, 191, 0.95);
  border-radius: 0.3rem;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(93, 45, 38, 0.14);
  max-width: 100%;
}

.search-select-menu.is-open {
  display: grid;
  gap: 0.2rem;
}

.search-select-group {
  display: grid;
  gap: 0.15rem;
}

.search-select-group + .search-select-group {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.search-select-group p {
  margin: 0;
  padding: 0.35rem 0.55rem 0.25rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-select-menu button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.22rem;
  padding: 0 0.8rem;
  color: #332c2d;
  background: transparent;
  cursor: pointer;
  font: 700 0.92rem/1.2 Inter, system-ui, sans-serif;
  text-align: left;
}

.search-select-menu button:hover,
.search-select-menu button:focus-visible {
  color: var(--red);
  background: var(--blush);
}

.search-select-empty {
  margin: 0;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="date"] {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0.45rem;
  padding-left: 0.9rem;
  padding-right: 2.2rem;
  overflow: hidden;
  line-height: 3.1rem;
  text-align: left;
  text-align-last: left;
}

.app-page input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0.75rem;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
}

input[type="date"]::-webkit-date-and-time-value {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  line-height: 3.1rem;
  text-align: left;
}

select:focus,
input:focus {
  outline: 2px solid rgba(157, 15, 28, 0.18);
  border-color: var(--red);
}

textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #ddbfb0;
  border-radius: 0.28rem;
  padding: 0.9rem;
  color: #332c2d;
  background: var(--white);
  font: 500 0.92rem/1.45 Inter, system-ui, sans-serif;
  resize: vertical;
}

textarea:focus {
  outline: 2px solid rgba(157, 15, 28, 0.18);
  border-color: var(--red);
}

.booking-status {
  grid-column: 2;
  min-height: 1.4rem;
  font-weight: 700;
}

.app-page {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(251, 240, 239, 0.78), rgba(255, 255, 255, 0) 27rem),
    var(--white);
}

.app-nav-links {
  justify-self: center;
}

.booking-app-shell,
.staff-shell {
  width: min(92rem, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 5vw 5rem;
  overflow-x: hidden;
}

.booking-hero,
.staff-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.booking-hero h1,
.portal-login h1,
.staff-dashboard-head h1 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.booking-hero p,
.portal-login p,
.staff-dashboard-head p,
.appointment-summary p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.booking-hero-panel,
.appointment-summary,
.portal-login,
.calendar-summary article,
.calendar-column,
.calendar-day {
  border: 1px solid rgba(230, 207, 191, 0.88);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 36px rgba(93, 45, 38, 0.08);
}

.booking-hero-panel {
  min-width: 18rem;
  padding: 1.2rem;
}

.booking-hero-panel span,
.booking-hero-panel strong,
.calendar-summary span,
.form-section label span,
.pin-form label span,
.calendar-toolbar label span {
  display: block;
}

.booking-hero-panel span,
.calendar-summary span,
.form-section label span,
.pin-form label span,
.calendar-toolbar label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-hero-panel strong {
  margin: 0.2rem 0 0.55rem;
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.05rem;
  font-weight: 800;
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.36fr);
  gap: 1.2rem;
  align-items: start;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.appointment-form {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
}

.form-section {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border: 1px solid rgba(230, 207, 191, 0.88);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.86);
}

.form-section h2,
.appointment-summary h2,
.confirmation-panel h2,
.calendar-day-heading h2,
.calendar-column h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.form-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.form-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
}

.form-section label,
.pin-form label,
.calendar-toolbar label {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.sms-consent {
  display: grid !important;
  grid-template-columns: 0.95rem minmax(0, 1fr);
  gap: 0.5rem !important;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fffaf8;
}

.app-page .sms-consent input[type="checkbox"] {
  width: 0.82rem !important;
  min-width: 0.82rem !important;
  max-width: 0.82rem !important;
  height: 0.82rem !important;
  min-height: 0.82rem !important;
  margin: 0;
  accent-color: var(--red);
}

.sms-consent span {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
  align-self: start;
  text-transform: none !important;
}

.birthday-fieldset {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.birthday-fieldset > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.birthday-grid {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1.25fr) minmax(4.8rem, 0.65fr) minmax(5.8rem, 0.8fr);
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}

.birthday-grid label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.birthday-grid label > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.birthday-grid select,
.birthday-grid input {
  min-height: 2.8rem;
  padding: 0 0.7rem;
}

.birthday-fieldset-wide {
  max-width: 31rem;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.6rem;
}

.time-slot,
.segmented-control button {
  min-height: 2.9rem;
  border: 1px solid rgba(201, 150, 85, 0.62);
  border-radius: 0.25rem;
  color: var(--red);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.time-slot:hover,
.time-slot:focus-visible,
.time-slot.is-selected,
.segmented-control button.is-active {
  color: var(--white);
  background: var(--red);
}

.time-slot:disabled {
  color: #9f9393;
  background: #f5eeee;
  border-color: #ead9cf;
  cursor: not-allowed;
}

.slot-empty {
  margin: 0;
  color: var(--muted);
}

.booking-submit {
  justify-self: start;
  min-width: min(100%, 18rem);
}

.staff-portal-side-tab {
  position: fixed;
  right: 0;
  bottom: clamp(1.25rem, 4vw, 2rem);
  z-index: 18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(201, 150, 85, 0.42);
  border-right: 0;
  border-radius: 0.35rem 0 0 0.35rem;
  color: rgba(150, 112, 54, 0.78);
  background: rgba(255, 250, 248, 0.86);
  box-shadow: 0 10px 24px rgba(93, 45, 38, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateX(0.15rem);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.staff-portal-side-tab:hover,
.staff-portal-side-tab:focus-visible {
  color: var(--white);
  background: var(--red);
  transform: translateX(0);
}

.checkin-page {
  min-height: 100vh;
}

.checkin-header {
  grid-template-columns: 1fr auto;
}

.checkin-shell {
  display: grid;
  place-items: center;
  width: min(72rem, 100%);
  min-height: calc(100vh - 11rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 4rem) 5vw;
  overflow-x: hidden;
}

.checkin-card {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  width: min(46rem, 100%);
  min-height: 0;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border: 1px solid rgba(230, 207, 191, 0.9);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.checkin-page.is-checkin-complete .checkin-shell {
  min-height: calc(100vh - 5.25rem);
  padding-block: clamp(0.75rem, 2vh, 1.25rem);
}

.checkin-page.is-checkin-complete .checkin-card {
  place-items: center;
  width: min(54rem, 100%);
  min-height: min(34rem, calc(100vh - 8rem));
  padding: clamp(0.9rem, 2.5vw, 1.6rem);
  cursor: pointer;
}

.checkin-page.is-checkin-complete .checkin-intro,
.checkin-page.is-checkin-complete .form-status {
  display: none;
}

.checkin-intro {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.checkin-intro > span,
.checkin-phone-form label span,
.checkin-profile-form label span,
.checkin-points span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkin-intro h1,
.checkin-result h2,
.checkin-form-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
}

.checkin-intro h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.checkin-intro p,
.checkin-form-heading p,
.checkin-result p,
.checkin-muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkin-phone-form,
.checkin-profile-form,
.checkin-birthday-form {
  display: grid;
  gap: 1rem;
}

.checkin-phone-form label,
.checkin-profile-form label,
.checkin-birthday-form label {
  display: grid;
  gap: 0.45rem;
}

.checkin-phone-form input[type="tel"] {
  height: clamp(4rem, 9vw, 5.5rem);
  text-align: center;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.checkin-phone-form input[readonly] {
  color: var(--ink);
  background: var(--white);
  cursor: default;
}

.phone-dial-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, clamp(4.25rem, 14vw, 5.7rem)));
  gap: clamp(0.55rem, 1.6vw, 0.85rem);
  width: min(100%, 28rem);
  justify-content: center;
  justify-self: center;
}

.phone-dial-pad button {
  display: grid;
  place-items: center;
  width: clamp(4.25rem, 14vw, 5.7rem);
  height: clamp(4.25rem, 14vw, 5.7rem);
  min-height: 0;
  border: 1px solid rgba(201, 150, 85, 0.45);
  border-radius: 50%;
  color: var(--red);
  background: #fffaf8;
  box-shadow: 0 10px 20px rgba(93, 45, 38, 0.08);
  font-size: clamp(1.4rem, 4vw, 2.15rem);
  font-weight: 900;
  cursor: pointer;
}

.phone-dial-pad button[data-dial-action] {
  color: var(--muted);
  font-size: clamp(0.72rem, 2.2vw, 0.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone-dial-pad button:hover,
.phone-dial-pad button:focus-visible {
  color: var(--white);
  background: var(--red);
  outline: 0;
}

.checkin-phone-form .button,
.checkin-actions .button {
  width: 100%;
  min-height: 3.4rem;
}

.checkin-form-heading {
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.checkin-birthday-form {
  width: min(34rem, 100%);
  justify-self: center;
}

.checkin-form-heading h2,
.checkin-result h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

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

.checkin-result {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.2rem;
  border: 1px solid rgba(201, 150, 85, 0.38);
  border-radius: 0.45rem;
  background: #fffaf8;
}

.checkin-page.is-checkin-complete .checkin-result {
  width: min(38rem, 100%);
  min-height: 0;
  align-content: center;
  gap: clamp(0.55rem, 1.6vh, 1rem);
  border: 0;
  padding: 0;
  background: transparent;
}

.checkin-success-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 2rem;
  font-weight: 900;
}

.checkin-page.is-checkin-complete .checkin-success-mark {
  width: clamp(3.7rem, 9vw, 5.5rem);
  height: clamp(3.7rem, 9vw, 5.5rem);
  font-size: clamp(1.45rem, 3.8vw, 2.25rem);
}

.checkin-page.is-checkin-complete .checkin-result h2 {
  font-size: clamp(2.25rem, 6vw, 4.6rem);
}

.checkin-points {
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 18rem);
  padding: 1rem;
  border: 1px solid rgba(230, 207, 191, 0.88);
  border-radius: 0.35rem;
  background: var(--white);
}

.checkin-points strong {
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4rem;
  line-height: 0.85;
}

.checkin-page.is-checkin-complete .checkin-points {
  min-width: min(100%, 20rem);
  padding: 0.75rem;
}

.checkin-page.is-checkin-complete .checkin-points strong {
  font-size: clamp(3rem, 8vw, 5.2rem);
}

.checkin-reset-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.checkin-page.is-checkin-complete .checkin-appointments {
  gap: 0.35rem;
}

.checkin-page.is-checkin-complete .checkin-appointments article {
  padding: 0.55rem;
}

.checkin-appointments {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
}

.checkin-appointments > strong {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkin-appointments article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--white);
}

.checkin-appointments article span {
  color: var(--red);
  font-weight: 900;
}

.checkin-appointments article p {
  margin: 0;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-weight: 800;
}

.form-status[data-type="error"] {
  color: #a22929;
}

.appointment-summary {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.appointment-summary dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.appointment-summary dl div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.appointment-summary dt {
  color: var(--red);
  font-weight: 800;
}

.appointment-summary dd {
  margin: 0;
  color: var(--muted);
}

.confirmation-panel {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid rgba(230, 207, 191, 0.88);
  background: var(--white);
  box-shadow: var(--shadow);
}

.confirmation-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.manage-booking {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border: 1px solid rgba(230, 207, 191, 0.88);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.86);
}

.manage-booking-heading h2,
.manage-appointment-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.manage-booking-heading h2 {
  font-size: 1.8rem;
}

.manage-booking-heading p,
.manage-appointment-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.manage-booking-form {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(12rem, 18rem) auto;
  gap: 0.8rem;
  align-items: end;
}

.manage-name-grid {
  gap: 0.8rem;
}

.manage-booking-form label {
  display: grid;
  gap: 0.4rem;
}

.manage-booking-form label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manage-results {
  display: grid;
  gap: 0.75rem;
}

.manage-appointment-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(230, 207, 191, 0.9);
  border-left: 0.28rem solid var(--gold);
  border-radius: 0.3rem;
  background: var(--white);
}

.manage-appointment-card > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 900;
}

.manage-appointment-card .button {
  justify-self: start;
  min-height: 2.8rem;
  font-size: 1.05rem;
}

.cancel-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 16, 20, 0.38);
}

.cancel-modal-card {
  display: grid;
  gap: 1rem;
  width: min(31rem, 100%);
  border: 1px solid rgba(230, 207, 191, 0.95);
  border-radius: 0.35rem;
  padding: clamp(1.2rem, 4vw, 1.7rem);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(49, 31, 29, 0.22);
}

.cancel-modal-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.cancel-modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cancel-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.staff-booking-modal {
  align-items: start;
  overflow-y: auto;
  padding-block: 2rem;
}

.staff-booking-card {
  width: min(48rem, 100%);
  max-height: none;
}

.staff-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.settings-menu-wrap {
  position: relative;
  display: flex;
  width: 9.625rem;
}

.settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0 1rem;
  background: var(--white);
  color: var(--red);
  font: 700 1.28rem/1 "Cormorant Garamond", Georgia, serif;
  cursor: pointer;
}

.staff-head-actions > .button {
  width: 9.625rem;
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 75;
  display: grid;
  width: min(19rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.35rem;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(49, 31, 29, 0.2);
}

.settings-dropdown[hidden] {
  display: none;
}

.settings-dropdown button,
.settings-dropdown-link {
  display: grid;
  gap: 0.2rem;
  min-height: 3.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0.25rem;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-dropdown button:last-child,
.settings-dropdown-link:last-child {
  border-bottom: 0;
}

.settings-dropdown button:hover,
.settings-dropdown button:focus-visible,
.settings-dropdown-link:hover,
.settings-dropdown-link:focus-visible {
  background: #fff8ef;
  color: var(--red);
}

.settings-dropdown strong {
  font-size: 1rem;
}

.settings-dropdown span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.settings-button span:first-child {
  font-size: 1.12rem;
  line-height: 1;
}

.settings-button:hover,
.settings-button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.people-modal {
  align-items: stretch;
  padding: 0.75rem;
}

.people-modal-card {
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 96rem;
  height: calc(100vh - 1.5rem);
  max-height: none;
  margin: auto;
  overflow: hidden;
}

.people-modal-head,
.people-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.people-modal-head span,
.people-form label > span,
.people-list-heading span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.people-modal-head h2,
.people-form h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.people-modal-head p {
  max-width: 48rem;
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.people-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: 1rem;
  height: auto;
  min-height: 0;
}

.people-modal-body {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.people-modal-body .people-layout {
  height: 100%;
}

.people-list-panel,
.people-form {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.85rem;
  background: #fffdfc;
}

.people-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  overflow: hidden;
}

.people-list-heading input {
  width: min(14rem, 55%);
  min-height: 2.5rem;
}

.people-list-tools {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  width: min(26rem, 68%);
}

.people-list-tools input {
  width: min(14rem, 100%);
}

.people-list-heading strong {
  display: block;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
}

.people-records {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 0.45rem;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.people-record-group {
  display: grid;
  gap: 0.45rem;
}

.people-record-group + .people-record-group {
  margin-top: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.people-record-group h3 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0.45rem 0.55rem;
  color: var(--red);
  background: #fff8f3;
  border-left: 0.2rem solid var(--gold);
  font: 900 0.74rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.people-record-group-list {
  display: grid;
  grid-auto-rows: max-content;
  gap: 0.45rem;
}

.settings-search {
  position: relative;
  min-width: 0;
}

.settings-search::after {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.settings-search input {
  padding-right: 2.2rem;
  text-transform: none;
}

.people-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.75rem, auto) auto;
  gap: 0.65rem;
  align-items: start;
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.55rem 0.65rem;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.people-record[hidden],
.people-record-group[hidden],
.people-filter-empty[hidden] {
  display: none !important;
}

.people-record-info,
.people-record span,
.people-record small {
  display: block;
  min-width: 0;
}

.people-record-info > strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.people-record-details {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.28rem;
}

.people-record small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.people-record em {
  display: grid;
  gap: 0.12rem;
  max-width: 8rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.people-record em span {
  display: block;
}

.people-record-actions {
  display: flex !important;
  gap: 0.3rem;
}

.people-record-actions button {
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  padding: 0 0.55rem;
  background: var(--white);
  color: var(--red);
  font: 800 0.7rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.people-record-actions button:last-child {
  color: #9b2f2f;
}

.people-record-actions button:hover,
.people-record-actions button:focus-visible {
  border-color: var(--gold);
  background: #fff8ef;
}

.people-form {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 0;
  overflow-y: auto;
}

.people-form label {
  display: grid;
  gap: 0.35rem;
}

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

.people-check {
  display: grid;
  grid-template-columns: 0.95rem minmax(0, 1fr);
  align-items: start;
  gap: 0.5rem !important;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.5rem;
  overflow: hidden;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
}

.app-page .people-check input[type="checkbox"] {
  width: 0.85rem !important;
  min-width: 0.85rem !important;
  height: 0.85rem !important;
  min-height: 0.85rem !important;
  margin: 0;
}

.people-check span {
  display: block;
  min-width: 0;
  max-width: 100%;
  align-self: start;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0 !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: normal;
  text-transform: none !important;
}

.people-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.staff-booking-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.staff-booking-head span,
.staff-booking-form label > span {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-booking-head h2 {
  margin-top: 0.2rem;
}

.staff-booking-form {
  display: grid;
  gap: 1rem;
}

.staff-booking-form small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.staff-customer-search {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fffaf8;
}

.staff-customer-search label,
.staff-booking-form label {
  display: grid;
  gap: 0.35rem;
}

.staff-customer-results {
  display: grid;
  gap: 0.4rem;
  max-height: 13.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.2rem;
}

.staff-customer-results p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-customer-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.28rem;
  padding: 0.58rem 0.65rem;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.staff-customer-results:has(.staff-customer-result) {
  align-content: start;
}

.staff-customer-result {
  min-height: 3rem;
}

.staff-customer-results::-webkit-scrollbar {
  width: 0.42rem;
}

.staff-customer-results::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(185, 137, 67, 0.58);
}

.staff-customer-results::-webkit-scrollbar-track {
  background: rgba(251, 240, 239, 0.72);
}

.staff-customer-result:hover,
.staff-customer-result:focus-visible {
  border-color: var(--gold);
  background: var(--blush);
}

.staff-customer-result-info {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.staff-customer-result-info strong,
.staff-customer-result-info small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-customer-result-info small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.staff-booking-search-select .search-select-menu {
  position: static;
  width: 100%;
  margin-top: 0.35rem;
  box-shadow: 0 12px 28px rgba(93, 45, 38, 0.1);
}

.staff-booking-search-select .search-select-menu button {
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
}

.staff-booking-search-select .search-select-menu button small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.staff-booking-search-select input,
.staff-customer-search input,
[data-people-filter] {
  text-transform: none;
}

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

.staff-booking-wide {
  grid-column: 1 / -1;
}

.staff-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.portal-login {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  margin: 4rem auto;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.pin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

.staff-dashboard {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(12rem, 18rem) minmax(11rem, 14rem);
  gap: 0.8rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(230, 207, 191, 0.88);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.82);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(4.8rem, 1fr));
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--blush);
}

.segmented-control button {
  border-color: transparent;
  box-shadow: none;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 100%;
  min-width: 0;
}

.calendar-summary article {
  padding: 1rem;
}

.calendar-summary strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.calendar-board {
  min-height: 16rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.calendar-day {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  padding: 1rem;
}

.calendar-board.is-calendar-maximized {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  max-width: none;
  overflow: auto;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(251, 240, 239, 0.88), rgba(255, 255, 255, 0) 28rem),
  var(--white);
}

.calendar-board.is-calendar-maximized .staff-calendar-layout {
  grid-template-columns: 1fr;
}

.calendar-board.is-calendar-maximized .schedule-calendar {
  --schedule-column-width: max(9.2rem, calc((100vw - var(--time-column-width) - 2rem) / var(--schedule-columns)));
  height: calc(100vh - 6.5rem);
  overflow-y: auto;
}

.calendar-board.is-calendar-maximized .week-detail-panel {
  display: none;
}

.calendar-board.is-calendar-maximized.has-booking-detail .week-detail-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1020;
  display: grid;
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.35rem;
  box-shadow: 0 28px 80px rgba(49, 31, 29, 0.34);
}

body.calendar-maximized {
  overflow: hidden;
}

body.calendar-maximized .cancel-modal {
  z-index: 1100;
}

.calendar-day-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.calendar-day-heading .calendar-heading-main,
.month-calendar-heading .calendar-heading-main {
  grid-column: 2;
  justify-items: center;
  text-align: center;
}

.calendar-day-heading .calendar-maximize-button,
.month-calendar-heading .calendar-maximize-button {
  grid-column: 3;
  justify-self: end;
}

.calendar-day-heading span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.calendar-heading-main {
  display: grid;
  gap: 0.24rem;
}

.calendar-heading-title {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.calendar-navigation-button {
  min-width: 7rem;
  min-height: 2.75rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(185, 137, 67, 0.72);
  border-radius: 0.35rem;
  padding: 0.45rem 0.9rem;
  color: var(--red);
  background: linear-gradient(180deg, #ffffff, #fff8f3);
  box-shadow: 0 6px 16px rgba(93, 45, 38, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.calendar-navigation-button b {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 0.7;
}

.calendar-navigation-button span,
.calendar-maximize-button span {
  color: inherit;
}

.calendar-navigation-button:hover,
.calendar-navigation-button:focus-visible {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(150, 112, 54, 0.2);
  transform: translateY(-1px);
}

.calendar-maximize-button {
  flex: 0 0 auto;
  min-height: 2.3rem;
  border: 1px solid rgba(201, 150, 85, 0.62);
  border-radius: 0.28rem;
  padding: 0 0.8rem;
  color: var(--red);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-maximize-button:hover,
.calendar-maximize-button:focus-visible {
  color: var(--white);
  background: var(--red);
}

.schedule-calendar {
  --minute-height: 1.25px;
  --calendar-pad: 0.75rem;
  --time-column-width: 4.05rem;
  --schedule-column-width: clamp(10.5rem, calc((100vw - 29rem) / var(--schedule-columns)), 16rem);
  --schedule-grid-width: calc(var(--time-column-width) + (var(--schedule-columns) * var(--schedule-column-width)));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(230, 207, 191, 0.9);
  border-radius: 0.35rem;
  background: var(--white);
}

.schedule-header {
  display: grid;
  grid-template-columns: var(--time-column-width) repeat(var(--schedule-columns), var(--schedule-column-width));
  width: var(--schedule-grid-width);
  min-width: var(--schedule-grid-width);
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fffaf8;
  border-bottom: 1px solid var(--line);
}

.schedule-corner {
  border-right: 1px solid var(--line);
  background: #fffaf8;
}

.schedule-heading {
  min-width: 0;
  min-height: 3.3rem;
  display: grid;
  place-items: center;
  padding: 0.48rem 0.45rem;
  color: var(--red);
  border-right: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.schedule-heading > span {
  display: block;
  margin-top: 0.18rem;
  color: #7a7373;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.schedule-heading-off {
  color: #716b6b;
  background: #eceaea;
}

.schedule-body {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-column-width) repeat(var(--schedule-columns), var(--schedule-column-width));
  width: var(--schedule-grid-width);
  min-width: var(--schedule-grid-width);
}

.current-time-marker {
  position: absolute;
  z-index: 6;
  left: var(--time-column-width);
  right: 0;
  top: calc(var(--calendar-pad) + (var(--current-time-offset) * var(--minute-height)));
  height: 1px;
  border-top: 1px solid #3b82f6;
  pointer-events: none;
}

.current-time-marker span {
  position: absolute;
  top: -5px;
  left: -1px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #dc2626;
}

.schedule-times,
.schedule-column {
  position: relative;
  min-height: calc((var(--calendar-minutes) * var(--minute-height)) + (var(--calendar-pad) * 2));
}

.schedule-times {
  border-right: 1px solid var(--line);
  background: #fffaf8;
}

.schedule-times span {
  position: absolute;
  top: calc(var(--calendar-pad) + (var(--time-offset) * var(--minute-height)));
  right: 0.45rem;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.schedule-column {
  width: var(--schedule-column-width);
  min-width: var(--schedule-column-width);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 240, 239, 0.22), rgba(255, 255, 255, 0));
}

.schedule-column-off {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(123, 123, 123, 0.06) 0,
      rgba(123, 123, 123, 0.06) 0.45rem,
      rgba(238, 236, 236, 0.42) 0.45rem,
      rgba(238, 236, 236, 0.42) 0.9rem
    ),
    #f1efef;
}

.schedule-column-off .schedule-line {
  border-color: rgba(156, 150, 150, 0.42);
}

.schedule-off-message {
  position: sticky;
  top: 1rem;
  z-index: 2;
  width: fit-content;
  margin: 1rem auto;
  border: 1px solid #c8c3c3;
  border-radius: 0.3rem;
  padding: 0.45rem 0.65rem;
  color: #716b6b;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-unavailable-block {
  position: absolute;
  z-index: 2;
  left: 0.28rem;
  right: 0.28rem;
  top: calc(var(--calendar-pad) + (var(--event-start) * var(--minute-height) + 0.16rem));
  min-height: calc(var(--event-duration) * var(--minute-height) - 0.32rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(107, 114, 128, 0.65);
  border-radius: 0.24rem;
  padding: 0.35rem;
  color: #4b5563;
  background: repeating-linear-gradient(
    -45deg,
    rgba(229, 231, 235, 0.88),
    rgba(229, 231, 235, 0.88) 0.45rem,
    rgba(249, 250, 251, 0.88) 0.45rem,
    rgba(249, 250, 251, 0.88) 0.9rem
  );
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.schedule-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--calendar-pad) + (var(--line-offset) * var(--minute-height)));
  border-top: 1px solid rgba(230, 207, 191, 0.72);
}

.schedule-create-slot {
  position: absolute;
  z-index: 1;
  left: 0.18rem;
  right: 0.18rem;
  top: calc(var(--calendar-pad) + (var(--event-start) * var(--minute-height)));
  height: calc(15 * var(--minute-height));
  min-height: 0;
  border: 0;
  border-radius: 0.18rem;
  padding: 0;
  background: transparent;
  cursor: crosshair;
}

.schedule-create-slot:hover,
.schedule-create-slot:focus-visible {
  outline: 1px dashed rgba(185, 137, 67, 0.8);
  background: rgba(201, 150, 85, 0.12);
}

.schedule-event {
  position: absolute;
  z-index: 3;
  left: 0.28rem;
  right: 0.28rem;
  top: calc(var(--calendar-pad) + (var(--event-start) * var(--minute-height) + 0.16rem));
  min-height: calc(var(--event-duration) * var(--minute-height) - 0.32rem);
  display: grid;
  align-content: start;
  gap: 0.08rem;
  overflow: hidden;
  padding: 0.36rem 1.9rem 0.42rem 0.42rem;
  color: var(--event-ink, #3a2719);
  border: 1px solid var(--event-border, rgba(201, 150, 85, 0.75));
  border-left: 0.22rem solid var(--event-border, var(--gold));
  border-radius: 0.26rem;
  background: var(--event-bg, #fff3dc);
  box-shadow: 0 10px 20px rgba(93, 45, 38, 0.12);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.checkin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: max-content;
  max-width: 100%;
  min-height: 1.7rem;
  border: 1px solid #d8c7be;
  border-radius: 0.28rem;
  padding: 0.18rem 0.44rem;
  color: #5c5557;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 16px rgba(93, 45, 38, 0.08);
  font: 900 0.68rem/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.checkin-badge > span {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid currentColor;
  border-radius: 0.16rem;
  font-size: 0.82rem;
  line-height: 1;
}

.checkin-badge-pending > span {
  background: var(--white);
}

.checkin-badge-checked-in {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.5);
  background: #dcfce7;
}

.checkin-badge-missed {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.55);
  background: #fee2e2;
}

.checkin-badge-compact {
  position: absolute;
  right: 0.34rem;
  bottom: 0.32rem;
  z-index: 2;
  min-height: 1.18rem;
  padding: 0.08rem;
  border-radius: 0.2rem;
}

.checkin-badge-compact > span {
  width: 0.9rem;
  height: 0.9rem;
  font-size: 0.68rem;
}

.schedule-event .checkin-badge {
  line-height: 1;
}

.schedule-event .checkin-badge > span {
  color: inherit;
  line-height: 1;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.schedule-event strong {
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem;
  align-items: center;
  font-size: 0.68rem;
  line-height: 1.12;
}

.schedule-event em {
  display: inline-flex;
  align-items: center;
  min-height: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--event-border, #c99655) 65%, #ffffff);
  border-radius: 999px;
  padding: 0 0.28rem;
  color: var(--event-ink, #3a2719);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.schedule-event span {
  color: color-mix(in srgb, var(--event-ink, #665241) 78%, #ffffff);
  font-size: 0.62rem;
  line-height: 1.14;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-event-notes {
  border-top: 1px solid color-mix(in srgb, var(--event-border, #c99655) 42%, #ffffff);
  padding-top: 0.16rem;
}

.schedule-event-compact {
  gap: 0.05rem;
  padding: 0.28rem 1.55rem 0.34rem 0.34rem;
  border-left-width: 0.18rem;
}

.schedule-event-compact strong {
  font-size: 0.64rem;
}

.schedule-event-compact span {
  font-size: 0.58rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.32fr);
  gap: 1rem;
  align-items: start;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.staff-calendar-layout > * {
  min-width: 0;
}

.staff-calendar-layout-wide {
  grid-template-columns: 1fr;
}

.staff-calendar-layout-wide .schedule-calendar {
  --schedule-column-width: minmax(22rem, 1fr);
}

.staff-calendar-layout-wide .week-detail-panel {
  position: static;
}

.week-detail-panel {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 0.9rem;
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--event-border, rgba(230, 207, 191, 0.9));
  border-left: 0.32rem solid var(--event-border, var(--gold));
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--event-bg, #ffffff) 42%, #ffffff), #ffffff 48%),
    var(--white);
  box-shadow: 0 16px 36px rgba(93, 45, 38, 0.08);
}

.week-detail-panel > span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
}

.week-detail-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.detail-close-button {
  display: none;
}

.calendar-board.is-calendar-maximized .detail-close-button {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--event-border, var(--gold));
  border-radius: 0.32rem;
  padding: 0;
  color: var(--event-ink, var(--red));
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-board.is-calendar-maximized .detail-close-button:hover,
.calendar-board.is-calendar-maximized .detail-close-button:focus-visible {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.week-detail-head span {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-edit-form {
  display: grid;
  gap: 0.75rem;
}

.staff-edit-form label {
  display: grid;
  gap: 0.35rem;
}

.staff-edit-form label span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.week-detail-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.week-detail-panel dl {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.week-detail-panel dl div {
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.week-detail-panel dt {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-detail-panel dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.same-time-picker {
  display: grid;
  gap: 0.65rem;
  padding: 0.72rem;
  border: 1px solid color-mix(in srgb, var(--event-border, #c99655) 42%, #ffffff);
  border-radius: 0.32rem;
  background: rgba(255, 255, 255, 0.72);
}

.same-time-picker > div:first-child {
  display: grid;
  gap: 0.12rem;
}

.same-time-picker strong {
  color: var(--red);
  font-size: 0.82rem;
  line-height: 1.2;
}

.same-time-picker span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.same-time-scroll {
  display: flex;
  gap: 0.45rem;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.same-time-scroll button {
  flex: 0 0 min(11rem, 76vw);
  display: grid;
  gap: 0.18rem;
  padding: 0.6rem 0.7rem;
  color: var(--event-ink, var(--red));
  border: 1px solid var(--event-border, var(--gold));
  border-left: 0.25rem solid var(--event-border, var(--gold));
  border-radius: 0.3rem;
  background: var(--event-bg, var(--white));
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.same-time-scroll button.is-selected {
  outline: 2px solid var(--event-border, var(--gold));
  outline-offset: 2px;
}

.same-time-scroll button span,
.same-time-scroll button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.appointment-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 0.95rem 2.65rem;
  border: 1px solid var(--event-border, rgba(230, 207, 191, 0.9));
  border-left: 0.28rem solid var(--event-border, var(--gold));
  border-radius: 0.25rem;
  background: var(--event-bg, var(--white));
}

.appointment-card > .checkin-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
}

.appointment-card > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.appointment-card h3,
.appointment-card p {
  margin: 0;
}

.appointment-card h3 {
  font-size: 1.05rem;
}

.appointment-card p,
.appointment-card a {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.calendar-notes {
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.calendar-grid {
  display: grid;
  gap: 0.8rem;
}

.week-grid {
  grid-template-columns: repeat(7, minmax(13rem, 1fr));
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.calendar-column {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 14rem;
  padding: 0.85rem;
}

.month-calendar {
  overflow-x: auto;
  border: 1px solid rgba(230, 207, 191, 0.9);
  border-radius: 0.35rem;
  background: var(--white);
}

.month-calendar-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: #fffaf8;
}

.month-calendar-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.month-calendar-heading span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(6.6rem, 1fr));
  min-width: 46.2rem;
}

.month-weekdays {
  border-bottom: 1px solid var(--line);
  background: var(--blush);
}

.month-weekdays span {
  padding: 0.55rem 0.45rem;
  color: var(--red);
  border-right: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.month-cell {
  min-height: 7.2rem;
  padding: 0.42rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.month-cell-empty {
  background: #fffaf8;
}

.month-date-number {
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
}

.month-events,
.month-work-schedule {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.28rem;
}

.month-events button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  min-height: 1.8rem;
  border: 1px solid rgba(201, 150, 85, 0.52);
  border-left: 0.22rem solid var(--gold);
  border-radius: 0.24rem;
  padding: 0 0.4rem;
  color: #3a2719;
  background: #fff3dc;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.month-events button strong {
  font-size: 0.68rem;
}

.month-events button span {
  min-width: 0;
  overflow: hidden;
  color: #665241;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-events p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.month-work-schedule span,
.month-work-schedule p {
  margin: 0;
  border: 1px solid var(--event-border, rgba(201, 150, 85, 0.52));
  border-left: 0.18rem solid var(--event-border, var(--gold));
  border-radius: 0.22rem;
  padding: 0.24rem 0.32rem;
  color: var(--event-ink, #3a2719);
  background: var(--event-bg, #fff3dc);
  font-size: 0.66rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-work-schedule small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.month-work-schedule p {
  color: var(--muted);
  background: #fffaf8;
  border-color: var(--line);
  border-left-color: var(--line);
}

.manager-schedule {
  display: grid;
  gap: var(--space-panel);
}

.manager-heading,
.manager-panel {
  border: 1px solid rgba(230, 207, 191, 0.9);
  border-radius: 0.35rem;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(93, 45, 38, 0.08);
}

.manager-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-panel);
  align-items: center;
  padding: var(--space-panel);
}

.manager-heading h2,
.manager-panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.manager-heading h2 {
  font-size: 2rem;
}

.manager-heading p,
.manager-panel p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.manager-actions {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) auto;
  gap: 0.75rem;
  align-items: end;
}

.manager-actions label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.manager-actions label span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manager-panel {
  display: grid;
  gap: var(--space-panel);
  min-width: 0;
  padding: var(--space-panel);
  overflow: hidden;
}

.manager-panel h3 {
  color: var(--red);
  font-size: 1.5rem;
}

.manager-table {
  display: grid;
  gap: var(--space-control);
}

.manager-table {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.manager-row {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.manager-row strong {
  color: var(--ink);
}

.weekday-checks {
  display: grid;
  grid-template-columns: repeat(7, minmax(6rem, 1fr));
  gap: 0.4rem;
  min-width: 44rem;
}

.weekday-checks label,
.week-override-cell label {
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--control-height);
  border: 1px solid rgba(230, 207, 191, 0.9);
  border-radius: 0.28rem;
  padding: 0 0.6rem;
  background: #fffaf8;
  color: #332c2d;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.weekday-checks label,
.week-override-cell label {
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.45rem 0.3rem;
  white-space: normal;
  overflow: hidden;
}

.weekday-checks input[type="checkbox"],
.week-override-cell input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  accent-color: var(--red);
}

.app-page .weekday-checks input[type="checkbox"],
.app-page .week-override-cell input[type="checkbox"] {
  width: 0.9rem !important;
  min-width: 0.9rem !important;
  max-width: 0.9rem !important;
  height: 0.9rem !important;
  min-height: 0.9rem !important;
  margin: 0;
}

.weekday-checks label span,
.week-override-cell label span {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.weekday-checks label:has(input:checked),
.week-override-cell label:has(input:checked) {
  border-color: rgba(201, 150, 85, 0.8);
  background: #fff3dc;
  color: var(--red);
}

.manager-week-panel {
  overflow: hidden;
}

.manager-week-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.manager-week-heading h3 {
  text-align: center;
}

.manager-week-button {
  min-width: 7rem;
  gap: 0.35rem;
  white-space: nowrap;
}

.manager-week-button span {
  font-size: 1.25rem;
  line-height: 0.8;
}

.week-override-table {
  display: grid;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.week-override-header,
.week-override-row {
  display: grid;
  grid-template-columns: 6.5rem repeat(7, minmax(9.25rem, 1fr));
  gap: 0.4rem;
  min-width: 72rem;
  align-items: stretch;
}

.week-override-header span {
  display: grid;
  place-content: center;
  gap: 0.12rem;
  min-height: 2.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
}

.week-override-header > span:first-child {
  justify-content: start;
  text-align: left;
}

.manager-date-header strong,
.manager-date-header small {
  display: block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.15;
}

.manager-date-header strong {
  color: var(--red);
}

.manager-date-header small {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}

.calendar-toolbar > *,
.calendar-summary article,
.form-section,
.manager-panel,
.manager-heading {
  min-width: 0;
}

.calendar-toolbar select,
.calendar-toolbar input,
.manager-actions input,
.manager-actions .button,
.segmented-control button {
  min-height: var(--control-height);
}

.week-override-row {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(230, 207, 191, 0.8);
}

.week-override-row strong {
  display: flex;
  align-items: center;
  color: var(--ink);
}

.week-override-cell {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  border: 1px solid rgba(230, 207, 191, 0.9);
  border-radius: 0.3rem;
  padding: 0.45rem;
  background: rgba(255, 250, 248, 0.72);
}

.week-override-cell label {
  min-height: 2.4rem;
  padding-inline: 0.55rem;
  font-size: 0.78rem;
}

.week-unavailable-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  min-width: 0;
}

.week-unavailable-controls > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.week-unavailable-controls input {
  width: 100%;
  min-height: 2.3rem;
  padding-inline: 0.5rem;
  font-size: 0.82rem;
  text-align: center;
}

.week-unavailable-controls .button {
  grid-column: 1 / -1;
  min-height: 2.1rem;
  width: 100%;
  font-size: 0.88rem;
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr minmax(18rem, 1.2fr) 0.8fr;
  gap: 2rem;
  padding: 2.2rem 7.5vw 2.6rem;
  background: var(--white);
}

.footer > div {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.footer > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: min(88rem, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 1.35rem 5vw 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-footer p {
  margin: 0;
}

.footer strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.04rem;
}

.footer-label {
  display: inline-block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.socials {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  list-style: none;
}

.hours-list li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.8rem;
}

.hours-list span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.socials a {
  display: inline-block;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    padding-inline: 5vw;
    max-width: 100%;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 5vw;
    right: 5vw;
    display: grid;
    gap: 0;
    padding: 0.55rem;
    border: 1px solid rgba(230, 207, 191, 0.9);
    border-radius: 0.28rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(93, 45, 38, 0.13);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.6rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.45rem;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 30rem;
    padding-inline: 6vw;
  }

  .hero-image {
    min-height: 26rem;
  }

  .service-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-category,
  .service-category-wide {
    grid-column: 1 / -1;
  }

  .price-list-columns {
    grid-template-columns: 1fr;
  }

  .booking,
  .about {
    grid-template-columns: 1fr;
  }

  .booking-hero,
  .appointment-layout,
  .staff-dashboard-head,
  .calendar-toolbar,
  .staff-calendar-layout,
  .manager-heading {
    grid-template-columns: 1fr;
  }

  .manager-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .appointment-summary {
    position: static;
  }

  .week-detail-panel {
    position: static;
  }

  .booking-status {
    grid-column: 1;
  }

  .manage-booking-form {
    grid-template-columns: 1fr;
  }

  .manage-booking-form .button {
    width: 100%;
  }

  .people-list-heading {
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
  }

  .people-list-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9.5rem, auto);
    width: 100%;
  }

  .people-list-tools input {
    width: 100%;
    max-width: none;
  }

  .people-list-tools .button {
    white-space: nowrap;
  }

  .people-record {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .people-record-actions {
    grid-column: 1 / -1;
  }

  .people-record-actions button {
    flex: 1;
  }

  .booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .people-modal-body {
    overflow-y: auto;
  }

  .people-modal-body .people-layout,
  .people-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .people-list-panel {
    min-height: 28rem;
  }

  .people-records {
    max-height: 20rem;
  }

  .people-form {
    overflow: visible;
  }
}

@media (min-width: 1051px) and (max-width: 1280px) {
  .booking {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .booking-form {
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
  }

  .booking-form .button {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: min(100%, 18rem);
  }

  .booking-actions .button {
    min-width: min(100%, 18rem);
  }
}

@media (min-width: 1600px) {
  :root {
    font-size: 17px;
    --space-panel: 1.15rem;
    --space-control: 0.85rem;
    --control-height: 3rem;
  }

  .site-header {
    padding-inline: max(7.5vw, calc((100vw - 112rem) / 2));
  }

  .booking-app-shell,
  .staff-shell {
    width: min(104rem, 100%);
  }

  .hero {
    max-width: 112rem;
    margin-inline: auto;
  }

  .service-menu,
  .section-heading,
  .style-strip {
    max-width: 96rem;
  }

  .about,
  .booking {
    padding-inline: max(7.5vw, calc((100vw - 112rem) / 2));
  }

  .footer {
    padding-inline: max(7.5vw, calc((100vw - 112rem) / 2));
  }

  .week-override-header,
  .week-override-row {
    grid-template-columns: 7.5rem repeat(7, minmax(8.75rem, 1fr));
    min-width: 69rem;
  }
}

@media (min-width: 2200px) {
  :root {
    font-size: 18px;
  }

  .booking-app-shell,
  .staff-shell {
    width: min(112rem, 100%);
  }

  .site-header {
    padding-inline: max(8vw, calc((100vw - 122rem) / 2));
  }
}

@media (max-width: 720px) {
  html,
  body,
  .app-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 0;
    gap: 0.55rem 0.75rem;
    padding: 0.65rem 4vw;
  }

  .brand {
    min-width: 0;
    font-size: clamp(1.55rem, 8vw, 1.9rem);
  }

  .site-header > .button {
    min-height: 2.45rem;
    padding-inline: 0.7rem;
    font-size: 0.88rem;
  }

  .site-header .menu-toggle {
    width: 2.55rem;
    height: 2.55rem;
  }

  .staff-head-actions {
    position: relative;
  }

  .staff-head-actions .settings-menu-wrap {
    position: static;
  }

  .staff-head-actions .settings-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .nav-links {
    left: 4vw;
    right: 4vw;
  }

  .app-nav-links a {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .button-small {
    min-height: 2.7rem;
    padding-inline: 1rem;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
    white-space: normal;
  }

  .hero-line {
    font-size: 1.32rem;
  }

  .hero-text {
    max-width: 20.5rem;
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .hero-copy {
    min-height: 30rem;
    padding: 2.25rem 5vw 3rem;
  }

  .hero-image {
    min-height: 20rem;
  }

  .service-menu,
  .style-strip,
  .footer,
  .booking-form,
  .form-grid,
  .pin-form,
  .calendar-summary {
    grid-template-columns: 1fr;
  }

  .birthday-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .birthday-grid label:first-child {
    grid-column: 1 / -1;
  }

  .booking-hero h1,
  .portal-login h1,
  .staff-dashboard-head h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  .booking-app-shell,
  .staff-shell {
    width: 100%;
    max-width: 100%;
    padding: 1.05rem 4vw 3rem;
    overflow-x: hidden;
  }

  .booking-hero,
  .staff-dashboard-head {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .booking-hero-panel {
    padding: 0.9rem;
  }

  .booking-hero-panel {
    min-width: 0;
  }

  .checkin-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .checkin-header .brand {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .checkin-shell {
    min-height: auto;
    padding: 1.2rem 4vw 3rem;
  }

  .checkin-card {
    padding: 1rem;
  }

  .checkin-actions,
  .checkin-profile-form .form-grid,
  .checkin-birthday-form .form-grid {
    grid-template-columns: 1fr;
  }

  .checkin-page.is-checkin-complete .checkin-card {
    min-height: calc(100vh - 8rem);
  }

  .checkin-page.is-checkin-complete .checkin-result h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .checkin-appointments article {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .staff-portal-side-tab {
    bottom: 1rem;
    min-height: 2.2rem;
    padding: 0.42rem 0.62rem;
    font-size: 0.68rem;
  }

  .appointment-layout,
  .appointment-form,
  .form-section,
  .form-grid,
  .search-select,
  .search-select input,
  .search-select-menu,
  .time-slots,
  .manage-booking,
  .manage-booking-form,
  .manage-results,
  .appointment-summary,
  .confirmation-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  input,
  select,
  textarea,
  button,
  .button,
  input[type="date"] {
    max-width: 100%;
    min-width: 0;
  }

  input,
  select,
  textarea,
  .search-select-menu button {
    font-size: 16px;
  }

  .app-page input,
  .app-page select,
  .app-page textarea {
    width: 100%;
  }

  input[type="date"] {
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0.45rem;
    padding-inline: 2.15rem;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    text-align-last: center;
  }

  .calendar-toolbar label,
  .calendar-toolbar select,
  .calendar-toolbar input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .form-section label:has(input[type="date"]),
  .calendar-toolbar label:has(input[type="date"]) {
    overflow: visible;
  }

  input[type="date"]::-webkit-date-and-time-value {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: center;
  }

  input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0.72rem;
    width: 1rem;
    height: 1rem;
    margin: 0;
  }

  .search-select-menu {
    left: 0;
    right: 0;
  }

  .form-section-heading,
  .calendar-day-heading,
  .month-calendar-heading,
  .appointment-card > div {
    display: grid;
  }

  .calendar-day-heading,
  .month-calendar-heading {
    grid-template-columns: 1fr;
  }

  .calendar-day-heading .calendar-heading-main,
  .month-calendar-heading .calendar-heading-main,
  .calendar-day-heading .calendar-maximize-button,
  .month-calendar-heading .calendar-maximize-button {
    grid-column: 1;
    justify-self: stretch;
  }

  .calendar-maximize-button {
    width: 100%;
  }

  .calendar-heading-title {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-heading-title h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .calendar-heading-title .calendar-navigation-button:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .calendar-heading-title .calendar-navigation-button:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .calendar-navigation-button {
    width: 100%;
    min-width: 0;
  }

  .appointment-summary dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .segmented-control {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .segmented-control button {
    min-height: 2.55rem;
    padding-inline: 0.35rem;
    font-size: 0.82rem;
  }

  .calendar-toolbar,
  .calendar-summary {
    gap: 0.75rem;
  }

  .week-detail-head,
  .staff-edit-grid,
  .staff-booking-grid,
  .staff-booking-head {
    grid-template-columns: 1fr;
  }

  .week-detail-head .button {
    width: 100%;
  }

  .week-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .calendar-board.is-calendar-maximized.has-booking-detail .week-detail-panel {
    left: 0.65rem;
    right: 0.65rem;
    top: 0.65rem;
    bottom: 0.65rem;
    width: auto;
    max-height: calc(100vh - 1.3rem);
  }

  .staff-booking-head .button,
  .staff-booking-actions .button {
    width: 100%;
  }

  .manager-heading,
  .manager-panel {
    padding: 0.85rem;
  }

  .manager-heading {
    gap: 0.8rem;
  }

  .manager-heading h2 {
    font-size: 1.7rem;
  }

  .manager-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .manager-actions .button {
    width: 100%;
  }

  .manager-panel h3 {
    font-size: 1.35rem;
  }

  .manager-panel,
  .manager-heading,
  .form-section,
  .appointment-summary,
  .calendar-summary article,
  .calendar-day {
    padding: 0.85rem;
  }

  .weekday-checks {
    min-width: 39rem;
    grid-template-columns: repeat(7, minmax(5.35rem, 1fr));
  }

  .week-override-header,
  .week-override-row {
    grid-template-columns: 5.75rem repeat(7, minmax(8.5rem, 1fr));
    min-width: 65.25rem;
  }

  .week-override-header span {
    font-size: 0.66rem;
  }

  .manager-date-header strong {
    font-size: 0.68rem;
  }

  .manager-date-header small {
    font-size: 0.62rem;
  }

  .week-override-cell label {
    min-height: 2.25rem;
    font-size: 0.72rem;
  }

  .week-unavailable-controls input {
    font-size: 0.76rem;
  }

  .manager-week-heading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-week-heading h3 {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 1.15rem;
  }

  .manager-week-button {
    min-width: 0;
    grid-row: 2;
  }

  .staff-dashboard-head {
    align-items: stretch;
  }

  .staff-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    width: 100%;
  }

  .staff-head-actions .button,
  .settings-menu-wrap,
  .settings-button {
    width: 100%;
    min-width: 0;
  }

  .settings-menu-wrap {
    position: static;
  }

  .settings-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .people-modal {
    padding: 0;
  }

  .people-modal-card {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 0.85rem;
  }

  .people-layout,
  .people-name-grid {
    grid-template-columns: 1fr;
  }

  .people-layout {
    height: auto;
    overflow-y: auto;
  }

  .people-records {
    height: 15rem;
    max-height: 15rem;
  }

  .people-list-panel {
    min-height: 22rem;
  }

  .people-list-heading {
    align-items: end;
  }

  .people-list-heading input {
    width: 100%;
  }

  .people-list-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8.5rem, auto);
    width: 100%;
  }

  .people-list-tools input,
  .people-list-tools .button {
    width: 100%;
  }

  .people-record {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 6.25rem;
    align-content: start;
  }

  .people-record-actions {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
  }

  .people-record-actions button {
    flex: 1;
  }

  .people-form-actions .button {
    width: 100%;
  }

  .services,
  .gallery,
  .about,
  .booking,
  .footer {
    padding-inline: 5vw;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    text-align: center;
  }

  .section-heading h2 {
    grid-column: auto;
  }

  .section-heading a {
    justify-self: center;
  }

  .style {
    min-height: 11rem;
  }

  .service-category {
    padding: 1.1rem;
  }

  .service-category-heading {
    align-items: flex-start;
  }

  .price-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    min-height: 0;
  }

  .price-list strong {
    justify-self: start;
  }

  .about dl div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .footer > div {
    border-left: 0;
    padding-left: 0;
  }

  .app-footer {
    display: grid;
    gap: 0.35rem;
    padding-inline: 4vw;
    text-align: center;
  }

  .booking-form .button {
    grid-column: auto;
    justify-self: stretch;
  }

  .booking-actions {
    display: grid;
  }

  .booking-panel {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .booking-actions .button {
    min-width: 0;
  }

  .site-qr-card {
    justify-self: center;
    width: min(8rem, 48vw);
  }

  .booking-submit,
  .pin-form .button,
  .staff-dashboard-head .button,
  .manage-booking-form .button {
    width: 100%;
  }

  .manage-booking-form {
    grid-template-columns: 1fr;
  }

  .cancel-modal-actions {
    display: grid;
  }

  .cancel-modal-actions .button {
    width: 100%;
  }

  input[type="date"] {
    min-width: 0;
  }

  .hours-list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 0.45rem;
    padding-inline: 3.5vw;
  }

  .brand {
    font-size: 1.45rem;
  }

  .site-header > .button {
    min-height: 2.35rem;
    padding-inline: 0.55rem;
    font-size: 0.8rem;
  }

  .site-header .menu-toggle {
    width: 2.4rem;
    height: 2.4rem;
  }

  .booking-app-shell,
  .staff-shell {
    padding-inline: 3.5vw;
  }

  .segmented-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-heading-title {
    gap: 0.45rem;
  }

  .calendar-navigation-button {
    min-height: 2.55rem;
    padding-inline: 0.55rem;
    font-size: 0.72rem;
  }

  .people-list-tools {
    grid-template-columns: 1fr;
  }
}

@media (orientation: landscape) and (max-height: 820px) {
  html,
  body,
  .app-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    min-height: 0;
    padding-block: 0.55rem;
  }

  .booking-app-shell,
  .staff-shell {
    width: min(100%, 112rem);
    max-width: 100%;
    padding-block: 1rem 2rem;
    overflow-x: hidden;
  }

  .staff-dashboard-head,
  .booking-hero {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .staff-dashboard-head h1,
  .booking-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
  }

  .calendar-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkin-shell {
    width: min(74rem, 100%);
    min-height: calc(100dvh - 7rem);
    padding: 0.8rem 3vw 1rem;
    align-items: center;
  }

  .checkin-card {
    width: min(70rem, 100%);
    grid-template-columns: minmax(16rem, 0.9fr) minmax(22rem, 1.15fr);
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    padding: clamp(0.85rem, 2vw, 1.35rem);
  }

  .checkin-intro {
    text-align: left;
  }

  .checkin-intro h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
  }

  .checkin-intro p {
    font-size: clamp(0.92rem, 1.7vw, 1.05rem);
  }

  .checkin-phone-form,
  .checkin-profile-form,
  .checkin-birthday-form {
    gap: 0.7rem;
    min-width: 0;
  }

  .checkin-phone-form input[type="tel"] {
    height: clamp(3.25rem, 10vh, 4.35rem);
    font-size: clamp(1.65rem, 5vh, 2.35rem);
  }

  .phone-dial-pad {
    grid-template-columns: repeat(3, minmax(0, clamp(3.35rem, 10.5vh, 4.65rem)));
    gap: clamp(0.4rem, 1.1vh, 0.65rem);
    width: min(100%, 18rem);
  }

  .phone-dial-pad button {
    width: clamp(3.35rem, 10.5vh, 4.65rem);
    height: clamp(3.35rem, 10.5vh, 4.65rem);
    font-size: clamp(1.15rem, 3.4vh, 1.75rem);
  }

  .phone-dial-pad button[data-dial-action] {
    font-size: clamp(0.6rem, 1.7vh, 0.76rem);
  }

  .checkin-phone-form .button,
  .checkin-actions .button {
    min-height: 2.8rem;
  }

  .checkin-profile-form .form-grid {
    gap: 0.65rem;
  }

  .birthday-grid {
    gap: 0.45rem;
  }

  .sms-consent {
    padding: 0.5rem 0.6rem;
  }

  .sms-consent span {
    font-size: 0.72rem !important;
  }

  .checkin-card > .form-status {
    grid-column: 1 / -1;
    min-height: 1.1rem;
  }

  .checkin-page.is-checkin-complete .checkin-shell {
    min-height: calc(100dvh - 4.75rem);
    padding: 0.65rem 3vw;
  }

  .checkin-page.is-checkin-complete .checkin-card {
    display: grid;
    grid-template-columns: 1fr;
    width: min(58rem, 100%);
    min-height: min(28rem, calc(100dvh - 6rem));
    padding: clamp(0.7rem, 2vw, 1.2rem);
  }

  .checkin-page.is-checkin-complete .checkin-result {
    width: min(42rem, 100%);
    gap: clamp(0.45rem, 1.2vh, 0.8rem);
  }

  .checkin-page.is-checkin-complete .checkin-result h2 {
    font-size: clamp(2rem, 7vh, 3.5rem);
  }

  .checkin-page.is-checkin-complete .checkin-success-mark {
    width: clamp(3.1rem, 9vh, 4.4rem);
    height: clamp(3.1rem, 9vh, 4.4rem);
  }

  .checkin-page.is-checkin-complete .checkin-points {
    padding: 0.55rem;
  }

  .checkin-page.is-checkin-complete .checkin-points strong {
    font-size: clamp(2.8rem, 9vh, 4.2rem);
  }

  .people-modal {
    padding: 0.75rem;
  }

  .people-modal-card {
    width: min(82rem, calc(100vw - 1.5rem));
    height: min(46rem, calc(100dvh - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    padding: 0.9rem;
  }

  .people-layout {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(19rem, 1fr);
    height: min(32rem, calc(100dvh - 10.5rem));
    min-height: 0;
    overflow: hidden;
  }

  .people-list-panel,
  .people-form-panel {
    min-height: 0;
    overflow: hidden;
  }

  .people-records,
  .people-form {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .people-record {
    min-height: 4.6rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .site-header {
    padding-block: 0.35rem;
  }

  .checkin-header .brand,
  .site-header .brand {
    font-size: clamp(1.45rem, 5vh, 1.9rem);
  }

  .site-header > .button {
    min-height: 2.25rem;
    padding-inline: 0.75rem;
    font-size: 0.84rem;
  }

  .checkin-shell {
    min-height: calc(100dvh - 3.7rem);
    padding: 0.45rem 3vw 0.75rem;
  }

  .checkin-card {
    grid-template-columns: minmax(14rem, 0.95fr) minmax(18rem, 1.1fr);
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .checkin-intro {
    gap: 0.45rem;
  }

  .checkin-intro h1 {
    font-size: clamp(2.1rem, 10vh, 3rem);
  }

  .checkin-intro p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .checkin-phone-form,
  .checkin-profile-form,
  .checkin-birthday-form {
    gap: 0.45rem;
  }

  .checkin-phone-form label {
    gap: 0.25rem;
  }

  .checkin-phone-form input[type="tel"] {
    height: clamp(2.65rem, 11vh, 3.15rem);
    font-size: clamp(1.25rem, 6vh, 1.75rem);
  }

  .phone-dial-pad {
    grid-template-columns: repeat(3, minmax(0, clamp(2.55rem, 10vh, 3.1rem)));
    gap: clamp(0.28rem, 1.5vh, 0.45rem);
    width: min(100%, 13rem);
  }

  .phone-dial-pad button {
    width: clamp(2.55rem, 10vh, 3.1rem);
    height: clamp(2.55rem, 10vh, 3.1rem);
    font-size: clamp(1rem, 4.2vh, 1.32rem);
  }

  .phone-dial-pad button[data-dial-action] {
    font-size: clamp(0.48rem, 1.9vh, 0.62rem);
  }

  .checkin-phone-form .button,
  .checkin-actions .button {
    min-height: 2.35rem;
    padding-block: 0.35rem;
  }

  .checkin-page.is-checkin-complete .checkin-shell {
    min-height: calc(100dvh - 3.7rem);
    padding: 0.45rem 3vw;
  }

  .checkin-page.is-checkin-complete .checkin-card {
    min-height: calc(100dvh - 4.7rem);
    padding: 0.6rem;
  }

  .checkin-page.is-checkin-complete .checkin-result {
    gap: 0.35rem;
  }

  .checkin-page.is-checkin-complete .checkin-result h2 {
    font-size: clamp(1.8rem, 9vh, 2.7rem);
  }

  .checkin-page.is-checkin-complete .checkin-success-mark {
    width: clamp(2.6rem, 10vh, 3.25rem);
    height: clamp(2.6rem, 10vh, 3.25rem);
    font-size: clamp(1.05rem, 4.2vh, 1.4rem);
  }

  .checkin-page.is-checkin-complete .checkin-points {
    padding: 0.45rem;
  }
}

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