/* ============================================================
   Mudra 2.0 tokens (from _shared/mudra_design.md) — CSS variables
   ============================================================ */
:root {
  /* Neutral */
  --neutral-0:#FFFFFF; --neutral-90:#191919; --neutral-100:#000000;

  /* Steel grey */
  --steel-10:#FCFCFC; --steel-20:#F4F4F5; --steel-40:#E1E1E2; --steel-60:#D0D0D4;
  --steel-80:#A1A1AA; --steel-100:#7A7A83; --steel-120:#52525B; --steel-160:#27272A;

  /* Piramal orange */
  --orange-10:#FEF0EC; --orange-20:#FCE1D9; --orange-100:#F26841; --orange-120:#C25334; --orange-140:#913E27;

  /* Piramal blue */
  --blue-10:#EBEEF0; --blue-100:#365069; --blue-160:#16202A;

  /* Valentine red */
  --red-10:#FFEBED; --red-100:#FF354D;

  /* Texas yellow */
  --yellow-10:#FFF8E6; --yellow-100:#FFBD07; --yellow-140:#997104;

  /* Emerald green */
  --green-10:#E7F7EF; --green-100:#0AAE5F;

  /* Royal blue */
  --royal-10:#E9F3FD; --royal-100:#2686E7;

  /* Dark lavender */
  --lavender-10:#F5EEF7; --lavender-100:#9A55B2;

  /* Semantic — text */
  --text-heading:#191919; --text-body:#333333; --text-subtext:#666666;
  --text-disabled:#999999; --text-placeholder:#A1A1AA; --text-primary:#F26841;
  --text-primary-dark:#C25334; --text-secondary:#365069; --text-error:#FF354D;
  --text-warning:#997104; --text-success:#0AAE5F; --text-info:#2686E7; --text-discovery:#9A55B2;
  --text-inverted:#FFFFFF;

  /* Semantic — background */
  --bg-base:#FFFFFF; --bg-surface:#FCFCFC; --bg-hover:#F4F4F5; --bg-disabled:#E6E6E6;
  --bg-primary:#F26841; --bg-primary-hover:#913E27; --bg-primary-disabled:#FAC3B3; --bg-primary-light:#FEF0EC;
  --bg-inverted:#27272A; --bg-error-light:#FFEBED; --bg-warning-light:#FFF8E6;
  --bg-success-light:#E7F7EF; --bg-info-light:#E9F3FD; --bg-discovery-light:#F5EEF7;

  /* Semantic — border */
  --border-default:#E1E1E2; --border-input-focus:#333333; --border-disabled:#999999;
  --border-primary:#F26841; --border-error:#FF354D; --border-warning:#FFBD07;
  --border-success:#0AAE5F; --border-info:#2686E7;

  /* Icon */
  --icon-default:#333333; --icon-inverted:#FFFFFF; --icon-disabled:#999999;
  --icon-primary:#F26841; --icon-error:#FF354D; --icon-warning:#FFBD07;
  --icon-success:#0AAE5F; --icon-info:#2686E7; --icon-discovery:#9A55B2;

  /* Spacing */
  --space-0:0px; --space-4:4px; --space-8:8px; --space-12:12px; --space-16:16px;
  --space-20:20px; --space-24:24px; --space-32:32px; --space-40:40px; --space-48:48px;
  --space-56:56px; --space-64:64px; --space-80:80px; --space-96:96px; --space-128:128px;

  /* Radius */
  --radius-none:0px; --radius-3xs:2px; --radius-2xs:4px; --radius-sm:8px; --radius-md:12px;
  --radius-lg:16px; --radius-xl:20px; --radius-2xl:24px; --radius-full:9999px;

  /* Shadow */
  --shadow-sm:0px 1px 4px 0px rgba(22,32,42,0.16);
  --shadow-md:0px 2px 8px 0px rgba(22,32,42,0.12);
  --shadow-lg:0px 8px 24px 0px rgba(22,32,42,0.12);
  --shadow-xl:0px 16px 48px -4px rgba(22,32,42,0.16);
  --shadow-up:0px -4px 8px -2px rgba(22,32,42,0.08);

  /* Motion */
  --motion-micro:100ms ease;
  --motion-short:200ms ease;
  --motion-medium-in:300ms ease-out;
  --motion-medium-out:300ms ease-in;
  --motion-long-in:400ms ease-out;
  --motion-long-out:400ms ease-in;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--text-body);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

