/* Katie's Dashboard - Pink/Purple Gradient Theme */

:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f0f1a;
  --accent-pink: #ff006e;
  --accent-purple: #8338ec;
  --accent-magenta: #c026d3;
  --text-primary: #ffffff;
  --text-secondary: #a855f7;
  --text-muted: #6b7280;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.06);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-pink-purple: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  --gradient-bg: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Header */
.dashboard-header {
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-pink-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--card-border);
}

.tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab:hover {
  background: var(--card-hover);
  border-color: var(--accent-purple);
}

.tab.active {
  background: var(--gradient-pink-purple);
  border-color: transparent;
  color: white;
}

/* Main Content */
.main-content {
  padding: 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Outlook Section */
.outlook-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.outlook-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-pink-purple);
}

.outlook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.outlook-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.outlook-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.outlook-message {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
}

.outlook-footer {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
}

.outlook-item {
  color: var(--text-muted);
}

.outlook-item strong {
  color: var(--text-secondary);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-pink-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Cards/Sections */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1rem 1.5rem;
}

/* Add Task Section */
.add-task-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.add-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.add-task-btn {
  background: var(--gradient-pink-purple);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.add-task-btn:hover {
  opacity: 0.9;
}

.task-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.task-input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.task-input::placeholder {
  color: var(--text-muted);
}

/* Animal Size Selector */
.size-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.size-option {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 80px;
}

.size-option:hover {
  border-color: var(--accent-purple);
}

.size-option.selected {
  border-color: var(--accent-pink);
  background: rgba(255, 0, 110, 0.1);
}

.size-option.honeybadger {
  border-color: var(--text-muted);
  opacity: 0.7;
}

.size-emoji {
  font-size: 1.5rem;
  display: block;
}

.size-name {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.size-time {
  font-size: 0.625rem;
  color: var(--text-secondary);
}

/* Priority Scoring Inputs */
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.scoring-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scoring-field select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.scoring-field select:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.calculated-score {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.score-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.score-value {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-pink-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Task List Table */
.task-table {
  width: 100%;
  border-collapse: collapse;
}

.task-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border);
}

.task-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}

.task-table tr:hover {
  background: var(--card-hover);
}

.task-table tr:last-child td {
  border-bottom: none;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 1rem;
}

.task-size {
  font-size: 1.5rem;
  cursor: help;
}

.task-title {
  font-weight: 500;
}

.task-source {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.task-score-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-bar {
  width: 80px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--gradient-pink-purple);
  border-radius: 3px;
}

.task-actions {
  display: flex;
  gap: 0.5rem;
}

.task-action-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.task-action-btn:hover {
  border-color: var(--accent-purple);
  color: var(--text-secondary);
}

.task-action-btn.complete:hover {
  border-color: var(--success);
  color: var(--success);
}

/* Legend */
.animal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Collapsible Sections */
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.collapsible-header:hover {
  background: var(--card-hover);
}

.collapsible-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.collapsible-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.collapsible-toggle {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
}

.collapsible-content {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.collapsible-content.expanded,
.collapsible-content.open {
  display: block;
}

/* Honey Badger Zone */
.honeybadger-zone {
  opacity: 0.7;
}

.honeybadger-zone .collapsible-header {
  border-left: 3px solid var(--text-muted);
}

.honeybadger-description {
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
}

/* Archive Section */
.archive-section .collapsible-header {
  border-left: 3px solid var(--accent-purple);
}

.archive-day {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.archive-day:last-child {
  border-bottom: none;
}

.archive-day-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.archive-task {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.archive-task .task-size {
  font-size: 1.25rem;
}

.archive-task .task-title {
  flex: 1;
  text-decoration: line-through;
}

.archive-task .completed-time {
  font-size: 0.75rem;
}

/* Meetings Section */
.meetings-table {
  width: 100%;
  border-collapse: collapse;
}

.meetings-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border);
}

.meetings-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}

.meetings-table tr:last-child td {
  border-bottom: none;
}

.meeting-time {
  font-weight: 600;
  color: var(--text-secondary);
}

.meeting-add-btn {
  background: transparent;
  border: 1px dashed var(--card-border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.meeting-add-btn:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.meeting-tasks-added {
  font-size: 0.75rem;
  color: var(--success);
}

/* Team Weekly Tab */
.team-table {
  width: 100%;
  border-collapse: collapse;
}

.team-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border);
}

.team-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}

.team-member-name {
  font-weight: 500;
}

.team-highlight {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 0, 110, 0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent-pink);
}

/* Papercuts Tab */
.papercuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.papercut-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.papercut-stat.positive .stat-value {
  color: var(--success);
  -webkit-text-fill-color: var(--success);
}

.papercut-stat.negative .stat-value {
  color: var(--danger);
  -webkit-text-fill-color: var(--danger);
}

.label-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.label-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.label-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.label-count {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-pink-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Chart Container */
.chart-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* All-Time Totals Table */
.totals-table {
  width: 100%;
  border-collapse: collapse;
}

.totals-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border);
}

