/* ---------------------------------------------------------------------------
 * review.css — page-specific styles for the Review queue
 * ---------------------------------------------------------------------------
 * Extracted from the former inline <style> block in templates/review.ts
 * (App-Building Bible principle 5). The former `${brand.*}` template
 * interpolations are replaced with the equivalent CSS custom properties from
 * app.css (same resolved values), so the rendered output is unchanged.
 * Loaded via the layout headExtra <link>.
 * ------------------------------------------------------------------------- */

/* Header */
.rv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.rv-header h1 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* Tabs */
.rv-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.rv-tab {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--muted); border: none; background: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color 120ms ease;
  text-decoration: none;
}
.rv-tab:hover { color: var(--ink); }
.rv-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.rv-tab__count {
  font-size: 10px; opacity: .6; margin-left: 3px;
  font-variant-numeric: tabular-nums;
}

/* Stats */
.rv-stats {
  display: flex; gap: 12px;
  padding: 16px 24px 0;
}
.rv-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  min-width: 100px;
}
.rv-stat__value {
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.rv-stat__label { font-size: 11px; color: var(--muted); font-weight: 500; }
.rv-stat--alert { background: #FEF2F2; border-color: #FEF2F2; }
.rv-stat--alert .rv-stat__value { color: #DC2626; }
.rv-stat--warn { background: #FFF7ED; border-color: #FFF7ED; }
.rv-stat--warn .rv-stat__value { color: #EA580C; }

/* Batch bar */
.rv-batch {
  display: none; align-items: center; gap: 8px;
  padding: 8px 24px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--primary);
  font-size: 13px; color: var(--primary); font-weight: 500;
  position: sticky; top: 0; z-index: 9;
}
.rv-batch.visible { display: flex; }
.rv-batch-divider { width: 1px; height: 20px; background: var(--primary); opacity: .3; }

/* Queue list */
.rv-queue { padding: 0 24px 24px; }

/* Queue item */
.rv-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: 12px;
  background: var(--surface);
  transition: box-shadow 120ms ease;
  overflow: hidden;
}
.rv-item:hover { box-shadow: var(--shadow); }

.rv-item__header {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
}

.rv-item__check { padding-top: 2px; }
.rv-item__check input[type="checkbox"] {
  width: 14px; height: 14px; cursor: pointer; accent-color: var(--primary);
}

.rv-item__title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-item__title {
  font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.rv-item__title a { color: inherit; text-decoration: none; }
.rv-item__title a:hover { text-decoration: underline; }

.rv-item__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px; flex-wrap: wrap;
}
.rv-item__meta-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted);
}
.rv-item__meta-label { color: #A1A1AA; }

.rv-item__actions {
  display: flex; gap: 4px; align-items: center;
  flex-shrink: 0; padding-top: 2px;
}

/* Expandable preview */
.rv-item__preview {
  display: none;
  padding: 0 16px 12px;
  padding-left: calc(32px + 12px + 16px);
}
.rv-item__preview.expanded { display: block; }
.rv-item__preview-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Queue time */
.rv-queue-time {
  font-family: var(--font-mono); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rv-queue-time--long { color: #EA580C; }
.rv-queue-time--critical { color: #DC2626; font-weight: 600; }

/* Reviewer */
.rv-reviewer {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
}
.rv-reviewer__avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: var(--muted); flex-shrink: 0;
}
.rv-reviewer--unassigned { color: #EA580C; font-size: 12px; font-weight: 500; }

/* Empty state */
.rv-empty {
  text-align: center; padding: 64px 24px; color: var(--muted);
}
.rv-empty__title {
  font-size: 16px; font-weight: 600; color: var(--muted); margin-bottom: 8px;
}

/* Reject modal */
.rv-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.rv-modal-overlay.visible { opacity: 1; pointer-events: auto; }
.rv-modal {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: 0 24px 48px rgba(0,0,0,.15);
  padding: 24px; width: 100%; max-width: 420px;
}
.rv-modal h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.rv-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Reject modal textarea */
.rv-reject-comment {
  width: 100%; min-height: 80px; border: 1px solid var(--border);
  border-radius: var(--radius-input); padding: 10px; font-size: 13px;
  font-family: var(--font); resize: vertical;
}
.rv-modal-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* Toast */
.rv-toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transform: translateY(100px); opacity: 0; transition: all .3s ease;
}
.rv-toast.visible { transform: translateY(0); opacity: 1; }
.rv-toast--success { background: #059669; color: #fff; }
.rv-toast--error { background: #DC2626; color: #fff; }
.rv-toast--info { background: var(--primary); color: #fff; }

/* Inline action buttons (formerly inline style=) */
.rv-btn-approve { color: #059669; border: 1px solid #059669; }
.rv-btn-reject { color: #DC2626; border: 1px solid #DC2626; }