.tabular { font-variant-numeric: tabular-nums; }

/* Mudra tokens cap at 700 (Bold) — override Tailwind CDN's 800-weight utility */
.font-extrabold, .font-black { font-weight: 700 !important; }

button { font-family: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--border-info);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  height: 40px; padding: 0 var(--space-16); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; line-height: 20px; border: none;
  transition: background var(--motion-short), transform var(--motion-micro), opacity var(--motion-short), border-color var(--motion-short);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--bg-primary); color: var(--text-inverted); }
.btn-primary:hover:not(:disabled) { background: var(--bg-primary-hover); }
.btn-primary:disabled { background: var(--bg-primary-disabled); cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text-body); border: 1px solid var(--border-default); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); }
.btn-secondary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-body); border: none; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); }
.btn-sm { height: 32px; padding: 0 var(--space-12); font-size: 12px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-12); border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; border: 1px solid var(--border-default);
  background: var(--bg-base); color: var(--text-body); cursor: pointer;
  transition: background var(--motion-short), color var(--motion-short), border-color var(--motion-short);
}
.chip.selected { background: var(--blue-100); color: #fff; border-color: var(--blue-100); }
.chip:hover:not(.selected) { background: var(--bg-hover); }

.badge { display:inline-flex; align-items:center; gap:4px; padding: 2px 10px; border-radius: var(--radius-2xs); font-size: 12px; font-weight: 700; }
.badge-new { background: var(--steel-20); color: var(--text-body); }
.badge-progress { background: var(--yellow-10); color: var(--text-warning); }
.badge-reinit { background: var(--royal-10); color: var(--text-info); }

/* ---------- Card ---------- */
.card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}

