* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1220;
  --panel: #111b2f;
  --panel-2: #15233b;
  --text: #eef4ff;
  --muted: #9fb0c8;
  --line: rgba(255,255,255,0.12);
  --accent: #35c2ff;
  --accent-2: #7ee787;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(0,0,0,0.28);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(53,194,255,0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(126,231,135,0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 48px 0 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  max-width: 850px;
}

.subhead {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 20px 0 0;
}

.status-card {
  min-width: 240px;
  background: rgba(17,27,47,0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-card small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 99px;
  display: inline-block;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(255,209,102,0.12);
}

.status-dot.ok {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(126,231,135,0.12);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255,107,107,0.12);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 8px 0 18px;
}

.summary-card {
  background: rgba(17,27,47,0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  background: rgba(17,27,47,0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  position: sticky;
  top: 12px;
  z-index: 5;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 7px;
}

input,
select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 12px;
  font-size: 0.95rem;
}

option {
  color: #0b1220;
}

.button,
.ghost-button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  height: 44px;
  padding: 0 16px;
  font-weight: 700;
}

.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  align-self: end;
}

.ghost-button {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--line);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 28px 0 14px;
}

.results-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.results-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.opportunities-list {
  display: grid;
  gap: 14px;
  padding-bottom: 40px;
}

.opportunity-card {
  background: rgba(17,27,47,0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.card-title {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.35;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.badge {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.78rem;
}

.badge.score-high {
  color: #07111f;
  background: var(--accent-2);
  border-color: transparent;
  font-weight: 800;
}

.badge.score-mid {
  color: #07111f;
  background: var(--warning);
  border-color: transparent;
  font-weight: 800;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.meta-item {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.meta-item strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.description {
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 42px 20px;
  color: var(--muted);
}

.hidden {
  display: none;
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  font-size: 0.9rem;
}



.system-status-panel {
  background: rgba(17,27,47,0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}

.system-status-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.section-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 5px;
}

.system-status-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.status-pill {
  color: var(--accent-2);
  background: rgba(126,231,135,0.10);
  border: 1px solid rgba(126,231,135,0.20);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.system-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.status-metric {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.status-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 7px;
}

.status-metric strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .button {
    align-self: auto;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .results-header,
  .card-top {
    flex-direction: column;
    align-items: stretch;
  }
}


.recommendation {
  font-weight: 800;
}

.recommendation-high {
  background: var(--accent-2);
  color: #07111f;
  border-color: transparent;
}

.recommendation-review {
  background: var(--warning);
  color: #07111f;
  border-color: transparent;
}

.recommendation-low {
  background: rgba(255,255,255,0.08);
  color: var(--warning);
}

.recommendation-archive {
  background: rgba(255,107,107,0.18);
  color: #ffb4b4;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.intel-panel {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
}

.intel-summary {
  grid-row: span 2;
}

.intel-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.intel-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  font-size: 0.94rem;
}

.red-flag-list {
  margin: 0;
  padding-left: 18px;
  color: #ffcfcc;
  line-height: 1.45;
  font-size: 0.92rem;
}

.no-flags {
  color: var(--accent-2);
  font-size: 0.92rem;
}



.system-status-panel {
  background: rgba(17,27,47,0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}

.system-status-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.section-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 5px;
}

.system-status-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.status-pill {
  color: var(--accent-2);
  background: rgba(126,231,135,0.10);
  border: 1px solid rgba(126,231,135,0.20);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.system-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.status-metric {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.status-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 7px;
}

.status-metric strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .intelligence-grid {
    grid-template-columns: 1fr;
  }

  .intel-summary {
    grid-row: auto;
  }
}


/* Polished card update */
.source-button {
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
}

.recommendation-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 14px;
}

.rec-filter {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.rec-filter span {
  color: var(--muted);
  margin-left: 6px;
}

.rec-filter.active {
  background: linear-gradient(135deg, rgba(53,194,255,0.28), rgba(126,231,135,0.22));
  border-color: rgba(126,231,135,0.45);
}

.raw-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}

.raw-details summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
}

.raw-details summary:hover {
  color: var(--accent);
}

.raw-details .description {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  display: block;
  max-height: 180px;
  overflow: auto;
  -webkit-line-clamp: unset;
}

@media (max-width: 600px) {
  .source-button {
    width: 100%;
  }
}

.badge.due-badge {
  font-weight: 800;
}

.due-past {
  background: rgba(255,107,107,0.22);
  border-color: rgba(255,107,107,0.35);
  color: #ffb4b4;
}

.due-today,
.due-soon {
  background: rgba(255,214,102,0.22);
  border-color: rgba(255,214,102,0.45);
  color: var(--warning);
}

.due-week {
  background: rgba(53,194,255,0.15);
  border-color: rgba(53,194,255,0.35);
  color: var(--accent);
}

.recommendation-overridden {
  color: var(--muted);
  border-style: dashed;
}


.admin-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-actions span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 4px;
}

.admin-action-button {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-action-button:hover {
  border-color: rgba(126,231,135,0.45);
  background: rgba(126,231,135,0.12);
}

.admin-action-button.danger:hover {
  border-color: rgba(255,107,107,0.45);
  background: rgba(255,107,107,0.14);
}

.admin-action-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


.status-metric-wide {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .status-metric-wide {
    grid-column: span 1;
  }
}


/* Batch 2: admin review and sorting */
.sort-control {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.sort-control select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.admin-note-input {
  min-width: 220px;
  flex: 1;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  outline: none;
}

.admin-note-input::placeholder {
  color: var(--muted);
}

@media (max-width: 700px) {
  .sort-control {
    width: 100%;
    margin-left: 0;
  }

  .sort-control select,
  .admin-note-input {
    width: 100%;
  }
}

/* Batch 3: source health dashboard */
.source-health-panel {
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

.source-health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.source-health-header h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.source-health-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  white-space: nowrap;
}

.source-health-good {
  color: #7ee787;
  background: rgba(126,231,135,0.12);
  border-color: rgba(126,231,135,0.28);
}

.source-health-warn {
  color: #ffd166;
  background: rgba(255,209,102,0.12);
  border-color: rgba(255,209,102,0.28);
}

.source-health-bad {
  color: #ffb4b4;
  background: rgba(255,107,107,0.12);
  border-color: rgba(255,107,107,0.28);
}

.source-health-neutral {
  color: var(--muted);
}

.source-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.source-failures {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  border-radius: 16px;
  padding: 14px;
}

.source-failures > span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 800;
}

.source-failures ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.source-failures li {
  display: grid;
  gap: 3px;
}

.source-failures strong {
  color: var(--text);
  font-size: 0.9rem;
}

.source-failures em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .source-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .source-health-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .source-health-grid {
    grid-template-columns: 1fr;
  }
}

/* Batch 4: detail view + review workflow polish */
.card-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-button {
  cursor: pointer;
}

.duplicate-badge {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.28);
}

.intel-admin-note {
  border-color: rgba(86, 214, 255, 0.22);
  background: rgba(86, 214, 255, 0.055);
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

.detail-modal.hidden {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 24, 0.78);
  backdrop-filter: blur(8px);
}

.detail-modal-panel {
  position: relative;
  width: min(980px, 96vw);
  max-height: 88vh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(17, 28, 50, 0.98), rgba(10, 18, 34, 0.98));
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.detail-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.detail-header {
  padding-right: 42px;
  margin-bottom: 18px;
}

.detail-header h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.detail-badges {
  margin-top: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
}

.detail-section h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.detail-section p {
  margin: 0;
  line-height: 1.55;
  color: var(--text);
}

.two-column-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.raw-detail-section p {
  max-height: 220px;
  overflow: auto;
  color: var(--muted);
}

.detail-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .detail-modal {
    padding: 12px;
  }

  .detail-modal-panel {
    padding: 20px;
    max-height: 92vh;
  }

  .detail-grid,
  .two-column-detail {
    grid-template-columns: 1fr;
  }

  .card-action-row {
    justify-content: flex-start;
  }
}


