:root {
  --ink: #18212c;
  --muted: #697386;
  --line: #dde4ec;
  --paper: #ffffff;
  --bg: #f4f7fa;
  --blue: #0b5cab;
  --red: #b42318;
  --green: #087443;
  --gold: #b7791f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  min-height: 240px;
  display: flex;
  align-items: end;
  padding: 36px;
  color: white;
  background: linear-gradient(rgba(12, 24, 38, .72), rgba(12, 24, 38, .5)), url("https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: 8px;
  margin-bottom: 22px;
}

.hero h1,
.admin-header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7ab7f2;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 10px 24px rgba(24, 33, 44, .05);
}

.narrow {
  max-width: 460px;
}

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  margin: 14px 0;
  font-weight: 700;
}

.success {
  background: #e8f7ef;
  color: var(--green);
}

.error {
  background: #fff1f0;
  color: var(--red);
}

.date-picker,
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

button,
.primary {
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 11px 16px;
  background: white;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary,
button:hover {
  background: var(--blue);
  color: white;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.slot {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfd;
  cursor: pointer;
}

.slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot.selected,
.slot:has(input:checked) {
  border-color: var(--blue);
  background: #eaf4ff;
}

.slot.disabled {
  color: var(--muted);
  background: #eef2f6;
  text-decoration: line-through;
  cursor: not-allowed;
}

.form-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.booking-form,
.stack,
.settings-form {
  display: grid;
  gap: 16px;
}

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

.field-error {
  margin: 4px 0 0;
  color: var(--red);
  font-size: .9rem;
}

.required-marker,
.required-note span {
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
}

.required-note {
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: .92rem;
}

.required-marker.is-hidden,
.required-note.is-hidden {
  display: none;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2f7;
  font-size: .85rem;
  font-weight: 800;
}

.badge.approved,
.badge.completed {
  background: #e8f7ef;
  color: var(--green);
}

.badge.pending {
  background: #fff8e8;
  color: var(--gold);
}

.badge.canceled {
  background: #fff1f0;
  color: var(--red);
}

.inline-actions,
.block-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.block-row {
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.hours-grid {
  display: grid;
  gap: 10px;
}

.day-row {
  grid-template-columns: auto 52px minmax(100px, 1fr) minmax(100px, 1fr);
  align-items: center;
}

.day-row input[type="checkbox"],
.check input {
  width: auto;
}

.check {
  display: flex;
  align-items: center;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .hero {
    min-height: 220px;
  }

  .date-picker {
    display: grid;
  }

  button {
    width: 100%;
  }
}
