/* Elegant Professional CSS Reset */
:root {
  /* Color System */
  --color-primary: #1a202c;
  --color-secondary: #64748b;
  --color-accent: #7c5fa3;
  --color-accent-hover: #6b4789;
  --color-success: #38a169;
  --color-success-hover: #2f855a;
  --color-background: #faf9f7;
  --color-surface: #fcfbf9;
  --color-border: #e8e6e1;
  --color-border-hover: #d4d1ca;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Monaco, monospace;
}

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

/* Typography optimization */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

/* Monospace number optimization */
.metric-value,
.rank,
.metric a {
  font-feature-settings: "kern" 1, "tnum" 1, "case" 1;
  font-variant-numeric: tabular-nums;
}

body {
  font-family: var(--font-mono);
  line-height: 1.6;
  background: var(--color-background);
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 108, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(120, 119, 108, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 119, 108, 0.02) 0%,
      transparent 50%
    );
  color: var(--color-primary);
  padding: 0;
  min-height: 100vh;
  font-feature-settings: "kern" 1, "liga" 1, "frac" 1, "calt" 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Hero Section */
.hero {
  text-align: left;
  margin-bottom: 3rem;
  padding: 0;
  background: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero p {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 400;
  max-width: 28rem;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Leaderboard */
.leaderboard {
  margin-bottom: 3rem;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.leaderboard h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Leaderboard Container */
.agents-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Unified Button System */
.btn {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: #5a6674;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  border-color: var(--color-border-hover);
  color: #475569;
  background: #f6f4f1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  box-shadow: 0 1px 3px 0 rgba(124, 95, 163, 0.25);
}

.btn.active:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Button variants */
.btn--sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
}

.btn--xs {
  padding: 0.375rem 0.625rem;
  font-size: 0.625rem;
}

.btn--primary.active {
  background: #3b82f6;
  border-color: #3b82f6;
}

.btn--primary.active:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn--success.active {
  background: #10b981;
  border-color: #10b981;
}

.btn--success.active:hover {
  background: #059669;
  border-color: #059669;
}

/* Button icon styling */
.btn-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.sort-controls {
  display: flex;
  gap: 0.375rem;
  background: #f5f3f0;
  padding: 0.375rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.sort-btn {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #5a6674;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sort-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: #475569;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sort-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  box-shadow: 0 1px 3px 0 rgba(124, 95, 163, 0.25);
}

/* Dropdown styles */
.dropdown-container {
  position: relative;
}

.dropdown-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-arrow {
  font-size: 0.5rem;
  transition: transform 0.2s ease;
}

.mode-indicator {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.625rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  min-width: 160px;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}

.dropdown-item:first-child {
  border-radius: 5px 5px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 5px 5px;
}

.dropdown-item:hover {
  background: #f6f4f1;
  color: #1f2937;
}

.dropdown-item.active {
  background: #f3f0f8;
  color: var(--color-accent);
  font-weight: 600;
}

/* Enhanced agent subtitle styling */
.agent-subtitle {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 400;
}

.agent-subtitle .pr-count {
  font-weight: 600;
  color: #374151;
}

.agent-subtitle .pr-type {
  font-weight: 600;
  color: var(--color-accent);
}

.agent-subtitle .pr-total {
  color: #9ca3af;
}

.agent-subtitle .pr-total-label {
  color: #9ca3af;
}

/* Enhanced secondary metrics */
.secondary-metrics {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.secondary-metrics .metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 60px;
}

.secondary-metrics .metric .metric-count {
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  margin-bottom: 0.125rem;
}

.secondary-metrics .metric span:last-child {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Definitions section */
.definitions {
  margin-bottom: 3rem;
}

.explanation-section {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f5f3f0;
  overflow: hidden;
}

.explanation-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.explanation-toggle:hover {
  background: #f0ede9;
  color: #475569;
}

.explanation-toggle .toggle-text {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.explanation-toggle .toggle-arrow {
  font-size: 0.625rem;
  transition: transform 0.2s ease;
}

.explanation-toggle.expanded .toggle-arrow {
  transform: rotate(180deg);
}

.explanation-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  background: var(--color-surface);
}

.explanation-content.expanded {
  padding: 1rem 1rem 1.25rem;
  max-height: 300px;
}

.explanation-content p {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
}

.explanation-content p:last-child {
  margin-bottom: 0;
}

.explanation-content ul {
  margin: 0 0 0.75rem 0;
  padding-left: 1.25rem;
}

.explanation-content li {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
}

.explanation-content strong {
  font-weight: 600;
  color: #1f2937;
}

.agent {
  background: var(--color-surface);
  border: none;
  border-bottom: 1px solid #f0ede9;
  border-radius: 0;
  padding: 1.125rem 1.5rem;
  margin-bottom: 0;
  transition: all 0.2s ease;
  position: relative;
}

.agent:last-child {
  border-bottom: none;
}

.agent:hover {
  background: #f6f4f1;
  transform: translateX(4px);
  padding-left: 1.75rem;
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.625rem;
}

.rank {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  font-size: 1rem;
  font-weight: 500;
  color: #4a5568;
  min-width: 40px;
  letter-spacing: 0.02em;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.agent-info {
  flex: 1;
}

.agent-info h3 {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
  letter-spacing: 0.01em;
}

.agent-info h3 a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.agent-info h3 a:hover {
  color: var(--color-accent);
}

.agent-subtitle {
  font-size: 0.75rem;
  color: #5a6674;
  font-weight: 400;
  display: none; /* Hide the redundant PR count */
}

.metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
  gap: 1.25rem;
}

.primary-metric {
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.metric-value {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  font-size: 1.75rem;
  font-weight: 500;
  color: #1a202c;
  display: block;
  line-height: 1;
  text-align: center;
  width: 100%;
  letter-spacing: 0.01em;
}

.metric-label {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  font-size: 0.6875rem;
  color: #5a6674;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  width: 100%;
  margin-top: 0.25rem;
}

.secondary-metrics {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.metric {
  text-align: center;
  min-width: 60px;
}

.metric a {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  color: #1a202c;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.01em;
}

.metric a:hover {
  color: var(--color-accent);
}

.metric a:hover .metric-count {
  color: var(--color-accent);
}

.metric a:hover span:last-child {
  color: var(--color-accent);
}

/* Make "all PRs" metric more faint */
.metric.total-metric a {
  opacity: 0.7;
}

.metric.total-metric a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.metric.total-metric a:hover .metric-count {
  color: var(--color-accent);
}

.metric.total-metric a:hover span:last-child {
  color: var(--color-accent);
}

/* Make "draft PRs" metric more faint since they're work in progress */
.metric.draft-metric a {
  opacity: 0.7;
}

.metric.draft-metric a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.metric.draft-metric a:hover .metric-count {
  color: var(--color-accent);
}

.metric.draft-metric a:hover span:last-child {
  color: var(--color-accent);
}

.metric a .metric-count {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  font-weight: 500;
  color: inherit;
  line-height: 1.2;
  margin-bottom: 0.125rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.metric a span:last-child {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  display: block;
  font-size: 0.6875rem;
  color: #5a6674;
  margin-top: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s ease;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #edf2f7;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Chart Section */
.chart-section {
  margin-bottom: 4rem;
}

.chart-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1.5rem;
  text-align: left;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.chart {
  margin-bottom: 4rem;
}

.chart h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1.5rem;
  text-align: left;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.chart-controls {
  margin: 15px 0;
  padding: 12px;
  background: #f5f3f0;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.control-section {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: column;
}

.control-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-bottom: 2px;
}

.toggle-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.toggle-btn,
.view-btn {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-secondary);
  font-size: 0.625rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.toggle-btn:hover,
.view-btn:hover {
  border-color: var(--color-border-hover);
  color: #475569;
  background: #f6f4f1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.toggle-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  box-shadow: 0 1px 3px 0 rgba(124, 95, 163, 0.25);
}

.toggle-btn.active:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.view-btn.active {
  background: #5a9a5a;
  border-color: #5a9a5a;
  color: white;
  box-shadow: 0 1px 3px 0 rgba(90, 154, 90, 0.25);
}

.view-btn.active:hover {
  background: #4a8a4a;
  border-color: #4a8a4a;
}

.toggle-icon,
.btn-icon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.view-icon {
  font-size: 8px;
  line-height: 1;
}

.rate-btn {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-secondary);
  font-size: 0.625rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.rate-btn:hover {
  border-color: var(--color-border-hover);
  color: #475569;
  background: #f6f4f1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rate-btn.active {
  background: #be5a5a;
  border-color: #be5a5a;
  color: white;
  box-shadow: 0 1px 3px 0 rgba(190, 90, 90, 0.25);
}

.rate-btn.active:hover {
  background: #a84a4a;
  border-color: #a84a4a;
}

.rate-icon {
  font-size: 8px;
  line-height: 1;
}

.chart-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  height: 500px;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  /* Force layout stability */
  min-width: 0;
  overflow: hidden;
}

.chart-container canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Charts Section */
.charts-section {
  margin-bottom: 3rem;
}

.charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.chart-half {
  display: flex;
  flex-direction: column;
}

.chart-half h3 {
  font-family: "IBM Plex Mono", "SF Mono", Monaco, monospace;
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #1a202c;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-secondary);
  background: transparent;
  margin-top: 4rem;
  font-size: 0.875rem;
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer a:hover {
  color: var(--color-accent-hover);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
  .charts-container {
    gap: 2rem;
  }

  .chart-container {
    height: 600px;
    padding: 2rem;
  }
}

.agent {
  animation: fadeInUp 0.4s ease forwards;
}

.agent:nth-child(1) {
  animation-delay: 0.05s;
}
.agent:nth-child(2) {
  animation-delay: 0.1s;
}
.agent:nth-child(3) {
  animation-delay: 0.15s;
}
.agent:nth-child(4) {
  animation-delay: 0.2s;
}
.agent:nth-child(5) {
  animation-delay: 0.25s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    max-width: 800px;
    padding: 1.5rem 1.5rem;
  }

  .charts-container {
    gap: 1.25rem;
  }

  .chart-container {
    height: 450px;
  }

  .control-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .control-section {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .toggle-buttons {
    justify-content: flex-start;
    gap: 3px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .hero {
    padding-bottom: 2rem;
    margin-bottom: 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .leaderboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sort-controls {
    align-self: stretch;
  }

  .sort-btn {
    flex: 1;
    text-align: center;
  }

  .agent {
    padding: 1rem 1.25rem;
  }

  .agent:hover {
    padding-left: 1.5rem;
  }

  .metrics {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .secondary-metrics {
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
  }

  .metric {
    min-width: 55px;
  }

  .rank {
    font-size: 1.2rem;
    min-width: 40px;
  }

  .charts-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .chart-container {
    height: 350px;
    padding: 1rem;
  }

  .toggle-btn,
  .view-btn,
  .rate-btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.6rem;
    gap: 0.3rem;
  }

  .toggle-buttons {
    gap: 3px;
  }

  .sort-btn {
    padding: 0.4375rem 0.75rem;
    font-size: 0.6875rem;
  }

  .chart-controls {
    padding: 12px;
    margin: 15px 0;
  }

  .agent-row {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .agent-info {
    margin: 0.5rem 0;
  }

  .agent-stats {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .agent-header {
    flex-wrap: wrap;
  }

  .secondary-metrics {
    flex-direction: column;
    gap: 0.5rem;
  }

  .chart-container {
    height: 280px;
    padding: 0.75rem;
  }

  .toggle-btn,
  .view-btn,
  .rate-btn {
    padding: 0.2rem 0.35rem;
    font-size: 0.55rem;
    gap: 0.25rem;
  }

  .toggle-buttons {
    gap: 2px;
  }

  .sort-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
  }

  .control-label {
    font-size: 10px;
  }
}
