.rlib-role {
  margin-bottom: 20px;
}
.rlib-role-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 8px 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 10px;
}
.rlib-doctype {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
}
.rlib-dt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.rlib-dt-name { font-size: 13px; font-weight: 600; }
.rlib-dt-count { font-size: 11px; color: var(--text-muted); }

.rlib-records { }
.rlib-record {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.rlib-record:last-child { border-bottom: none; }
.rlib-record.no-file { opacity: .6; }
.rlib-combo-name { font-weight: 500; min-width: 200px; }
.rlib-file-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 11.5px;
  flex: 1;
}
.rlib-file-link:hover { text-decoration: underline; }

.rlib-copy-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f0f9ff;
  border-top: 1px solid #bae6fd;
  font-size: 11.5px;
  color: #0369a1;
  flex-wrap: wrap;
}
.rlib-source-select {
  padding: 4px 8px;
  border: 1px solid #bae6fd;
  border-radius: 5px;
  font-size: 11px;
  font-family: inherit;
  background: #fff;
}
.rlib-copy-btn {
  padding: 4px 12px;
  background: #0369a1;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.rlib-copy-btn:hover { background: #0284c7; }
.rlib-copy-btn:disabled { opacity: .5; }
