/* Shared screening shell. Theme changes color only, never layout or form state. */
@font-face {
  font-family: "Inter UI";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root, html[data-ui-mode="light"], body[data-ui-mode="light"] {
  --font-ui: "Inter UI", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: #00afa0;
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #fff;
  --panel-2: #f8fafc;
  --line: #e3e7ed;
  --line-strong: #cbd3df;
  --text: #172b4d;
  --heading: #10294d;
  --dim: #667085;
  --muted: #7a8699;
  --accent: #10294d;
  --accent-dim: #f1f4f8;
  --accent-ink: #fff;
  --green: #067647;
  --green-dim: #e5f6ee;
  --red: #b42318;
  --amber: #925b00;
  --sidebar-bg: #fff;
  --input-bg: #fff;
  --nav-active-bg: #f1f4f8;
  --avatar-bg: #eef2f7;
  --hover: #f5f7fa;
  --button-bg: #10294d;
  --button-hover: #193b65;
  --link: #175cd3;
  --shadow: none;
  --radius: 12px;
}
html[data-ui-mode="dark"], body[data-ui-mode="dark"] {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #171717;
  --panel-2: #202020;
  --line: #303030;
  --line-strong: #484848;
  --text: #e6e6e6;
  --heading: #f5f5f5;
  --dim: #b3b3b3;
  --muted: #999999;
  --accent: #dedede;
  --accent-dim: #262626;
  --accent-ink: #161616;
  --green: #83d5a6;
  --green-dim: #183023;
  --red: #ffaaa5;
  --amber: #f0bd75;
  --sidebar-bg: #101010;
  --input-bg: #141414;
  --nav-active-bg: #262626;
  --avatar-bg: #292929;
  --hover: #232323;
  --button-bg: #e5e5e5;
  --button-hover: #ffffff;
  --link: #dedede;
  --brand: #83d5a6;
}
html, body {
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
button { font-weight: 500; }
a { color: var(--link); }
button { background: var(--button-bg); color: var(--accent-ink); border-radius: 8px; box-shadow: none; min-height: 40px; }
button:hover { background: var(--button-hover); }
button.secondary { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
button.secondary:hover { background: var(--hover); }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { border-radius: 8px; border: 1px solid var(--line-strong); background: var(--input-bg); box-shadow: none; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select { min-height: 44px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--link); }
.card { background: var(--panel); border: 1px solid var(--line); box-shadow: none; }
.shell { --sidebar-width: 248px; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); overflow: visible; max-width: 100%; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 24px 12px 18px;
  gap: 30px;
  overflow: hidden;
  box-shadow: none;
}
.shell > .content { grid-column: 2; }
.sidebar > .nav { min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start; padding: 3px; margin: -3px; overscroll-behavior: contain; }
.sidebar > .user-dock { margin-top: 0; }
.brand-link { padding: 0 12px; }
.brand { font-size: 26px; letter-spacing: -.9px; }
.brand span { color: var(--brand); }
.nav { display: grid; gap: 4px; }
.nav a {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 6px;
  color: var(--dim);
  background: transparent;
  transition: background-color 120ms ease, color 120ms ease;
}
.nav a:hover {
  color: var(--heading);
  background: transparent;
}
.nav a.active {
  color: var(--heading);
  font-weight: 600;
  box-shadow: none;
  background: transparent;
}
.nav a.active:hover { background: transparent; }
.nav a.active::after { content: none; }
.nav a span { position: relative; }
.nav a.active span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav svg { flex-shrink: 0; opacity: .75; }
.nav a.active svg, .nav a:hover svg { opacity: 1; }
.user-dock { border-top: 1px solid var(--line); padding-top: 14px; }
.user-card { background: transparent; border-color: transparent; padding: 8px; }
.user-card strong, .user-card .muted { white-space: normal; overflow-wrap: anywhere; }
.user-dock button { min-height: 36px; }
.content, .content.content-classic { padding: 96px 32px 40px; overflow: visible; min-width: 0; }
.topbar { height: 64px; position: absolute; top: 0; right: 0; left: 0; margin: 0; padding: 0 32px; background: var(--panel); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.breadcrumb span:last-child { color: var(--heading); }
.topbar-actions { flex-wrap: nowrap; gap: 12px; }
.theme-toggle.secondary { display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 8px; flex-shrink: 0; }
.credit-pill { color: var(--link); background: var(--accent-dim); border-color: var(--line); font-size: 13px; font-weight: 400; white-space: nowrap; gap: 4px; }
.credit-pill strong { font-weight: 500; }
.page-heading { margin-bottom: 28px; }
.page-heading h2 { margin: 0 0 6px; font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -.7px; }
.page-heading p { margin: 0; }
.page-loading .route-loading { min-height: 240px; }
.screening-workspace { max-width: 1280px; }
/* Compact search workspace without reducing control sizes or clipping content. */
.content.content-search { padding-top: 80px; padding-bottom: 24px; }
.content-search .page-heading { margin-bottom: 10px; }
.content-search .page-heading h2 { font-size: 22px; line-height: 28px; letter-spacing: -.4px; }
.content-search .search-tabs { gap: 24px; margin-bottom: 12px; }
.content-search .search-tabs [role="tab"] { font-size: 17px; font-weight: 600; min-height: 44px; padding: 8px 12px; }
.content-search .search-panels { margin-top: 0; }
.content-search .search-panel { height: auto; padding: 16px 24px; gap: 12px; }
.content-search .search-panel > form { flex: none; margin-top: 0; gap: 10px; }
.content-search .search-mode__hint { margin: -6px 0 0; }
.content-search .search-form-grid { gap: 12px 24px; }
.content-search .search-panel textarea { height: 56px; min-height: 56px; }
.content-search .search-form-footer { padding-top: 12px; margin-top: 0; }
.search-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 28px; gap: 24px; }
.search-tabs [role="tab"] { min-height: 48px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 12px; background: transparent; color: var(--dim); font-weight: 500; }
.search-tabs [aria-selected="true"] { color: var(--heading); border-bottom-color: var(--heading); }
.search-tabs [role="tab"]:hover { background: var(--hover); }
.search-panels { display: block; }
[hidden] { display: none !important; }
.search-panel { max-width: 1120px; padding: 28px; gap: 24px; }
.search-panel__head { border: 0; padding: 0; }
.search-panel__head h3 { margin: 0; font-size: 20px; line-height: 28px; }
.search-panel__head p, .search-panel__icon { display: none; }
.search-panel form { gap: 20px; }
.search-mode { max-width: 500px; width: 100%; }
.search-mode legend { color: var(--dim); margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.search-mode__toggle { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px; gap: 3px; }
.search-mode__option span { min-height: 36px; padding: 7px 12px; border-radius: 6px; font-weight: 500; color: var(--dim); }
.search-mode__option input:checked + span { background: var(--nav-active-bg); color: var(--heading); box-shadow: none; border: 1px solid var(--line); }
/* One persistent selection surface slides; native radios still own the value. */
.search-mode__toggle { position: relative; isolation: isolate; }
.search-mode__option { position: relative; z-index: 1; }
.search-mode__option span { transition: color 180ms ease; }
.search-mode__option input:checked + span { background: transparent; border-color: transparent; }
.search-mode__selection {
  position: absolute;
  z-index: 0;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: calc((100% - 9px) / 2);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--nav-active-bg);
  overflow: hidden;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.search-mode__toggle:has(input[value="broad"]:checked) .search-mode__selection {
  transform: translateX(calc(100% + 3px));
  background: #623c94;
  border-color: #8860b8;
  box-shadow: inset 0 1px 0 #e5ceff44, inset 0 -1px 0 #311b5144;
}
.search-mode__option input[value="broad"]:checked + span { color: #fff9ff; }
.exact-reticle {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 56px;
  height: 56px;
  color: var(--heading);
  opacity: 0;
  transform: translateY(-50%) scale(.85);
  transition: opacity 180ms ease, transform 260ms ease;
  pointer-events: none;
}
.search-mode__toggle:has(input[value="exact"]:checked) .exact-reticle {
  opacity: .4;
  transform: translateY(-50%) scale(1);
}
@media (max-width: 600px) {
  .exact-reticle { left: 6px; width: 40px; height: 40px; }
}
.search-mode__selection::before,
.search-mode__selection::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  animation-play-state: paused;
}
.search-mode__selection::before {
  inset-inline: -50%;
  background: radial-gradient(ellipse at 30% 30%, #e2bbff66, transparent 48%), linear-gradient(110deg, transparent 20%, #a35bd433 35%, #d2adff77 50%, #a35bd433 65%, transparent 80%);
  animation: broad-nebula 7s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.search-mode__selection::after {
  background:
    radial-gradient(circle at 5% 25%, #fff 0 .7px, transparent 1.4px),
    radial-gradient(circle at 9% 65%, #dfc6ff 0 1px, transparent 1.7px),
    radial-gradient(circle at 14% 40%, #fff 0 .5px, transparent 1.2px),
    radial-gradient(circle at 18% 80%, #fff 0 .7px, transparent 1.4px),
    radial-gradient(circle at 22% 18%, #ead7ff 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 26% 58%, #fff 0 .6px, transparent 1.3px),
    radial-gradient(circle at 30% 35%, #dfc6ff 0 .8px, transparent 1.5px),
    radial-gradient(circle at 34% 76%, #fff 0 .5px, transparent 1.2px),
    radial-gradient(circle at 38% 12%, #fff 0 .6px, transparent 1.3px),
    radial-gradient(circle at 42% 88%, #ead7ff 0 .6px, transparent 1.3px),
    radial-gradient(circle at 49% 13%, #fff 0 .5px, transparent 1.2px),
    radial-gradient(circle at 56% 86%, #fff 0 .6px, transparent 1.3px),
    radial-gradient(circle at 62% 16%, #dfc6ff 0 .7px, transparent 1.4px),
    radial-gradient(circle at 67% 72%, #fff 0 .8px, transparent 1.5px),
    radial-gradient(circle at 71% 36%, #fff 0 .5px, transparent 1.2px),
    radial-gradient(circle at 76% 10%, #ead7ff 0 1px, transparent 1.7px),
    radial-gradient(circle at 80% 59%, #fff 0 .7px, transparent 1.4px),
    radial-gradient(circle at 84% 83%, #dfc6ff 0 .6px, transparent 1.3px),
    radial-gradient(circle at 88% 28%, #fff 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 92% 52%, #fff 0 .5px, transparent 1.2px),
    radial-gradient(circle at 96% 77%, #ead7ff 0 .8px, transparent 1.5px),
    radial-gradient(circle at 99% 15%, #fff 0 .6px, transparent 1.3px);
  animation: none;
}
.search-mode__toggle:has(input[value="broad"]:checked) .search-mode__selection::before,
.search-mode__toggle:has(input[value="broad"]:checked) .search-mode__selection::after {
  opacity: 1;
  animation-play-state: running;
}
.search-mode__toggle:has(input[value="broad"]:checked) .search-mode__selection::after {
  animation: broad-star-drift 9s ease-in-out infinite alternate;
}
[data-ui-mode="dark"] .search-mode__toggle:has(input[value="broad"]:checked) .search-mode__selection {
  background: #382449;
  border-color: #806398;
  box-shadow: inset 0 1px 0 #dcbcff2e;
}
@keyframes broad-nebula {
  from { transform: translateX(-15%) scale(1); }
  to { transform: translateX(15%) scale(1.12); }
}
@keyframes broad-star-drift {
  0% { transform: translate(-7px, 2px); opacity: .5; }
  35% { opacity: .95; }
  70% { opacity: .65; }
  100% { transform: translate(7px, -3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .search-mode__selection { transition: none; }
  .search-mode__selection::before,
  .search-mode__toggle:has(input[value="broad"]:checked) .search-mode__selection::after { animation: none; transform: none; }
}
@media (forced-colors: active) {
  .search-mode__selection { display: none; }
  .search-mode__option input:checked + span { background: Highlight; color: HighlightText; border-color: Highlight; }
}
.search-mode__hint { display: block; margin: -12px 0 4px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.search-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.search-panel label { font-size: 14px; font-weight: 500; color: var(--dim); gap: 7px; }
.search-panel input, .search-panel textarea { font-weight: 400; color: var(--text); width: 100%; }
.search-panel .search-mode__option input { width: 1px; height: 1px; min-height: 0; }
.optional { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.date-field { display: grid; gap: 7px; align-content: start; }
.date-field > label { display: block; }
.date-control { position: relative; }
.date-control [data-birth-display] { padding-right: 48px; }
.search-panel input.date-picker { position: absolute; right: 4px; top: 1px; width: 36px; min-height: 42px; height: 42px; border: 0; padding: 0; background: transparent; color: transparent; }
.date-picker::-webkit-datetime-edit { display: none; }
.date-picker::-webkit-calendar-picker-indicator { margin: 0; padding: 10px; cursor: pointer; opacity: .7; }
.search-panel textarea { height: 88px; min-height: 88px; resize: vertical; }
.search-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.search-form-footer .muted { font-size: 13px; }
.search-submit, button.danger-scan { min-height: 44px; width: auto; min-width: 260px; padding: 10px 24px; background: var(--button-bg); color: var(--accent-ink); border: 0; box-shadow: none; }
.search-submit:hover, button.danger-scan:hover { background: var(--button-hover); box-shadow: none; transform: none; }
.batch-dropzone { border: 1px dashed var(--line-strong); background: var(--panel-2); border-radius: 8px; padding: 28px 20px; }
.batch-dropzone:hover, .batch-dropzone.is-dragover { border-color: var(--link); background: var(--hover); }
.batch-dropzone__icon { width: 24px; height: 24px; color: var(--dim); }
.batch-dropzone__btn { background: var(--panel); border: 1px solid var(--line-strong); color: var(--heading); border-radius: 8px; }
.batch-dropzone:focus-within { outline: 2px solid var(--link); outline-offset: 3px; }
.batch-info { margin: 0; }
.batch-info .search-mode__hint-icon { display: none; }
.batch-info ul { margin: 0; padding-left: 18px; line-height: 1.8; }
.batch-summary { margin-bottom: 10px; }
.batch-summary-status { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.batch-summary-status svg { width: 18px; height: 18px; flex-shrink: 0; }
.batch-summary .progress-track { margin-top: 16px; max-width: 500px; }
.progress-fill { background: var(--link); }
.match-filter-bar { display: flex; flex-wrap: wrap; align-items: center; padding: 18px 20px; gap: 24px; margin: 10px 0 8px; }
.match-filter-group { display: grid; gap: 8px; }
.match-filter-title { font-size: 12px; font-weight: 500; color: var(--heading); }
.match-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.match-check { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--dim); }
.match-check.is-checked { color: var(--heading); background: var(--nav-active-bg); border-color: var(--line-strong); }
.match-sort { min-width: 240px; max-width: 100%; }
.match-filter-info { flex: 1; min-width: 160px; color: var(--muted); font-size: 12px; margin: 20px 0 0; padding: 0; border: 0; background: transparent; }
.classic-wrap { max-width: none; width: 100%; }
.classic-results-page { gap: 16px; grid-template-columns: minmax(0, 1fr); }
.classic-feed { grid-template-columns: minmax(0, 1fr); }
.classic-results-page > *, .classic-feed > *, .match-filter-group { min-width: 0; }
.classic-table-wrap { max-width: 100%; max-height: 70vh; overflow: auto; padding: 0; }
.batch-results { min-width: 1100px; table-layout: auto; }
.batch-results th, .batch-results td { width: auto !important; padding: 16px !important; text-align: left; }
.batch-results th { height: 48px; position: sticky; top: 0; z-index: 1; background: var(--panel-2); font-size: 12px; font-weight: 500; color: var(--dim); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.batch-results td { height: 55px; color: var(--dim); font-size: 14px; }
.batch-results td:nth-child(2) { color: var(--heading); min-width: 160px; }
.batch-results tr:last-child td { border-bottom: 0; }
.batch-results tbody tr:hover { background: var(--hover); }
.batch-note { min-width: 80px; max-width: 280px; overflow-wrap: anywhere; }
.process-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); }
.process-status svg { width: 17px; height: 17px; }
.match-indicator { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); white-space: nowrap; }
.match-segments { display: inline-flex; gap: 2px; }
.match-segments i { width: 15px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.match-segments .filled { background: var(--heading); }
.badge.risk-critical { background: #fce7ed; color: #9f1239; border-color: #fbcdda; }
.badge.risk-high { background: #feecec; color: #b42318; border-color: #fbd5d5; }
.badge.risk-medium { background: #fff4d6; color: #925b00; border-color: #f8e7b0; }
.badge.risk-low { background: #e5f6ee; color: #067647; border-color: #c2edda; }
.batch-results .badge { min-width: 76px; justify-content: center; min-height: 24px; font-size: 12px; font-weight: 400; }
.batch-row-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.batch-result-link { white-space: nowrap; font-weight: 500; }
.batch-viewed-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.batch-viewed-badge svg { width: 17px; height: 17px; }
.classic-results--profiles thead th { background: var(--panel-2); }
.classic-results .person-row:hover, .classic-results .person-row.is-active { background: var(--hover); }
.person-drawer { background: var(--panel); box-shadow: -8px 0 30px #0002; }
.person-drawer-root { overflow: hidden; }
.person-drawer-backdrop { background: #0e172655; }
.flash { background: var(--panel-2); border-color: var(--line-strong); color: var(--text); }
.flash.error { color: var(--red); border-color: var(--red); }
/* Dark status colors have dark tinted surfaces; match categories stay neutral. */
[data-ui-mode="dark"] .badge.ok,
[data-ui-mode="dark"] .badge.risk-low { color: #83d5a6; background: #183023; border-color: #2d513b; }
[data-ui-mode="dark"] .badge.bad,
[data-ui-mode="dark"] .badge.risk-high { color: #ffaaa5; background: #35201f; border-color: #62332f; }
[data-ui-mode="dark"] .badge.risk-critical { color: #ffc1ba; background: #40201f; border-color: #81413b; }
[data-ui-mode="dark"] .badge.warn,
[data-ui-mode="dark"] .badge.pep,
[data-ui-mode="dark"] .badge.risk-medium { color: #f0bd75; background: #352919; border-color: #5c4528; }
/* Match strength progresses from muted neutral to green, independently of risk. */
.badge.match-low { color: #606860; background: #f0f2f0; border-color: #d9ded9; }
.badge.match-medium { color: #49664f; background: #edf3ee; border-color: #ccdbcf; }
.badge.match-high { color: #23653d; background: #e0f1e5; border-color: #a9d4b7; }
.badge.match-very-high { color: #fff; background: #217346; border-color: #217346; }
[data-ui-mode="dark"] .badge.match-low { color: #b2b8b3; background: #252825; border-color: #424842; }
[data-ui-mode="dark"] .badge.match-medium { color: #b4cbb9; background: #253128; border-color: #435b49; }
[data-ui-mode="dark"] .badge.match-high { color: #9eddb1; background: #203d2a; border-color: #39724b; }
[data-ui-mode="dark"] .badge.match-very-high { color: #c6f6d5; background: #205035; border-color: #4a9664; }
[data-ui-mode="dark"] .flash.ok { background: var(--green-dim); color: var(--green); border-color: #2d513b; }
[data-ui-mode="dark"] .flash.error { background: #291b1a; }
[data-ui-mode="dark"] .info-tooltip { background: #303030; color: #f5f5f5; border: 1px solid #505050; box-shadow: 0 6px 20px #0005; font-family: var(--font-ui); }
[data-ui-mode="dark"] .classic-results .person-row.is-active td { border-bottom-color: var(--line-strong); }
[data-ui-mode="dark"] .person-drawer-backdrop { background: #0009; }
[data-ui-mode="dark"] main p a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .shell { --sidebar-width: 200px; }
  .content, .content.content-classic { padding: 88px 24px 32px; }
  .topbar { padding-inline: 24px; }
  .match-filter-info { flex-basis: 100%; margin-top: 0; }
}
@media (max-width: 768px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: auto; height: auto; position: static; display: flex; flex-direction: column; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); gap: 16px; overflow: visible; }
  .shell > .content { grid-column: 1; }
  .sidebar > .nav { overflow: visible; padding: 0; margin: 0; }
  .brand-link { padding: 0; }
  .brand { font-size: 23px; }
  .nav { display: flex; gap: 6px; flex-wrap: wrap; }
  .nav a { min-height: 42px; padding: 8px 10px; gap: 8px; font-size: 13px; }
  .user-dock { display: flex; align-items: center; gap: 12px; padding-top: 10px; }
  .user-card { flex: 1; min-width: 0; }
  .user-dock button { width: auto; }
  .content, .content.content-classic { padding: 88px 16px 24px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .breadcrumb { font-size: 12px; gap: 8px; flex-wrap: wrap; }
  .topbar-actions { gap: 8px; }
  .credit-pill { padding: 5px 8px; font-size: 12px; }
  .page-heading h2 { font-size: 26px; line-height: 34px; }
  .page-heading { margin-bottom: 20px; }
  .search-tabs { gap: 12px; margin-bottom: 20px; }
  .search-panel { padding: 20px; }
  .search-form-grid { grid-template-columns: minmax(0, 1fr); }
  .search-form-footer { flex-direction: column; align-items: stretch; }
  .search-submit, button.danger-scan { min-width: 0; width: 100%; }
  .match-filter-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 16px; gap: 16px; }
  .match-sort { min-width: 0; width: 100%; }
  .match-filter-info { flex: none; width: 100%; margin: 0; }
  .classic-table-wrap { max-height: 65vh; }
}

/* Human decisions use text and neutral controls, independent of risk colors. */
.decision-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.decision-button { min-width: 185px; white-space: normal; text-align: left; }
.decision-confirmed { color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); white-space: normal; }
.classic-results--profiles th:nth-child(5), .classic-results--profiles td:nth-child(5) { width: 220px; min-width: 220px; }
.classic-results--profiles .classic-open-arrow { display: none; }
.classic-results--profiles { min-width: 1080px; }
.person-drawer-bar { flex-wrap: wrap; }
.person-drawer-bar > .row { flex-wrap: wrap; }
.match-score { color: var(--dim); font-variant-numeric: tabular-nums; }
.customer-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; margin: 20px 0; }
.customer-filters label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.customer-filters .row { align-items: flex-end; }
.customer-results { min-height: 240px; }
.customer-table table { min-width: 1000px; }
.customer-table td { vertical-align: top; overflow-wrap: anywhere; }
.customer-table td:first-child { min-width: 200px; }
.customer-table small { display: block; margin-top: 6px; }
.customer-pagination { justify-content: space-between; padding: 20px 0; }
.customer-empty { padding: 32px; }
.customer-context { padding: 24px; margin: 20px 0; }
#match-feedback .flash { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.customer-table a, .customer-pagination a { display: inline-block; padding: 6px 0; }
@media (max-width: 760px) {
  .customer-filters { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .customer-context { padding: 16px; }
  .customer-pagination { flex-wrap: wrap; gap: 16px; }
}
