.view-tabs { display: flex; gap: 8px; position: sticky; top: 0; z-index: 5; background: var(--bg, #f5f3ed); padding: 12px 0; margin-bottom: 18px; }
.live-room-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding: 14px 16px; }
.live-room-panel p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.live-room-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.live-room-actions input { width: min(330px, 45vw); min-height: 38px; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; color: var(--ink); background: var(--surface-2); }
[data-kind="error"] { color: #b42318 !important; }
[data-kind="owner"] { color: #19725f !important; }
.live-readonly .results button, .live-readonly #teamView button, .live-readonly #teamView select, .live-readonly #competitionView button, .live-readonly #competitionView input, .live-readonly #competitionView select { pointer-events: none; opacity: .58; }
@media (max-width: 700px) { .live-room-panel { align-items: flex-start; flex-direction: column; } .live-room-actions { justify-content: flex-start; width: 100%; } .live-room-actions input { width: 100%; } }
.view-tabs button { flex: 1; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; background: var(--surface); color: var(--muted); }
.view-tabs button:hover { background: var(--surface-2); color: var(--ink); }
.view-tabs button[aria-pressed="true"] { background: color-mix(in srgb, var(--orange) 18%, var(--surface)); border-color: var(--orange); color: var(--orange-2); }
.view-tabs button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
#tabTimer { font-variant-numeric: tabular-nums; margin-left: 8px; }
.attendance-select { font: inherit; font-size: .75rem; width: 104px; height: 32px; min-height: 32px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.roster .player { grid-template-columns: 34px minmax(0, 1fr) 104px 104px auto auto; }
.team-list li { display: flex; align-items: center; gap: 8px; }
.team-list li .swap-player { flex: 1; min-width: 0; }
.team-list li > .attendance-select { flex: 0 0 104px; margin: 0; }
.team-list .member-name { overflow-wrap: anywhere; }
.attendance-panel { margin-top: 24px; }
.attendance-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.attendance-list li, .arrival-placement { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.attendance-list li > span { flex: 1; }
.attendance-list button { font: inherit; min-height: 40px; border: 1px solid #b7b7b7; border-radius: 8px; background: white; padding: 8px 12px; cursor: pointer; }
.attendance-capacity { color: var(--muted); font-size: .9rem; }
#archivedSets { margin-top: 20px; }
#archivedSets details { padding: 12px 0; border-bottom: 1px solid #ddd; }
#archivedSets summary { cursor: pointer; padding: 8px 0; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .attendance-list li > span { flex-basis: 100%; } .view-tabs { top: 0; } }
@media (max-width: 900px) {
  .roster .player { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 4px; }
  .roster .player-name { grid-column: 2 / 4; grid-row: 1; }
  .roster .position-select { grid-column: 2; grid-row: 2; width: 100%; margin: 0; }
  .roster .attendance-select { grid-column: 3; grid-row: 2; width: 100%; }
  .roster .player-tags { grid-column: 2 / 4; grid-row: 3; padding: 0; flex-wrap: wrap; }
  .roster .player-actions { grid-column: 4; grid-row: 1 / span 3; }
}