/* ---------- Top nav ---------- */
.topnav { background: var(--blue-160); height: 64px; display:flex; align-items:center; padding: 0 var(--space-24); gap: var(--space-24); }
.topnav .brand { display:flex; align-items:center; gap: var(--space-8); color: #fff; font-weight: 700; font-size: 18px; }
.topnav .search {
  flex:1; max-width: 640px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); display:flex; align-items:center; gap: var(--space-8); padding: 0 var(--space-16);
  color: rgba(255,255,255,0.6); font-size: 14px;
}
.topnav .user { display:flex; align-items:center; gap: var(--space-8); color:#fff; font-weight:700; font-size:14px; margin-left:auto; }
.avatar { width: 32px; height:32px; border-radius: var(--radius-full); background: var(--orange-100); color:#fff; display:flex; align-items:center; justify-content:center; font-weight: 700; font-size:13px; }

/* ---------- Screens ---------- */
.screen { display:none; }
.screen.active { display:block; }

/* ---------- Queue table ---------- */
.filter-pill {
  display:inline-flex; align-items:center; gap: var(--space-8); height: 40px; padding: 0 var(--space-16);
  border-radius: var(--radius-full); border: 1px solid var(--border-default); background: var(--bg-base);
  font-size: 14px; font-weight: 700; color: var(--text-body); cursor:pointer; transition: all var(--motion-short);
}
.filter-pill.active { background: var(--blue-100); color:#fff; border-color: var(--blue-100); }
.filter-pill:hover:not(.active) { background: var(--bg-hover); }

table.queue { width:100%; border-collapse: collapse; }
table.queue th {
  text-align:left; font-size: 12px; letter-spacing:0.05em; text-transform:uppercase; color: var(--text-subtext);
  background: var(--bg-hover); padding: var(--space-12) var(--space-16); font-weight:700;
}
table.queue td { padding: var(--space-16); font-size: 14px; color: var(--text-body); border-bottom: 1px solid var(--border-default); vertical-align: top; }
table.queue tbody tr { transition: background var(--motion-short); cursor:pointer; }
table.queue tbody tr:hover { background: var(--bg-hover); }

/* ---------- Stepper ---------- */
.stepper-item { display:flex; align-items:center; gap: var(--space-16); }
.stepper-circle {
  width: 36px; height:36px; border-radius: var(--radius-full); display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 14px; background: var(--steel-20); color: var(--text-subtext); flex-shrink:0;
  transition: background var(--motion-medium-in), color var(--motion-medium-in), transform var(--motion-medium-in);
}
.stepper-circle.current { background: var(--blue-100); color:#fff; }
.stepper-circle.done { background: var(--green-100); color:#fff; }
.stepper-circle.pop { animation: popIn 320ms ease-out; }
@keyframes popIn { 0%{ transform: scale(0.5); opacity:0;} 60%{ transform: scale(1.15);} 100%{ transform: scale(1); opacity:1;} }

.stepper-chevron { color: var(--steel-80); }
.stepper-item.disabled { opacity: 0.55; cursor: default; }
.stepper-item.clickable { cursor: pointer; }

/* ---------- Profile trigger banner ---------- */
.profile-trigger-card { background: var(--bg-error-light); border-radius: var(--radius-sm); padding: var(--space-16); }

/* ---------- Trigger cards ---------- */
.trigger-card {
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); margin-bottom: var(--space-16);
  transition: border-color var(--motion-short), box-shadow var(--motion-short);
  overflow: hidden;
}
.trigger-card.active-trigger { border-color: var(--border-primary); box-shadow: 0 0 0 1px var(--border-primary) inset; }
.trigger-card.reviewed { background: var(--bg-surface); }
.trigger-card { cursor: pointer; }
.trigger-card.preview-selected { box-shadow: 0 0 0 2px var(--border-info) inset; }
.trigger-card.active-trigger.preview-selected { box-shadow: 0 0 0 2px var(--border-info) inset, 0 0 0 1px var(--border-primary) inset; }
.trigger-body { padding: var(--space-16); }
.trigger-content { max-height: 2000px; overflow: hidden; transition: max-height var(--motion-medium-in), opacity var(--motion-medium-in), padding var(--motion-medium-in); }
.trigger-content.collapsed { max-height: 0; opacity: 0; padding-top:0; padding-bottom:0; }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 20px; right: 24px; z-index: 200; display:flex; flex-direction:column; gap: var(--space-12); }
.toast {
  display:flex; align-items:center; gap: var(--space-12); background: var(--bg-success-light); border: 1px solid var(--border-success);
  color: var(--text-success); padding: var(--space-12) var(--space-16); border-radius: var(--radius-sm); font-weight:700; font-size:14px;
  box-shadow: var(--shadow-md); transform: translateX(24px); opacity:0; transition: transform var(--motion-medium-in), opacity var(--motion-medium-in);
  min-width: 280px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.info { background: var(--bg-info-light); border-color: var(--border-info); color: var(--text-info); }

/* ---------- Document preview ---------- */
.doc-stage { background: var(--blue-160); position:relative; min-height: 560px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.doc-sheet {
  background:#fff; width: 806px; padding: 28px 32px; box-shadow: var(--shadow-lg); position:relative;
  font-size: 12px; color:#1a1a1a; transition: opacity var(--motion-medium-in), transform var(--motion-medium-in);
  border-radius: 2px;
}
.doc-sheet table { width:100%; border-collapse: collapse; font-size: 10.5px; margin-top:10px; }
.doc-sheet th, .doc-sheet td { text-align:left; padding: 4px 6px; border-bottom: 1px solid #eee; }
.doc-sheet th { color:#888; font-weight:700; }

.doc-fading-out { opacity: 0; transform: translateX(-16px); }
.doc-fading-in { opacity: 0; transform: translateX(16px); }

.highlight-region {
  position:absolute; cursor:pointer;
}
.highlight-region .tag {
  position:absolute; top:-22px; left:0; background: var(--red-100); color:#fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; white-space:nowrap; border-radius: 2px 2px 0 0;
}
.highlight-region .box {
  border: 2px solid var(--red-100); background: rgba(255,53,77,0.12); width:100%; height:100%;
  transition: background var(--motion-short);
}
.highlight-region:hover .box { background: rgba(255,53,77,0.22); }

.draw-box { position:absolute; border: 2px dashed var(--red-100); background: rgba(255,53,77,0.15); pointer-events:none; }

.stamp-wrap { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap: var(--space-12); pointer-events:none; }
.stamp-badge {
  width: 88px; height:88px; border-radius: var(--radius-full); background: var(--bg-success-light); border: 3px solid var(--green-100);
  display:flex; align-items:center; justify-content:center; color: var(--green-100);
  animation: stampIn 420ms cubic-bezier(.2,1.4,.4,1);
}
@keyframes stampIn { 0%{ transform: scale(0) rotate(-20deg); opacity:0;} 70%{ transform: scale(1.15) rotate(4deg); opacity:1;} 100%{ transform: scale(1) rotate(0);} }
.stamp-text {
  background: var(--green-100); color:#fff; font-weight: 700; font-size:14px; padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full); animation: fadeUp 380ms ease-out 120ms both;
}
@keyframes fadeUp { 0%{ opacity:0; transform: translateY(8px);} 100%{ opacity:1; transform: translateY(0);} }

/* ---------- Comment popover for highlight ---------- */
.comment-pop {
  position:absolute; background: var(--blue-160); color:#fff; border-radius: var(--radius-sm); padding: var(--space-12);
  box-shadow: var(--shadow-lg); z-index: 40; width: 280px; animation: popScale 220ms ease-out;
}
@keyframes popScale { 0%{ opacity:0; transform: scale(0.9);} 100%{ opacity:1; transform: scale(1);} }
.comment-pop textarea {
  width:100%; background: transparent; border:none; color:#fff; font-size: 13px; resize:none; outline:none; font-family:inherit;
}
.comment-pop textarea::placeholder { color: rgba(255,255,255,0.5); }
.comment-pop .send-btn {
  width:32px; height:32px; border-radius: var(--radius-full); background: var(--orange-100); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; transition: background var(--motion-short), transform var(--motion-micro);
}
.comment-pop .send-btn:hover:not(:disabled) { background: var(--orange-120); }
.comment-pop .send-btn:active:not(:disabled) { transform: scale(0.9); }
.comment-pop .send-btn:disabled { background: var(--bg-disabled); color: var(--icon-disabled); cursor: not-allowed; }

/* ---------- Sampling / Screening / Query details ---------- */
.details-panel { animation: slideDown 320ms ease-out; overflow:hidden; }
@keyframes slideDown { 0%{ opacity:0; transform: translateY(-8px);} 100%{ opacity:1; transform: translateY(0);} }

/* ---------- Recommended chip ---------- */
.recommended-chip {
  position:absolute; top:-11px; left: 12px; background: var(--lavender-10); color: var(--text-discovery);
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-full); display:flex; align-items:center; gap:4px;
  animation: fadeUp 300ms ease-out;
}

/* ---------- Upcoming doc strip ---------- */
.upcoming-card {
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: var(--space-16); background: var(--bg-base);
  transition: border-color var(--motion-short), box-shadow var(--motion-short);
}
.upcoming-card:hover { box-shadow: var(--shadow-sm); border-color: var(--steel-80); }

/* ---------- Empty state ---------- */
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; padding: var(--space-64) 0; gap: var(--space-16); }
.empty-illustration {
  width: 120px; height:120px; border-radius: var(--radius-full); background: var(--bg-success-light);
  display:flex; align-items:center; justify-content:center; color: var(--green-100);
  animation: stampIn 500ms cubic-bezier(.2,1.4,.4,1);
}

/* ---------- Compare modal ---------- */
#compare-modal { position: fixed; inset:0; background: var(--blue-160); z-index:150; display:none; flex-direction:column; }
#compare-modal.show { display:flex; animation: fadeIn 300ms ease-out; }
@keyframes fadeIn { from{ opacity:0;} to{ opacity:1;} }
.compare-pane { flex:1; display:flex; flex-direction:column; min-width:0; }
.compare-head { height: 64px; display:flex; align-items:center; padding: 0 var(--space-24); background: var(--steel-20); gap: var(--space-8); }
.compare-body { flex:1; overflow:auto; display:flex; align-items:flex-start; justify-content:center; padding: var(--space-32); }

/* ---------- Dropdown ---------- */
.dropdown-menu {
  position:absolute; top: calc(100% + 4px); left:0; background:#fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 260px; z-index:60; overflow:hidden; animation: popScale 180ms ease-out; border: 1px solid var(--border-default);
}
.dropdown-menu.align-right { left:auto; right:0; }
.dropdown-menu button { display:flex; align-items:center; gap: var(--space-8); width:100%; text-align:left; padding: var(--space-12) var(--space-16); background:none; border:none; font-size:14px; color: var(--text-body); border-bottom: 1px solid var(--border-default); }
.dropdown-menu button:last-child { border-bottom:none; }
.dropdown-menu button:hover { background: var(--bg-hover); }

/* ---------- Misc ---------- */
.kbd { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 4px; border-radius:4px; background: var(--steel-20); border:1px solid var(--border-default); font-size:11px; font-weight:700; color: var(--text-subtext); }

.fade-slide-enter { animation: fadeSlideIn 320ms ease-out; }
@keyframes fadeSlideIn { from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:translateY(0);} }

.pulse-once { animation: pulseOnce 900ms ease-out; }
@keyframes pulseOnce { 0%{ box-shadow: 0 0 0 0 rgba(242,104,65,0.5);} 100%{ box-shadow: 0 0 0 10px rgba(242,104,65,0);} }

.scrollbar-thin::-webkit-scrollbar { width:8px; height:8px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--steel-60); border-radius: 8px; }

/* ============================================================
   Manager prototype — additive components (shared tokens above)
   ============================================================ */

/* ---------- Side drawer (right-anchored panel over a dim scrim) ---------- */
#scrim {
  position: fixed; inset:0; background: rgba(22,32,42,0.45); z-index: 140;
  display:none; opacity:0; transition: opacity var(--motion-medium-in);
}
#scrim.show { display:block; opacity:1; }
#side-drawer {
  position: fixed; top:0; right:0; height:100%; width: 480px; background: var(--bg-base);
  box-shadow: var(--shadow-xl); z-index: 145; transform: translateX(100%);
  transition: transform var(--motion-long-in); display:flex; flex-direction:column;
}
#side-drawer.show { transform: translateX(0); }
.drawer-head { padding: var(--space-24); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border-default); }
.drawer-body { padding: var(--space-24); overflow-y:auto; flex:1; }
.drawer-foot { padding: var(--space-16) var(--space-24); border-top:1px solid var(--border-default); display:flex; justify-content:flex-end; gap: var(--space-12); background: var(--bg-surface); }

