:root {
  --ink: #231816;
  --muted: #6f625f;
  --bg: #fff9f2;
  --panel: #ffffff;
  --brand: #c53a24;
  --green: #2f8f46;
  --yellow: #d6a825;
  --orange: #d96d27;
  --grey: #898989;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid #eaded5;
}
.brand { font-weight: 800; font-size: 22px; color: var(--brand); }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  border: 1px solid #eaded5;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.language-switcher a.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.flash {
  margin: 16px clamp(18px, 4vw, 56px) 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}
.flash-error {
  background: #fff1ef;
  border: 1px solid #e5a39a;
  color: #8d2518;
}
.flash-success {
  background: #eefaf1;
  border: 1px solid #9fd4ab;
  color: #1f6b32;
}
.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 56px clamp(18px, 6vw, 84px);
  color: #fff;
  background: linear-gradient(rgba(35, 24, 22, .4), rgba(35, 24, 22, .55)), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1800&q=80') center/cover;
}
.hero > div { max-width: 620px; }
h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1; margin: 0 0 18px; }
h2, h3 { margin: 0 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.section { padding: 44px clamp(18px, 5vw, 72px); }
.narrow { max-width: 820px; margin: 0 auto; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.secondary { background: #58413c; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card, .panel {
  background: var(--panel);
  border: 1px solid #eaded5;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(35, 24, 22, .06);
}
.empty-state {
  background: #fff;
  border: 1px solid #eaded5;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 8px 24px rgba(35, 24, 22, .06);
}
.empty-state h1 {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 56px);
}
.empty-state p {
  color: var(--muted);
  max-width: 620px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.link-card:hover, .choice:hover { border-color: var(--brand); }
.pill { display: inline-flex; margin-top: 12px; color: var(--brand); font-weight: 700; }
.slots, .admin-slots { display: grid; gap: 12px; }
.slot, .admin-slot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border-left: 8px solid var(--green);
}
.slot.partial, .admin-slot.partial { border-left-color: var(--yellow); }
.slot.full, .admin-slot.full { border-left-color: var(--grey); }
.slot.disabled { pointer-events: none; opacity: .65; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfd5ce; }
.dots .used { background: var(--orange); }
.choice { display: flex; gap: 12px; cursor: pointer; }
.choice span { display: grid; gap: 8px; }
label { display: grid; gap: 8px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.check.disabled { color: var(--muted); opacity: .65; }
textarea, input {
  min-height: 38px;
  border: 1px solid #d7c8bd;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}
input[readonly] {
  background: #f3eee9;
  color: var(--muted);
}
.profile-form {
  display: grid;
  gap: 16px;
}
.toolbar, .row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.row { justify-content: space-between; }
.day { margin-top: 18px; }
.admin-slot { grid-template-columns: auto auto 90px auto auto; }

@media (max-width: 720px) {
  .site-header, .site-nav, .toolbar, .row { align-items: flex-start; flex-direction: column; }
  .language-switcher { margin-left: 0; }
  .slot, .admin-slot { grid-template-columns: 1fr; }
}
