:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #d9dee8;
  --accent: #1769e0;
  --accent-dark: #0f4fae;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --warning: #8a5a00;
  --warning-bg: #fff8e6;
  --good: #067647;
  --good-bg: #ecfdf3;
  --header: #182334;
  --shadow: 0 8px 24px rgba(26, 39, 64, .08);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 7px; padding: .68rem 1rem; background: var(--accent); color: white; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--accent-dark); text-decoration: none; }
button.secondary, .button.secondary { background: #eef2f7; color: #26354d; }
button.secondary:hover, .button.secondary:hover { background: #dfe6ef; }
.danger-button { background: var(--danger); }
.link-button { padding: 0; background: none; color: #d6deea; font-weight: 500; }
.inline-form { display: inline; margin: 0; }
.topbar { min-height: 58px; padding: 0 1.6rem; background: var(--header); color: white; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: white; font-size: 1.05rem; font-weight: 750; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.user-chip, .client-empty { color: #d6deea; font-size: .88rem; }
.client-picker { position: relative; }
.client-picker summary { list-style: none; cursor: pointer; border: 1px solid #44536a; border-radius: 7px; padding: .45rem .7rem; min-width: 190px; }
.client-picker summary::-webkit-details-marker { display: none; }
.client-menu { position: absolute; right: 0; z-index: 20; width: 260px; margin-top: .35rem; padding: .35rem; background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.client-menu form { margin: 0; }
.client-option { width: 100%; justify-content: flex-start; background: transparent; color: var(--text); font-weight: 500; }
.client-option:hover, .client-option.selected { background: #edf4ff; color: #164f9f; }
.main-nav { display: flex; flex-wrap: wrap; gap: .15rem; padding: .55rem 1.4rem; background: white; border-bottom: 1px solid var(--border); }
.main-nav a { color: #3c4a60; padding: .48rem .68rem; border-radius: 6px; font-weight: 600; font-size: .9rem; }
.main-nav a:hover { background: #f0f3f8; text-decoration: none; }
.content { width: min(1240px, calc(100% - 2rem)); margin: 1.5rem auto 4rem; }
.app-footer { color: var(--muted); text-align: center; padding: 1rem 0 2rem; font-size: .82rem; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 0 0 1.1rem; }
.page-heading h1 { margin: 0 0 .2rem; font-size: 1.65rem; }
.page-heading p { margin: 0; color: var(--muted); }
.actions, .form-actions, .user-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.panel, .empty, .audience-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 1.15rem; margin-bottom: 1rem; }
.panel h2, .empty h2 { margin: 0 0 .8rem; font-size: 1.1rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cards { display: grid; gap: .8rem; margin-bottom: 1rem; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { background: white; border: 1px solid var(--border); border-radius: 9px; padding: 1rem; box-shadow: var(--shadow); }
.metric strong { display: block; font-size: 1.35rem; overflow-wrap: anywhere; }
.metric span { color: var(--muted); font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid.compact { gap: .7rem 1rem; }
.span-2 { grid-column: 1 / -1; }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.stack { display: grid; gap: .85rem; }
label { display: grid; gap: .35rem; margin-bottom: .75rem; font-weight: 600; color: #344054; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #cbd3df; border-radius: 7px; padding: .62rem .7rem; background: white; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(23, 105, 224, .2); border-color: var(--accent); }
input[type="checkbox"] { width: auto; }
textarea { resize: vertical; }
.code-area, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: .8rem; }
legend { padding: 0 .35rem; font-weight: 700; }
.hint, .muted { color: var(--muted); }
.warning { color: var(--warning); }
.good { color: var(--good); }
.bad { color: var(--danger); }
.alert { border: 1px solid #b7cee9; background: #eef6ff; border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1rem; }
.alert.danger { border-color: #f0b4ae; background: var(--danger-bg); color: #8e1b13; }
.alert.warning { border-color: #ecd49b; background: var(--warning-bg); color: var(--warning); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid #e6eaf0; padding: .72rem .65rem; }
th { color: #475467; font-size: .78rem; text-transform: uppercase; letter-spacing: .035em; }
tbody tr:last-child td { border-bottom: 0; }
.status, .pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .55rem; background: #eef2f7; color: #475467; font-size: .78rem; font-weight: 700; }
.status.active, .status.passed, .status.succeeded, .status.approved { background: var(--good-bg); color: var(--good); }
.status.failed, .status.failed_requires_review, .status.inactive { background: var(--danger-bg); color: var(--danger); }
.status.queued, .status.running, .status.awaiting_approval, .status.untested { background: var(--warning-bg); color: var(--warning); }
.status.large { font-size: .9rem; padding: .35rem .75rem; }
.definition { display: grid; grid-template-columns: minmax(160px, 30%) 1fr; gap: .45rem 1rem; }
.definition dt { color: var(--muted); }
.definition dd { margin: 0; overflow-wrap: anywhere; }
.grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.audience-card { display: block; color: inherit; }
.audience-card:hover { border-color: #a8bce0; text-decoration: none; }
.card-row { display: flex; justify-content: space-between; gap: .7rem; }
.card-row h2 { margin: 0; font-size: 1.1rem; }
.review-form { min-width: 230px; }
.credential-status { display: grid; grid-template-columns: 1fr auto; gap: .2rem .7rem; padding: .6rem 0; border-top: 1px solid var(--border); }
.credential-status small { grid-column: 1 / -1; color: var(--muted); }
.user-panel { margin-top: 1rem; }
.user-actions form { display: flex; gap: .5rem; align-items: center; }
.user-actions input { min-width: 220px; }
.login-shell { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; background: var(--bg); }
.login-content { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { width: min(410px, 100%); background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.6rem; box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 1.2rem; text-align: center; font-size: 1.45rem; }
.login-footer { padding: 0 1rem 1.5rem; color: var(--muted); text-align: center; font-size: .82rem; }
.auth-card { max-width: 520px; }
@media (max-width: 850px) {
  .cards.three, .cards.four, .form-grid, .two-cols { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .topbar, .topbar-right, .page-heading { align-items: stretch; flex-direction: column; }
  .topbar { padding: .8rem 1rem; }
  .topbar-right { gap: .6rem; }
  .client-picker summary { width: 100%; }
  .client-menu { left: 0; right: auto; }
  .content { width: min(100% - 1rem, 1240px); }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
.import-batch { border: 1px solid var(--border); border-radius: 9px; margin-top: .9rem; overflow: hidden; background: #fbfcfe; }
.import-batch summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; }
.import-batch summary span:first-child { display: grid; gap: .15rem; }
.import-batch summary small { color: var(--muted); font-weight: 500; }
.batch-body { border-top: 1px solid var(--border); padding: 1rem; background: white; }
.batch-body h3 { margin: 1.2rem 0 .55rem; font-size: 1rem; }
.compact-definition { margin-bottom: .8rem; }
.block-note { display: block; margin-top: .3rem; max-width: 420px; white-space: normal; }
.alert ul { margin: .45rem 0 0 1.2rem; padding: 0; }
.plan-form { margin-top: .7rem; max-width: 760px; }

.config-form-actions { padding: .15rem 0 .35rem; }
.discovery-panel { margin-top: 2rem; }
.internal-details code { overflow-wrap: anywhere; }
.unsaved-discovery-warning { font-weight: 600; }
button:disabled { cursor: not-allowed; opacity: .55; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-dropzone { display: grid; justify-items: center; gap: .55rem; padding: 1.45rem; border: 2px dashed #b9c5d6; border-radius: 10px; background: #fbfcfe; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.upload-dropzone:hover, .upload-dropzone:focus, .upload-dropzone.is-dragging { border-color: var(--accent); background: #f2f7ff; outline: none; }
.upload-file-summary { color: #344054; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.batch-summary-main { min-width: 0; }
.batch-summary-actions { flex: 0 0 auto; }
.batch-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.status.committed, .status.no_changes { background: var(--good-bg); color: var(--good); }
.status.planned, .status.approval_pending, .status.committing { background: var(--warning-bg); color: var(--warning); }
.status.blocked { background: var(--danger-bg); color: var(--danger); }
.good-alert { border-color: #a6dfc2; background: var(--good-bg); color: var(--good); }
.login-error { margin: 0 0 1rem; width: 100%; }
@media (max-width: 850px) {
  .batch-toolbar { grid-template-columns: 1fr; }
}
.status.planning { background: var(--warning-bg); color: var(--warning); }
.status.requires_review { background: var(--danger-bg); color: var(--danger); }
.batch-summary-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.main-nav a.active { background: #edf4ff; color: #164f9f; box-shadow: inset 0 -2px 0 var(--accent); }
.centered-card { margin-left: auto; margin-right: auto; }
.centered-heading { max-width: 520px; margin-left: auto; margin-right: auto; }
.password-field { display: grid; grid-template-columns: 1fr auto; gap: .45rem; }
.password-toggle { padding: .62rem .75rem; }
.filter-panel { padding-top: .8rem; padding-bottom: .8rem; }
.filter-row { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)) auto; gap: .8rem; align-items: end; }
.filter-row label { margin: 0; }
.filter-actions { display: flex; gap: .7rem; align-items: center; padding-bottom: .05rem; }
.compact-panel { min-height: 150px; }
.dashboard-summary-grid { margin-bottom: 1rem; }
.account-actions { border-top: 1px solid var(--border); margin-top: .8rem; padding-top: .7rem; }
.account-actions summary, .plan-history summary, .reprocess-control summary { cursor: pointer; color: #344054; font-weight: 650; }
.account-actions .user-actions { padding-top: .8rem; }
.admin-access-note { border: 1px solid var(--border); border-radius: 8px; padding: .8rem; }
.admin-access-note p { margin: .35rem 0 0; }
.audit-table td { max-width: 340px; }
.audit-details pre { max-width: 520px; max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f9fc; border: 1px solid var(--border); border-radius: 7px; padding: .7rem; font-size: .78rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.pagination > div { display: flex; gap: .5rem; }
.batch-actions { display: flex; gap: .6rem; align-items: flex-start; }
.event-groups { display: grid; gap: .55rem; }
.event-group { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fbfcfe; }
.event-group > summary { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem .85rem; cursor: pointer; }
.event-group > summary span:first-child { display: grid; gap: .1rem; }
.event-group > summary small { color: var(--muted); font-weight: 500; }
.event-group-body { border-top: 1px solid var(--border); background: white; padding: .8rem; }
.source-set + .source-set { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.source-set h4 { margin: 0; }
.source-actions-panel { margin-top: 1.1rem; border-top: 1px solid var(--border); padding-top: .8rem; }
.reprocess-control { border: 1px solid var(--border); border-radius: 7px; padding: .58rem .75rem; }
.reprocess-control form { min-width: 330px; padding-top: .7rem; }
.verification-summary { margin-bottom: .7rem; }
.plan-history { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .8rem; }
.status.superseded { background: #f2f4f7; color: #667085; }
@media (max-width: 850px) {
  .filter-row, .password-field { grid-template-columns: 1fr; }
  .reprocess-control form { min-width: 0; }
  .audit-table td { max-width: none; }
}

.status.verifying, .status.approving { background: #e8f2ff; color: #175cd3; }
.status.reprocessing { background: var(--warning-bg); color: var(--warning); }
.active-job-card { margin: .8rem 0 1rem; border: 1px solid #b8d4ff; background: #f4f8ff; border-radius: 8px; padding: .8rem .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.active-job-card > div:first-child { display: grid; gap: .18rem; }
.active-job-actions { display: inline-flex; align-items: center; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }
.jobs-filters { display: grid; grid-template-columns: repeat(3,minmax(180px,1fr)) auto; gap: .8rem; align-items: end; margin-bottom: 1rem; }
.verification-evidence { margin-top: .8rem; border-top: 1px solid var(--border); padding-top: .7rem; }
.verification-evidence summary { cursor: pointer; font-weight: 650; color: #344054; }
@media (max-width: 850px) { .active-job-card { align-items: flex-start; flex-direction: column; } .jobs-filters { grid-template-columns: 1fr; } }

/* Alpha.24 identity-review workflow */
.review-summary-cards { margin-bottom: 1rem; }
.review-filter-grid { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(160px, 1fr)) auto; gap: .8rem; align-items: end; }
.review-filter-grid label { margin: 0; }
.review-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .9rem 0 .6rem; }
.review-results-heading > div:first-child { display: grid; gap: .15rem; }
.compact-pagination { margin: 0; justify-content: flex-end; }
.page-number { min-width: 2rem; min-height: 2rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 7px; color: #344054; background: white; text-decoration: none; font-weight: 650; }
.page-number:hover { border-color: #a8bce0; text-decoration: none; }
.page-number.current { background: #edf4ff; border-color: #9ec5ff; color: #164f9f; }
.page-gap { display: inline-flex; align-items: center; padding: 0 .15rem; color: var(--muted); }
.review-list-panel { padding-top: .25rem; }
.identity-review-table td { white-space: normal; }
.identity-review-table td:first-child { min-width: 230px; max-width: 320px; overflow-wrap: anywhere; }
.identity-review-table td:nth-child(2) { min-width: 220px; }
.identity-review-table td:nth-child(3) { min-width: 220px; overflow-wrap: anywhere; }
.identity-review-table td:nth-child(4) { min-width: 280px; }
.reason-list { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.review-save-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.review-bottom-pagination { margin: 1rem 0 0; }
.status.resolved, .status.email_only { background: var(--good-bg); color: var(--good); }
.status.excluded { background: var(--danger-bg); color: var(--danger); }
@media (max-width: 1050px) { .review-filter-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); } .review-filter-grid .filter-actions { grid-column: 1 / -1; } }
@media (max-width: 850px) { .review-filter-grid { grid-template-columns: 1fr; } .review-results-heading { align-items: flex-start; flex-direction: column; } .compact-pagination { justify-content: flex-start; } }

/* Alpha.24 identity conflict investigation workspace */
.identity-investigation-list { display: grid; gap: 1rem; }
.identity-investigation-card { padding: 1rem; }
.identity-case-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.identity-case-header h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.identity-case-header .reason-list { justify-content: flex-end; margin-bottom: 0; }
.identity-investigation-grid { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.6fr) minmax(280px, .9fr); gap: 1rem; padding-top: 1rem; align-items: start; }
.identity-current-card, .identity-evidence-card, .identity-decision-card { min-width: 0; }
.identity-investigation-card h3 { margin: 0 0 .65rem; font-size: .98rem; }
.technical-details, .source-evidence-details { margin-top: .65rem; }
.technical-details summary, .source-evidence-details summary { cursor: pointer; font-weight: 650; color: #344054; }
.technical-details > div { margin-top: .55rem; overflow-wrap: anywhere; }
.conflict-field-block { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: .75rem; }
.conflict-field-heading { display: flex; justify-content: space-between; gap: .8rem; padding: .65rem .75rem; background: #f8fafc; border-bottom: 1px solid var(--border); }
.conflict-field-heading .hint { text-align: right; }
.observed-value-list { display: grid; }
.observed-value { padding: .7rem .75rem; }
.observed-value + .observed-value { border-top: 1px solid var(--border); }
.observed-value-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .65rem; }
.observed-value-meta { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.source-evidence-details ul { margin: .35rem 0 .2rem 1.15rem; padding: 0; }
.source-evidence-details > div { margin-top: .5rem; }
.shared-identifier-case { border: 1px solid #ecd49b; background: #fffaf0; border-radius: 8px; padding: .75rem; margin-top: .75rem; }
.shared-case-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.status.warning { background: var(--warning-bg); color: var(--warning); }
.shared-contact-list { display: grid; gap: .5rem; margin-top: .65rem; }
.shared-contact { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; border: 1px solid #e6dfca; border-radius: 7px; background: white; padding: .6rem .7rem; }
.shared-contact.current { border-color: #9ec5ff; background: #f6f9ff; }
.shared-contact-evidence { display: grid; justify-items: end; gap: .2rem; text-align: right; font-size: .82rem; }
.review-guidance { background: #f7f9fc; border: 1px solid var(--border); border-radius: 7px; padding: .7rem; color: #344054; font-size: .88rem; }
.identity-decision-card .review-form { min-width: 0; }
.identity-decision-card .review-form label { margin-bottom: .65rem; }
.compact-definition { grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); }
@media (max-width: 1180px) {
  .identity-investigation-grid { grid-template-columns: 1fr 1.5fr; }
  .identity-decision-card { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .identity-case-header, .conflict-field-heading, .shared-contact { flex-direction: column; }
  .identity-case-header .reason-list { justify-content: flex-start; }
  .identity-investigation-grid { grid-template-columns: 1fr; }
  .identity-decision-card { grid-column: auto; }
  .conflict-field-heading .hint, .shared-contact-evidence { text-align: left; justify-items: start; }
}

/* Alpha.24 focused identity-review workspace */
.identity-page-heading { margin-bottom: .8rem; }
.identity-summary-bar { display: grid; grid-template-columns: repeat(4, minmax(100px, .55fr)) minmax(260px, 1.5fr); align-items: stretch; gap: .6rem; margin-bottom: .8rem; }
.identity-summary-item, .identity-summary-audit { background: white; border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow); padding: .75rem .85rem; }
.identity-summary-item { display: grid; gap: .08rem; }
.identity-summary-item strong { font-size: 1.22rem; }
.identity-summary-item span, .identity-summary-audit span { color: var(--muted); font-size: .8rem; }
.identity-summary-audit { display: grid; grid-template-columns: auto 1fr auto; gap: .15rem .7rem; align-items: center; }
.identity-summary-audit strong { font-size: .9rem; }
.identity-summary-audit span { grid-row: 1 / span 2; align-self: center; }
.identity-evidence-warning { margin-bottom: .8rem; }
.identity-review-workspace { display: grid; grid-template-columns: minmax(315px, .82fr) minmax(0, 1.75fr); gap: 1rem; align-items: start; }
.identity-case-browser { padding: 0; overflow: hidden; position: sticky; top: .8rem; max-height: calc(100vh - 1.6rem); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.identity-browser-heading { display: flex; justify-content: space-between; gap: .7rem; align-items: flex-start; padding: .85rem .9rem; border-bottom: 1px solid var(--border); }
.identity-browser-heading > div { display: grid; gap: .1rem; }
.identity-case-list { overflow-y: auto; }
.identity-case-row { display: grid; gap: .42rem; padding: .78rem .9rem; border-bottom: 1px solid #e7ebf1; color: inherit; background: white; }
.identity-case-row:hover { text-decoration: none; background: #f8faff; }
.identity-case-row.selected { background: #edf4ff; box-shadow: inset 3px 0 0 var(--accent); }
.identity-case-row-top { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.identity-case-row-top strong { font-size: .95rem; }
.compact-reasons { margin: 0; }
.compact-reasons .pill { font-size: .71rem; padding: .12rem .42rem; font-weight: 650; }
.identity-case-row-meta { display: grid; gap: .12rem; color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.identity-browser-pagination { padding: .75rem .9rem; margin: 0; border-top: 1px solid var(--border); background: #fbfcfe; align-items: flex-start; flex-direction: column; }
.identity-browser-pagination > div { flex-wrap: wrap; }
.identity-case-detail { padding: 1rem 1.05rem; min-width: 0; }
.identity-detail-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.identity-detail-header h2 { margin: .08rem 0 .42rem; font-size: 1.35rem; }
.identity-detail-kicker { color: var(--muted); font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .035em; }
.identity-detail-top-grid { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(300px, 1.1fr); gap: 1rem; padding: 1rem 0; }
.identity-detail-top-grid > section { border: 1px solid var(--border); border-radius: 8px; padding: .85rem; background: #fbfcfe; }
.identity-detail-top-grid h3, .identity-detail-evidence h3 { margin: 0 0 .65rem; font-size: 1rem; }
.identity-detail-evidence { border-top: 1px solid var(--border); padding-top: 1rem; }
.identity-section-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.identity-section-heading p { margin: -.35rem 0 0; }
.evidence-empty { padding: .8rem; border: 1px dashed var(--border); border-radius: 7px; background: #fbfcfe; }
.decision-code-note { margin: -.15rem 0 .7rem; font-size: .78rem; }
.identity-technical-evidence { border-top: 1px solid var(--border); padding-top: .8rem; margin-top: 1rem; }
.identity-technical-evidence .definition { margin-top: .7rem; }
@media (max-width: 1100px) {
  .identity-summary-bar { grid-template-columns: repeat(4, 1fr); }
  .identity-summary-audit { grid-column: 1 / -1; }
  .identity-review-workspace { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.4fr); }
  .identity-detail-top-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .identity-summary-bar { grid-template-columns: repeat(2, 1fr); }
  .identity-summary-audit { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .identity-summary-audit span { grid-row: auto; }
  .identity-review-workspace { grid-template-columns: 1fr; }
  .identity-case-browser { position: static; max-height: none; }
  .identity-case-list { max-height: 430px; }
  .identity-detail-header { flex-direction: column; }
}
.job-error-details { margin-top: .55rem; }
.job-error-details summary { cursor: pointer; font-weight: 650; }
.job-error-details code { display: block; margin-top: .5rem; padding: .65rem; border-radius: 6px; background: rgba(255,255,255,.55); overflow-wrap: anywhere; white-space: pre-wrap; }

/* Alpha.25 fingerprint-bound canonical identity resolution */
.resolution-progress { display: flex; gap: .45rem; align-items: baseline; padding: .55rem .65rem; margin-bottom: .55rem; border: 1px solid #cdd8e7; border-radius: 7px; background: #f6f9fd; }
.resolution-progress strong { font-size: 1rem; }
.resolution-progress span { color: var(--muted); font-size: .82rem; }
.resolution-help { margin-top: -.15rem; }
.resolution-required-label { display: block; margin-top: .18rem; color: var(--accent); font-size: .76rem; font-weight: 650; }
.resolution-choice-list { background: white; }
.resolution-choice { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .65rem; align-items: flex-start; cursor: pointer; }
.resolution-choice:hover { background: #f8faff; }
.resolution-choice.selected { background: #edf4ff; box-shadow: inset 3px 0 0 var(--accent); }
.resolution-choice > input[type="radio"] { margin-top: .22rem; }
.resolution-choice-content { min-width: 0; display: grid; gap: .18rem; }
.resolution-clear-choice { background: #fbfcfe; }
.resolution-clear-choice .resolution-choice-content { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: baseline; }
.resolution-field:focus-within { border-color: #9bbbe8; box-shadow: 0 0 0 2px rgba(35,111,216,.08); }