/* ---------- Success drawer state ---------- */
.success-badge {
  width: 88px; height:88px; border-radius: var(--radius-full); background: var(--bg-success-light); border: 3px solid var(--green-100);
  display:flex; align-items:center; justify-content:center; color: var(--green-100); margin: 0 auto var(--space-16);
  animation: stampIn 420ms cubic-bezier(.2,1.4,.4,1);
}
.success-badge.rejected { background: var(--bg-error-light); border-color: var(--red-100); color: var(--red-100); }

/* ---------- Trigger-inspection side panel (read-only Preview) ---------- */
#trigger-scrim {
  position: fixed; inset:0; background: rgba(0,0,0,0.6); z-index: 148;
  display:none; opacity:0; transition: opacity var(--motion-medium-in);
}
#trigger-scrim.show { display:block; opacity:1; }
#trigger-panel {
  position: fixed; top:0; right:0; left:48px; height:100%; background: var(--bg-base);
  box-shadow: var(--shadow-xl); z-index: 150; transform: translateX(100%);
  transition: transform var(--motion-long-in); display:flex; flex-direction:column;
}
#trigger-panel.show { transform: translateX(0); }

/* ---------- Case Details / History panel (wide, 48px left gap — opened from "More" menu) ---------- */
#more-scrim {
  position: fixed; inset:0; background: rgba(0,0,0,0.6); z-index: 148;
  display:none; opacity:0; transition: opacity var(--motion-medium-in);
}
#more-scrim.show { display:block; opacity:1; }
#more-panel {
  position: fixed; top:0; right:0; left:48px; height:100%; background: var(--bg-base);
  box-shadow: var(--shadow-xl); z-index: 150; transform: translateX(100%);
  transition: transform var(--motion-long-in); display:flex; flex-direction:column;
}
#more-panel.show { transform: translateX(0); }

