:root {
  --bg: #0b1020;
  --card: #121a36;
  --muted: #6b7280;
  --text: #e5e7eb;
  --accent: #8ab4ff;
  --danger: #ef4444;
  --ok: #10b981;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: #0b1020;
  color: var(--text);
}
a {
  color: var(--accent);
  text-decoration: none;
}
.wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1327;
  border-bottom: 1px solid #1f2a54;
  padding: 10px 16px;
  position: sticky;
  top: 0;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
}
.btn {
  background: #1a244a;
  border: 1px solid #2a3871;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
}
.btn:hover {
  background: #223160;
}
.btn.secondary {
  background: #0e1733;
}
.btn.danger {
  background: #3a0c14;
  border-color: #6b1020;
  color: #ffb4c1;
}
.btn.small {
  padding: 4px 8px;
  border-radius: 8px;
}
.card {
  background: var(--card);
  padding: 16px;
  border: 1px solid #1f2a54;
  border-radius: 14px;
  margin: 12px 0;
}
.alert {
  background: #3f1d2e;
  border: 1px solid #7a2446;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.action {
  transition: .2s all;
}
.action:hover {
  transform: translateY(-2px);
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 10px 6px 0;
}
.form.inline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  border-bottom: 1px solid #1f2a54;
  padding: 8px 6px;
}
.table .ellipsis {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.hint {
  color: var(--muted);
  margin-top: 8px;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.day {
  min-height: 90px;
  background: #0f1833;
  border: 1px solid #1a2550;
  border-radius: 10px;
  padding: 6px;
  position: relative;
  user-select: none;
}
.day.muted {
  opacity: 0.45;
}
.date {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #9ca3af;
  font-size: 12px;
}
.badge {
  margin-top: 20px;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid #2a3871;
}
.badge.blocked {
  border-color: #533664;
}
.badge.booked {
  border-color: #3b5a44;
}
.selection {
  position: absolute;
  border: 2px dashed #8ab4ff;
  background: rgba(138, 180, 255, 0.15);
  pointer-events: none;
}
@media (max-width: 720px) {
  .day {
    min-height: 72px;
  }
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
