/* Shared table UI: seats (docs/ux/table-v2-spec.md §5). Owner: C04.
   Classes: .tui-seats*. Phone portrait first, then the landscape and desktop blocks. */
.tui-chip {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: var(--tui-tap); min-width: var(--tui-tap); box-sizing: border-box; padding: 0 8px 0 4px;
  font: inherit; font-size: 13px; color: var(--tui-text); background: var(--tui-panel-2); border: 1px solid var(--tui-line); border-radius: 999px; cursor: pointer; touch-action: manipulation; position: relative;
}
.tui-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--tui-seat, var(--tui-line)); }
.tui-life { font-variant-numeric: tabular-nums; }
.tui-chip-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tui-chip-n { color: var(--tui-muted); font-size: 12px; }
.tui-chip.tui-focus { border-color: var(--tui-seat, var(--tui-accent)); background: var(--tui-panel); }
.tui-chip.tui-active::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--tui-good); } /* the turn dot */
.tui-chip.tui-prio { box-shadow: inset 0 0 0 2px var(--tui-gold); } /* priority ring */
.tui-chip.tui-you .tui-av { outline: 2px solid var(--tui-accent); }
.tui-players .tui-chip { width: 100%; border-radius: var(--tui-radius); justify-content: flex-start; }
.tui-players .tui-life { margin-left: auto; }
.tui-step, .tui-more { flex: none; min-height: var(--tui-tap); min-width: var(--tui-tap); font: inherit; font-size: 13px; color: var(--tui-text); background: var(--tui-panel-2); border: 1px solid var(--tui-line); border-radius: 999px; padding: 0 12px; cursor: pointer; touch-action: manipulation; }
.tui-step { margin-left: auto; }
.tui-chip:focus-visible, .tui-step:focus-visible, .tui-more:focus-visible { outline: 2px solid var(--tui-gold); outline-offset: 2px; }
/* the steps popover */
.tui-steps { position: fixed; z-index: 20; top: calc(var(--tui-top-h) + 4px); right: 8px; width: min(260px, calc(100vw - 16px)); max-height: calc(100dvh - var(--tui-top-h) - var(--tui-dock-h) - 16px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--tui-panel); border: 1px solid var(--tui-line); border-radius: var(--tui-radius); box-shadow: 0 8px 24px rgb(0 0 0 / .5); }
.tui-steps li { display: flex; align-items: center; gap: 8px; min-height: var(--tui-tap); padding: 0 10px; border-radius: 8px; color: var(--tui-muted); }
.tui-steps li.tui-done { opacity: .6; }
.tui-steps li.tui-on { color: var(--tui-text); background: var(--tui-panel-2); font-weight: 600; }
.tui-steps .tui-stop { margin-left: auto; color: var(--tui-gold); font-size: 12px; }
/* the phone strip: chips scroll sideways; the step pill and ⋯ stay pinned on the right */
.tui-seatstrip { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--tui-gap); }
.tui-seatstrip-chips { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--tui-gap); overflow-x: auto; scrollbar-width: none; }
.tui-seatstrip-chips::-webkit-scrollbar { display: none; }
.tui-seatstrip .tui-step { margin-left: 0; }
@media (orientation: landscape) and (max-height: 500px) {
  .tui-steps { max-height: calc(100dvh - var(--tui-top-h) - var(--tui-hand-h-land) - 16px); } /* clear of the dock under the right column */
}