/* ---------- Document list (left pane, Documents tab) ---------- */
.doc-row {
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: var(--space-12) var(--space-16);
  margin-bottom: var(--space-8); cursor:pointer; transition: border-color var(--motion-short), background var(--motion-short);
  background: var(--bg-base);
}
.doc-row:hover { background: var(--bg-hover); }
.doc-row.selected { border-color: var(--text-heading); box-shadow: 0 0 0 1px var(--text-heading) inset; background: var(--bg-base); }
.doc-row.deleted { opacity: 0.55; }
.doc-row.na { border-style: dashed; }
.doc-group-divider { border-top:1px solid var(--border-default); margin: var(--space-16) 0 0; }

.verdict-badge { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-full); }
.verdict-suspectfraud { background: var(--bg-warning-light); color: var(--text-warning); }
.verdict-refer { background: var(--bg-info-light); color: var(--text-info); }
.verdict-negative { background: var(--bg-error-light); color: var(--text-error); }
.verdict-positive { background: var(--bg-success-light); color: var(--text-success); }
.verdict-screen { background: var(--bg-success-light); color: var(--text-success); }

.return-tag { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-discovery-light); color: var(--text-discovery); }

.group-label { font-weight: 700; color: var(--text-heading); font-size:16px; margin: var(--space-16) 0 var(--space-8); }