.totals-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}

.totals-table tr:last-child {
  font-weight: 600;
}

.totals-table tr:last-child td {
  border-bottom: none;
  border-top: 2px solid var(--card-border);
}

/* Tooltips */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 100;
  margin-bottom: 0.5rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--card-hover);
}

.btn-primary {
  background: var(--gradient-pink-purple);
  border: none;
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .papercuts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .label-breakdown {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tabs {
    padding: 1rem 1.5rem;
    overflow-x: auto;
  }
  
  .main-content {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .papercuts-grid,
  .label-breakdown {
    grid-template-columns: 1fr;
  }
  
  .scoring-grid {
    grid-template-columns: 1fr;
  }
}

/* ── DETAIL / INFO MODAL EXTRAS ─────────────────────────────── */
.modal-wide { max-width: 640px; }

.detail-source-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.detail-link {
  font-size: .8rem;
  color: var(--accent-purple);
  text-decoration: none;
  opacity: .85;
  transition: opacity .15s;
}
.detail-link:hover { opacity: 1; text-decoration: underline; }
.detail-link[href="#"] { display: none; }

.detail-title-input {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.detail-notes-input {
  font-size: .9rem;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.detail-size-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

/* make task rows and team rows look clickable */
.task-row.clickable { cursor: pointer; }
.task-row.clickable:hover td { background: rgba(131,56,236,.08); }
.team-row-clickable { cursor: pointer; }
.team-row-clickable:hover td { background: rgba(131,56,236,.08); }

/* info modal ticket list */
.info-ticket-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.info-ticket-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--card-border);
  font-size: .88rem;
}
.info-ticket-list li:last-child { border-bottom: none; }
.info-ticket-key {
  color: var(--accent-purple);
  font-family: monospace;
  white-space: nowrap;
  text-decoration: none;
  font-size: .8rem;
  padding-top: .1rem;
}
.info-ticket-key:hover { text-decoration: underline; }
.info-ticket-summary { color: var(--text-primary); flex: 1; }
.info-section-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 1rem 0 .4rem;
}
.info-highlights {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
}

/* ── ANIMAL SIZING STATES ───────────────────────────────────── */
.animal-auto,
.animal-confirmed {
  font-size: 1.8rem;
  cursor: pointer;
  filter: brightness(1.4) saturate(1.3);
  transition: filter 0.15s, transform 0.15s;
}

.animal-auto:hover,
.animal-confirmed:hover {
  filter: brightness(1.7) saturate(1.5);
  transform: scale(1.15);
}

/* Size Dropdown */
.size-dropdown {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  appearance: auto;
}

.size-dropdown:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.size-dropdown option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Floating YouTube corner player */
.music-corner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.music-corner.loaded {
  opacity: 1;
}

.music-corner-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-right: 0.2rem;
}

.music-player-wrapper {
  position: relative;
  width: 200px;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border);
  background: #0b0b14;
}

#youtubeEmbed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#youtubeEmbed[src=""] {
  display: none;
}

.mute-overlay,
.unmute-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
}

.mute-overlay:hover,
.unmute-overlay:hover {
  background: rgba(131, 56, 236, 0.7);
}

@media (max-width: 768px) {
  .music-corner {
    right: 0.6rem;
    bottom: 0.6rem;
  }

  .music-player-wrapper {
    width: 160px;
    height: 90px;
  }
}

/* Demo banner */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 1.5rem;
  background: linear-gradient(90deg, rgba(131, 56, 236, 0.18) 0%, rgba(224, 64, 251, 0.12) 100%);
  border-bottom: 1px solid rgba(131, 56, 236, 0.35);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.demo-banner-btn {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.demo-banner-btn:hover {
  background: #9b44f0;
}

.demo-banner-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.demo-banner-close:hover {
  color: var(--text-primary);
}

.clickable-stat {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.clickable-stat:hover {
  border-color: rgba(131, 56, 236, 0.4);
  background: rgba(131, 56, 236, 0.06);
}

/* Error bar */
.error-bar {
  background: linear-gradient(90deg, rgba(255, 69, 58, 0.15) 0%, rgba(255, 159, 10, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 69, 58, 0.35);
  position: sticky;
  top: 0;
  z-index: 999;
}

.error-bar-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.error-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 69, 58, 0.25);
  color: #ff6b5e;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.error-bar-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.error-bar-text strong {
  color: #ff9f5a;
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}

.error-bar-troubleshoot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.error-bar-troubleshoot:hover {
  background: rgba(255, 255, 255, 0.14);
}

.error-bar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
}

.error-bar-close:hover {
  color: var(--text-primary);
}

.error-bar-troubleshoot-panel {
  padding: 0 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.error-bar-troubleshoot-panel div {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.error-bar-troubleshoot-panel code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.78rem;
}

.error-bar-troubleshoot-panel ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.error-bar-troubleshoot-panel li {
  margin-bottom: 0.4rem;
}
