/* ============================================================
   QC Monitor — Dark Design System
   ============================================================ */

:root {
  /* Background layers */
  --bg:          #0a0f1e;
  --bg-surface:  #111827;
  --bg-raised:   #1a2235;
  --bg-input:    #1f2d42;

  /* Borders */
  --border:      #2a3a52;
  --border-dim:  #1e2d42;

  /* Accent — emerald */
  --accent:      #10b981;
  --accent-dim:  #059669;
  --accent-glow: rgba(16, 185, 129, 0.18);
  --accent-muted: rgba(16, 185, 129, 0.08);

  /* Semantic */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger:  #f43f5e;
  --color-info:    #38bdf8;
  --color-purple:  #a78bfa;

  /* Text */
  --text:       #e2e8f0;
  --text-muted: #8b9ab1;
  --text-faint: #4e627a;

  /* Misc */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-glow);
  --transition: 0.18s ease;
  --header-h: 54px;
}

/* ============================================================
   Reset + Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.82; }

/* ============================================================
   Snap Scroll Container
   ============================================================ */

.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* each snap section fills exactly one viewport */
.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================================
   Shared Header (used in both pages)
   ============================================================ */

.monitor-header {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  z-index: 10;
}

.monitor-header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.monitor-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-user-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* header buttons */
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.header-btn:hover { border-color: var(--accent); color: var(--accent); }
.header-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }
.header-btn-danger:hover { border-color: var(--color-danger); color: var(--color-danger); }

.debug-badge {
  background: var(--color-warning);
  color: #000;
  font-size: 0.65rem;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  font-weight: 700;
}
.hidden { display: none !important; }

/* ============================================================
   Hero Section (section 1)
   ============================================================ */

.hero-section {
  background: var(--bg);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Right column (workers + performance stacked) ── */
.right-column {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--border);
}

.workers-panel {
  flex: 0 0 50%;
  border-bottom: 1px solid var(--border);
}

.performance-panel {
  flex: 1;
  min-height: 0;
}

/* ── Performance chart grid ── */
.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
}

.chart-card {
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dim);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chart-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.chart-card canvas {
  flex: 1;
  min-height: 0;
  width: 100% !important;
}

/* ── Panel shared ── */
.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
}

.panel:first-child {
  border-right: 1px solid var(--border);
}

.panel-header {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.panel-badge {
  background: var(--accent-muted);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.panel-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.78rem;
  text-align: center;
  padding: 2rem;
}

/* ── Pending panel split layout ── */
.pending-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pending-subheader {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-dim);
}

.pending-subheader-alt {
  border-top: 1px solid var(--border);
}

.pending-subheader-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.pending-subheader-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pending-sort-btn {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.pending-sort-btn:hover {
  color: var(--text);
  border-color: var(--border);
}

.pending-sublist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* ── Pending cards ── */
.pending-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.3rem;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color var(--transition), background var(--transition);
}
.pending-card:hover { background: var(--bg-input); }
.pending-card[data-type="update"]     { border-left-color: var(--color-info); }
.pending-card[data-type="submission"] { border-left-color: var(--color-warning); }

.pending-card-left { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }

.pending-task-id {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-task-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.pending-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-eval       { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.badge-update     { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.25); }
.badge-submission { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }

.pending-elapsed {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* flying clone for absorption animation */
.pending-card-clone {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.9;
  transition: left 0.52s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.52s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.52s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.52s ease,
              transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Worker grid ── */
.workers-panel .panel-body { padding: 0.6rem; }

.worker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  align-content: start;
}

.worker-card {
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.worker-card.available {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.04);
}
.worker-card.busy {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.04);
}

@keyframes absorb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); transform: scale(1); }
  40%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.18); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); }
}
.worker-card.absorbing { animation: absorb-pulse 0.7s ease-out; }

.worker-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.worker-id {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
}

