/* Floor plan: each chair maps to an existing booking slot. */
.workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.day-details .section-title { margin-bottom: 0; }
.workspace-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: fit-content; max-width: 100%; }
.workspace-tab { min-height: 44px; padding: 10px 24px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.workspace-tab[aria-selected="true"] { color: var(--ink); background: var(--surface-strong); border-color: var(--line); }
.workspace-tab:hover { color: var(--ink); }
.workspace-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.participants { position: static; border: 0; padding: 0; }
.seating-plan { --map-bg: #1b1915; --map-ink: #f0e7d8; --map-muted: #b6ab99; --table-bg: #302b22; --table-border: #74614a; --seat-bg: #25251e; --seat-line: #d6ae78; --seat-ink: #efc892; --occupied-bg: #214637; --occupied-line: #66b38b; --occupied-ink: #c7f2d6; padding: 24px; border: 1px solid #454034; border-radius: 16px; background: var(--map-bg); color: var(--map-ink); }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-heading .eyebrow { color: var(--map-muted); font-size: 10px; letter-spacing: 1.8px; font-weight: 600; }
.plan-heading h2 { font-size: 24px; font-weight: 650; letter-spacing: -.5px; }
.plan-capacity { color: var(--map-muted); font-size: 12px; white-space: nowrap; }
.seat-legend { display: flex; gap: 18px; margin-top: 18px; font-size: 12px; color: var(--map-muted); }
.seat-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.seat-legend i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--seat-line); background: var(--seat-bg); }
.seat-legend .legend-booked { border-color: var(--occupied-line); background: var(--occupied-bg); }
.plan-hint { margin: 10px 0 6px; color: var(--map-muted); font-size: 12px; }
.room-map { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 500px 460px 460px; gap: 28px 64px; max-width: 1240px; margin: 14px auto 0; }
.table-zone { position: relative; min-width: 0; }
.common-zone { grid-row: span 2; }
.kitchen-zone { grid-column: 1 / -1; width: 100%; max-width: 520px; justify-self: center; }
.table-surface { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--table-border); border-radius: 10px; background: var(--table-bg); text-align: center; padding: 12px; box-shadow: inset 0 0 0 5px var(--map-bg), 0 10px 18px #00000018; }
.table-surface strong { font-size: 16px; font-weight: 650; line-height: 1.25; }
.table-surface > span:not(.table-mark):not(.table-decoration), .big-surface > div > span:not(.table-mark) { color: var(--map-muted); font-size: 10px; line-height: 1.45; }
.table-surface small { color: var(--map-muted); font-size: 11px; }
.table-mark { color: var(--map-muted); font-size: 10px; letter-spacing: 2px; font-weight: 500; }
.table-decoration { margin-top: 28px; font-size: 34px; color: var(--seat-line); opacity: .5; }
.common-surface { left: 27%; top: 18%; width: 46%; height: 64%; }
.tea-surface { left: 14%; top: 32%; width: 72%; height: 38%; }
.big-surface { left: 27%; top: 6%; width: 46%; height: 88%; padding: 0; gap: 0; }
.big-surface > div { display: flex; flex: 1; width: 100%; flex-direction: column; gap: 6px; align-items: center; justify-content: center; padding: 8px; }
.big-surface > div + div { border-top: 2px dashed var(--table-border); }
.big-surface strong { font-size: 14px; }
.kitchen-surface { left: 32.5%; top: 35%; width: 35%; height: 124px; border-radius: 26px; padding: 8px; gap: 4px; }
.chair { position: absolute; transform: translate(-50%, -50%); width: 160px; display: grid; gap: 6px; }
.chair-label { font-size: 11px; color: var(--map-muted); text-align: center; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.seat { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 56px; border: 1px solid var(--seat-line); border-radius: 9px; padding: 8px 10px; color: var(--seat-ink); background: var(--seat-bg); text-align: left; }
.shift-number { font-size: 13px; font-weight: 650; border-right: 1px solid #b6ab9950; padding-right: 7px; min-width: 46px; white-space: nowrap; }
.shift-person { min-width: 0; display: grid; gap: 2px; }
.seat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.25; }
.seat-time { font-size: 11px; color: var(--map-muted); line-height: 1.1; }
.seat.is-booked { background: var(--occupied-bg); border-color: var(--occupied-line); color: var(--occupied-ink); }
.seat.is-mine { box-shadow: inset 3px 0 var(--occupied-line); }
.seat:not(:disabled):hover { filter: brightness(1.2); }
.seat:focus-visible { outline: 3px solid var(--map-ink); outline-offset: 2px; }
.seat:disabled { cursor: default; opacity: 1; }
.participant-shift { color: var(--accent-dark); font-size: 12px; }
.player-slot.is-selected { border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.seat.is-movable { cursor: grab; touch-action: none; user-select: none; }
.seat.is-dragging { opacity: .4; cursor: grabbing; }
.seat.is-drop-target { outline: 2px dashed var(--seat-line); outline-offset: 4px; }
.seat.is-drop-over { outline: 3px solid var(--occupied-line); outline-offset: 5px; transform: scale(1.12); }
.room-map[aria-busy="true"] { pointer-events: none; opacity: .65; }
.seat-drag-ghost { position: fixed; z-index: 100; pointer-events: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 14px; border: 1px solid #66b38b; border-radius: 12px; background: #214637; color: #f0e7d8; box-shadow: 0 6px 24px #0007; }
.seat-move-status { margin: 8px 0 0; color: var(--accent-dark); font-size: 12px; }
.seat-move-status:empty { display: none; }

.archive-index { max-width: 980px; margin: 32px auto; }
.archive-index h2 { font-size: 30px; }
.archive-description { color: var(--muted); font-size: 14px; margin: 12px 0 28px; }
.archive-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.archive-day-link { display: grid; grid-template-columns: 130px minmax(0, 1fr) 130px 20px; align-items: center; gap: 20px; padding: 24px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s; }
.archive-day-link:hover, .archive-day-link:focus-visible { background: var(--surface-strong); outline: 2px solid var(--accent); outline-offset: -2px; }
.archive-day-link time { color: var(--accent-dark); font-size: 16px; font-weight: 650; }
.archive-day-theme { overflow-wrap: anywhere; }
.archive-day-count { color: var(--muted); font-size: 13px; }
.archive-back { display: inline-block; color: var(--accent-dark); text-decoration: none; margin: 2px 0 22px; font-size: 14px; }
@media (max-width: 1280px) {
  .room-map { grid-template-columns: 1fr; grid-template-rows: 960px 500px 460px 460px; gap: 16px; max-width: 620px; margin: 18px auto 0; }
  .common-zone { grid-row: auto; }
  .chair { width: 26%; }
}
@media (max-width: 680px) {
  .seating-plan { padding: 18px 12px; }
  .plan-heading { align-items: flex-start; }
  .plan-heading h2 { font-size: 23px; }
  .plan-capacity { font-size: 10px; }
  .room-map { grid-template-columns: 1fr; grid-template-rows: 960px 500px 460px 460px; gap: 16px; max-width: 400px; margin: 18px auto 0; }
  .common-zone { grid-row: auto; }
  .kitchen-zone { width: 100%; }
  .chair-label { font-size: 10px; }
  .seat { flex-direction: column; justify-content: center; }
  .shift-number { border-right: 0; padding-right: 0; min-width: 0; font-size: 12px; }
  .shift-person { width: 100%; text-align: center; }
  .seat-time { display: none; }
  .seat { padding: 5px 3px; gap: 3px; }
  .seat-name { font-size: 12px; }
  .seat-time { font-size: 10px; }
  .table-surface strong { font-size: 17px; }
  .archive-day-link { grid-template-columns: 1fr auto; gap: 10px; padding: 20px 8px; }
  .archive-day-theme { grid-row: 2; }
  .archive-day-count { grid-column: 2; grid-row: 2; font-size: 11px; }
  .archive-day-link > span:last-child { grid-column: 2; grid-row: 1; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .seat-circle { transition: none; }
}

.kitchen-surface strong { font-size: 14px; overflow-wrap: anywhere; }
.kitchen-surface > span:not(.table-mark) { font-size: 9px; }
