:root {
  --navy-950: #0f172a;
  --navy-900: #111827;
  --navy-850: #162032;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --line: #dbe4ef;
  --muted: #64748b;
  --text: #172033;
  --accent: #0ea5e9;
  --accent-2: #38bdf8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --amber: #ca8a04;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.11), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, #edf3fa 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94)),
    radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.22), transparent 28rem);
}

.login-shell {
  width: min(1040px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 430px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
}

.login-brand {
  position: relative;
  padding: 46px;
  color: #e5edf7;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.86)),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.06) 0 1px, transparent 1px 96px);
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: auto 46px 46px 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #e0f2fe;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.45);
}

.login-brand h1 {
  max-width: 620px;
  margin: 42px 0 16px;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: 0;
}

.login-brand p {
  max-width: 540px;
  color: #b7c4d8;
  font-size: 15px;
  line-height: 1.65;
}

.login-metrics {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 84px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.login-metric {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.login-metric strong {
  display: block;
  color: #f8fafc;
  font-size: 18px;
}

.login-metric span {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  background: #f8fafc;
}

.login-card-title {
  margin-bottom: 26px;
}

.login-card-title h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 720;
}

.login-card-title p {
  margin: 0;
  color: var(--muted);
}

.login-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7e2ef;
  border-radius: 13px;
  background: #eef4fb;
}

.login-method-tabs .nav-item {
  min-width: 0;
}

.login-method-tabs .nav-link {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  color: #475569;
  font-weight: 700;
  letter-spacing: 0;
}

.login-method-tabs .nav-link.active {
  color: #fff;
  background: #0ea5e9;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.22);
}

.login-method-content {
  min-height: 232px;
}

.form-control,
.form-select {
  border: 1px solid #ccd8e7;
  border-radius: 10px;
  color: #111827;
  background-color: #fff;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(14, 165, 233, 0.9);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.btn {
  border-radius: 9px;
  font-weight: 650;
}

.btn-primary {
  border-color: #0284c7;
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.22);
}

.btn-primary:hover {
  border-color: #0369a1;
  background: linear-gradient(180deg, #0284c7, #0369a1);
}

.btn-outline-primary {
  border-color: rgba(14, 165, 233, 0.55);
  color: #0369a1;
}

.btn-outline-primary:hover {
  border-color: #0284c7;
  background: #0284c7;
}

.app-layout {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: 270px;
  display: flex;
  flex-direction: column;
  color: #d8e4f2;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98)),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.sidebar-brand {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.sidebar-brand .brand-title {
  display: block;
  font-weight: 760;
  line-height: 1.15;
  color: #f8fafc;
}

.sidebar-brand .brand-subtitle {
  color: #91a4bb;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 12px;
  overflow-y: auto;
}

.sidebar-section {
  padding: 14px 12px 8px;
  color: #7f91a8;
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.nav-item-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 9px 12px;
  margin: 2px 0;
  border-radius: 10px;
  color: #b8c7da;
  transition: 160ms ease;
}

.nav-item-link i {
  width: 18px;
  color: #7dd3fc;
  text-align: center;
}

.nav-item-link:hover,
.nav-item-link.active {
  color: #f8fafc;
  background: rgba(14, 165, 233, 0.13);
  box-shadow: inset 3px 0 0 #38bdf8;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.system-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  border-radius: 11px;
  background: rgba(22, 163, 74, 0.08);
  color: #c9f7d8;
  font-size: 12px;
}

.content-shell {
  min-height: 100vh;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
}

.topbar-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 760;
}

.topbar-title span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e0f2fe;
  background: #0f172a;
  font-weight: 760;
}

.page-body {
  flex: 1;
  padding: 24px 28px 16px;
}

.page-help-launcher {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.page-header-row,
.page-action-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-title,
.page-action-bar h2 {
  margin: 0;
  color: #0f172a;
  font-size: 21px;
  font-weight: 780;
}

.page-subtitle,
.page-action-bar p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.page-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.page-header-actions .btn,
.page-action-bar .btn {
  flex: 0 0 auto;
}

.page-help-offcanvas {
  width: min(70vw, 1100px) !important;
  min-width: 520px;
  max-width: none;
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
}

.page-help-offcanvas.page-help-expanded {
  width: 95vw !important;
  max-width: none !important;
}

.page-help-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
  background: transparent;
}

.page-help-resize-handle:hover {
  background: rgba(20, 100, 200, 0.12);
}

body.page-help-resizing {
  cursor: ew-resize;
  user-select: none;
}

.page-help-offcanvas .offcanvas-body {
  overflow-y: auto;
}

.page-help-drawer .offcanvas-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.page-help-drawer .offcanvas-title {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 780;
}

.page-help-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-help-description {
  color: #475569;
  line-height: 1.6;
}

.page-help-section {
  padding: 18px 0;
  border-bottom: 1px solid #e7edf5;
}

.page-help-section:first-child {
  padding-top: 0;
}

