/* Room maps (room.js), the editor (editor.js) and the seat picker (join.js). From the cockpit mock-up's room.css. */
.room { display: block; position: relative; width: 100%; container-type: inline-size; }
.room .lectern { position: absolute; display: grid; place-items: center; line-height: 1; font-size: 11px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.room .rm-group { position: absolute; }
.room .rm-top { position: absolute; background: var(--line); border-radius: 3px; }
.room .pod > .rm-top { border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); }
.seat { position: absolute; border-radius: 50%; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center;
  justify-content: center; line-height: 1.05; padding: 0; min-width: 0; color: var(--ink); background: var(--surface-2); }
.seat .vl { font-family: var(--mono); font-size: 11px; font-weight: 700; opacity: .85; }
.seat .nm { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seat .nm-short { display: none; }
@container (max-width: 640px) { .room .nm-full { display: none; } .room .nm-short { display: inline; } .room .seat .vl { font-size: 9px; } }

/* Room screen */
.seat.here { background: var(--clay); color: #fff; }
.seat.open { background: var(--surface); border: 1px dashed var(--ink-2); color: var(--ink-2); }

/* Seat picker on the phone */
.pick .seat { font: inherit; cursor: pointer; }
.pick .seat.free { background: var(--surface); border: 1.5px solid var(--ink-2); }
.pick .seat.free:hover { border-color: var(--clay); }
.pick .seat.free::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; }
.pick .seat.taken { background: var(--line); cursor: default; }
.pick .seat.mine { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 0 0 3px var(--clay-soft); }
.legend .k-free { border: 1.5px solid var(--ink-2); }
.legend .k-taken { background: var(--line); }
.legend .k-mine { background: var(--clay); }

/* Editor */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ed-stage { position: relative; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background-color: var(--surface);
  background-image: linear-gradient(var(--surface-2) 1px, transparent 1px), linear-gradient(90deg, var(--surface-2) 1px, transparent 1px); background-size: 24px 24px; }
.ed-canvas { touch-action: none; }
.ed-canvas .rm-group { cursor: grab; touch-action: none; border-radius: 8px; outline: 2px solid transparent; outline-offset: 3px; user-select: none; -webkit-user-select: none; }
.ed-canvas .rm-group:hover { outline-color: var(--line); }
.ed-canvas .rm-group.on { outline: 2px dashed var(--clay); }
.ed-canvas .rm-group.drag { cursor: grabbing; z-index: 2; }
.ed-canvas .rm-group.clash .rm-top { background: var(--danger); }
.ed-canvas .seat { pointer-events: none; background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
@container (max-width: 460px) { .ed-canvas .vl { display: none; } }
.ed-side { display: flex; flex-direction: column; gap: 14px; }
.ed-sel { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--clay-soft); background: var(--paper); border-radius: var(--r-m); padding: 12px; }
.ed-photo { display: block; width: 100%; max-height: 220px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); }
.ed-photo-big { max-height: 420px; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stepper b { min-width: 44px; text-align: center; font-family: var(--mono); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.type { display: flex; flex-direction: column; gap: 8px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; background: var(--surface); font-weight: 600; cursor: pointer; }
.type.on { border-color: var(--clay); box-shadow: 0 0 0 2px var(--clay-soft); }
.type .room { pointer-events: none; }
.type .lectern { font-size: 0; }
.type .seat { background: var(--ink-2); }
.file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
label.btn { position: relative; }
label.btn:focus-within { outline: 2px solid var(--proposed); outline-offset: 2px; }
@media (max-width: 900px) { .ed { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } .type { flex-direction: row; align-items: center; } .type .room { width: 96px; flex: none; } }
