/* Rooms: one class, several room plans. Loads after hub.css. Tokens come from studio.css so light and dark both work. */
.room-plans { display: flex; align-items: center; gap: var(--s2); flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 1px 2px; }
.room-plans::-webkit-scrollbar { display: none; }
.room-chip, .room-add { flex: none; height: 28px; min-height: 28px; padding: 0 var(--s3); border-radius: var(--r-pill); font-size: var(--t-cap); font-weight: 650; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.room-chip { background: var(--raised); color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
.room-chip:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.room-chip[aria-pressed=true] { background: var(--accent-soft, color-mix(in srgb, var(--ui-accent) 14%, var(--raised))); color: var(--ink); border-color: var(--ui-accent); box-shadow: inset 0 0 0 1px var(--ui-accent); }
.room-add { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); box-shadow: none; }
.room-add:hover:not(:disabled) { color: var(--ink); border-color: var(--ui-accent); background: color-mix(in srgb, var(--ui-accent) 8%, transparent); }
.room-add-plus { position: relative; width: 11px; height: 11px; flex: none; }
.room-add-plus::before, .room-add-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 1px; background: currentColor; translate: -50% -50%; }
.room-add-plus::after { rotate: 90deg; }
.room-chip:focus-visible, .room-add:focus-visible, .room-row button:focus-visible { outline: 3px solid var(--ui-accent); outline-offset: 2px; }

.room-list { display: grid; gap: var(--s2); }
.room-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s2); padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raised); }
.room-row[data-active=true] { border-color: var(--ui-accent); box-shadow: inset 0 0 0 1px var(--ui-accent); }
.room-row input { grid-column: 1 / -1; width: 100%; font-weight: 600; }
.room-row .room-meta { grid-column: 1; color: var(--muted); font-size: var(--t-cap); }
.room-row button { height: 30px; min-height: 30px; padding: 0 var(--s3); font-size: var(--t-cap); }
.room-row button[hidden] { display: none; }
.room-row .room-meta { grid-row: 2; }
.room-row button:nth-of-type(1) { grid-column: 2; grid-row: 2; }
.room-row button:nth-of-type(2) { grid-column: 3; grid-row: 2; }

@media (prefers-reduced-motion: no-preference) {
  #grid.room-swap { animation: room-swap .32s var(--ease) both; }
  @keyframes room-swap { from { opacity: .0; transform-origin: 50% 40%; } to { opacity: 1; } }
}
@media print { .room-plans { display: none !important; } }
