/* AI Image Editing Benchmark Viewer v5.0 - Styles */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --transition: 0.2s ease;

  /* Level colors */
  --level-a: #22c55e;
  --level-b: #3b82f6;
  --level-c: #f59e0b;
  --level-d: #ef4444;

  /* Test type colors */
  --type-t2i: #8b5cf6;
  --type-i2i: #06b6d4;
  --type-r2i: #f97316;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 1rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.header-nav {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.subtitle {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Layout */
.container {
  display: flex;
  max-width: 1900px;
  margin: 0 auto;
  padding: 1rem;
  gap: 1rem;
}

/* Filter Panel */
.filter-panel {
  width: 260px;
  flex-shrink: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 1.25rem;
}

.filter-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Model sort controls */
.model-sort-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.model-sort-controls select {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-color);
  color: var(--text-color);
  cursor: pointer;
}

.model-sort-controls select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Model score display */
.model-score {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.filter-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-item label {
  cursor: pointer;
  font-size: 0.9rem;
  flex: 1;
}

.filter-item .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-item .type-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.type-badge.t2i { background: var(--type-t2i); color: white; }
.type-badge.i2i { background: var(--type-i2i); color: white; }
.type-badge.r2i { background: var(--type-r2i); color: white; }

/* Test filter group with level sections - Collapsible */
.test-filter-group {
  max-height: 280px;
  overflow-y: scroll;
  padding-right: 4px;
}

/* Collapsible level group using <details> */
details.test-level-group {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

details.test-level-group summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-color);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  user-select: none;
  list-style: none;
}

details.test-level-group summary::-webkit-details-marker {
  display: none;
}