/* Batch 5: source health detail view */
.source-activity-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}

.source-activity-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.source-activity-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.source-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.source-activity-row strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.source-activity-row span {
  white-space: nowrap;
}

.source-status-pill {
  border-radius: 999px;
  padding: 6px 9px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.12);
}

.source-status-success {
  color: #7ee787;
  background: rgba(126,231,135,0.1);
  border-color: rgba(126,231,135,0.25);
}

.source-status-nomatch {
  color: #9fb3c8;
  background: rgba(159,179,200,0.1);
  border-color: rgba(159,179,200,0.2);
}

.source-status-skipped,
.source-status-failed {
  color: #ffd166;
  background: rgba(255,209,102,0.1);
  border-color: rgba(255,209,102,0.22);
}

@media (max-width: 850px) {
  .source-activity-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .source-activity-row span {
    white-space: normal;
  }
}

/* Batch 14: parser intelligence and document awareness */
.platform-badge {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

.type-badge {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.28);
}

.docs-badge {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.login-badge,
.parser-warning {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.28);
}

.parser-ok {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.22);
}

.source-intel-panel p {
  margin: 4px 0 8px;
}

.document-link-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.document-link-list li {
  margin: 6px 0;
}

.document-link-list a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.document-link-list a:hover {
  text-decoration: underline;
}

/* Batch 16-18: document intake foundation */
.document-intake-panel {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
}
.document-watchlist summary {
  cursor: pointer;
  font-weight: 700;
}
.document-watch-row {
  align-items: center;
}
.compact-detail {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  white-space: nowrap;
}
.source-empty-note {
  color: #94a3b8;
  margin: 0.75rem 0 0;
}
.source-neutral {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}
.source-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}


/* Batch 22-24 document processing */
.document-processing-list {
  display: grid;
  gap: 0.75rem;
}

.document-processing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.45);
}

.document-processing-row a {
  color: #dbeafe;
  font-weight: 700;
}

.document-processing-row span,
.document-processing-row em {
  display: block;
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.document-processing-row p {
  margin: 0.45rem 0 0;
  color: #cbd5e1;
}

.doc-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.doc-status-good {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.doc-status-pending {
  background: rgba(250, 204, 21, 0.13);
  color: #fde68a;
}

.doc-status-warning {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.doc-status-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

/* Batch 25-27: RFP risk extraction display */
.doc-risk-line {
  margin-top: 0.55rem;
}
.risk-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.risk-high {
  background: rgba(239, 68, 68, 0.13);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}
.risk-medium {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}
.risk-low {
  background: rgba(59, 130, 246, 0.13);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.35);
}
.risk-neutral {
  background: rgba(148, 163, 184, 0.13);
  color: #cbd5e1;
}
.doc-risk-summary {
  margin: 0.45rem 0 0.25rem;
  color: #dbeafe;
}
.risk-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0;
}
.risk-chip {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.doc-risk-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #cbd5e1;
}
