.reservations-page { --reservation-text: #000; --reservation-slot-text: #343a40; --reservation-grid-line: #bbc5cf; --muted: #000; min-width: 0; color: var(--reservation-text); font-size: 14px; line-height: 1.45; }
.reservations-page > .topbar h2 { color: var(--reservation-text); font-size: 22px; line-height: 1.3; }
.reservations-page .ghost-button, .reservation-dialog .danger-button { color: var(--reservation-text); }
.reservation-toolbar > .accent-button, .reservation-week-controls > button, .reservation-dialog footer button { font-size: 14px; font-weight: 600; }
.reservation-toolbar > .accent-button { margin-left: auto; }
.reservations-page > .topbar { margin-bottom: 12px; }
.reservations-page > .topbar .muted { margin: 4px 0 0; font-size: 14px; }
.reservation-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.reservation-role { color: var(--reservation-text); font-size: 13px; line-height: 1.4; }
.reservation-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.reservation-category { padding: 8px 12px; border: 1px solid #d8e1e9; border-radius: 10px; color: var(--reservation-text); background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.reservation-category:hover { border-color: #7c9cba; background: #f4f8fc; }
.reservation-category.active { color: #fff; background: #254f76; border-color: #254f76; box-shadow: 0 3px 8px #254f761a; }
.reservation-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border: 1px solid #dce5ed; border-radius: 12px; background: #fff; }
.reservation-week-controls { display: flex; align-items: center; gap: 10px; margin-right: auto; align-self: center; }
.reservation-week-controls > div { display: grid; gap: 2px; min-width: 168px; }
.reservation-week-controls strong { color: var(--reservation-text); font-size: 16px; }
.reservation-week-controls span { color: var(--reservation-text); font-size: 13px; }
.reservation-week-controls > button:first-child, .reservation-week-controls > button:nth-child(3) { font-size: 22px; line-height: 1; min-height: 38px; min-width: 38px; padding: 6px; }
.reservation-capacity { display: grid; flex: 1 1 200px; align-self: center; gap: 3px; min-width: 0; font-size: 13px; }
.reservation-capacity-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.reservation-capacity-list > span { white-space: nowrap; }
.reservation-filter { display: grid; gap: 3px; color: var(--reservation-text); font-size: 14px; font-weight: 600; }
.reservation-filter select, .reservation-filter input { min-height: 36px; max-width: 260px; padding: 6px 10px; border: 1px solid #cdd9e3; border-radius: 7px; background: #fff; color: var(--reservation-text); font: inherit; font-size: 14px; }
.reservation-statusbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 8px 2px; }
.reservation-legend { display: flex; gap: 18px; font-size: 13px; color: var(--reservation-text); }
.reservation-legend span { display: inline-flex; align-items: center; gap: 7px; }
.reservation-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: #a5b1bd; }
.reservation-legend .own::before { background: #4a8ac5; }
.reservation-legend .occupied::before { background: #d39849; }
.reservation-sync { display: inline-flex; gap: 12px; align-items: center; font-size: 13px; color: var(--reservation-text); }
.reservation-sync button { padding: 5px 9px; font-size: 13px; }
.reservation-grid-scroll { overflow: auto; border: 1px solid #a5b3c0; border-radius: 12px; background: #fff; max-height: 72vh; }
.reservation-grid { width: 100%; min-width: 800px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.reservation-grid caption { text-align: left; }
.reservation-grid th { color: var(--reservation-text); font-size: 14px; background: #f2f6fa; text-align: center; }
.reservation-grid thead th { position: sticky; top: 0; z-index: 2; padding: 14px 7px; border-bottom: 1px solid var(--reservation-grid-line); }
.reservation-grid thead th:first-child { width: 64px; z-index: 3; left: 0; }
.reservation-grid thead th + th { border-left: 1px solid var(--reservation-grid-line); }
.reservation-grid thead span, .reservation-grid thead strong { display: block; }
.reservation-grid thead span { text-transform: capitalize; font-weight: 500; margin-bottom: 5px; }
.reservation-grid thead strong { font-size: 14px; }
.reservation-grid tbody th { position: sticky; left: 0; z-index: 1; border-bottom: 1px solid var(--reservation-grid-line); width: 64px; padding: 8px 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.reservation-grid td { vertical-align: top; padding: 6px; border-left: 1px solid var(--reservation-grid-line); border-bottom: 1px solid var(--reservation-grid-line); }
.reservation-grid tr:last-child > * { border-bottom: 0; }
.reservation-grid td.is-today { background: #f8fbff; }
.reservation-grid thead .is-today { background: #e1edf8; color: var(--reservation-text); }
.reservation-slot { display: block; width: 100%; min-height: 76px; padding: 8px 9px; text-align: left; border: 1px solid; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 400; line-height: 1.4; transition: box-shadow .12s, border-color .12s; overflow: hidden; }
.reservation-slot + .reservation-slot { margin-top: 5px; }
.reservation-slot.is-free { background: #fff; border-color: #ccd5de; color: var(--reservation-slot-text); }
.reservation-slot.is-own { background: #dcecff; border-color: #a8c9ef; color: var(--reservation-slot-text); }
.reservation-slot.is-occupied { background: #ffe8c2; border-color: #dfb77a; color: var(--reservation-slot-text); }
.reservation-slot:hover { box-shadow: 0 2px 8px #23455e1a; border-color: #8ca6bd; }
.reservation-slot:focus-visible, .reservation-category:focus-visible { outline: 3px solid #397ab1; outline-offset: 2px; }
.reservation-slot-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.reservation-slot-heading strong { font-size: 13px; font-weight: 500; }
.reservation-slot-heading > span { color: #51575d; font-size: 12px; font-weight: 400; white-space: nowrap; }
.reservation-slot-hint { display: block; margin-top: 4px; color: #51575d; font-size: 13px; }
.reservation-slot-owner, .reservation-slot-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; margin-top: 3px; line-height: 1.35; }
.reservation-slot-owner { font-weight: 400; }
.reservation-footnote { color: var(--reservation-text); font-size: 13px; line-height: 1.7; margin-top: 13px; }
.reservation-empty { padding: 45px 24px; text-align: center; color: var(--reservation-text); border: 1px dashed #ccd9e4; border-radius: 10px; }
.reservation-notice { padding: 8px 12px; margin: 0 0 10px; border: 1px solid #d7e3ee; border-radius: 8px; background: #f1f6fb; color: var(--reservation-text); line-height: 1.6; font-size: 14px; }
.reservation-notice p { margin: 5px 0 0; }
.reservation-notice.error { color: var(--reservation-text); border-color: #efcaca; background: #fff3f3; }
.reservation-notice.success { color: var(--reservation-text); border-color: #cbe5d7; background: #f0faf4; }
.reservation-dialog { width: min(580px, calc(100vw - 32px)); max-height: 90vh; padding: 25px; border: 1px solid #d0deea; border-radius: 15px; background: #fff; color: var(--reservation-text); box-shadow: 0 18px 80px #122c3c40; box-sizing: border-box; }
.reservation-dialog::backdrop { background: #112c456b; }
.reservation-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.reservation-dialog h3 { margin: 5px 0 0; color: var(--reservation-text); font-size: 20px; }
.reservation-dialog .eyebrow { margin: 0; color: var(--reservation-text); font-size: 13px; }
.reservation-dialog header > button { font-size: 22px; padding: 3px 10px; }
.reservation-owner-line { padding: 10px 0 16px; font-size: 14px; line-height: 1.5; }
.reservation-owner-line > span { display: block; font-size: 13px; color: var(--reservation-text); }
.reservation-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.reservation-form-grid label, .reservation-reason { display: grid; gap: 6px; color: var(--reservation-text); font-size: 14px; font-weight: 600; }
.reservation-form-grid .wide { grid-column: 1 / -1; }
.reservation-recurrence-summary { color: #51575d; font-size: 13px; font-weight: 400; line-height: 1.5; }
.reservation-form-grid input, .reservation-form-grid select, .reservation-form-grid textarea, .reservation-reason textarea { padding: 9px 11px; border: 1px solid #cbd9e4; border-radius: 7px; background: #fff; color: var(--reservation-text); width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 14px; }
.reservation-form-grid textarea, .reservation-reason textarea { resize: vertical; }
.reservation-form-grid select:disabled { background: #f3f6f9; color: var(--reservation-text); }
.reservation-takeover { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.5; margin: 12px 0; font-weight: 500; }
.reservation-takeover input { width: 17px; height: 17px; flex-shrink: 0; }
.reservation-reason { margin: 14px 0; }
.reservation-editor-error { color: var(--reservation-text); font-size: 14px; line-height: 1.6; }
.reservation-editor-error:empty { display: none; }
.reservation-dialog footer { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; border-top: 1px solid #e3eaf0; padding-top: 18px; margin-top: 22px; }
.reservation-dialog footer > span { flex: 1; }
.reservation-dialog footer button { font-size: 14px; }
.reservation-details { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px; line-height: 1.6; }
.reservation-details dt { color: var(--reservation-text); }
.reservation-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reservation-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .reservation-toolbar { padding: 10px; gap: 10px; }
  .reservation-week-controls { width: 100%; margin-bottom: 4px; }
  .reservation-week-controls > div { flex: 1; }
  .reservation-capacity { flex-basis: 100%; }
  .reservation-filter { flex: 1; min-width: 130px; }
  .reservation-filter input, .reservation-filter select { width: 100%; max-width: none; }
  .reservation-category { padding: 8px 10px; }
  .reservation-grid-scroll { max-height: 70vh; }
}
@media (max-width: 480px) {
  .reservation-dialog { padding: 18px; }
  .reservation-dialog h3 { font-size: 20px; }
  .reservation-week-controls { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px auto; gap: 6px; }
  .reservation-week-controls > div { min-width: 0; }
  .reservation-week-controls > button:last-child { padding: 8px; }
  .reservation-toolbar > .accent-button { width: 100%; }
  .reservation-sync { width: 100%; justify-content: space-between; }
  .reservation-dialog footer > button:last-child { flex-grow: 1; }
}.track-button[data-role-menu-id="reservations"] {
  --track-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 9H6v9h12v-9ZM6 9h12V7H6v2Zm5 9-3-3 1.4-1.4 1.6 1.6 3.6-3.6L16 14l-5 5Z'/%3E%3C/svg%3E");
}
@media (max-width: 900px) {
  .reservations-page > .topbar { padding-left: 48px; }
}