.worker-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.worker-status-dot.available { background: var(--color-success); }
.worker-status-dot.busy      { background: var(--color-warning); animation: pulse-dot 1.4s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.worker-task-id {
  font-size: 0.71rem; font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.worker-meta {
  font-size: 0.66rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.worker-step {
  font-size: 0.63rem; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-style: italic;
}
.worker-idle-label {
  font-size: 0.7rem; color: var(--text-faint);
}
.worker-disabled-label { color: var(--text-faint); font-style: italic; }

/* ── Worker disabled state ── */
.worker-card.disabled {
  opacity: 0.45;
  border-color: var(--border);
  box-shadow: none;
}
.worker-status-dot.disabled { background: var(--text-faint); }

/* ── Worker action buttons (Disable / Enable / Delete) ── */
.worker-actions {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  justify-content: flex-end;
}
.worker-action-btn {
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.worker-action-btn:hover { opacity: 1; }
.worker-disable-btn { color: var(--color-warning); }
.worker-enable-btn  { color: var(--color-success); }
.worker-delete-btn  { color: var(--color-danger, #f43f5e); }

/* ── Add Worker controls in panel header ── */
.add-worker-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.add-worker-select {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 2px 4px;
}
.add-worker-btn {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--color-success);
  border-radius: 4px;
  font-size: 0.65rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.add-worker-btn:hover { background: rgba(34,197,94,0.22); }

/* ── Produce toggle ── */
.produce-toggle-btn {
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.produce-toggle-off {
  background: rgba(148,163,184,0.10);
  border: 1px solid rgba(148,163,184,0.25);
  color: var(--text-faint);
}
.produce-toggle-off:hover { background: rgba(148,163,184,0.20); }
.produce-toggle-on {
  background: rgba(244,63,94,0.15);
  border: 1px solid rgba(244,63,94,0.4);
  color: #f43f5e;
}
.produce-toggle-on:hover { background: rgba(244,63,94,0.25); }

/* ── Pipeline badge ── */
.pipeline-badge {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.pipeline-badge-suggest { background: rgba(167,139,250,0.2); color: #a78bfa; }
.pipeline-badge-verify  { background: rgba(56,189,248,0.2);  color: #38bdf8; }

/* ── Pipeline toggle button ── */
.pipeline-toggle {
  font-size: 0.58rem;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.pipeline-toggle:hover { opacity: 1; }
.pipeline-toggle-suggest { color: #a78bfa; }
.pipeline-toggle-verify  { color: #38bdf8; }

/* ── Processor settings config section ── */
.config-section {
  border-bottom: 1px solid var(--border);
  padding: 4px 12px 8px;
}
.config-toggle {
  font-size: 0.68rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 2px 0;
}
.config-toggle::-webkit-details-marker { display: none; }
.config-toggle:hover { color: var(--text); }
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 8px;
}
.config-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.63rem;
  color: var(--text-muted);
}
.config-input {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.7rem;
  padding: 3px 6px;
  width: 100%;
  box-sizing: border-box;
}
.config-input:focus { outline: none; border-color: #38bdf8; }
.config-save-btn {
  grid-column: 1 / -1;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.3);
  color: #38bdf8;
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.config-save-btn:hover { background: rgba(56,189,248,0.22); }

/* ── Scroll hint at bottom of hero ── */
.scroll-hint {
  flex-shrink: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-dim);
  background: var(--bg);
  cursor: pointer;
  transition: color var(--transition);
  user-select: none;
  letter-spacing: 0.04em;
}
.scroll-hint:hover { color: var(--text-muted); }
.scroll-hint-arrow {
  animation: bounce-down 1.6s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}

/* ============================================================
   Tasks Section (section 2)
   ============================================================ */

.tasks-section {
  background: var(--bg);
}

/* mini header row at top of tasks section */
.tasks-section-header {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.tasks-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex: 1;
}

.scroll-up-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.scroll-up-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Filter bar */
.filter-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.eval-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.eval-tab {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--bg-raised);
  color: var(--text-faint);
  transition: background var(--transition), color var(--transition);
}
.eval-tab.active {
  background: var(--accent);
  color: #000;
}

.filter-input, .filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.26rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.filter-input::placeholder { color: var(--text-faint); }
.filter-input:focus, .filter-select:focus { border-color: var(--accent); }
.filter-select { cursor: pointer; }
.filter-select option { background: var(--bg-surface); }

.filter-date-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.filter-select-sm { padding: 0.24rem 0.35rem; font-size: 0.72rem; }
.filter-input-date { width: 128px; }
.date-sep { font-size: 0.75rem; color: var(--text-faint); }

.filter-btn-group { display: flex; gap: 0.3rem; margin-left: auto; }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--text-muted); color: var(--text); }
.filter-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}
.filter-btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: #000; }

/* stat bar (approval counts + total) */
.filter-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.72rem;
}

.approval-counts {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.approval-pill {
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
}
.approval-pill.approved  { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.approval-pill.rejected  { background: rgba(244,63,94,0.15); color: #fb7185; border: 1px solid rgba(244,63,94,0.25); }
.approval-pill.undecided { background: var(--bg-raised); color: var(--text-faint); border: 1px solid var(--border); }

.task-total {
  color: var(--text-faint);
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Task table */
.task-table-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.task-table-container::-webkit-scrollbar { width: 6px; }
.task-table-container::-webkit-scrollbar-track { background: var(--bg); }
.task-table-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.task-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.task-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-surface);
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.task-table tbody tr {
  border-bottom: 1px solid var(--border-dim);
  cursor: pointer;
  transition: background var(--transition);
}
.task-table tbody tr:hover { background: var(--bg-raised); }

.task-table td {
  padding: 0.52rem 0.85rem;
  vertical-align: middle;
  color: var(--text);
}

.task-id-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
}

.task-title-cell {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-table-empty {
  padding: 4rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* Status / Type badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-processing { background: rgba(56,189,248,0.15); color: #7dd3fc; }
.status-passed     { background: rgba(34,197,94,0.15);  color: #4ade80; }
.status-failed     { background: rgba(244,63,94,0.15);  color: #fb7185; }
.status-need-human { background: rgba(245,158,11,0.15); color: #fcd34d; }
.status-skipped    { background: var(--bg-raised);      color: var(--text-faint); border: 1px solid var(--border); }

.type-badge {
  display: inline-block;
  padding: 0.1rem 0.42rem;
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 600;
}
.type-suggest  { background: rgba(167,139,250,0.15); color: #c4b5fd; }
.type-schedule { background: rgba(56,189,248,0.15);  color: #7dd3fc; }
.type-workflow { background: rgba(244,114,182,0.15); color: #f9a8d4; }
.type-normal   { background: var(--bg-raised); color: var(--text-muted); border: 1px solid var(--border); }

/* Score bar */
.score-bar-wrapper { display: flex; align-items: center; gap: 0.45rem; }
.score-bar {
  flex: 1; min-width: 36px; height: 4px;
  background: var(--border);
  border-radius: 999px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 999px;
  background: var(--accent);
  transition: width 0.4s;
}
.score-text { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* Pagination */
.pagination-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.page-btn {
  min-width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  transition: all var(--transition);
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Spinner */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast container */
.toast-container {
  position: fixed;
  top: 68px; right: 1rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

/* ============================================================
   Detail Page
   ============================================================ */

html.detail-page, html.detail-page body {
  height: 100%;
  overflow: hidden;
}

.detail-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg);
}

/* Detail header */
.detail-header {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
  z-index: 10;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }

.detail-header-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.detail-task-id {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.detail-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.detail-finished-at {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
  margin-left: auto;
}

.detail-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Detail grid — 2 columns, each column stacks its own panels vertically */
.detail-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 0;
}

.detail-column {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-column:first-child {
  border-right: 1px solid var(--border);
}

.detail-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.detail-column .detail-panel:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.detail-panel-header {
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.85rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.detail-panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.detail-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  background: var(--bg);
}
.detail-panel-body::-webkit-scrollbar { width: 5px; }
.detail-panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Mode toggle (Friendly / JSON) */
.mode-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mode-btn {
  padding: 0.18rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: var(--bg-raised);
  color: var(--text-faint);
  transition: all var(--transition);
}
.mode-btn.active { background: var(--accent); color: #000; font-weight: 600; }

/* Version selector */
.version-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.18rem 0.4rem;
  font-size: 0.7rem;
  color: var(--text);
  cursor: pointer;
  max-width: 180px;
  outline: none;
}
.version-select:focus { border-color: var(--accent); }
.version-select option { background: var(--bg-surface); }

.ver-warning { color: var(--color-warning); display: flex; align-items: center; }

/* Input tabs */
.input-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  overflow-x: auto;
  flex-shrink: 0;
}
.input-tabs::-webkit-scrollbar { display: none; }

.input-tab {
  display: flex;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  transition: all var(--transition);
}
.input-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
  font-weight: 600;
}
.input-tab-left, .input-tab-right {
  padding: 0 0.3rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-carousel { background: var(--bg); }

/* Friendly view fields */
.field-group { margin-bottom: 0.9rem; }
.field-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: 0.22rem;
}
.field-value {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}
.field-value a { color: var(--accent); }
.field-value pre {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  color: var(--text-muted);
}

.json-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.71rem;
  font-family: 'Courier New', monospace;
  overflow: auto;
  white-space: pre;
  line-height: 1.65;
  color: #a3e635;
}

/* Media thumbnails */
.media-thumb-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.media-thumb {
  width: 72px; height: 62px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.media-thumb:hover { border-color: var(--accent); }
.media-thumb-placeholder {
  width: 72px; height: 62px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; color: var(--text-faint);
  border: 1px solid var(--border);
}

/* Subtasks */
.subtask-item {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  background: var(--bg-raised);
}
.subtask-item-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem;
}
.subtask-title { font-size: 0.78rem; font-weight: 600; flex: 1; min-width: 0; }
.subtask-score { font-size: 0.73rem; color: var(--accent); font-weight: 700; white-space: nowrap; }
.subtask-rule  { font-size: 0.7rem; color: var(--text-faint); margin-top: 0.18rem; }

/* Eval flow */
.eval-flow-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.22rem; }
.eval-flow-item { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.73rem; color: var(--text-muted); }
.eval-flow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0; margin-top: 0.38rem;
}

/* Suggestion content */
.suggestion-section { margin-bottom: 0.9rem; }
.suggestion-type-title {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); margin-bottom: 0.3rem;
}
.suggestion-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.suggestion-list li {
  font-size: 0.78rem; color: var(--text);
  padding: 0.18rem 0 0.18rem 0.7rem;
  border-left: 2px solid var(--border);
  line-height: 1.5;
}

.constraint-tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.14rem 0.48rem; border-radius: 999px;
}
.constraint-yes { background: rgba(34,197,94,0.15); color: #4ade80; }
.constraint-no  { background: var(--bg-raised); color: var(--text-faint); border: 1px solid var(--border); }

/* Review section */
.review-section {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0.85rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-surface);
}
.review-section-header {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-faint);
}
.review-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.review-row-col { flex-direction: column; align-items: stretch; }
.review-label-text {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); white-space: nowrap; min-width: 56px;
}
.review-comment {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.76rem;
  resize: vertical; min-height: 50px;
  outline: none; font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
}
.review-comment:focus { border-color: var(--accent); }
.review-comment::placeholder { color: var(--text-faint); }

.approval-btn-group { display: flex; gap: 0.35rem; }
.approval-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 500;
  transition: all var(--transition);
}
.approval-btn-approve:hover, .approval-btn-approve.active {
  border-color: var(--color-success);
  background: rgba(34,197,94,0.12);
  color: #4ade80;
}
.approval-btn-reject:hover, .approval-btn-reject.active {
  border-color: var(--color-danger);
  background: rgba(244,63,94,0.12);
  color: #fb7185;
}

.review-actions { display: flex; justify-content: flex-end; }

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   Responsive fallback (≤ 900px)
   ============================================================ */

@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  .snap-container { height: auto; overflow-y: auto; scroll-snap-type: none; }
  .snap-section { height: auto; scroll-snap-align: none; scroll-snap-stop: unset; overflow: visible; }
  .hero-grid { grid-template-columns: 1fr; height: auto; }
  .panel:first-child { border-right: none; border-bottom: 1px solid var(--border); min-height: 200px; }
  .right-column { border-left: none; border-top: 1px solid var(--border); }
  .workers-panel { flex: none; min-height: 200px; }
  .performance-panel { flex: none; min-height: 260px; }
  .perf-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .panel-body { max-height: 220px; }
  .worker-grid { max-height: 220px; overflow-y: auto; }
  .scroll-hint { display: none; }
  .tasks-section { height: auto; }
  .task-table-container { max-height: 60vh; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-column:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .detail-grid { overflow: auto; }
}

/* ============================================================
   Task Table — Redesign
   ============================================================ */

/* Override base table styles for more visual depth */
.task-table thead th {
  background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-surface) 100%);
  border-bottom: 2px solid var(--border);
  padding: 0.6rem 0.85rem;
}

.task-table thead th:first-child { border-radius: 0; }

.task-row {
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
}
.task-row:hover { background: var(--bg-raised); }
.task-row.row-expanded {
  background: var(--bg-raised);
  box-shadow: inset 3px 0 0 var(--accent-dim);
}
/* row separator with subtle gradient */
.task-row td { border-bottom: 1px solid rgba(255,255,255,0.035); }

.task-id-text {
  font-family: 'Courier New', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.task-title-cell { max-width: 260px; }
.title-text {
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ts-cell {
  font-size: 0.69rem;
  color: var(--text-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.score-cell { min-width: 100px; }

.no-data {
  color: var(--text-faint);
  font-size: 0.72rem;
}

/* ── Sub-type badges ── */
.subtype-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.subtype-individual {
  background: rgba(167,139,250,0.12);
  color: #c4b5fd;
  border: 1px solid rgba(167,139,250,0.28);
}
.subtype-group {
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,0.28);
}

/* ── Row action buttons (like / dislike) ── */
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-faint);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.like-btn:hover,
.like-btn.active    {
  border-color: var(--color-success);
  color: var(--color-success);
  background: rgba(34,197,94,0.1);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}
.dislike-btn:hover,
.dislike-btn.active {
  border-color: var(--color-danger);
  color: var(--color-danger);
  background: rgba(244,63,94,0.1);
  box-shadow: 0 0 0 1px rgba(244,63,94,0.2);
}

/* ── Expand button ── */
.expand-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-faint);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.expand-btn:hover  { border-color: var(--accent); color: var(--accent); }
.expand-btn.expanded {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}
.expand-btn svg { transition: transform var(--transition); }
.expand-placeholder { width: 28px; display: inline-block; }
.expand-cell { width: 40px; text-align: center; }

/* ── Staff expand row ── */
.staff-expand-row > td {
  padding: 0 !important;
  background: transparent;
  border-bottom: 2px solid var(--accent-dim) !important;
}

.staff-expand-cell { background: var(--bg) !important; }

.staff-expand-wrapper {
  border-left: 3px solid var(--accent-dim);
  margin: 0 0 0 2rem;
  animation: expandIn 0.22s ease-out;
}
@keyframes expandIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.staff-expand-loading,
.staff-expand-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
  color: var(--text-faint);
}

/* staff nested table */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}
.staff-table thead th {
  padding: 0.38rem 0.75rem;
  background: var(--bg-raised) !important;
  color: var(--text-faint);
  font-size: 0.63rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border) !important;
  white-space: nowrap;
  position: static !important;
  box-shadow: none !important;
}
.staff-row {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--transition);
}
.staff-row:hover { background: var(--bg-raised); }
.staff-row td {
  padding: 0.42rem 0.75rem;
  color: var(--text);
  vertical-align: middle;
}

.staff-id-cell {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-faint);
}
.staff-id-text {
  font-family: 'Courier New', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* per-staff approval */
.staff-appr {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}
.staff-appr-yes { background: rgba(34,197,94,0.12); color: #4ade80; }
.staff-appr-no  { background: rgba(244,63,94,0.12);  color: #fb7185; }
.staff-appr-na  { color: var(--text-faint); font-size: 0.68rem; }

.staff-eval-step {
  font-size: 0.69rem;
  color: var(--text-faint);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  display: inline-block;
}

/* misc table */
.page-ellipsis {
  padding: 0 0.25rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
}

.spinner-sm {
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ============================================================
   Visual upgrades — Hero / Panels
   ============================================================ */

/* accent top bar on hero section */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--color-info), var(--color-purple));
  pointer-events: none;
  z-index: 5;
}
.hero-section { position: relative; }

/* pending card — more visual depth */
.pending-card {
  background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-input) 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.pending-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transform: translateX(2px);
}
.pending-card { transition: all var(--transition); }

/* worker card — glowing border when busy */
.worker-card.busy {
  box-shadow: 0 0 12px rgba(245,158,11,0.12);
}
.worker-card.available {
  box-shadow: 0 0 8px rgba(34,197,94,0.08);
}

/* tasks section — subtle gradient bg */
.tasks-section {
  background: linear-gradient(180deg, var(--bg) 0%, #070d1a 100%);
}

/* filter bar upgrade */
.filter-bar {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-raised) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* tasks section header upgrade */
.tasks-section-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* table container — inset shadow for depth */
.task-table-container {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

/* scroll-snap visual feedback */
.snap-container {
  scroll-behavior: auto; /* JS handles smooth scrolling */
}

/* ── Grouped row ── */
.group-row {
  border-left: 3px solid var(--accent-dim);
}
.group-row:hover { border-left-color: var(--accent); }
.group-row.row-expanded { border-left-color: var(--accent); }

/* staff count inside sub-type badge */
.group-count {
  opacity: 0.75;
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 0.1rem;
}

/* mixed status in group row */
.status-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.status-mini-list .status-badge {
  font-size: 0.62rem;
  padding: 0.1rem 0.38rem;
}

/* staff row clickable */
.staff-row { cursor: pointer; }
