:root {
  /* Solarized Light */
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --sol-yellow: #b58900;
  --sol-orange: #cb4b16;
  --sol-red: #dc322f;
  --sol-magenta: #d33682;
  --sol-violet: #6c71c4;
  --sol-blue: #268bd2;
  --sol-cyan: #2aa198;
  --sol-green: #859900;

  --bg: var(--base3);
  --surface: #fff;
  --border: #d0caba;
  --text: var(--base02);
  --text-muted: var(--base01);
  --accent: var(--sol-blue);

  /* GitHub light diff colors */
  --diff-add-bg: #dafbe1;
  --diff-add-text: #1a7f37;
  --diff-del-bg: #ffebe9;
  --diff-del-text: #cf222e;
  --diff-hunk-bg: #ddf4ff;
  --diff-hunk-text: #0969da;
  --diff-file-bg: #f6f8fa;
  --diff-ctx-text: #57606a;
}

/* Solarized Dark — invert the base scale so all var(--base*) consumers adapt */
[data-theme="dark"] {
  --base03: #fdf6e3;
  --base02: #eee8d5;
  --base01: #93a1a1;
  --base00: #839496;
  --base0: #657b83;
  --base1: #657b83;
  --base2: #0e4555;
  --base3: #0a3a4a;

  --bg: #002b36;
  --surface: #073642;
  --border: #3d5566;
  --text: #93a1a1;
  --text-muted: #839496;
  --accent: #268bd2;

  --diff-add-bg: #0d2818;
  --diff-add-text: #3fb950;
  --diff-del-bg: #3d1117;
  --diff-del-text: #f85149;
  --diff-hunk-bg: #0d2137;
  --diff-hunk-text: #58a6ff;
  --diff-file-bg: #0d1117;
  --diff-ctx-text: #8b949e;
}

