:root { color-scheme: light dark; font-family: system-ui, sans-serif; }
body { margin: 0; padding: 0 12px 24px; }
header h1 { font-size: 1.2rem; }
nav { display: flex; gap: 8px; margin-bottom: 12px; }
nav button { padding: 8px 12px; border: none; border-radius: 8px; background: #e9e9ee; }
nav button.active { background: #2481cc; color: #fff; }
.day { margin-bottom: 16px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 10px 14px; border: none; border-radius: 8px; background: #d7eaff; font-size: 1rem; }
.slot.taken { background: #ddd; color: #888; text-decoration: line-through; }
.booking { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.admin-grid label { display: block; margin: 8px 0; }
button { cursor: pointer; }
#toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: #333; color: #fff; padding: 10px 16px; border-radius: 8px; }

/* --- admin calendar --- */
.admin-modes { display: flex; gap: 8px; margin: 12px 0; }
.admin-modes button { padding: 8px 12px; border: none; border-radius: 8px; background: #e9e9ee; }
.admin-modes button.active { background: #2481cc; color: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; text-transform: capitalize; }
.cal-head button { border: none; background: #e9e9ee; border-radius: 8px; padding: 4px 12px; font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid.wd { margin-bottom: 4px; }
.wd-cell { text-align: center; font-size: .75rem; color: #888; padding: 2px 0; }
.cal-cell { position: relative; aspect-ratio: 1 / 1; border: 2px solid transparent; border-radius: 8px; background: #f2f2f6; font-size: .95rem; }
.cal-cell.empty { background: transparent; }
.cal-cell.past { color: #bbb; background: #f7f7f9; }
.cal-cell.open { background: #d7eaff; }
.cal-cell.today { border-color: #2481cc; }
.cal-cell.sel { background: #2481cc; color: #fff; }
.cal-cell.focus { outline: 2px solid #2481cc; outline-offset: 1px; }
.cal-cell .dot { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #e8590c; }
#open-controls { margin: 12px 0; }
#open-controls button { width: 100%; padding: 12px; border: none; border-radius: 8px; background: #2481cc; color: #fff; font-size: 1rem; }
#day-panel { margin-top: 12px; }
#day-panel h4 { margin: 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border: none; border-radius: 8px; font-size: .95rem; }
.chip.open { background: #2fb344; color: #fff; }
.chip.closed { background: #e0e0e0; color: #555; }
.chip.taken { background: #2481cc; color: #fff; }
.chip small { font-size: .7rem; opacity: .85; }
.add-slot { display: flex; gap: 8px; margin-top: 12px; }
