.day { position: relative; }
#calendar-view.active, #requests-view.active { background: #eef2ff; color: var(--brand-dark); }
.day.has-shifts { padding-left: calc(12px + var(--shift-count) * 10px); }
.shift-rail { position: absolute; left: 5px; top: 40px; bottom: 10px; display: flex; gap: 3px; max-width: 30px; overflow: hidden; }
.shift-strip { flex: none; width: 7px; min-width: 7px; min-height: 80px; padding: 0; border-radius: 4px; cursor: pointer; }
.shift-strip:hover { filter: brightness(.85); }
.booking-list { display: grid; gap: 12px; }
.booking-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; min-width: 0; }
.booking-item h3 { font-size: 16px; margin: 8px 0; }
.booking-item p { font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.booking-item a { color: var(--brand-dark); }
.booking-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: #64748b; }
.booking-state { display: inline-block; padding: 4px 9px; border-radius: 10px; background: #fef3c7; color: #92400e; }
.booking-state.confirmed { background: #dcfce7; color: #166534; }
.booking-state.rejected { background: #fee2e2; color: #991b1b; }
#review-appointment { min-width: 0; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
#review-dialog { width: min(680px, 94vw); }
#review-form { display: grid; gap: 16px; min-width: 0; }
#review-form > h2, #review-form > p, #review-form label { margin: 0; }
#review-preferences { max-height: 100px; overflow-y: auto; line-height: 1.5; }
#review-appointment:not([hidden]) { display: grid; gap: 14px; }
.review-time-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.review-time-fields > label { min-width: 0; }
#review-form :is(input:not(.search-select-native), button.search-select) { width: 100%; min-width: 0; max-width: 100%; height: 44px; min-height: 44px; }
#review-form input:not(.search-select-native) { display: block; }
#review-comment { display: block; min-height: 100px; max-height: 240px; }
#review-form .dialog-actions { margin-top: 0; }
#review-error:empty { display: none; }
#calendar-requests .section-controls label { margin: 0; min-width: 230px; }
@media(max-width:720px) { .day.has-shifts { padding-left: calc(14px + var(--shift-count) * 10px); } #review-appointment .row { display: block; } }
@media(max-width:720px) {
  .review-time-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-time-fields > label:last-child { grid-column: 1 / -1; }
  [data-page=calendar] .section-header { flex-wrap: wrap; }
  [data-page=calendar] .section-header h1 { flex-basis: 100%; padding-top: 0; }
  [data-page=calendar] .section-header .section-actions { width: 100%; max-width: 100%; justify-content: flex-start; }
  [data-page=calendar] .section-header .section-actions button { flex: 1 1 calc(50% - 6px); }
}

.review-client { min-width: 0; padding: 14px 16px; border: 1px solid #c7d2fe; border-radius: 10px; background: #f5f7ff; overflow-wrap: anywhere; }
.review-client h3 { margin: 0 0 8px; font-size: 14px; }
.review-client p { margin: 6px 0; font-size: 14px; }
.review-client a { color: var(--brand-dark); }
.review-client-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; }
.review-client-comment { white-space: pre-wrap; }
