@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Fraunces:wght@500;700&display=swap");

:root {
  --bg: #f7f4ef;
  --ink: #15130f;
  --muted: #6b635b;
  --accent: #e67c30;
  --accent-2: #0f7a6f;
  --card: #fffdf9;
  --shadow: 0 18px 45px rgba(33, 24, 13, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fff, #f1e9df 55%, #e9e0d2 100%);
  min-height: 100vh;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.24;
  z-index: 0;
}

.orb-1 {
  background: radial-gradient(circle, #ffb178 0%, #ffd0b1 60%, transparent 70%);
  top: -120px;
  right: -80px;
}

.orb-2 {
  background: radial-gradient(circle, #7adccf 0%, #9fe8de 60%, transparent 70%);
  bottom: -140px;
  left: -120px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 8px;
}

.subtle {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.business-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.business-select label {
  color: var(--muted);
}

.business-select select {
  background: transparent;
  color: inherit;
  border: none;
  outline: none;
  font: inherit;
  min-width: 180px;
}

.chip {
  border: 1px solid #d8c9b8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 24px;
}

.list-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(180, 160, 140, 0.35);
}

.card h2 {
  margin-top: 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

input,
textarea,
select {
  font-family: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d2c4b4;
  background: #fff;
  resize: vertical;
}

textarea {
  min-height: 80px;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: #d76f25;
}

.ghost {
  background: transparent;
  border: 1px solid #d2c4b4;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid #f2d3b1;
  color: #7a4a14;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.4);
  display: grid;
  place-items: center;
  z-index: 10;
}

.modal-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  width: min(520px, 92vw);
  border: 1px solid rgba(180, 160, 140, 0.35);
  box-shadow: var(--shadow);
}

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

.calendar-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.calendar-day {
  border: 1px solid #e2d6c9;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.calendar-day strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.week-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.day-card {
  border: 1px solid #e2d6c9;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}

.day-card.active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.day-count {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
}

.details-panel {
  margin-top: 16px;
  border: 1px solid #e2d6c9;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.hidden {
  display: none;
}

.modal.hidden {
  display: none;
}

.item {
  border: 1px solid #e2d6c9;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status.ok {
  color: #0f7a6f;
  border-color: rgba(15, 122, 111, 0.3);
}

.status.error {
  color: #a14b2f;
  border-color: rgba(161, 75, 47, 0.3);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

:root {
  --brand-accent: #f4b25f;
  --brand-ink: #20140b;
  --brand-mist: #fdf6ea;
}

body {
  background: radial-gradient(circle at top, var(--brand-mist), #fefcf7 45%, #f8f1e6);
}

.btn {
  background: var(--brand-accent);
  color: var(--brand-ink);
  border: none;
}
