/* ============================================
   Review Dashboard Styles
   Scoped under .review-page
   ============================================ */

.review-page {
  min-height: calc(100vh - 80px);
  font-family: var(--font-body);
}

/* ---- Views ---- */
.rv-view { width: 100%; }

/* ---- Shared components ---- */
.rv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.rv-btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
}
.rv-btn-primary:hover { background: var(--primary-dark); }
.rv-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  font-size: 14px;
}
.rv-btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.rv-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 10px;
  font-size: 14px;
}
.rv-btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.rv-btn-sm { padding: 6px 12px; font-size: 13px; }
.rv-btn-full { width: 100%; justify-content: center; }
.rv-btn-danger { background: #dc2626; color: #fff; }
.rv-btn-danger:hover { background: #b91c1c; }

.rv-error {
  color: #dc2626;
  font-size: 13px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  margin-bottom: 12px;
}
.rv-msg {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}
.rv-msg.success { background: #f0fdf4; color: #166534; }
.rv-msg.error { background: #fef2f2; color: #dc2626; }
.rv-msg.info { background: var(--primary-light); color: var(--primary-dark); }

.rv-field {
  margin-bottom: 14px;
}
.rv-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.rv-field input,
.rv-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--bg);
}
.rv-field input:focus,
.rv-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.rv-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
}
.rv-select:focus { outline: none; border-color: var(--primary); }
.rv-select-sm { padding: 5px 8px; font-size: 13px; }
.rv-input-sm {
  padding: 5px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
}
.rv-input-sm:focus { outline: none; border-color: var(--primary); }

.rv-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
  color: var(--text-light);
  font-size: 13px;
}
.rv-divider::before,
.rv-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rv-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.rv-loading {
  text-align: center;
  padding: 48px;
  color: var(--text-light);
  font-size: 14px;
}

.rv-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- Login View ---- */
#rv-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 24px;
  background: var(--bg-alt);
}
.rv-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}
.rv-login-brand {
  text-align: center;
  margin-bottom: 28px;
}
.rv-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 12px;
}
.rv-login-brand h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.rv-login-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---- Top Bar ---- */
.rv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 50;
  gap: 12px;
  flex-wrap: wrap;
}
.rv-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rv-topbar-left h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rv-user-badge {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ---- Stats ---- */
.rv-stats {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  flex-wrap: wrap;
}
.rv-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
}
.rv-stat strong {
  color: var(--text);
  font-size: 16px;
}

/* ---- Filters ---- */
.rv-filters {
  padding: 12px 24px 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.rv-filter-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 6px;
}
.rv-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rv-chip {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}
.rv-chip:hover { border-color: var(--primary); color: var(--primary); }
.rv-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.rv-search-group { flex: 1; min-width: 200px; }
.rv-search-wrap {
  position: relative;
}
.rv-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 13px;
}
.rv-search-wrap input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
}
.rv-search-wrap input:focus { outline: none; border-color: var(--primary); }

