:root {
  color-scheme: light;
  --bg: #f7f3ef;
  --panel: #fffdf9;
  --ink: #241f1b;
  --muted: #6e6258;
  --line: #ddd4ca;
  --brand: #8b3f32;
  --brand-strong: #61291f;
  --accent: #1f6f68;
  --warn: #b44836;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #e7ddd2;
  color: var(--ink);
}

button.ghost {
  background: transparent;
  color: var(--brand-strong);
  border: 1px solid var(--line);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

a {
  color: var(--brand-strong);
  font-weight: 700;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.topbar,
.panel,
.confirmation {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
}

.hero {
  padding: 18px 2px 22px;
}

.hero h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(31px, 7vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 620px;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.panel {
  padding: 16px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.options,
.slot-list,
.agenda,
.customers {
  display: grid;
  gap: 8px;
}

.option,
.slot-button,
.agenda-item,
.customer-item {
  width: 100%;
  text-align: left;
  background: #fbf6ef;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.option.active,
.slot-button.active {
  border-color: var(--brand);
  outline: 2px solid rgba(139, 63, 50, 0.16);
}

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

.form {
  display: grid;
  gap: 10px;
}

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

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

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

.message {
  margin-top: 12px;
  color: var(--warn);
  font-weight: 700;
}

.confirmation {
  padding: 18px;
}

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

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.tabs {
  margin-bottom: 14px;
}

.tab.active {
  background: var(--accent);
}

.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.service-row,
.hours-row {
  display: grid;
  grid-template-columns: 1fr 88px 40px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.hours-row {
  grid-template-columns: 72px 1fr 1fr 80px;
}

.feed-url {
  overflow-wrap: anywhere;
  padding: 10px;
  background: #f5eee6;
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (min-width: 820px) {
  .booking-grid {
    grid-template-columns: 0.9fr 1.2fr 0.9fr;
    align-items: start;
  }

  .admin-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

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