.calendar-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.calendar-day { border: 1px solid #ccc5b9; border-radius: 6px; padding: 1rem; min-width: 0; }
.calendar-day h2 { font-size: 1.2rem; }
.calendar-slots { list-style: none; padding: 0; }
.calendar-slot { padding: .7rem; margin: .6rem 0; border-radius: 4px; background: #e7e4de; font-size: .9rem; }
.calendar-slot a { display: block; color: inherit; }
.calendar-slot span { display: block; font-size: .8rem; margin-top: .3rem; }
.calendar-slot-available { background: #e0eadd; }
.calendar-slot-provisional { background: #f4e6bd; }
.calendar-slot-checkout { background: #eadbe8; }
.calendar-slot-unavailable { color: #555; }
.calendar-diary-entry { display: block; padding: .6rem 0; border-bottom: 1px solid #ddd; }
.calendar-month { max-width: 700px; margin: 2rem 0; padding: 1rem; border: 1px solid #ccc5b9; border-radius: 10px; background: #fffaf6; color: #34392f; }
.calendar-month-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.calendar-month-heading h2 { margin: 0; padding: 0; background: none; color: #34392f; font: 1.5rem Georgia, serif; }
.calendar-month-heading > a { display: block; padding: .5rem 1rem; color: #874538; font-size: 1.3rem; text-decoration: none; }
.calendar-month-help { margin: .7rem 0; font-size: .85rem; color: #62665d; }
.calendar-month-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.calendar-month-table th { padding: .5rem 0; border: 0; background: none; color: #62665d; text-align: center; font-size: .75rem; }
.calendar-month-table td { padding: 0; border: 0; background: none; text-align: center; }
.calendar-month-table td a { display: block; padding: .75rem 0; border-radius: 6px; background: #f2eee7; color: #34392f; text-decoration: none; }
.calendar-month-table td a:hover, .calendar-month-table td a:focus-visible { background: #e7cfc7; }
.calendar-month-table .calendar-other-month a { color: #75796f; background: transparent; }
.calendar-month-table .calendar-today a { box-shadow: inset 0 0 0 2px #74816d; }
.calendar-month-table .calendar-selected a { background: #d8dfd0; font-weight: bold; }
.calendar-month-table td { position: relative; vertical-align: top; background: #f2eee7; border-radius: 6px; }
.calendar-date-number { display: block; padding: .75rem 0; }
.calendar-month-table .calendar-selected { background: #d8dfd0; }
.calendar-month-table .calendar-today { box-shadow: inset 0 0 0 2px #74816d; }
.calendar-events { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0 4px 8px; min-height: 14px; }
.calendar-event { position: relative; display: inline-flex; }
.calendar-dot { display: inline-block; width: 10px; height: 10px; border: 0; border-radius: 50%; padding: 0; background: #666; vertical-align: middle; }
button.calendar-dot { cursor: pointer; min-width: 16px; height: 16px; }
.calendar-dot-confirmed { background: #b44b4b; }
.calendar-dot-provisional { background: #477eae; }
.calendar-dot-blocked { background: #62665d; }
.calendar-dot-checkout { background: #946bab; }
.calendar-legend { font-size: .8rem; color: #62665d; }
.calendar-legend .calendar-dot { margin: 0 4px 0 8px; }
.calendar-event-popover { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); z-index: 10; width: 210px; max-width: 65vw; padding: 12px; border: 1px solid #ccc5b9; border-radius: 8px; background: #fffaf6; color: #34392f; box-shadow: 0 6px 24px #34392f33; text-align: left; font: 13px/1.5 system-ui, sans-serif; }
.calendar-event:hover .calendar-event-popover, .calendar-event:focus-within .calendar-event-popover, .calendar-event.is-open .calendar-event-popover { display: block; }
.calendar-event-popover span { display: block; }
.calendar-month-table .calendar-event-popover a { padding: 8px 0 0; background: none; color: #874538; text-decoration: underline; }
.calendar-month-table td:first-child .calendar-event-popover { left: 0; transform: none; }
.calendar-month-table td:last-child .calendar-event-popover { left: auto; right: 0; transform: none; }
.calendar-times { box-sizing: border-box; width: min(500px, calc(100vw - 24px)); max-height: 80vh; overflow: auto; padding: 24px; border: 1px solid #ccc5b9; border-radius: 12px; background: #fffaf6; color: #34392f; }
.calendar-times::backdrop { background: #34392f80; }
.calendar-times-close { float: right; color: #874538; }
@media (max-width: 600px) {
  .calendar-month { padding: .5rem; }
  .calendar-month-table { border-spacing: 2px; }
  .calendar-month-table td a { padding: .65rem 0; }
}
.calendar-bank-holiday { display: block; width: fit-content; margin: .2rem auto; padding: .1rem .35rem; border-radius: 4px; background: #efe1b7; color: #34392f; font-size: .65rem; font-weight: 700; }
.calendar-bh-name { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calendar-times { width: min(540px, calc(100vw - 24px)); max-height: 94dvh; padding: 1.5rem; border: 1px solid #ded8ce; border-radius: 22px; box-shadow: 0 24px 90px #22251f33; }
.calendar-times h2 { margin: .35rem 0 1rem; font: 400 1.9rem/1.15 var(--serif, Georgia, serif); letter-spacing: -.04em; }
.calendar-times-close { font-size: .75rem; text-decoration: none; }
.timeline-hint { margin: 0 0 1rem; color: #696c61; font-size: .8rem; line-height: 1.6; }
.timeline-selection-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; background: #efe8f0; border-radius: 12px; margin-bottom: 1rem; }
.timeline-eyebrow { display: block; color: #716080; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.timeline-selection-heading p { margin: .15rem 0 0; font: 400 1.55rem/1.2 var(--serif, Georgia, serif); }
.calendar-times [data-time-edit], .calendar-times [data-time-apply] { padding: .6rem .9rem; border: 1px solid #bbaabd; border-radius: 100px; background: #fffaf6; color: #5e4d65; font: 600 .75rem var(--sans, sans-serif); cursor: pointer; white-space: nowrap; }
.timeline-manual { padding: 1rem; margin-bottom: 1rem; border: 1px solid #ded8ce; border-radius: 12px; background: #f7f3ec; }
.timeline-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.timeline-inputs label { color: #696c61; font-size: .7rem; }
.timeline-inputs input { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin-top: .3rem; padding: .6rem .7rem; border: 1px solid #ded8ce; border-radius: 9px; background: #fffdf8; color: #34392f; font: 1.15rem var(--sans, sans-serif); }
.timeline-inputs input[aria-invalid="true"] { border-color: #a2463a; }
.timeline-manual p { margin: .6rem 0 0; color: #696c61; font-size: .72rem; }
.timeline-scroll { max-height: min(360px, 42dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e8e2d9; border-radius: 12px; background: #fffdf8; scrollbar-color: #cbbdcc #f7f3ec; scrollbar-width: thin; }
.time-timeline { position: relative; padding: 0; }
.time-tick { position: relative; box-sizing: border-box; display: flex; align-items: start; width: 100%; height: 38px; min-height: 38px; padding: 0; border: 0; background: transparent; color: #696c61; text-align: left; cursor: pointer; font: .68rem var(--sans, sans-serif); }
.time-tick::after { content: ""; position: absolute; left: 62px; right: 0; top: 0; border-top: 1px solid #eee9e1; }
.time-axis { width: 62px; padding: .3rem .6rem; font-variant-numeric: tabular-nums; }
.time-tick-state { flex: 1; height: 100%; box-sizing: border-box; padding: .4rem .6rem; font-size: .65rem; text-align: right; }
.time-tick-unavailable .time-tick-state, .time-tick-checkout .time-tick-state { background: repeating-linear-gradient(135deg, #eeeae4, #eeeae4 5px, #f5f1ec 5px, #f5f1ec 10px); color: #79796f; }
.time-tick-provisional .time-tick-state { background: #efe1b744; }
.timeline-block { position: absolute; z-index: 1; left: 68px; right: 10px; box-sizing: border-box; min-height: 152px; display: flex; flex-direction: column; border: 1px solid #b29ab6; border-radius: 12px; background: #dfd2e2; box-shadow: 0 4px 12px #71608019; overflow: hidden; touch-action: none; }
.timeline-block.is-dragging { background: #d4c1d9; box-shadow: 0 8px 18px #71608033; }
.timeline-block button { border: 0; padding: 0; background: transparent; color: #4e3e56; cursor: grab; touch-action: none; font-family: var(--sans, sans-serif); }
.timeline-block button:active { cursor: grabbing; }
.timeline-handle { flex: 0 0 28px; width: 100%; display: flex; justify-content: center; align-items: center; cursor: ns-resize !important; }
.timeline-handle span { display: block; width: 30px; height: 3px; border-radius: 3px; background: #9a7ea2; }
.timeline-block-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: start; justify-content: center; gap: .3rem; padding: .25rem 1rem !important; text-align: left; }
.timeline-block-title { font-size: .7rem; }
.timeline-block-body strong { font: 400 1.5rem/1.15 var(--serif, Georgia, serif); letter-spacing: -.03em; }
.timeline-block-body [data-block-duration] { font-size: .72rem; color: #716080; }
.timeline-footer { padding-top: .9rem; text-align: center; }
.timeline-footer [data-time-summary] { margin: 0 0 .7rem; color: #696c61; font-size: .72rem; line-height: 1.5; }
.timeline-footer .button { box-sizing: border-box; width: 100%; justify-content: center; border-radius: 100px; }
.timeline-footer small { display: block; margin-top: .6rem; color: #696c61; font-size: .68rem; }
.calendar-times [hidden] { display: none; }
@media (max-width: 580px) {
  .calendar-times { padding: 1.1rem; }
  .timeline-selection-heading { padding: .75rem; gap: .5rem; }
  .timeline-block-body strong { font-size: 1.3rem; }
}