/* ---- Candidate Grid ---- */
.rv-grid {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.rv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.rv-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.rv-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rv-card:hover::before {
  opacity: 1;
}
.rv-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.rv-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.rv-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rv-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rv-card-meta i {
  width: 14px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
}
.rv-card-id {
  font-size: 11px;
  color: var(--text-light);
  font-family: monospace;
}

/* ---- Status Badges ---- */
.rv-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.rv-status-pending { background: #f3f4f6; color: #6b7280; }
.rv-status-interview { background: #dbeafe; color: #1d4ed8; }
.rv-status-accept { background: #dcfce7; color: #166534; }
.rv-status-waitlist { background: #fef3c7; color: #92400e; }
.rv-status-reject { background: #fee2e2; color: #991b1b; }

/* ---- Position Type Badges ---- */
.rv-pos-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
}

/* ---- Profile Layout ---- */
.rv-profile-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 140px);
}
.rv-profile-main {
  padding: 24px;
  overflow-y: auto;
}
.rv-notes-panel {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  max-height: calc(100vh - 140px);
  position: sticky;
  top: 120px;
}

/* ---- Profile Sections ---- */
.rv-section {
  margin-bottom: 24px;
}
.rv-section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}
.rv-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rv-info-item label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 2px;
}
.rv-info-item span {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}
.rv-info-item a {
  color: var(--primary);
  text-decoration: none;
}
.rv-info-item a:hover { text-decoration: underline; }
.rv-info-full {
  grid-column: 1 / -1;
}
.rv-text-block {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}
.rv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rv-tag {
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.rv-tag-clickable {
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.rv-tag-clickable:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.rv-text-clickable {
  cursor: text;
  border-left: 3px solid transparent;
  transition: border-color var(--transition);
}
.rv-text-clickable:hover {
  border-left-color: var(--primary);
}
.rv-text-clickable::selection,
.rv-text-clickable *::selection {
  background: rgba(0, 103, 71, 0.2);
}

/* Document links */
.rv-docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.rv-doc-link:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.rv-doc-link i { font-size: 16px; }

/* Reference cards */
.rv-ref-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rv-ref-card {
  padding: 12px;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.rv-ref-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.rv-ref-card span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- Notes Panel ---- */
.rv-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.rv-notes-header h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.rv-notes-tabs {
  display: flex;
  padding: 0 16px;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}
.rv-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.rv-tab:hover { color: var(--text); }
.rv-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.rv-notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.rv-note {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.rv-note-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.rv-note-author {
  font-weight: 600;
  font-size: 12px;
  color: var(--primary);
}
.rv-note-time {
  font-size: 11px;
  color: var(--text-light);
}
.rv-note-target-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.rv-note-content {
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}
.rv-note-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.rv-note-actions button {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-body);
}
.rv-note-actions button:hover { background: var(--border-light); color: var(--text); }
.rv-note-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 13px;
}

/* Notes form */
.rv-notes-form {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.rv-note-target-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.rv-notes-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  resize: vertical;
  margin-bottom: 8px;
  color: var(--text);
  min-height: 60px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.rv-notes-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* ---- Comment Mode Toggle ---- */
.rv-comment-toggle {
  transition: all var(--transition);
}
.rv-comment-toggle.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  animation: rv-pulse 2s ease-in-out infinite;
}
@keyframes rv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0); }
}

/* Comment mode indicator on profile */
.rv-profile-layout.comment-mode {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.rv-profile-layout.comment-mode .rv-profile-main::before {
  content: 'Click any field or text to add a note';
  display: block;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ---- Clickable fields for notes (only in comment mode) ---- */
.rv-section-title {
  position: relative;
  user-select: none;
}
.rv-section-title .rv-note-icon {
  display: none;
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-light);
  vertical-align: middle;
}
.comment-mode .rv-section-title {
  cursor: pointer;
}
.comment-mode .rv-section-title:hover .rv-note-icon {
  display: inline;
  color: var(--primary);
}
.rv-info-item {
  position: relative;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.comment-mode .rv-info-item {
  cursor: pointer;
}
.comment-mode .rv-info-item:hover {
  background: var(--primary-light);
}
.rv-info-item .rv-note-icon {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 11px;
  color: var(--text-light);
}
.comment-mode .rv-info-item:hover .rv-note-icon {
  display: block;
  color: var(--primary);
}
.rv-text-block {
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.comment-mode .rv-text-block {
  cursor: text;
}
.comment-mode .rv-text-block:hover {
  background: var(--primary-light);
}

/* ---- PDF Viewer ---- */
.rv-pdf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
}
.rv-pdf-viewer {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rv-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg);
}
.rv-pdf-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rv-pdf-nav span { font-size: 13px; color: var(--text-secondary); }
.rv-pdf-actions {
  display: flex;
  gap: 4px;
}
.rv-comment-toggle-pdf.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  animation: rv-pulse 2s ease-in-out infinite;
}
/* Comment mode cursor on PDF */
.comment-mode .rv-pdf-page-container {
  cursor: crosshair;
}
.comment-mode .rv-pdf-page-container .rv-pdf-text-layer span {
  cursor: crosshair;
}
.rv-pdf-canvas-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #e8e8e8;
  position: relative;
}
.rv-pdf-page-container {
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  background: #fff;
}
.rv-pdf-page-container canvas {
  display: block;
}

