.min-w-0 { min-width: 0; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: .5rem; }
.slot { position: relative; min-height: 3.75rem; padding: .4rem .5rem 1.25rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: #fff; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.slot .slot-time { display: block; font-weight: 600; font-size: 1rem; }
.slot .slot-occupancy { position: absolute; left: .5rem; bottom: .3rem; font-size: .7rem; color: var(--bs-secondary-color); }
.slot .slot-mine { position: absolute; top: .3rem; right: .4rem; color: #0f766e; font-size: .85rem; }
.slot.selected, .slot:has(input:checked) { background: #0f766e; border-color: #0f766e; color: #fff; }
.slot.selected .slot-occupancy, .slot:has(input:checked) .slot-occupancy, .slot.selected .slot-mine, .slot:has(input:checked) .slot-mine { color: rgba(255, 255, 255, .85); }
.slot:has(input:focus-visible) { box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .35); }
.slot.full, .slot.past, .slot:has(input:disabled) { background: var(--bs-secondary-bg); color: var(--bs-tertiary-color); cursor: not-allowed; }
.slot.full .slot-occupancy { color: #dc3545; font-weight: 600; }
.slot .slot-flat { position: absolute; right: .4rem; bottom: .3rem; font-size: .7rem; color: var(--bs-secondary-color); }
.slot.flat-full .slot-flat { color: #dc3545; font-weight: 600; }
.slot:has(input:checked) .slot-flat { color: rgba(255, 255, 255, .85); }

.legend-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: .2rem; vertical-align: -1px; border: 1px solid var(--bs-border-color); background: #fff; }
.legend-dot.selected { background: #0f766e; border-color: #0f766e; }
.legend-dot.full { background: var(--bs-secondary-bg); }
.legend-dot.continuation { background: #eef2ff; border: 1px dashed #4f46e5; }

.slot-separator { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin-top: .5rem; padding: .4rem .6rem; border-radius: .5rem; background: #eef2ff; color: #3730a3; font-size: .85rem; font-weight: 600; }
.slot-separator::after { content: ""; flex: 1; border-top: 1px dashed #818cf8; }
.slot.continuation { background: #eef2ff; border: 1px dashed #4f46e5; }
.slot.continuation .slot-next-day { position: absolute; right: .35rem; bottom: .25rem; padding: 0 .3rem; border-radius: .3rem; background: #4f46e5; color: #fff; font-size: .62rem; font-weight: 600; line-height: 1.3; }
.slot.continuation.selected, .slot.continuation:has(input:checked) { background: #0f766e; border: 2px dashed #312e81; color: #fff; }
.slot.continuation.selected .slot-next-day, .slot.continuation:has(input:checked) .slot-next-day { background: #fff; color: #0f766e; }
.slot.continuation.full, .slot.continuation.past, .slot.continuation:has(input:disabled) { background: repeating-linear-gradient(135deg, var(--bs-secondary-bg) 0 .4rem, #e0e7ff .4rem .8rem); color: var(--bs-tertiary-color); }
.slot.continuation.full .slot-next-day, .slot.continuation.past .slot-next-day, .slot.continuation:has(input:disabled) .slot-next-day { background: #a5b4fc; }

