.room-schedule {
    --accent: #087b7f;
    --muted: #5d6467;
    font-variant-numeric: tabular-nums;
}
.room-schedule[hidden] { display: none; }
.room-schedule *, .room-schedule *::before, .room-schedule *::after { box-sizing: border-box; }
.room-schedule .game-settings { gap: 12px 20px; }
.room-schedule .game-settings select {
    padding-right: 30px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23444' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.room-schedule .drag-instruction { font-size: 15px; color: var(--muted); margin: 20px 0 14px; }
.room-schedule .room-row { margin: 16px 0; }
.room-schedule .room-row h3 { margin: 0 0 8px; font: inherit; font-size: 16px; font-weight: bold; }
.room-schedule .order-lane {
    display: grid;
    grid-template-columns: repeat(var(--columns, 5), minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.room-schedule .order-lane li { min-width: 0; margin: 0; }
.room-schedule button.group-tile {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 8px;
    width: 100%;
    min-height: 66px;
    padding: 8px 6px 7px 16px;
    border: 1px solid var(--edge);
    background: var(--fill);
    color: #202b31;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    border-radius: 4px;
}
.room-schedule button.group-tile:not(:disabled):hover { background: var(--fill); filter: brightness(.97); }
.room-schedule .group-number { font-size: 23px; line-height: 1.2; }
.room-schedule .group-time { font-size: 14px; white-space: nowrap; }
.room-schedule .grip {
    position: absolute;
    left: 5px;
    top: calc(50% - 9px);
    width: 6px;
    height: 18px;
    opacity: .5;
    background: radial-gradient(circle, #34454c .8px, transparent 1px) 0 0 / 3px 6px;
}
.room-schedule .group-tile.drag-placeholder { opacity: .3; border-style: dashed; }
.room-schedule .group-tile.drag-ghost {
    position: fixed;
    z-index: 30;
    margin: 0;
    pointer-events: none;
    cursor: grabbing;
    opacity: .96;
    box-shadow: 0 5px 12px #0003;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    filter: none;
}
.room-schedule .timeline-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 16px;
}
.room-schedule .timeline-heading > :last-child { font-size: 14px; color: var(--muted); }
.room-schedule .timeline { margin: 8px 0 0; }
.room-schedule .timeline svg { display: block; width: 100%; overflow: visible; }
.room-schedule .timeline text { fill: #30393b; font-family: inherit; }
.room-schedule .timeline .timeline-number { font-family: sans-serif; font-weight: bold; }
.room-schedule .status-line { margin: 6px 0 20px; }
.room-schedule #rooms-status { margin: 0 0 8px; font-size: 16px; }
.room-schedule #rooms-status[data-state="complete"] { color: #09634d; font-weight: bold; }
.room-schedule #rooms-status[data-state="overlap"] { color: #873c28; }
.room-schedule .game-actions { gap: 8px; }
.room-schedule .game-actions button { font-size: 16px; }
.room-schedule .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
    .room-schedule .order-lane { grid-template-columns: repeat(var(--mobile-columns, 3), minmax(0, 1fr)); gap: 7px; }
    .room-schedule button.group-tile { min-height: 64px; gap: 2px 5px; padding-left: 14px; }
    .room-schedule .group-time { font-size: 14px; }
    .room-schedule .group-number { font-size: 22px; }
    .room-schedule .game-settings { align-items: flex-start; gap: 10px; }
    .room-schedule .game-settings label { gap: 6px; }
    .room-schedule .game-actions button { flex: 1 1 auto; padding-inline: 10px; }
}
