:root {
  --linen: #f2ede9;
  --surface: #faf9f6;
  --accent: #bc9c82;
  --accent-deep: #8e735b;
  --accent-soft: #e8ded4;
  --text-dark: #3a3532;
  --text-muted: #7a736f;
  --ink-soft: #2f2a27;
  --ok-bg: #eaf5ed;
  --ok-text: #19573a;
  --err-bg: #fdeced;
  --err-text: #8d2f39;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(170deg, var(--linen), #ede1d6 70%);
}

h1,
h2,
h3,
h4,
.serif {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

.brand-script {
  font-family: "Pinyon Script", cursive;
}

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

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--linen) 80%, transparent);
  border-bottom: 1px solid #00000012;
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e8ded4;
}

.brand-name {
  display: grid;
  line-height: 1;
}

.brand-name .top {
  font-size: 2rem;
}

.brand-name .sub {
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.48em;
  font-weight: 700;
  color: var(--accent);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--text-dark) 18%, transparent);
  background: #fff;
  color: var(--text-dark);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.nav-cart:hover {
  background: var(--accent-soft);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: var(--accent-soft);
}

.product-card h3 {
  margin: 0.2rem 0 0;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.product-price {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text-dark);
  padding: 0.45rem;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: #00000010;
}

.admin-session-hint {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #0000001a;
  background: #ffffff80;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent-deep);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--text-dark) 20%, transparent);
}

.hero {
  padding: 5rem 0 4.5rem;
}

.hero.compact {
  padding: 3.2rem 0 3rem;
}

.hero.compact .hero-card img {
  height: 300px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin: 0.8rem 0 1rem;
}

.hero h1 .italic {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-card {
  background: color-mix(in srgb, var(--surface) 83%, transparent);
  border: 1px solid #ffffff9a;
  border-radius: 28px;
  box-shadow: 0 22px 34px -25px #8e735b9a;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.section {
  padding: 4.4rem 0;
}

.section.alt {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.kicker {
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: #fff;
  border-radius: 28px;
  padding: 1.2rem;
  border: 1px solid #f0ebe7;
  box-shadow: 0 20px 30px -30px #8e735b;
}

.card h3,
.card h4 {
  margin: 0.25rem 0 0.4rem;
}

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

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

.staff-card {
  display: grid;
  gap: 0.7rem;
}

.staff-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.staff-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.list {
  display: grid;
  gap: 0.7rem;
}

.list-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.9rem;
  border-bottom: 1px dashed #d8cdc2;
  padding-bottom: 0.55rem;
}

form {
  display: grid;
  gap: 0.75rem;
}

.input-row {
  display: grid;
  gap: 0.3rem;
}

label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1.5px solid #e2d8cd;
  background-color: color-mix(in srgb, var(--surface) 55%, #fff);
  color: var(--ink-soft);
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #b5aa9f;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #cfc0b1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238e735b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.weekday-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  padding: 0.3rem 0;
}

.weekday-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  cursor: pointer;
}

input[type="file"] {
  padding: 0.45rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  margin-right: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease;
}

