/* Site-only authoritative table. These rules must not affect the itch bundle. */
#authorityPanel {
  position: fixed;
  inset: auto 0 0 0;
  top: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 9, 6, .78);
  backdrop-filter: blur(3px);
}

.table-card {
  width: min(960px, 100%);
  max-height: min(100%, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(42,33,25,.98), rgba(20,16,12,.99));
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.table-head h3 { margin: 0; font-family: Georgia, serif; letter-spacing: .04em; }
.table-body { padding: 16px 18px 20px; display: grid; gap: 14px; }
.table-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.table-status { min-height: 21px; font-size: 13px; color: #e8d6b5; }
.table-status.error { color: #f1a39b; }
.table-status.ok { color: #9fd1a4; }
.connect-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-id { font-size: 22px; color: #f0c57f; font-family: Georgia, serif; }
.table-launch { align-self: center; flex: 0 0 auto; }
.seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seat-chip, .phase-card, .table-log {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: rgba(255,255,255,.03);
}
.seat-chip.active { border-color: #d8a25a; background: rgba(216,162,90,.09); }
.seat-chip strong { display: block; }
.seat-chip small { color: var(--muted); }
.phase-card strong { display: block; margin-bottom: 4px; color: #f0c57f; }
.table-hand { display: flex; flex-wrap: wrap; gap: 7px; min-height: 82px; align-items: flex-end; }
.table-hand .card { cursor: pointer; }
.table-hand .card.selected { transform: translateY(-7px); border-color: #f0c57f; box-shadow: 0 0 0 1px #f0c57f; }
.table-hand .card:disabled { cursor: default; }
.terminal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.table-log { min-height: 64px; color: var(--muted); font-size: 13px; }
.table-code { padding: 4px 7px; border-radius: 4px; background: #241c12; font-family: monospace; }
.coach-card {
  border-left: 3px solid #d8a25a;
  padding: 10px 12px;
  background: rgba(216,162,90,.07);
  font-size: 13px;
  line-height: 1.45;
}
.coach-card .coach-title { color: #f0c57f; font-weight: 750; display: block; margin-bottom: 5px; }
.coach-card ul { margin: 5px 0 0; padding-left: 18px; color: var(--muted); }
.reaction-list { display: grid; gap: 6px; }
.reaction {
  border: 1px solid #5a4620;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,.03);
  font-size: 12.5px;
}
.reaction .who { color: #f0c57f; font-weight: 700; margin-right: 5px; }
.reaction .ai-tag {
  font-size: 9px;
  text-transform: uppercase;
  background: #503c22;
  color: #f7ddaa;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 5px;
}

@media (max-width: 720px) {
  .seats, .terminal-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .table-card { max-height: calc(100dvh - 30px); }
}
