:root {
  --bg: #f4f1ea;
  --ink: #1c1915;
  --muted: #6b645b;
  --card: #fffcf7;
  --line: #e4ddd2;
  --accent: #0f6e56;
  --accent-2: #e7f4ef;
  --warn: #9a4a12;
  --shadow: 0 10px 30px rgba(28, 25, 21, 0.08);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(900px 400px at 10% -10%, #e7f4ef 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
}
h1, h2 { font-weight: 700; letter-spacing: -0.03em; }
h1 { margin: 0; font-size: 1.8rem; }
h2 { margin: 0 0 10px; font-size: 1.1rem; }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 22px 28px 10px;
}
.top-actions, .actions { display: flex; gap: 8px; flex-wrap: wrap; }
button, input, textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}
.primary { background: var(--accent); color: #fff; }
.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  padding: 10px 28px 40px;
}
.calendar-wrap, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.calendar-wrap { padding: 16px; overflow: auto; }
.week-label { font-size: 1.05rem; margin-bottom: 12px; }
.cal {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  min-width: 720px;
}
.head, .hour, .cell {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.head {
  padding: 8px;
  font-size: 0.8rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: #faf7f1;
}
.hour {
  padding: 4px 6px;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.cell {
  min-height: 42px;
  position: relative;
  cursor: pointer;
}
.cell:hover { background: var(--accent-2); }
.appt {
  position: absolute;
  inset: 2px 3px auto;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.75rem;
  z-index: 1;
  overflow: hidden;
}
.side { display: flex; flex-direction: column; gap: 16px; }
.card { padding: 16px; }
.hint { color: var(--muted); font-size: 0.92rem; margin-top: 0; }
.chat {
  min-height: 140px;
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.bubble {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.92rem;
}
.bubble.user { background: var(--accent-2); align-self: end; }
.bubble.bot { background: #f3eee6; }
.agent-form { display: flex; gap: 8px; }
.agent-form input, .slots, label input, label textarea, #slotDay {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.slots { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.slot {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow);
}
.book { padding: 20px; width: min(520px, 92vw); display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg { min-height: 1.2em; color: var(--warn); font-size: 0.9rem; }
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}
.legal p, .legal li { line-height: 1.45; }
.legal a { color: var(--accent); }
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 0.92rem;
}
.check input { width: auto; margin-top: 4px; }
.site-foot {
  padding: 8px 28px 28px;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.site-foot a { color: var(--accent); }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 10px 14px 30px; }
  .top { padding: 16px 14px 8px; }
}