/* ---------- Applicant cards (Case Details tab) ---------- */
.applicant-card {
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: var(--space-16); cursor:pointer;
  margin-bottom: var(--space-12); transition: border-color var(--motion-short), background var(--motion-short);
}
.applicant-card.selected { border-color: var(--blue-100); background: var(--blue-10); }
.applicant-card:hover:not(.selected) { background: var(--bg-hover); }

.section-band { display:flex; align-items:center; gap: var(--space-8); padding: var(--space-12) var(--space-16); font-weight: 700; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.section-band.peach { background: var(--orange-10); color: var(--orange-140); }
.section-band.lavender { background: var(--lavender-10); color: var(--text-discovery); }
.section-band.info { background: var(--bg-info-light); color: var(--text-info); }

/* Document-detail sub-section headings (Scrutiny/Verification/Support) — no fill, orange text+icon */
.doc-section-heading { display:flex; align-items:center; gap: var(--space-8); padding: var(--space-8) 0; font-weight: 700; color: var(--text-primary); }
.doc-section-heading i { color: var(--icon-primary); }

/* ---------- Hunter FARE risk scale ---------- */
.risk-scale { display:flex; height: 12px; border-radius: var(--radius-full); overflow:hidden; margin: var(--space-12) 0; }
.risk-scale span { flex:1; }
.risk-scale-labels { display:flex; justify-content:space-between; font-size:11px; color: var(--text-subtext); }

/* ---------- History timeline ---------- */
.timeline-item { position:relative; padding-left: var(--space-24); padding-bottom: var(--space-24); border-left: 2px solid var(--border-default); margin-left: var(--space-8); }
.timeline-item:last-child { border-left-color: transparent; padding-bottom:0; }
.timeline-dot { position:absolute; left:-7px; top:0; width:12px; height:12px; border-radius:50%; background: var(--steel-80); border: 2px solid var(--bg-base); }
.timeline-dot.success { background: var(--green-100); }
.timeline-dot.warning { background: var(--yellow-100); }
.timeline-dot.error { background: var(--red-100); }
.timeline-dot.info { background: var(--royal-100); }
.timeline-dot.neutral { background: var(--steel-100); }

/* ---------- Checkbox row (return-case confirm) ---------- */
.check-row { display:flex; align-items:flex-start; gap: var(--space-12); padding: var(--space-12) 0; border-bottom: 1px solid var(--border-default); }
.check-row:last-child { border-bottom:none; }
.check-row input[type="checkbox"] { width:20px; height:20px; margin-top:2px; accent-color: var(--orange-100); }

/* ---------- Tab loading states (skeleton shimmer + gif loader) ---------- */
.skeleton-wave { position:relative; background: rgba(0,0,0,0.08); border-radius: var(--radius-sm); overflow:hidden; }
.skeleton-wave::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  transform: translateX(-100%);
  animation: skeletonShine 1.4s ease-in-out infinite;
}
@keyframes skeletonShine { 100% { transform: translateX(100%); } }

.tab-loading-gif { display:flex; flex-direction:column; align-items:center; justify-content:center; gap: var(--space-12); }
.tab-loading-gif img { display:block; object-fit:contain; }
.tab-loading-gif .label { color: var(--text-subtext); font-size:18px; }

/* ---------- Queue / case-list loading state (shared: Sampler, Agency, Manager) ---------- */
.queue-filters-loading .skeleton-wave { height:40px; border-radius: var(--radius-full); }
.queue-loading-box { display:flex; align-items:center; justify-content:center; min-height:420px; }
.tab-loading-gif.inverted .label { color: var(--text-inverted); }