/* PDF.js text layer for selectable text */
.rv-pdf-text-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.25;
  line-height: 1;
  z-index: 2;
}
.rv-pdf-text-layer span {
  position: absolute;
  white-space: pre;
  color: transparent;
  cursor: text;
}
.rv-pdf-text-layer span::selection {
  background: rgba(0, 103, 71, 0.3);
  color: transparent;
}
.rv-pdf-text-layer span::-moz-selection {
  background: rgba(0, 103, 71, 0.3);
  color: transparent;
}

/* PDF annotation highlights overlay */
.rv-pdf-annotations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
}
.rv-pdf-highlight {
  position: absolute;
  background: rgba(0, 103, 71, 0.15);
  border: 1px solid rgba(0, 103, 71, 0.3);
  border-radius: 2px;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.15s;
}
.rv-pdf-highlight:hover {
  background: rgba(0, 103, 71, 0.3);
}
.rv-pdf-highlight-tip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  pointer-events: none;
  z-index: 5;
}
.rv-pdf-highlight:hover .rv-pdf-highlight-tip {
  display: block;
}
.rv-pdf-note-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 4;
  transform: rotate(-45deg);
  transition: transform 0.15s, box-shadow 0.15s;
}
.rv-pdf-note-marker i {
  transform: rotate(45deg);
}
.rv-pdf-note-marker:hover {
  transform: rotate(-45deg) scale(1.2);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Selection tooltip / note form in PDF viewer */
.rv-pdf-selection-tip {
  position: fixed;
  z-index: 210;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 12px;
  width: 280px;
  animation: rv-tip-in 0.15s ease-out;
}
@keyframes rv-tip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.rv-pdf-tip-quote {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  padding: 6px 8px;
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  margin-bottom: 8px;
  max-height: 60px;
  overflow: hidden;
  display: none;
}
.rv-pdf-tip-quote:not(:empty) { display: block; }
.rv-pdf-tip-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  resize: none;
  color: var(--text);
  margin-bottom: 8px;
}
.rv-pdf-tip-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}
.rv-pdf-tip-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ---- Modal ---- */
.rv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rv-modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}
.rv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.rv-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}
.rv-modal-body { padding: 20px; }

.rv-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.rv-user-row:last-child { border-bottom: none; }
.rv-user-name { font-weight: 500; flex: 1; }
.rv-user-email { color: var(--text-secondary); flex: 1; }
.rv-user-role {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.rv-role-admin { background: #fef3c7; color: #92400e; }
.rv-role-faculty { background: #dbeafe; color: #1d4ed8; }
.rv-role-reviewer { background: #f3f4f6; color: #6b7280; }
.rv-user-verified {
  font-size: 12px;
}
.rv-user-verified.yes { color: #166534; }
.rv-user-verified.no { color: #dc2626; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .rv-profile-layout {
    grid-template-columns: 1fr;
  }
  .rv-notes-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: none;
    position: static;
  }
  .rv-info-grid {
    grid-template-columns: 1fr;
  }
  .rv-ref-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .rv-topbar { padding: 10px 16px; }
  .rv-filters { padding: 8px 16px 12px; }
  .rv-grid { padding: 0 16px 16px; grid-template-columns: 1fr; }
  .rv-profile-main { padding: 16px; }
  .rv-login-card { padding: 24px 20px; }
  .rv-topbar-left h2 { font-size: 16px; }
}