input[type="file"]::file-selector-button:hover {
  background: color-mix(in srgb, var(--accent) 32%, #fff);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.status {
  border-radius: 14px;
  padding: 0.8rem;
  font-size: 0.85rem;
  display: none;
}

.status.ok {
  display: block;
  background: var(--ok-bg);
  color: var(--ok-text);
}

.status.err {
  display: block;
  background: var(--err-bg);
  color: var(--err-text);
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.calendar {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #ece3dc;
  padding: 1rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3d8cd;
  background: #fff;
  border-radius: 10px;
  color: var(--accent-deep);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.cal-nav-btn:hover:not(:disabled) {
  background: var(--accent-soft);
}

.cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.calendar-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.calendar-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.calendar-legend .dot.open {
  background: #45a16a;
}

.calendar-legend .dot.partial {
  background: #d57a1f;
}

.calendar-legend .dot.blocked {
  background: #bf5562;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.calendar-weekdays span {
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-grid .day {
  min-height: 68px;
  border-radius: 11px;
  border: 1px solid #efe8e2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.12rem;
  font-size: 0.72rem;
  background: #fff;
  position: relative;
}

button.day {
  appearance: none;
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

button.day.open:hover,
button.day.partial:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px -10px #8e735b99;
}

.calendar-grid .day.out {
  opacity: 0.3;
  background: transparent;
  border-style: dashed;
}

.calendar-grid .day.today {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.calendar-grid .day.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}

.calendar-grid .day.blocked {
  background: #f8e7e7;
  color: #8b3f48;
  border-color: #ebc9cc;
}

.calendar-grid .day.partial {
  background: #fff0df;
  color: #9b5817;
  border-color: #f3c897;
}

.calendar-grid .day.open {
  background: #edf7ee;
  color: #266842;
  border-color: #cce8d2;
}

.calendar-grid .day.placeholder {
  visibility: hidden;
}

.calendar-grid .day .day-number {
  font-weight: 700;
  font-size: 0.88rem;
}

.calendar-grid .day .day-month,
.calendar-grid .day .day-meta {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-grid .day[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  width: min(250px, 28vw);
  min-width: 170px;
  background: #2f2a27;
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font-size: 0.64rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: pre-line;
  z-index: 20;
  box-shadow: 0 8px 20px #2f2a2733;
  pointer-events: none;
}

.calendar-note {
  margin: 0.65rem 0 0;
}

.table-scroll {
  overflow-x: auto;
}

.edit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.edit-table th {
  text-align: left;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.45rem 0.45rem 0.55rem;
  border-bottom: 1px solid #e8dfd6;
  white-space: nowrap;
}

.edit-table td {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid #f2ece5;
  vertical-align: middle;
}

.edit-table td.grow {
  width: 100%;
}

.edit-table input:not([type="checkbox"]),
.edit-table select {
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  font-size: 0.8rem;
}

.edit-table select {
  padding-right: 2rem;
  background-position: right 0.6rem center;
}

.edit-table tr.add-row {
  background: color-mix(in srgb, var(--accent-soft) 40%, #fff);
}

.edit-table tr.add-row td {
  border-bottom: 2px solid #e8dfd6;
}

.edit-table .cell-notes {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.row-actions {
  white-space: nowrap;
  text-align: right;
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.cell-upload {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cell-upload input {
  min-width: 120px;
}

.cell-thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #efe8e2;
  background: #fff;
  flex-shrink: 0;
}

.slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem 0;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #e3d8cd;
  border-radius: 999px;
  padding: 0.32rem 0.5rem 0.32rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.slot-chip button {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slot-chip button:hover {
  background: var(--accent);
  color: #fff;
}

.slot-generator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.slot-generator input,
.slot-generator select {
  width: auto;
}

.slot-gen-sep {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.week-scroll {
  overflow-x: auto;
  margin-top: 0.9rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 0.5rem;
  min-width: 940px;
}

.week-day {
  border: 1px solid #efe8e2;
  border-radius: 12px;
  padding: 0.5rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  background: #fdfcfa;
}

.week-day.is-today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.week-day-head {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed #d8cdc2;
}

.week-session {
  font-size: 0.72rem;
  line-height: 1.45;
  border-radius: 9px;
  padding: 0.4rem 0.5rem;
  background: #fff0df;
  border: 1px solid #f3c897;
}

.week-session.confirmed {
  background: #edf7ee;
  border-color: #cce8d2;
}

.week-session.completed {
  background: #f1efec;
  border-color: #e0dad3;
  opacity: 0.75;
}

.week-session span {
  color: var(--text-muted);
  font-size: 0.66rem;
}

.week-empty {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
  padding: 0.6rem 0;
}

.footer {
  padding: 2.6rem 0 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid #00000010;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.footer-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.footer-line {
  display: block;
  margin: 0 0 0.3rem;
  line-height: 1.6;
}

a.footer-line {
  color: var(--accent-deep);
  font-weight: 600;
}

.footer-privacy {
  color: var(--accent-deep);
  font-weight: 600;
  margin-left: 0.5rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.7rem;
  margin: 0;
  margin-inline: auto;
  padding-top: 1.1rem;
  border-top: 1px dashed #d8cdc2;
  width: min(1120px, calc(100% - 2.5rem));
}

.page-title {
  margin: 0.2rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  background: #2f2a27;
  color: #f0e8df;
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.admin-brand {
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.admin-nav {
  display: grid;
  gap: 0.35rem;
}

.admin-nav button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: #ffffff12;
  color: inherit;
  padding: 0.56rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-nav button.active {
  background: #bc9c8252;
}

.nav-group-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #ffffff59;
  margin-top: 0.55rem;
  padding-left: 0.2rem;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid #e3d8cd;
  background: #fff;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.chip:hover {
  background: var(--accent-soft);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.overview-card {
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.overview-card h3 {
  margin: 0.3rem 0 0.2rem;
  font-size: 2rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px -22px #8e735b;
}

.branding-preview {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #efe8e2;
  border-radius: 10px;
  background: #fff;
  padding: 0.2rem;
}

.branding-preview.wide {
  width: 130px;
  object-fit: cover;
}

.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 100;
  background: #2f2a27;
  color: #f3ede7;
  border-radius: 12px;
  padding: 0.75rem 1.05rem;
  font-size: 0.8rem;
  box-shadow: 0 14px 30px -14px #2f2a27aa;
  max-width: min(360px, calc(100vw - 2.4rem));
}

.admin-main {
  padding: 1.2rem;
}

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

.admin-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-session-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ffffff38;
  background: #ffffff24;
  color: #f3ede7;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-panels {
  display: grid;
  gap: 1rem;
}

.modal {
  border: 0;
  border-radius: 28px;
  padding: 0;
  width: min(520px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 34px 70px -34px #2f2a2799;
}

.modal::backdrop {
  background: #2f2a2755;
  backdrop-filter: blur(3px);
}

.modal-body {
  padding: 1.5rem;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0.25rem 0 0;
  font-size: 1.7rem;
}

.hidden {
  display: none !important;
}

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

/* The waiting-room check-in tablet. Large touch targets and large type, because it is used
   standing up, at arms length, by somebody who has not seen the page before. */
.kiosk-body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.kiosk {
  width: 100%;
  max-width: 30rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.kiosk-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  color: var(--accent);
}

.kiosk-name {
  font-size: 1.9rem;
}

.kiosk h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.kiosk-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.kiosk .input-row {
  text-align: left;
  margin-bottom: 1.3rem;
}

.kiosk label {
  font-size: 0.95rem;
}

/* 56px tall, comfortably above the 44px minimum touch target. */
.kiosk input {
  min-height: 56px;
  font-size: 1.2rem;
}

.kiosk-submit {
  width: 100%;
  min-height: 60px;
  font-size: 1.1rem;
}

/* Booking consent. The label text and its links are built at runtime from
   /api/public/consent-requirements, so the wording always matches the published documents
   the server will pin the consent against. */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.2rem 0 0.4rem;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.consent-row label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Legal document bodies are generated from plain text by renderDocumentBody in
   src/routes/pages.js, so all spacing has to come from here -- the author writes prose,
   not markup, and .card p deliberately zeroes its margin for every other card. */
.legal-body h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
}

.legal-body > h3:first-child {
  margin-top: 0;
}

.legal-body h4 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
}

.legal-body p {
  margin: 0 0 0.8rem;
}

.legal-body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-links {
  margin-top: 1.3rem;
}

/* The exact text a client agreed to. Pre-wrapped so the stored line breaks are preserved
   while long legal paragraphs still wrap instead of scrolling sideways. */
.consent-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f0ebe7;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  max-height: 26rem;
  overflow-y: auto;
}

.mono {
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .hero-grid,
  .cards-3,
  .cards-2,
  .staff-grid,
  .split,
  .admin-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.05rem;
    padding: 1.2rem 1.4rem 1.4rem;
    background: color-mix(in srgb, var(--linen) 96%, #fff);
    border-bottom: 1px solid #00000014;
    box-shadow: 0 18px 26px -22px #2f2a2755;
    font-size: 0.78rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-grid .day[data-tooltip]:hover::after {
    width: min(220px, 70vw);
    min-width: 140px;
  }

  .hero-card img {
    height: 300px;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .admin-nav button {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .admin-nav .nav-group-label {
    display: none;
  }
}

/* Keyboard focus. Inputs already have a visible focus ring; links, buttons and the nav
   toggle had none, leaving keyboard users with no indication of position. :focus-visible
   keeps mouse clicks from drawing a ring. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
}

/* Respect a reduced-motion preference: keep state changes instant rather than animated,
   and stop anything that would move on its own. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