/* Collapse indicator */
details.test-level-group summary::before {
  content: '▶';
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details.test-level-group[open] summary::before {
  transform: rotate(90deg);
}

details.test-level-group summary:hover {
  background: #e2e8f0;
}

details.test-level-group summary input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

details.test-level-group summary .level-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

details.test-level-group summary .level-badge.level-a { background: var(--level-a); }
details.test-level-group summary .level-badge.level-b { background: var(--level-b); }
details.test-level-group summary .level-badge.level-c { background: var(--level-c); }
details.test-level-group summary .level-badge.level-d { background: var(--level-d); }

details.test-level-group summary .level-label {
  flex: 1;
  font-size: 0.85rem;
}

details.test-level-group summary .level-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.test-level-tests {
  padding: 0.5rem 0.6rem 0.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
}

.test-level-tests .filter-item {
  padding: 0.2rem 0;
  font-size: 0.85rem;
}

.test-level-tests .filter-item label {
  font-size: 0.85rem;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-secondary {
  background: var(--border-color);
  color: var(--text-color);
  flex: 1;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.view-controls {
  display: flex;
  gap: 1rem;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.tests-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Compact view */
.tests-container.compact .test-card {
  padding: 0.75rem;
}

.tests-container.compact .card-body {
  padding: 0.75rem;
}

.tests-container.compact .thumbnail {
  width: 100px;
  height: 100px;
}

.tests-container.compact .thumbnail-label {
  font-size: 0.65rem;
  max-width: 100px;
}

.tests-container.compact .target-color-patch {
  width: 100px;
  height: 100px;
}

.tests-container.compact .target-color-code {
  font-size: 0.7rem;
}

/* Test Card */
.test-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-name {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-badges {
  display: flex;
  gap: 0.5rem;
}

.card-level {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-level.level-a { background: var(--level-a); color: white; }
.card-level.level-b { background: var(--level-b); color: white; }
.card-level.level-c { background: var(--level-c); color: white; }
.card-level.level-d { background: var(--level-d); color: white; }

.card-type {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-type.t2i { background: var(--type-t2i); color: white; }
.card-type.i2i { background: var(--type-i2i); color: white; }
.card-type.r2i { background: var(--type-r2i); color: white; }

.card-description {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.card-prompt {
  padding: 0.75rem 1.25rem;
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
}

.card-prompt-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.card-prompt-text {
  font-size: 0.85rem;
  color: #78350f;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
}

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

/* Style Section */
.style-section {
  margin-bottom: 1rem;
}

.style-section:last-child {
  margin-bottom: 0;
}

.style-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed var(--border-color);
}

.images-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Thumbnail */
.thumbnail-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.thumbnail {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #f8fafc;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.thumbnail.base-image {
  border-color: #fbbf24;
}

.thumbnail.annotation-image {
  border-color: #a855f7;
}

.thumbnail.reference-image {
  border-color: #10b981;
}

/* Target Color Patch (CSS div with hex color) */
.target-color-patch {
  width: 160px;
  height: 160px;
  border: 2px solid #f97316;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.target-color-code {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.thumbnail.policy-violation-image {
  border-color: #6b7280;
  opacity: 0.7;
  filter: grayscale(30%);
}

.thumbnail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumbnail-label.base {
  color: #b45309;
  font-weight: 600;
}

.thumbnail-label.annotation {
  color: #7c3aed;
  font-weight: 600;
}

.thumbnail-label.reference {
  color: #059669;
  font-weight: 600;
}

.thumbnail-label.target-color {
  color: #ea580c;
  font-weight: 600;
}

.thumbnail-label.policy-violation {
  color: #6b7280;
  font-weight: 600;
  font-style: italic;
}

/* Base Prompt (collapsible) */
.base-prompt {
  margin-bottom: 0.75rem;
  background: #fef3c7;
  border-radius: 4px;
  border: 1px solid #fcd34d;
}

.base-prompt summary {
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  user-select: none;
}

.base-prompt summary:hover {
  background: #fde68a;
}

.base-prompt-content {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #fcd34d;
  font-size: 0.75rem;
  color: #78350f;
  white-space: pre-wrap;
  line-height: 1.4;
  max-height: 200px;
  overflow-y: auto;
}

/* Base Image Block - for r2i tests with multiple base images */
.base-image-block {
  display: block;
  margin-bottom: 0.75rem;
}

.base-image-block .thumbnail-wrapper {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.base-images-prompts {
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  border-top: 1px solid #fcd34d;
  margin: 0;
  font-size: 0.75rem;
  color: #78350f;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
}

.base-images-prompts li {
  margin-bottom: 0.5rem;
}

.base-images-prompts li:last-child {
  margin-bottom: 0;
}

.base-images-prompts strong {
  color: #92400e;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  opacity: 1;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 80px;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
  z-index: 10;
}

.modal-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
  left: -60px;
  border-radius: 8px 0 0 8px;
}

.modal-next {
  right: -60px;
  border-radius: 0 8px 8px 0;
}

.modal-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(95vh - 180px);
}

#modal-image {
  max-width: 90vw;
  max-height: calc(95vh - 180px);
  object-fit: contain;
  border-radius: 4px;
}

.modal-info {
  color: white;
  text-align: center;
  margin-top: 1rem;
}

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

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.modal-meta {
  opacity: 0.8;
}

.modal-params {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.25rem;
  font-family: monospace;
}

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  max-width: 90vw;
  overflow-x: auto;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.modal-thumb:hover {
  opacity: 0.9;
}

.modal-thumb.active {
  border-color: var(--primary-color);
  opacity: 1;
}

/* Loading/Empty State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state code {
  background: #e2e8f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .filter-panel {
    width: 100%;
    position: static;
    max-height: none;
  }

  .filter-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-item {
    width: auto;
  }
}

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

  .header h1 {
    font-size: 1.25rem;
  }

  .thumbnail {
    width: 100px;
    height: 100px;
  }

  .thumbnail-label {
    max-width: 100px;
    font-size: 0.65rem;
  }

  .modal-nav {
    width: 40px;
    font-size: 1.5rem;
  }

  .modal-prev {
    left: 0;
  }

  .modal-next {
    right: 0;
  }

  .results-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* Model Drag & Drop Sorting */
.model-item {
  position: relative;
  transition: background-color 0.15s ease, transform 0.15s ease;
  border-radius: 4px;
  padding: 0.35rem 0.25rem;
  margin: -0.1rem 0;
  cursor: pointer;
}

.model-item:hover {
  background: rgba(37, 99, 235, 0.05);
}

.model-item input[type="checkbox"] {
  pointer-events: none;
}

.drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0 0.25rem;
  user-select: none;
  opacity: 0.5;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.model-item:hover .drag-handle {
  opacity: 1;
  color: #64748b;
}

.drag-handle:active {
  cursor: grabbing;
}

.model-item.dragging {
  opacity: 0.5;
  background: #e2e8f0;
  transform: scale(0.98);
}

.model-item.drag-over {
  background: rgba(37, 99, 235, 0.1);
  border-top: 2px solid var(--primary-color);
  margin-top: -2px;
}

/* Drag hint tooltip */
.filter-section h3[data-drag-hint]::after {
  content: '(ドラッグで並替)';
  font-size: 0.65rem;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 0.5rem;
  text-transform: none;
  letter-spacing: normal;
}

/* Modal Evaluation Scores - Inline style */
.modal-eval-scores {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-eval-scores:not(:empty)::before {
  content: '|';
  opacity: 0.5;
  margin-right: 0.25rem;
}

.modal-eval-scores .score-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.modal-eval-scores .score-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.modal-eval-scores .score-value {
  color: #fff;
  font-weight: 600;
}

.modal-eval-scores .total-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.modal-eval-scores .total-value {
  font-weight: 700;
  color: #60a5fa;
}

.modal-eval-scores .detail-link {
  color: #60a5fa;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  transition: color 0.2s;
  margin-left: 0.5rem;
}

.modal-eval-scores .detail-link:hover {
  color: #93c5fd;
}

.modal-eval-scores .no-eval {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Evaluation Detail Popup */
.eval-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eval-popup.hidden {
  display: none;
}

.eval-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.eval-popup-content {
  position: relative;
  background: #1e293b;
  border-radius: 12px;
  max-width: 700px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.eval-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.75rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.eval-popup-close:hover {
  color: #fff;
}

.eval-popup-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.eval-popup-header h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.eval-popup-scale-controls {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.eval-popup-scale-controls label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.eval-popup-scale-controls input[type="radio"] {
  cursor: pointer;
}

.eval-popup-body {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.eval-popup-chart {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  aspect-ratio: 1;
}

.eval-popup-details {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eval-popup-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.eval-popup-scores .score-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: #334155;
  border-radius: 4px;
}

.eval-popup-scores .score-label {
  color: #94a3b8;
}

.eval-popup-scores .score-value {
  color: #fff;
  font-weight: 600;
}

.eval-popup-scores .total-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem;
  background: #3b82f6;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
}

.eval-popup-evaluator {
  font-size: 0.8rem;
  color: #64748b;
  padding: 0.5rem 0;
  border-top: 1px solid #334155;
}

.eval-popup-evaluator strong {
  color: #94a3b8;
}

.eval-popup-comment-section {
  margin-top: 0.5rem;
}

.eval-popup-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.eval-popup-comment-header .comment-label {
  color: #64748b;
  font-size: 0.75rem;
}

.eval-popup-lang-controls {
  display: flex;
  gap: 0.75rem;
}

.eval-popup-lang-controls label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #94a3b8;
  cursor: pointer;
}

.eval-popup-lang-controls input[type="radio"] {
  width: 12px;
  height: 12px;
  accent-color: #3b82f6;
}

.eval-popup-comment {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.6;
  padding: 0.75rem;
  background: #0f172a;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .eval-popup-body {
    flex-direction: column;
  }

  .eval-popup-chart {
    max-width: none;
  }

  .eval-popup-scores {
    grid-template-columns: 1fr;
  }
}
