/* Tidefall QA — Modern Dark Theme */
:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2130;
  --bg-hover: #252838;
  --border: #2a2d3e;
  --text-primary: #e8eaed;
  --text-secondary: #9aa0b0;
  --text-muted: #6b7185;
  --accent: #6c5ce7;
  --accent-hover: #7c6ef7;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --success: #00b894;
  --success-bg: rgba(0, 184, 148, 0.1);
  --warning: #fdcb6e;
  --warning-bg: rgba(253, 203, 110, 0.1);
  --danger: #e17055;
  --danger-bg: rgba(225, 112, 85, 0.1);
  --info: #74b9ff;
  --info-bg: rgba(116, 185, 255, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-brand .logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.header-nav a:hover, .header-nav a.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user .user-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.btn-logout {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.8rem;
  border: 1px solid var(--border);
}
.btn-logout:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-bg);
}

/* Layout */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Points Display */
.points-hero {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(162, 155, 254, 0.05));
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.points-hero .points-value {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a29bfe, #74b9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.points-hero .points-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.royalty-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 20px;
  background: var(--success-bg);
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 20px;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Milestones */
.milestones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.milestone-card.completed {
  border-color: rgba(0, 184, 148, 0.3);
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.05), var(--bg-card));
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.milestone-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.milestone-reward {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
}

.progress-bar {
  background: var(--bg-primary);
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a29bfe);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.milestone-card.completed .progress-fill {
  background: linear-gradient(90deg, var(--success), #55efc4);
}

.milestone-progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover { background: #00a885; color: white; }

.btn-warning {
  background: var(--warning);
  color: #1a1d27;
}
.btn-warning:hover { background: #f0b940; color: #1a1d27; }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #d35d43; color: white; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* File Upload */
.file-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-primary);
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.file-dropzone .dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.file-dropzone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.file-dropzone .browse-link {
  color: var(--accent);
  font-weight: 600;
}

.file-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.file-item .file-name {
  color: var(--text-primary);
  font-weight: 500;
}

.file-item .file-size {
  color: var(--text-muted);
}

.file-item .file-remove {
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
  background: none;
  border: none;
  padding: 0 4px;
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-pending { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(253, 203, 110, 0.3); }
.badge-approved { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0, 184, 148, 0.3); }
.badge-denied { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(225, 112, 85, 0.3); }
.badge-needs_more_info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(116, 185, 255, 0.3); }

.badge-critical { background: var(--danger-bg); color: var(--danger); }
.badge-high { background: rgba(255, 165, 0, 0.1); color: #ffa500; }
.badge-medium { background: var(--warning-bg); color: var(--warning); }
.badge-low { background: var(--info-bg); color: var(--info); }

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

tr:hover td {
  background: var(--bg-hover);
}

/* Login Page */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 2rem;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.auth-box .auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-box .auth-logo .logo-large {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.auth-box .auth-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-box .auth-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(225, 112, 85, 0.3);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(0, 184, 148, 0.3);
}

/* Onboarding */
.onboarding-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.onboarding-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.onboarding-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}

.onboarding-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: var(--transition);
}

.onboarding-step.active {
  background: var(--accent);
}

.onboarding-step.completed {
  background: var(--success);
}

.onboarding-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.onboarding-content.active {
  display: block;
}

.onboarding-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.onboarding-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.onboarding-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.onboarding-content ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.onboarding-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.onboarding-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Submission Detail */
.submission-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.meta-item .meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.meta-item .meta-value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Review Actions */
.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.review-action-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.review-action-card h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Invite link display */
.invite-link-box {
  background: var(--bg-primary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0;
}

.invite-link-box code {
  flex: 1;
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
}

.invite-link-box .btn-copy {
  padding: 6px 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .page-container { padding: 1rem; }
  .milestones { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .review-actions { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header { padding: 0 1rem; }
  .header-nav { display: none; }
}

/* Filters bar */
.filters-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Video player in review */
.file-preview video {
  max-width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}

.file-preview img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.file-preview pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-height: 400px;
  overflow-y: auto;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Milestone States */
.milestone-card.awaiting {
  border-color: rgba(253, 203, 110, 0.4);
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.06), var(--bg-card));
}

.milestone-awaiting-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--warning-bg);
  border: 1px solid rgba(253, 203, 110, 0.3);
  border-radius: 20px;
  color: var(--warning);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.milestone-completed-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--success-bg);
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 20px;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Badge - awaiting */
.badge-awaiting {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(253, 203, 110, 0.3);
}

/* Priority Dots */
.priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.priority-critical { background: var(--danger); }
.priority-high { background: #ffa500; }
.priority-medium { background: var(--warning); }
.priority-low { background: var(--info); }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* Needs Info Alert */
.needs-info-alert {
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.08), rgba(116, 185, 255, 0.03));
  border: 1px solid rgba(116, 185, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.needs-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--info);
  margin-bottom: 0.5rem;
}

.needs-info-alert p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.needs-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.needs-info-list li {
  padding: 8px 0;
  border-top: 1px solid rgba(116, 185, 255, 0.1);
  font-size: 0.9rem;
}

.needs-info-list li:first-child {
  border-top: none;
}

.needs-info-list a {
  color: var(--accent);
}

.needs-info-list a:hover {
  text-decoration: underline;
}

/* Related Submissions Picker */
.related-submissions-picker {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
}

.related-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}

.related-item:last-child { border-bottom: none; }

.related-item:hover { background: var(--bg-hover); }

.related-item.selected {
  background: rgba(0, 184, 148, 0.08);
  border-left-color: var(--success);
}

.related-item.selected strong {
  color: var(--success);
}

.related-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.related-item-content strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-item-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}