.page-help-section:last-child {
  border-bottom: 0;
}

.page-help-section h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 760;
}

.page-help-section p,
.page-help-section li {
  color: #475569;
  line-height: 1.6;
}

.page-help-code {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #e2e8f0;
  background: #0f172a;
  font-size: 12px;
  line-height: 1.55;
}

.page-help-table {
  border: 1px solid var(--line);
}

.page-help-table th {
  color: #475569;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.page-help-table td {
  color: #475569;
  border-color: #e7edf5;
  font-size: 12px;
}

.detail-grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 768px) {
  .page-header-row,
  .page-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .page-header-actions .btn,
  .page-action-bar .btn {
    width: 100%;
  }

  .page-help-offcanvas {
    width: 100vw !important;
    min-width: 0;
    max-width: none;
  }

  .page-help-resize-handle {
    display: none;
  }
}

.page-footer {
  padding: 14px 28px 22px;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.screening-console,
.table-panel {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  position: relative;
  min-height: 122px;
  padding: 18px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.metric-grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-domain {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.aml-metric::before {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.aml-risk-metric::before {
  background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.client-metric {
  border-color: rgba(79, 70, 229, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.95)),
    linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent);
}

.client-metric::before {
  background: linear-gradient(90deg, #14b8a6, #4f46e5);
}

.client-metric .metric-icon {
  color: #3730a3;
  background: #e0e7ff;
}

.client-metric .metric-domain {
  color: #3730a3;
  background: #e0e7ff;
}

.internal-metric {
  border-color: rgba(15, 118, 110, 0.24);
}

.internal-metric::before {
  background: linear-gradient(90deg, #0f766e, #64748b);
}

.internal-metric .metric-icon {
  color: #0f766e;
  background: #ccfbf1;
}

.metric-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0369a1;
  background: #e0f2fe;
}

.metric-label {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 780;
  line-height: 1;
}

.metric-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.panel {
  padding: 18px;
}

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

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
}

.panel-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.readiness-card,
.mini-feature-card,
.source-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.readiness-card i,
.mini-feature-card i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #075985;
  background: #e0f2fe;
}

.readiness-card strong,
.mini-feature-card strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
}

.readiness-card span,
.mini-feature-card span,
.source-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.screening-hero {
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.95)),
    linear-gradient(90deg, rgba(14, 165, 233, 0.08), transparent);
}

.screening-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: center;
}

.screening-hero h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  font-weight: 780;
}

.screening-hero p {
  max-width: 780px;
  color: #475569;
  line-height: 1.6;
}

.hero-status-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #cde3f5;
  border-radius: 12px;
  background: #fff;
}

.hero-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e7edf5;
}

.hero-status-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-status-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-status-row strong {
  color: #0f172a;
}

.mini-feature-grid {
  margin-bottom: 16px;
}

.step-flow,
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workflow-strip.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-item,
.workflow-strip > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.step-item span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: #0369a1;
  font-weight: 780;
}

.step-item strong,
.workflow-strip strong {
  display: block;
  color: #0f172a;
}

.step-item small,
.workflow-strip span {
  color: var(--muted);
  font-size: 12px;
}

.screening-console {
  padding: 22px;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    linear-gradient(90deg, rgba(14, 165, 233, 0.06), transparent);
}

.screening-search-panel {
  padding: 0;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.05));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screening-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.screening-card-header p {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
}

.screening-card-badges {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 420px;
}

.screening-compact-form {
  margin: 0;
  padding: 20px 22px 22px;
}

.screening-primary-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(360px, 1.55fr) minmax(240px, 0.7fr);
  gap: 14px;
  align-items: end;
}

.screening-field {
  min-width: 0;
}

.screening-name-input {
  min-height: 48px;
  padding-left: 46px;
  font-size: 16px;
  font-weight: 650;
}

.screening-support-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.screening-section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.screening-section-label span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.screening-section-label small {
  color: var(--muted);
  font-weight: 650;
}

.screening-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.screening-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.screening-form-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.screening-threshold-number {
  width: 92px;
  text-align: right;
}

