:root {
  color-scheme: light;
  --ink: #161513;
  --muted: #5c564c;
  --line: #e6e0d4;
  --paper: #f6f3ec;
  --gold: #f3c32d;
  --gold-ink: #7a5b08;
  --danger: #8d2d2d;
  --ok: #1d6b45;
  --shadow: 0 18px 50px rgba(40, 32, 12, 0.07);
  --sans: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  height: auto;
  background: var(--paper);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: #6e6558 #e6e0d4;
}

html::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

html::-webkit-scrollbar-track {
  background: #e6e0d4;
}

html::-webkit-scrollbar-thumb {
  background: #6e6558;
  border: 3px solid #e6e0d4;
  border-radius: 999px;
}

body {
  margin: 0;
  height: auto;
  overflow: visible;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

.frame {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 36px;
}

.card {
  background: #fff;
  border: 1px solid #efe8da;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand {
  display: flex;
  justify-content: center;
  padding: 18px 16px 8px;
  background: #fff;
}

.brand img { height: 92px; width: auto; }

.rule { height: 3px; background: var(--gold); }

.pad { padding: 22px 22px 28px; }

h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }

p { margin: 0 0 12px; }

.kicker {
  margin: 0 0 8px;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted, .fine { color: var(--muted); }

.fine { font-size: 14px; }

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(280px, 1fr) minmax(210px, 260px);
}

.aside, .calendar, .times { padding: 22px; }

.aside { border-right: 1px solid var(--line); }

.times {
  border-left: 1px solid var(--line);
  background: #fffcf8;
}

.desc { color: var(--muted); white-space: pre-wrap; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.facts li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}

.back {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-ink);
  font-weight: 650;
  font-weight: 600;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

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

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

.dow span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 4px;
}

.day {
  aspect-ratio: 1;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.day.is-open { font-weight: 750; font-weight: 700; }

.day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold); }

.day.is-selected { background: var(--gold); box-shadow: none; }

.day:disabled { color: #b7b1a6; cursor: default; }

.day:not(:disabled):hover { background: #fff4cc; }

.day.is-selected:hover { background: var(--gold); }

.tz { margin: 8px 0 12px; }

.tz select, .field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px;
}

.field { display: block; margin-bottom: 12px; }

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
  font-weight: 600;
}

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

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: auto;
  scrollbar-color: #6e6558 #fffcf8;
}

.slot-list::-webkit-scrollbar {
  width: 12px;
}

.slot-list::-webkit-scrollbar-track {
  background: #fffcf8;
}

.slot-list::-webkit-scrollbar-thumb {
  background: #6e6558;
  border: 3px solid #fffcf8;
  border-radius: 999px;
}

.group-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 8px;
  font-weight: 650;
  font-weight: 600;
}

.slot:hover { border-color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { filter: brightness(0.97); }

.btn:disabled { opacity: 0.6; cursor: default; }

.banner {
  margin: 0;
  padding: 12px 22px;
  background: #fff6d4;
  color: var(--ink);
  font-size: 14px;
}

.error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.success { text-align: center; }

.success .btn { max-width: 280px; margin: 8px auto 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.success .actions .btn,
.actions .btn {
  width: auto;
  flex: 1 1 200px;
  max-width: 280px;
  margin: 0;
}

.detail {
  margin: 0 auto 16px;
  max-width: 460px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffcf8;
  text-align: left;
}

.detail p { margin: 0 0 8px; white-space: pre-wrap; }

.detail p:last-child { margin: 0; }

.detail .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.options { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }

.option {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
}

.option strong { display: block; margin-bottom: 2px; }

.option span { color: var(--muted); font-size: 14px; }

.option p { margin: 8px 0 0; color: var(--muted); white-space: pre-wrap; }

.option:hover { border-color: var(--ink); border-left-color: var(--gold); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loading { padding: 48px 16px; text-align: center; color: var(--muted); }

a { color: var(--gold-ink); }

@media (max-width: 860px) {
  h1 { font-size: 26px; }
  .layout { grid-template-columns: 1fr; }
  .aside, .times { border: 0; border-top: 1px solid var(--line); }
  .layout.is-form .calendar { display: none; }
  .slot-list { max-height: none; }
}
