:root {
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #d9dee5;
  --accent: #1d4ed8;
  --booked-bg: #dbeafe;
  --booked-edge: #93c5fd;
  --today-bg: #fefce8;
  --danger: #b91c1c;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f8fafc; }
header { padding: 1.2rem 1.5rem 0.6rem; border-bottom: 1px solid var(--line); background: #fff; }
header h1 { margin: 0; font-size: 1.5rem; }
header h1 a { color: var(--accent); text-decoration: none; }
.tagline { margin: 0.2rem 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
main { padding: 1rem 1.5rem 2rem; max-width: 1200px; margin: 0 auto; }
footer { padding: 1rem 1.5rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
.week-title { font-size: 1.1rem; color: var(--muted); font-weight: 600; }

.room { margin-bottom: 2rem; }
.room h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.room .meta { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.grid-wrap { overflow-x: auto; }
table.week { border-collapse: collapse; width: 100%; min-width: 760px; background: #fff; }
table.week th, table.week td { border: 1px solid var(--line); padding: 0.3rem 0.4rem; font-size: 0.8rem; vertical-align: top; }
table.week thead th { background: #eef2f7; }
table.week thead th.today { background: var(--today-bg); }
table.week .date { font-weight: 400; color: var(--muted); }
.time-col { width: 5.5rem; color: var(--muted); white-space: nowrap; background: #fbfcfe; }
td.free { height: 2rem; }
td.free.today { background: var(--today-bg); }
td.booked { background: var(--booked-bg); border-color: var(--booked-edge); }
td.booked .who, td.booked .when { color: var(--muted); font-size: 0.75rem; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1rem; margin-bottom: 1.2rem; }
.panel h2 { margin-top: 0; }
.toolbar .controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
button, .button {
  display: inline-block; padding: 0.35rem 0.8rem; font-size: 0.85rem;
  border: 1px solid var(--accent); border-radius: 4px; background: var(--accent);
  color: #fff; text-decoration: none; cursor: pointer;
}
.button { background: #fff; color: var(--accent); }
button.danger { background: var(--danger); border-color: var(--danger); }
button.small { padding: 0.1rem 0.4rem; font-size: 0.7rem; margin-top: 0.25rem; }
form.inline { display: inline; }
label input { padding: 0.35rem; border: 1px solid var(--line); border-radius: 4px; }
.error { color: var(--danger); }