.screening-action-box {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.screening-action-box .btn {
  min-width: 132px;
}

.screening-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.option-b-shell {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: end;
}

.grid-3 .name-field,
.grid-3 .score-field {
  grid-column: span 1;
}

.grid-3 .actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

.client-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.client-search-form .form-control {
  min-height: 52px;
  padding-left: 46px;
  font-size: 16px;
}

.client-search-form .btn {
  min-width: 170px;
  min-height: 52px;
}

.client-search-options {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #475569;
  font-weight: 650;
}

.client-snippet mark {
  padding: 1px 4px;
  border-radius: 4px;
  color: #0f172a;
  background: #bae6fd;
}

.contact-cell {
  display: grid;
  gap: 4px;
  max-width: 230px;
}

.contact-cell strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-cell small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-box .form-control {
  min-height: 52px;
  padding-left: 46px;
  font-size: 16px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 50%;
  color: #64748b;
  transform: translateY(-50%);
}

.search-box .btn {
  min-width: 158px;
  min-height: 52px;
}

.table-panel {
  overflow: hidden;
}

.table-panel .table {
  margin: 0;
}

.table-panel th {
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.table-panel td {
  vertical-align: middle;
  border-color: #e7edf5;
}

.compact-table {
  font-size: 13px;
}

.compact-table th {
  font-size: 10px;
}

.compact-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.table-hover > tbody > tr:hover > * {
  background: #f8fbff;
}

.entity-name {
  font-weight: 720;
  color: #111827;
}

.entity-subtext {
  color: var(--muted);
  font-size: 12px;
}

.score-meter {
  width: 120px;
}

.score-meter .progress {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
}

.score-meter .progress-bar {
  background: linear-gradient(90deg, #0ea5e9, #0369a1);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.risk-critical,
.risk-error,
.status-failed,
.status-down {
  color: #fee2e2;
  background: #b91c1c;
}

.risk-high,
.status-partial,
.status-escalated {
  color: #fff7ed;
  background: #ea580c;
}

.risk-medium,
.status-under-review {
  color: #422006;
  background: #facc15;
}

.status-running {
  color: #e0f2fe;
  background: #0284c7;
}

.risk-low,
.risk-clear,
.status-success,
.status-up,
.status-available,
.status-approved,
.status-closed,
.status-confirmed-match {
  color: #dcfce7;
  background: #15803d;
}

.status-open,
.status-pending {
  color: #e0f2fe;
  background: #0369a1;
}

.status-disabled,
.status-unknown,
.status-not_configured,
.status-not_imported,
.status-not-imported,
.status-missing,
.status-inactive,
.status-rejected,
.status-false-positive {
  color: #f8fafc;
  background: #64748b;
}

.status-configured {
  color: #e0f2fe;
  background: #0369a1;
}

.status-warning {
  color: #422006;
  background: #facc15;
}

.badge-subtle {
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #dbe4ef;
  font-weight: 680;
}

.success-state {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
  box-shadow: var(--shadow-sm);
}

.success-state i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #dcfce7;
  background: #15803d;
}

.empty-panel {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-bar-compact {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 240px) auto;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 160px;
  padding: 8px 2px 0;
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bar-fill {
  width: 100%;
  min-height: 5px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #38bdf8, #0369a1);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.2);
}

.bar-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 10px;
}

.stack-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.stack-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #0369a1);
}

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

.detail-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.detail-tile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-section {
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.settings-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.setting-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.setting-card label {
  font-weight: 720;
}

.setting-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.expected-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  margin: 0 6px 6px 0;
  border: 1px solid #cde3f5;
  border-radius: 999px;
  color: #075985;
  background: #f0f9ff;
  font-weight: 650;
}

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

.source-card {
  display: flex;
  flex-direction: column;
}

.source-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.source-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 760;
}

.source-card-header span:not(.badge-soft) {
  color: var(--muted);
  font-size: 12px;
}

.source-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.source-metrics div,
.detail-note {
  padding: 10px;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  background: #f8fafc;
}

.source-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.source-metrics strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 13px;
}

.status-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.internal-import-panel {
  border-color: rgba(15, 118, 110, 0.22);
}

.modal-content {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.offcanvas.app-sidebar-mobile {
  width: 270px;
  color: #d8e4f2;
  background: var(--navy-950);
}

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

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

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

  .readiness-grid,
  .mini-feature-grid,
  .source-grid,
  .step-flow,
  .workflow-strip,
  .workflow-strip.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screening-hero-grid {
    grid-template-columns: 1fr;
  }

  .screening-card-header {
    flex-direction: column;
  }

  .screening-card-badges {
    justify-content: flex-start;
    max-width: none;
  }

  .screening-primary-grid {
    grid-template-columns: minmax(140px, 0.5fr) minmax(300px, 1.5fr);
  }

  .screening-primary-grid .screening-field:last-child {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 991.98px) {
  .content-shell {
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
  }

  .page-body {
    padding: 18px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    display: none;
  }

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

  .screening-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .login-method-tabs {
    grid-template-columns: 1fr;
  }

  .screening-primary-grid,
  .screening-support-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .screening-primary-grid .screening-field:last-child {
    grid-column: auto;
  }

  .screening-section-label,
  .screening-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .screening-action-box {
    justify-content: stretch;
  }

  .screening-action-box .btn {
    flex: 1 1 0;
  }

  .metric-grid,
  .filter-bar,
  .filter-bar-compact,
  .detail-grid,
  .settings-grid,
  .readiness-grid,
  .mini-feature-grid,
  .source-grid,
  .step-flow,
  .workflow-strip,
  .workflow-strip.compact,
  .client-search-form,
  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box .btn {
    width: 100%;
  }

  .topbar-title span {
    display: none;
  }

  .user-pill .user-meta {
    display: none;
  }
}
