.live-guide {
  margin: 1rem 1.5rem 0;
  padding: 0.75rem 1rem;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.live-layout {
  display: grid;
  grid-template-columns: 280px 260px 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  padding: 1rem 1.5rem 2rem;
  align-items: start;
}

.session-col {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.live-dashboard-col {
  grid-column: 2;
  grid-row: 1;
}

.song-queue-col {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
}

.fyp-panel-inline {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.live-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.dash-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  min-width: 0;
}

.dash-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.dash-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-value.ok { color: #8ec8ff; }
.dash-value.warn { color: #ffb020; }
.dash-value.danger { color: #ff6b6b; }

.dash-stats,
.dash-metrics {
  font-size: 0.82rem;
}

.dash-churn {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.dash-churn.danger {
  background: rgba(220, 80, 80, 0.15);
  border-left: 3px solid #e05555;
}

.live-layout .full-width {
  grid-column: 1 / -1;
}

.live-layout .span-cols-2 {
  grid-column: span 2;
}

.fyp-checklist-compact {
  max-height: 120px;
  overflow-y: auto;
}

.coach-panel {
  border-color: rgba(201, 169, 98, 0.5);
  padding: 0.75rem 0.85rem;
}

.coach-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 0.65rem;
  align-items: start;
}

.coach-tabs-area {
  min-width: 0;
}

.coach-side-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.coach-side-stack:not(:has(:not([hidden]))) {
  display: none;
}

@media (max-width: 820px) {
  .coach-panel-grid {
    grid-template-columns: 1fr;
  }
}

.coach-panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.coach-panel-head h2 { margin: 0; font-size: 1rem; }

.coach-tabs {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}

.coach-tab {
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(201, 169, 98, 0.4);
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
}

.coach-tab.active {
  background: rgba(201, 169, 98, 0.18);
  color: var(--gold);
  border-color: var(--gold);
}

.coach-tab-panel {
  min-height: 0;
}

.coach-panel .tips-list,
.coach-panel .tikitaka-feed {
  max-height: 220px;
}

.coach-panel .tips-list li {
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.coach-panel .tikitaka-card {
  padding: 0.65rem;
  margin-bottom: 0.45rem;
}

.coach-panel .mission-box {
  margin-top: 0;
  padding: 0.65rem 0.75rem;
}

.coach-panel .crisis-inline {
  margin-top: 0;
  padding: 0.65rem 0.75rem;
}

.fyp-panel {
  border-color: rgba(100, 180, 255, 0.35);
  background: rgba(100, 180, 255, 0.04);
}

.fyp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.fyp-head h2 { margin: 0; }

.health-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.health-signal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
}

.health-signal.green { background: #4caf50; }
.health-signal.yellow { background: #ffb020; }
.health-signal.red { background: #e05555; }

.fyp-score-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

@media (max-width: 700px) {
  .fyp-score-row { grid-template-columns: 1fr; }
}

.health-gauge-wrap { display: flex; align-items: center; gap: 0.75rem; }

.health-gauge-bar {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.health-gauge-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 6px;
  transition: width 0.4s ease, background 0.3s;
}

.health-gauge-fill.green { background: #4caf50; }
.health-gauge-fill.yellow { background: #ffb020; }
.health-gauge-fill.red { background: #e05555; }

.health-score-text {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 4.5rem;
  text-align: right;
}

.health-score-text small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.health-coaching {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.health-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
}

.health-breakdown div {
  padding: 0.4rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}

.health-breakdown span { color: var(--gold); font-weight: 600; }

.fyp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
}

.fyp-check-item {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.82rem;
}

.fyp-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.fyp-check-mark {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.fyp-check-mark.pass { color: #4caf50; border: 1px solid #4caf50; }
.fyp-check-mark.fail { color: #e05555; border: 1px solid #e05555; }
.fyp-check-mark.wait { color: var(--muted); border: 1px solid rgba(255,255,255,0.2); }

.fyp-mini-gauge {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.fyp-mini-gauge-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

.highlight-label {
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
  background: rgba(201, 169, 98, 0.06);
}

.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }

.btn-row button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  border-radius: 4px;
  cursor: pointer;
}

.btn-row button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-row button#btn-start { background: var(--gold); color: #111; font-weight: 600; }

.tips-list, .chat-feed, .gift-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.tips-list li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 98, 0.08);
  font-size: 0.95rem;
}

.tikitaka-feed {
  max-height: 320px;
  overflow-y: auto;
}

.tikitaka-card {
  padding: 0.85rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.tikitaka-card.high { border-left: 3px solid var(--gold); }

.tikitaka-meta {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.ai-badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(201, 169, 98, 0.5);
  border-radius: 3px;
  font-size: 0.65rem;
  color: var(--gold);
}

.tikitaka-question {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.tikitaka-reply {
  font-size: 0.92rem;
  padding: 0.5rem 0.65rem;
  background: rgba(201, 169, 98, 0.1);
  border-radius: 4px;
  line-height: 1.45;
}

.tikitaka-reply strong {
  color: var(--gold);
  font-weight: 600;
}

.mission-box {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(201, 169, 98, 0.45);
  border-radius: 6px;
  background: rgba(201, 169, 98, 0.06);
}

.mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mission-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mission-timer {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.mission-instruction {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.mission-script {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.chat-feed li, .gift-feed li {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}

.chat-feed .time, .gift-feed .time {
  color: var(--gold);
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.churn-alert {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(220, 80, 80, 0.15);
  border-left: 3px solid #dc5050;
  font-size: 0.9rem;
}

.metrics {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.metrics span { color: var(--gold); font-weight: 600; }

.event-log {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.stats span { color: var(--gold); font-weight: 600; }

.macro-panel { border-color: rgba(255, 255, 255, 0.08); }

.macro-hint { font-size: 0.82rem; margin: 0 0 0.75rem; }

.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}

.macro-btn {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #eee;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.35;
}

.macro-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
}

.macro-btn .macro-cat {
  display: block;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.macro-editor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.macro-editor-card {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.macro-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.macro-editor-head strong { font-size: 0.9rem; }

.macro-editor-cat {
  font-size: 0.72rem;
  color: var(--gold);
}

.macro-editor-text {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: #eee;
  font-size: 0.85rem;
  line-height: 1.45;
  resize: vertical;
  font-family: inherit;
}

.macro-editor-text:focus {
  outline: none;
  border-color: var(--gold);
}

.macro-editor-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.macro-editor-actions .btn-small { font-size: 0.78rem; }

.overlay-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.95);
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.overlay-text {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0;
  color: #fff;
}

.btn-small, .btn-gold, .btn-ghost {
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
}

.btn-small {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #ccc;
}

.btn-gold {
  border: none;
  background: var(--gold);
  color: #111;
  font-weight: 600;
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #aaa;
}

.crisis-inline {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(220, 80, 80, 0.35);
  border-radius: 6px;
  background: rgba(220, 80, 80, 0.08);
  font-size: 0.88rem;
}

.crisis-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  color: #ff8080;
  font-size: 0.78rem;
  font-weight: 600;
}

.crisis-inline-title {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-weight: 600;
}

.crisis-inline-script {
  margin: 0 0 0.5rem;
  line-height: 1.45;
  color: #ccc;
}

.post-live label { display: block; margin: 0.75rem 0; }

.post-live button {
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
@media (max-width: 900px) {
  .live-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .session-col,
  .live-dashboard-col,
  .song-queue-col,
  .fyp-panel-inline {
    grid-column: 1;
    grid-row: auto;
  }
}
  .song-queue-col { max-width: none; grid-column: 1 / -1; }
  .fyp-panel-inline { grid-column: 1 / -1; }
}

/* AI Coach modules */
.fyp-prediction { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.ai-fyp-pred-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.ai-risk-badge { padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.78rem; font-weight: 600; }
.ai-risk-badge.good { background: rgba(76,175,80,0.2); color: #7ddf82; }
.ai-risk-badge.moderate { background: rgba(255,176,32,0.2); color: #ffb020; }
.ai-risk-badge.danger { background: rgba(224,85,85,0.2); color: #ff8080; }
.ai-metrics-row { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; margin-bottom: 0.35rem; }
.ai-metrics-row span { color: var(--gold); font-weight: 600; }
.ai-settings-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.35rem 1rem; }
.ai-setting-row { font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.ai-settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.ai-silence-card { padding: 0.65rem; border-radius: 6px; margin-bottom: 0.5rem; font-size: 0.88rem; }
.ai-silence-card.warning { background: rgba(255,176,32,0.12); border: 1px solid rgba(255,176,32,0.35); }
.ai-silence-card.danger { background: rgba(224,85,85,0.12); border: 1px solid rgba(224,85,85,0.35); }
.ai-silence-card.critical { background: rgba(180,40,40,0.18); border: 1px solid rgba(220,60,60,0.5); }
.ai-action-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.ai-action-chip { padding: 0.2rem 0.5rem; border-radius: 4px; background: rgba(255,255,255,0.08); font-size: 0.78rem; }
.smart-reply-panel { max-height: 320px; overflow-y: auto; }
.smart-reply-card { padding: 0.6rem; margin-bottom: 0.5rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; }
.smart-reply-meta { font-size: 0.75rem; color: #888; margin-bottom: 0.25rem; }
.smart-reply-original { font-size: 0.88rem; margin-bottom: 0.4rem; color: #ccc; }
.smart-reply-btn { display: block; width: 100%; text-align: left; margin-top: 0.3rem; padding: 0.4rem 0.5rem; border: 1px solid rgba(201,169,98,0.35); background: rgba(201,169,98,0.08); color: var(--gold); border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.smart-reply-btn:hover { background: rgba(201,169,98,0.18); }
.ai-coach-score { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.ai-score-gauge { flex: 1; height: 10px; background: rgba(255,255,255,0.08); border-radius: 5px; overflow: hidden; }
.ai-score-fill { height: 100%; background: linear-gradient(90deg, #c9a962, #e8d5a3); transition: width 0.4s; }
.ai-score-total { font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.ai-score-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; font-size: 0.82rem; }
.ai-score-dims span { color: var(--gold); }
.ai-audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; font-size: 0.85rem; }
.ai-audience-grid .full { grid-column: 1 / -1; }
.ai-audience-grid span { color: #bbb; }
.ai-golden.active { color: var(--gold); font-weight: 600; }
.ai-rec-list { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; color: #bbb; }
.ai-welcome { padding: 0.35rem 0; font-size: 0.85rem; color: var(--gold); }
.ai-energy-score { font-size: 1.2rem; font-weight: 600; color: var(--gold); margin-bottom: 0.35rem; }
.fyp-drop-alert { margin-top: 0.5rem; padding: 0.6rem; border-radius: 6px; background: rgba(224,85,85,0.1); border: 1px solid rgba(224,85,85,0.3); font-size: 0.85rem; }
.session-review { margin: 0.75rem 0; padding: 0.75rem; background: rgba(255,255,255,0.04); border-radius: 6px; font-size: 0.88rem; }
.ai-settings-panel { border-color: rgba(201,169,98,0.25); }

.fyp-check-tip {
  font-size: 0.78rem;
  color: #9ab;
  margin: 0.25rem 0 0.35rem;
  line-height: 1.4;
}

.chat-translation {
  font-size: 0.82rem;
  color: #8ec8ff;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(100, 180, 255, 0.4);
}

.lang-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(100, 180, 255, 0.15);
  color: #8ec8ff;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.tikitaka-card .chat-translation { margin: 0.35rem 0; }
.smart-reply-banner {
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.smart-reply-banner.llm-on {
  background: rgba(100, 180, 255, 0.12);
  border: 1px solid rgba(100, 180, 255, 0.35);
  color: #8ec8ff;
}

.smart-reply-banner.llm-off {
  background: rgba(255, 180, 80, 0.1);
  border: 1px solid rgba(255, 180, 80, 0.35);
  color: #ffc880;
}

.smart-reply-banner code {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.reply-source {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.reply-source.ai { background: rgba(100, 180, 255, 0.25); color: #8ec8ff; }
.reply-source.cache { background: rgba(120, 200, 160, 0.2); color: #9fdcc0; }
.reply-source.rule { background: rgba(255, 255, 255, 0.08); color: #999; }
.smart-reply-pending {
  margin: 0.25rem 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
  border-radius: 4px;
  font-style: italic;
}


.smart-reply-card .chat-translation { margin: 0.3rem 0 0.45rem; }
.smart-reply-lang { font-size: 0.72rem; color: #8ec8ff; margin-bottom: 0.2rem; }

/* --- Host features: top stats, churn, song mode, song requests --- */

.top-stats-bar {
  margin: 0 1.5rem 0;
  padding: 1rem 1.25rem;
  border-color: rgba(201, 169, 98, 0.35);
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.top-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.top-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.top-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.top-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #eee;
}

.top-stat-value.accent { color: var(--gold); }

.top-stats-note {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
}

.btn-song {
  border-color: rgba(180, 120, 255, 0.45);
  background: rgba(180, 120, 255, 0.1);
}

.btn-song-active,
.btn-song.btn-song-active {
  border-color: #b478ff;
  background: rgba(180, 120, 255, 0.28);
  box-shadow: 0 0 12px rgba(180, 120, 255, 0.25);
}

.churn-alert-danger {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(220, 80, 80, 0.18);
  border-left: 3px solid #e05555;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

.churn-alert-ok {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(76, 175, 80, 0.12);
  border-left: 3px solid #4caf50;
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
}

.metric-danger { color: #ff6b6b !important; font-weight: 700; }

.song-badge {
  display: inline-block;
  font-size: 0.75rem;
  margin-right: 0.2rem;
}

.host-card {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(180, 120, 255, 0.35);
  border-radius: 8px;
  background: rgba(180, 120, 255, 0.08);
}

.host-card-head {
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #d4b8ff;
}

.host-card-message { margin: 0 0 0.5rem; font-size: 0.92rem; }

.song-summary-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.song-summary-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.song-summary-highlights li {
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.song-request-panel {
  border-color: rgba(180, 120, 255, 0.3);
}

.song-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.song-request-head h2 { margin: 0; }

.song-format-hint {
  font-size: 0.82rem;
  margin: -0.25rem 0 0.65rem;
}

.song-format-hint code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}

.live-guide code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}

.priority-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
  user-select: none;
}

.priority-toggle input { display: none; }

.toggle-ui {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #444;
  position: relative;
  transition: background 0.2s;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccc;
  transition: transform 0.2s, background 0.2s;
}

.priority-toggle input:checked + .toggle-ui {
  background: rgba(201, 169, 98, 0.55);
}

.priority-toggle input:checked + .toggle-ui::after {
  transform: translateX(16px);
  background: var(--gold);
}

.toggle-label { color: var(--muted); }

.priority-toggle input:checked ~ .toggle-label { color: var(--gold); }

.song-request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.song-request-list li {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.song-request-list li.song-playing {
  border-color: rgba(201, 169, 98, 0.55);
  background: rgba(201, 169, 98, 0.1);
}

.song-req-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.donation-badge {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(201, 169, 98, 0.2);
  color: var(--gold);
}

.song-req-title {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: #ddd;
}

.song-req-actions { display: flex; gap: 0.4rem; }

.current-song {
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 6px;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  font-size: 0.88rem;
}

.thank-you-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.thank-line {
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.88rem;
}

.thank-line:hover { background: rgba(201, 169, 98, 0.15); }

.song-history-panel { border-color: rgba(255, 255, 255, 0.08); }

.song-history-wrap { overflow-x: auto; }

.song-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.song-history-table th,
.song-history-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.song-history-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Panel collapse, drag, quick bar */
.panel-quick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 1.5rem 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.panel-quick-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 0.25rem;
}

.panel-quick-chip {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: rgba(201, 169, 98, 0.12);
  color: #eee;
  font-size: 0.75rem;
  cursor: pointer;
}

.panel-quick-chip:hover { background: rgba(201, 169, 98, 0.22); }

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.panel-head h2,
.panel-head-title {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.panel-head-title .coach-panel-head,
.panel-head-title .song-request-head,
.panel-head-title .ai-settings-head,
.panel-head-title .fyp-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: wrap;
  width: 100%;
}

.panel-head-title .coach-panel-head h2,
.panel-head-title .song-request-head h2,
.panel-head-title .ai-settings-head h2,
.panel-head-title .fyp-head h2 {
  margin: 0;
}

.panel-drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 0.9rem;
  user-select: none;
  padding: 0.15rem 0.25rem;
}

.panel-toggle-btn {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #aaa;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.panel-toggle-btn:hover { border-color: var(--gold); color: var(--gold); }

.panel-collapse-btn,
.panel-minimize-btn {
  display: none !important;
}

section.panel.is-minimized {
  padding: 0.2rem 0.5rem;
  opacity: 0.72;
}

section.panel.is-minimized .panel-head {
  margin-bottom: 0;
}

section.panel.is-minimized .panel-head h2,
section.panel.is-minimized .panel-head-title h2 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

section.panel.is-minimized .panel-head-title > *:not(h2):not(.song-request-head):not(.coach-panel-head):not(.fyp-head):not(.ai-settings-head),
section.panel.is-minimized .panel-head-title .coach-tabs,
section.panel.is-minimized .panel-head-title .llm-status-badge,
section.panel.is-minimized .panel-head-title .health-status,
section.panel.is-minimized .panel-head-title .priority-toggle,
section.panel.is-minimized .panel-head-title .song-request-head .priority-toggle,
section.panel.is-minimized .panel-head-title .ai-settings-head button,
section.panel.is-minimized .panel-head-title .coach-panel-head > *:not(h2),
section.panel.is-minimized .panel-head-title .fyp-head > *:not(h2),
section.panel.is-minimized .panel-head-title .song-request-head > *:not(h2) {
  display: none !important;
}

section.panel.is-minimized .panel-head-title .coach-panel-head,
section.panel.is-minimized .panel-head-title .fyp-head,
section.panel.is-minimized .panel-head-title .song-request-head,
section.panel.is-minimized .panel-head-title .ai-settings-head {
  margin: 0;
  gap: 0;
}

section.panel.is-minimized .panel-body {
  display: none !important;
}

section.panel.is-collapsed {
  display: block !important;
}

section.panel.is-dragging {
  opacity: 0.55;
  outline: 1px dashed var(--gold);
}

.llm-status-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.llm-status-badge.llm-on {
  color: #8ec8ff;
  border-color: rgba(100, 180, 255, 0.45);
  background: rgba(100, 180, 255, 0.12);
}

/* Compact song request queue */
.song-request-compact {
  max-width: 100%;
}

.song-request-compact .song-request-head h2 {
  font-size: 0.95rem;
}

.song-request-list-compact {
  max-height: 72px;
}

.song-request-list-compact li {
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.3rem;
}

.song-req-compact-row {
  display: grid;
  grid-template-columns: minmax(48px, 0.7fr) 1fr auto auto;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
}

.song-req-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-req-title-compact {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ddd;
}

.song-req-actions-compact {
  display: flex;
  gap: 0.2rem;
}

.btn-mini {
  padding: 0.15rem 0.35rem;
  font-size: 0.72rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #eee;
  cursor: pointer;
}

.btn-mini.btn-gold {
  border-color: rgba(201, 169, 98, 0.45);
  color: var(--gold);
}