/* Dark mode overrides for hardcoded colors */
[data-theme="dark"] .pr-item.selected { background: #0d2137; }
[data-theme="dark"] .filter-chip-human { background: #1a3a2a; color: #5cb85c; border-color: #2d5a3d; }
[data-theme="dark"] .filter-chip-bot { background: #1a2a3a; color: #6cb4e8; border-color: #2d4a6a; }
[data-theme="dark"] .filter-section-body.human { background: #0a2a1a; }
[data-theme="dark"] .filter-section-body.bot { background: #0a1a2a; }
[data-theme="dark"] .bot-comment { background: #1a1530; border-color: #7c3aed44; }
[data-theme="dark"] .rationale { background: #1a1530; border-color: #7c3aed66; color: #c4b5fd; }
[data-theme="dark"] .diff-inline-comment { background: #1a1530; border-color: #7c3aed66; }
[data-theme="dark"] .diff-inline-comment .comment-header { color: #c4b5fd; }
[data-theme="dark"] .diff-comment-form { background: #1a1530; border-color: #7c3aed66; }
[data-theme="dark"] .badge-positive { background: #1a3a2a; color: #3fb950; border-color: #2d5a3d; }
[data-theme="dark"] .badge-negative { background: #3d1117; color: #f85149; border-color: #5a2028; }
[data-theme="dark"] .review-state-approved { background: #1a3a2a; color: #3fb950; }
[data-theme="dark"] .review-state-changes_requested { background: #3d1117; color: #f85149; }
[data-theme="dark"] .review-state-commented { background: #0d2137; color: #58a6ff; }
[data-theme="dark"] .bot-decision-approve { background: #1a3a2a; color: #3fb950; }
[data-theme="dark"] .bot-decision-reject { background: #3d1117; color: #f85149; }
[data-theme="dark"] .bot-step-grade-pass { background: #1a3a2a; color: #3fb950; }
[data-theme="dark"] .bot-step-grade-fail { background: #3d1117; color: #f85149; }
[data-theme="dark"] .judge-match-yes { background: #1a3a2a; color: #3fb950; }
[data-theme="dark"] .judge-match-no { background: #3d1117; color: #f85149; }
[data-theme="dark"] .judge-comment-match { border-left-color: #2d5a3d; }
[data-theme="dark"] .judge-comment-match.miss { border-left-color: #5a2028; }
[data-theme="dark"] .curate-btn.approve { border-color: #2d5a3d; color: #3fb950; }
[data-theme="dark"] .curate-btn.approve:hover { background: #1a3a2a; }
[data-theme="dark"] .curate-btn.approve.active { background: #1a7f37; color: #fff; }
[data-theme="dark"] .curate-btn.reject { border-color: #5a2028; color: #f85149; }
[data-theme="dark"] .curate-btn.reject:hover { background: #3d1117; }
[data-theme="dark"] .curate-btn.reject.active { background: #cf222e; color: #fff; }
[data-theme="dark"] .curate-btn.override-approve { border-color: #2d5a3d; color: #3fb950; }
[data-theme="dark"] .curate-btn.override-approve:hover { background: #1a3a2a; }
[data-theme="dark"] .curate-btn.override-approve.active { background: #1a7f37; color: #fff; }
[data-theme="dark"] .curate-btn.override-reject { border-color: #5a2028; color: #f85149; }
[data-theme="dark"] .curate-btn.override-reject:hover { background: #3d1117; }
[data-theme="dark"] .curate-btn.override-reject.active { background: #cf222e; color: #fff; }
[data-theme="dark"] .curate-btn.dq-awful { border-color: #5a2028; color: #f85149; }
[data-theme="dark"] .curate-btn.dq-awful:hover { background: #3d1117; }
[data-theme="dark"] .curate-btn.dq-bad { border-color: #5a3a10; color: #e8883a; }
[data-theme="dark"] .curate-btn.dq-bad:hover { background: #3a2510; }
[data-theme="dark"] .curate-btn.dq-good { border-color: #1a3a5a; color: #58a6ff; }
[data-theme="dark"] .curate-btn.dq-good:hover { background: #0d2137; }
[data-theme="dark"] .curate-btn.dq-excellent { border-color: #2d5a3d; color: #3fb950; }
[data-theme="dark"] .curate-btn.dq-excellent:hover { background: #1a3a2a; }
[data-theme="dark"] .pr-item.curated-approved { border-left-color: #3fb950; }
[data-theme="dark"] .pr-item.curated-rejected { border-left-color: #f85149; }
[data-theme="dark"] .eval-stat-bad { color: #f85149; }
[data-theme="dark"] .eval-stat-good { color: #3fb950; }
[data-theme="dark"] .diff-inline-comment .comment-actions button.save-btn { border-color: #2d5a3d; color: #3fb950; }
[data-theme="dark"] .diff-inline-comment .comment-actions button.save-btn:hover { background: #1a3a2a; }
[data-theme="dark"] .diff-inline-comment .comment-actions button.delete-btn { border-color: #5a2028; color: #f85149; }
[data-theme="dark"] .diff-inline-comment .comment-actions button.delete-btn:hover { background: #3d1117; }
[data-theme="dark"] .diff-comment-form .form-actions .save-btn { background: #1a7f37; }
[data-theme="dark"] .diff-comment-form .form-actions .save-btn:hover { background: #15803d; }
[data-theme="dark"] .filter-section-btn.human { border-left-color: #3fb950; }
[data-theme="dark"] .filter-section-btn.bot { border-left-color: #58a6ff; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 420px;
  min-width: 420px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease, min-width 0.2s ease;
}

.sidebar.collapsed {
  width: 48px;
  min-width: 48px;
}

.sidebar.collapsed .sidebar-header-content,
.sidebar.collapsed .sidebar-header-row h1,
.sidebar.collapsed .pr-list,
.sidebar.collapsed .keyboard-hint {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  padding: 8px;
}

.sidebar.collapsed .sidebar-header-row {
  justify-content: center;
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.sidebar-toggle:hover {
  background: var(--border);
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-header-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sidebar-header-content {
  min-width: 0;
}

.sidebar-header h1 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--base02);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-cog-wrapper {
  position: relative;
}

.settings-cog-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.settings-cog-btn:hover {
  background: var(--border);
}

.settings-dropdown {
  display: none;
  position: absolute;
  top: 34px;
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 4px 0;
}

.settings-dropdown.open {
  display: block;
}

.settings-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.settings-dropdown-item:hover {
  background: var(--border);
}

.settings-dropdown-item .check {
  width: 16px;
  text-align: center;
  font-size: 12px;
}

.settings-dropdown-label {
  padding: 6px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--base01);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 90px;
  text-align: right;
}

.filter-toggle {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 2px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:first-child { border-radius: 4px 0 0 4px; }
.filter-btn:last-child { border-radius: 0 4px 4px 0; }
.filter-btn:hover { border-color: var(--base01); color: var(--text); }
.filter-btn.active { background: var(--sol-blue); color: #fff; border-color: var(--sol-blue); }

.filter-toggle-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-expand-btn {
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.filter-expand-btn:hover { border-color: var(--base01); color: var(--text); }
.filter-expand-btn.open { background: var(--base2); color: var(--text); }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  cursor: default;
}
.filter-chip-human { background: #e6f3e6; color: #2d6a2d; border: 1px solid #b8d8b8; }
.filter-chip-bot { background: #e6eef8; color: #1a4a8a; border: 1px solid #b8ccec; }
.filter-chip-other { background: var(--base2); color: var(--base01); border: 1px solid var(--border); }
.filter-clear-btn {
  padding: 1px 6px;
  border: none;
  background: transparent;
  color: var(--base01);
  font-size: 10px;
  cursor: pointer;
  border-radius: 4px;
}
.filter-clear-btn:hover { color: var(--sol-red); }
.filter-panel {
  display: none;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--base3);
  padding: 8px;
}
.filter-panel.open { display: block; }
.filter-preset-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filter-preset-btn {
  padding: 2px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-preset-btn:hover { border-color: var(--sol-blue); color: var(--sol-blue); }
.filter-preset-btn.active { background: var(--sol-blue); color: #fff; border-color: var(--sol-blue); }
.filter-section {
  margin-bottom: 4px;
}
.filter-section-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.filter-section-btn {
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.filter-section-btn:hover { border-color: var(--base01); color: var(--text); }
.filter-section-btn.open { background: var(--base2); color: var(--text); }
.filter-section-btn.human { border-left: 3px solid #5a9a5a; }
.filter-section-btn.bot { border-left: 3px solid #4a7aba; }
.filter-section-body {
  display: none;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 4px;
}
.filter-section-body.open { display: block; }
.filter-section-body.human { background: #f6fbf6; }
.filter-section-body.bot { background: #f2f6fb; }
.filter-other-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-bottom: 6px;
}

.criteria-box {
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--base3);
}
.criteria-box-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--base1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.criteria-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.criteria-input-group {
  display: flex;
  align-items: center;
  gap: 3px;
}
.criteria-label {
  font-size: 10px;
  color: var(--base1);
  white-space: nowrap;
}
.criteria-input {
  width: 38px;
  padding: 2px 2px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.criteria-input::-webkit-outer-spin-button,
.criteria-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.criteria-reset {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--base1);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.criteria-reset:hover {
  border-color: var(--base01);
  color: var(--text);
}
.criteria-input:focus {
  border-color: var(--sol-blue);
  box-shadow: 0 0 0 1px rgba(38,139,210,0.2);
}

.eval-stats {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--base3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--base01);
  line-height: 1.6;
}

.eval-stats:empty { display: none; }
.eval-stats { margin-bottom: 8px; }

.pr-count {
  margin-top: 4px;
  font-size: 11px;
  color: var(--base01);
}
.pr-count:empty { display: none; }

.eval-stat-value {
  font-weight: 700;
  color: var(--base02);
}

.eval-stat-bad {
  font-weight: 700;
  color: #cf222e;
}

.eval-stat-good {
  font-weight: 700;
  color: #1a7f37;
}

.eval-stat-sep {
  color: var(--border);
}

.search-box {
  width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--base3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.search-box:focus { border-color: var(--sol-blue); box-shadow: 0 0 0 2px rgba(38,139,210,0.2); }
.search-box::placeholder { color: var(--base1); }

.pr-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.pr-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--base2);
  cursor: pointer;
  transition: background 0.1s;
}

.pr-item:hover { background: var(--base3); }
.pr-item.selected { background: #e8f0fe; border-left: 3px solid var(--sol-blue); padding-left: 13px; }

.pr-item-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--base02);
}

.pr-item-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--base01);
  align-items: center;
}

.badge {
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-positive { background: #dafbe1; color: #1a7f37; border: 1px solid #aceebb; }
.badge-negative { background: #ffebe9; color: #cf222e; border: 1px solid #ffcecb; }

.bot-comment {
  background: #f5f3ff;
  border: 1px solid #7c3aed33;
  border-left: 3px solid #7c3aed;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.bot-comment-header {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--base01);
  margin-bottom: 8px;
  align-items: center;
}
.bot-comment-path { color: #7c3aed; font-family: monospace; font-size: 11px; }
.bot-comment-body { font-size: 13px; line-height: 1.5; }

.bot-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.assessment-select {
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  max-width: 340px;
  cursor: pointer;
}

.assessment-select:focus {
  outline: none;
  border-color: var(--sol-blue);
}

.bot-decision {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bot-decision-approve { background: #dafbe1; color: #1a7f37; }
.bot-decision-reject { background: #ffebe9; color: #cf222e; }
.bot-decision-unknown { background: var(--base2); color: var(--base01); }

.bot-meta {
  font-size: 11px;
  color: var(--base01);
  margin-top: 6px;
}

.bot-rationale {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.bot-indicator {
  font-size: 10px;
  margin-left: auto;
}
.bot-indicator-approve { color: #1a7f37; }
.bot-indicator-reject { color: #cf222e; }

.bot-step {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 8px;
}
.bot-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.bot-step-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--base01);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bot-step-grade {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}
.bot-step-grade-pass { background: #dafbe1; color: #1a7f37; }
.bot-step-grade-fail { background: #ffebe9; color: #cf222e; }
.bot-step-grade-neutral { background: var(--base2); color: var(--base01); }
.bot-step-rationale {
  font-size: 13px;
  line-height: 1.6;
}

.judge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--base01);
}
.judge-match {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  text-transform: uppercase;
}
.judge-match-yes { background: #dafbe1; color: #1a7f37; }
.judge-match-no { background: #ffebe9; color: #cf222e; }
.judge-match-na { background: var(--base2); color: var(--base01); }
.judge-gt-grade {
  font-size: 11px;
  font-weight: 600;
  color: var(--base00);
}
.judge-expand {
  margin-left: auto;
  cursor: pointer;
  font-size: 11px;
  color: #7c3aed;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}
.judge-expand:hover { color: #6d28d9; }
.judge-detail {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--base3);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  display: none;
}
.judge-detail.open { display: block; }
.judge-comments-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--base3);
  border-radius: 6px;
  font-size: 11px;
  color: var(--base01);
}
.judge-comments-stats .stat-label { font-weight: 600; }
.judge-comment-match {
  margin-top: 6px;
  padding: 6px 8px;
  border-left: 3px solid #dafbe1;
  background: var(--base3);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}
.judge-comment-match.miss { border-left-color: #ffebe9; }
.judge-comment-quality {
  margin-top: 4px;
  font-size: 10px;
  color: var(--base01);
}
.judge-comment-quality .score { font-weight: 600; }
.judge-rationale-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.judge-rationale-col {
  font-size: 12px;
  line-height: 1.5;
}
.judge-rationale-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--base01);
  margin-bottom: 2px;
}

.tier-label {
  font-size: 10px;
  color: var(--base01);
}

/* Main content */

/* Main column wrapper. Sits next to the sidebar in the body flex row and
   stacks the (V2-only) filter topbar above the scrollable `#main` pane.
   Keeping the topbar OUTSIDE `#main` is essential — renderers like
   `PrDetail.render()` and `DataLoader.load()` rewrite `#main.innerHTML`,
   which would otherwise wipe the topbar. */
.main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.main {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* V2-only: horizontal filter bar pinned above the scrollable main pane.
   In V1 this element exists in the DOM but stays empty, so `:empty`
   collapses it (no padding/border), and V1 users see no visual change. */
.filter-topbar {
  flex: 0 0 auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  z-index: 20;
}

.filter-topbar:empty {
  display: none;
}

/* V2 top-bar popover buttons. The anchor wrapper is `position: relative`
   so the panel can float beneath without pushing layout. */
.filter-topbar-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  row-gap: 6px;
  align-items: center;
}
/* Visual boundary between the filter-popover cluster and the preset cluster
   on the single-row topbar. Attaches as a left border on the first preset
   button so it stays glued to the presets when the row wraps at narrow
   widths — no orphan divider on the left edge of a wrapped line. */
.filter-topbar-row .popover-anchor + .filter-preset-btn {
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 4px;
}
/* Push the clear-all button to the right end of the single-row topbar,
   separated from the preset cluster. */
.filter-topbar-row #filter-clear-all {
  margin-left: auto;
}
/* Preset bar reflows the same way so both rows collapse gracefully on narrow
   viewports instead of overflowing the topbar horizontally. */
.filter-topbar .filter-preset-bar {
  flex-wrap: wrap;
  row-gap: 6px;
}
.popover-anchor { position: relative; display: inline-block; }
.filter-btn.popover-btn {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.filter-btn.popover-btn .caret { opacity: 0.65; font-size: 9px; margin-left: 2px; }
.filter-btn.popover-btn strong { font-weight: 600; }
.filter-btn.popover-btn.human { border-left: 3px solid #5a9a5a; }
.filter-btn.popover-btn.bot { border-left: 3px solid #4a7aba; }
[data-theme="dark"] .filter-btn.popover-btn.human { border-left-color: #3fb950; }
[data-theme="dark"] .filter-btn.popover-btn.bot { border-left-color: #58a6ff; }
.filter-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  min-width: 220px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  animation: filter-popover-in 0.12s ease-out;
}
/* Human / Bot popovers pack five sub-filters (Decision / Safety / Desc with
   5 values / Correct / Align) — they need more room so every row stays
   on a single visual line instead of wrapping Label + Any + values across
   2–3 lines. Scoped to these anchors only so the simpler tri-state popovers
   (Curated / Merged / Eligible) keep their compact footprint. */
.popover-anchor.human > .filter-popover,
.popover-anchor.bot > .filter-popover { min-width: 320px; }
/* Keep each row's buttons on one line even in the narrower popovers. */
.filter-popover .filter-toggle { flex-wrap: nowrap; }
.filter-popover .filter-group { white-space: nowrap; }
.filter-popover.open { display: block; }
@keyframes filter-popover-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.popover-section-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--base1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 5px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
/* Dark-mode: glassy popover, softer border, deeper shadow. */
[data-theme="dark"] .filter-popover {
  background: rgba(30, 41, 63, 0.92);
  border-color: rgba(138, 160, 200, 0.22);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(88,166,255,0.08);
}
[data-theme="dark"] .popover-section-title { border-top-color: rgba(138,160,200,0.18); }
/* Empty filter-label placeholder inside popover rows collapses. */
.filter-popover .filter-group .filter-label:empty { display: none; }

/* Empty-state for the PR list when the active filters match zero PRs.
   Keeps the existing yellow panel tone but replaces the blank area with a
   muted sentence and a prominent "Clear all filters" CTA. */
.pr-list-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  text-align: center;
}
.pr-list-empty-title {
  font-size: 13px;
  color: var(--text-muted);
}
.pr-list-empty-cta {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.pr-list-empty-cta:hover {
  background: var(--accent);
  color: #fff;
}

.main-content {
  padding: 10px 32px 24px;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--base1);
  font-size: 15px;
}

.pr-header {
  background: var(--bg);
  padding: 10px 32px 8px;
  border-bottom: 1px solid var(--border);
}

/* Only pin the header when collapsed — when expanded the curation
   drawer is tall and would otherwise eat the viewport, making the
   diff / assessment below unreachable by scrolling. */
.pr-header.collapsed {
  position: sticky;
  top: 0;
  z-index: 10;
}

.pr-header h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--base02);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-header h2 a {
  color: var(--base02);
  text-decoration: none;
}
.pr-header h2 a:hover { color: var(--sol-blue); }

.pr-header-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--base01);
  align-items: center;
  margin-top: 4px;
}

.stat { display: flex; align-items: center; gap: 4px; }
.stat-green { color: #1a7f37; font-weight: 600; }
.stat-red { color: #cf222e; font-weight: 600; }

/* Collapsible curation panel (manual toggle) */
.pr-header .curation-details {
  overflow: hidden;
}

.pr-header.collapsed .curation-details {
  display: none;
}

.pr-header .collapsed-summary {
  display: none;
  font-size: 12px;
  color: var(--base01);
  margin-top: 4px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pr-header.collapsed .collapsed-summary {
  display: flex;
}

.curation-toggle {
  border: none;
  background: none;
  color: var(--sol-blue);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.curation-toggle:hover {
  text-decoration: underline;
}

.pr-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* Markdown rendering */
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  color: var(--base02);
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
  border-bottom: 1px solid var(--base2);
  padding-bottom: 4px;
}
.markdown-body h1 { font-size: 18px; }
.markdown-body h2 { font-size: 16px; }
.markdown-body h3 { font-size: 14px; }
.markdown-body h4 { font-size: 13px; border-bottom: none; }
.markdown-body h1:first-child, .markdown-body h2:first-child,
.markdown-body h3:first-child, .markdown-body h4:first-child { margin-top: 0; }

.markdown-body p { margin: 8px 0; }
.markdown-body p:first-child { margin-top: 0; }
.markdown-body p:last-child { margin-bottom: 0; }

.markdown-body ul, .markdown-body ol {
  margin: 8px 0;
  padding-left: 24px;
}
.markdown-body li { margin: 4px 0; }

.markdown-body code {
  background: var(--base2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 12px;
  color: var(--sol-magenta);
}

.markdown-body pre {
  background: var(--diff-file-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
  overflow-x: auto;
}
.markdown-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  color: var(--text);
}

.markdown-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 12px;
  margin: 8px 0;
  color: var(--base01);
}

.markdown-body a { color: var(--sol-blue); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }

.markdown-body img { max-width: 100%; border-radius: 6px; }

.markdown-body table {
  border-collapse: collapse;
  margin: 8px 0;
  width: 100%;
}
.markdown-body th, .markdown-body td {
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  text-align: left;
}
.markdown-body th { background: var(--base3); font-weight: 600; }

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.markdown-body input[type="checkbox"] { margin-right: 6px; }

/* Two-column layout */
.two-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

.col-left, .col-right {
  min-width: 0;
}

.col-right {
  display: flex;
  flex-direction: column;
}

.col-right > .section:last-child {
  margin-bottom: 0;
}

.section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--base02);
  display: flex;
  align-items: center;
  gap: 8px;
}

.diff-match-badge {
  font-size: 11px;
  color: var(--base01);
  background: var(--base3);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
}


/* GitHub Light diff rendering */
.diff-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.diff-file-header {
  padding: 8px 16px;
  background: var(--diff-file-bg);
  border-top: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  color: var(--base02);
}

.diff-file-header:first-child {
  border-top: none;
}

.diff-hunk-header {
  padding: 4px 16px;
  background: var(--diff-hunk-bg);
  color: var(--diff-hunk-text);
  font-style: italic;
  border-top: 1px solid var(--border);
}

.diff-line {
  padding: 1px 16px 1px 32px;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-line-add { background: var(--diff-add-bg); color: var(--diff-add-text); }
.diff-line-del { background: var(--diff-del-bg); color: var(--diff-del-text); }
.diff-line-ctx { color: var(--diff-ctx-text); }

/* Tabs for diff view */
.diff-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.diff-tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--base01);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.diff-tab:first-child { border-radius: 6px 0 0 6px; }
.diff-tab:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.diff-tab:hover { background: var(--base2); }
.diff-tab.active { background: var(--sol-blue); color: #fff; border-color: var(--sol-blue); }

/* Review comments */
.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.comment-header {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--base01);
  margin-bottom: 8px;
  align-items: center;
}

.comment-author { font-weight: 600; color: var(--base02); }
.comment-path { color: var(--sol-blue); font-family: monospace; font-size: 11px; }

.comment-body {
  font-size: 13px;
  line-height: 1.5;
}

/* Review events */
.review-event {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--base2);
  font-size: 13px;
}
.review-event:last-child { border-bottom: none; }

.review-state {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.review-state-approved { background: #dafbe1; color: #1a7f37; }
.review-state-changes_requested { background: #ffebe9; color: #cf222e; }
.review-state-commented { background: #ddf4ff; color: #0969da; }
.review-state-dismissed { background: var(--base2); color: var(--base01); }

.review-body {
  margin-top: 4px;
  font-size: 12px;
  color: var(--base01);
}

.review-meta {
  font-size: 11px;
  color: var(--base1);
}

/* Commit list */
.commit-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 12px;
}

.commit-sha {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--sol-blue);
  background: var(--base3);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.commit-msg {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rationale */
.rationale {
  background: #f5f0ff;
  border: 1px solid #d8b4fe;
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #4c1d95;
}

.no-rationale {
  color: var(--base1);
  font-size: 13px;
  font-style: italic;
  padding: 12px;
  background: var(--base3);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

/* Curation */
.curation-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ground-truth-label {
  font-size: 11px;
  color: var(--base01);
  font-style: italic;
}

.curation-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.curation-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

.comments-bar {
  width: 100%;
  display: block;
  margin-top: 6px;
}

.curate-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--base01);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.curate-btn:hover { border-color: var(--base01); }
.curate-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.curate-btn.approve { border-color: #aceebb; color: #1a7f37; }
.curate-btn.approve:hover { background: #dafbe1; }
.curate-btn.approve.active { background: #1a7f37; color: #fff; border-color: #1a7f37; }

.curate-btn.reject { border-color: #ffcecb; color: #cf222e; }
.curate-btn.reject:hover { background: #ffebe9; }
.curate-btn.reject.active { background: #cf222e; color: #fff; border-color: #cf222e; }

.curate-btn.reset { color: var(--base1); font-size: 12px; }
.curate-btn.reset:hover { color: var(--base01); }

.curate-btn.override-approve { border-color: #aceebb; color: #1a7f37; }
.curate-btn.override-approve:hover { background: #dafbe1; }
.curate-btn.override-approve.active { background: #1a7f37; color: #fff; border-color: #1a7f37; }

.curate-btn.override-reject { border-color: #ffcecb; color: #cf222e; }
.curate-btn.override-reject:hover { background: #ffebe9; }
.curate-btn.override-reject.active { background: #cf222e; color: #fff; border-color: #cf222e; }

.override-note {
  font-size: 11px;
  color: var(--sol-orange);
  font-weight: 600;
  margin-left: auto;
}

.reset-curation {
  font-size: 11px;
  color: var(--base1);
  text-decoration: none;
  margin-left: 4px;
}
.reset-curation:hover { color: var(--base01); text-decoration: underline; }

.curation-indicator {
  font-size: 11px;
  margin-left: auto;
}

.comment-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--base3);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.comment-input:focus { border-color: var(--sol-blue); box-shadow: 0 0 0 2px rgba(38,139,210,0.2); }
.comment-input::placeholder { color: var(--base1); }

textarea.comment-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 60px;
  resize: vertical;
  line-height: 1.4;
  padding: 8px 10px;
  display: block;
}

.comment-save-status {
  font-size: 11px;
  color: var(--sol-green);
  transition: opacity 0.3s;
}

.pr-item.curated-approved { border-left: 3px solid #1a7f37; }
.pr-item.curated-rejected { border-left: 3px solid #cf222e; opacity: 0.6; }
.pr-item.curated-approved.selected, .pr-item.curated-rejected.selected { opacity: 1; }

/* Description quality 4-point scale */
.curate-btn.dq-awful { border-color: #ffcecb; color: #cf222e; }
.curate-btn.dq-awful:hover { background: #ffebe9; }
.curate-btn.dq-awful.active { background: #cf222e; color: #fff; border-color: #cf222e; }

.curate-btn.dq-bad { border-color: #ffdfb0; color: #b35900; }
.curate-btn.dq-bad:hover { background: #fff3e0; }
.curate-btn.dq-bad.active { background: #cb4b16; color: #fff; border-color: #cb4b16; }

.curate-btn.dq-good { border-color: #b8d4f0; color: #0969da; }
.curate-btn.dq-good:hover { background: #ddf4ff; }
.curate-btn.dq-good.active { background: #0969da; color: #fff; border-color: #0969da; }

.curate-btn.dq-excellent { border-color: #aceebb; color: #1a7f37; }
.curate-btn.dq-excellent:hover { background: #dafbe1; }
.curate-btn.dq-excellent.active { background: #1a7f37; color: #fff; border-color: #1a7f37; }

/* Logical correctness textarea */
.logical-correctness-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--base3);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  resize: vertical;
}
.logical-correctness-textarea:focus { border-color: var(--sol-blue); box-shadow: 0 0 0 2px rgba(38,139,210,0.2); }
.logical-correctness-textarea::placeholder { color: var(--base1); }

/* Inline diff comments */
.diff-line { position: relative; }
.diff-line .diff-comment-btn {
  display: none;
  position: absolute;
  left: 4px;
  top: 0;
  width: 20px;
  height: 100%;
  background: var(--sol-blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  z-index: 2;
}
.diff-line:hover .diff-comment-btn { display: flex; align-items: center; justify-content: center; }

.diff-inline-comment {
  padding: 8px 12px;
  margin: 4px 0;
  background: #f0edff;
  border: 1px solid #c4b5fd;
  border-radius: 6px;
  font-size: 12px;
}
.diff-inline-comment .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #6d28d9;
  font-weight: 600;
}
.diff-inline-comment .comment-body { color: var(--text); }
.diff-inline-comment .comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.diff-inline-comment .comment-actions button {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}
.diff-inline-comment .comment-actions button:hover { border-color: var(--base01); color: var(--text); }
.diff-inline-comment .comment-actions button.save-btn { border-color: #aceebb; color: #1a7f37; }
.diff-inline-comment .comment-actions button.save-btn:hover { background: #dafbe1; }
.diff-inline-comment .comment-actions button.delete-btn { border-color: #ffcecb; color: #cf222e; }
.diff-inline-comment .comment-actions button.delete-btn:hover { background: #ffebe9; }

.diff-comment-form {
  padding: 8px 12px;
  margin: 4px 0;
  background: #faf5ff;
  border: 1px solid #c4b5fd;
  border-radius: 6px;
}
.diff-comment-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  resize: vertical;
}
.diff-comment-form textarea:focus { border-color: var(--sol-blue); }
.diff-comment-form .form-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.diff-comment-form .form-actions button {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.diff-comment-form .form-actions .save-btn { background: #1a7f37; color: #fff; border-color: #1a7f37; }
.diff-comment-form .form-actions .save-btn:hover { background: #15803d; }
.diff-comment-form .form-actions .cancel-btn { background: var(--surface); color: var(--text-muted); }
.diff-comment-form .form-actions .cancel-btn:hover { color: var(--text); }

.ground-truth-label {
  font-size: 12px;
  color: var(--text-muted);
}

.keyboard-hint {
  font-size: 11px;
  color: var(--base1);
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--surface);
}

kbd {
  background: var(--base3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11px;
  font-family: inherit;
  color: var(--base02);
}

/* --- Tag pages --- */

.tag-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  overflow-y: auto;
  height: 100vh;
}

.tag-page-header {
  margin-bottom: 24px;
}

.tag-page-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.tag-page-back:hover {
  text-decoration: underline;
}

.tag-page-header h1 {
  font-size: 24px;
  margin-top: 8px;
  color: var(--text);
}

/* Tag index grid */

.tag-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.tag-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}

.tag-card:hover {
  border-color: var(--accent);
}

.tag-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.tag-card-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

/* Tag detail — summary card */

/* Tag detail — batch table */

.tag-batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.tag-batch-table th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}

.tag-batch-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

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

.tag-batch-table tr:hover td {
  background: var(--bg);
}

.tag-batch-table a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.tag-batch-table a:hover {
  text-decoration: underline;
}
