/* ==========================================================================
   LyricBingo V2 — Host console (Spotify-style contained layout)
   ========================================================================== */

/* Host fills the main pane — no page-level scroll */
.lb-v2 .v2-main:has(.v2-host-pro) {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 10px 12px 10px !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
}

.lb-v2 #lb-v2-root:has(.v2-host-pro),
.lb-v2 .v2-shell:has(.v2-host-pro),
.lb-v2 .v2-shell-pro:has(.v2-host-pro) {
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Sidebar: nav hugs content, logout pins to bottom */
.lb-v2 .v2-side:has(~ .v2-main .v2-host-pro) .v2-nav,
.lb-v2 .v2-shell:has(.v2-host-pro) .v2-nav,
.lb-v2 .v2-shell-pro:has(.v2-host-pro) .v2-nav {
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.lb-v2 .v2-shell:has(.v2-host-pro) .v2-bottom,
.lb-v2 .v2-shell-pro:has(.v2-host-pro) .v2-bottom {
  margin-top: auto !important;
  flex-shrink: 0;
}

.lb-v2 .v2-main:has(.v2-host-pro) .v2-top,
.lb-v2 .v2-main:has(.v2-host-pro) .v2-top-pro {
  display: none !important;
}

.v2-host-pro {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 10px;
  padding-bottom: 0 !important;
  height: 100%;
}

/* Kill legacy beatdesk-v2.css host-pro grid/neon topbar */
.lb-v2 .v2-host-pro {
  display: flex !important;
  gap: 10px !important;
  padding-bottom: 0 !important;
}

.lb-v2 .v2-host-pro .v2-host-topbar {
  position: relative !important;
  top: auto !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  background: var(--pro-elevated, #181818) !important;
  border-radius: 12px !important;
}

/* ── Top bar — aligned to 3-column grid below ── */
.v2-host-topbar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(360px, 1.4fr) minmax(300px, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: var(--pro-elevated, #181818) !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: none !important;
}

.v2-host-topbar .v2-event-editor {
  grid-column: 1 / 3;
  min-width: 0;
}

.v2-host-topbar .v2-host-utilitybar {
  grid-column: 3;
  justify-self: end;
  align-self: start;
}

.v2-host-pro .v2-event-editor {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v2-host-pro .v2-event-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.v2-host-pro .v2-event-name-input {
  flex: 1 1 140px;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  padding: 8px 12px !important;
  line-height: 1.3 !important;
}

.v2-host-pro .v2-event-name-row .v2-btn {
  flex-shrink: 0;
  min-height: 36px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.v2-host-pro .v2-pill {
  align-self: flex-start;
}

.v2-host-topbar p,
.v2-host-meta {
  color: var(--pro-muted, #b3b3b3) !important;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400 !important;
  margin: 0 !important;
}

.v2-host-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  row-gap: 4px;
}

.v2-host-meta span {
  white-space: nowrap;
}

.v2-host-meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--pro-subtle, #6a6a6a);
  font-weight: 400;
}

.v2-host-utilitybar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-host-scan-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  background: #fff;
  color: #111;
  text-align: center;
  max-width: 108px;
}

.v2-host-scan-qr[hidden] {
  display: none !important;
}

.v2-host-scan-qr img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 6px;
}

.v2-host-scan-qr span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: #333;
}

.v2-host-scan-qr__title {
  display: block;
}

.v2-host-scan-qr__hint {
  display: block;
  font-size: 9px !important;
  font-weight: 500 !important;
  color: #666 !important;
  line-height: 1.2 !important;
}

.v2-host-utilitybar .v2-validate-btn {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  border-radius: 500px !important;
}

.v2-icon-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  background: var(--pro-hover, #282828) !important;
  box-shadow: none !important;
}

.v2-icon-btn:hover {
  border-color: var(--pro-border-strong, rgba(255, 255, 255, 0.14)) !important;
  transform: none !important;
  box-shadow: none !important;
}

.v2-venue-launch {
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 500px !important;
  border: 1px solid var(--pro-border-strong, rgba(255, 255, 255, 0.14)) !important;
  background: transparent !important;
  color: var(--pro-text, #fff) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.v2-venue-launch:hover {
  background: var(--pro-hover, #282828) !important;
  transform: none !important;
}

/* ── Three-column grid: deck | queue | status ── */
.v2-host-grid {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(360px, 1.4fr) minmax(300px, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 10px;
  align-items: stretch !important;
  overflow: hidden;
}

.v2-host-grid > * {
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

/* Left: deck fills column height */
.v2-host-deck {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0;
}

.v2-host-deck .v2-current-song {
  flex: 0 0 auto;
}

.v2-host-deck .v2-playback-console {
  flex: 0 0 auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.v2-host-deck .v2-playback-console .v2-deck-buttons,
.v2-host-deck .v2-playback-console .v2-deck-settings {
  flex-shrink: 0;
}

.v2-host-deck .v2-playback-console .v2-volume-row {
  margin-top: 10px;
  flex-shrink: 0;
}

.v2-host-deck .v2-playback-console .muted {
  flex-shrink: 0;
  margin-top: 0 !important;
}

/* Center: queue fills height — only the list scrolls */
.v2-host-queue,
.v2-queue-panel.v2-host-queue {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  margin: 0 !important;
  overflow: hidden;
  padding: 14px !important;
}

.v2-host-queue .v2-head {
  flex-shrink: 0;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

.v2-host-queue .v2-head > div {
  min-width: 0;
}

.v2-host-queue .v2-head h2 {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  white-space: nowrap;
}

.v2-host-queue .v2-head .v2-btn {
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

.v2-host-queue .v2-head p {
  display: none;
}

.v2-host-queue .v2-command-queue,
.v2-host-queue .v2-queue-list {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

/* Right column: equal height, full sidebar scroll */
.v2-game-status {
  grid-column: 3 !important;
  grid-row: 1 !important;
  position: relative !important;
  top: auto !important;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.v2-game-status > .v2-card:first-child {
  flex: 0 0 auto;
}

.v2-game-status > .v2-print-panel,
.v2-game-status > .v2-card.v2-print-panel,
.v2-game-status > .v2-card:has(.v2-print-status) {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.v2-game-status > .v2-card:not(:first-child):not(.v2-print-panel):not(:has(.v2-print-status)) {
  flex: 0 0 auto;
}

.v2-game-status > .v2-card {
  padding: 12px !important;
}

/* ── Cards: shared ── */
.v2-host-pro .v2-card {
  border-radius: 12px !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  background: var(--pro-elevated, #181818) !important;
  box-shadow: none !important;
  padding: 14px !important;
  min-width: 0;
  overflow: hidden;
}

.v2-host-pro .v2-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Override beatdesk-v2.css max-height on host queue */
.v2-host-pro .v2-host-queue .v2-command-queue,
.v2-host-pro .v2-host-queue .v2-queue-list.v2-command-queue {
  max-height: none !important;
}

/* Compact deck column */
.v2-host-deck .v2-current-song {
  display: grid !important;
  grid-template-columns: minmax(88px, 100px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: auto !important;
  padding: 14px !important;
}

.v2-host-pro .v2-host-eyebrow,
.v2-host-deck .v2-current-copy .v2-k {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--pro-subtle, #6a6a6a) !important;
  text-shadow: none !important;
  margin-bottom: 4px !important;
}

.v2-host-pro .v2-host-song-title,
.v2-host-deck .v2-current-copy h2 {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: var(--pro-text, #fff) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  margin: 0 0 4px !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.v2-host-deck .v2-current-copy p {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--pro-muted, #b3b3b3) !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-host-deck .v2-current-copy {
  min-width: 0;
}

.v2-host-deck .v2-hint-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 0;
}

.v2-host-deck .v2-hint-preview span {
  width: 30px !important;
  height: 30px !important;
  font-size: 14px !important;
  border-radius: 6px !important;
}

.v2-host-deck .v2-current-song .v2-audio-strip {
  margin-top: 8px;
  padding: 8px 10px !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  align-items: center;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.3;
}

.v2-host-deck .v2-current-song .v2-audio-bar {
  grid-column: 1 / -1;
  height: 6px;
}

.v2-host-deck .v2-current-song [data-audio-state] {
  grid-column: 1 / -1;
  text-transform: capitalize;
}

.v2-host-deck .v2-current-song [data-audio-progress],
.v2-host-deck .v2-current-song [data-audio-remaining],
.v2-host-deck .v2-current-song [data-volume-label] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.v2-host-deck .v2-current-art .v2-turntable {
  max-width: 110px !important;
}

.v2-host-deck .v2-playback-console {
  padding: 14px !important;
}

.v2-host-deck .v2-deck-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.v2-host-deck .v2-deck-buttons .v2-btn {
  min-height: 38px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-host-deck .v2-play-btn {
  font-size: 12px !important;
  min-height: 42px !important;
}

.v2-host-deck .v2-setting-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v2-host-deck .v2-deck-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-host-deck .v2-deck-settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v2-host-deck .v2-deck-settings-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pro-subtle, #6a6a6a);
}

.v2-host-deck .v2-setting-grid--timing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-host-deck .v2-setting-grid--audio {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-host-deck .v2-volume-row,
.v2-host-deck .v2-audio-strip {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 12px;
}

.v2-host-deck .v2-volume-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.v2-host-deck .v2-volume-row .v2-btn {
  min-height: 32px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}

.v2-host-deck .v2-playback-console .muted {
  margin: 8px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

/* Legacy alias — no longer used */
.v2-performance-deck {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.v2-performance-deck > .v2-current-song,
.v2-performance-deck > .v2-playback-console,
.v2-performance-deck > .v2-queue-panel {
  flex-shrink: 0;
}

.v2-performance-deck > .v2-queue-panel {
  display: block;
  overflow: visible;
  margin: 0 !important;
  min-height: auto;
}

.v2-game-status > .v2-card {
  flex-shrink: 0;
  min-width: 0;
}

/* ── Cards: pro palette (consolidated — deck overrides above) ── */
.v2-host-pro .v2-current-song {
  background: var(--pro-elevated, #181818) !important;
}

.v2-current-art {
  min-height: 0 !important;
}

.v2-current-art .v2-turntable {
  width: 100% !important;
  max-width: 110px;
}

.v2-mini-eq {
  display: none;
}

.v2-host-pro .v2-deck-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

.v2-host-pro .v2-deck-buttons .v2-btn {
  min-height: 38px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-host-pro .v2-setting-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.v2-host-pro .v2-deck-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-host-pro .v2-deck-settings-kicker {
  margin: 0;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--pro-subtle, #6a6a6a) !important;
}

.v2-host-pro .v2-setting-grid--timing {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.v2-host-pro .v2-setting-grid--audio {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.v2-host-pro .v2-setting span {
  font-size: 10px !important;
  font-weight: 500 !important;
  color: var(--pro-subtle, #6a6a6a) !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.v2-host-pro .v2-select {
  font-size: 13px !important;
  font-weight: 500 !important;
  min-width: 0;
  width: 100%;
}

.v2-host-pro .v2-game-status h2,
.v2-host-pro .v2-game-status h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 8px !important;
}

.v2-host-pro .v2-game-status p,
.v2-host-pro .v2-game-status label,
.v2-host-pro .v2-game-status small {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: var(--pro-muted, #b3b3b3) !important;
}

.v2-host-pro .v2-volume-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  color: var(--pro-muted, #b3b3b3);
  font-size: 12px;
  font-weight: 500;
}

.v2-host-pro .v2-audio-strip {
  margin-top: 8px;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  background: var(--pro-card, #1e1e1e) !important;
  color: var(--pro-muted, #b3b3b3) !important;
  font-weight: 500 !important;
  font-size: 10px !important;
}

/* ── Status sidebar ── */
.v2-status-grid {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 10px;
}

.v2-status-grid div {
  padding: 10px !important;
  border-radius: 8px !important;
  background: var(--pro-card, #1e1e1e) !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
}

.v2-status-grid span {
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pro-subtle, #6a6a6a) !important;
}

.v2-status-grid strong {
  display: block;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-top: 4px;
  text-transform: none !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-status-grid > div:nth-child(4) strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-mini-history {
  gap: 4px;
  min-width: 0;
  max-height: 108px;
  overflow-y: auto;
}

.v2-mini-history div {
  padding: 8px 10px !important;
  border-radius: 8px !important;
  background: var(--pro-card, #1e1e1e) !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  min-width: 0;
}

.v2-mini-history strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-mini-history small {
  display: block;
  color: var(--pro-muted, #b3b3b3);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Print panel + room links in sidebar */
.v2-host-pro .v2-print-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.v2-host-pro .v2-print-panel p.muted {
  margin: 0 !important;
  line-height: 1.35 !important;
}

.v2-host-pro .v2-print-panel h3 {
  font-size: 14px !important;
  margin: 0 !important;
}

.v2-host-pro .v2-print-panel .v2-input {
  width: 100%;
  min-width: 0;
}

.v2-host-pro .v2-print-panel .v2-actions,
.v2-host-pro .v2-game-status .v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v2-host-pro .v2-print-panel .v2-actions .v2-btn,
.v2-host-pro .v2-game-status .v2-actions .v2-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  min-height: 36px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-host-pro .v2-print-panel .v2-btn.wide {
  width: 100%;
  flex: 1 1 100%;
  min-height: 38px !important;
  font-size: 12px !important;
}

.v2-host-pro .v2-print-status {
  font-size: 12px;
  padding: 10px !important;
  border-radius: 8px !important;
}

.v2-host-pro .v2-game-status .muted {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

/* ── Queue rows ── */
.v2-host-queue {
  container-type: inline-size;
  container-name: host-queue;
}

.v2-host-pro .v2-command-queue .v2-queue-row {
  display: grid !important;
  grid-template-columns: 30px 24px minmax(0, 1fr) auto auto !important;
  grid-template-rows: auto !important;
  gap: 6px 8px !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  background: var(--pro-card, #1e1e1e) !important;
  font-weight: 400 !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
  transform: none !important;
  box-shadow: none !important;
}

@container host-queue (max-width: 480px) {
  .v2-host-pro .v2-command-queue .v2-queue-row {
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    row-gap: 4px !important;
  }

  .v2-host-pro .v2-command-queue .v2-queue-play {
    grid-row: 1 / 3;
    align-self: center;
  }

  .v2-host-pro .v2-command-queue .v2-queue-index {
    display: none !important;
  }

  .v2-host-pro .v2-command-queue .v2-queue-song {
    grid-column: 2;
    grid-row: 1;
  }

  .v2-host-pro .v2-command-queue em {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .v2-host-pro .v2-command-queue .v2-queue-tools {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }
}

.v2-host-pro .v2-command-queue .v2-queue-song {
  min-width: 0;
  line-height: 1.25;
}

.v2-host-pro .v2-command-queue .v2-queue-song strong {
  display: block;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--pro-text, #fff) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-host-pro .v2-command-queue .v2-queue-song small {
  display: block;
  margin-top: 1px;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--pro-muted, #b3b3b3) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-host-pro .v2-command-queue .v2-queue-row:hover {
  transform: none !important;
  background: var(--pro-hover, #282828) !important;
  border-color: var(--pro-border-strong, rgba(255, 255, 255, 0.14)) !important;
}

.v2-host-pro .v2-command-queue .v2-queue-row.is-now {
  border-color: var(--pro-accent, #c8f830) !important;
  background: var(--pro-accent-dim, rgba(200, 248, 48, 0.12)) !important;
  box-shadow: inset 3px 0 0 var(--pro-accent, #c8f830) !important;
}

.v2-host-pro .v2-command-queue .v2-queue-row.is-marked-played:not(.is-now),
.v2-host-pro .v2-command-queue .v2-queue-row.is-done:not(.is-now) {
  background: var(--pro-hover, #282828) !important;
  border-color: var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: none !important;
  opacity: 0.62 !important;
}

.v2-host-pro .v2-command-queue .v2-queue-row.is-marked-played:not(.is-now) .v2-queue-song strong,
.v2-host-pro .v2-command-queue .v2-queue-row.is-done:not(.is-now) .v2-queue-song strong {
  color: var(--pro-muted, #b3b3b3) !important;
}

.lb-v2 .v2-host-pro .v2-queue-row.is-now,
.lb-v2 .v2-host-pro .v2-queue-row.is-now.is-done {
  opacity: 1 !important;
  background: var(--pro-accent-dim, rgba(200, 248, 48, 0.1)) !important;
  border-color: rgba(200, 248, 48, 0.35) !important;
  box-shadow: inset 3px 0 0 var(--pro-accent, #c8f830) !important;
}

.lb-v2 .v2-host-pro .v2-queue-row.is-now .v2-queue-song strong,
.lb-v2 .v2-host-pro .v2-queue-row.is-now.is-done .v2-queue-song strong {
  color: var(--pro-text, #fff) !important;
}

.v2-queue-play {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  color: var(--pro-muted, #b3b3b3) !important;
  font-size: 11px !important;
  padding: 0 !important;
  cursor: pointer;
}

.v2-host-pro .v2-queue-row.is-now .v2-queue-play {
  background: var(--pro-accent, #c8f830) !important;
  color: var(--pro-accent-text, #000) !important;
  border: none !important;
}

.v2-queue-index {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--pro-subtle, #6a6a6a) !important;
  font-variant-numeric: tabular-nums;
}

.v2-host-pro .v2-queue-row.is-now .v2-queue-index {
  background: transparent !important;
  color: var(--pro-accent, #c8f830) !important;
}

.v2-host-pro .v2-command-queue em,
.v2-host-pro .v2-queue-row em {
  font-style: normal !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--pro-subtle, #6a6a6a) !important;
  white-space: nowrap !important;
  align-self: center !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  line-height: 1 !important;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-host-pro .v2-queue-row.is-now em {
  color: var(--pro-accent, #c8f830) !important;
  background: rgba(200, 248, 48, 0.12) !important;
}

.v2-host-pro .v2-queue-row.is-next em {
  color: var(--pro-text, #fff) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.v2-host-pro .v2-queue-row.is-marked-played em,
.v2-host-pro .v2-queue-row.is-done em {
  color: var(--pro-subtle, #6a6a6a) !important;
  background: transparent !important;
}

.lb-v2 .v2-host-pro .v2-queue-row.is-now.is-done em,
.lb-v2 .v2-host-pro .v2-queue-row.is-marked-played em {
  color: var(--pro-subtle, #6a6a6a) !important;
}

.v2-queue-tools {
  display: flex !important;
  gap: 1px !important;
  align-items: center !important;
  flex-shrink: 0;
}

.v2-queue-tools button {
  min-width: 24px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px !important;
  border: none !important;
  background: transparent !important;
  color: var(--pro-subtle, #6a6a6a) !important;
  font-size: 10px !important;
  padding: 0 !important;
  opacity: 0.7;
  transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.v2-host-deck .v2-hint-preview span,
.v2-host-pro .v2-hint-preview span {
  width: 30px !important;
  height: 30px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background: var(--pro-card, #1e1e1e) !important;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: none !important;
}

.v2-host-pro .v2-hint-preview span.on {
  border-color: var(--pro-accent, #c8f830) !important;
  background: var(--pro-accent-dim, rgba(200, 248, 48, 0.14)) !important;
  transform: none !important;
}

.v2-host-pro .v2-command-queue .v2-queue-row:hover .v2-queue-tools button {
  opacity: 1;
}

.v2-queue-tools button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--pro-text, #fff) !important;
}

/* Kill legacy neon queue / host overrides inside pro shell */
.lb-v2 .v2-host-pro .v2-queue-row.is-marked-played:not(.is-now),
.lb-v2 .v2-host-pro .v2-queue-row.is-done:not(.is-now) {
  background: var(--pro-hover, #282828) !important;
  border-color: var(--pro-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: none !important;
  opacity: 0.62 !important;
}

.lb-v2 .v2-host-pro .v2-queue-row.is-marked-played:not(.is-now) em,
.lb-v2 .v2-host-pro .v2-queue-row.is-done:not(.is-now) em {
  color: var(--pro-subtle, #6a6a6a) !important;
  background: transparent !important;
}

.lb-v2 .v2-host-pro .v2-queue-row.is-marked-played:not(.is-now) .v2-queue-index,
.lb-v2 .v2-host-pro .v2-queue-row.is-done:not(.is-now) .v2-queue-index {
  background: transparent !important;
  color: var(--pro-subtle, #6a6a6a) !important;
}

/* Scrollbar — deck, queue, sidebar */
.v2-host-deck::-webkit-scrollbar,
.v2-host-queue .v2-command-queue::-webkit-scrollbar,
.v2-host-queue .v2-queue-list::-webkit-scrollbar,
.v2-game-status::-webkit-scrollbar {
  width: 8px;
}

.v2-host-deck::-webkit-scrollbar-thumb,
.v2-host-queue .v2-command-queue::-webkit-scrollbar-thumb,
.v2-host-queue .v2-queue-list::-webkit-scrollbar-thumb,
.v2-game-status::-webkit-scrollbar-thumb {
  background: var(--pro-hover, #282828);
  border-radius: 999px;
}

/* host-console-layout-v13 — keep 3-col on laptops; deck column scrolls */
@media (min-width: 721px) {
  .lb-v2 .v2-main:has(.v2-host-pro),
  .lb-v2 #lb-v2-root:has(.v2-host-pro),
  .lb-v2 .v2-shell:has(.v2-host-pro),
  .lb-v2 .v2-shell-pro:has(.v2-host-pro) {
    overflow: hidden !important;
    height: 100dvh !important;
  }

  .v2-host-pro {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .v2-host-grid {
    grid-template-columns: minmax(280px, 1.05fr) minmax(360px, 1.4fr) minmax(300px, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .v2-host-grid > * {
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }

  .v2-host-deck {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .v2-host-deck .v2-playback-console {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .v2-host-topbar {
    flex-direction: column;
    padding: 12px !important;
  }

  .v2-host-pro .v2-event-name-input {
    font-size: 14px !important;
  }

  .v2-host-meta {
    font-size: 11px;
  }

  .v2-host-utilitybar .v2-validate-btn,
  .v2-venue-launch {
    flex: 1 1 auto;
    min-width: 0;
  }

  .v2-host-deck .v2-deck-buttons,
  .v2-host-pro .v2-deck-buttons {
    grid-template-columns: 1fr 1fr !important;
  }

  .v2-host-pro .v2-setting-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .v2-host-pro .v2-setting-grid--timing,
  .v2-host-deck .v2-setting-grid--timing {
    grid-template-columns: 1fr !important;
  }

  .v2-host-pro .v2-setting-grid--audio,
  .v2-host-deck .v2-setting-grid--audio {
    grid-template-columns: 1fr 1fr !important;
  }

  .v2-host-deck .v2-volume-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .v2-host-pro .v2-command-queue .v2-queue-row {
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
  }

  .v2-host-pro .v2-command-queue .v2-queue-play {
    grid-row: 1 / 3;
    align-self: center;
  }

  .v2-host-pro .v2-command-queue .v2-queue-index,
  .v2-host-pro .v2-command-queue em {
    display: none !important;
  }

  .v2-host-pro .v2-command-queue .v2-queue-song {
    grid-column: 2;
    grid-row: 1;
  }

  .v2-host-pro .v2-command-queue .v2-queue-tools {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .lb-v2 .v2-host-pro .v2-current-copy h2,
  .lb-v2 .v2-host-pro .v2-host-song-title {
    font-size: clamp(16px, 4.5vw, 20px) !important;
  }
}

/* ── Print preview modal: larger card previews ── */
body.lb-v2-active > .v2-modal.v2-print-modal .v2-modal-card {
  width: min(96vw, 1440px) !important;
  max-height: calc(100vh - 20px) !important;
  padding: 24px !important;
}

.v2-print-modal .v2-preview-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr) !important;
  gap: 24px !important;
  align-items: start;
}

.v2-print-modal .v2-preview-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.v2-print-modal .v2-preview-cards .bingo-card-preview-wrap {
  max-height: none !important;
  overflow: visible !important;
  width: 100%;
}

.v2-print-modal .bingo-card-preview-wrap .lb-paper-card {
  width: 100% !important;
  max-width: 4.35in !important;
  height: auto !important;
  min-height: 5.6in !important;
  max-height: none !important;
  margin: 0 auto;
}

.v2-print-modal .v2-preview-call {
  max-height: min(72vh, 760px) !important;
}

/* Host sidebar print panel — more room */
.v2-host-pro .v2-game-status > .v2-print-panel {
  min-height: 0;
  padding: 16px !important;
}

.v2-host-pro .v2-print-panel h3 {
  font-size: 16px !important;
}

.v2-host-pro .v2-print-panel .v2-setting span {
  font-size: 12px !important;
}

.v2-host-pro .v2-print-panel .v2-input {
  min-height: 44px !important;
  font-size: 15px !important;
}

.v2-host-pro .v2-print-panel .v2-actions .v2-btn {
  flex: 1 1 100% !important;
  min-height: 42px !important;
  font-size: 13px !important;
}

.v2-host-pro .v2-print-panel .v2-btn.wide {
  min-height: 44px !important;
  font-size: 13px !important;
}
