:root {
  --wine: #7f1d1d;
  --wine-dark: #5c1414;
  --bg: #faf7f2;
  --ok: #16a34a;
  --empty: #e5e7eb;
  --danger: #dc2626;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  margin: 0;
  color: #1f2937;
}
header.top {
  background: var(--wine);
  color: white;
  padding: 20px 16px;
  text-align: center;
}
header.top h1 { margin: 0 0 4px; font-size: 1.4rem; }
header.top p { margin: 0; opacity: .9; font-size: .9rem; }
main { max-width: 900px; margin: 0 auto; padding: 16px; }
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.slot {
  border: 1px solid var(--empty);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: transform .1s;
}
.slot:hover { transform: scale(1.03); }
.slot .time { font-weight: 600; color: var(--wine); font-size: .85rem; }
.slot .name { font-size: .8rem; color: #374151; margin-top: 2px; word-break: break-word; }
.slot.filled { background: #f0fdf4; border-color: var(--ok); }
.slot.empty { background: #fafafa; border-style: dashed; }
.slot.missing-admin { background: #fef2f2; border-color: var(--danger); }
button, input, select {
  font: inherit;
}
button.primary {
  background: var(--wine);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
button.primary:hover { background: var(--wine-dark); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date] {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin: 6px 0 14px;
}
label { font-size: .85rem; color: #4b5563; font-weight: 600; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: white; border-radius: 12px; padding: 24px; max-width: 380px; width: 100%;
}
.error { color: var(--danger); font-size: .85rem; margin-top: -8px; margin-bottom: 12px; }
.hint { color: #6b7280; font-size: .8rem; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: .9rem; }
a.link { color: var(--wine); }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.badge { background: var(--danger); color: white; border-radius: 999px; padding: 2px 8px; font-size: .75rem; }
